@mittwald/api-client 4.190.0 → 4.191.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300,6 +300,8 @@ const buildMailApi = (baseClient) => ({
300
300
  getMailAddress: new ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
301
301
  /** List mail settings of a Project. */
302
302
  listProjectMailSettings: new ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
303
+ /** List backups belonging to a MailAddress. */
304
+ listBackupsForMailAddress: new ApiCallAsyncResourceFactory(descriptors.mailListBackupsForMailAddress, baseClient.mail.listBackupsForMailAddress).getApiResource,
303
305
  });
304
306
  const buildMiscApi = (baseClient) => ({
305
307
  /** Get a list of currently active llm models. */
@@ -587,6 +587,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
587
587
  updateMailAddressCatchAll: this.requestFunctionFactory(descriptors.mailUpdateMailAddressCatchAll),
588
588
  /** Update a mail setting of a Project. */
589
589
  updateProjectMailSetting: this.requestFunctionFactory(descriptors.mailUpdateProjectMailSetting),
590
+ /** List backups belonging to a MailAddress. */
591
+ listBackupsForMailAddress: this.requestFunctionFactory(descriptors.mailListBackupsForMailAddress),
592
+ /** Recover emails for a MailAddress from a backup. */
593
+ recoverMailAddressEmails: this.requestFunctionFactory(descriptors.mailRecoverMailAddressEmails),
590
594
  };
591
595
  /** The notification API allows you to manage your notifications. */
592
596
  notification = {
@@ -2482,3 +2482,15 @@ export const verificationVerifyCompany = {
2482
2482
  method: "POST",
2483
2483
  operationId: "verification-verify-company",
2484
2484
  };
2485
+ /** List backups belonging to a MailAddress. */
2486
+ export const mailListBackupsForMailAddress = {
2487
+ path: "/v2/mail-addresses/{mailAddressId}/backups",
2488
+ method: "GET",
2489
+ operationId: "mail-list-backups-for-mail-address",
2490
+ };
2491
+ /** Recover emails for a MailAddress from a backup. */
2492
+ export const mailRecoverMailAddressEmails = {
2493
+ path: "/v2/mail-addresses/{mailAddressId}/backups/{backupId}/recovery",
2494
+ method: "POST",
2495
+ operationId: "mail-recover-mail-address-emails",
2496
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.189.0';
1
+ export const MittwaldAPIClientVersion = '4.190.0';
@@ -2325,6 +2325,14 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
2325
2325
  projectId: string;
2326
2326
  whitelist: string[];
2327
2327
  }>;
2328
+ /** List backups belonging to a MailAddress. */
2329
+ listBackupsForMailAddress: (conf: {
2330
+ mailAddressId: string;
2331
+ headers?: {
2332
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2333
+ "x-access-token"?: string | undefined;
2334
+ } | undefined;
2335
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddressBackup[]>;
2328
2336
  };
2329
2337
  declare const buildMiscApi: (baseClient: MittwaldAPIV2Client) => {
2330
2338
  /** Get a list of currently active llm models. */
@@ -18072,6 +18072,113 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
18072
18072
  }, 500, "application/json"> | import("@mittwald/api-client-commons").Response<{
18073
18073
  [x: string]: unknown;
18074
18074
  }, 503, "application/json">>>;
18075
+ /** List backups belonging to a MailAddress. */
18076
+ listBackupsForMailAddress: (request: {
18077
+ mailAddressId: string;
18078
+ headers?: {
18079
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
18080
+ "x-access-token"?: string | undefined;
18081
+ } | undefined;
18082
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
18083
+ headers?: Partial<{
18084
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18085
+ }>;
18086
+ } & {
18087
+ pathParameters: {
18088
+ mailAddressId: string;
18089
+ };
18090
+ } & {
18091
+ headers: {
18092
+ "x-access-token"?: string | undefined;
18093
+ } & Partial<{
18094
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18095
+ }>;
18096
+ }, import("@mittwald/api-client-commons").Response<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddressBackup[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
18097
+ [x: string]: unknown;
18098
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
18099
+ [x: string]: unknown;
18100
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
18101
+ [x: string]: unknown;
18102
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
18103
+ [x: string]: unknown;
18104
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
18105
+ [x: string]: unknown;
18106
+ }, 500, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
18107
+ headers?: Partial<{
18108
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18109
+ }>;
18110
+ } & {
18111
+ pathParameters: {
18112
+ mailAddressId: string;
18113
+ };
18114
+ } & {
18115
+ headers: {
18116
+ "x-access-token"?: string | undefined;
18117
+ } & Partial<{
18118
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18119
+ }>;
18120
+ }, import("@mittwald/api-client-commons").Response<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddressBackup[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
18121
+ [x: string]: unknown;
18122
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
18123
+ [x: string]: unknown;
18124
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
18125
+ [x: string]: unknown;
18126
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
18127
+ [x: string]: unknown;
18128
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
18129
+ [x: string]: unknown;
18130
+ }, 500, "application/json">>>;
18131
+ /** Recover emails for a MailAddress from a backup. */
18132
+ recoverMailAddressEmails: (request: {
18133
+ mailAddressId: string;
18134
+ backupId: string;
18135
+ headers?: {
18136
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
18137
+ "x-access-token"?: string | undefined;
18138
+ } | undefined;
18139
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
18140
+ headers?: Partial<{
18141
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18142
+ }>;
18143
+ } & {
18144
+ pathParameters: {
18145
+ mailAddressId: string;
18146
+ backupId: string;
18147
+ };
18148
+ } & {
18149
+ headers: {
18150
+ "x-access-token"?: string | undefined;
18151
+ } & Partial<{
18152
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18153
+ }>;
18154
+ }, import("@mittwald/api-client-commons").Response<{}, 204, "empty"> | import("@mittwald/api-client-commons").Response<{
18155
+ [x: string]: unknown;
18156
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
18157
+ [x: string]: unknown;
18158
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
18159
+ [x: string]: unknown;
18160
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
18161
+ headers?: Partial<{
18162
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18163
+ }>;
18164
+ } & {
18165
+ pathParameters: {
18166
+ mailAddressId: string;
18167
+ backupId: string;
18168
+ };
18169
+ } & {
18170
+ headers: {
18171
+ "x-access-token"?: string | undefined;
18172
+ } & Partial<{
18173
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
18174
+ }>;
18175
+ }, import("@mittwald/api-client-commons").Response<{}, 204, "empty"> | import("@mittwald/api-client-commons").Response<{
18176
+ [x: string]: unknown;
18177
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
18178
+ [x: string]: unknown;
18179
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
18180
+ [x: string]: unknown;
18181
+ }, 429, "application/json">>>;
18075
18182
  };
18076
18183
  /** The notification API allows you to manage your notifications. */
18077
18184
  readonly notification: {
@@ -831,3 +831,7 @@ export declare const verificationDetectPhishingEmail: OpenAPIOperation<RequestTy
831
831
  export declare const verificationVerifyAddress: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$500.Content.Empty>, 500, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
832
832
  /** Check if a company exists. */
833
833
  export declare const verificationVerifyCompany: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$412.Content.Empty>, 412, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$500.Content.Empty>, 500, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
834
+ /** List backups belonging to a MailAddress. */
835
+ export declare const mailListBackupsForMailAddress: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackups.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
836
+ /** Recover emails for a MailAddress from a backup. */
837
+ export declare const mailRecoverMailAddressEmails: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdBackupsBackupIdRecovery.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -1658,6 +1658,14 @@ export declare namespace MittwaldAPIV2 {
1658
1658
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
1659
1659
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
1660
1660
  }
1661
+ namespace MailListBackupsForMailAddress {
1662
+ type RequestData = InferredRequestData<typeof descriptors.mailListBackupsForMailAddress>;
1663
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailListBackupsForMailAddress, TStatus>;
1664
+ }
1665
+ namespace MailRecoverMailAddressEmails {
1666
+ type RequestData = InferredRequestData<typeof descriptors.mailRecoverMailAddressEmails>;
1667
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailRecoverMailAddressEmails, TStatus>;
1668
+ }
1661
1669
  }
1662
1670
  namespace Components {
1663
1671
  namespace Schemas {
@@ -26113,5 +26121,112 @@ export declare namespace MittwaldAPIV2 {
26113
26121
  }
26114
26122
  }
26115
26123
  }
26124
+ namespace V2MailAddressesMailAddressIdBackups {
26125
+ namespace Get {
26126
+ namespace Parameters {
26127
+ type Path = {
26128
+ mailAddressId: string;
26129
+ };
26130
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
26131
+ type Query = {};
26132
+ }
26133
+ namespace Responses {
26134
+ namespace $200 {
26135
+ namespace Content {
26136
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.MailMailAddressBackup[];
26137
+ }
26138
+ }
26139
+ namespace $400 {
26140
+ namespace Content {
26141
+ interface ApplicationJson {
26142
+ [k: string]: unknown;
26143
+ }
26144
+ }
26145
+ }
26146
+ namespace $403 {
26147
+ namespace Content {
26148
+ interface ApplicationJson {
26149
+ [k: string]: unknown;
26150
+ }
26151
+ }
26152
+ }
26153
+ namespace $404 {
26154
+ namespace Content {
26155
+ interface ApplicationJson {
26156
+ [k: string]: unknown;
26157
+ }
26158
+ }
26159
+ }
26160
+ namespace $429 {
26161
+ namespace Content {
26162
+ interface ApplicationJson {
26163
+ [k: string]: unknown;
26164
+ }
26165
+ }
26166
+ }
26167
+ namespace $500 {
26168
+ namespace Content {
26169
+ interface ApplicationJson {
26170
+ [k: string]: unknown;
26171
+ }
26172
+ }
26173
+ }
26174
+ namespace Default {
26175
+ namespace Content {
26176
+ interface ApplicationJson {
26177
+ [k: string]: unknown;
26178
+ }
26179
+ }
26180
+ }
26181
+ }
26182
+ }
26183
+ }
26184
+ namespace V2MailAddressesMailAddressIdBackupsBackupIdRecovery {
26185
+ namespace Post {
26186
+ namespace Parameters {
26187
+ type Path = {
26188
+ mailAddressId: string;
26189
+ backupId: string;
26190
+ };
26191
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
26192
+ type Query = {};
26193
+ }
26194
+ namespace Responses {
26195
+ namespace $204 {
26196
+ namespace Content {
26197
+ type Empty = unknown;
26198
+ }
26199
+ }
26200
+ namespace $400 {
26201
+ namespace Content {
26202
+ interface ApplicationJson {
26203
+ [k: string]: unknown;
26204
+ }
26205
+ }
26206
+ }
26207
+ namespace $404 {
26208
+ namespace Content {
26209
+ interface ApplicationJson {
26210
+ [k: string]: unknown;
26211
+ }
26212
+ }
26213
+ }
26214
+ namespace $429 {
26215
+ namespace Content {
26216
+ interface ApplicationJson {
26217
+ [k: string]: unknown;
26218
+ }
26219
+ }
26220
+ }
26221
+ namespace Default {
26222
+ namespace Content {
26223
+ interface ApplicationJson {
26224
+ [k: string]: unknown;
26225
+ }
26226
+ }
26227
+ }
26228
+ }
26229
+ }
26230
+ }
26116
26231
  }
26117
26232
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.189.0';
1
+ export declare const MittwaldAPIClientVersion = '4.190.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.190.0",
3
+ "version": "4.191.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "2fe1aae437fec0e15303f1503ce198722704b4aa"
83
+ "gitHead": "554b75b920c806af218acded56837b149b77e0ad"
84
84
  }