@mittwald/api-client 0.0.0-development-745a848-20251209 → 0.0.0-development-b5b8869-20251212

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.
@@ -48,8 +48,10 @@ const buildBackupApi = (baseClient) => ({
48
48
  getProjectBackupSchedule: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
49
49
  /** Get a ProjectBackup. */
50
50
  getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
51
- /** Get table of contents for a ProjectBackup. */
51
+ /** List paths for a ProjectBackup. */
52
52
  getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
53
+ /** List database dump's for a ProjectBackup. */
54
+ getProjectBackupDatabaseDumps: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDatabaseDumps, baseClient.backup.getProjectBackupDatabaseDumps).getApiResource,
53
55
  });
54
56
  const buildContainerApi = (baseClient) => ({
55
57
  /** List Registries belonging to a Project. */
@@ -112,6 +114,8 @@ const buildContractApi = (baseClient) => ({
112
114
  orderListCustomerOrders: new ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
113
115
  /** Get list of Orders of a Project. */
114
116
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
117
+ /** Return the AI Hosting Contract for the given Customer. */
118
+ getDetailOfContractByAiHosting: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByAiHosting, baseClient.contract.getDetailOfContractByAiHosting).getApiResource,
115
119
  });
116
120
  const buildMarketplaceApi = (baseClient) => ({
117
121
  /** Get a Contributor. */
@@ -86,12 +86,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
86
86
  getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
87
87
  /** Delete a ProjectBackup. */
88
88
  deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
89
- /** Get table of contents for a ProjectBackup. */
89
+ /** List paths for a ProjectBackup. */
90
90
  getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
91
- /** Restore a ProjectBackup's path. */
92
- requestProjectBackupRestorePath: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestorePath),
93
91
  /** Change the description of a ProjectBackup. */
94
92
  updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
93
+ /** List database dump's for a ProjectBackup. */
94
+ getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
95
+ /** Restore a ProjectBackup (path or database). */
96
+ requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
95
97
  };
96
98
  /** The container API allows you to manage your stacks, containers, volumes and registries. */
97
99
  container = {
@@ -202,6 +204,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
202
204
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
203
205
  /** Preview TariffChange. */
204
206
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
207
+ /** Return the AI Hosting Contract for the given Customer. */
208
+ getDetailOfContractByAiHosting: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByAiHosting),
205
209
  };
