@mittwald/api-client 0.0.0-development-4248bfc-20260120 → 0.0.0-development-c3744f8-20260122
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.
- package/dist/esm/generated/v2/client-react.js +17 -17
- package/dist/esm/generated/v2/client.js +33 -35
- package/dist/esm/generated/v2/descriptors.js +90 -96
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +100 -100
- package/dist/types/generated/v2/client.d.ts +11312 -11377
- package/dist/types/generated/v2/descriptors.d.ts +31 -33
- package/dist/types/generated/v2/types.d.ts +6235 -6285
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -55,20 +55,6 @@ const buildArticleApi = (baseClient) => ({
|
|
|
55
55
|
/** List Articles. */
|
|
56
56
|
listArticles: new ApiCallAsyncResourceFactory(descriptors.articleListArticles, baseClient.article.listArticles).getApiResource,
|
|
57
57
|
});
|
|
58
|
-
const buildBackupApi = (baseClient) => ({
|
|
59
|
-
/** List BackupSchedules belonging to a Project. */
|
|
60
|
-
listProjectBackupSchedules: new ApiCallAsyncResourceFactory(descriptors.backupListProjectBackupSchedules, baseClient.backup.listProjectBackupSchedules).getApiResource,
|
|
61
|
-
/** List Backups belonging to a Project. */
|
|
62
|
-
listProjectBackups: new ApiCallAsyncResourceFactory(descriptors.backupListProjectBackups, baseClient.backup.listProjectBackups).getApiResource,
|
|
63
|
-
/** Get a ProjectBackupSchedule. */
|
|
64
|
-
getProjectBackupSchedule: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
|
|
65
|
-
/** Get a ProjectBackup. */
|
|
66
|
-
getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
|
|
67
|
-
/** List database dump's for a ProjectBackup. */
|
|
68
|
-
getProjectBackupDatabaseDumps: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDatabaseDumps, baseClient.backup.getProjectBackupDatabaseDumps).getApiResource,
|
|
69
|
-
/** List paths for a ProjectBackup. */
|
|
70
|
-
getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
|
|
71
|
-
});
|
|
72
58
|
const buildContainerApi = (baseClient) => ({
|
|
73
59
|
/** List Registries belonging to a Project. */
|
|
74
60
|
listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
|
|
@@ -453,6 +439,20 @@ const buildSshsftpUserApi = (baseClient) => ({
|
|
|
453
439
|
/** Get an SSHUser. */
|
|
454
440
|
sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
|
|
455
441
|
});
|
|
442
|
+
const buildBackupApi = (baseClient) => ({
|
|
443
|
+
/** Get a ProjectBackupSchedule. */
|
|
444
|
+
getProjectBackupSchedule: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
|
|
445
|
+
/** List database dump's for a ProjectBackup. */
|
|
446
|
+
getProjectBackupDatabaseDumpsV2Experimental: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDatabaseDumpsV2Experimental, baseClient.backup.getProjectBackupDatabaseDumpsV2Experimental).getApiResource,
|
|
447
|
+
/** List BackupSchedules belonging to a Project. */
|
|
448
|
+
listProjectBackupSchedules: new ApiCallAsyncResourceFactory(descriptors.backupListProjectBackupSchedules, baseClient.backup.listProjectBackupSchedules).getApiResource,
|
|
449
|
+
/** List Backups belonging to a Project. */
|
|
450
|
+
listProjectBackups: new ApiCallAsyncResourceFactory(descriptors.backupListProjectBackups, baseClient.backup.listProjectBackups).getApiResource,
|
|
451
|
+
/** List paths for a ProjectBackup. */
|
|
452
|
+
getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
|
|
453
|
+
/** Get a ProjectBackup. */
|
|
454
|
+
getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
|
|
455
|
+
});
|
|
456
456
|
export class MittwaldAPIV2ClientReact {
|
|
457
457
|
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
458
458
|
aiHosting;
|
|
@@ -460,8 +460,6 @@ export class MittwaldAPIV2ClientReact {
|
|
|
460
460
|
app;
|
|
461
461
|
/** The article API allows you to read article information. */
|
|
462
462
|
article;
|
|
463
|
-
/** The backup API allows you to manage your project backups. */
|
|
464
|
-
backup;
|
|
465
463
|
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
466
464
|
container;
|
|
467
465
|
/** The contract API allows you to manage your contracts and orders */
|
|
@@ -500,11 +498,12 @@ export class MittwaldAPIV2ClientReact {
|
|
|
500
498
|
projectFileSystem;
|
|
501
499
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
502
500
|
sshsftpUser;
|
|
501
|
+
/** The backup API allows you to manage your project backups. */
|
|
502
|
+
backup;
|
|
503
503
|
constructor(baseClient) {
|
|
504
504
|
this.aiHosting = buildAiHostingApi(baseClient);
|
|
505
505
|
this.app = buildAppApi(baseClient);
|
|
506
506
|
this.article = buildArticleApi(baseClient);
|
|
507
|
-
this.backup = buildBackupApi(baseClient);
|
|
508
507
|
this.container = buildContainerApi(baseClient);
|
|
509
508
|
this.contract = buildContractApi(baseClient);
|
|
510
509
|
this.marketplace = buildMarketplaceApi(baseClient);
|
|
@@ -524,6 +523,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
524
523
|
this.project = buildProjectApi(baseClient);
|
|
525
524
|
this.projectFileSystem = buildProjectFileSystemApi(baseClient);
|
|
526
525
|
this.sshsftpUser = buildSshsftpUserApi(baseClient);
|
|
526
|
+
this.backup = buildBackupApi(baseClient);
|
|
527
527
|
}
|
|
528
528
|
static fromBaseClient(baseClient) {
|
|
529
529
|
return new MittwaldAPIV2ClientReact(baseClient);
|
|
@@ -91,41 +91,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
91
91
|
/** List Articles. */
|
|
92
92
|
listArticles: this.requestFunctionFactory(descriptors.articleListArticles),
|
|
93
93
|
};
|
|
94
|
-
/** The backup API allows you to manage your project backups. */
|
|
95
|
-
backup = {
|
|
96
|
-
/** Export a ProjectBackup for download. */
|
|
97
|
-
createProjectBackupExport: this.requestFunctionFactory(descriptors.backupCreateProjectBackupExport),
|
|
98
|
-
/** Delete a ProjectBackupExport. */
|
|
99
|
-
deleteProjectBackupExport: this.requestFunctionFactory(descriptors.backupDeleteProjectBackupExport),
|
|
100
|
-
/** List BackupSchedules belonging to a Project. */
|
|
101
|
-
listProjectBackupSchedules: this.requestFunctionFactory(descriptors.backupListProjectBackupSchedules),
|
|
102
|
-
/** Create a BackupSchedule for a Project. */
|
|
103
|
-
createProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupCreateProjectBackupSchedule),
|
|
104
|
-
/** List Backups belonging to a Project. */
|
|
105
|
-
listProjectBackups: this.requestFunctionFactory(descriptors.backupListProjectBackups),
|
|
106
|
-
/** Create a Backup of a Project. */
|
|
107
|
-
createProjectBackup: this.requestFunctionFactory(descriptors.backupCreateProjectBackup),
|
|
108
|
-
/** Get a ProjectBackupSchedule. */
|
|
109
|
-
getProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupGetProjectBackupSchedule),
|
|
110
|
-
/** Delete a ProjectBackupSchedule. */
|
|
111
|
-
deleteProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupDeleteProjectBackupSchedule),
|
|
112
|
-
/** Update a ProjectBackupSchedule. */
|
|
113
|
-
updateProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupSchedule),
|
|
114
|
-
/** Get a ProjectBackup. */
|
|
115
|
-
getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
|
|
116
|
-
/** Delete a ProjectBackup. */
|
|
117
|
-
deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
|
|
118
|
-
/** List database dump's for a ProjectBackup. */
|
|
119
|
-
getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
|
|
120
|
-
/** List paths for a ProjectBackup. */
|
|
121
|
-
getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
|
|
122
|
-
/** Restore a ProjectBackup's path. */
|
|
123
|
-
requestProjectBackupRestorePath: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestorePath),
|
|
124
|
-
/** Restore a ProjectBackup. */
|
|
125
|
-
requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
|
|
126
|
-
/** Change the description of a ProjectBackup. */
|
|
127
|
-
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
128
|
-
};
|
|
129
94
|
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
130
95
|
container = {
|
|
131
96
|
/** List Registries belonging to a Project. */
|
|
@@ -990,5 +955,38 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
990
955
|
/** Update an SSHUser. */
|
|
991
956
|
sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
|
|
992
957
|
};
|
|
958
|
+
/** The backup API allows you to manage your project backups. */
|
|
959
|
+
backup = {
|
|
960
|
+
/** Export a ProjectBackup for download. */
|
|
961
|
+
createProjectBackupExport: this.requestFunctionFactory(descriptors.backupCreateProjectBackupExport),
|
|
962
|
+
/** Delete a ProjectBackupExport. */
|
|
963
|
+
deleteProjectBackupExport: this.requestFunctionFactory(descriptors.backupDeleteProjectBackupExport),
|
|
964
|
+
/** Get a ProjectBackupSchedule. */
|
|
965
|
+
getProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupGetProjectBackupSchedule),
|
|
966
|
+
/** Delete a ProjectBackupSchedule. */
|
|
967
|
+
deleteProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupDeleteProjectBackupSchedule),
|
|
968
|
+
/** Update a ProjectBackupSchedule. */
|
|
969
|
+
updateProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupSchedule),
|
|
970
|
+
/** List database dump's for a ProjectBackup. */
|
|
971
|
+
getProjectBackupDatabaseDumpsV2Experimental: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumpsV2Experimental),
|
|
972
|
+
/** Restore a ProjectBackup. */
|
|
973
|
+
requestProjectBackupRestoreV2Experimental: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestoreV2Experimental),
|
|
974
|
+
/** List BackupSchedules belonging to a Project. */
|
|
975
|
+
listProjectBackupSchedules: this.requestFunctionFactory(descriptors.backupListProjectBackupSchedules),
|
|
976
|
+
/** Create a BackupSchedule for a Project. */
|
|
977
|
+
createProjectBackupSchedule: this.requestFunctionFactory(descriptors.backupCreateProjectBackupSchedule),
|
|
978
|
+
/** List Backups belonging to a Project. */
|
|
979
|
+
listProjectBackups: this.requestFunctionFactory(descriptors.backupListProjectBackups),
|
|
980
|
+
/** Create a Backup of a Project. */
|
|
981
|
+
createProjectBackup: this.requestFunctionFactory(descriptors.backupCreateProjectBackup),
|
|
982
|
+
/** List paths for a ProjectBackup. */
|
|
983
|
+
getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
|
|
984
|
+
/** Get a ProjectBackup. */
|
|
985
|
+
getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
|
|
986
|
+
/** Delete a ProjectBackup. */
|
|
987
|
+
deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
|
|
988
|
+
/** Change the description of a ProjectBackup. */
|
|
989
|
+
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
990
|
+
};
|
|
993
991
|
}
|
|
994
992
|
export default MittwaldAPIV2Client;
|
|
@@ -232,102 +232,6 @@ export const articleListArticles = {
|
|
|
232
232
|
method: "GET",
|
|
233
233
|
operationId: "article-list-articles",
|
|
234
234
|
};
|
|
235
|
-
/** Export a ProjectBackup for download. */
|
|
236
|
-
export const backupCreateProjectBackupExport = {
|
|
237
|
-
path: "/v2/project-backups/{projectBackupId}/export",
|
|
238
|
-
method: "POST",
|
|
239
|
-
operationId: "backup-create-project-backup-export",
|
|
240
|
-
};
|
|
241
|
-
/** Delete a ProjectBackupExport. */
|
|
242
|
-
export const backupDeleteProjectBackupExport = {
|
|
243
|
-
path: "/v2/project-backups/{projectBackupId}/export",
|
|
244
|
-
method: "DELETE",
|
|
245
|
-
operationId: "backup-delete-project-backup-export",
|
|
246
|
-
};
|
|
247
|
-
/** List BackupSchedules belonging to a Project. */
|
|
248
|
-
export const backupListProjectBackupSchedules = {
|
|
249
|
-
path: "/v2/projects/{projectId}/backup-schedules",
|
|
250
|
-
method: "GET",
|
|
251
|
-
operationId: "backup-list-project-backup-schedules",
|
|
252
|
-
};
|
|
253
|
-
/** Create a BackupSchedule for a Project. */
|
|
254
|
-
export const backupCreateProjectBackupSchedule = {
|
|
255
|
-
path: "/v2/projects/{projectId}/backup-schedules",
|
|
256
|
-
method: "POST",
|
|
257
|
-
operationId: "backup-create-project-backup-schedule",
|
|
258
|
-
};
|
|
259
|
-
/** List Backups belonging to a Project. */
|
|
260
|
-
export const backupListProjectBackups = {
|
|
261
|
-
path: "/v2/projects/{projectId}/backups",
|
|
262
|
-
method: "GET",
|
|
263
|
-
operationId: "backup-list-project-backups",
|
|
264
|
-
};
|
|
265
|
-
/** Create a Backup of a Project. */
|
|
266
|
-
export const backupCreateProjectBackup = {
|
|
267
|
-
path: "/v2/projects/{projectId}/backups",
|
|
268
|
-
method: "POST",
|
|
269
|
-
operationId: "backup-create-project-backup",
|
|
270
|
-
};
|
|
271
|
-
/** Get a ProjectBackupSchedule. */
|
|
272
|
-
export const backupGetProjectBackupSchedule = {
|
|
273
|
-
path: "/v2/project-backup-schedules/{projectBackupScheduleId}",
|
|
274
|
-
method: "GET",
|
|
275
|
-
operationId: "backup-get-project-backup-schedule",
|
|
276
|
-
};
|
|
277
|
-
/** Delete a ProjectBackupSchedule. */
|
|
278
|
-
export const backupDeleteProjectBackupSchedule = {
|
|
279
|
-
path: "/v2/project-backup-schedules/{projectBackupScheduleId}",
|
|
280
|
-
method: "DELETE",
|
|
281
|
-
operationId: "backup-delete-project-backup-schedule",
|
|
282
|
-
};
|
|
283
|
-
/** Update a ProjectBackupSchedule. */
|
|
284
|
-
export const backupUpdateProjectBackupSchedule = {
|
|
285
|
-
path: "/v2/project-backup-schedules/{projectBackupScheduleId}",
|
|
286
|
-
method: "PATCH",
|
|
287
|
-
operationId: "backup-update-project-backup-schedule",
|
|
288
|
-
};
|
|
289
|
-
/** Get a ProjectBackup. */
|
|
290
|
-
export const backupGetProjectBackup = {
|
|
291
|
-
path: "/v2/project-backups/{projectBackupId}",
|
|
292
|
-
method: "GET",
|
|
293
|
-
operationId: "backup-get-project-backup",
|
|
294
|
-
};
|
|
295
|
-
/** Delete a ProjectBackup. */
|
|
296
|
-
export const backupDeleteProjectBackup = {
|
|
297
|
-
path: "/v2/project-backups/{projectBackupId}",
|
|
298
|
-
method: "DELETE",
|
|
299
|
-
operationId: "backup-delete-project-backup",
|
|
300
|
-
};
|
|
301
|
-
/** List database dump's for a ProjectBackup. */
|
|
302
|
-
export const backupGetProjectBackupDatabaseDumps = {
|
|
303
|
-
path: "/v2/project-backups/{projectBackupId}/database-dumps",
|
|
304
|
-
method: "GET",
|
|
305
|
-
operationId: "backup-get-project-backup-database-dumps",
|
|
306
|
-
};
|
|
307
|
-
/** List paths for a ProjectBackup. */
|
|
308
|
-
export const backupGetProjectBackupDirectories = {
|
|
309
|
-
path: "/v2/project-backups/{projectBackupId}/path",
|
|
310
|
-
method: "GET",
|
|
311
|
-
operationId: "backup-get-project-backup-directories",
|
|
312
|
-
};
|
|
313
|
-
/** Restore a ProjectBackup's path. */
|
|
314
|
-
export const backupRequestProjectBackupRestorePath = {
|
|
315
|
-
path: "/v2/project-backups/{projectBackupId}/restore-path",
|
|
316
|
-
method: "POST",
|
|
317
|
-
operationId: "backup-request-project-backup-restore-path",
|
|
318
|
-
};
|
|
319
|
-
/** Restore a ProjectBackup. */
|
|
320
|
-
export const backupRequestProjectBackupRestore = {
|
|
321
|
-
path: "/v2/project-backups/{projectBackupId}/restore",
|
|
322
|
-
method: "POST",
|
|
323
|
-
operationId: "backup-request-project-backup-restore",
|
|
324
|
-
};
|
|
325
|
-
/** Change the description of a ProjectBackup. */
|
|
326
|
-
export const backupUpdateProjectBackupDescription = {
|
|
327
|
-
path: "/v2/project-backups/{projectBackupId}/description",
|
|
328
|
-
method: "PATCH",
|
|
329
|
-
operationId: "backup-update-project-backup-description",
|
|
330
|
-
};
|
|
331
235
|
/** List Registries belonging to a Project. */
|
|
332
236
|
export const containerListRegistries = {
|
|
333
237
|
path: "/v2/projects/{projectId}/registries",
|
|
@@ -2740,3 +2644,93 @@ export const verificationVerifyCompany = {
|
|
|
2740
2644
|
method: "POST",
|
|
2741
2645
|
operationId: "verification-verify-company",
|
|
2742
2646
|
};
|
|
2647
|
+
/** Export a ProjectBackup for download. */
|
|
2648
|
+
export const backupCreateProjectBackupExport = {
|
|
2649
|
+
path: "/v2/project-backups/{projectBackupId}/export",
|
|
2650
|
+
method: "POST",
|
|
2651
|
+
operationId: "backup-create-project-backup-export",
|
|
2652
|
+
};
|
|
2653
|
+
/** Delete a ProjectBackupExport. */
|
|
2654
|
+
export const backupDeleteProjectBackupExport = {
|
|
2655
|
+
path: "/v2/project-backups/{projectBackupId}/export",
|
|
2656
|
+
method: "DELETE",
|
|
2657
|
+
operationId: "backup-delete-project-backup-export",
|
|
2658
|
+
};
|
|
2659
|
+
/** Get a ProjectBackupSchedule. */
|
|
2660
|
+
export const backupGetProjectBackupSchedule = {
|
|
2661
|
+
path: "/v2/project-backup-schedules/{projectBackupScheduleId}",
|
|
2662
|
+
method: "GET",
|
|
2663
|
+
operationId: "backup-get-project-backup-schedule",
|
|
2664
|
+
};
|
|
2665
|
+
/** Delete a ProjectBackupSchedule. */
|
|
2666
|
+
export const backupDeleteProjectBackupSchedule = {
|
|
2667
|
+
path: "/v2/project-backup-schedules/{projectBackupScheduleId}",
|
|
2668
|
+
method: "DELETE",
|
|
2669
|
+
operationId: "backup-delete-project-backup-schedule",
|
|
2670
|
+
};
|
|
2671
|
+
/** Update a ProjectBackupSchedule. */
|
|
2672
|
+
export const backupUpdateProjectBackupSchedule = {
|
|
2673
|
+
path: "/v2/project-backup-schedules/{projectBackupScheduleId}",
|
|
2674
|
+
method: "PATCH",
|
|
2675
|
+
operationId: "backup-update-project-backup-schedule",
|
|
2676
|
+
};
|
|
2677
|
+
/** List database dump's for a ProjectBackup. */
|
|
2678
|
+
export const backupGetProjectBackupDatabaseDumpsV2Experimental = {
|
|
2679
|
+
path: "/v2/project-backups/{projectBackupId}/database-dumps",
|
|
2680
|
+
method: "GET",
|
|
2681
|
+
operationId: "backup-get-project-backup-database-dumps-v2-experimental",
|
|
2682
|
+
};
|
|
2683
|
+
/** Restore a ProjectBackup. */
|
|
2684
|
+
export const backupRequestProjectBackupRestoreV2Experimental = {
|
|
2685
|
+
path: "/v2/project-backups/{projectBackupId}/restore",
|
|
2686
|
+
method: "POST",
|
|
2687
|
+
operationId: "backup-request-project-backup-restore-v2-experimental",
|
|
2688
|
+
};
|
|
2689
|
+
/** List BackupSchedules belonging to a Project. */
|
|
2690
|
+
export const backupListProjectBackupSchedules = {
|
|
2691
|
+
path: "/v2/projects/{projectId}/backup-schedules",
|
|
2692
|
+
method: "GET",
|
|
2693
|
+
operationId: "backup-list-project-backup-schedules",
|
|
2694
|
+
};
|
|
2695
|
+
/** Create a BackupSchedule for a Project. */
|
|
2696
|
+
export const backupCreateProjectBackupSchedule = {
|
|
2697
|
+
path: "/v2/projects/{projectId}/backup-schedules",
|
|
2698
|
+
method: "POST",
|
|
2699
|
+
operationId: "backup-create-project-backup-schedule",
|
|
2700
|
+
};
|
|
2701
|
+
/** List Backups belonging to a Project. */
|
|
2702
|
+
export const backupListProjectBackups = {
|
|
2703
|
+
path: "/v2/projects/{projectId}/backups",
|
|
2704
|
+
method: "GET",
|
|
2705
|
+
operationId: "backup-list-project-backups",
|
|
2706
|
+
};
|
|
2707
|
+
/** Create a Backup of a Project. */
|
|
2708
|
+
export const backupCreateProjectBackup = {
|
|
2709
|
+
path: "/v2/projects/{projectId}/backups",
|
|
2710
|
+
method: "POST",
|
|
2711
|
+
operationId: "backup-create-project-backup",
|
|
2712
|
+
};
|
|
2713
|
+
/** List paths for a ProjectBackup. */
|
|
2714
|
+
export const backupGetProjectBackupDirectories = {
|
|
2715
|
+
path: "/v2/project-backups/{projectBackupId}/path",
|
|
2716
|
+
method: "GET",
|
|
2717
|
+
operationId: "backup-get-project-backup-directories",
|
|
2718
|
+
};
|
|
2719
|
+
/** Get a ProjectBackup. */
|
|
2720
|
+
export const backupGetProjectBackup = {
|
|
2721
|
+
path: "/v2/project-backups/{projectBackupId}",
|
|
2722
|
+
method: "GET",
|
|
2723
|
+
operationId: "backup-get-project-backup",
|
|
2724
|
+
};
|
|
2725
|
+
/** Delete a ProjectBackup. */
|
|
2726
|
+
export const backupDeleteProjectBackup = {
|
|
2727
|
+
path: "/v2/project-backups/{projectBackupId}",
|
|
2728
|
+
method: "DELETE",
|
|
2729
|
+
operationId: "backup-delete-project-backup",
|
|
2730
|
+
};
|
|
2731
|
+
/** Change the description of a ProjectBackup. */
|
|
2732
|
+
export const backupUpdateProjectBackupDescription = {
|
|
2733
|
+
path: "/v2/project-backups/{projectBackupId}/description",
|
|
2734
|
+
method: "PATCH",
|
|
2735
|
+
operationId: "backup-update-project-backup-description",
|
|
2736
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.287.0';
|
|
@@ -379,104 +379,6 @@ declare const buildArticleApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
379
379
|
} | undefined;
|
|
380
380
|
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ArticleReadableArticle[]>;
|
|
381
381
|
};
|
|
382
|
-
declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
383
|
-
/** List BackupSchedules belonging to a Project. */
|
|
384
|
-
listProjectBackupSchedules: (conf: {
|
|
385
|
-
projectId: string;
|
|
386
|
-
headers?: {
|
|
387
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
388
|
-
"x-access-token"?: string | undefined;
|
|
389
|
-
} | undefined;
|
|
390
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupSchedule[]>;
|
|
391
|
-
/** List Backups belonging to a Project. */
|
|
392
|
-
listProjectBackups: (conf: {
|
|
393
|
-
projectId: string;
|
|
394
|
-
headers?: {
|
|
395
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
396
|
-
"x-access-token"?: string | undefined;
|
|
397
|
-
} | undefined;
|
|
398
|
-
queryParameters?: {
|
|
399
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
400
|
-
searchTerm?: string | undefined;
|
|
401
|
-
withExportsOnly?: boolean | undefined;
|
|
402
|
-
sortOrder?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupBackupSortOrder | undefined;
|
|
403
|
-
runningRestoresOnly?: boolean | undefined;
|
|
404
|
-
limit?: number | undefined;
|
|
405
|
-
skip?: number | undefined;
|
|
406
|
-
page?: number | undefined;
|
|
407
|
-
} | undefined;
|
|
408
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackup[]>;
|
|
409
|
-
/** Get a ProjectBackupSchedule. */
|
|
410
|
-
getProjectBackupSchedule: (conf: {
|
|
411
|
-
projectBackupScheduleId: string;
|
|
412
|
-
headers?: {
|
|
413
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
414
|
-
"x-access-token"?: string | undefined;
|
|
415
|
-
} | undefined;
|
|
416
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
417
|
-
createdAt?: string | undefined;
|
|
418
|
-
description?: string | undefined;
|
|
419
|
-
id: string;
|
|
420
|
-
isSystemBackup: boolean;
|
|
421
|
-
projectId: string;
|
|
422
|
-
schedule: string;
|
|
423
|
-
ttl?: string | undefined;
|
|
424
|
-
updatedAt?: string | undefined;
|
|
425
|
-
}>;
|
|
426
|
-
/** Get a ProjectBackup. */
|
|
427
|
-
getProjectBackup: (conf: {
|
|
428
|
-
projectBackupId: string;
|
|
429
|
-
headers?: {
|
|
430
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
431
|
-
"x-access-token"?: string | undefined;
|
|
432
|
-
} | undefined;
|
|
433
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
434
|
-
createdAt?: string | undefined;
|
|
435
|
-
deletable: boolean;
|
|
436
|
-
description?: string | undefined;
|
|
437
|
-
expiresAt?: string | undefined;
|
|
438
|
-
export?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupExport | undefined;
|
|
439
|
-
id: string;
|
|
440
|
-
parentId?: string | undefined;
|
|
441
|
-
projectId: string;
|
|
442
|
-
requestedAt: string;
|
|
443
|
-
restore?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestore | undefined;
|
|
444
|
-
restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePathDeprecated | undefined;
|
|
445
|
-
status: string;
|
|
446
|
-
}>;
|
|
447
|
-
/** List database dump's for a ProjectBackup. */
|
|
448
|
-
getProjectBackupDatabaseDumps: (conf: {
|
|
449
|
-
projectBackupId: string;
|
|
450
|
-
headers?: {
|
|
451
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
452
|
-
"x-access-token"?: string | undefined;
|
|
453
|
-
} | undefined;
|
|
454
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
455
|
-
databases: string[];
|
|
456
|
-
}>;
|
|
457
|
-
/** List paths for a ProjectBackup. */
|
|
458
|
-
getProjectBackupDirectories: (conf: {
|
|
459
|
-
projectBackupId: string;
|
|
460
|
-
headers?: {
|
|
461
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
462
|
-
"x-access-token"?: string | undefined;
|
|
463
|
-
} | undefined;
|
|
464
|
-
queryParameters?: {
|
|
465
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
466
|
-
directory?: string | undefined;
|
|
467
|
-
} | undefined;
|
|
468
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
469
|
-
absolutePath: string;
|
|
470
|
-
isDirectory?: boolean | undefined;
|
|
471
|
-
isExecutable?: boolean | undefined;
|
|
472
|
-
isFile?: boolean | undefined;
|
|
473
|
-
isSymlink?: boolean | undefined;
|
|
474
|
-
items?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[] | undefined;
|
|
475
|
-
name: string;
|
|
476
|
-
size: number;
|
|
477
|
-
target?: string | undefined;
|
|
478
|
-
}>;
|
|
479
|
-
};
|
|
480
382
|
declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
481
383
|
/** List Registries belonging to a Project. */
|
|
482
384
|
listRegistries: (conf: {
|
|
@@ -3499,6 +3401,104 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3499
3401
|
userName: string;
|
|
3500
3402
|
}>;
|
|
3501
3403
|
};
|
|
3404
|
+
declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
3405
|
+
/** Get a ProjectBackupSchedule. */
|
|
3406
|
+
getProjectBackupSchedule: (conf: {
|
|
3407
|
+
projectBackupScheduleId: string;
|
|
3408
|
+
headers?: {
|
|
3409
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3410
|
+
"x-access-token"?: string | undefined;
|
|
3411
|
+
} | undefined;
|
|
3412
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3413
|
+
createdAt?: string | undefined;
|
|
3414
|
+
description?: string | undefined;
|
|
3415
|
+
id: string;
|
|
3416
|
+
isSystemBackup: boolean;
|
|
3417
|
+
projectId: string;
|
|
3418
|
+
schedule: string;
|
|
3419
|
+
ttl?: string | undefined;
|
|
3420
|
+
updatedAt?: string | undefined;
|
|
3421
|
+
}>;
|
|
3422
|
+
/** List database dump's for a ProjectBackup. */
|
|
3423
|
+
getProjectBackupDatabaseDumpsV2Experimental: (conf: {
|
|
3424
|
+
projectBackupId: string;
|
|
3425
|
+
headers?: {
|
|
3426
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3427
|
+
"x-access-token"?: string | undefined;
|
|
3428
|
+
} | undefined;
|
|
3429
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3430
|
+
databases: string[];
|
|
3431
|
+
}>;
|
|
3432
|
+
/** List BackupSchedules belonging to a Project. */
|
|
3433
|
+
listProjectBackupSchedules: (conf: {
|
|
3434
|
+
projectId: string;
|
|
3435
|
+
headers?: {
|
|
3436
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3437
|
+
"x-access-token"?: string | undefined;
|
|
3438
|
+
} | undefined;
|
|
3439
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupSchedule[]>;
|
|
3440
|
+
/** List Backups belonging to a Project. */
|
|
3441
|
+
listProjectBackups: (conf: {
|
|
3442
|
+
projectId: string;
|
|
3443
|
+
headers?: {
|
|
3444
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3445
|
+
"x-access-token"?: string | undefined;
|
|
3446
|
+
} | undefined;
|
|
3447
|
+
queryParameters?: {
|
|
3448
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3449
|
+
searchTerm?: string | undefined;
|
|
3450
|
+
withExportsOnly?: boolean | undefined;
|
|
3451
|
+
sortOrder?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupBackupSortOrder | undefined;
|
|
3452
|
+
runningRestoresOnly?: boolean | undefined;
|
|
3453
|
+
limit?: number | undefined;
|
|
3454
|
+
skip?: number | undefined;
|
|
3455
|
+
page?: number | undefined;
|
|
3456
|
+
} | undefined;
|
|
3457
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackup[]>;
|
|
3458
|
+
/** List paths for a ProjectBackup. */
|
|
3459
|
+
getProjectBackupDirectories: (conf: {
|
|
3460
|
+
projectBackupId: string;
|
|
3461
|
+
headers?: {
|
|
3462
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3463
|
+
"x-access-token"?: string | undefined;
|
|
3464
|
+
} | undefined;
|
|
3465
|
+
queryParameters?: {
|
|
3466
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3467
|
+
directory?: string | undefined;
|
|
3468
|
+
} | undefined;
|
|
3469
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3470
|
+
absolutePath: string;
|
|
3471
|
+
isDirectory?: boolean | undefined;
|
|
3472
|
+
isExecutable?: boolean | undefined;
|
|
3473
|
+
isFile?: boolean | undefined;
|
|
3474
|
+
isSymlink?: boolean | undefined;
|
|
3475
|
+
items?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[] | undefined;
|
|
3476
|
+
name: string;
|
|
3477
|
+
size: number;
|
|
3478
|
+
target?: string | undefined;
|
|
3479
|
+
}>;
|
|
3480
|
+
/** Get a ProjectBackup. */
|
|
3481
|
+
getProjectBackup: (conf: {
|
|
3482
|
+
projectBackupId: string;
|
|
3483
|
+
headers?: {
|
|
3484
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3485
|
+
"x-access-token"?: string | undefined;
|
|
3486
|
+
} | undefined;
|
|
3487
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3488
|
+
createdAt?: string | undefined;
|
|
3489
|
+
deletable: boolean;
|
|
3490
|
+
description?: string | undefined;
|
|
3491
|
+
expiresAt?: string | undefined;
|
|
3492
|
+
export?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupExport | undefined;
|
|
3493
|
+
id: string;
|
|
3494
|
+
parentId?: string | undefined;
|
|
3495
|
+
projectId: string;
|
|
3496
|
+
requestedAt: string;
|
|
3497
|
+
restore?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestore | undefined;
|
|
3498
|
+
restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePathDeprecated | undefined;
|
|
3499
|
+
status: string;
|
|
3500
|
+
}>;
|
|
3501
|
+
};
|
|
3502
3502
|
export declare class MittwaldAPIV2ClientReact {
|
|
3503
3503
|
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
3504
3504
|
readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
|
|
@@ -3506,8 +3506,6 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
3506
3506
|
readonly app: ReturnType<typeof buildAppApi>;
|
|
3507
3507
|
/** The article API allows you to read article information. */
|
|
3508
3508
|
readonly article: ReturnType<typeof buildArticleApi>;
|
|
3509
|
-
/** The backup API allows you to manage your project backups. */
|
|
3510
|
-
readonly backup: ReturnType<typeof buildBackupApi>;
|
|
3511
3509
|
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
3512
3510
|
readonly container: ReturnType<typeof buildContainerApi>;
|
|
3513
3511
|
/** The contract API allows you to manage your contracts and orders */
|
|
@@ -3546,6 +3544,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
3546
3544
|
readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
|
|
3547
3545
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
3548
3546
|
readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
|
|
3547
|
+
/** The backup API allows you to manage your project backups. */
|
|
3548
|
+
readonly backup: ReturnType<typeof buildBackupApi>;
|
|
3549
3549
|
private constructor();
|
|
3550
3550
|
static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
|
|
3551
3551
|
}
|