@mittwald/api-client 0.0.0-development-852f7c4-20260820 → 0.0.0-development-a6957ed-20260824
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 +8 -10
- package/dist/esm/generated/v2/client.js +13 -19
- package/dist/esm/generated/v2/descriptors.js +27 -45
- package/dist/esm/generated/v3-next/client-react.js +8 -10
- package/dist/esm/generated/v3-next/client.js +13 -19
- package/dist/esm/generated/v3-next/descriptors.js +27 -45
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +44 -66
- package/dist/types/generated/v2/client.d.ts +183 -399
- package/dist/types/generated/v2/descriptors.d.ts +14 -20
- package/dist/types/generated/v2/types.d.ts +160 -402
- package/dist/types/generated/v3-next/client-react.d.ts +44 -66
- package/dist/types/generated/v3-next/client.d.ts +183 -399
- package/dist/types/generated/v3-next/descriptors.d.ts +14 -20
- package/dist/types/generated/v3-next/types.d.ts +160 -402
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -4,14 +4,14 @@ export * from "@mittwald/react-use-promise";
|
|
|
4
4
|
const buildAiHostingApi = (baseClient) => ({
|
|
5
5
|
/** Get a list of already created keys. */
|
|
6
6
|
customerGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKeys, baseClient.aiHosting.customerGetKeys).getApiResource,
|
|
7
|
+
/** Get all ai hosting plans of a customer. */
|
|
8
|
+
customerGetPlans: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlans, baseClient.aiHosting.customerGetPlans).getApiResource,
|
|
7
9
|
/** Get a key of a customer. */
|
|
8
10
|
customerGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKey, baseClient.aiHosting.customerGetKey).getApiResource,
|
|
9
11
|
/** Get a list of currently active models. */
|
|
10
12
|
customerGetDetailedModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetDetailedModels, baseClient.aiHosting.customerGetDetailedModels).getApiResource,
|
|
11
13
|
/** Get ai hosting plan and usages of a customer by planId. */
|
|
12
14
|
customerGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlan, baseClient.aiHosting.customerGetPlan).getApiResource,
|
|
13
|
-
/** Get all ai hosting plans of a customer. */
|
|
14
|
-
customerGetPlans: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlans, baseClient.aiHosting.customerGetPlans).getApiResource,
|
|
15
15
|
/** Get ai hosting plan and usages of a customer. Deprecated: use /ai-hostings/{planId} instead. */
|
|
16
16
|
customerGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetUsage, baseClient.aiHosting.customerGetUsage).getApiResource,
|
|
17
17
|
/** Get a list of currently active models. */
|
|
@@ -28,14 +28,14 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
28
28
|
projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).getApiResource,
|
|
29
29
|
});
|
|
30
30
|
const buildAppApi = (baseClient) => ({
|
|
31
|
+
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
32
|
+
getAppInstallationSystemSoftware: new ApiCallAsyncResourceFactory(descriptors.appGetAppInstallationSystemSoftware, baseClient.app.getAppInstallationSystemSoftware).getApiResource,
|
|
31
33
|
/** Get an App. */
|
|
32
34
|
getApp: new ApiCallAsyncResourceFactory(descriptors.appGetApp, baseClient.app.getApp).getApiResource,
|
|
33
35
|
/** Get an AppInstallation. */
|
|
34
36
|
getAppinstallation: new ApiCallAsyncResourceFactory(descriptors.appGetAppinstallation, baseClient.app.getAppinstallation).getApiResource,
|
|
35
37
|
/** Get an AppVersion. */
|
|
36
38
|
getAppversion: new ApiCallAsyncResourceFactory(descriptors.appGetAppversion, baseClient.app.getAppversion).getApiResource,
|
|
37
|
-
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
38
|
-
getInstalledSystemsoftwareForAppinstallation: new ApiCallAsyncResourceFactory(descriptors.appGetInstalledSystemsoftwareForAppinstallation, baseClient.app.getInstalledSystemsoftwareForAppinstallation).getApiResource,
|
|
39
39
|
/** Get the missing requirements of an appInstallation for a specific target AppVersion. */
|
|
40
40
|
getMissingDependenciesForAppinstallation: new ApiCallAsyncResourceFactory(descriptors.appGetMissingDependenciesForAppinstallation, baseClient.app.getMissingDependenciesForAppinstallation).getApiResource,
|
|
41
41
|
/** Get a SystemSoftware. */
|
|
@@ -80,7 +80,7 @@ const buildBackupApi = (baseClient) => ({
|
|
|
80
80
|
getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
|
|
81
81
|
});
|
|
82
82
|
const buildContainerApi = (baseClient) => ({
|
|
83
|
-
/** Call pull-image webhook */
|
|
83
|
+
/** Call a Service pull-image webhook. */
|
|
84
84
|
callPullImageWebhookForService: new ApiCallAsyncResourceFactory(descriptors.containerCallPullImageWebhookForService, baseClient.container.callPullImageWebhookForService).getApiResource,
|
|
85
85
|
/** List Registries belonging to a Project. */
|
|
86
86
|
listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
|
|
@@ -288,14 +288,12 @@ const buildDatabaseApi = (baseClient) => ({
|
|
|
288
288
|
const buildDomainApi = (baseClient) => ({
|
|
289
289
|
/** List Domains */
|
|
290
290
|
listDomains: new ApiCallAsyncResourceFactory(descriptors.domainListDomains, baseClient.domain.listDomains).getApiResource,
|
|
291
|
-
/** List DNSZones belonging to a Project. */
|
|
292
|
-
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
293
291
|
/** Get a DNSZone. */
|
|
294
292
|
dnsGetDnsZone: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZone, baseClient.domain.dnsGetDnsZone).getApiResource,
|
|
295
|
-
/** Get the status of a DNS zone-file import job. */
|
|
296
|
-
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
297
293
|
/** Get a zone file for a DNSZone. */
|
|
298
294
|
dnsGetZoneFile: new ApiCallAsyncResourceFactory(descriptors.dnsGetZoneFile, baseClient.domain.dnsGetZoneFile).getApiResource,
|
|
295
|
+
/** List DNSZones belonging to a Project. */
|
|
296
|
+
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
299
297
|
/** Get a Domain. */
|
|
300
298
|
getDomain: new ApiCallAsyncResourceFactory(descriptors.domainGetDomain, baseClient.domain.getDomain).getApiResource,
|
|
301
299
|
/** Get a Contact-Verification. */
|
|
@@ -450,7 +448,7 @@ const buildProjectApi = (baseClient) => ({
|
|
|
450
448
|
listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
|
|
451
449
|
/** Get a ProjectInvite. */
|
|
452
450
|
getProjectInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectInvite, baseClient.project.getProjectInvite).getApiResource,
|
|
453
|
-
/** Get a ProjectMembership */
|
|
451
|
+
/** Get a ProjectMembership. */
|
|
454
452
|
getProjectMembership: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectMembership, baseClient.project.getProjectMembership).getApiResource,
|
|
455
453
|
/** Get a Project. */
|
|
456
454
|
getProject: new ApiCallAsyncResourceFactory(descriptors.projectGetProject, baseClient.project.getProject).getApiResource,
|
|
@@ -12,6 +12,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
12
12
|
customerGetKeys: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKeys),
|
|
13
13
|
/** Creates a new key. */
|
|
14
14
|
customerCreateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateKey),
|
|
15
|
+
/** Get all ai hosting plans of a customer. */
|
|
16
|
+
customerGetPlans: this.requestFunctionFactory(descriptors.aiHostingCustomerGetPlans),
|
|
15
17
|
/** Creates an AI hosting profile and accepts the current model terms. */
|
|
16
18
|
customerDeclareProfile: this.requestFunctionFactory(descriptors.aiHostingCustomerDeclareProfile),
|
|
17
19
|
/** Get a key of a customer. */
|
|
@@ -26,8 +28,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
26
28
|
customerGetPlan: this.requestFunctionFactory(descriptors.aiHostingCustomerGetPlan),
|
|
27
29
|
/** Renames an AI hosting plan. */
|
|
28
30
|
customerUpdatePlan: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdatePlan),
|
|
29
|
-
/** Get all ai hosting plans of a customer. */
|
|
30
|
-
customerGetPlans: this.requestFunctionFactory(descriptors.aiHostingCustomerGetPlans),
|
|
31
31
|
/** Get ai hosting plan and usages of a customer. Deprecated: use /ai-hostings/{planId} instead. */
|
|
32
32
|
customerGetUsage: this.requestFunctionFactory(descriptors.aiHostingCustomerGetUsage),
|
|
33
33
|
/** Get a list of currently active models. */
|
|
@@ -53,6 +53,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
53
53
|
};
|
|
54
54
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
55
55
|
app = {
|
|
56
|
+
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
57
|
+
getAppInstallationSystemSoftware: this.requestFunctionFactory(descriptors.appGetAppInstallationSystemSoftware),
|
|
56
58
|
/** Get an App. */
|
|
57
59
|
getApp: this.requestFunctionFactory(descriptors.appGetApp),
|
|
58
60
|
/** Get an AppInstallation. */
|
|
@@ -63,8 +65,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
63
65
|
patchAppinstallation: this.requestFunctionFactory(descriptors.appPatchAppinstallation),
|
|
64
66
|
/** Get an AppVersion. */
|
|
65
67
|
getAppversion: this.requestFunctionFactory(descriptors.appGetAppversion),
|
|
66
|
-
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
67
|
-
getInstalledSystemsoftwareForAppinstallation: this.requestFunctionFactory(descriptors.appGetInstalledSystemsoftwareForAppinstallation),
|
|
68
68
|
/** Get the missing requirements of an appInstallation for a specific target AppVersion. */
|
|
69
69
|
getMissingDependenciesForAppinstallation: this.requestFunctionFactory(descriptors.appGetMissingDependenciesForAppinstallation),
|
|
70
70
|
/** Get a SystemSoftware. */
|
|
@@ -138,7 +138,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
138
138
|
container = {
|
|
139
139
|
/** Add a template component to a Stack. */
|
|
140
140
|
addTemplateComponent: this.requestFunctionFactory(descriptors.containerAddTemplateComponent),
|
|
141
|
-
/** Call pull-image webhook */
|
|
141
|
+
/** Call a Service pull-image webhook. */
|
|
142
142
|
callPullImageWebhookForService: this.requestFunctionFactory(descriptors.containerCallPullImageWebhookForService),
|
|
143
143
|
/** List Registries belonging to a Project. */
|
|
144
144
|
listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
|
|
@@ -188,13 +188,13 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
188
188
|
listTemplates: this.requestFunctionFactory(descriptors.containerListTemplates),
|
|
189
189
|
/** List Volumes belonging to a Project. */
|
|
190
190
|
listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
|
|
191
|
-
/** Pull image and recreate */
|
|
191
|
+
/** Pull a Service image and recreate. */
|
|
192
192
|
pullImageForService: this.requestFunctionFactory(descriptors.containerPullImageForService),
|
|
193
193
|
/** Recreate a Service. */
|
|
194
194
|
recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
|
|
195
195
|
/** Restart a started Service. */
|
|
196
196
|
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
197
|
-
/** Create or rotate pull-image webhook token */
|
|
197
|
+
/** Create or rotate a Service pull-image webhook token. */
|
|
198
198
|
rotatePullImageWebhookForService: this.requestFunctionFactory(descriptors.containerRotatePullImageWebhookForService),
|
|
199
199
|
/** Start a stopped Service. */
|
|
200
200
|
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
@@ -559,22 +559,16 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
559
559
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
560
560
|
/** Update the tls settings of an Ingress. */
|
|
561
561
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
562
|
-
/**
|
|
563
|
-
|
|
564
|
-
/** List DNSZones belonging to a Project. */
|
|
565
|
-
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
566
|
-
/** Create a DNSZone for a domain in a Project. */
|
|
567
|
-
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
562
|
+
/** Create a DNSZone. */
|
|
563
|
+
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
568
564
|
/** Get a DNSZone. */
|
|
569
565
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
570
566
|
/** Delete a DNSZone. */
|
|
571
567
|
dnsDeleteDnsZone: this.requestFunctionFactory(descriptors.dnsDeleteDnsZone),
|
|
572
|
-
/** Get the status of a DNS zone-file import job. */
|
|
573
|
-
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
574
568
|
/** Get a zone file for a DNSZone. */
|
|
575
569
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
576
|
-
/**
|
|
577
|
-
|
|
570
|
+
/** List DNSZones belonging to a Project. */
|
|
571
|
+
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
578
572
|
/** Set a record set on a DNSZone to managed. */
|
|
579
573
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
580
574
|
/** Update a record set on a DNSZone. */
|
|
@@ -903,7 +897,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
903
897
|
getLicense: this.requestFunctionFactory(descriptors.licenseGetLicense),
|
|
904
898
|
/** List Licenses belonging to a Project. */
|
|
905
899
|
listLicensesForProject: this.requestFunctionFactory(descriptors.licenseListLicensesForProject),
|
|
906
|
-
/**
|
|
900
|
+
/** Rotate a License's key, i.e. revoke the old and generate a new one. */
|
|
907
901
|
rotateLicenseKey: this.requestFunctionFactory(descriptors.licenseRotateLicenseKey),
|
|
908
902
|
/** Validate a License's key for a project. */
|
|
909
903
|
validateLicenseKeyForProject: this.requestFunctionFactory(descriptors.licenseValidateLicenseKeyForProject),
|
|
@@ -950,7 +944,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
950
944
|
getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
|
|
951
945
|
/** Delete a ProjectInvite. */
|
|
952
946
|
deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
|
|
953
|
-
/** Get a ProjectMembership */
|
|
947
|
+
/** Get a ProjectMembership. */
|
|
954
948
|
getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
|
|
955
949
|
/** Delete a ProjectMembership. */
|
|
956
950
|
deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
|
|
@@ -16,9 +16,15 @@ export const aiHostingCustomerCreateKey = {
|
|
|
16
16
|
method: "POST",
|
|
17
17
|
operationId: "ai-hosting-customer-create-key",
|
|
18
18
|
};
|
|
19
|
+
/** Get all ai hosting plans of a customer. */
|
|
20
|
+
export const aiHostingCustomerGetPlans = {
|
|
21
|
+
path: "/v2/customers/{customerId}/ai-hostings",
|
|
22
|
+
method: "GET",
|
|
23
|
+
operationId: "ai-hosting-customer-get-plans",
|
|
24
|
+
};
|
|
19
25
|
/** Creates an AI hosting profile and accepts the current model terms. */
|
|
20
26
|
export const aiHostingCustomerDeclareProfile = {
|
|
21
|
-
path: "/v2/customers/{customerId}/ai-hostings
|
|
27
|
+
path: "/v2/customers/{customerId}/ai-hostings",
|
|
22
28
|
method: "POST",
|
|
23
29
|
operationId: "ai-hosting-customer-declare-profile",
|
|
24
30
|
};
|
|
@@ -58,12 +64,6 @@ export const aiHostingCustomerUpdatePlan = {
|
|
|
58
64
|
method: "PUT",
|
|
59
65
|
operationId: "ai-hosting-customer-update-plan",
|
|
60
66
|
};
|
|
61
|
-
/** Get all ai hosting plans of a customer. */
|
|
62
|
-
export const aiHostingCustomerGetPlans = {
|
|
63
|
-
path: "/v2/customers/{customerId}/ai-hostings",
|
|
64
|
-
method: "GET",
|
|
65
|
-
operationId: "ai-hosting-customer-get-plans",
|
|
66
|
-
};
|
|
67
67
|
/** Get ai hosting plan and usages of a customer. Deprecated: use /ai-hostings/{planId} instead. */
|
|
68
68
|
export const aiHostingCustomerGetUsage = {
|
|
69
69
|
path: "/v2/customers/{customerId}/ai-hosting",
|
|
@@ -130,6 +130,12 @@ export const aiHostingProjectLinkContainer = {
|
|
|
130
130
|
method: "POST",
|
|
131
131
|
operationId: "ai-hosting-project-link-container",
|
|
132
132
|
};
|
|
133
|
+
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
134
|
+
export const appGetAppInstallationSystemSoftware = {
|
|
135
|
+
path: "/v2/app-installations/{appInstallationId}/system-software",
|
|
136
|
+
method: "GET",
|
|
137
|
+
operationId: "app-get-app-installation-system-software",
|
|
138
|
+
};
|
|
133
139
|
/** Get an App. */
|
|
134
140
|
export const appGetApp = {
|
|
135
141
|
path: "/v2/apps/{appId}",
|
|
@@ -160,12 +166,6 @@ export const appGetAppversion = {
|
|
|
160
166
|
method: "GET",
|
|
161
167
|
operationId: "app-get-appversion",
|
|
162
168
|
};
|
|
163
|
-
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
164
|
-
export const appGetInstalledSystemsoftwareForAppinstallation = {
|
|
165
|
-
path: "/v2/app-installations/{appInstallationId}/systemSoftware",
|
|
166
|
-
method: "GET",
|
|
167
|
-
operationId: "app-get-installed-systemsoftware-for-appinstallation",
|
|
168
|
-
};
|
|
169
169
|
/** Get the missing requirements of an appInstallation for a specific target AppVersion. */
|
|
170
170
|
export const appGetMissingDependenciesForAppinstallation = {
|
|
171
171
|
path: "/v2/app-installations/{appInstallationId}/missing-dependencies",
|
|
@@ -358,7 +358,7 @@ export const containerAddTemplateComponent = {
|
|
|
358
358
|
method: "POST",
|
|
359
359
|
operationId: "container-add-template-component",
|
|
360
360
|
};
|
|
361
|
-
/** Call pull-image webhook */
|
|
361
|
+
/** Call a Service pull-image webhook. */
|
|
362
362
|
export const containerCallPullImageWebhookForService = {
|
|
363
363
|
path: "/v2/stacks/{stackId}/webhooks/pull-image",
|
|
364
364
|
method: "GET",
|
|
@@ -508,7 +508,7 @@ export const containerListVolumes = {
|
|
|
508
508
|
method: "GET",
|
|
509
509
|
operationId: "container-list-volumes",
|
|
510
510
|
};
|
|
511
|
-
/** Pull image and recreate */
|
|
511
|
+
/** Pull a Service image and recreate. */
|
|
512
512
|
export const containerPullImageForService = {
|
|
513
513
|
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/pull",
|
|
514
514
|
method: "POST",
|
|
@@ -526,7 +526,7 @@ export const containerRestartService = {
|
|
|
526
526
|
method: "POST",
|
|
527
527
|
operationId: "container-restart-service",
|
|
528
528
|
};
|
|
529
|
-
/** Create or rotate pull-image webhook token */
|
|
529
|
+
/** Create or rotate a Service pull-image webhook token. */
|
|
530
530
|
export const containerRotatePullImageWebhookForService = {
|
|
531
531
|
path: "/v2/stacks/{stackId}/services/{serviceId}/webhook-token",
|
|
532
532
|
method: "POST",
|
|
@@ -1240,23 +1240,11 @@ export const userUpdateAccount = {
|
|
|
1240
1240
|
method: "PUT",
|
|
1241
1241
|
operationId: "user-update-account",
|
|
1242
1242
|
};
|
|
1243
|
-
/**
|
|
1244
|
-
export const
|
|
1245
|
-
path: "/v2/
|
|
1246
|
-
method: "POST",
|
|
1247
|
-
operationId: "dns-create-dns-zone-file-import",
|
|
1248
|
-
};
|
|
1249
|
-
/** List DNSZones belonging to a Project. */
|
|
1250
|
-
export const dnsListDnsZones = {
|
|
1251
|
-
path: "/v2/projects/{projectId}/dns-zones",
|
|
1252
|
-
method: "GET",
|
|
1253
|
-
operationId: "dns-list-dns-zones",
|
|
1254
|
-
};
|
|
1255
|
-
/** Create a DNSZone for a domain in a Project. */
|
|
1256
|
-
export const dnsCreateProjectDnsZone = {
|
|
1257
|
-
path: "/v2/projects/{projectId}/dns-zones",
|
|
1243
|
+
/** Create a DNSZone. */
|
|
1244
|
+
export const dnsCreateDnsZone = {
|
|
1245
|
+
path: "/v2/dns-zones",
|
|
1258
1246
|
method: "POST",
|
|
1259
|
-
operationId: "dns-create-
|
|
1247
|
+
operationId: "dns-create-dns-zone",
|
|
1260
1248
|
};
|
|
1261
1249
|
/** Get a DNSZone. */
|
|
1262
1250
|
export const dnsGetDnsZone = {
|
|
@@ -1270,23 +1258,17 @@ export const dnsDeleteDnsZone = {
|
|
|
1270
1258
|
method: "DELETE",
|
|
1271
1259
|
operationId: "dns-delete-dns-zone",
|
|
1272
1260
|
};
|
|
1273
|
-
/** Get the status of a DNS zone-file import job. */
|
|
1274
|
-
export const dnsGetDnsZoneFileImport = {
|
|
1275
|
-
path: "/v2/dns-zone-imports/{zoneFileImportId}",
|
|
1276
|
-
method: "GET",
|
|
1277
|
-
operationId: "dns-get-dns-zone-file-import",
|
|
1278
|
-
};
|
|
1279
1261
|
/** Get a zone file for a DNSZone. */
|
|
1280
1262
|
export const dnsGetZoneFile = {
|
|
1281
1263
|
path: "/v2/dns-zones/{dnsZoneId}/zone-file",
|
|
1282
1264
|
method: "GET",
|
|
1283
1265
|
operationId: "dns-get-zone-file",
|
|
1284
1266
|
};
|
|
1285
|
-
/**
|
|
1286
|
-
export const
|
|
1287
|
-
path: "/v2/projects/{projectId}/dns-zones
|
|
1288
|
-
method: "
|
|
1289
|
-
operationId: "dns-
|
|
1267
|
+
/** List DNSZones belonging to a Project. */
|
|
1268
|
+
export const dnsListDnsZones = {
|
|
1269
|
+
path: "/v2/projects/{projectId}/dns-zones",
|
|
1270
|
+
method: "GET",
|
|
1271
|
+
operationId: "dns-list-dns-zones",
|
|
1290
1272
|
};
|
|
1291
1273
|
/** Set a record set on a DNSZone to managed. */
|
|
1292
1274
|
export const dnsSetRecordSetManaged = {
|
|
@@ -1918,7 +1900,7 @@ export const licenseListLicensesForProject = {
|
|
|
1918
1900
|
method: "GET",
|
|
1919
1901
|
operationId: "license-list-licenses-for-project",
|
|
1920
1902
|
};
|
|
1921
|
-
/**
|
|
1903
|
+
/** Rotate a License's key, i.e. revoke the old and generate a new one. */
|
|
1922
1904
|
export const licenseRotateLicenseKey = {
|
|
1923
1905
|
path: "/v2/licenses/{licenseId}/actions/rotate-key",
|
|
1924
1906
|
method: "POST",
|
|
@@ -2260,7 +2242,7 @@ export const projectDeleteProjectInvite = {
|
|
|
2260
2242
|
method: "DELETE",
|
|
2261
2243
|
operationId: "project-delete-project-invite",
|
|
2262
2244
|
};
|
|
2263
|
-
/** Get a ProjectMembership */
|
|
2245
|
+
/** Get a ProjectMembership. */
|
|
2264
2246
|
export const projectGetProjectMembership = {
|
|
2265
2247
|
path: "/v2/project-memberships/{projectMembershipId}",
|
|
2266
2248
|
method: "GET",
|
|
@@ -4,14 +4,14 @@ export * from "@mittwald/react-use-promise";
|
|
|
4
4
|
const buildAiHostingApi = (baseClient) => ({
|
|
5
5
|
/** Get a list of already created keys. */
|
|
6
6
|
customerGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKeys, baseClient.aiHosting.customerGetKeys).getApiResource,
|
|
7
|
+
/** Get all ai hosting plans of a customer. */
|
|
8
|
+
customerGetPlans: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlans, baseClient.aiHosting.customerGetPlans).getApiResource,
|
|
7
9
|
/** Get a key of a customer. */
|
|
8
10
|
customerGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKey, baseClient.aiHosting.customerGetKey).getApiResource,
|
|
9
11
|
/** Get a list of currently active models. */
|
|
10
12
|
customerGetDetailedModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetDetailedModels, baseClient.aiHosting.customerGetDetailedModels).getApiResource,
|
|
11
13
|
/** Get ai hosting plan and usages of a customer by planId. */
|
|
12
14
|
customerGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlan, baseClient.aiHosting.customerGetPlan).getApiResource,
|
|
13
|
-
/** Get all ai hosting plans of a customer. */
|
|
14
|
-
customerGetPlans: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlans, baseClient.aiHosting.customerGetPlans).getApiResource,
|
|
15
15
|
/** Get ai hosting plan and usages of a customer. Deprecated: use /ai-hostings/{planId} instead. */
|
|
16
16
|
customerGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetUsage, baseClient.aiHosting.customerGetUsage).getApiResource,
|
|
17
17
|
/** Get a list of currently active models. */
|
|
@@ -28,14 +28,14 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
28
28
|
projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).getApiResource,
|
|
29
29
|
});
|
|
30
30
|
const buildAppApi = (baseClient) => ({
|
|
31
|
+
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
32
|
+
getAppInstallationSystemSoftware: new ApiCallAsyncResourceFactory(descriptors.appGetAppInstallationSystemSoftware, baseClient.app.getAppInstallationSystemSoftware).getApiResource,
|
|
31
33
|
/** Get an App. */
|
|
32
34
|
getApp: new ApiCallAsyncResourceFactory(descriptors.appGetApp, baseClient.app.getApp).getApiResource,
|
|
33
35
|
/** Get an AppInstallation. */
|
|
34
36
|
getAppinstallation: new ApiCallAsyncResourceFactory(descriptors.appGetAppinstallation, baseClient.app.getAppinstallation).getApiResource,
|
|
35
37
|
/** Get an AppVersion. */
|
|
36
38
|
getAppversion: new ApiCallAsyncResourceFactory(descriptors.appGetAppversion, baseClient.app.getAppversion).getApiResource,
|
|
37
|
-
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
38
|
-
getInstalledSystemsoftwareForAppinstallation: new ApiCallAsyncResourceFactory(descriptors.appGetInstalledSystemsoftwareForAppinstallation, baseClient.app.getInstalledSystemsoftwareForAppinstallation).getApiResource,
|
|
39
39
|
/** Get the missing requirements of an appInstallation for a specific target AppVersion. */
|
|
40
40
|
getMissingDependenciesForAppinstallation: new ApiCallAsyncResourceFactory(descriptors.appGetMissingDependenciesForAppinstallation, baseClient.app.getMissingDependenciesForAppinstallation).getApiResource,
|
|
41
41
|
/** Get a SystemSoftware. */
|
|
@@ -80,7 +80,7 @@ const buildBackupApi = (baseClient) => ({
|
|
|
80
80
|
getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
|
|
81
81
|
});
|
|
82
82
|
const buildContainerApi = (baseClient) => ({
|
|
83
|
-
/** Call pull-image webhook */
|
|
83
|
+
/** Call a Service pull-image webhook. */
|
|
84
84
|
callPullImageWebhookForService: new ApiCallAsyncResourceFactory(descriptors.containerCallPullImageWebhookForService, baseClient.container.callPullImageWebhookForService).getApiResource,
|
|
85
85
|
/** List Registries belonging to a Project. */
|
|
86
86
|
listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
|
|
@@ -288,14 +288,12 @@ const buildDatabaseApi = (baseClient) => ({
|
|
|
288
288
|
const buildDomainApi = (baseClient) => ({
|
|
289
289
|
/** List domains. */
|
|
290
290
|
serviceNextListDomains: new ApiCallAsyncResourceFactory(descriptors.domainServiceNextListDomains, baseClient.domain.serviceNextListDomains).getApiResource,
|
|
291
|
-
/** List DNSZones belonging to a Project. */
|
|
292
|
-
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
293
291
|
/** Get a DNSZone. */
|
|
294
292
|
dnsGetDnsZone: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZone, baseClient.domain.dnsGetDnsZone).getApiResource,
|
|
295
|
-
/** Get the status of a DNS zone-file import job. */
|
|
296
|
-
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
297
293
|
/** Get a zone file for a DNSZone. */
|
|
298
294
|
dnsGetZoneFile: new ApiCallAsyncResourceFactory(descriptors.dnsGetZoneFile, baseClient.domain.dnsGetZoneFile).getApiResource,
|
|
295
|
+
/** List DNSZones belonging to a Project. */
|
|
296
|
+
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
299
297
|
/** Get a domain. */
|
|
300
298
|
serviceNextGetDomain: new ApiCallAsyncResourceFactory(descriptors.domainServiceNextGetDomain, baseClient.domain.serviceNextGetDomain).getApiResource,
|
|
301
299
|
/** Get a Contact-Verification. */
|
|
@@ -450,7 +448,7 @@ const buildProjectApi = (baseClient) => ({
|
|
|
450
448
|
listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
|
|
451
449
|
/** Get a ProjectInvite. */
|
|
452
450
|
getProjectInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectInvite, baseClient.project.getProjectInvite).getApiResource,
|
|
453
|
-
/** Get a ProjectMembership */
|
|
451
|
+
/** Get a ProjectMembership. */
|
|
454
452
|
getProjectMembership: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectMembership, baseClient.project.getProjectMembership).getApiResource,
|
|
455
453
|
/** Get a Project. */
|
|
456
454
|
getProject: new ApiCallAsyncResourceFactory(descriptors.projectGetProject, baseClient.project.getProject).getApiResource,
|
|
@@ -12,6 +12,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
12
12
|
customerGetKeys: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKeys),
|
|
13
13
|
/** Creates a new key. */
|
|
14
14
|
customerCreateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateKey),
|
|
15
|
+
/** Get all ai hosting plans of a customer. */
|
|
16
|
+
customerGetPlans: this.requestFunctionFactory(descriptors.aiHostingCustomerGetPlans),
|
|
15
17
|
/** Creates an AI hosting profile and accepts the current model terms. */
|
|
16
18
|
customerDeclareProfile: this.requestFunctionFactory(descriptors.aiHostingCustomerDeclareProfile),
|
|
17
19
|
/** Get a key of a customer. */
|
|
@@ -26,8 +28,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
26
28
|
customerGetPlan: this.requestFunctionFactory(descriptors.aiHostingCustomerGetPlan),
|
|
27
29
|
/** Renames an AI hosting plan. */
|
|
28
30
|
customerUpdatePlan: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdatePlan),
|
|
29
|
-
/** Get all ai hosting plans of a customer. */
|
|
30
|
-
customerGetPlans: this.requestFunctionFactory(descriptors.aiHostingCustomerGetPlans),
|
|
31
31
|
/** Get ai hosting plan and usages of a customer. Deprecated: use /ai-hostings/{planId} instead. */
|
|
32
32
|
customerGetUsage: this.requestFunctionFactory(descriptors.aiHostingCustomerGetUsage),
|
|
33
33
|
/** Get a list of currently active models. */
|
|
@@ -53,6 +53,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
53
53
|
};
|
|
54
54
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
55
55
|
app = {
|
|
56
|
+
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
57
|
+
getAppInstallationSystemSoftware: this.requestFunctionFactory(descriptors.appGetAppInstallationSystemSoftware),
|
|
56
58
|
/** Get an App. */
|
|
57
59
|
getApp: this.requestFunctionFactory(descriptors.appGetApp),
|
|
58
60
|
/** Get an AppInstallation. */
|
|
@@ -63,8 +65,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
63
65
|
patchAppinstallation: this.requestFunctionFactory(descriptors.appPatchAppinstallation),
|
|
64
66
|
/** Get an AppVersion. */
|
|
65
67
|
getAppversion: this.requestFunctionFactory(descriptors.appGetAppversion),
|
|
66
|
-
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
67
|
-
getInstalledSystemsoftwareForAppinstallation: this.requestFunctionFactory(descriptors.appGetInstalledSystemsoftwareForAppinstallation),
|
|
68
68
|
/** Get the missing requirements of an appInstallation for a specific target AppVersion. */
|
|
69
69
|
getMissingDependenciesForAppinstallation: this.requestFunctionFactory(descriptors.appGetMissingDependenciesForAppinstallation),
|
|
70
70
|
/** Get a SystemSoftware. */
|
|
@@ -138,7 +138,7 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
138
138
|
container = {
|
|
139
139
|
/** Add a template component to a Stack. */
|
|
140
140
|
addTemplateComponent: this.requestFunctionFactory(descriptors.containerAddTemplateComponent),
|
|
141
|
-
/** Call pull-image webhook */
|
|
141
|
+
/** Call a Service pull-image webhook. */
|
|
142
142
|
callPullImageWebhookForService: this.requestFunctionFactory(descriptors.containerCallPullImageWebhookForService),
|
|
143
143
|
/** List Registries belonging to a Project. */
|
|
144
144
|
listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
|
|
@@ -188,13 +188,13 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
188
188
|
listTemplates: this.requestFunctionFactory(descriptors.containerListTemplates),
|
|
189
189
|
/** List Volumes belonging to a Project. */
|
|
190
190
|
listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
|
|
191
|
-
/** Pull image and recreate */
|
|
191
|
+
/** Pull a Service image and recreate. */
|
|
192
192
|
pullImageForService: this.requestFunctionFactory(descriptors.containerPullImageForService),
|
|
193
193
|
/** Recreate a Service. */
|
|
194
194
|
recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
|
|
195
195
|
/** Restart a started Service. */
|
|
196
196
|
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
197
|
-
/** Create or rotate pull-image webhook token */
|
|
197
|
+
/** Create or rotate a Service pull-image webhook token. */
|
|
198
198
|
rotatePullImageWebhookForService: this.requestFunctionFactory(descriptors.containerRotatePullImageWebhookForService),
|
|
199
199
|
/** Start a stopped Service. */
|
|
200
200
|
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
@@ -559,22 +559,16 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
559
559
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
560
560
|
/** Update the tls settings of an Ingress. */
|
|
561
561
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
562
|
-
/**
|
|
563
|
-
|
|
564
|
-
/** List DNSZones belonging to a Project. */
|
|
565
|
-
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
566
|
-
/** Create a DNSZone for a domain in a Project. */
|
|
567
|
-
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
562
|
+
/** Create a DNSZone. */
|
|
563
|
+
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
568
564
|
/** Get a DNSZone. */
|
|
569
565
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
570
566
|
/** Delete a DNSZone. */
|
|
571
567
|
dnsDeleteDnsZone: this.requestFunctionFactory(descriptors.dnsDeleteDnsZone),
|
|
572
|
-
/** Get the status of a DNS zone-file import job. */
|
|
573
|
-
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
574
568
|
/** Get a zone file for a DNSZone. */
|
|
575
569
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
576
|
-
/**
|
|
577
|
-
|
|
570
|
+
/** List DNSZones belonging to a Project. */
|
|
571
|
+
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
578
572
|
/** Set a record set on a DNSZone to managed. */
|
|
579
573
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
580
574
|
/** Update a record set on a DNSZone. */
|
|
@@ -903,7 +897,7 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
903
897
|
getLicense: this.requestFunctionFactory(descriptors.licenseGetLicense),
|
|
904
898
|
/** List Licenses belonging to a Project. */
|
|
905
899
|
listLicensesForProject: this.requestFunctionFactory(descriptors.licenseListLicensesForProject),
|
|
906
|
-
/**
|
|
900
|
+
/** Rotate a License's key, i.e. revoke the old and generate a new one. */
|
|
907
901
|
rotateLicenseKey: this.requestFunctionFactory(descriptors.licenseRotateLicenseKey),
|
|
908
902
|
/** Validate a License's key for a project. */
|
|
909
903
|
validateLicenseKeyForProject: this.requestFunctionFactory(descriptors.licenseValidateLicenseKeyForProject),
|
|
@@ -950,7 +944,7 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
950
944
|
getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
|
|
951
945
|
/** Delete a ProjectInvite. */
|
|
952
946
|
deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
|
|
953
|
-
/** Get a ProjectMembership */
|
|
947
|
+
/** Get a ProjectMembership. */
|
|
954
948
|
getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
|
|
955
949
|
/** Delete a ProjectMembership. */
|
|
956
950
|
deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
|