@mittwald/api-client 0.0.0-development-f99f5ee-20251020 → 0.0.0-development-29c5263-20251024

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
+ /** Get paths for a ProjectBackup. */
52
52
  getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
53
+ /** Get databases for a ProjectBackup. */
54
+ getProjectBackupDatabases: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDatabases, baseClient.backup.getProjectBackupDatabases).getApiResource,
53
55
  });
54
56
  const buildContainerApi = (baseClient) => ({
55
57
  /** List Registries belonging to a Project. */
@@ -188,6 +190,8 @@ const buildCronjobApi = (baseClient) => ({
188
190
  getCronjob: new ApiCallAsyncResourceFactory(descriptors.cronjobGetCronjob, baseClient.cronjob.getCronjob).getApiResource,
189
191
  /** Get a CronjobExecution. */
190
192
  getExecution: new ApiCallAsyncResourceFactory(descriptors.cronjobGetExecution, baseClient.cronjob.getExecution).getApiResource,
193
+ /** Get a CronjobExecution analysis for failed executions. */
194
+ getExecutionAnalysis: new ApiCallAsyncResourceFactory(descriptors.cronjobGetExecutionAnalysis, baseClient.cronjob.getExecutionAnalysis).getApiResource,
191
195
  });
192
196
  const buildCustomerApi = (baseClient) => ({
193
197
  /** List Invites belonging to a Customer. */
@@ -86,12 +86,16 @@ 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
+ /** Get paths for a ProjectBackup. */
90
90
  getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
91
91
  /** Restore a ProjectBackup's path. */
92
92
  requestProjectBackupRestorePath: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestorePath),
93
93
  /** Change the description of a ProjectBackup. */
94
94
  updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
95
+ /** Restore a ProjectBackup's database. */
96
+ requestProjectBackupRestoreDatabase: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestoreDatabase),
97
+ /** Get databases for a ProjectBackup. */
98
+ getProjectBackupDatabases: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabases),
95
99
  };
96
100
  /** The container API allows you to manage your stacks, containers, volumes and registries. */
97
101
  container = {
@@ -381,6 +385,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
381
385
  getExecution: this.requestFunctionFactory(descriptors.cronjobGetExecution),
382
386
  /** Update a Cronjob's app id. */
383
387
  updateCronjobAppId: this.requestFunctionFactory(descriptors.cronjobUpdateCronjobAppId),
388
+ /** Get a CronjobExecution analysis for failed executions. */
389
+ getExecutionAnalysis: this.requestFunctionFactory(descriptors.cronjobGetExecutionAnalysis),
384
390
  };
385
391
  /** The customer API allows you to manage your own organizations and users. */
386
392
  customer = {
@@ -437,6 +443,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
437
443
  };
438
444
  /** The database API allows you to manage your databases, like MySQL and Redis databases. */
439
445
  database = {
446
+ /** Copy a MySQLDatabase with a MySQLUser. */
447
+ copyMysqlDatabase: this.requestFunctionFactory(descriptors.databaseCopyMysqlDatabase),
440
448
  /** List MySQLDatabases belonging to a Project. */
441
449
  listMysqlDatabases: this.requestFunctionFactory(descriptors.databaseListMysqlDatabases),
442
450
  /** Create a MySQLDatabase with a MySQLUser. */
@@ -485,8 +493,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
485
493
  updateRedisDatabaseConfiguration: this.requestFunctionFactory(descriptors.databaseUpdateRedisDatabaseConfiguration),
486
494
  /** Update a RedisDatabase's description. */
487
495
  updateRedisDatabaseDescription: this.requestFunctionFactory(descriptors.databaseUpdateRedisDatabaseDescription),
488
- /** Copy a MySQLDatabase with a MySQLUser. */
489
- copyMysqlDatabase: this.requestFunctionFactory(descriptors.databaseCopyMysqlDatabase),
490
496
  };
491
497
  /** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */
492
498
  domain = {
@@ -574,6 +580,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
574
580
  sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
575
581
  /** Update the certificate of a CertificateRequest. */
576
582
  sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
583
+ /** Create a scheduled deletion of a Domain. */
584
+ createScheduledDeletion: this.requestFunctionFactory(descriptors.domainCreateScheduledDeletion),
585
+ /** Cancel a scheduled deletion of a Domain. */
586
+ cancelScheduledDeletion: this.requestFunctionFactory(descriptors.domainCancelScheduledDeletion),
577
587
  };
578
588
  /** The mail API allows you to manage your mail accounts. */
