Skip to content

Commit a587d9e

Browse files
feat: update generated client
1 parent 9c911c8 commit a587d9e

File tree

4 files changed

+163
-1
lines changed

4 files changed

+163
-1
lines changed

packages/mittwald/spec/openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/mittwald/src/generated/v2/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
11021102
updateProjectMailSetting: this.requestFunctionFactory(
11031103
descriptors.mailUpdateProjectMailSetting,
11041104
),
1105+
/** Disable the mail-archive of a MailAddress. */
1106+
disableMailArchive: this.requestFunctionFactory(
1107+
descriptors.mailDisableMailArchive,
1108+
),
11051109
};
11061110

11071111
/** The notification API allows you to manage your notifications. */

packages/mittwald/src/generated/v2/descriptors.ts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16443,3 +16443,57 @@ export const verificationVerifyCompany: OpenAPIOperation<
1644316443
method: "POST",
1644416444
operationId: "verification-verify-company",
1644516445
};
16446+
16447+
/** Disable the mail-archive of a MailAddress. */
16448+
export const mailDisableMailArchive: OpenAPIOperation<
16449+
RequestType<
16450+
Simplify<null>,
16451+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Parameters.Path>,
16452+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Parameters.Query>,
16453+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Parameters.Header>
16454+
>,
16455+
| Response<
16456+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$204.Content.Empty>,
16457+
204,
16458+
"empty"
16459+
>
16460+
| Response<
16461+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$400.Content.ApplicationJson>,
16462+
400,
16463+
"application/json"
16464+
>
16465+
| Response<
16466+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$403.Content.ApplicationJson>,
16467+
403,
16468+
"application/json"
16469+
>
16470+
| Response<
16471+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$404.Content.ApplicationJson>,
16472+
404,
16473+
"application/json"
16474+
>
16475+
| Response<
16476+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$429.Content.ApplicationJson>,
16477+
429,
16478+
"application/json"
16479+
>
16480+
| Response<
16481+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$500.Content.ApplicationJson>,
16482+
500,
16483+
"application/json"
16484+
>
16485+
| Response<
16486+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.$503.Content.ApplicationJson>,
16487+
503,
16488+
"application/json"
16489+
>
16490+
| Response<
16491+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdMailArchive.Delete.Responses.Default.Content.ApplicationJson>,
16492+
"default",
16493+
"application/json"
16494+
>
16495+
> = {
16496+
path: "/v2/mail-addresses/{mailAddressId}/mail-archive",
16497+
method: "DELETE",
16498+
operationId: "mail-disable-mail-archive",
16499+
};

packages/mittwald/src/generated/v2/types.ts

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4203,6 +4203,17 @@ export declare module MittwaldAPIV2 {
42034203
TStatus
42044204
>;
42054205
}
4206+
4207+
namespace MailDisableMailArchive {
4208+
type RequestData = InferredRequestData<
4209+
typeof descriptors.mailDisableMailArchive
4210+
>;
4211+
type ResponseData<TStatus extends HttpStatus = 200> =
4212+
InferredResponseData<
4213+
typeof descriptors.mailDisableMailArchive,
4214+
TStatus
4215+
>;
4216+
}
42064217
}
42074218

42084219
namespace Components {
@@ -6903,6 +6914,20 @@ export declare module MittwaldAPIV2 {
69036914

69046915
export interface MailMailAddress {
69056916
address: string;
6917+
archive: {
6918+
/**
6919+
* shows if the mail-archive is enabled
6920+
*/
6921+
active: boolean;
6922+
/**
6923+
* maximum available mail-archive storage in bytes
6924+
*/
6925+
quota: number;
6926+
/**
6927+
* current mail-archive usage in bytes
6928+
*/
6929+
usedBytes: number;
6930+
};
69066931
autoResponder: {
69076932
active: boolean;
69086933
expiresAt?: string;
@@ -24971,6 +24996,7 @@ export declare module MittwaldAPIV2 {
2497124996
forwardAddress?: boolean;
2497224997
catchAll?: boolean;
2497324998
autoResponder?: boolean;
24999+
mailArchive?: boolean;
2497425000
limit?: number;
2497525001
skip?: number;
2497625002
page?: number;
@@ -33887,5 +33913,83 @@ export declare module MittwaldAPIV2 {
3388733913
}
3388833914
}
3388933915
}
33916+
33917+
namespace V2MailAddressesMailAddressIdMailArchive {
33918+
namespace Delete {
33919+
namespace Parameters {
33920+
export type Path = {
33921+
mailAddressId: string;
33922+
};
33923+
33924+
export type Header =
33925+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
33926+
33927+
export type Query = {};
33928+
}
33929+
namespace Responses {
33930+
namespace $204 {
33931+
namespace Content {
33932+
export type Empty = unknown;
33933+
}
33934+
}
33935+
33936+
namespace $400 {
33937+
namespace Content {
33938+
export interface ApplicationJson {
33939+
[k: string]: unknown;
33940+
}
33941+
}
33942+
}
33943+
33944+
namespace $403 {
33945+
namespace Content {
33946+
export interface ApplicationJson {
33947+
[k: string]: unknown;
33948+
}
33949+
}
33950+
}
33951+
33952+
namespace $404 {
33953+
namespace Content {
33954+
export interface ApplicationJson {
33955+
[k: string]: unknown;
33956+
}
33957+
}
33958+
}
33959+
33960+
namespace $429 {
33961+
namespace Content {
33962+
export interface ApplicationJson {
33963+
[k: string]: unknown;
33964+
}
33965+
}
33966+
}
33967+
33968+
namespace $500 {
33969+
namespace Content {
33970+
export interface ApplicationJson {
33971+
[k: string]: unknown;
33972+
}
33973+
}
33974+
}
33975+
33976+
namespace $503 {
33977+
namespace Content {
33978+
export interface ApplicationJson {
33979+
[k: string]: unknown;
33980+
}
33981+
}
33982+
}
33983+
33984+
namespace Default {
33985+
namespace Content {
33986+
export interface ApplicationJson {
33987+
[k: string]: unknown;
33988+
}
33989+
}
33990+
}
33991+
}
33992+
}
33993+
}
3389033994
}
3389133995
}

0 commit comments

Comments
 (0)