@mittwald/api-client 4.473.0 → 4.474.0

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.
@@ -858,10 +858,6 @@ export declare namespace MittwaldAPIV3Next {
858
858
  type RequestData = InferredRequestData<typeof descriptors.userUpdateAccount>;
859
859
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userUpdateAccount, TStatus>;
860
860
  }
861
- namespace DnsCreateDnsZone {
862
- type RequestData = InferredRequestData<typeof descriptors.dnsCreateDnsZone>;
863
- type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsCreateDnsZone, TStatus>;
864
- }
865
861
  namespace DnsGetDnsZone {
866
862
  type RequestData = InferredRequestData<typeof descriptors.dnsGetDnsZone>;
867
863
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsGetDnsZone, TStatus>;
@@ -878,6 +874,10 @@ export declare namespace MittwaldAPIV3Next {
878
874
  type RequestData = InferredRequestData<typeof descriptors.dnsListDnsZones>;
879
875
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsListDnsZones, TStatus>;
880
876
  }
877
+ namespace DnsCreateProjectDnsZone {
878
+ type RequestData = InferredRequestData<typeof descriptors.dnsCreateProjectDnsZone>;
879
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsCreateProjectDnsZone, TStatus>;
880
+ }
881
881
  namespace DnsSetRecordSetManaged {
882
882
  type RequestData = InferredRequestData<typeof descriptors.dnsSetRecordSetManaged>;
883
883
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsSetRecordSetManaged, TStatus>;
@@ -1942,6 +1942,18 @@ export declare namespace MittwaldAPIV3Next {
1942
1942
  type RequestData = InferredRequestData<typeof descriptors.userSearchedLeakedPasswordsByRange>;
1943
1943
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userSearchedLeakedPasswordsByRange, TStatus>;
1944
1944
  }
1945
+ namespace DnsListDnsZoneFileImports {
1946
+ type RequestData = InferredRequestData<typeof descriptors.dnsListDnsZoneFileImports>;
1947
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsListDnsZoneFileImports, TStatus>;
1948
+ }
1949
+ namespace DnsCreateDnsZoneFileImport {
1950
+ type RequestData = InferredRequestData<typeof descriptors.dnsCreateDnsZoneFileImport>;
1951
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsCreateDnsZoneFileImport, TStatus>;
1952
+ }
1953
+ namespace DnsGetDnsZoneFileImport {
1954
+ type RequestData = InferredRequestData<typeof descriptors.dnsGetDnsZoneFileImport>;
1955
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.dnsGetDnsZoneFileImport, TStatus>;
1956
+ }
1945
1957
  }
1946
1958
  namespace Components {
1947
1959
  namespace Schemas {
@@ -7363,6 +7375,122 @@ export declare namespace MittwaldAPIV3Next {
7363
7375
  }
7364
7376
  type DeMittwaldVerificationEmailOrigin = "IS_MITTWALD" | "IS_NOT_MITTWALD" | "COULD_BE_MITTWALD";
7365
7377
  type DeMittwaldContainerVolumeSortOrder = "nameAsc" | "nameDesc" | "storageAsc" | "storageDesc";
7378
+ interface DeMittwaldDnsCreateZoneFileImportResponse {
7379
+ /**
7380
+ * Everything that will not be imported (invalid records, unsupported record types, CNAME conflicts, placement problems, parse errors). Empty on a real import, since any conflict rejects the whole import with 412 (all-or-nothing).
7381
+ */
7382
+ conflicts: MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsImportConflict[];
7383
+ /**
7384
+ * ID of the started import job. Absent on a dry-run (dryRun=true), which creates no job.
7385
+ */
7386
+ id?: string;
7387
+ /**
7388
+ * The importable target zones (one per distinct owner name), each with the record sets that would be set. On a dry-run this is the preview; on a real import it is the plan that was applied.
7389
+ */
7390
+ zones: MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZoneImportPreview[];
7391
+ }
7392
+ interface DeMittwaldDnsZoneImportPreview {
7393
+ /**
7394
+ * Whether a zone with this name already exists. On import its record sets are overwritten rather than the import failing.
7395
+ */
7396
+ alreadyExists: boolean;
7397
+ /**
7398
+ * Fully-qualified name of the target zone. Every distinct owner name becomes its own zone. Only importable zones are listed; a zone named by a conflict is omitted.
7399
+ */
7400
+ name: string;
7401
+ /**
7402
+ * The record sets that would be set on the zone — one per record type present for this owner name.
7403
+ */
7404
+ recordSets: MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsImportRecordSet[];
7405
+ /**
7406
+ * Project the zone would be created in. Always set, since only importable zones are listed.
7407
+ */
7408
+ targetProjectId: string;
7409
+ }
7410
+ interface DeMittwaldDnsImportRecordSet {
7411
+ /**
7412
+ * The individual records in the set.
7413
+ */
7414
+ records: MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsImportRecord[];
7415
+ /**
7416
+ * True when the source TTLs had to be normalized to ttlSeconds — because they diverged within the set or fell below the 60s minimum. Informational; the import still uses ttlSeconds.
7417
+ */
7418
+ ttlNormalized: boolean;
7419
+ /**
7420
+ * TTL applied to the whole set, in seconds. Collapsed to a single value across the set: the minimum of the source TTLs, floored to the 60s minimum.
7421
+ */
7422
+ ttlSeconds: number;
7423
+ /**
7424
+ * Record-set type.
7425
+ */
7426
+ type: "a" | "mx" | "txt" | "cname" | "srv" | "caa";
7427
+ }
7428
+ interface DeMittwaldDnsImportConflict {
7429
+ /**
7430
+ * Machine-readable conflict kind: parseError (a zone-file line could not be parsed), invalidRecord (a record failed the same schema validation the write commands apply), invalidZoneName (the owner name is not a valid zone name, e.g. a wildcard *.example.com), unsupportedRecordType (an RR type dns-service does not import), cnameConflict (a CNAME shares a name with other record types), foreignCustomerIngress (the zone's enabled ingress belongs to another organization), rootZoneUnavailable (a subzone whose root zone is neither importable nor already existing).
7431
+ */
7432
+ code: "parseError" | "invalidRecord" | "invalidZoneName" | "unsupportedRecordType" | "cnameConflict" | "foreignCustomerIngress" | "rootZoneUnavailable";
7433
+ /**
7434
+ * Human-readable explanation of the conflict, suitable for surfacing to the user.
7435
+ */
7436
+ message: string;
7437
+ /**
7438
+ * Offending record/owner name. Empty for a file-level parse error, where sourceLine locates the bad line.
7439
+ */
7440
+ name?: string;
7441
+ /**
7442
+ * Only on an invalidRecord conflict: the offending record's rendered value (e.g. "10 ." for an MX).
7443
+ */
7444
+ record?: string;
7445
+ /**
7446
+ * Only on an invalidRecord conflict: the offending record's set type.
7447
+ */
7448
+ recordSetType?: "a" | "mx" | "txt" | "cname" | "srv" | "caa";
7449
+ /**
7450
+ * 1-based line number in the uploaded zone file, set for a file-level parse error (code parseError); 0 otherwise.
7451
+ */
7452
+ sourceLine?: number;
7453
+ }
7454
+ interface DeMittwaldDnsImportRecord {
7455
+ /**
7456
+ * CAA flags. Only set for CAA records.
7457
+ */
7458
+ flags?: number;
7459
+ /**
7460
+ * SRV port. Only set for SRV records.
7461
+ */
7462
+ port?: number;
7463
+ /**
7464
+ * MX preference / SRV priority. Only set for MX and SRV records.
7465
+ */
7466
+ priority?: number;
7467
+ /**
7468
+ * CAA tag (e.g. issue, issuewild, iodef). Only set for CAA records.
7469
+ */
7470
+ tag?: string;
7471
+ /**
7472
+ * The record's value: an IP address for A/AAAA, the target FQDN for MX/CNAME/SRV, the text for TXT, the value for CAA.
7473
+ */
7474
+ value: string;
7475
+ /**
7476
+ * SRV weight. Only set for SRV records.
7477
+ */
7478
+ weight?: number;
7479
+ }
7480
+ interface DeMittwaldDnsZoneFileImport {
7481
+ /**
7482
+ * When the import job was created (publish time of the created event).
7483
+ */
7484
+ createdAt: string;
7485
+ id: string;
7486
+ importedZones: string[];
7487
+ projectId: string;
7488
+ skippedZones: {
7489
+ name: string;
7490
+ reason: string;
7491
+ }[];
7492
+ status: "running" | "succeeded" | "completedWithErrors";
7493
+ }
7366
7494
  interface DeMittwaldCommonsAddress {
7367
7495
  street: string;
7368
7496
  houseNumber: string;
@@ -18995,23 +19123,20 @@ export declare namespace MittwaldAPIV3Next {
18995
19123
  namespace V3NextSignupSessionsTokenId { }
18996
19124
  namespace V3NextSignupProfile { }
18997
19125
  namespace V3NextSignupEmailVerify { }
18998
- namespace V3NextDnsZones {
18999
- namespace Post {
19126
+ namespace V3NextDnsZones { }
19127
+ namespace V3NextDnsZonesDnsZoneId {
19128
+ namespace Get {
19000
19129
  namespace Parameters {
19001
- type Path = {};
19002
- interface RequestBody {
19003
- name: string;
19004
- parentZoneId: string;
19005
- }
19130
+ type Path = {
19131
+ dnsZoneId: string;
19132
+ };
19006
19133
  type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
19007
19134
  type Query = {};
19008
19135
  }
19009
19136
  namespace Responses {
19010
- namespace $201 {
19137
+ namespace $200 {
19011
19138
  namespace Content {
19012
- interface ApplicationJson {
19013
- id: string;
19014
- }
19139
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZone;
19015
19140
  }
19016
19141
  }
19017
19142
  namespace $400 {
@@ -19021,13 +19146,6 @@ export declare namespace MittwaldAPIV3Next {
19021
19146
  }
19022
19147
  }
19023
19148
  }
19024
- namespace $409 {
19025
- namespace Content {
19026
- interface ApplicationJson {
19027
- [k: string]: unknown;
19028
- }
19029
- }
19030
- }
19031
19149
  namespace $429 {
19032
19150
  namespace Content {
19033
19151
  interface ApplicationJson {
@@ -19044,9 +19162,7 @@ export declare namespace MittwaldAPIV3Next {
19044
19162
  }
19045
19163
  }
19046
19164
  }
19047
- }
19048
- namespace V3NextDnsZonesDnsZoneId {
19049
- namespace Get {
19165
+ namespace Delete {
19050
19166
  namespace Parameters {
19051
19167
  type Path = {
19052
19168
  dnsZoneId: string;
@@ -19055,9 +19171,9 @@ export declare namespace MittwaldAPIV3Next {
19055
19171
  type Query = {};
19056
19172
  }
19057
19173
  namespace Responses {
19058
- namespace $200 {
19174
+ namespace $204 {
19059
19175
  namespace Content {
19060
- type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZone;
19176
+ type Empty = unknown;
19061
19177
  }
19062
19178
  }
19063
19179
  namespace $400 {
@@ -19083,7 +19199,9 @@ export declare namespace MittwaldAPIV3Next {
19083
19199
  }
19084
19200
  }
19085
19201
  }
19086
- namespace Delete {
19202
+ }
19203
+ namespace V3NextDnsZonesDnsZoneIdZoneFile {
19204
+ namespace Get {
19087
19205
  namespace Parameters {
19088
19206
  type Path = {
19089
19207
  dnsZoneId: string;
@@ -19092,9 +19210,9 @@ export declare namespace MittwaldAPIV3Next {
19092
19210
  type Query = {};
19093
19211
  }
19094
19212
  namespace Responses {
19095
- namespace $204 {
19213
+ namespace $200 {
19096
19214
  namespace Content {
19097
- type Empty = unknown;
19215
+ type TextPlain = string;
19098
19216
  }
19099
19217
  }
19100
19218
  namespace $400 {
@@ -19121,11 +19239,11 @@ export declare namespace MittwaldAPIV3Next {
19121
19239
  }
19122
19240
  }
19123
19241
  }
19124
- namespace V3NextDnsZonesDnsZoneIdZoneFile {
19242
+ namespace V3NextProjectsProjectIdDnsZones {
19125
19243
  namespace Get {
19126
19244
  namespace Parameters {
19127
19245
  type Path = {
19128
- dnsZoneId: string;
19246
+ projectId: string;
19129
19247
  };
19130
19248
  type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
19131
19249
  type Query = {};
@@ -19133,7 +19251,7 @@ export declare namespace MittwaldAPIV3Next {
19133
19251
  namespace Responses {
19134
19252
  namespace $200 {
19135
19253
  namespace Content {
19136
- type TextPlain = string;
19254
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZone[];
19137
19255
  }
19138
19256
  }
19139
19257
  namespace $400 {
@@ -19159,20 +19277,26 @@ export declare namespace MittwaldAPIV3Next {
19159
19277
  }
19160
19278
  }
19161
19279
  }
19162
- }
19163
- namespace V3NextProjectsProjectIdDnsZones {
19164
- namespace Get {
19280
+ namespace Post {
19165
19281
  namespace Parameters {
19166
19282
  type Path = {
19167
19283
  projectId: string;
19168
19284
  };
19285
+ interface RequestBody {
19286
+ /**
19287
+ * Fully-qualified name of the DNSZone to create (e.g. example.com or _autoconfig.example.com). The backend resolves root vs subzone via the public suffix list.
19288
+ */
19289
+ name: string;
19290
+ }
19169
19291
  type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
19170
19292
  type Query = {};
19171
19293
  }
19172
19294
  namespace Responses {
19173
- namespace $200 {
19295
+ namespace $201 {
19174
19296
  namespace Content {
19175
- type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZone[];
19297
+ interface ApplicationJson {
19298
+ id: string;
19299
+ }
19176
19300
  }
19177
19301
  }
19178
19302
  namespace $400 {
@@ -19182,6 +19306,27 @@ export declare namespace MittwaldAPIV3Next {
19182
19306
  }
19183
19307
  }
19184
19308
  }
19309
+ namespace $404 {
19310
+ namespace Content {
19311
+ interface ApplicationJson {
19312
+ [k: string]: unknown;
19313
+ }
19314
+ }
19315
+ }
19316
+ namespace $409 {
19317
+ namespace Content {
19318
+ interface ApplicationJson {
19319
+ [k: string]: unknown;
19320
+ }
19321
+ }
19322
+ }
19323
+ namespace $412 {
19324
+ namespace Content {
19325
+ interface ApplicationJson {
19326
+ [k: string]: unknown;
19327
+ }
19328
+ }
19329
+ }
19185
19330
  namespace $429 {
19186
19331
  namespace Content {
19187
19332
  interface ApplicationJson {
@@ -32619,5 +32764,155 @@ export declare namespace MittwaldAPIV3Next {
32619
32764
  }
32620
32765
  }
32621
32766
  }
32767
+ namespace V3NextProjectsProjectIdDnsZoneImports {
32768
+ namespace Get {
32769
+ namespace Parameters {
32770
+ type Path = {
32771
+ projectId: string;
32772
+ };
32773
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
32774
+ type Query = {
32775
+ limit?: number;
32776
+ skip?: number;
32777
+ page?: number;
32778
+ sort?: "createdAt";
32779
+ order?: "asc" | "desc";
32780
+ };
32781
+ }
32782
+ namespace Responses {
32783
+ namespace $200 {
32784
+ namespace Content {
32785
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZoneFileImport[];
32786
+ }
32787
+ }
32788
+ namespace $400 {
32789
+ namespace Content {
32790
+ interface ApplicationJson {
32791
+ [k: string]: unknown;
32792
+ }
32793
+ }
32794
+ }
32795
+ namespace $429 {
32796
+ namespace Content {
32797
+ interface ApplicationJson {
32798
+ [k: string]: unknown;
32799
+ }
32800
+ }
32801
+ }
32802
+ namespace Default {
32803
+ namespace Content {
32804
+ interface ApplicationJson {
32805
+ [k: string]: unknown;
32806
+ }
32807
+ }
32808
+ }
32809
+ }
32810
+ }
32811
+ namespace Post {
32812
+ namespace Parameters {
32813
+ type Path = {
32814
+ projectId: string;
32815
+ };
32816
+ interface RequestBody {
32817
+ /**
32818
+ * Raw RFC-1035 zone file content to import.
32819
+ */
32820
+ zoneFile: string;
32821
+ }
32822
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
32823
+ type Query = {
32824
+ dryRun?: boolean;
32825
+ };
32826
+ }
32827
+ namespace Responses {
32828
+ namespace $200 {
32829
+ namespace Content {
32830
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsCreateZoneFileImportResponse;
32831
+ }
32832
+ }
32833
+ namespace $400 {
32834
+ namespace Content {
32835
+ interface ApplicationJson {
32836
+ [k: string]: unknown;
32837
+ }
32838
+ }
32839
+ }
32840
+ namespace $404 {
32841
+ namespace Content {
32842
+ interface ApplicationJson {
32843
+ [k: string]: unknown;
32844
+ }
32845
+ }
32846
+ }
32847
+ namespace $412 {
32848
+ namespace Content {
32849
+ interface ApplicationJson {
32850
+ [k: string]: unknown;
32851
+ }
32852
+ }
32853
+ }
32854
+ namespace $429 {
32855
+ namespace Content {
32856
+ interface ApplicationJson {
32857
+ [k: string]: unknown;
32858
+ }
32859
+ }
32860
+ }
32861
+ namespace Default {
32862
+ namespace Content {
32863
+ interface ApplicationJson {
32864
+ [k: string]: unknown;
32865
+ }
32866
+ }
32867
+ }
32868
+ }
32869
+ }
32870
+ }
32871
+ namespace V3NextDnsZoneImportsZoneFileImportId {
32872
+ namespace Get {
32873
+ namespace Parameters {
32874
+ type Path = {
32875
+ zoneFileImportId: string;
32876
+ };
32877
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
32878
+ type Query = {};
32879
+ }
32880
+ namespace Responses {
32881
+ namespace $200 {
32882
+ namespace Content {
32883
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZoneFileImport;
32884
+ }
32885
+ }
32886
+ namespace $400 {
32887
+ namespace Content {
32888
+ interface ApplicationJson {
32889
+ [k: string]: unknown;
32890
+ }
32891
+ }
32892
+ }
32893
+ namespace $404 {
32894
+ namespace Content {
32895
+ interface ApplicationJson {
32896
+ [k: string]: unknown;
32897
+ }
32898
+ }
32899
+ }
32900
+ namespace $429 {
32901
+ namespace Content {
32902
+ interface ApplicationJson {
32903
+ [k: string]: unknown;
32904
+ }
32905
+ }
32906
+ }
32907
+ namespace Default {
32908
+ namespace Content {
32909
+ interface ApplicationJson {
32910
+ [k: string]: unknown;
32911
+ }
32912
+ }
32913
+ }
32914
+ }
32915
+ }
32916
+ }
32622
32917
  }
32623
32918
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.472.0';
1
+ export declare const MittwaldAPIClientVersion = '4.473.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.473.0",
3
+ "version": "4.474.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -72,11 +72,11 @@
72
72
  "test:compile": "run tsc --noEmit"
73
73
  },
74
74
  "dependencies": {
75
- "@mittwald/api-client-commons": "^4.473.0",
75
+ "@mittwald/api-client-commons": "^4.474.0",
76
76
  "browser-or-node": "^3.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@mittwald/api-code-generator": "^4.473.0",
79
+ "@mittwald/api-code-generator": "^4.474.0",
80
80
  "@mittwald/react-use-promise": "^4.2.3",
81
81
  "@types/node": "^22.18.11",
82
82
  "@types/react": "^18.3.26",
@@ -106,5 +106,5 @@
106
106
  "optional": true
107
107
  }
108
108
  },
109
- "gitHead": "57f6a30e5f957751992cabcdd76238400d574588"
109
+ "gitHead": "6bf15de397affd40bf47d22158f67ef4355a9f40"
110
110
  }