579
589
  mail = {
@@ -220,7 +220,7 @@ 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
+ /** Get paths for a ProjectBackup. */
224
224
  export const backupGetProjectBackupDirectories = {
225
225
  path: "/v2/project-backups/{projectBackupId}/path",
226
226
  method: "GET",
@@ -868,6 +868,12 @@ export const customerResendCustomerInviteMail = {
868
868
  method: "POST",
869
869
  operationId: "customer-resend-customer-invite-mail",
870
870
  };
871
+ /** Copy a MySQLDatabase with a MySQLUser. */
872
+ export const databaseCopyMysqlDatabase = {
873
+ path: "/v2/mysql-databases/{mysqlDatabaseId}/actions/copy",
874
+ method: "POST",
875
+ operationId: "database-copy-mysql-database",
876
+ };
871
877
  /** List MySQLDatabases belonging to a Project. */
872
878
  export const databaseListMysqlDatabases = {
873
879
  path: "/v2/projects/{projectId}/mysql-databases",
@@ -2608,9 +2614,33 @@ export const verificationVerifyCompany = {
2608
2614
  method: "POST",
2609
2615
  operationId: "verification-verify-company",
2610
2616
  };
2611
- /** Copy a MySQLDatabase with a MySQLUser. */
2612
- export const databaseCopyMysqlDatabase = {
2613
- path: "/v2/mysql-databases/{mysqlDatabaseId}/actions/copy",
2617
+ /** Create a scheduled deletion of a Domain. */
2618
+ export const domainCreateScheduledDeletion = {
2619
+ path: "/v2/domains/{domainId}/scheduled-deletion",
2614
2620
  method: "POST",
2615
- operationId: "database-copy-mysql-database",
2621
+ operationId: "domain-create-scheduled-deletion",
2622
+ };
2623
+ /** Cancel a scheduled deletion of a Domain. */
2624
+ export const domainCancelScheduledDeletion = {
2625
+ path: "/v2/domains/{domainId}/scheduled-deletion",
2626
+ method: "DELETE",
2627
+ operationId: "domain-cancel-scheduled-deletion",
2628
+ };
2629
+ /** Get a CronjobExecution analysis for failed executions. */
2630
+ export const cronjobGetExecutionAnalysis = {
2631
+ path: "/v2/cronjobs/{cronjobId}/executions/{executionId}/analysis",
2632
+ method: "GET",
2633
+ operationId: "cronjob-get-execution-analysis",
2634
+ };
2635
+ /** Restore a ProjectBackup's database. */
2636
+ export const backupRequestProjectBackupRestoreDatabase = {
2637
+ path: "/v2/project-backups/{projectBackupId}/restore-database",
2638
+ method: "POST",
2639
+ operationId: "backup-request-project-backup-restore-database",
2640
+ };
2641
+ /** Get databases for a ProjectBackup. */
2642
+ export const backupGetProjectBackupDatabases = {
2643
+ path: "/v2/project-backups/{projectBackupId}/database",
2644
+ method: "GET",
2645
+ operationId: "backup-get-project-backup-databases",
2616
2646
  };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '0.0.0-development-b0a4b41-20251017';
1
+ export const MittwaldAPIClientVersion = '4.243.0';
@@ -347,7 +347,7 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
347
347
  restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
348
348
  status: string;
349
349
  }>;
350
- /** Get table of contents for a ProjectBackup. */
350
+ /** Get paths for a ProjectBackup. */
351
351
  getProjectBackupDirectories: (conf: {
352
352
  projectBackupId: string;
353
353
  headers?: {
@@ -369,6 +369,21 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
369
369
  size: number;
370
370
  target?: string | undefined;
371
371
  }>;
372
+ /** Get databases for a ProjectBackup. */
373
+ getProjectBackupDatabases: (conf: {
374
+ projectBackupId: string;
375
+ headers?: {
376
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
377
+ "x-access-token"?: string | undefined;
378
+ } | undefined;
379
+ queryParameters?: {
380
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
381
+ databaseName?: string | undefined;
382
+ } | undefined;
383
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
384
+ databases: string[];
385
+ projectBackupId: string;
386
+ }>;
372
387
  };
373
388
  declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
374
389
  /** List Registries belonging to a Project. */
@@ -485,6 +500,7 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
485
500
  deployedState: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceState;
486
501
  description: string;
487
502
  id: string;
503
+ limits?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerResources | undefined;
488
504
  message?: string | undefined;
489
505
  pendingState: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceState;
490
506
  projectId: string;
@@ -1485,6 +1501,19 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
1485
1501
  id?: string;
1486
1502
  } | undefined;
1487
1503
  }>;
1504
+ /** Get a CronjobExecution analysis for failed executions. */
1505
+ getExecutionAnalysis: (conf: {
1506
+ executionId: string;
1507
+ cronjobId: string;
1508
+ headers?: {
1509
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1510
+ "x-access-token"?: string | undefined;
1511
+ } | undefined;
1512
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1513
+ issues?: string[] | undefined;
1514
+ message: string;
1515
+ recommendation?: string | undefined;
1516
+ }>;
1488
1517
  };
1489
1518
  declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
1490
1519
  /** List Invites belonging to a Customer. */
@@ -1883,6 +1912,7 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
1883
1912
  nameservers: string[];
1884
1913
  processes?: import("./types.js").MittwaldAPIV2.Components.Schemas.DomainProcess[] | undefined;
1885
1914
  projectId: string;
1915
+ scheduledDeletionDate?: string | undefined;
1886
1916
  transferInAuthCode?: string | undefined;
1887
1917
  usesDefaultNameserver: boolean;
1888
1918
  }>;
@@ -2916,7 +2946,6 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
2916
2946
  features?: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectProjectFeature[] | undefined;
2917
2947
  id: string;
2918
2948
  imageRefId?: string | undefined;
2919
- ipAddress?: string | undefined;
2920
2949
  isReady: boolean;
2921
2950
  projectHostingId?: string | undefined;
2922
2951
  readiness: import("./types.js").MittwaldAPIV2.Components.Schemas.ProjectDeprecatedProjectReadinessStatus;