@mittwald/api-client 0.0.0-development-38f3a39-20260824 → 0.0.0-development-1eef98f-20260826
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 +2 -0
- package/dist/esm/generated/v2/client.js +14 -2
- package/dist/esm/generated/v2/descriptors.js +42 -6
- package/dist/esm/generated/v3-next/client-react.js +2 -0
- package/dist/esm/generated/v3-next/client.js +14 -2
- package/dist/esm/generated/v3-next/descriptors.js +42 -6
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +23 -0
- package/dist/types/generated/v2/client.d.ts +423 -57
- package/dist/types/generated/v2/descriptors.d.ts +14 -2
- package/dist/types/generated/v2/types.d.ts +471 -38
- package/dist/types/generated/v3-next/client-react.d.ts +23 -0
- package/dist/types/generated/v3-next/client.d.ts +423 -57
- package/dist/types/generated/v3-next/descriptors.d.ts +14 -2
- package/dist/types/generated/v3-next/types.d.ts +471 -38
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -324,6 +324,8 @@ const buildDomainApi = (baseClient) => ({
|
|
|
324
324
|
sslGetCertificate: new ApiCallAsyncResourceFactory(descriptors.sslGetCertificate, baseClient.domain.sslGetCertificate).getApiResource,
|
|
325
325
|
/** List Certificates belonging to a Project or an Ingress. */
|
|
326
326
|
sslListCertificates: new ApiCallAsyncResourceFactory(descriptors.sslListCertificates, baseClient.domain.sslListCertificates).getApiResource,
|
|
327
|
+
/** Get the status of a DNS zone-file import job. */
|
|
328
|
+
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
327
329
|
});
|
|
328
330
|
const buildFileApi = (baseClient) => ({
|
|
329
331
|
/** Get a File's meta. */
|
|
@@ -93,6 +93,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
93
93
|
retrieveStatus: this.requestFunctionFactory(descriptors.appRetrieveStatus),
|
|
94
94
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
95
95
|
unlinkDatabase: this.requestFunctionFactory(descriptors.appUnlinkDatabase),
|
|
96
|
+
/** Detach a staging AppInstallation from its source. */
|
|
97
|
+
detachAppinstallationStaging: this.requestFunctionFactory(descriptors.appDetachAppinstallationStaging),
|
|
98
|
+
/** Promote a staging AppInstallation. */
|
|
99
|
+
promoteAppinstallationStaging: this.requestFunctionFactory(descriptors.appPromoteAppinstallationStaging),
|
|
100
|
+
/** Request a staging for an AppInstallation. */
|
|
101
|
+
requestAppinstallationStaging: this.requestFunctionFactory(descriptors.appRequestAppinstallationStaging),
|
|
96
102
|
};
|
|
97
103
|
/** The article API allows you to read article information. */
|
|
98
104
|
article = {
|
|
@@ -559,8 +565,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
559
565
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
560
566
|
/** Update the tls settings of an Ingress. */
|
|
561
567
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
562
|
-
/** Create a DNSZone. */
|
|
563
|
-
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
564
568
|
/** Get a DNSZone. */
|
|
565
569
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
566
570
|
/** Delete a DNSZone. */
|
|
@@ -569,6 +573,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
569
573
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
570
574
|
/** List DNSZones belonging to a Project. */
|
|
571
575
|
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
576
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
577
|
+
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
572
578
|
/** Set a record set on a DNSZone to managed. */
|
|
573
579
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
574
580
|
/** Update a record set on a DNSZone. */
|
|
@@ -653,6 +659,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
653
659
|
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
|
|
654
660
|
/** Update the certificate of a CertificateRequest. */
|
|
655
661
|
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
|
|
662
|
+
/** Get the status of a DNS zone-file import job. */
|
|
663
|
+
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
664
|
+
/** Start a server-side DNS zone-file import for a Project. */
|
|
665
|
+
dnsCreateDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsCreateDnsZoneFileImport),
|
|
666
|
+
/** Preview a DNS zone-file import for a Project. */
|
|
667
|
+
dnsPreviewProjectDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsPreviewProjectDnsZoneFileImport),
|
|
656
668
|
};
|
|
657
669
|
/** The mail API allows you to manage your mail accounts. */
|
|
658
670
|
mail = {
|
|
@@ -1240,12 +1240,6 @@ export const userUpdateAccount = {
|
|
|
1240
1240
|
method: "PUT",
|
|
1241
1241
|
operationId: "user-update-account",
|
|
1242
1242
|
};
|
|
1243
|
-
/** Create a DNSZone. */
|
|
1244
|
-
export const dnsCreateDnsZone = {
|
|
1245
|
-
path: "/v2/dns-zones",
|
|
1246
|
-
method: "POST",
|
|
1247
|
-
operationId: "dns-create-dns-zone",
|
|
1248
|
-
};
|
|
1249
1243
|
/** Get a DNSZone. */
|
|
1250
1244
|
export const dnsGetDnsZone = {
|
|
1251
1245
|
path: "/v2/dns-zones/{dnsZoneId}",
|
|
@@ -1270,6 +1264,12 @@ export const dnsListDnsZones = {
|
|
|
1270
1264
|
method: "GET",
|
|
1271
1265
|
operationId: "dns-list-dns-zones",
|
|
1272
1266
|
};
|
|
1267
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
1268
|
+
export const dnsCreateProjectDnsZone = {
|
|
1269
|
+
path: "/v2/projects/{projectId}/dns-zones",
|
|
1270
|
+
method: "POST",
|
|
1271
|
+
operationId: "dns-create-project-dns-zone",
|
|
1272
|
+
};
|
|
1273
1273
|
/** Set a record set on a DNSZone to managed. */
|
|
1274
1274
|
export const dnsSetRecordSetManaged = {
|
|
1275
1275
|
path: "/v2/dns-zones/{dnsZoneId}/record-sets/{recordSet}/actions/set-managed",
|
|
@@ -2878,3 +2878,39 @@ export const verificationVerifyCompany = {
|
|
|
2878
2878
|
method: "POST",
|
|
2879
2879
|
operationId: "verification-verify-company",
|
|
2880
2880
|
};
|
|
2881
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2882
|
+
export const dnsGetDnsZoneFileImport = {
|
|
2883
|
+
path: "/v2/dns-zone-imports/{zoneFileImportId}",
|
|
2884
|
+
method: "GET",
|
|
2885
|
+
operationId: "dns-get-dns-zone-file-import",
|
|
2886
|
+
};
|
|
2887
|
+
/** Start a server-side DNS zone-file import for a Project. */
|
|
2888
|
+
export const dnsCreateDnsZoneFileImport = {
|
|
2889
|
+
path: "/v2/projects/{projectId}/dns-zone-imports",
|
|
2890
|
+
method: "POST",
|
|
2891
|
+
operationId: "dns-create-dns-zone-file-import",
|
|
2892
|
+
};
|
|
2893
|
+
/** Preview a DNS zone-file import for a Project. */
|
|
2894
|
+
export const dnsPreviewProjectDnsZoneFileImport = {
|
|
2895
|
+
path: "/v2/projects/{projectId}/dns-zones/import-preview",
|
|
2896
|
+
method: "POST",
|
|
2897
|
+
operationId: "dns-preview-project-dns-zone-file-import",
|
|
2898
|
+
};
|
|
2899
|
+
/** Detach a staging AppInstallation from its source. */
|
|
2900
|
+
export const appDetachAppinstallationStaging = {
|
|
2901
|
+
path: "/v2/app-installations/{appInstallationId}/actions/detach-staging",
|
|
2902
|
+
method: "POST",
|
|
2903
|
+
operationId: "app-detach-appinstallation-staging",
|
|
2904
|
+
};
|
|
2905
|
+
/** Promote a staging AppInstallation. */
|
|
2906
|
+
export const appPromoteAppinstallationStaging = {
|
|
2907
|
+
path: "/v2/app-installations/{appInstallationId}/actions/promote-staging",
|
|
2908
|
+
method: "POST",
|
|
2909
|
+
operationId: "app-promote-appinstallation-staging",
|
|
2910
|
+
};
|
|
2911
|
+
/** Request a staging for an AppInstallation. */
|
|
2912
|
+
export const appRequestAppinstallationStaging = {
|
|
2913
|
+
path: "/v2/app-installations/{appInstallationId}/actions/staging",
|
|
2914
|
+
method: "POST",
|
|
2915
|
+
operationId: "app-request-appinstallation-staging",
|
|
2916
|
+
};
|
|
@@ -324,6 +324,8 @@ const buildDomainApi = (baseClient) => ({
|
|
|
324
324
|
sslGetCertificate: new ApiCallAsyncResourceFactory(descriptors.sslGetCertificate, baseClient.domain.sslGetCertificate).getApiResource,
|
|
325
325
|
/** List Certificates belonging to a Project or an Ingress. */
|
|
326
326
|
sslListCertificates: new ApiCallAsyncResourceFactory(descriptors.sslListCertificates, baseClient.domain.sslListCertificates).getApiResource,
|
|
327
|
+
/** Get the status of a DNS zone-file import job. */
|
|
328
|
+
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
327
329
|
});
|
|
328
330
|
const buildFileApi = (baseClient) => ({
|
|
329
331
|
/** Get a File's meta. */
|
|
@@ -93,6 +93,12 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
93
93
|
retrieveStatus: this.requestFunctionFactory(descriptors.appRetrieveStatus),
|
|
94
94
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
95
95
|
unlinkDatabase: this.requestFunctionFactory(descriptors.appUnlinkDatabase),
|
|
96
|
+
/** Detach a staging AppInstallation from its source. */
|
|
97
|
+
detachAppinstallationStaging: this.requestFunctionFactory(descriptors.appDetachAppinstallationStaging),
|
|
98
|
+
/** Promote a staging AppInstallation. */
|
|
99
|
+
promoteAppinstallationStaging: this.requestFunctionFactory(descriptors.appPromoteAppinstallationStaging),
|
|
100
|
+
/** Request a staging for an AppInstallation. */
|
|
101
|
+
requestAppinstallationStaging: this.requestFunctionFactory(descriptors.appRequestAppinstallationStaging),
|
|
96
102
|
};
|
|
97
103
|
/** The article API allows you to read article information. */
|
|
98
104
|
article = {
|
|
@@ -559,8 +565,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
559
565
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
560
566
|
/** Update the tls settings of an Ingress. */
|
|
561
567
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
562
|
-
/** Create a DNSZone. */
|
|
563
|
-
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
564
568
|
/** Get a DNSZone. */
|
|
565
569
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
566
570
|
/** Delete a DNSZone. */
|
|
@@ -569,6 +573,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
569
573
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
570
574
|
/** List DNSZones belonging to a Project. */
|
|
571
575
|
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
576
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
577
|
+
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
572
578
|
/** Set a record set on a DNSZone to managed. */
|
|
573
579
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
574
580
|
/** Update a record set on a DNSZone. */
|
|
@@ -653,6 +659,12 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
653
659
|
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
|
|
654
660
|
/** Update the certificate of a CertificateRequest. */
|
|
655
661
|
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
|
|
662
|
+
/** Get the status of a DNS zone-file import job. */
|
|
663
|
+
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
664
|
+
/** Start a server-side DNS zone-file import for a Project. */
|
|
665
|
+
dnsCreateDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsCreateDnsZoneFileImport),
|
|
666
|
+
/** Preview a DNS zone-file import for a Project. */
|
|
667
|
+
dnsPreviewProjectDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsPreviewProjectDnsZoneFileImport),
|
|
656
668
|
};
|
|
657
669
|
/** The mail API allows you to manage your mail accounts. */
|
|
658
670
|
mail = {
|
|
@@ -1240,12 +1240,6 @@ export const userUpdateAccount = {
|
|
|
1240
1240
|
method: "PUT",
|
|
1241
1241
|
operationId: "user-update-account",
|
|
1242
1242
|
};
|
|
1243
|
-
/** Create a DNSZone. */
|
|
1244
|
-
export const dnsCreateDnsZone = {
|
|
1245
|
-
path: "/v3-next/dns-zones",
|
|
1246
|
-
method: "POST",
|
|
1247
|
-
operationId: "dns-create-dns-zone",
|
|
1248
|
-
};
|
|
1249
1243
|
/** Get a DNSZone. */
|
|
1250
1244
|
export const dnsGetDnsZone = {
|
|
1251
1245
|
path: "/v3-next/dns-zones/{dnsZoneId}",
|
|
@@ -1270,6 +1264,12 @@ export const dnsListDnsZones = {
|
|
|
1270
1264
|
method: "GET",
|
|
1271
1265
|
operationId: "dns-list-dns-zones",
|
|
1272
1266
|
};
|
|
1267
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
1268
|
+
export const dnsCreateProjectDnsZone = {
|
|
1269
|
+
path: "/v3-next/projects/{projectId}/dns-zones",
|
|
1270
|
+
method: "POST",
|
|
1271
|
+
operationId: "dns-create-project-dns-zone",
|
|
1272
|
+
};
|
|
1273
1273
|
/** Set a record set on a DNSZone to managed. */
|
|
1274
1274
|
export const dnsSetRecordSetManaged = {
|
|
1275
1275
|
path: "/v3-next/dns-zones/{dnsZoneId}/record-sets/{recordSet}/actions/set-managed",
|
|
@@ -2878,3 +2878,39 @@ export const verificationVerifyCompany = {
|
|
|
2878
2878
|
method: "POST",
|
|
2879
2879
|
operationId: "verification-verify-company",
|
|
2880
2880
|
};
|
|
2881
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2882
|
+
export const dnsGetDnsZoneFileImport = {
|
|
2883
|
+
path: "/v3-next/dns-zone-imports/{zoneFileImportId}",
|
|
2884
|
+
method: "GET",
|
|
2885
|
+
operationId: "dns-get-dns-zone-file-import",
|
|
2886
|
+
};
|
|
2887
|
+
/** Start a server-side DNS zone-file import for a Project. */
|
|
2888
|
+
export const dnsCreateDnsZoneFileImport = {
|
|
2889
|
+
path: "/v3-next/projects/{projectId}/dns-zone-imports",
|
|
2890
|
+
method: "POST",
|
|
2891
|
+
operationId: "dns-create-dns-zone-file-import",
|
|
2892
|
+
};
|
|
2893
|
+
/** Preview a DNS zone-file import for a Project. */
|
|
2894
|
+
export const dnsPreviewProjectDnsZoneFileImport = {
|
|
2895
|
+
path: "/v3-next/projects/{projectId}/dns-zones/import-preview",
|
|
2896
|
+
method: "POST",
|
|
2897
|
+
operationId: "dns-preview-project-dns-zone-file-import",
|
|
2898
|
+
};
|
|
2899
|
+
/** Detach a staging AppInstallation from its source. */
|
|
2900
|
+
export const appDetachAppinstallationStaging = {
|
|
2901
|
+
path: "/v3-next/app-installations/{appInstallationId}/actions/detach-staging",
|
|
2902
|
+
method: "POST",
|
|
2903
|
+
operationId: "app-detach-appinstallation-staging",
|
|
2904
|
+
};
|
|
2905
|
+
/** Promote a staging AppInstallation. */
|
|
2906
|
+
export const appPromoteAppinstallationStaging = {
|
|
2907
|
+
path: "/v3-next/app-installations/{appInstallationId}/actions/promote-staging",
|
|
2908
|
+
method: "POST",
|
|
2909
|
+
operationId: "app-promote-appinstallation-staging",
|
|
2910
|
+
};
|
|
2911
|
+
/** Request a staging for an AppInstallation. */
|
|
2912
|
+
export const appRequestAppinstallationStaging = {
|
|
2913
|
+
path: "/v3-next/app-installations/{appInstallationId}/actions/staging",
|
|
2914
|
+
method: "POST",
|
|
2915
|
+
operationId: "app-request-appinstallation-staging",
|
|
2916
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.448.0';
|
|
@@ -243,6 +243,8 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
243
243
|
screenshotId?: string | undefined;
|
|
244
244
|
screenshotRef?: string | undefined;
|
|
245
245
|
shortId: string;
|
|
246
|
+
sourceAppInstallationId?: string | undefined;
|
|
247
|
+
staging?: boolean | undefined;
|
|
246
248
|
systemSoftware: import("./types.js").MittwaldAPIV2.Components.Schemas.AppInstalledSystemSoftware[];
|
|
247
249
|
updateAvailable: boolean;
|
|
248
250
|
updatePolicy: import("./types.js").MittwaldAPIV2.Components.Schemas.AppAppUpdatePolicy;
|
|
@@ -2566,6 +2568,27 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2566
2568
|
ingressId?: string | undefined;
|
|
2567
2569
|
} | undefined;
|
|
2568
2570
|
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.SslCertificate[]>;
|
|
2571
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2572
|
+
dnsGetDnsZoneFileImport: (conf: {
|
|
2573
|
+
zoneFileImportId: string;
|
|
2574
|
+
headers?: {
|
|
2575
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2576
|
+
"x-access-token"?: string | undefined;
|
|
2577
|
+
} | undefined;
|
|
2578
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
2579
|
+
failedZones: {
|
|
2580
|
+
error: string;
|
|
2581
|
+
name: string;
|
|
2582
|
+
}[];
|
|
2583
|
+
id: string;
|
|
2584
|
+
importedZones: string[];
|
|
2585
|
+
projectId: string;
|
|
2586
|
+
skippedZones: {
|
|
2587
|
+
name: string;
|
|
2588
|
+
reason: string;
|
|
2589
|
+
}[];
|
|
2590
|
+
status: string;
|
|
2591
|
+
}>;
|
|
2569
2592
|
};
|
|
2570
2593
|
declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
|
|
2571
2594
|
/** Get a File's meta. */
|