@mittwald/api-client 0.0.0-development-099a727-20260916 → 0.0.0-development-06379c6-20260917
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 +6 -2
- package/dist/esm/generated/v2/client.js +10 -4
- package/dist/esm/generated/v2/descriptors.js +28 -10
- 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 +45 -7
- package/dist/types/generated/v2/client.d.ts +260 -19
- package/dist/types/generated/v2/descriptors.d.ts +10 -4
- package/dist/types/generated/v2/types.d.ts +509 -261
- package/dist/types/generated/v3-next/client-react.d.ts +38 -0
- package/dist/types/generated/v3-next/client.d.ts +298 -57
- package/dist/types/generated/v3-next/descriptors.d.ts +8 -2
- package/dist/types/generated/v3-next/types.d.ts +295 -47
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -294,12 +294,16 @@ const buildDatabaseApi = (baseClient) => ({
|
|
|
294
294
|
const buildDomainApi = (baseClient) => ({
|
|
295
295
|
/** List Domains */
|
|
296
296
|
listDomains: new ApiCallAsyncResourceFactory(descriptors.domainListDomains, baseClient.domain.listDomains).getApiResource,
|
|
297
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
298
|
+
dnsListDnsZoneFileImports: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZoneFileImports, baseClient.domain.dnsListDnsZoneFileImports).getApiResource,
|
|
299
|
+
/** List DNSZones belonging to a Project. */
|
|
300
|
+
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
297
301
|
/** Get a DNSZone. */
|
|
298
302
|
dnsGetDnsZone: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZone, baseClient.domain.dnsGetDnsZone).getApiResource,
|
|
303
|
+
/** Get the status of a DNS zone-file import job. */
|
|
304
|
+
dnsGetDnsZoneFileImport: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZoneFileImport, baseClient.domain.dnsGetDnsZoneFileImport).getApiResource,
|
|
299
305
|
/** Get a zone file for a DNSZone. */
|
|
300
306
|
dnsGetZoneFile: new ApiCallAsyncResourceFactory(descriptors.dnsGetZoneFile, baseClient.domain.dnsGetZoneFile).getApiResource,
|
|
301
|
-
/** List DNSZones belonging to a Project. */
|
|
302
|
-
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
303
307
|
/** Get a Domain. */
|
|
304
308
|
getDomain: new ApiCallAsyncResourceFactory(descriptors.domainGetDomain, baseClient.domain.getDomain).getApiResource,
|
|
305
309
|
/** Get a Contact-Verification. */
|
|
@@ -575,16 +575,22 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
575
575
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
576
576
|
/** Update the tls settings of an Ingress. */
|
|
577
577
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
578
|
-
/**
|
|
579
|
-
|
|
578
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
579
|
+
dnsListDnsZoneFileImports: this.requestFunctionFactory(descriptors.dnsListDnsZoneFileImports),
|
|
580
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
581
|
+
dnsCreateDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsCreateDnsZoneFileImport),
|
|
582
|
+
/** List DNSZones belonging to a Project. */
|
|
583
|
+
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
584
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
585
|
+
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
580
586
|
/** Get a DNSZone. */
|
|
581
587
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
582
588
|
/** Delete a DNSZone. */
|
|
583
589
|
dnsDeleteDnsZone: this.requestFunctionFactory(descriptors.dnsDeleteDnsZone),
|
|
590
|
+
/** Get the status of a DNS zone-file import job. */
|
|
591
|
+
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
584
592
|
/** Get a zone file for a DNSZone. */
|
|
585
593
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
586
|
-
/** List DNSZones belonging to a Project. */
|
|
587
|
-
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
588
594
|
/** Set a record set on a DNSZone to managed. */
|
|
589
595
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
590
596
|
/** Update a record set on a DNSZone. */
|
|
@@ -1282,11 +1282,29 @@ export const userUpdateAccount = {
|
|
|
1282
1282
|
method: "PUT",
|
|
1283
1283
|
operationId: "user-update-account",
|
|
1284
1284
|
};
|
|
1285
|
-
/**
|
|
1286
|
-
export const
|
|
1287
|
-
path: "/v2/dns-
|
|
1285
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
1286
|
+
export const dnsListDnsZoneFileImports = {
|
|
1287
|
+
path: "/v2/projects/{projectId}/dns-zone-imports",
|
|
1288
|
+
method: "GET",
|
|
1289
|
+
operationId: "dns-list-dns-zone-file-imports",
|
|
1290
|
+
};
|
|
1291
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
1292
|
+
export const dnsCreateDnsZoneFileImport = {
|
|
1293
|
+
path: "/v2/projects/{projectId}/dns-zone-imports",
|
|
1288
1294
|
method: "POST",
|
|
1289
|
-
operationId: "dns-create-dns-zone",
|
|
1295
|
+
operationId: "dns-create-dns-zone-file-import",
|
|
1296
|
+
};
|
|
1297
|
+
/** List DNSZones belonging to a Project. */
|
|
1298
|
+
export const dnsListDnsZones = {
|
|
1299
|
+
path: "/v2/projects/{projectId}/dns-zones",
|
|
1300
|
+
method: "GET",
|
|
1301
|
+
operationId: "dns-list-dns-zones",
|
|
1302
|
+
};
|
|
1303
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
1304
|
+
export const dnsCreateProjectDnsZone = {
|
|
1305
|
+
path: "/v2/projects/{projectId}/dns-zones",
|
|
1306
|
+
method: "POST",
|
|
1307
|
+
operationId: "dns-create-project-dns-zone",
|
|
1290
1308
|
};
|
|
1291
1309
|
/** Get a DNSZone. */
|
|
1292
1310
|
export const dnsGetDnsZone = {
|
|
@@ -1300,18 +1318,18 @@ export const dnsDeleteDnsZone = {
|
|
|
1300
1318
|
method: "DELETE",
|
|
1301
1319
|
operationId: "dns-delete-dns-zone",
|
|
1302
1320
|
};
|
|
1321
|
+
/** Get the status of a DNS zone-file import job. */
|
|
1322
|
+
export const dnsGetDnsZoneFileImport = {
|
|
1323
|
+
path: "/v2/dns-zone-imports/{zoneFileImportId}",
|
|
1324
|
+
method: "GET",
|
|
1325
|
+
operationId: "dns-get-dns-zone-file-import",
|
|
1326
|
+
};
|
|
1303
1327
|
/** Get a zone file for a DNSZone. */
|
|
1304
1328
|
export const dnsGetZoneFile = {
|
|
1305
1329
|
path: "/v2/dns-zones/{dnsZoneId}/zone-file",
|
|
1306
1330
|
method: "GET",
|
|
1307
1331
|
operationId: "dns-get-zone-file",
|
|
1308
1332
|
};
|
|
1309
|
-
/** List DNSZones belonging to a Project. */
|
|
1310
|
-
export const dnsListDnsZones = {
|
|
1311
|
-
path: "/v2/projects/{projectId}/dns-zones",
|
|
1312
|
-
method: "GET",
|
|
1313
|
-
operationId: "dns-list-dns-zones",
|
|
1314
|
-
};
|
|
1315
1333
|
/** Set a record set on a DNSZone to managed. */
|
|
1316
1334
|
export const dnsSetRecordSetManaged = {
|
|
1317
1335
|
path: "/v2/dns-zones/{dnsZoneId}/record-sets/{recordSet}/actions/set-managed",
|
|
@@ -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. */
|
|
@@ -575,8 +575,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
575
575
|
ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
|
|
576
576
|
/** Update the tls settings of an Ingress. */
|
|
577
577
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
578
|
-
/** Create a DNSZone. */
|
|
579
|
-
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
|
|
580
578
|
/** Get a DNSZone. */
|
|
581
579
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
582
580
|
/** Delete a DNSZone. */
|
|
@@ -585,6 +583,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
585
583
|
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
586
584
|
/** List DNSZones belonging to a Project. */
|
|
587
585
|
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
586
|
+
/** Create a DNSZone for a domain in a Project. */
|
|
587
|
+
dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
|
|
588
588
|
/** Set a record set on a DNSZone to managed. */
|
|
589
589
|
dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
|
|
590
590
|
/** Update a record set on a DNSZone. */
|
|
@@ -669,6 +669,12 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
669
669
|
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
|
|
670
670
|
/** Update the certificate of a CertificateRequest. */
|
|
671
671
|
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate),
|
|
672
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
673
|
+
dnsListDnsZoneFileImports: this.requestFunctionFactory(descriptors.dnsListDnsZoneFileImports),
|
|
674
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
675
|
+
dnsCreateDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsCreateDnsZoneFileImport),
|
|
676
|
+
/** Get the status of a DNS zone-file import job. */
|
|
677
|
+
dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
|
|
672
678
|
};
|
|
673
679
|
/** The mail API allows you to manage your mail accounts. */
|
|
674
680
|
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",
|
|
@@ -2944,3 +2944,21 @@ export const verificationVerifyCompany = {
|
|
|
2944
2944
|
method: "POST",
|
|
2945
2945
|
operationId: "verification-verify-company",
|
|
2946
2946
|
};
|
|
2947
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
2948
|
+
export const dnsListDnsZoneFileImports = {
|
|
2949
|
+
path: "/v3-next/projects/{projectId}/dns-zone-imports",
|
|
2950
|
+
method: "GET",
|
|
2951
|
+
operationId: "dns-list-dns-zone-file-imports",
|
|
2952
|
+
};
|
|
2953
|
+
/** Import a DNS zone file into a Project, or preview it with dry-run. */
|
|
2954
|
+
export const dnsCreateDnsZoneFileImport = {
|
|
2955
|
+
path: "/v3-next/projects/{projectId}/dns-zone-imports",
|
|
2956
|
+
method: "POST",
|
|
2957
|
+
operationId: "dns-create-dns-zone-file-import",
|
|
2958
|
+
};
|
|
2959
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2960
|
+
export const dnsGetDnsZoneFileImport = {
|
|
2961
|
+
path: "/v3-next/dns-zone-imports/{zoneFileImportId}",
|
|
2962
|
+
method: "GET",
|
|
2963
|
+
operationId: "dns-get-dns-zone-file-import",
|
|
2964
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.465.0';
|
|
@@ -2387,6 +2387,30 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2387
2387
|
page?: number | undefined;
|
|
2388
2388
|
} | undefined;
|
|
2389
2389
|
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.DomainDomain[]>;
|
|
2390
|
+
/** List DNS zone-file import jobs belonging to a Project. */
|
|
2391
|
+
dnsListDnsZoneFileImports: (conf: {
|
|
2392
|
+
projectId: string;
|
|
2393
|
+
headers?: {
|
|
2394
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2395
|
+
"x-access-token"?: string | undefined;
|
|
2396
|
+
} | undefined;
|
|
2397
|
+
queryParameters?: {
|
|
2398
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2399
|
+
limit?: number | undefined;
|
|
2400
|
+
skip?: number | undefined;
|
|
2401
|
+
page?: number | undefined;
|
|
2402
|
+
sort?: "createdAt" | undefined;
|
|
2403
|
+
order?: "asc" | "desc" | undefined;
|
|
2404
|
+
} | undefined;
|
|
2405
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.DnsZoneFileImport[]>;
|
|
2406
|
+
/** List DNSZones belonging to a Project. */
|
|
2407
|
+
dnsListDnsZones: (conf: {
|
|
2408
|
+
projectId: string;
|
|
2409
|
+
headers?: {
|
|
2410
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2411
|
+
"x-access-token"?: string | undefined;
|
|
2412
|
+
} | undefined;
|
|
2413
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.DnsZone[]>;
|
|
2390
2414
|
/** Get a DNSZone. */
|
|
2391
2415
|
dnsGetDnsZone: (conf: {
|
|
2392
2416
|
dnsZoneId: string;
|
|
@@ -2406,22 +2430,36 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2406
2430
|
txt: import("./types.js").MittwaldAPIV2.Components.Schemas.DnsRecordTXT;
|
|
2407
2431
|
};
|
|
2408
2432
|
}>;
|
|
2409
|
-
/** Get a zone
|
|
2410
|
-
|
|
2411
|
-
|
|
2433
|
+
/** Get the status of a DNS zone-file import job. */
|
|
2434
|
+
dnsGetDnsZoneFileImport: (conf: {
|
|
2435
|
+
zoneFileImportId: string;
|
|
2412
2436
|
headers?: {
|
|
2413
2437
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2414
2438
|
"x-access-token"?: string | undefined;
|
|
2415
2439
|
} | undefined;
|
|
2416
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<
|
|
2417
|
-
|
|
2418
|
-
|
|
2440
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
2441
|
+
createdAt: string;
|
|
2442
|
+
failedZones: {
|
|
2443
|
+
error: string;
|
|
2444
|
+
name: string;
|
|
2445
|
+
}[];
|
|
2446
|
+
id: string;
|
|
2447
|
+
importedZones: string[];
|
|
2419
2448
|
projectId: string;
|
|
2449
|
+
skippedZones: {
|
|
2450
|
+
name: string;
|
|
2451
|
+
reason: string;
|
|
2452
|
+
}[];
|
|
2453
|
+
status: "running" | "succeeded" | "failed" | "completedWithErrors";
|
|
2454
|
+
}>;
|
|
2455
|
+
/** Get a zone file for a DNSZone. */
|
|
2456
|
+
dnsGetZoneFile: (conf: {
|
|
2457
|
+
dnsZoneId: string;
|
|
2420
2458
|
headers?: {
|
|
2421
2459
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2422
2460
|
"x-access-token"?: string | undefined;
|
|
2423
2461
|
} | undefined;
|
|
2424
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<
|
|
2462
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<string>;
|
|
2425
2463
|
/** Get a Domain. */
|
|
2426
2464
|
getDomain: (conf: {
|
|
2427
2465
|
domainId: string;
|