@opusdns/api 0.49.0 → 0.51.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
@@ -8,7 +8,7 @@
8
8
  "typescript": "^5.8.2"
9
9
  },
10
10
  "name": "@opusdns/api",
11
- "version": "0.49.0",
11
+ "version": "0.51.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -1572,11 +1572,29 @@ export type GET_Dns_Response_422 = HTTPValidationError
1572
1572
  *
1573
1573
  * @path /v1/dns
1574
1574
  *
1575
+ * @see {@link POST_Dns_Response_400} - 400 response type
1575
1576
  * @see {@link POST_Dns_Response_422} - 422 response type
1576
1577
  *
1577
1578
 
1578
1579
  */
1579
- export type POST_Dns_Response = POST_Dns_Response_422;
1580
+ export type POST_Dns_Response = POST_Dns_Response_400 | POST_Dns_Response_422;
1581
+
1582
+ /**
1583
+ * 400 response for POST Dns endpoint
1584
+ *
1585
+ * @remarks
1586
+ * This type defines the response structure for the 400 status code
1587
+ * of the POST Dns endpoint.
1588
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1589
+ *
1590
+
1591
+ *
1592
+ * @path /v1/dns
1593
+ *
1594
+ * @see {@link POST_Dns_Response} - The main response type definition
1595
+ * @see {@link Problem} - The actual schema type definition
1596
+ */
1597
+ export type POST_Dns_Response_400 = Problem
1580
1598
 
1581
1599
  /**
1582
1600
  * 422 response for POST Dns endpoint
@@ -1823,11 +1841,30 @@ export type POST_DnsByZoneNameDnssecEnable_Response_422 = HTTPValidationError
1823
1841
  * @path /v1/dns/{zone_name}/records
1824
1842
  * @param zone_name (path) - DNS zone name (trailing dot optional)
1825
1843
  *
1844
+ * @see {@link PATCH_DnsByZoneNameRecords_Response_400} - 400 response type
1826
1845
  * @see {@link PATCH_DnsByZoneNameRecords_Response_422} - 422 response type
1827
1846
  *
1828
1847
 
1829
1848
  */
1830
- export type PATCH_DnsByZoneNameRecords_Response = PATCH_DnsByZoneNameRecords_Response_422;
1849
+ export type PATCH_DnsByZoneNameRecords_Response = PATCH_DnsByZoneNameRecords_Response_400 | PATCH_DnsByZoneNameRecords_Response_422;
1850
+
1851
+ /**
1852
+ * 400 response for PATCH DnsByZoneNameRecords endpoint
1853
+ *
1854
+ * @remarks
1855
+ * This type defines the response structure for the 400 status code
1856
+ * of the PATCH DnsByZoneNameRecords endpoint.
1857
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1858
+ *
1859
+
1860
+ *
1861
+ * @path /v1/dns/{zone_name}/records
1862
+ * @param zone_name (path) - DNS zone name (trailing dot optional)
1863
+ *
1864
+ * @see {@link PATCH_DnsByZoneNameRecords_Response} - The main response type definition
1865
+ * @see {@link Problem} - The actual schema type definition
1866
+ */
1867
+ export type PATCH_DnsByZoneNameRecords_Response_400 = Problem
1831
1868
 
1832
1869
  /**
1833
1870
  * 422 response for PATCH DnsByZoneNameRecords endpoint
@@ -1862,11 +1899,30 @@ export type PATCH_DnsByZoneNameRecords_Response_422 = HTTPValidationError
1862
1899
  * @path /v1/dns/{zone_name}/rrsets
1863
1900
  * @param zone_name (path) - DNS zone name (trailing dot optional)
1864
1901
  *
1902
+ * @see {@link PATCH_DnsByZoneNameRrsets_Response_400} - 400 response type
1865
1903
  * @see {@link PATCH_DnsByZoneNameRrsets_Response_422} - 422 response type
1866
1904
  *
1867
1905
 
1868
1906
  */
