@mittwald/api-client 0.0.0-development-1011833-20260105 → 0.0.0-development-3c2e654-20260107
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 +9 -2
- package/dist/esm/generated/v2/client.js +8 -6
- package/dist/esm/generated/v2/descriptors.js +32 -26
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +26 -12
- package/dist/types/generated/v2/client.d.ts +193 -122
- package/dist/types/generated/v2/descriptors.d.ts +8 -6
- package/dist/types/generated/v2/types.d.ts +217 -161
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -64,10 +64,10 @@ const buildBackupApi = (baseClient) => ({
|
|
|
64
64
|
getProjectBackupSchedule: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
|
|
65
65
|
/** Get a ProjectBackup. */
|
|
66
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
67
|
/** List paths for a ProjectBackup. */
|
|
70
68
|
getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
|
|
69
|
+
/** List database dump's for a ProjectBackup. */
|
|
70
|
+
getProjectBackupDatabaseDumps: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDatabaseDumps, baseClient.backup.getProjectBackupDatabaseDumps).getApiResource,
|
|
71
71
|
});
|
|
72
72
|
const buildContainerApi = (baseClient) => ({
|
|
73
73
|
/** List Registries belonging to a Project. */
|
|
@@ -443,6 +443,10 @@ const buildSshsftpUserApi = (baseClient) => ({
|
|
|
443
443
|
/** Get an SSHUser. */
|
|
444
444
|
sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
|
|
445
445
|
});
|
|
446
|
+
const buildMiscApi = (baseClient) => ({
|
|
447
|
+
/** List valid time zones. */
|
|
448
|
+
ellaneousListTimeZones: new ApiCallAsyncResourceFactory(descriptors.miscellaneousListTimeZones, baseClient.misc.ellaneousListTimeZones).getApiResource,
|
|
449
|
+
});
|
|
446
450
|
export class MittwaldAPIV2ClientReact {
|
|
447
451
|
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
448
452
|
aiHosting;
|
|
@@ -486,6 +490,8 @@ export class MittwaldAPIV2ClientReact {
|
|
|
486
490
|
projectFileSystem;
|
|
487
491
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
488
492
|
sshsftpUser;
|
|
493
|
+
/** API endpoints that are not related to any specific API domain */
|
|
494
|
+
misc;
|
|
489
495
|
constructor(baseClient) {
|
|
490
496
|
this.aiHosting = buildAiHostingApi(baseClient);
|
|
491
497
|
this.app = buildAppApi(baseClient);
|
|
@@ -508,6 +514,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
508
514
|
this.project = buildProjectApi(baseClient);
|
|
509
515
|
this.projectFileSystem = buildProjectFileSystemApi(baseClient);
|
|
510
516
|
this.sshsftpUser = buildSshsftpUserApi(baseClient);
|
|
517
|
+
this.misc = buildMiscApi(baseClient);
|
|
511
518
|
}
|
|
512
519
|
static fromBaseClient(baseClient) {
|
|
513
520
|
return new MittwaldAPIV2ClientReact(baseClient);
|
|
@@ -115,14 +115,16 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
115
115
|
getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
|
|
116
116
|
/** Delete a ProjectBackup. */
|
|
117
117
|
deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
|
|
118
|
-
/** List database dump's for a ProjectBackup. */
|
|
119
|
-
getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
|
|
120
118
|
/** List paths for a ProjectBackup. */
|
|
121
119
|
getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
|
|
122
|
-
/** Restore a ProjectBackup. */
|
|
123
|
-
|
|
120
|
+
/** Restore a ProjectBackup's path. */
|
|
121
|
+
requestProjectBackupRestorePath: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestorePath),
|
|
124
122
|
/** Change the description of a ProjectBackup. */
|
|
125
123
|
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
124
|
+
/** List database dump's for a ProjectBackup. */
|
|
125
|
+
getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
|
|
126
|
+
/** Restore a ProjectBackup. */
|
|
127
|
+
requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
|
|
126
128
|
};
|
|
127
129
|
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
128
130
|
container = {
|
|
@@ -398,8 +400,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
398
400
|
};
|
|
399
401
|
/** The cronjob API allows you to manage cronjobs within a project. */
|
|
400
402
|
cronjob = {
|
|
401
|
-
/** Abort a CronjobExecution. */
|
|
402
|
-
abortExecution: this.requestFunctionFactory(descriptors.cronjobAbortExecution),
|
|
403
403
|
/** List Cronjobs belonging to a Project. */
|
|
404
404
|
listCronjobs: this.requestFunctionFactory(descriptors.cronjobListCronjobs),
|
|
405
405
|
/** Create a Cronjob. */
|
|
@@ -976,6 +976,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
976
976
|
verificationVerifyAddress: this.requestFunctionFactory(descriptors.verificationVerifyAddress),
|
|
977
977
|
/** Check if a company exists. */
|
|
978
978
|
verificationVerifyCompany: this.requestFunctionFactory(descriptors.verificationVerifyCompany),
|
|
979
|
+
/** List valid time zones. */
|
|
980
|
+
ellaneousListTimeZones: this.requestFunctionFactory(descriptors.miscellaneousListTimeZones),
|
|
979
981
|
};
|
|
980
982
|
}
|
|
981
983
|
export default MittwaldAPIV2Client;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/** Get a list of already created keys. */
|
|
2
2
|
export const aiHostingCustomerGetKeys = {
|
|
3
|
-
path: "/v2/customers/{customerId}/ai-hosting
|
|
3
|
+
path: "/v2/customers/{customerId}/ai-hosting-keys",
|
|
4
4
|
method: "GET",
|
|
5
5
|
operationId: "ai-hosting-customer-get-keys",
|
|
6
6
|
};
|
|
7
7
|
/** Creates a new key. */
|
|
8
8
|
export const aiHostingCustomerCreateKey = {
|
|
9
|
-
path: "/v2/customers/{customerId}/ai-hosting
|
|
9
|
+
path: "/v2/customers/{customerId}/ai-hosting-keys",
|
|
10
10
|
method: "POST",
|
|
11
11
|
operationId: "ai-hosting-customer-create-key",
|
|
12
12
|
};
|
|
13
13
|
/** Get a key of a customer. */
|
|
14
14
|
export const aiHostingCustomerGetKey = {
|
|
15
|
-
path: "/v2/customers/{customerId}/ai-hosting
|
|
15
|
+
path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
|
|
16
16
|
method: "GET",
|
|
17
17
|
operationId: "ai-hosting-customer-get-key",
|
|
18
18
|
};
|
|
19
19
|
/** Update a key for a customer. */
|
|
20
20
|
export const aiHostingCustomerUpdateKey = {
|
|
21
|
-
path: "/v2/customers/{customerId}/ai-hosting
|
|
21
|
+
path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
|
|
22
22
|
method: "PUT",
|
|
23
23
|
operationId: "ai-hosting-customer-update-key",
|
|
24
24
|
};
|
|
25
25
|
/** Delete a key for a customer. */
|
|
26
26
|
export const aiHostingCustomerDeleteKey = {
|
|
27
|
-
path: "/v2/customers/{customerId}/ai-hosting
|
|
27
|
+
path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
|
|
28
28
|
method: "DELETE",
|
|
29
29
|
operationId: "ai-hosting-customer-delete-key",
|
|
30
30
|
};
|
|
@@ -42,31 +42,31 @@ export const aiHostingGetModels = {
|
|
|
42
42
|
};
|
|
43
43
|
/** Get a list of keys of a project. */
|
|
44
44
|
export const aiHostingProjectGetKeys = {
|
|
45
|
-
path: "/v2/projects/{projectId}/ai-hosting
|
|
45
|
+
path: "/v2/projects/{projectId}/ai-hosting-keys",
|
|
46
46
|
method: "GET",
|
|
47
47
|
operationId: "ai-hosting-project-get-keys",
|
|
48
48
|
};
|
|
49
49
|
/** Creates a new key for a project. */
|
|
50
50
|
export const aiHostingProjectCreateKey = {
|
|
51
|
-
path: "/v2/projects/{projectId}/ai-hosting
|
|
51
|
+
path: "/v2/projects/{projectId}/ai-hosting-keys",
|
|
52
52
|
method: "POST",
|
|
53
53
|
operationId: "ai-hosting-project-create-key",
|
|
54
54
|
};
|
|
55
55
|
/** Get a key of a project. */
|
|
56
56
|
export const aiHostingProjectGetKey = {
|
|
57
|
-
path: "/v2/projects/{projectId}/ai-hosting
|
|
57
|
+
path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
|
|
58
58
|
method: "GET",
|
|
59
59
|
operationId: "ai-hosting-project-get-key",
|
|
60
60
|
};
|
|
61
61
|
/** Update a key for a project. */
|
|
62
62
|
export const aiHostingProjectUpdateKey = {
|
|
63
|
-
path: "/v2/projects/{projectId}/ai-hosting
|
|
63
|
+
path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
|
|
64
64
|
method: "PUT",
|
|
65
65
|
operationId: "ai-hosting-project-update-key",
|
|
66
66
|
};
|
|
67
67
|
/** Delete a key for a project. */
|
|
68
68
|
export const aiHostingProjectDeleteKey = {
|
|
69
|
-
path: "/v2/projects/{projectId}/ai-hosting
|
|
69
|
+
path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
|
|
70
70
|
method: "DELETE",
|
|
71
71
|
operationId: "ai-hosting-project-delete-key",
|
|
72
72
|
};
|
|
@@ -298,23 +298,17 @@ export const backupDeleteProjectBackup = {
|
|
|
298
298
|
method: "DELETE",
|
|
299
299
|
operationId: "backup-delete-project-backup",
|
|
300
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
301
|
/** List paths for a ProjectBackup. */
|
|
308
302
|
export const backupGetProjectBackupDirectories = {
|
|
309
303
|
path: "/v2/project-backups/{projectBackupId}/path",
|
|
310
304
|
method: "GET",
|
|
311
305
|
operationId: "backup-get-project-backup-directories",
|
|
312
306
|
};
|
|
313
|
-
/** Restore a ProjectBackup. */
|
|
314
|
-
export const
|
|
315
|
-
path: "/v2/project-backups/{projectBackupId}/restore",
|
|
307
|
+
/** Restore a ProjectBackup's path. */
|
|
308
|
+
export const backupRequestProjectBackupRestorePath = {
|
|
309
|
+
path: "/v2/project-backups/{projectBackupId}/restore-path",
|
|
316
310
|
method: "POST",
|
|
317
|
-
operationId: "backup-request-project-backup-restore",
|
|
311
|
+
operationId: "backup-request-project-backup-restore-path",
|
|
318
312
|
};
|
|
319
313
|
/** Change the description of a ProjectBackup. */
|
|
320
314
|
export const backupUpdateProjectBackupDescription = {
|
|
@@ -748,12 +742,6 @@ export const conversationUpdateMessage = {
|
|
|
748
742
|
method: "PATCH",
|
|
749
743
|
operationId: "conversation-update-message",
|
|
750
744
|
};
|
|
751
|
-
/** Abort a CronjobExecution. */
|
|
752
|
-
export const cronjobAbortExecution = {
|
|
753
|
-
path: "/v2/cronjobs/{cronjobId}/executions/{executionId}/actions/abort",
|
|
754
|
-
method: "POST",
|
|
755
|
-
operationId: "cronjob-abort-execution",
|
|
756
|
-
};
|
|
757
745
|
/** List Cronjobs belonging to a Project. */
|
|
758
746
|
export const cronjobListCronjobs = {
|
|
759
747
|
path: "/v2/projects/{projectId}/cronjobs",
|
|
@@ -2734,3 +2722,21 @@ export const verificationVerifyCompany = {
|
|
|
2734
2722
|
method: "POST",
|
|
2735
2723
|
operationId: "verification-verify-company",
|
|
2736
2724
|
};
|
|
2725
|
+
/** List valid time zones. */
|
|
2726
|
+
export const miscellaneousListTimeZones = {
|
|
2727
|
+
path: "/v2/time-zones",
|
|
2728
|
+
method: "GET",
|
|
2729
|
+
operationId: "miscellaneous-list-time-zones",
|
|
2730
|
+
};
|
|
2731
|
+
/** List database dump's for a ProjectBackup. */
|
|
2732
|
+
export const backupGetProjectBackupDatabaseDumps = {
|
|
2733
|
+
path: "/v2/project-backups/{projectBackupId}/database-dumps",
|
|
2734
|
+
method: "GET",
|
|
2735
|
+
operationId: "backup-get-project-backup-database-dumps",
|
|
2736
|
+
};
|
|
2737
|
+
/** Restore a ProjectBackup. */
|
|
2738
|
+
export const backupRequestProjectBackupRestore = {
|
|
2739
|
+
path: "/v2/project-backups/{projectBackupId}/restore",
|
|
2740
|
+
method: "POST",
|
|
2741
|
+
operationId: "backup-request-project-backup-restore",
|
|
2742
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '0.0.0-development-
|
|
1
|
+
export const MittwaldAPIClientVersion = '0.0.0-development-32b0259-20260106';
|
|
@@ -444,16 +444,6 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
444
444
|
restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePathDeprecated | undefined;
|
|
445
445
|
status: string;
|
|
446
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
447
|
/** List paths for a ProjectBackup. */
|
|
458
448
|
getProjectBackupDirectories: (conf: {
|
|
459
449
|
projectBackupId: string;
|
|
@@ -476,6 +466,16 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
476
466
|
size: number;
|
|
477
467
|
target?: string | undefined;
|
|
478
468
|
}>;
|
|
469
|
+
/** List database dump's for a ProjectBackup. */
|
|
470
|
+
getProjectBackupDatabaseDumps: (conf: {
|
|
471
|
+
projectBackupId: string;
|
|
472
|
+
headers?: {
|
|
473
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
474
|
+
"x-access-token"?: string | undefined;
|
|
475
|
+
} | undefined;
|
|
476
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
477
|
+
databases: string[];
|
|
478
|
+
}>;
|
|
479
479
|
};
|
|
480
480
|
declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
481
481
|
/** List Registries belonging to a Project. */
|
|
@@ -1576,6 +1576,7 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1576
1576
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1577
1577
|
active: boolean;
|
|
1578
1578
|
appId: string;
|
|
1579
|
+
concurrencyPolicy?: import("./types.js").MittwaldAPIV2.Components.Schemas.CronjobConcurrencyPolicy | undefined;
|
|
1579
1580
|
createdAt: string;
|
|
1580
1581
|
description: string;
|
|
1581
1582
|
destination: import("./types.js").MittwaldAPIV2.Components.Schemas.CronjobCronjobUrl | import("./types.js").MittwaldAPIV2.Components.Schemas.CronjobCronjobCommand;
|
|
@@ -1587,6 +1588,7 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1587
1588
|
nextExecutionTime?: string | undefined;
|
|
1588
1589
|
projectId?: string | undefined;
|
|
1589
1590
|
shortId: string;
|
|
1591
|
+
timeZone?: string | undefined;
|
|
1590
1592
|
timeout: number;
|
|
1591
1593
|
updatedAt: string;
|
|
1592
1594
|
}>;
|
|
@@ -1618,10 +1620,11 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1618
1620
|
end?: string | undefined;
|
|
1619
1621
|
executionEnd?: string | undefined;
|
|
1620
1622
|
executionStart?: string | undefined;
|
|
1623
|
+
exitCode?: number | undefined;
|
|
1621
1624
|
id: string;
|
|
1622
1625
|
logPath?: string | undefined;
|
|
1623
1626
|
start?: string | undefined;
|
|
1624
|
-
status: "Complete" | "Failed" | "AbortedBySystem" | "Pending" | "Running" | "AbortedByUser" | "TimedOut";
|
|
1627
|
+
status: "Complete" | "Failed" | "AbortedBySystem" | "Pending" | "Running" | "AbortedByUser" | "TimedOut" | "Error" | "Suspended";
|
|
1625
1628
|
successful: boolean;
|
|
1626
1629
|
triggeredBy?: {
|
|
1627
1630
|
id?: string;
|
|
@@ -2162,7 +2165,7 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2162
2165
|
commonName?: string | undefined;
|
|
2163
2166
|
contact?: import("./types.js").MittwaldAPIV2.Components.Schemas.SslContact | undefined;
|
|
2164
2167
|
dnsCertSpec?: {
|
|
2165
|
-
|
|
2168
|
+
cnameTarget?: string;
|
|
2166
2169
|
} | undefined;
|
|
2167
2170
|
dnsNames?: string[] | undefined;
|
|
2168
2171
|
id: string;
|
|
@@ -3447,6 +3450,15 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3447
3450
|
userName: string;
|
|
3448
3451
|
}>;
|
|
3449
3452
|
};
|
|
3453
|
+
declare const buildMiscApi: (baseClient: MittwaldAPIV2Client) => {
|
|
3454
|
+
/** List valid time zones. */
|
|
3455
|
+
ellaneousListTimeZones: (conf?: {
|
|
3456
|
+
headers?: {
|
|
3457
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3458
|
+
"x-access-token"?: string | undefined;
|
|
3459
|
+
} | undefined;
|
|
3460
|
+
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<string[]>;
|
|
3461
|
+
};
|
|
3450
3462
|
export declare class MittwaldAPIV2ClientReact {
|
|
3451
3463
|
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
3452
3464
|
readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
|
|
@@ -3490,6 +3502,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
3490
3502
|
readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
|
|
3491
3503
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
3492
3504
|
readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
|
|
3505
|
+
/** API endpoints that are not related to any specific API domain */
|
|
3506
|
+
readonly misc: ReturnType<typeof buildMiscApi>;
|
|
3493
3507
|
private constructor();
|
|
3494
3508
|
static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
|
|
3495
3509
|
}
|