@opusdns/api 1.155.0 → 1.156.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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.5.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.155.0",
6
+ "version": "1.156.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -913,12 +913,12 @@ export type PATCH_ContactsByContactIdLinkByContactAttributeSetId_Response_422 =
913
913
  export type PATCH_DnsByZoneNameRecords_Response = PATCH_DnsByZoneNameRecords_Response_400 | PATCH_DnsByZoneNameRecords_Response_422;
914
914
 
915
915
  export type PATCH_DnsByZoneNameRecords_Response_400 = Problem;
916
- export type PATCH_DnsByZoneNameRecords_Response_422 = HTTPValidationError;
916
+ export type PATCH_DnsByZoneNameRecords_Response_422 = Problem;
917
917
 
918
918
  export type PATCH_DnsByZoneNameRrsets_Response = PATCH_DnsByZoneNameRrsets_Response_400 | PATCH_DnsByZoneNameRrsets_Response_422;
919
919
 
920
920
  export type PATCH_DnsByZoneNameRrsets_Response_400 = Problem;
921
- export type PATCH_DnsByZoneNameRrsets_Response_422 = HTTPValidationError;
921
+ export type PATCH_DnsByZoneNameRrsets_Response_422 = Problem;
922
922
 
923
923
  export type PATCH_DnsByZoneNameVanitySet_Response = PATCH_DnsByZoneNameVanitySet_Response_200 | PATCH_DnsByZoneNameVanitySet_Response_400 | PATCH_DnsByZoneNameVanitySet_Response_422;
924
924
 
@@ -1484,7 +1484,7 @@ export type PUT_ContactsVerification_Response_422 = HTTPValidationError;
1484
1484
  export type PUT_DnsByZoneNameRrsets_Response = PUT_DnsByZoneNameRrsets_Response_400 | PUT_DnsByZoneNameRrsets_Response_422;
1485
1485
 
1486
1486
  export type PUT_DnsByZoneNameRrsets_Response_400 = Problem;
1487
- export type PUT_DnsByZoneNameRrsets_Response_422 = HTTPValidationError;
1487
+ export type PUT_DnsByZoneNameRrsets_Response_422 = Problem;
1488
1488
 
1489
1489
  export type PUT_DomainForwardsByHostnameByProtocol_Response = PUT_DomainForwardsByHostnameByProtocol_Response_200 | PUT_DomainForwardsByHostnameByProtocol_Response_401 | PUT_DomainForwardsByHostnameByProtocol_Response_403 | PUT_DomainForwardsByHostnameByProtocol_Response_404 | PUT_DomainForwardsByHostnameByProtocol_Response_422;
1490
1490
 
package/src/openapi.yaml CHANGED
@@ -16176,7 +16176,7 @@ info:
16176
16176
  \n\n"
16177
16177
  summary: OpusDNS - your gateway to a seamless domain management experience.
16178
16178
  title: OpusDNS API
16179
- version: 2026-09-04-155853
16179
+ version: 2026-09-07-084158
16180
16180
  x-logo:
16181
16181
  altText: OpusDNS API Reference
16182
16182
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -20203,6 +20203,32 @@ paths:
20203
20203
  status: 422
20204
20204
  title: Request validation error.
20205
20205
  type: request-validation-failed
20206
+ zone_validation_failed:
20207
+ description: The payload parsed but describes a zone that cannot
20208
+ be served; each entry names the offending element via `loc` and
20209
+ echoes it in `input`
20210
+ summary: Zone rules rejected the rrsets
20211
+ value:
20212
+ code: ERROR_ZONE_VALIDATION_FAILED
20213
+ detail: Zone validation failed
20214
+ errors:
20215
+ - input:
20216
+ name: www.example.com.
20217
+ records:
20218
+ - rdata: example.com.
20219
+ ttl: 3600
20220
+ type: CNAME
20221
+ loc:
20222
+ - body
20223
+ - rrsets
20224
+ - 0
20225
+ msg: 'CNAME record cannot coexist with other record types at
20226
+ ''www.example.com.''. Found: CNAME and A'
20227
+ type: cname_conflict
20228
+ status: 422
20229
+ title: DNS Error
20230
+ type: dns-zone-validation
20231
+ zone_name: example.com.
20206
20232
  schema:
20207
20233
  $ref: '#/components/schemas/HTTPValidationError'
20208
20234
  description: Invalid request parameters