1869
- export type PATCH_DnsByZoneNameRrsets_Response = PATCH_DnsByZoneNameRrsets_Response_422;
1907
+ export type PATCH_DnsByZoneNameRrsets_Response = PATCH_DnsByZoneNameRrsets_Response_400 | PATCH_DnsByZoneNameRrsets_Response_422;
1908
+
1909
+ /**
1910
+ * 400 response for PATCH DnsByZoneNameRrsets endpoint
1911
+ *
1912
+ * @remarks
1913
+ * This type defines the response structure for the 400 status code
1914
+ * of the PATCH DnsByZoneNameRrsets endpoint.
1915
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1916
+ *
1917
+
1918
+ *
1919
+ * @path /v1/dns/{zone_name}/rrsets
1920
+ * @param zone_name (path) - DNS zone name (trailing dot optional)
1921
+ *
1922
+ * @see {@link PATCH_DnsByZoneNameRrsets_Response} - The main response type definition
1923
+ * @see {@link Problem} - The actual schema type definition
1924
+ */
1925
+ export type PATCH_DnsByZoneNameRrsets_Response_400 = Problem
1870
1926
 
1871
1927
  /**
1872
1928
  * 422 response for PATCH DnsByZoneNameRrsets endpoint
@@ -1901,11 +1957,30 @@ export type PATCH_DnsByZoneNameRrsets_Response_422 = HTTPValidationError
1901
1957
  * @path /v1/dns/{zone_name}/rrsets
1902
1958
  * @param zone_name (path) - DNS zone name (trailing dot optional)
1903
1959
  *
1960
+ * @see {@link PUT_DnsByZoneNameRrsets_Response_400} - 400 response type
1904
1961
  * @see {@link PUT_DnsByZoneNameRrsets_Response_422} - 422 response type
1905
1962
  *
1906
1963
 
1907
1964
  */
1908
- export type PUT_DnsByZoneNameRrsets_Response = PUT_DnsByZoneNameRrsets_Response_422;
1965
+ export type PUT_DnsByZoneNameRrsets_Response = PUT_DnsByZoneNameRrsets_Response_400 | PUT_DnsByZoneNameRrsets_Response_422;
1966
+
1967
+ /**
1968
+ * 400 response for PUT DnsByZoneNameRrsets endpoint
1969
+ *
1970
+ * @remarks
1971
+ * This type defines the response structure for the 400 status code
1972
+ * of the PUT DnsByZoneNameRrsets endpoint.
1973
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1974
+ *
1975
+
1976
+ *
1977
+ * @path /v1/dns/{zone_name}/rrsets
1978
+ * @param zone_name (path) - DNS zone name (trailing dot optional)
1979
+ *
1980
+ * @see {@link PUT_DnsByZoneNameRrsets_Response} - The main response type definition
1981
+ * @see {@link Problem} - The actual schema type definition
1982
+ */
1983
+ export type PUT_DnsByZoneNameRrsets_Response_400 = Problem
1909
1984
 
1910
1985
  /**
1911
1986
  * 422 response for PUT DnsByZoneNameRrsets endpoint
@@ -2674,9 +2749,9 @@ export type PUT_DomainsByDomainReferenceDnssec_Response_404 = Problem
2674
2749
  * @path /v1/domains/{domain_reference}/dnssec
2675
2750
  *
2676
2751
  * @see {@link PUT_DomainsByDomainReferenceDnssec_Response} - The main response type definition
2677
- * @see {@link HTTPValidationError} - The actual schema type definition
2752
+ * @see {@link Problem} - The actual schema type definition
2678
2753
  */
2679
- export type PUT_DomainsByDomainReferenceDnssec_Response_422 = HTTPValidationError
2754
+ export type PUT_DomainsByDomainReferenceDnssec_Response_422 = Problem
2680
2755
 
