@mittwald/api-client 0.0.0-development-cff844b-20260915 → 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.
@@ -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. */
@@ -400,6 +400,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
400
400
  extensionRequestAssetUpload: this.requestFunctionFactory(descriptors.extensionRequestAssetUpload),
401
401
  /** Start the verification process of an Extension. */
402
402
  extensionRequestExtensionVerification: this.requestFunctionFactory(descriptors.extensionRequestExtensionVerification),
403
+ /** Resume the webhook execution of an ExtensionInstance. */
404
+ extensionResumeWebhookExecutionForExtensionInstance: this.requestFunctionFactory(descriptors.extensionResumeWebhookExecutionForExtensionInstance),
403
405
  /** Publish or withdraw an Extension. */
404
406
  extensionSetExtensionPublishedState: this.requestFunctionFactory(descriptors.extensionSetExtensionPublishedState),
405
407
  /** Creates or Updates Pricing for an Extension. */
@@ -573,16 +575,22 @@ export class MittwaldAPIV2Client extends ApiClientBase {
573
575
  ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
574
576
  /** Update the tls settings of an Ingress. */
575
577
  ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
576
- /** Create a DNSZone. */
577
- 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),
578
586
  /** Get a DNSZone. */
579
587
  dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
580
588
  /** Delete a DNSZone. */
581
589
  dnsDeleteDnsZone: this.requestFunctionFactory(descriptors.dnsDeleteDnsZone),
590
+ /** Get the status of a DNS zone-file import job. */
591
+ dnsGetDnsZoneFileImport: this.requestFunctionFactory(descriptors.dnsGetDnsZoneFileImport),
582
592
  /** Get a zone file for a DNSZone. */
583
593
  dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
584
- /** List DNSZones belonging to a Project. */
585
- dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
586
594
  /** Set a record set on a DNSZone to managed. */
587
595
  dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
588
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",
1294
+ method: "POST",
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",
1288
1306
  method: "POST",
1289
- operationId: "dns-create-dns-zone",
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",
@@ -1726,6 +1744,12 @@ export const extensionRequestExtensionVerification = {
1726
1744
  method: "POST",
1727
1745
  operationId: "extension-request-extension-verification",
1728
1746
  };
1747
+ /** Resume the webhook execution of an ExtensionInstance. */
1748
+ export const extensionResumeWebhookExecutionForExtensionInstance = {
1749
+ path: "/v2/contributors/{contributorId}/extensions/{extensionId}/extension-instances/{extensionInstanceId}/actions/resume-webhook-execution",
1750
+ method: "POST",
1751
+ operationId: "extension-resume-webhook-execution-for-extension-instance",
1752
+ };
1729
1753
  /** Publish or withdraw an Extension. */
1730
1754
  export const extensionSetExtensionPublishedState = {
1731
1755
  path: "/v2/contributors/{contributorId}/extensions/{extensionId}/published",
@@ -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. */
@@ -400,6 +400,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
400
400
  extensionRequestAssetUpload: this.requestFunctionFactory(descriptors.extensionRequestAssetUpload),
401
401
  /** Start the verification process of an Extension. */
402
402
  extensionRequestExtensionVerification: this.requestFunctionFactory(descriptors.extensionRequestExtensionVerification),
403
+ /** Resume the webhook execution of an ExtensionInstance. */
404
+ extensionResumeWebhookExecutionForExtensionInstance: this.requestFunctionFactory(descriptors.extensionResumeWebhookExecutionForExtensionInstance),
403
405
  /** Publish or withdraw an Extension. */
404
406
  extensionSetExtensionPublishedState: this.requestFunctionFactory(descriptors.extensionSetExtensionPublishedState),
405
407
  /** Creates or Updates Pricing for an Extension. */
@@ -573,8 +575,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
573
575
  ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths),
574
576
  /** Update the tls settings of an Ingress. */
575
577
  ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
576
- /** Create a DNSZone. */
577
- dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
578
578
  /** Get a DNSZone. */
579
579
  dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
580
580
  /** Delete a DNSZone. */
@@ -583,6 +583,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
583
583
  dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
584
584
  /** List DNSZones belonging to a Project. */
585
585
  dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
586
+ /** Create a DNSZone for a domain in a Project. */
587
+ dnsCreateProjectDnsZone: this.requestFunctionFactory(descriptors.dnsCreateProjectDnsZone),
586
588
  /** Set a record set on a DNSZone to managed. */
587
589
  dnsSetRecordSetManaged: this.requestFunctionFactory(descriptors.dnsSetRecordSetManaged),
588
590
  /** Update a record set on a DNSZone. */
@@ -667,6 +669,12 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
667
669
  sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates),
668
670
  /** Update the certificate of a CertificateRequest. */
669
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),
670
678
  };
671
679
  /** The mail API allows you to manage your mail accounts. */
672
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",
@@ -1726,6 +1726,12 @@ export const extensionRequestExtensionVerification = {
1726
1726
  method: "POST",
1727
1727
  operationId: "extension-request-extension-verification",
1728
1728
  };
1729
+ /** Resume the webhook execution of an ExtensionInstance. */
1730
+ export const extensionResumeWebhookExecutionForExtensionInstance = {
1731
+ path: "/v3-next/contributors/{contributorId}/extensions/{extensionId}/extension-instances/{extensionInstanceId}/actions/resume-webhook-execution",
1732
+ method: "POST",
1733
+ operationId: "extension-resume-webhook-execution-for-extension-instance",
1734
+ };
1729
1735
  /** Publish or withdraw an Extension. */
1730
1736
  export const extensionSetExtensionPublishedState = {
1731
1737
  path: "/v3-next/contributors/{contributorId}/extensions/{extensionId}/published",
@@ -2938,3 +2944,21 @@ export const verificationVerifyCompany = {
2938
2944
  method: "POST",
2939
2945
  operationId: "verification-verify-company",
2940
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
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.463.0';
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 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;