@opusdns/api 0.27.0 → 0.28.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.27.0",
11
+ "version": "0.28.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -7018,6 +7018,31 @@ export const KEYS_DOMAIN_SEARCH_SUGGESTION = [
7018
7018
  * @see {@link KEYS_DOMAIN_STATUSES_BASE} - Array of all keys for this type
7019
7019
  */
7020
7020
  export const KEY_DOMAIN_STATUSES_BASE_DEFAULT = 'default' as keyof DomainStatusesBase;
7021
+ /**
7022
+ * Status Mapping
7023
+ *
7024
+ * Mapping of registry-specific statuses to their equivalent default ones, if any
7025
+ *
7026
+ *
7027
+ *
7028
+ * @remarks
7029
+ * This key constant provides type-safe access to the `status_mapping` property of DomainStatusesBase objects.
7030
+ * Use this constant when you need to access properties dynamically or ensure type safety.
7031
+ *
7032
+ * @example
7033
+ * ```typescript
7034
+ * // Direct property access
7035
+ * const value = domainstatusesbase[KEY_DOMAIN_STATUSES_BASE_STATUS_MAPPING];
7036
+ *
7037
+ * // Dynamic property access
7038
+ * const propertyName = KEY_DOMAIN_STATUSES_BASE_STATUS_MAPPING;
7039
+ * const value = domainstatusesbase[propertyName];
7040
+ * ```
7041
+ *
7042
+ * @see {@link DomainStatusesBase} - The TypeScript type definition
7043
+ * @see {@link KEYS_DOMAIN_STATUSES_BASE} - Array of all keys for this type
7044
+ */
7045
+ export const KEY_DOMAIN_STATUSES_BASE_STATUS_MAPPING = 'status_mapping' as keyof DomainStatusesBase;
7021
7046
  /**
7022
7047
  * Supported Statuses
7023
7048
  *
@@ -7067,6 +7092,7 @@ export const KEY_DOMAIN_STATUSES_BASE_SUPPORTED_STATUSES = 'supported_statuses'
7067
7092
  */
7068
7093
  export const KEYS_DOMAIN_STATUSES_BASE = [
7069
7094
  KEY_DOMAIN_STATUSES_BASE_DEFAULT,
7095
+ KEY_DOMAIN_STATUSES_BASE_STATUS_MAPPING,
7070
7096
  KEY_DOMAIN_STATUSES_BASE_SUPPORTED_STATUSES,
7071
7097
  ] as const satisfies (keyof DomainStatusesBase)[];
7072
7098
 
package/src/openapi.yaml CHANGED
@@ -1711,10 +1711,21 @@ components:
1711
1711
  type: string
1712
1712
  title: Default
1713
1713
  type: array
1714
+ status_mapping:
1715
+ anyOf:
1716
+ - additionalProperties:
1717
+ items:
1718
+ $ref: '#/components/schemas/DomainStatus'
1719
+ type: array
1720
+ type: object
1721
+ - type: 'null'
1722
+ description: Mapping of registry-specific statuses to their equivalent default
1723
+ ones, if any
1724
+ title: Status Mapping
1714
1725
  supported_statuses:
1715
1726
  description: Supported domain statuses
1716
1727
  items:
1717
- $ref: '#/components/schemas/DomainStatus'
1728
+ type: string
1718
1729
  title: Supported Statuses
1719
1730
  type: array
1720
1731
  required:
@@ -4787,7 +4798,7 @@ info:
4787
4798
  '
4788
4799
  summary: OpusDNS - your gateway to a seamless domain management experience.
4789
4800
  title: OpusDNS API
4790
- version: 2025-08-29-160817
4801
+ version: 2025-08-29-171808
4791
4802
  x-logo:
4792
4803
  altText: OpusDNS API Reference
4793
4804
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
package/src/schema.d.ts CHANGED
@@ -2162,11 +2162,18 @@ export interface components {
2162
2162
  * @description The default status for an active domain with no restrictions
2163
2163
  */
2164
2164
  default: string[];
2165
+ /**
2166
+ * Status Mapping
2167
+ * @description Mapping of registry-specific statuses to their equivalent default ones, if any
2168
+ */
2169
+ status_mapping?: {
2170
+ [key: string]: components["schemas"]["DomainStatus"][];
2171
+ } | null;
2165
2172
  /**
2166
2173
  * Supported Statuses
2167
2174
  * @description Supported domain statuses
2168
2175
  */
2169
- supported_statuses: components["schemas"]["DomainStatus"][];
2176
+ supported_statuses: string[];
2170
2177
  };
2171
2178
  /** DomainSummaryData */
2172
2179
  DomainSummaryData: {