2681
2756
  /**
2682
2757
  * Response types for POST DomainsByDomainReferenceDnssecDisable endpoint
package/src/openapi.yaml CHANGED
@@ -5334,7 +5334,7 @@ info:
5334
5334
  '
5335
5335
  summary: OpusDNS - your gateway to a seamless domain management experience.
5336
5336
  title: OpusDNS API
5337
- version: 2025-09-17-104252
5337
+ version: 2025-09-18-083215
5338
5338
  x-logo:
5339
5339
  altText: OpusDNS API Reference
5340
5340
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6599,6 +6599,18 @@ paths:
6599
6599
  - type: 'null'
6600
6600
  title: Response Create Zone V1 Dns Post
6601
6601
  description: Successful Response
6602
+ '400':
6603
+ content:
6604
+ application/problem+json:
6605
+ example:
6606
+ code: ERROR_DNS
6607
+ detail: Additional error context.
6608
+ status: 400
6609
+ title: DNS Error
6610
+ type: dns
6611
+ schema:
6612
+ $ref: '#/components/schemas/Problem'
6613
+ description: Bad Request
6602
6614
  '422':
6603
6615
  content:
6604
6616
  application/problem+json:
@@ -6761,6 +6773,18 @@ paths:
6761
6773
  responses:
6762
6774
  '204':
6763
6775
  description: Successful Response
6776
+ '400':
6777
+ content:
6778
+ application/problem+json:
6779
+ example:
6780
+ code: ERROR_DNS
6781
+ detail: Additional error context.
6782
+ status: 400
6783
+ title: DNS Error
6784
+ type: dns
6785
+ schema:
6786
+ $ref: '#/components/schemas/Problem'
6787
+ description: Bad Request
6764
6788
  '422':
6765
6789
  content:
6766
6790
  application/problem+json:
@@ -6793,6 +6817,18 @@ paths:
6793
6817
  responses:
6794
6818
  '204':
6795
6819
  description: Successful Response
6820
+ '400':
6821
+ content:
6822
+ application/problem+json:
6823
+ example:
6824
+ code: ERROR_DNS
6825
+ detail: Additional error context.
6826
+ status: 400
6827
+ title: DNS Error
6828
+ type: dns
6829
+ schema:
6830
+ $ref: '#/components/schemas/Problem'
6831
+ description: Bad Request
6796
6832
  '422':
6797
6833
  content:
6798
6834
  application/problem+json:
@@ -6824,6 +6860,18 @@ paths:
6824
6860
  responses:
6825
6861
  '204':
6826
6862
  description: Successful Response
6863
+ '400':
6864
+ content:
6865
+ application/problem+json:
6866
+ example:
6867
+ code: ERROR_DNS
6868
+ detail: Additional error context.
6869
+ status: 400
6870
+ title: DNS Error
6871
+ type: dns
6872
+ schema:
6873
+ $ref: '#/components/schemas/Problem'
6874
+ description: Bad Request
6827
6875
  '422':
6828
6876
  content:
6829
6877
  application/problem+json:
@@ -7672,9 +7720,14 @@ paths:
7672
7720
  '422':
7673
7721
  content:
7674
7722
  application/problem+json:
7723
+ example:
7724
+ detail: Additional error context.
7725
+ status: 422
7726
+ title: Policy Validation Error
7727
+ type: policy-validation-error
7675
7728
  schema:
7676
- $ref: '#/components/schemas/HTTPValidationError'
7677
- description: Validation Error
7729
+ $ref: '#/components/schemas/Problem'
7730
+ description: Unprocessable Content
7678
7731
  security:
7679
7732
  - OAuth2PasswordBearer: []
7680
7733
  summary: Update DNSSEC data
package/src/schema.d.ts CHANGED
@@ -5936,6 +5936,22 @@ export interface operations {
5936
5936
  "application/json": components["schemas"]["DnsChangesResponse"] | null;
5937
5937
  };
5938
5938
  };
5939
+ /** @description Bad Request */
5940
+ 400: {
5941
+ headers: {
5942
+ [name: string]: unknown;
5943
+ };
5944
+ content: {
5945
+ /** @example {
5946
+ * "code": "ERROR_DNS",
5947
+ * "detail": "Additional error context.",
5948
+ * "status": 400,
5949
+ * "title": "DNS Error",
5950
+ * "type": "dns"
5951
+ * } */
5952
+ "application/problem+json": components["schemas"]["Problem"];
5953
+ };
5954
+ };
5939
5955
  /** @description Validation Error */