@@ -21034,9 +21060,30 @@ paths:
21034
21060
  '422':
21035
21061
  content:
21036
21062
  application/problem+json:
21063
+ example:
21064
+ code: ERROR_ZONE_VALIDATION_FAILED
21065
+ detail: Zone validation failed
21066
+ errors:
21067
+ - input:
21068
+ op: upsert
21069
+ record:
21070
+ name: www.example.com.
21071
+ rdata: target.invalid-tld.
21072
+ ttl: 3600
21073
+ type: CNAME
21074
+ loc:
21075
+ - body
21076
+ - ops
21077
+ - 0
21078
+ msg: Unrecognized TLD
21079
+ type: invalid_rdata
21080
+ status: 422
21081
+ title: DNS Error
21082
+ type: dns-zone-validation
21083
+ zone_name: example.com.
21037
21084
  schema:
21038
- $ref: '#/components/schemas/HTTPValidationError'
21039
- description: Validation Error
21085
+ $ref: '#/components/schemas/Problem'
21086
+ description: Unprocessable Content
21040
21087
  security:
21041
21088
  - OAuth2PasswordBearer: []
21042
21089
  - APIKeyHeader: []
@@ -21198,9 +21245,31 @@ paths:
21198
21245
  '422':
21199
21246
  content:
21200
21247
  application/problem+json:
21248
+ example:
21249
+ code: ERROR_ZONE_VALIDATION_FAILED
21250
+ detail: Zone validation failed
21251
+ errors:
21252
+ - input:
21253
+ op: upsert
21254
+ rrset:
21255
+ name: www.example.com.
21256
+ records:
21257
+ - rdata: target.invalid-tld.
21258
+ ttl: 3600
21259
+ type: CNAME
21260
+ loc:
21261
+ - body
21262
+ - ops
21263
+ - 0
21264
+ msg: Unrecognized TLD
21265
+ type: invalid_rdata
21266
+ status: 422
21267
+ title: DNS Error
21268
+ type: dns-zone-validation
21269
+ zone_name: example.com.
21201
21270
  schema:
21202
- $ref: '#/components/schemas/HTTPValidationError'
21203
- description: Validation Error
21271
+ $ref: '#/components/schemas/Problem'
21272
+ description: Unprocessable Content
21204
21273
  security:
21205
21274
  - OAuth2PasswordBearer: []
21206
21275
  - APIKeyHeader: []
@@ -21333,9 +21402,30 @@ paths:
21333
21402
  '422':
21334
21403
  content:
21335
21404
  application/problem+json:
21405
+ example:
21406
+ code: ERROR_ZONE_VALIDATION_FAILED
21407
+ detail: Zone validation failed
21408
+ errors:
21409
+ - input:
21410
+ name: www.example.com.
21411
+ records:
21412
+ - rdata: example.com.
21413
+ ttl: 3600
21414
+ type: CNAME
21415
+ loc:
21416
+ - body
21417
+ - rrsets
21418
+ - 0
21419
+ msg: 'CNAME record cannot coexist with other record types at ''www.example.com.''.
21420
+ Found: CNAME and A'
21421
+ type: cname_conflict
21422
+ status: 422
21423
+ title: DNS Error
21424
+ type: dns-zone-validation
21425
+ zone_name: example.com.
21336
21426
  schema:
21337
- $ref: '#/components/schemas/HTTPValidationError'
21338
- description: Validation Error
21427
+ $ref: '#/components/schemas/Problem'
21428
+ description: Unprocessable Content
21339
21429
  security:
21340
21430
  - OAuth2PasswordBearer: []
21341
21431
  - APIKeyHeader: []
package/src/schema.d.ts CHANGED
@@ -17690,13 +17690,41 @@ export interface operations {
17690
17690
  "application/problem+json": components["schemas"]["Problem"];
17691
17691
  };
17692
17692
  };
