@opusdns/api 0.50.0 → 0.52.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.50.0",
11
+ "version": "0.52.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -2084,6 +2084,7 @@ export const REGISTRANT_CHANGE_TYPE_VALUES = [
2084
2084
  */
2085
2085
  export const REGISTRY_HANDLE_ATTRIBUTE_TYPE = {
2086
2086
  AT_EXT_CONTACT_TYPE: "at-ext-contact:type",
2087
+ DE_CONTACT_TYPE: "DE_CONTACT_TYPE",
2087
2088
  } as const satisfies Record<string, RegistryHandleAttributeType>;
2088
2089
 
2089
2090
  /**
@@ -2108,7 +2109,8 @@ export const REGISTRY_HANDLE_ATTRIBUTE_TYPE = {
2108
2109
  * @see {@link REGISTRY_HANDLE_ATTRIBUTE_TYPE} - The object form of this enum
2109
2110
  */
2110
2111
  export const REGISTRY_HANDLE_ATTRIBUTE_TYPE_VALUES = [
2111
- 'at-ext-contact:type'
2112
+ 'at-ext-contact:type',
2113
+ 'DE_CONTACT_TYPE'
2112
2114
  ] as const satisfies [string, ...string[]] | RegistryHandleAttributeType[];
2113
2115
 
2114
2116
  /**
@@ -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
package/src/openapi.yaml CHANGED
@@ -245,7 +245,7 @@ components:
245
245
  attributes:
246
246
  anyOf:
247
247
  - additionalProperties:
248
- $ref: '#/components/schemas/JsonValue'
248
+ type: string
249
249
  propertyNames:
250
250
  $ref: '#/components/schemas/RegistryHandleAttributeType'
251
251
  type: object
@@ -3980,6 +3980,7 @@ components:
3980
3980
  description: Registry handle attribute types for type-safe attribute key access.
3981
3981
  enum:
3982
3982
  - at-ext-contact:type
3983
+ - DE_CONTACT_TYPE
3983
3984
  title: RegistryHandleAttributeType
3984
3985
  type: string
3985
3986
  RegistryLockBase:
@@ -5334,7 +5335,7 @@ info:
5334
5335
  '
5335
5336
  summary: OpusDNS - your gateway to a seamless domain management experience.
5336
5337
  title: OpusDNS API
5337
- version: 2025-09-18-062613
5338
+ version: 2025-09-18-131050
5338
5339
  x-logo:
5339
5340
  altText: OpusDNS API Reference
5340
5341
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6599,6 +6600,18 @@ paths:
6599
6600
  - type: 'null'
6600
6601
  title: Response Create Zone V1 Dns Post
6601
6602
  description: Successful Response
6603
+ '400':
6604
+ content:
6605
+ application/problem+json:
6606
+ example:
6607
+ code: ERROR_DNS
6608
+ detail: Additional error context.
6609
+ status: 400
6610
+ title: DNS Error
6611
+ type: dns
6612
+ schema:
6613
+ $ref: '#/components/schemas/Problem'
6614
+ description: Bad Request
6602
6615
  '422':
6603
6616
  content:
6604
6617
  application/problem+json:
@@ -6761,6 +6774,18 @@ paths:
6761
6774
  responses:
6762
6775
  '204':
6763
6776
  description: Successful Response
6777
+ '400':
6778
+ content:
6779
+ application/problem+json:
6780
+ example:
6781
+ code: ERROR_DNS
6782
+ detail: Additional error context.
6783
+ status: 400
6784
+ title: DNS Error
6785
+ type: dns
6786
+ schema:
6787
+ $ref: '#/components/schemas/Problem'
6788
+ description: Bad Request
6764
6789
  '422':
6765
6790
  content:
6766
6791
  application/problem+json:
@@ -6793,6 +6818,18 @@ paths:
6793
6818
  responses:
6794
6819
  '204':
6795
6820
  description: Successful Response
6821
+ '400':
6822
+ content:
6823
+ application/problem+json:
6824
+ example:
6825
+ code: ERROR_DNS
6826
+ detail: Additional error context.
6827
+ status: 400
6828
+ title: DNS Error
6829
+ type: dns
6830
+ schema:
6831
+ $ref: '#/components/schemas/Problem'
6832
+ description: Bad Request
6796
6833
  '422':
6797
6834
  content:
6798
6835
  application/problem+json:
@@ -6824,6 +6861,18 @@ paths:
6824
6861
  responses:
6825
6862
  '204':
6826
6863
  description: Successful Response
6864
+ '400':
6865
+ content:
6866
+ application/problem+json:
6867
+ example:
6868
+ code: ERROR_DNS
6869
+ detail: Additional error context.
6870
+ status: 400
6871
+ title: DNS Error
6872
+ type: dns
6873
+ schema:
6874
+ $ref: '#/components/schemas/Problem'
6875
+ description: Bad Request
6827
6876
  '422':
6828
6877
  content:
6829
6878
  application/problem+json:
package/src/schema.d.ts CHANGED
@@ -1394,7 +1394,7 @@ export interface components {
1394
1394
  * @description Additional attributes related to the contact
1395
1395
  */
1396
1396
  attributes?: {
1397
- [key: string]: components["schemas"]["JsonValue"];
1397
+ [key: string]: string;
1398
1398
  } | null;
1399
1399
  /**
1400
1400
  * Contact Id
@@ -3853,7 +3853,7 @@ export interface components {
3853
3853
  * @description Registry handle attribute types for type-safe attribute key access.
3854
3854
  * @enum {string}
3855
3855
  */
3856
- RegistryHandleAttributeType: "at-ext-contact:type";
3856
+ RegistryHandleAttributeType: "at-ext-contact:type" | "DE_CONTACT_TYPE";
3857
3857
  /** RegistryLockBase */
3858
3858
  RegistryLockBase: {
3859
3859
  /**
@@ -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: {