5940
5956
  422: {
5941
5957
  headers: {
@@ -6116,6 +6132,22 @@ export interface operations {
6116
6132
  };
6117
6133
  content?: never;
6118
6134
  };
6135
+ /** @description Bad Request */
6136
+ 400: {
6137
+ headers: {
6138
+ [name: string]: unknown;
6139
+ };
6140
+ content: {
6141
+ /** @example {
6142
+ * "code": "ERROR_DNS",
6143
+ * "detail": "Additional error context.",
6144
+ * "status": 400,
6145
+ * "title": "DNS Error",
6146
+ * "type": "dns"
6147
+ * } */
6148
+ "application/problem+json": components["schemas"]["Problem"];
6149
+ };
6150
+ };
6119
6151
  /** @description Validation Error */
6120
6152
  422: {
6121
6153
  headers: {
@@ -6150,6 +6182,22 @@ export interface operations {
6150
6182
  };
6151
6183
  content?: never;
6152
6184
  };
6185
+ /** @description Bad Request */
6186
+ 400: {
6187
+ headers: {
6188
+ [name: string]: unknown;
6189
+ };
6190
+ content: {
6191
+ /** @example {
6192
+ * "code": "ERROR_DNS",
6193
+ * "detail": "Additional error context.",
6194
+ * "status": 400,
6195
+ * "title": "DNS Error",
6196
+ * "type": "dns"
6197
+ * } */
6198
+ "application/problem+json": components["schemas"]["Problem"];
6199
+ };
6200
+ };
6153
6201
  /** @description Validation Error */
6154
6202
  422: {
6155
6203
  headers: {
@@ -6184,6 +6232,22 @@ export interface operations {
6184
6232
  };
6185
6233
  content?: never;
6186
6234
  };
6235
+ /** @description Bad Request */
6236
+ 400: {
6237
+ headers: {
6238
+ [name: string]: unknown;
6239
+ };
6240
+ content: {
6241
+ /** @example {
6242
+ * "code": "ERROR_DNS",
6243
+ * "detail": "Additional error context.",
6244
+ * "status": 400,
6245
+ * "title": "DNS Error",
6246
+ * "type": "dns"
6247
+ * } */
6248
+ "application/problem+json": components["schemas"]["Problem"];
6249
+ };
6250
+ };
6187
6251
  /** @description Validation Error */
6188
6252
  422: {
6189
6253
  headers: {
@@ -6782,13 +6846,19 @@ export interface operations {
6782
6846
  "application/problem+json": components["schemas"]["Problem"];
6783
6847
  };
6784
6848
  };
6785
- /** @description Validation Error */
6849
+ /** @description Unprocessable Content */
6786
6850
  422: {
6787
6851
  headers: {
6788
6852
  [name: string]: unknown;
6789
6853
  };
6790
6854
  content: {
6791
- "application/problem+json": components["schemas"]["HTTPValidationError"];
6855
+ /** @example {
6856
+ * "detail": "Additional error context.",
6857
+ * "status": 422,
6858
+ * "title": "Policy Validation Error",
6859
+ * "type": "policy-validation-error"
6860
+ * } */
6861
+ "application/problem+json": components["schemas"]["Problem"];
6792
6862
  };
6793
6863
  };
6794
6864
  };