17693
- /** @description Validation Error */
17693
+ /** @description Unprocessable Content */
17694
17694
  422: {
17695
17695
  headers: {
17696
17696
  [name: string]: unknown;
17697
17697
  };
17698
17698
  content: {
17699
- "application/problem+json": components["schemas"]["HTTPValidationError"];
17699
+ /** @example {
17700
+ * "code": "ERROR_ZONE_VALIDATION_FAILED",
17701
+ * "detail": "Zone validation failed",
17702
+ * "errors": [
17703
+ * {
17704
+ * "input": {
17705
+ * "op": "upsert",
17706
+ * "record": {
17707
+ * "name": "www.example.com.",
17708
+ * "rdata": "target.invalid-tld.",
17709
+ * "ttl": 3600,
17710
+ * "type": "CNAME"
17711
+ * }
17712
+ * },
17713
+ * "loc": [
17714
+ * "body",
17715
+ * "ops",
17716
+ * 0
17717
+ * ],
17718
+ * "msg": "Unrecognized TLD",
17719
+ * "type": "invalid_rdata"
17720
+ * }
17721
+ * ],
17722
+ * "status": 422,
17723
+ * "title": "DNS Error",
17724
+ * "type": "dns-zone-validation",
17725
+ * "zone_name": "example.com."
17726
+ * } */
17727
+ "application/problem+json": components["schemas"]["Problem"];
17700
17728
  };
17701
17729
  };
17702
17730
  };
@@ -17746,13 +17774,42 @@ export interface operations {
17746
17774
  "application/problem+json": components["schemas"]["Problem"];
17747
17775
  };
17748
17776
  };
17749
- /** @description Validation Error */
17777
+ /** @description Unprocessable Content */
17750
17778
  422: {
17751
17779
  headers: {
17752
17780
  [name: string]: unknown;
17753
17781
  };
17754
17782
  content: {
17755
- "application/problem+json": components["schemas"]["HTTPValidationError"];
17783
+ /** @example {
17784
+ * "code": "ERROR_ZONE_VALIDATION_FAILED",
17785
+ * "detail": "Zone validation failed",
17786
+ * "errors": [
17787
+ * {
17788
+ * "input": {
17789
+ * "name": "www.example.com.",
17790
+ * "records": [
17791
+ * {
17792
+ * "rdata": "example.com."
17793
+ * }
17794
+ * ],
17795
+ * "ttl": 3600,
17796
+ * "type": "CNAME"
17797
+ * },
17798
+ * "loc": [
17799
+ * "body",
17800
+ * "rrsets",
17801
+ * 0
17802
+ * ],
17803
+ * "msg": "CNAME record cannot coexist with other record types at 'www.example.com.'. Found: CNAME and A",
17804
+ * "type": "cname_conflict"
17805
+ * }
17806
+ * ],
17807
+ * "status": 422,
17808
+ * "title": "DNS Error",
17809
+ * "type": "dns-zone-validation",
17810
+ * "zone_name": "example.com."
17811
+ * } */
17812
+ "application/problem+json": components["schemas"]["Problem"];
17756
17813
  };
17757
17814
  };
17758
17815
  };
@@ -17802,13 +17859,45 @@ export interface operations {
17802
17859
  "application/problem+json": components["schemas"]["Problem"];
17803
17860
  };
17804
17861
  };
17805
- /** @description Validation Error */
17862
+ /** @description Unprocessable Content */
17806
17863
  422: {
17807
17864
  headers: {
17808
17865
  [name: string]: unknown;
17809
17866
  };
17810
17867
  content: {
17811
- "application/problem+json": components["schemas"]["HTTPValidationError"];
17868
+ /** @example {
17869
+ * "code": "ERROR_ZONE_VALIDATION_FAILED",
17870
+ * "detail": "Zone validation failed",
17871
+ * "errors": [
17872
+ * {
17873
+ * "input": {
17874
+ * "op": "upsert",
17875
+ * "rrset": {
17876
+ * "name": "www.example.com.",
17877
+ * "records": [
17878
+ * {
17879
+ * "rdata": "target.invalid-tld."
17880
+ * }
17881
+ * ],
17882
+ * "ttl": 3600,
17883
+ * "type": "CNAME"
17884
+ * }
17885
+ * },
17886
+ * "loc": [
17887
+ * "body",
17888
+ * "ops",
17889
+ * 0
17890
+ * ],
17891
+ * "msg": "Unrecognized TLD",
17892
+ * "type": "invalid_rdata"
17893
+ * }
17894
+ * ],
17895
+ * "status": 422,
17896
+ * "title": "DNS Error",
17897
+ * "type": "dns-zone-validation",
17898
+ * "zone_name": "example.com."
17899
+ * } */
17900
+ "application/problem+json": components["schemas"]["Problem"];
17812
17901
  };
17813
17902
  };
17814
17903
  };