206
210
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
207
211
  marketplace = {
@@ -220,18 +220,12 @@ export const backupDeleteProjectBackup = {
220
220
  method: "DELETE",
221
221
  operationId: "backup-delete-project-backup",
222
222
  };
223
- /** Get table of contents for a ProjectBackup. */
223
+ /** List paths for a ProjectBackup. */
224
224
  export const backupGetProjectBackupDirectories = {
225
225
  path: "/v2/project-backups/{projectBackupId}/path",
226
226
  method: "GET",
227
227
  operationId: "backup-get-project-backup-directories",
228
228
  };
229
- /** Restore a ProjectBackup's path. */
230
- export const backupRequestProjectBackupRestorePath = {
231
- path: "/v2/project-backups/{projectBackupId}/restore-path",
232
- method: "POST",
233
- operationId: "backup-request-project-backup-restore-path",
234
- };
235
229
  /** Change the description of a ProjectBackup. */
236
230
  export const backupUpdateProjectBackupDescription = {
237
231
  path: "/v2/project-backups/{projectBackupId}/description",
@@ -2722,3 +2716,21 @@ export const aiHostingProjectGetUsage = {
2722
2716
  method: "GET",
2723
2717
  operationId: "ai-hosting-project-get-usage",
2724
2718
  };
2719
+ /** List database dump's for a ProjectBackup. */
2720
+ export const backupGetProjectBackupDatabaseDumps = {
2721
+ path: "/v2/project-backups/{projectBackupId}/database-dumps",
2722
+ method: "GET",
2723
+ operationId: "backup-get-project-backup-database-dumps",
2724
+ };
2725
+ /** Restore a ProjectBackup (path or database). */
2726
+ export const backupRequestProjectBackupRestore = {
2727
+ path: "/v2/project-backups/{projectBackupId}/restore",
2728
+ method: "POST",
2729
+ operationId: "backup-request-project-backup-restore",
2730
+ };
2731
+ /** Return the AI Hosting Contract for the given Customer. */
2732
+ export const contractGetDetailOfContractByAiHosting = {
2733
+ path: "/v2/customers/{customerId}/ai-hosting/contract",
2734
+ method: "GET",
2735
+ operationId: "contract-get-detail-of-contract-by-ai-hosting",
2736
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '0.0.0-development-28684d6-20251208';
1
+ export const MittwaldAPIClientVersion = '4.273.0';
@@ -305,6 +305,7 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
305
305
  searchTerm?: string | undefined;
306
306
  withExportsOnly?: boolean | undefined;
307
307
  sortOrder?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupBackupSortOrder | undefined;
308
+ withRestoresOnly?: boolean | undefined;
308
309
  limit?: number | undefined;
309
310
  skip?: number | undefined;
310
311
  page?: number | undefined;
@@ -344,10 +345,11 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
344
345
  parentId?: string | undefined;
345
346
  projectId: string;
346
347
  requestedAt: string;
347
- restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
348
+ restore?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestore | undefined;
349
+ restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePathDeprecated | undefined;
348
350
  status: string;
349
351
  }>;
350
- /** Get table of contents for a ProjectBackup. */
352
+ /** List paths for a ProjectBackup. */
351
353
  getProjectBackupDirectories: (conf: {
352
354
  projectBackupId: string;
353
355
  headers?: {
@@ -369,6 +371,16 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
369
371
  size: number;
370
372
  target?: string | undefined;
371
373
  }>;
374
+ /** List database dump's for a ProjectBackup. */
375
+ getProjectBackupDatabaseDumps: (conf: {
376
+ projectBackupId: string;
377
+ headers?: {
378
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
379
+ "x-access-token"?: string | undefined;
380
+ } | undefined;
381
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
382
+ databases: string[];
383
+ }>;
372
384
  };
373
385
  declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
374
386
  /** List Registries belonging to a Project. */
@@ -901,6 +913,21 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
901
913
  templateNames?: string[] | undefined;
902
914
  } | undefined;
903
915
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
916
+ /** Return the AI Hosting Contract for the given Customer. */
917
+ getDetailOfContractByAiHosting: (conf: {
918
+ customerId: string;
919
+ headers?: {
920
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
921
+ "x-access-token"?: string | undefined;
922
+ } | undefined;
923
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
924
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
925
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
926
+ contractId: string;
927
+ contractNumber: string;
928
+ customerId: string;
929
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
930
+ }>;
904
931
  };
905
932
  declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
906
933
  /** Get a Contributor. */
@@ -1608,6 +1635,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
1608
1635
  isAllowedToPlaceOrders?: boolean | undefined;
1609
1636
  isBanned?: boolean | undefined;
1610
1637
  isInDefaultOfPayment?: boolean | undefined;
1638
+ is_mail_address_invalid?: boolean | undefined;
1611
1639
  levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
1612
1640
  memberCount: number;
1613
1641
  name: string;
@@ -3338,10 +3366,10 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
3338
3366
  isBlocked: boolean;
3339
3367
  key: string;
3340
3368
  keyId: string;
3341
- limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3342
3369
  models: string[];
3343
3370
  name: string;
3344
3371
  projectId?: string | undefined;
3372
+ rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3345
3373
  tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
3346
3374
  }>;
3347
3375
  /** Get a key of a project. */
@@ -3357,10 +3385,10 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
3357
3385
  isBlocked: boolean;
3358
3386
  key: string;
3359
3387
  keyId: string;
3360
- limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3361
3388
  models: string[];
3362
3389
  name: string;
3363
3390
  projectId?: string | undefined;
3391
+ rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3364
3392
  tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
3365
3393
  }>;
3366
3394
  /** Get a list of already created keys. */
@@ -3384,8 +3412,8 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
3384
3412
  customerId: string;
3385
3413
  deletedAt?: string | undefined;
3386
3414
  keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
3387
- limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3388
3415
  nextTokenReset: string;
3416
+ rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3389
3417
  tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsageBig;
3390
3418
  topUsages?: {
3391
3419
  keyId?: string;