@mittwald/api-client 0.0.0-development-2348cf1-20260908 → 0.0.0-development-f0bf198-20260910
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 +4 -0
- package/dist/esm/generated/v2/client.js +8 -2
- package/dist/esm/generated/v2/descriptors.js +24 -6
- package/dist/esm/generated/v3-next/client-react.js +4 -0
- package/dist/esm/generated/v3-next/client.js +8 -2
- package/dist/esm/generated/v3-next/descriptors.js +24 -6
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +40 -13
- package/dist/types/generated/v2/client.d.ts +306 -84
- package/dist/types/generated/v2/descriptors.d.ts +8 -2
- package/dist/types/generated/v2/types.d.ts +300 -53
- package/dist/types/generated/v3-next/client-react.d.ts +40 -13
- package/dist/types/generated/v3-next/client.d.ts +306 -84
- package/dist/types/generated/v3-next/descriptors.d.ts +8 -2
- package/dist/types/generated/v3-next/types.d.ts +300 -53
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -330,6 +330,10 @@ const buildDomainApi = (baseClient) => ({
|
|
|
330
330
|
sslGetCertificate: new ApiCallAsyncResourceFactory(descriptors.sslGetCertificate, baseClient.domain.sslGetCertificate).getApiResource,
|
|
331
331
|
/** List Certificates belonging to a Project or an Ingress. */
|
|
332
332
|
sslListCertificates: new ApiCallAsyncResourceFactory(descriptors.sslListCertificates, baseClient.domain.sslListCertificates).getApiResource,
|
|
333
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
334
|
+
dnsListDnsZoneFileImports: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZoneFileImports, baseClient.domain.dnsListDnsZoneFileImports).getApiResource,
|
|
335
|
+
/** Get the status of a DNS zone-file import job. */
|
|
336
|
+
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
333
337
|
});
|
|
334
338
|
const buildFileApi = (baseClient) => ({
|
|
335
339
|
/** Get a File's meta. */
|
|
@@ -573,8 +573,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
573
573
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
574
574
|
/** Update the tls settings of an Ingress. */
|
|
575
575
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
576
|
-
/** Create a DNSZone. */
|
|
577
|
-
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
578
576
|
/** Get a DNSZone. */
|
|
579
577
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
580
578
|
/** Delete a DNSZone. */
|
|
@@ -583,6 +581,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
583
581
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
584
582
|
/** List DNSZones belonging to a Project. */
|
|
585
583
|
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
584
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
585
|
+
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
586
586
|
/** Set a record set on a DNSZone to managed. */
|
|
587
587
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
588
588
|
/** Update a record set on a DNSZone. */
|
|
@@ -667,6 +667,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
667
667
|
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
|
|
668
668
|
/** Update the certificate of a CertificateRequest. */
|
|
669
669
|
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
|
|
670
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
671
|
+
dnsListDnsZoneFileImports: this.requestFunctionFactory(descriptors.dnsListDnsZoneFileImports),
|
|
672
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
673
|
+
dnsCreateDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsCreateDnsZoneFileImport),
|
|
674
|
+
/** Get the status of a DNS zone-file import job. */
|
|
675
|
+
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
670
676
|
};
|
|
671
677
|
/** The mail API allows you to manage your mail accounts. */
|
|
672
678
|
mail = {
|
|
@@ -1282,12 +1282,6 @@ export const userUpdateAccount = {
|
|
|
1282
1282
|
method: "PUT",
|
|
1283
1283
|
operationId: "user-update-account",
|
|
1284
1284
|
};
|
|
1285
|
-
/** Create a DNSZone. */
|
|
1286
|
-
export const dnsCreateDnsZone = {
|
|
1287
|
-
path: "/v2/dns-zones",
|
|
1288
|
-
method: "POST",
|
|
1289
|
-
operationId: "dns-create-dns-zone",
|
|
1290
|
-
};
|
|
1291
1285
|
/** Get a DNSZone. */
|
|
1292
1286
|
export const dnsGetDnsZone = {
|
|
1293
1287
|
path: "/v2/dns-zones/{dnsZoneId}",
|
|
@@ -1312,6 +1306,12 @@ export const dnsListDnsZones = {
|
|
|
1312
1306
|
method: "GET",
|
|
1313
1307
|
operationId: "dns-list-dns-zones",
|
|
1314
1308
|
};
|
|
1309
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
1310
|
+
export const dnsCreateProjectDnsZone = {
|
|
1311
|
+
path: "/v2/projects/{projectId}/dns-zones",
|
|
1312
|
+
method: "POST",
|
|
1313
|
+
operationId: "dns-create-project-dns-zone",
|
|
1314
|
+
};
|
|
1315
1315
|
/** Set a record set on a DNSZone to managed. */
|
|
1316
1316
|
export const dnsSetRecordSetManaged = {
|
|
1317
1317
|
path: "/v2/dns-zones/{dnsZoneId}/record-sets/{recordSet}/actions/set-managed",
|
|
@@ -2938,3 +2938,21 @@ export const verificationVerifyCompany = {
|
|
|
2938
2938
|
method: "POST",
|
|
2939
2939
|
operationId: "verification-verify-company",
|
|
2940
2940
|
};
|
|
2941
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
2942
|
+
export const dnsListDnsZoneFileImports = {
|
|
2943
|
+
path: "/v2/projects/{projectId}/dns-zone-imports",
|
|
2944
|
+
method: "GET",
|
|
2945
|
+
operationId: "dns-list-dns-zone-file-imports",
|
|
2946
|
+
};
|
|
2947
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
2948
|
+
export const dnsCreateDnsZoneFileImport = {
|
|
2949
|
+
path: "/v2/projects/{projectId}/dns-zone-imports",
|
|
2950
|
+
method: "POST",
|
|
2951
|
+
operationId: "dns-create-dns-zone-file-import",
|
|
2952
|
+
};
|
|
2953
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2954
|
+
export const dnsGetDnsZoneFileImport = {
|
|
2955
|
+
path: "/v2/dns-zone-imports/{zoneFileImportId}",
|
|
2956
|
+
method: "GET",
|
|
2957
|
+
operationId: "dns-get-dns-zone-file-import",
|
|
2958
|
+
};
|
|
@@ -330,6 +330,10 @@ const buildDomainApi = (baseClient) => ({
|
|
|
330
330
|
sslGetCertificate: new ApiCallAsyncResourceFactory(descriptors.sslGetCertificate, baseClient.domain.sslGetCertificate).getApiResource,
|
|
331
331
|
/** List Certificates belonging to a Project or an Ingress. */
|
|
332
332
|
sslListCertificates: new ApiCallAsyncResourceFactory(descriptors.sslListCertificates, baseClient.domain.sslListCertificates).getApiResource,
|
|
333
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
334
|
+
dnsListDnsZoneFileImports: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZoneFileImports, baseClient.domain.dnsListDnsZoneFileImports).getApiResource,
|
|
335
|
+
/** Get the status of a DNS zone-file import job. */
|
|
336
|
+
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
333
337
|
});
|
|
334
338
|
const buildFileApi = (baseClient) => ({
|
|
335
339
|
/** Get a File's meta. */
|
|
@@ -573,8 +573,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
573
573
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
574
574
|
/** Update the tls settings of an Ingress. */
|
|
575
575
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
576
|
-
/** Create a DNSZone. */
|
|
577
|
-
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
578
576
|
/** Get a DNSZone. */
|
|
579
577
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
580
578
|
/** Delete a DNSZone. */
|
|
@@ -583,6 +581,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
583
581
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
584
582
|
/** List DNSZones belonging to a Project. */
|
|
585
583
|
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
584
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
585
|
+
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
586
586
|
/** Set a record set on a DNSZone to managed. */
|
|
587
587
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
588
588
|
/** Update a record set on a DNSZone. */
|
|
@@ -667,6 +667,12 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
667
667
|
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
|
|
668
668
|
/** Update the certificate of a CertificateRequest. */
|
|
669
669
|
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
|
|
670
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
671
|
+
dnsListDnsZoneFileImports: this.requestFunctionFactory(descriptors.dnsListDnsZoneFileImports),
|
|
672
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
673
|
+
dnsCreateDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsCreateDnsZoneFileImport),
|
|
674
|
+
/** Get the status of a DNS zone-file import job. */
|
|
675
|
+
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
670
676
|
};
|
|
671
677
|
/** The mail API allows you to manage your mail accounts. */
|
|
672
678
|
mail = {
|
|
@@ -1282,12 +1282,6 @@ export const userUpdateAccount = {
|
|
|
1282
1282
|
method: "PUT",
|
|
1283
1283
|
operationId: "user-update-account",
|
|
1284
1284
|
};
|
|
1285
|
-
/** Create a DNSZone. */
|
|
1286
|
-
export const dnsCreateDnsZone = {
|
|
1287
|
-
path: "/v3-next/dns-zones",
|
|
1288
|
-
method: "POST",
|
|
1289
|
-
operationId: "dns-create-dns-zone",
|
|
1290
|
-
};
|
|
1291
1285
|
/** Get a DNSZone. */
|
|
1292
1286
|
export const dnsGetDnsZone = {
|
|
1293
1287
|
path: "/v3-next/dns-zones/{dnsZoneId}",
|
|
@@ -1312,6 +1306,12 @@ export const dnsListDnsZones = {
|
|
|
1312
1306
|
method: "GET",
|
|
1313
1307
|
operationId: "dns-list-dns-zones",
|
|
1314
1308
|
};
|
|
1309
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
1310
|
+
export const dnsCreateProjectDnsZone = {
|
|
1311
|
+
path: "/v3-next/projects/{projectId}/dns-zones",
|
|
1312
|
+
method: "POST",
|
|
1313
|
+
operationId: "dns-create-project-dns-zone",
|
|
1314
|
+
};
|
|
1315
1315
|
/** Set a record set on a DNSZone to managed. */
|
|
1316
1316
|
export const dnsSetRecordSetManaged = {
|
|
1317
1317
|
path: "/v3-next/dns-zones/{dnsZoneId}/record-sets/{recordSet}/actions/set-managed",
|
|
@@ -2938,3 +2938,21 @@ export const verificationVerifyCompany = {
|
|
|
2938
2938
|
method: "POST",
|
|
2939
2939
|
operationId: "verification-verify-company",
|
|
2940
2940
|
};
|
|
2941
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
2942
|
+
export const dnsListDnsZoneFileImports = {
|
|
2943
|
+
path: "/v3-next/projects/{projectId}/dns-zone-imports",
|
|
2944
|
+
method: "GET",
|
|
2945
|
+
operationId: "dns-list-dns-zone-file-imports",
|
|
2946
|
+
};
|
|
2947
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
2948
|
+
export const dnsCreateDnsZoneFileImport = {
|
|
2949
|
+
path: "/v3-next/projects/{projectId}/dns-zone-imports",
|
|
2950
|
+
method: "POST",
|
|
2951
|
+
operationId: "dns-create-dns-zone-file-import",
|
|
2952
|
+
};
|
|
2953
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2954
|
+
export const dnsGetDnsZoneFileImport = {
|
|
2955
|
+
path: "/v3-next/dns-zone-imports/{zoneFileImportId}",
|
|
2956
|
+
method: "GET",
|
|
2957
|
+
operationId: "dns-get-dns-zone-file-import",
|
|
2958
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '
|
|
1
|
+
export const MittwaldAPIClientVersion = '0.0.0-development-a0108d5-20260909';
|
|
@@ -119,7 +119,7 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
119
119
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
120
120
|
startDate: string;
|
|
121
121
|
endDate: string;
|
|
122
|
-
|
|
122
|
+
keyId?: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
customerId: string;
|
|
125
125
|
planId: string;
|
|
@@ -135,23 +135,12 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
135
135
|
date: string;
|
|
136
136
|
totalTokens: number;
|
|
137
137
|
}[];
|
|
138
|
-
detailed?: {
|
|
139
|
-
[k: string]: {
|
|
140
|
-
byKey?: {
|
|
141
|
-
[k: string]: {
|
|
142
|
-
byModel?: {
|
|
143
|
-
[k: string]: number;
|
|
144
|
-
};
|
|
145
|
-
tokens?: number;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
} | undefined;
|
|
150
138
|
keys: {
|
|
151
139
|
id: string;
|
|
152
140
|
name: string;
|
|
153
141
|
}[];
|
|
154
142
|
modelShare: {
|
|
143
|
+
displayName?: string;
|
|
155
144
|
model: string;
|
|
156
145
|
tokens: number;
|
|
157
146
|
}[];
|
|
@@ -2656,6 +2645,44 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2656
2645
|
ingressId?: string | undefined;
|
|
2657
2646
|
} | undefined;
|
|
2658
2647
|
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.SslCertificate[]>;
|
|
2648
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
2649
|
+
dnsListDnsZoneFileImports: (conf: {
|
|
2650
|
+
projectId: string;
|
|
2651
|
+
headers?: {
|
|
2652
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2653
|
+
"x-access-token"?: string | undefined;
|
|
2654
|
+
} | undefined;
|
|
2655
|
+
queryParameters?: {
|
|
2656
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2657
|
+
limit?: number | undefined;
|
|
2658
|
+
skip?: number | undefined;
|
|
2659
|
+
page?: number | undefined;
|
|
2660
|
+
sort?: "createdAt" | undefined;
|
|
2661
|
+
order?: "asc" | "desc" | undefined;
|
|
2662
|
+
} | undefined;
|
|
2663
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.DnsZoneFileImport[]>;
|
|
2664
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2665
|
+
dnsGetDnsZoneFileImport: (conf: {
|
|
2666
|
+
zoneFileImportId: string;
|
|
2667
|
+
headers?: {
|
|
2668
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2669
|
+
"x-access-token"?: string | undefined;
|
|
2670
|
+
} | undefined;
|
|
2671
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
2672
|
+
createdAt: string;
|
|
2673
|
+
failedZones: {
|
|
2674
|
+
error: string;
|
|
2675
|
+
name: string;
|
|
2676
|
+
}[];
|
|
2677
|
+
id: string;
|
|
2678
|
+
importedZones: string[];
|
|
2679
|
+
projectId: string;
|
|
2680
|
+
skippedZones: {
|
|
2681
|
+
name: string;
|
|
2682
|
+
reason: string;
|
|
2683
|
+
}[];
|
|
2684
|
+
status: "running" | "succeeded" | "failed" | "completedWithErrors";
|
|
2685
|
+
}>;
|
|
2659
2686
|
};
|
|
2660
2687
|
declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
|
|
2661
2688
|
/** Get a File's meta. */
|