@mittwald/api-client 4.126.0 → 4.128.0
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 +25 -2
- package/dist/esm/generated/v2/client.js +56 -9
- package/dist/esm/generated/v2/descriptors.js +157 -25
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +156 -13
- package/dist/types/generated/v2/client.d.ts +1932 -286
- package/dist/types/generated/v2/descriptors.d.ts +54 -10
- package/dist/types/generated/v2/types.d.ts +2017 -333
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -49,6 +49,28 @@ const buildBackupApi = (baseClient) => ({
|
|
|
49
49
|
/** Get a ProjectBackup. */
|
|
50
50
|
getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
|
|
51
51
|
});
|
|
52
|
+
const buildContainerApi = (baseClient) => ({
|
|
53
|
+
/** List Registries belonging to a Project. */
|
|
54
|
+
listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
|
|
55
|
+
/** Get a Stack. */
|
|
56
|
+
getStack: new ApiCallAsyncResourceFactory(descriptors.containerGetStack, baseClient.container.getStack).getApiResource,
|
|
57
|
+
/** Get a Registry. */
|
|
58
|
+
getRegistry: new ApiCallAsyncResourceFactory(descriptors.containerGetRegistry, baseClient.container.getRegistry).getApiResource,
|
|
59
|
+
/** Get a Volume belonging to a Stack. */
|
|
60
|
+
getVolume: new ApiCallAsyncResourceFactory(descriptors.containerGetVolume, baseClient.container.getVolume).getApiResource,
|
|
61
|
+
/** Get a ContainerImageConfig. */
|
|
62
|
+
getContainerImageConfig: new ApiCallAsyncResourceFactory(descriptors.containerGetContainerImageConfig, baseClient.container.getContainerImageConfig).getApiResource,
|
|
63
|
+
/** Get logs belonging to a Service. */
|
|
64
|
+
getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
|
|
65
|
+
/** Get a Service belonging to a Stack. */
|
|
66
|
+
getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
|
|
67
|
+
/** List Services belonging to a Project. */
|
|
68
|
+
listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
|
|
69
|
+
/** List Stacks belonging to a Project. */
|
|
70
|
+
listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
|
|
71
|
+
/** List Volumes belonging to a Project. */
|
|
72
|
+
listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
|
|
73
|
+
});
|
|
52
74
|
const buildContractApi = (baseClient) => ({
|
|
53
75
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
54
76
|
getBaseItemOfContract: new ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource,
|
|
@@ -136,8 +158,6 @@ const buildCustomerApi = (baseClient) => ({
|
|
|
136
158
|
listCustomerMemberships: new ApiCallAsyncResourceFactory(descriptors.customerListCustomerMemberships, baseClient.customer.listCustomerMemberships).getApiResource,
|
|
137
159
|
/** List Memberships belonging to a Customer. */
|
|
138
160
|
listMembershipsForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListMembershipsForCustomer, baseClient.customer.listMembershipsForCustomer).getApiResource,
|
|
139
|
-
/** Gets the status of a agency verification request.. */
|
|
140
|
-
getOpenAgencyVerification: new ApiCallAsyncResourceFactory(descriptors.customerGetOpenAgencyVerification, baseClient.customer.getOpenAgencyVerification).getApiResource,
|
|
141
161
|
});
|
|
142
162
|
const buildDatabaseApi = (baseClient) => ({
|
|
143
163
|
/** List MySQLDatabases belonging to a Project. */
|
|
@@ -348,6 +368,8 @@ export class MittwaldAPIV2ClientReact {
|
|
|
348
368
|
article;
|
|
349
369
|
/** The backup API allows you to manage your project backups. */
|
|
350
370
|
backup;
|
|
371
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
372
|
+
container;
|
|
351
373
|
/** The contract API allows you to manage your contracts and orders */
|
|
352
374
|
contract;
|
|
353
375
|
/** The conversation API allows you to manage your support conversations. */
|
|
@@ -382,6 +404,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
382
404
|
this.app = buildAppApi(baseClient);
|
|
383
405
|
this.article = buildArticleApi(baseClient);
|
|
384
406
|
this.backup = buildBackupApi(baseClient);
|
|
407
|
+
this.container = buildContainerApi(baseClient);
|
|
385
408
|
this.contract = buildContractApi(baseClient);
|
|
386
409
|
this.conversation = buildConversationApi(baseClient);
|
|
387
410
|
this.cronjob = buildCronjobApi(baseClient);
|
|
@@ -89,6 +89,55 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
89
89
|
/** Change the description of a ProjectBackup. */
|
|
90
90
|
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
91
91
|
};
|
|
92
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
93
|
+
container = {
|
|
94
|
+
/** List Registries belonging to a Project. */
|
|
95
|
+
listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
|
|
96
|
+
/** Create a Registry. */
|
|
97
|
+
createRegistry: this.requestFunctionFactory(descriptors.containerCreateRegistry),
|
|
98
|
+
/** Get a Stack. */
|
|
99
|
+
getStack: this.requestFunctionFactory(descriptors.containerGetStack),
|
|
100
|
+
/** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
|
|
101
|
+
declareStack: this.requestFunctionFactory(descriptors.containerDeclareStack),
|
|
102
|
+
/** Create, update or delete Services or Volumes belonging to a Stack. */
|
|
103
|
+
updateStack: this.requestFunctionFactory(descriptors.containerUpdateStack),
|
|
104
|
+
/** Get a Registry. */
|
|
105
|
+
getRegistry: this.requestFunctionFactory(descriptors.containerGetRegistry),
|
|
106
|
+
/** Delete a Registry. */
|
|
107
|
+
deleteRegistry: this.requestFunctionFactory(descriptors.containerDeleteRegistry),
|
|
108
|
+
/** Update a Registry. */
|
|
109
|
+
updateRegistry: this.requestFunctionFactory(descriptors.containerUpdateRegistry),
|
|
110
|
+
/** Get a Volume belonging to a Stack. */
|
|
111
|
+
getVolume: this.requestFunctionFactory(descriptors.containerGetVolume),
|
|
112
|
+
/** Delete a Volume belonging to a Stack. */
|
|
113
|
+
deleteVolume: this.requestFunctionFactory(descriptors.containerDeleteVolume),
|
|
114
|
+
/** Get a ContainerImageConfig. */
|
|
115
|
+
getContainerImageConfig: this.requestFunctionFactory(descriptors.containerGetContainerImageConfig),
|
|
116
|
+
/** Get logs belonging to a Service. */
|
|
117
|
+
getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
|
|
118
|
+
/** Get a Service belonging to a Stack. */
|
|
119
|
+
getService: this.requestFunctionFactory(descriptors.containerGetService),
|
|
120
|
+
/** List Services belonging to a Project. */
|
|
121
|
+
listServices: this.requestFunctionFactory(descriptors.containerListServices),
|
|
122
|
+
/** List Stacks belonging to a Project. */
|
|
123
|
+
listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
|
|
124
|
+
/** List Volumes belonging to a Project. */
|
|
125
|
+
listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
|
|
126
|
+
/** Pulls the latest version of the Service's image and recreates the Service. */
|
|
127
|
+
pullImageForService: this.requestFunctionFactory(descriptors.containerPullImageForService),
|
|
128
|
+
/** Recreate a Service. */
|
|
129
|
+
recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
|
|
130
|
+
/** Restart a started Service. */
|
|
131
|
+
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
132
|
+
/** Start a stopped Service. */
|
|
133
|
+
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
134
|
+
/** Stop a started Service. */
|
|
135
|
+
stopService: this.requestFunctionFactory(descriptors.containerStopService),
|
|
136
|
+
/** Validate a Registries' URI. */
|
|
137
|
+
validateContainerRegistryUri: this.requestFunctionFactory(descriptors.containerValidateContainerRegistryUri),
|
|
138
|
+
/** Validate a Registries' credentials. */
|
|
139
|
+
validateRegistryCredentials: this.requestFunctionFactory(descriptors.containerValidateRegistryCredentials),
|
|
140
|
+
};
|
|
92
141
|
/** The contract API allows you to manage your contracts and orders */
|
|
93
142
|
contract = {
|
|
94
143
|
/** Schedule the Termination of a ContractItem. */
|
|
@@ -152,8 +201,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
152
201
|
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance),
|
|
153
202
|
/** Authenticate your external application using the extensionInstanceSecret. */
|
|
154
203
|
extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance),
|
|
155
|
-
/** Authenticate your external application using
|
|
204
|
+
/** Authenticate your external application using a session token and an extension secret */
|
|
156
205
|
extensionAuthenticateWithSessionToken: this.requestFunctionFactory(descriptors.extensionAuthenticateWithSessionToken),
|
|
206
|
+
/** Change the context of an Extension. */
|
|
207
|
+
extensionChangeContext: this.requestFunctionFactory(descriptors.extensionChangeContext),
|
|
157
208
|
/** Consent to extension scopes. */
|
|
158
209
|
extensionConsentToExtensionScopes: this.requestFunctionFactory(descriptors.extensionConsentToExtensionScopes),
|
|
159
210
|
/** List ExtensionInstances. */
|
|
@@ -200,12 +251,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
200
251
|
extensionRegisterExtension: this.requestFunctionFactory(descriptors.extensionRegisterExtension),
|
|
201
252
|
/** Remove an asset of an extension. */
|
|
202
253
|
extensionRemoveAsset: this.requestFunctionFactory(descriptors.extensionRemoveAsset),
|
|
254
|
+
/** Add a logo to an extension. */
|
|
255
|
+
extensionRequestLogoUpload: this.requestFunctionFactory(descriptors.extensionRequestLogoUpload),
|
|
256
|
+
/** Remove the logo of an extension. */
|
|
257
|
+
extensionRemoveLogo: this.requestFunctionFactory(descriptors.extensionRemoveLogo),
|
|
203
258
|
/** Add an asset to an extension. */
|
|
204
259
|
extensionRequestAssetUpload: this.requestFunctionFactory(descriptors.extensionRequestAssetUpload),
|
|
205
260
|
/** Start the verification process of an Extension. */
|
|
206
261
|
extensionRequestExtensionVerification: this.requestFunctionFactory(descriptors.extensionRequestExtensionVerification),
|
|
207
|
-
/** Add a logo to an extension. */
|
|
208
|
-
extensionRequestLogoUpload: this.requestFunctionFactory(descriptors.extensionRequestLogoUpload),
|
|
209
262
|
/** Publish or withdraw an Extension. */
|
|
210
263
|
extensionSetExtensionPublishedState: this.requestFunctionFactory(descriptors.extensionSetExtensionPublishedState),
|
|
211
264
|
};
|
|
@@ -315,12 +368,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
315
368
|
removeAvatar: this.requestFunctionFactory(descriptors.customerRemoveAvatar),
|
|
316
369
|
/** Resend the mail for a CustomerInvite. */
|
|
317
370
|
resendCustomerInviteMail: this.requestFunctionFactory(descriptors.customerResendCustomerInviteMail),
|
|
318
|
-
/** Gets the status of a agency verification request.. */
|
|
319
|
-
getOpenAgencyVerification: this.requestFunctionFactory(descriptors.customerGetOpenAgencyVerification),
|
|
320
|
-
/** Creates a new agency verification request. Only one active verification can be active at the same time. */
|
|
321
|
-
createAgencyVerification: this.requestFunctionFactory(descriptors.customerCreateAgencyVerification),
|
|
322
|
-
/** Abort an open agency verification process */
|
|
323
|
-
abortAgencyVerification: this.requestFunctionFactory(descriptors.customerAbortAgencyVerification),
|
|
324
371
|
};
|
|
325
372
|
/** The database API allows you to manage your databases, like MySQL and Redis databases. */
|
|
326
373
|
database = {
|
|
@@ -226,6 +226,144 @@ export const backupUpdateProjectBackupDescription = {
|
|
|
226
226
|
method: "PATCH",
|
|
227
227
|
operationId: "backup-update-project-backup-description",
|
|
228
228
|
};
|
|
229
|
+
/** List Registries belonging to a Project. */
|
|
230
|
+
export const containerListRegistries = {
|
|
231
|
+
path: "/v2/projects/{projectId}/registries",
|
|
232
|
+
method: "GET",
|
|
233
|
+
operationId: "container-list-registries",
|
|
234
|
+
};
|
|
235
|
+
/** Create a Registry. */
|
|
236
|
+
export const containerCreateRegistry = {
|
|
237
|
+
path: "/v2/projects/{projectId}/registries",
|
|
238
|
+
method: "POST",
|
|
239
|
+
operationId: "container-create-registry",
|
|
240
|
+
};
|
|
241
|
+
/** Get a Stack. */
|
|
242
|
+
export const containerGetStack = {
|
|
243
|
+
path: "/v2/stacks/{stackId}",
|
|
244
|
+
method: "GET",
|
|
245
|
+
operationId: "container-get-stack",
|
|
246
|
+
};
|
|
247
|
+
/** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
|
|
248
|
+
export const containerDeclareStack = {
|
|
249
|
+
path: "/v2/stacks/{stackId}",
|
|
250
|
+
method: "PUT",
|
|
251
|
+
operationId: "container-declare-stack",
|
|
252
|
+
};
|
|
253
|
+
/** Create, update or delete Services or Volumes belonging to a Stack. */
|
|
254
|
+
export const containerUpdateStack = {
|
|
255
|
+
path: "/v2/stacks/{stackId}",
|
|
256
|
+
method: "PATCH",
|
|
257
|
+
operationId: "container-update-stack",
|
|
258
|
+
};
|
|
259
|
+
/** Get a Registry. */
|
|
260
|
+
export const containerGetRegistry = {
|
|
261
|
+
path: "/v2/registries/{registryId}",
|
|
262
|
+
method: "GET",
|
|
263
|
+
operationId: "container-get-registry",
|
|
264
|
+
};
|
|
265
|
+
/** Delete a Registry. */
|
|
266
|
+
export const containerDeleteRegistry = {
|
|
267
|
+
path: "/v2/registries/{registryId}",
|
|
268
|
+
method: "DELETE",
|
|
269
|
+
operationId: "container-delete-registry",
|
|
270
|
+
};
|
|
271
|
+
/** Update a Registry. */
|
|
272
|
+
export const containerUpdateRegistry = {
|
|
273
|
+
path: "/v2/registries/{registryId}",
|
|
274
|
+
method: "PATCH",
|
|
275
|
+
operationId: "container-update-registry",
|
|
276
|
+
};
|
|
277
|
+
/** Get a Volume belonging to a Stack. */
|
|
278
|
+
export const containerGetVolume = {
|
|
279
|
+
path: "/v2/stacks/{stackId}/volumes/{volumeId}",
|
|
280
|
+
method: "GET",
|
|
281
|
+
operationId: "container-get-volume",
|
|
282
|
+
};
|
|
283
|
+
/** Delete a Volume belonging to a Stack. */
|
|
284
|
+
export const containerDeleteVolume = {
|
|
285
|
+
path: "/v2/stacks/{stackId}/volumes/{volumeId}",
|
|
286
|
+
method: "DELETE",
|
|
287
|
+
operationId: "container-delete-volume",
|
|
288
|
+
};
|
|
289
|
+
/** Get a ContainerImageConfig. */
|
|
290
|
+
export const containerGetContainerImageConfig = {
|
|
291
|
+
path: "/v2/container-image-config",
|
|
292
|
+
method: "GET",
|
|
293
|
+
operationId: "container-get-container-image-config",
|
|
294
|
+
};
|
|
295
|
+
/** Get logs belonging to a Service. */
|
|
296
|
+
export const containerGetServiceLogs = {
|
|
297
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/logs",
|
|
298
|
+
method: "GET",
|
|
299
|
+
operationId: "container-get-service-logs",
|
|
300
|
+
};
|
|
301
|
+
/** Get a Service belonging to a Stack. */
|
|
302
|
+
export const containerGetService = {
|
|
303
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}",
|
|
304
|
+
method: "GET",
|
|
305
|
+
operationId: "container-get-service",
|
|
306
|
+
};
|
|
307
|
+
/** List Services belonging to a Project. */
|
|
308
|
+
export const containerListServices = {
|
|
309
|
+
path: "/v2/projects/{projectId}/services",
|
|
310
|
+
method: "GET",
|
|
311
|
+
operationId: "container-list-services",
|
|
312
|
+
};
|
|
313
|
+
/** List Stacks belonging to a Project. */
|
|
314
|
+
export const containerListStacks = {
|
|
315
|
+
path: "/v2/projects/{projectId}/stacks",
|
|
316
|
+
method: "GET",
|
|
317
|
+
operationId: "container-list-stacks",
|
|
318
|
+
};
|
|
319
|
+
/** List Volumes belonging to a Project. */
|
|
320
|
+
export const containerListVolumes = {
|
|
321
|
+
path: "/v2/projects/{projectId}/volumes",
|
|
322
|
+
method: "GET",
|
|
323
|
+
operationId: "container-list-volumes",
|
|
324
|
+
};
|
|
325
|
+
/** Pulls the latest version of the Service's image and recreates the Service. */
|
|
326
|
+
export const containerPullImageForService = {
|
|
327
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/pull",
|
|
328
|
+
method: "POST",
|
|
329
|
+
operationId: "container-pull-image-for-service",
|
|
330
|
+
};
|
|
331
|
+
/** Recreate a Service. */
|
|
332
|
+
export const containerRecreateService = {
|
|
333
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/recreate",
|
|
334
|
+
method: "POST",
|
|
335
|
+
operationId: "container-recreate-service",
|
|
336
|
+
};
|
|
337
|
+
/** Restart a started Service. */
|
|
338
|
+
export const containerRestartService = {
|
|
339
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/restart",
|
|
340
|
+
method: "POST",
|
|
341
|
+
operationId: "container-restart-service",
|
|
342
|
+
};
|
|
343
|
+
/** Start a stopped Service. */
|
|
344
|
+
export const containerStartService = {
|
|
345
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/start",
|
|
346
|
+
method: "POST",
|
|
347
|
+
operationId: "container-start-service",
|
|
348
|
+
};
|
|
349
|
+
/** Stop a started Service. */
|
|
350
|
+
export const containerStopService = {
|
|
351
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/stop",
|
|
352
|
+
method: "POST",
|
|
353
|
+
operationId: "container-stop-service",
|
|
354
|
+
};
|
|
355
|
+
/** Validate a Registries' URI. */
|
|
356
|
+
export const containerValidateContainerRegistryUri = {
|
|
357
|
+
path: "/v2/actions/validate-container-registry-uri",
|
|
358
|
+
method: "POST",
|
|
359
|
+
operationId: "container-validate-container-registry-uri",
|
|
360
|
+
};
|
|
361
|
+
/** Validate a Registries' credentials. */
|
|
362
|
+
export const containerValidateRegistryCredentials = {
|
|
363
|
+
path: "/v2/registries/{registryId}/actions/validate-credentials",
|
|
364
|
+
method: "POST",
|
|
365
|
+
operationId: "container-validate-registry-credentials",
|
|
366
|
+
};
|
|
229
367
|
/** Schedule the Termination of a ContractItem. */
|
|
230
368
|
export const contractTerminateContractItem = {
|
|
231
369
|
path: "/v2/contracts/{contractId}/items/{contractItemId}/termination",
|
|
@@ -946,12 +1084,18 @@ export const extensionAuthenticateInstance = {
|
|
|
946
1084
|
method: "POST",
|
|
947
1085
|
operationId: "extension-authenticate-instance",
|
|
948
1086
|
};
|
|
949
|
-
/** Authenticate your external application using
|
|
1087
|
+
/** Authenticate your external application using a session token and an extension secret */
|
|
950
1088
|
export const extensionAuthenticateWithSessionToken = {
|
|
951
1089
|
path: "/v2/authenticate-session-token",
|
|
952
1090
|
method: "POST",
|
|
953
1091
|
operationId: "extension-authenticate-with-session-token",
|
|
954
1092
|
};
|
|
1093
|
+
/** Change the context of an Extension. */
|
|
1094
|
+
export const extensionChangeContext = {
|
|
1095
|
+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/context",
|
|
1096
|
+
method: "PUT",
|
|
1097
|
+
operationId: "extension-change-context",
|
|
1098
|
+
};
|
|
955
1099
|
/** Consent to extension scopes. */
|
|
956
1100
|
export const extensionConsentToExtensionScopes = {
|
|
957
1101
|
path: "/v2/extension-instances/{extensionInstanceId}/scopes",
|
|
@@ -1090,6 +1234,18 @@ export const extensionRemoveAsset = {
|
|
|
1090
1234
|
method: "DELETE",
|
|
1091
1235
|
operationId: "extension-remove-asset",
|
|
1092
1236
|
};
|
|
1237
|
+
/** Add a logo to an extension. */
|
|
1238
|
+
export const extensionRequestLogoUpload = {
|
|
1239
|
+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/logo",
|
|
1240
|
+
method: "POST",
|
|
1241
|
+
operationId: "extension-request-logo-upload",
|
|
1242
|
+
};
|
|
1243
|
+
/** Remove the logo of an extension. */
|
|
1244
|
+
export const extensionRemoveLogo = {
|
|
1245
|
+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/logo",
|
|
1246
|
+
method: "DELETE",
|
|
1247
|
+
operationId: "extension-remove-logo",
|
|
1248
|
+
};
|
|
1093
1249
|
/** Add an asset to an extension. */
|
|
1094
1250
|
export const extensionRequestAssetUpload = {
|
|
1095
1251
|
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/assets",
|
|
@@ -1102,12 +1258,6 @@ export const extensionRequestExtensionVerification = {
|
|
|
1102
1258
|
method: "POST",
|
|
1103
1259
|
operationId: "extension-request-extension-verification",
|
|
1104
1260
|
};
|
|
1105
|
-
/** Add a logo to an extension. */
|
|
1106
|
-
export const extensionRequestLogoUpload = {
|
|
1107
|
-
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/logo",
|
|
1108
|
-
method: "POST",
|
|
1109
|
-
operationId: "extension-request-logo-upload",
|
|
1110
|
-
};
|
|
1111
1261
|
/** Publish or withdraw an Extension. */
|
|
1112
1262
|
export const extensionSetExtensionPublishedState = {
|
|
1113
1263
|
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/published",
|
|
@@ -2092,21 +2242,3 @@ export const verificationVerifyCompany = {
|
|
|
2092
2242
|
method: "POST",
|
|
2093
2243
|
operationId: "verification-verify-company",
|
|
2094
2244
|
};
|
|
2095
|
-
/** Gets the status of a agency verification request.. */
|
|
2096
|
-
export const customerGetOpenAgencyVerification = {
|
|
2097
|
-
path: "/v2/customers/{customerId}/agency-verification",
|
|
2098
|
-
method: "GET",
|
|
2099
|
-
operationId: "customer-get-open-agency-verification",
|
|
2100
|
-
};
|
|
2101
|
-
/** Creates a new agency verification request. Only one active verification can be active at the same time. */
|
|
2102
|
-
export const customerCreateAgencyVerification = {
|
|
2103
|
-
path: "/v2/customers/{customerId}/agency-verification",
|
|
2104
|
-
method: "POST",
|
|
2105
|
-
operationId: "customer-create-agency-verification",
|
|
2106
|
-
};
|
|
2107
|
-
/** Abort an open agency verification process */
|
|
2108
|
-
export const customerAbortAgencyVerification = {
|
|
2109
|
-
path: "/v2/customers/{customerId}/agency-verification",
|
|
2110
|
-
method: "DELETE",
|
|
2111
|
-
operationId: "customer-abort-agency-verification",
|
|
2112
|
-
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.127.0';
|
|
@@ -130,6 +130,8 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
130
130
|
} | undefined;
|
|
131
131
|
queryParameters?: {
|
|
132
132
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
133
|
+
appIds?: string[] | undefined;
|
|
134
|
+
searchTerm?: string | undefined;
|
|
133
135
|
limit?: number | undefined;
|
|
134
136
|
skip?: number | undefined;
|
|
135
137
|
page?: number | undefined;
|
|
@@ -144,6 +146,8 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
144
146
|
} | undefined;
|
|
145
147
|
queryParameters?: {
|
|
146
148
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
149
|
+
appIds?: string[] | undefined;
|
|
150
|
+
searchTerm?: string | undefined;
|
|
147
151
|
limit?: number | undefined;
|
|
148
152
|
skip?: number | undefined;
|
|
149
153
|
page?: number | undefined;
|
|
@@ -336,6 +340,155 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
336
340
|
status: string;
|
|
337
341
|
}>;
|
|
338
342
|
};
|
|
343
|
+
declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
344
|
+
/** List Registries belonging to a Project. */
|
|
345
|
+
listRegistries: (conf: {
|
|
346
|
+
projectId: string;
|
|
347
|
+
headers?: {
|
|
348
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
349
|
+
"x-access-token"?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
queryParameters?: {
|
|
352
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
353
|
+
hasCredentials?: boolean | undefined;
|
|
354
|
+
limit?: number | undefined;
|
|
355
|
+
skip?: number | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerRegistry[]>;
|
|
358
|
+
/** Get a Stack. */
|
|
359
|
+
getStack: (conf: {
|
|
360
|
+
stackId: string;
|
|
361
|
+
headers?: {
|
|
362
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
363
|
+
"x-access-token"?: string | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
366
|
+
description: string;
|
|
367
|
+
disabled: boolean;
|
|
368
|
+
id: string;
|
|
369
|
+
prefix: string;
|
|
370
|
+
projectId: string;
|
|
371
|
+
services?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceResponse[] | undefined;
|
|
372
|
+
volumes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[] | undefined;
|
|
373
|
+
}>;
|
|
374
|
+
/** Get a Registry. */
|
|
375
|
+
getRegistry: (conf: {
|
|
376
|
+
registryId: 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
|
+
credentials?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerRegistryCredentials | undefined;
|
|
383
|
+
description: string;
|
|
384
|
+
id: string;
|
|
385
|
+
projectId: string;
|
|
386
|
+
uri: string;
|
|
387
|
+
}>;
|
|
388
|
+
/** Get a Volume belonging to a Stack. */
|
|
389
|
+
getVolume: (conf: {
|
|
390
|
+
stackId: string;
|
|
391
|
+
volumeId: string;
|
|
392
|
+
headers?: {
|
|
393
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
394
|
+
"x-access-token"?: string | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
397
|
+
id: string;
|
|
398
|
+
name: string;
|
|
399
|
+
orphaned: boolean;
|
|
400
|
+
stackId: string;
|
|
401
|
+
storageUsageInBytes: number;
|
|
402
|
+
storageUsageInBytesSetAt: string;
|
|
403
|
+
}>;
|
|
404
|
+
/** Get a ContainerImageConfig. */
|
|
405
|
+
getContainerImageConfig: (conf: {
|
|
406
|
+
queryParameters: {
|
|
407
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
408
|
+
imageReference: string;
|
|
409
|
+
useCredentialsForProjectId?: string | undefined;
|
|
410
|
+
useCredentialsForRegistryId?: string | undefined;
|
|
411
|
+
generateAiData?: boolean | undefined;
|
|
412
|
+
};
|
|
413
|
+
headers?: {
|
|
414
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
415
|
+
"x-access-token"?: string | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
418
|
+
command?: string[] | undefined;
|
|
419
|
+
entrypoint?: string[] | undefined;
|
|
420
|
+
env?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigEnv[] | undefined;
|
|
421
|
+
exposedPorts?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigExposedPort[] | undefined;
|
|
422
|
+
hasAiGeneratedData: boolean;
|
|
423
|
+
isAiAvailable: boolean;
|
|
424
|
+
isUserRoot: boolean;
|
|
425
|
+
overwritingUser?: number | undefined;
|
|
426
|
+
user: string;
|
|
427
|
+
userId: number;
|
|
428
|
+
volumes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigVolume[] | undefined;
|
|
429
|
+
}>;
|
|
430
|
+
/** Get logs belonging to a Service. */
|
|
431
|
+
getServiceLogs: (conf: {
|
|
432
|
+
stackId: string;
|
|
433
|
+
serviceId: string;
|
|
434
|
+
headers?: {
|
|
435
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
436
|
+
"x-access-token"?: string | undefined;
|
|
437
|
+
} | undefined;
|
|
438
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<string>;
|
|
439
|
+
/** Get a Service belonging to a Stack. */
|
|
440
|
+
getService: (conf: {
|
|
441
|
+
stackId: string;
|
|
442
|
+
serviceId: string;
|
|
443
|
+
headers?: {
|
|
444
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
445
|
+
"x-access-token"?: string | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
448
|
+
deployedState: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceState;
|
|
449
|
+
description: string;
|
|
450
|
+
id: string;
|
|
451
|
+
message?: string | undefined;
|
|
452
|
+
pendingState: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceState;
|
|
453
|
+
projectId: string;
|
|
454
|
+
serviceName: string;
|
|
455
|
+
shortId: string;
|
|
456
|
+
stackId: string;
|
|
457
|
+
status: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceStatus;
|
|
458
|
+
}>;
|
|
459
|
+
/** List Services belonging to a Project. */
|
|
460
|
+
listServices: (conf: {
|
|
461
|
+
projectId: string;
|
|
462
|
+
headers?: {
|
|
463
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
464
|
+
"x-access-token"?: string | undefined;
|
|
465
|
+
} | undefined;
|
|
466
|
+
queryParameters?: {
|
|
467
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
468
|
+
stackId?: string | undefined;
|
|
469
|
+
} | undefined;
|
|
470
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceResponse[]>;
|
|
471
|
+
/** List Stacks belonging to a Project. */
|
|
472
|
+
listStacks: (conf: {
|
|
473
|
+
projectId: string;
|
|
474
|
+
headers?: {
|
|
475
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
476
|
+
"x-access-token"?: string | undefined;
|
|
477
|
+
} | undefined;
|
|
478
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerStackResponse[]>;
|
|
479
|
+
/** List Volumes belonging to a Project. */
|
|
480
|
+
listVolumes: (conf: {
|
|
481
|
+
projectId: string;
|
|
482
|
+
headers?: {
|
|
483
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
484
|
+
"x-access-token"?: string | undefined;
|
|
485
|
+
} | undefined;
|
|
486
|
+
queryParameters?: {
|
|
487
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
488
|
+
stackId?: string | undefined;
|
|
489
|
+
} | undefined;
|
|
490
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[]>;
|
|
491
|
+
};
|
|
339
492
|
declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
|
|
340
493
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
341
494
|
getBaseItemOfContract: (conf: {
|
|
@@ -931,6 +1084,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
931
1084
|
customerNumber: string;
|
|
932
1085
|
executingUserRoles?: import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
933
1086
|
flags?: import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
1087
|
+
isAllowedToPlaceOrders?: boolean | undefined;
|
|
934
1088
|
isBanned?: boolean | undefined;
|
|
935
1089
|
isInDefaultOfPayment?: boolean | undefined;
|
|
936
1090
|
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
@@ -1006,19 +1160,6 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1006
1160
|
skip?: number | undefined;
|
|
1007
1161
|
} | undefined;
|
|
1008
1162
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MembershipCustomerMembership[]>;
|
|
1009
|
-
/** Gets the status of a agency verification request.. */
|
|
1010
|
-
getOpenAgencyVerification: (conf: {
|
|
1011
|
-
customerId: string;
|
|
1012
|
-
headers?: {
|
|
1013
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1014
|
-
} | undefined;
|
|
1015
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1016
|
-
customerId: string;
|
|
1017
|
-
domain: string;
|
|
1018
|
-
email: string;
|
|
1019
|
-
requestedOn: string;
|
|
1020
|
-
verificationId: string;
|
|
1021
|
-
}>;
|
|
1022
1163
|
};
|
|
1023
1164
|
declare const buildDatabaseApi: (baseClient: MittwaldAPIV2Client) => {
|
|
1024
1165
|
/** List MySQLDatabases belonging to a Project. */
|
|
@@ -2580,6 +2721,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
2580
2721
|
readonly article: ReturnType<typeof buildArticleApi>;
|
|
2581
2722
|
/** The backup API allows you to manage your project backups. */
|
|
2582
2723
|
readonly backup: ReturnType<typeof buildBackupApi>;
|
|
2724
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
2725
|
+
readonly container: ReturnType<typeof buildContainerApi>;
|
|
2583
2726
|
/** The contract API allows you to manage your contracts and orders */
|
|
2584
2727
|
readonly contract: ReturnType<typeof buildContractApi>;
|
|
2585
2728
|
/** The conversation API allows you to manage your support conversations. */
|