@mittwald/api-client 0.0.0-development-e648af3-20251016 → 0.0.0-development-3821954-20251017
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 +0 -6
- package/dist/esm/generated/v2/client.js +4 -16
- package/dist/esm/generated/v2/descriptors.js +12 -48
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +3 -56
- package/dist/types/generated/v2/client.d.ts +118 -500
- package/dist/types/generated/v2/descriptors.d.ts +4 -16
- package/dist/types/generated/v2/types.d.ts +148 -420
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -48,8 +48,6 @@ 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. */
|
|
52
|
-
getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
|
|
53
51
|
});
|
|
54
52
|
const buildContainerApi = (baseClient) => ({
|
|
55
53
|
/** List Registries belonging to a Project. */
|
|
@@ -312,10 +310,6 @@ const buildMailApi = (baseClient) => ({
|
|
|
312
310
|
listBackupsForMailAddress: new ApiCallAsyncResourceFactory(descriptors.mailListBackupsForMailAddress, baseClient.mail.listBackupsForMailAddress).getApiResource,
|
|
313
311
|
/** List mail settings of a Project. */
|
|
314
312
|
listProjectMailSettings: new ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
|
|
315
|
-
/** Get a Migration. */
|
|
316
|
-
migrationGetMigration: new ApiCallAsyncResourceFactory(descriptors.mailMigrationGetMigration, baseClient.mail.migrationGetMigration).getApiResource,
|
|
317
|
-
/** List Migrations belonging to a Project in customer center or mStudio. */
|
|
318
|
-
migrationListMigrations: new ApiCallAsyncResourceFactory(descriptors.mailMigrationListMigrations, baseClient.mail.migrationListMigrations).getApiResource,
|
|
319
313
|
});
|
|
320
314
|
const buildMiscApi = (baseClient) => ({
|
|
321
315
|
/** Get a list of currently active llm models. */
|
|
@@ -50,10 +50,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
50
50
|
requestAppinstallationCopy: this.requestFunctionFactory(descriptors.appRequestAppinstallationCopy),
|
|
51
51
|
/** Get runtime status belonging to an AppInstallation. */
|
|
52
52
|
retrieveStatus: this.requestFunctionFactory(descriptors.appRetrieveStatus),
|
|
53
|
-
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
54
|
-
setDatabaseUsers: this.requestFunctionFactory(descriptors.appSetDatabaseUsers),
|
|
55
53
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
56
54
|
unlinkDatabase: this.requestFunctionFactory(descriptors.appUnlinkDatabase),
|
|
55
|
+
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
56
|
+
setDatabaseUsers: this.requestFunctionFactory(descriptors.appSetDatabaseUsers),
|
|
57
57
|
};
|
|
58
58
|
/** The article API allows you to read article information. */
|
|
59
59
|
article = {
|
|
@@ -86,10 +86,6 @@ 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. */
|
|
90
|
-
getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
|
|
91
|
-
/** Restore a ProjectBackup's path. */
|
|
92
|
-
requestProjectBackupRestorePath: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestorePath),
|
|
93
89
|
/** Change the description of a ProjectBackup. */
|
|
94
90
|
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
95
91
|
};
|
|
@@ -572,8 +568,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
572
568
|
sslReplaceCertificate: this.requestFunctionFactory(descriptors.sslReplaceCertificate),
|
|
573
569
|
/** List Certificates belonging to a Project or an Ingress. */
|
|
574
570
|
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
|
|
575
|
-
/** Update the certificate of a CertificateRequest. */
|
|
576
|
-
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
|
|
577
571
|
};
|
|
578
572
|
/** The mail API allows you to manage your mail accounts. */
|
|
579
573
|
mail = {
|
|
@@ -609,14 +603,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
609
603
|
listBackupsForMailAddress: this.requestFunctionFactory(descriptors.mailListBackupsForMailAddress),
|
|
610
604
|
/** List mail settings of a Project. */
|
|
611
605
|
listProjectMailSettings: this.requestFunctionFactory(descriptors.mailListProjectMailSettings),
|
|
612
|
-
/** Check if a Migration between two projects is possible. */
|
|
613
|
-
migrationCheckMigrationIsPossible: this.requestFunctionFactory(descriptors.mailMigrationCheckMigrationIsPossible),
|
|
614
|
-
/** Get a Migration. */
|
|
615
|
-
migrationGetMigration: this.requestFunctionFactory(descriptors.mailMigrationGetMigration),
|
|
616
|
-
/** List Migrations belonging to a Project in customer center or mStudio. */
|
|
617
|
-
migrationListMigrations: this.requestFunctionFactory(descriptors.mailMigrationListMigrations),
|
|
618
|
-
/** Request a Mail Migration between two projects. */
|
|
619
|
-
migrationRequestMailMigration: this.requestFunctionFactory(descriptors.mailMigrationRequestMailMigration),
|
|
620
606
|
/** Recover emails for a MailAddress from a backup. */
|
|
621
607
|
recoverMailAddressEmails: this.requestFunctionFactory(descriptors.mailRecoverMailAddressEmails),
|
|
622
608
|
/** Update the description of a DeliveryBox. */
|
|
@@ -808,6 +794,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
808
794
|
misc = {
|
|
809
795
|
/** Get a list of currently active llm models. */
|
|
810
796
|
getLlmModelsExperimental: this.requestFunctionFactory(descriptors.miscGetLlmModelsExperimental),
|
|
797
|
+
/** Obtain a service token. */
|
|
798
|
+
servicetokenAuthenticateService: this.requestFunctionFactory(descriptors.servicetokenAuthenticateService),
|
|
811
799
|
/** Check if an email is from mittwald. */
|
|
812
800
|
verificationDetectPhishingEmail: this.requestFunctionFactory(descriptors.verificationDetectPhishingEmail),
|
|
813
801
|
/** Check if an address exists. */
|
|
@@ -130,18 +130,18 @@ export const appRetrieveStatus = {
|
|
|
130
130
|
method: "GET",
|
|
131
131
|
operationId: "app-retrieve-status",
|
|
132
132
|
};
|
|
133
|
-
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
134
|
-
export const appSetDatabaseUsers = {
|
|
135
|
-
path: "/v2/app-installations/{appInstallationId}/databases/{databaseId}/users",
|
|
136
|
-
method: "PUT",
|
|
137
|
-
operationId: "app-set-database-users",
|
|
138
|
-
};
|
|
139
133
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
140
134
|
export const appUnlinkDatabase = {
|
|
141
135
|
path: "/v2/app-installations/{appInstallationId}/databases/{databaseId}",
|
|
142
136
|
method: "DELETE",
|
|
143
137
|
operationId: "app-unlink-database",
|
|
144
138
|
};
|
|
139
|
+
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
140
|
+
export const appSetDatabaseUsers = {
|
|
141
|
+
path: "/v2/app-installations/{appInstallationId}/databases/{databaseId}/users",
|
|
142
|
+
method: "PUT",
|
|
143
|
+
operationId: "app-set-database-users",
|
|
144
|
+
};
|
|
145
145
|
/** Get an Article. */
|
|
146
146
|
export const articleGetArticle = {
|
|
147
147
|
path: "/v2/articles/{articleId}",
|
|
@@ -220,18 +220,6 @@ export const backupDeleteProjectBackup = {
|
|
|
220
220
|
method: "DELETE",
|
|
221
221
|
operationId: "backup-delete-project-backup",
|
|
222
222
|
};
|
|
223
|
-
/** Get table of contents for a ProjectBackup. */
|
|
224
|
-
export const backupGetProjectBackupDirectories = {
|
|
225
|
-
path: "/v2/project-backups/{projectBackupId}/path",
|
|
226
|
-
method: "GET",
|
|
227
|
-
operationId: "backup-get-project-backup-directories",
|
|
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
223
|
/** Change the description of a ProjectBackup. */
|
|
236
224
|
export const backupUpdateProjectBackupDescription = {
|
|
237
225
|
path: "/v2/project-backups/{projectBackupId}/description",
|
|
@@ -1714,30 +1702,6 @@ export const mailListProjectMailSettings = {
|
|
|
1714
1702
|
method: "GET",
|
|
1715
1703
|
operationId: "mail-list-project-mail-settings",
|
|
1716
1704
|
};
|
|
1717
|
-
/** Check if a Migration between two projects is possible. */
|
|
1718
|
-
export const mailMigrationCheckMigrationIsPossible = {
|
|
1719
|
-
path: "/v2/mail-migrations/actions/possibility-check",
|
|
1720
|
-
method: "POST",
|
|
1721
|
-
operationId: "mail-migration-check-migration-is-possible",
|
|
1722
|
-
};
|
|
1723
|
-
/** Get a Migration. */
|
|
1724
|
-
export const mailMigrationGetMigration = {
|
|
1725
|
-
path: "/v2/mail-migrations/{migrationId}",
|
|
1726
|
-
method: "GET",
|
|
1727
|
-
operationId: "mail-migration-get-migration",
|
|
1728
|
-
};
|
|
1729
|
-
/** List Migrations belonging to a Project in customer center or mStudio. */
|
|
1730
|
-
export const mailMigrationListMigrations = {
|
|
1731
|
-
path: "/v2/mail-migrations",
|
|
1732
|
-
method: "GET",
|
|
1733
|
-
operationId: "mail-migration-list-migrations",
|
|
1734
|
-
};
|
|
1735
|
-
/** Request a Mail Migration between two projects. */
|
|
1736
|
-
export const mailMigrationRequestMailMigration = {
|
|
1737
|
-
path: "/v2/mail-migrations/actions/request",
|
|
1738
|
-
method: "POST",
|
|
1739
|
-
operationId: "mail-migration-request-mail-migration",
|
|
1740
|
-
};
|
|
1741
1705
|
/** Recover emails for a MailAddress from a backup. */
|
|
1742
1706
|
export const mailRecoverMailAddressEmails = {
|
|
1743
1707
|
path: "/v2/mail-addresses/{mailAddressId}/backups/{backupId}/recovery",
|
|
@@ -2134,6 +2098,12 @@ export const relocationCreateRelocation = {
|
|
|
2134
2098
|
method: "POST",
|
|
2135
2099
|
operationId: "relocation-create-relocation",
|
|
2136
2100
|
};
|
|
2101
|
+
/** Obtain a service token. */
|
|
2102
|
+
export const servicetokenAuthenticateService = {
|
|
2103
|
+
path: "/v2/services/{accessKeyId}/actions/authenticate",
|
|
2104
|
+
method: "POST",
|
|
2105
|
+
operationId: "servicetoken-authenticate-service",
|
|
2106
|
+
};
|
|
2137
2107
|
/** Get all SFTPUsers for a Project. */
|
|
2138
2108
|
export const sftpUserListSftpUsers = {
|
|
2139
2109
|
path: "/v2/projects/{projectId}/sftp-users",
|
|
@@ -2248,12 +2218,6 @@ export const sslListCertificates = {
|
|
|
2248
2218
|
method: "GET",
|
|
2249
2219
|
operationId: "ssl-list-certificates",
|
|
2250
2220
|
};
|
|
2251
|
-
/** Update the certificate of a CertificateRequest. */
|
|
2252
|
-
export const sslSetCertificateRequestCertificate = {
|
|
2253
|
-
path: "/v2/certificate-requests/{certificateRequestId}/certificate",
|
|
2254
|
-
method: "PATCH",
|
|
2255
|
-
operationId: "ssl-set-certificate-request-certificate",
|
|
2256
|
-
};
|
|
2257
2221
|
/** Get storage space Statistics belonging to a Project. */
|
|
2258
2222
|
export const storagespaceGetProjectStatistics = {
|
|
2259
2223
|
path: "/v2/projects/{projectId}/storage-space-statistics",
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '
|
|
1
|
+
export const MittwaldAPIClientVersion = '0.0.0-development-b0a4b41-20251017';
|
|
@@ -344,31 +344,8 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
344
344
|
parentId?: string | undefined;
|
|
345
345
|
projectId: string;
|
|
346
346
|
requestedAt: string;
|
|
347
|
-
restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
|
|
348
347
|
status: string;
|
|
349
348
|
}>;
|
|
350
|
-
/** Get table of contents for a ProjectBackup. */
|
|
351
|
-
getProjectBackupDirectories: (conf: {
|
|
352
|
-
projectBackupId: string;
|
|
353
|
-
headers?: {
|
|
354
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
355
|
-
"x-access-token"?: string | undefined;
|
|
356
|
-
} | undefined;
|
|
357
|
-
queryParameters?: {
|
|
358
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
359
|
-
directory?: string | undefined;
|
|
360
|
-
} | undefined;
|
|
361
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
362
|
-
absolutePath: string;
|
|
363
|
-
isDirectory?: boolean | undefined;
|
|
364
|
-
isExecutable?: boolean | undefined;
|
|
365
|
-
isFile?: boolean | undefined;
|
|
366
|
-
isSymlink?: boolean | undefined;
|
|
367
|
-
items?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[] | undefined;
|
|
368
|
-
name: string;
|
|
369
|
-
size: number;
|
|
370
|
-
target?: string | undefined;
|
|
371
|
-
}>;
|
|
372
349
|
};
|
|
373
350
|
declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
374
351
|
/** List Registries belonging to a Project. */
|
|
@@ -1045,7 +1022,7 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1045
1022
|
domain: string;
|
|
1046
1023
|
id: string;
|
|
1047
1024
|
};
|
|
1048
|
-
chargeability
|
|
1025
|
+
chargeability?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstanceChargeability | undefined;
|
|
1049
1026
|
consentedScopes: string[];
|
|
1050
1027
|
contributorId: string;
|
|
1051
1028
|
contributorName: string;
|
|
@@ -1152,7 +1129,7 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1152
1129
|
domain: string;
|
|
1153
1130
|
id: string;
|
|
1154
1131
|
};
|
|
1155
|
-
chargeability
|
|
1132
|
+
chargeability?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstanceChargeability | undefined;
|
|
1156
1133
|
consentedScopes: string[];
|
|
1157
1134
|
contributorId: string;
|
|
1158
1135
|
contributorName: string;
|
|
@@ -1183,7 +1160,7 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1183
1160
|
domain: string;
|
|
1184
1161
|
id: string;
|
|
1185
1162
|
};
|
|
1186
|
-
chargeability
|
|
1163
|
+
chargeability?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstanceChargeability | undefined;
|
|
1187
1164
|
consentedScopes: string[];
|
|
1188
1165
|
contributorId: string;
|
|
1189
1166
|
contributorName: string;
|
|
@@ -2469,36 +2446,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2469
2446
|
projectId: string;
|
|
2470
2447
|
whitelist: string[];
|
|
2471
2448
|
}>;
|
|
2472
|
-
/** Get a Migration. */
|
|
2473
|
-
migrationGetMigration: (conf: {
|
|
2474
|
-
migrationId: string;
|
|
2475
|
-
headers?: {
|
|
2476
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2477
|
-
"x-access-token"?: string | undefined;
|
|
2478
|
-
} | undefined;
|
|
2479
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
2480
|
-
aborted: boolean;
|
|
2481
|
-
addresses: import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigrationMailAddress[];
|
|
2482
|
-
finalizers: import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigrationFinalizeJob;
|
|
2483
|
-
finished: boolean;
|
|
2484
|
-
id: string;
|
|
2485
|
-
mailboxes: import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigrationMailbox[];
|
|
2486
|
-
sourceCoabProjectId: string;
|
|
2487
|
-
targetNexusProjectId: string;
|
|
2488
|
-
}>;
|
|
2489
|
-
/** List Migrations belonging to a Project in customer center or mStudio. */
|
|
2490
|
-
migrationListMigrations: (conf: {
|
|
2491
|
-
headers: {
|
|
2492
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2493
|
-
Authorization: string;
|
|
2494
|
-
"x-access-token"?: string | undefined;
|
|
2495
|
-
};
|
|
2496
|
-
queryParameters?: {
|
|
2497
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2498
|
-
pAccountName?: string | undefined;
|
|
2499
|
-
projectId?: string | undefined;
|
|
2500
|
-
} | undefined;
|
|
2501
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigration[]>;
|
|
2502
2449
|
};
|
|
2503
2450
|
declare const buildMiscApi: (baseClient: MittwaldAPIV2Client) => {
|
|
2504
2451
|
/** Get a list of currently active llm models. */
|