@mittwald/api-client 0.0.0-development-099a727-20260916 → 0.0.0-development-8265ff2-20260918

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.
@@ -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
- /** Create a DNSZone. */
579
- dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
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
- /** Create a DNSZone. */
1286
- export const dnsCreateDnsZone = {
1287
- path: "/v2/dns-zones",
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",
@@ -294,12 +294,16 @@ const buildDatabaseApi = (baseClient) => ({
294
294
  const buildDomainApi = (baseClient) => ({
295
295
  /** List domains. */
296
296
  serviceNextListDomains: new ApiCallAsyncResourceFactory(descriptors.domainServiceNextListDomains, baseClient.domain.serviceNextListDomains).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
  serviceNextGetDomain: new ApiCallAsyncResourceFactory(descriptors.domainServiceNextGetDomain, baseClient.domain.serviceNextGetDomain).getApiResource,
305
309
  /** Get a Contact-Verification. */
@@ -575,16 +575,22 @@ 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),
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
- /** Create a DNSZone. */
1286
- export const dnsCreateDnsZone = {
1287
- path: "/v3-next/dns-zones",
1285
+ /** List DNS zone-file import jobs belonging to a Project. */
1286
+ export const dnsListDnsZoneFileImports = {
1287
+ path: "/v3-next/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: "/v3-next/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: "/v3-next/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: "/v3-next/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: "/v3-next/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: "/v3-next/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: "/v3-next/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: "/v3-next/dns-zones/{dnsZoneId}/record-sets/{recordSet}/actions/set-managed",
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.464.0';
1
+ export const MittwaldAPIClientVersion = '0.0.0-development-06379c6-20260917';
@@ -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 file for a DNSZone. */
2410
- dnsGetZoneFile: (conf: {
2411
- dnsZoneId: string;
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<string>;
2417
- /** List DNSZones belonging to a Project. */
2418
- dnsListDnsZones: (conf: {
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<import("./types.js").MittwaldAPIV2.Components.Schemas.DnsZone[]>;
2462
+ }) => import("@mittwald/react-use-promise").AsyncResource<string>;
2425
2463
  /** Get a Domain. */
2426
2464
  getDomain: (conf: {
2427
2465
  domainId: string;