@opusdns/api 0.272.0 → 0.274.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": "^0.19.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "0.272.0",
6
+ "version": "0.274.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -1395,6 +1395,31 @@ export const KEYS_BULK_OBJECT_TAG_CHANGES = [
1395
1395
  KEY_BULK_OBJECT_TAG_CHANGES_TYPE,
1396
1396
  ] as const satisfies (keyof BulkObjectTagChanges)[];
1397
1397
 
1398
+ /**
1399
+ * Code
1400
+ *
1401
+ * Stable semantic error code for known failure modes (e.g. 'ERROR_BATCH_EMPTY'); null for ad-hoc failures. Matches the 'code' field in top-level error responses.
1402
+ *
1403
+ *
1404
+ *
1405
+ * @remarks
1406
+ * This key constant provides type-safe access to the `code` property of CommandError objects.
1407
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1408
+ *
1409
+ * @example
1410
+ * ```typescript
1411
+ * // Direct property access
1412
+ * const value = commanderror[KEY_COMMAND_ERROR_CODE];
1413
+ *
1414
+ * // Dynamic property access
1415
+ * const propertyName = KEY_COMMAND_ERROR_CODE;
1416
+ * const value = commanderror[propertyName];
1417
+ * ```
1418
+ *
1419
+ * @see {@link CommandError} - The TypeScript type definition
1420
+ * @see {@link KEYS_COMMAND_ERROR} - Array of all keys for this type
1421
+ */
1422
+ export const KEY_COMMAND_ERROR_CODE: keyof CommandError = 'code';
1398
1423
  /**
1399
1424
  * Error
1400
1425
  *
@@ -1447,6 +1472,81 @@ export const KEY_COMMAND_ERROR_ERROR: keyof CommandError = 'error';
1447
1472
  * @see {@link KEYS_COMMAND_ERROR} - Array of all keys for this type
1448
1473
  */
1449
1474
  export const KEY_COMMAND_ERROR_INDEX: keyof CommandError = 'index';
1475
+ /**
1476
+ * Instance Index
1477
+ *
1478
+ * Index within the bulk command's instances[] for per-instance failures
1479
+ *
1480
+ *
1481
+ *
1482
+ * @remarks
1483
+ * This key constant provides type-safe access to the `instance_index` property of CommandError objects.
1484
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1485
+ *
1486
+ * @example
1487
+ * ```typescript
1488
+ * // Direct property access
1489
+ * const value = commanderror[KEY_COMMAND_ERROR_INSTANCE_INDEX];
1490
+ *
1491
+ * // Dynamic property access
1492
+ * const propertyName = KEY_COMMAND_ERROR_INSTANCE_INDEX;
1493
+ * const value = commanderror[propertyName];
1494
+ * ```
1495
+ *
1496
+ * @see {@link CommandError} - The TypeScript type definition
1497
+ * @see {@link KEYS_COMMAND_ERROR} - Array of all keys for this type
1498
+ */
1499
+ export const KEY_COMMAND_ERROR_INSTANCE_INDEX: keyof CommandError = 'instance_index';
1500
+ /**
1501
+ * Resource Key
1502
+ *
1503
+ * Resource identifier (zone name, domain name, contact email) for per-instance failures
1504
+ *
1505
+ *
1506
+ *
1507
+ * @remarks
1508
+ * This key constant provides type-safe access to the `resource_key` property of CommandError objects.
1509
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1510
+ *
1511
+ * @example
1512
+ * ```typescript
1513
+ * // Direct property access
1514
+ * const value = commanderror[KEY_COMMAND_ERROR_RESOURCE_KEY];
1515
+ *
1516
+ * // Dynamic property access
1517
+ * const propertyName = KEY_COMMAND_ERROR_RESOURCE_KEY;
1518
+ * const value = commanderror[propertyName];
1519
+ * ```
1520
+ *
1521
+ * @see {@link CommandError} - The TypeScript type definition
1522
+ * @see {@link KEYS_COMMAND_ERROR} - Array of all keys for this type
1523
+ */
1524
+ export const KEY_COMMAND_ERROR_RESOURCE_KEY: keyof CommandError = 'resource_key';
1525
+ /**
1526
+ * Type
1527
+ *
1528
+ * RFC 9457 problem type identifier derived from the exception class (e.g. 'value', 'batch-empty'). Matches the 'type' field in top-level error responses.
1529
+ *
1530
+ *
1531
+ *
1532
+ * @remarks
1533
+ * This key constant provides type-safe access to the `type` property of CommandError objects.
1534
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1535
+ *
1536
+ * @example
1537
+ * ```typescript
1538
+ * // Direct property access
1539
+ * const value = commanderror[KEY_COMMAND_ERROR_TYPE];
1540
+ *
1541
+ * // Dynamic property access
1542
+ * const propertyName = KEY_COMMAND_ERROR_TYPE;
1543
+ * const value = commanderror[propertyName];
1544
+ * ```
1545
+ *
1546
+ * @see {@link CommandError} - The TypeScript type definition
1547
+ * @see {@link KEYS_COMMAND_ERROR} - Array of all keys for this type
1548
+ */
1549
+ export const KEY_COMMAND_ERROR_TYPE: keyof CommandError = 'type';
1450
1550
 
1451
1551
  /**
1452
1552
  * Array of all CommandError property keys
@@ -1469,8 +1569,12 @@ export const KEY_COMMAND_ERROR_INDEX: keyof CommandError = 'index';
1469
1569
  * @see {@link CommandError} - The TypeScript type definition
1470
1570
  */
1471
1571
  export const KEYS_COMMAND_ERROR = [
1572
+ KEY_COMMAND_ERROR_CODE,
1472
1573
  KEY_COMMAND_ERROR_ERROR,
1473
1574
  KEY_COMMAND_ERROR_INDEX,
1575
+ KEY_COMMAND_ERROR_INSTANCE_INDEX,
1576
+ KEY_COMMAND_ERROR_RESOURCE_KEY,
1577
+ KEY_COMMAND_ERROR_TYPE,
1474
1578
  ] as const satisfies (keyof CommandError)[];
1475
1579
 
1476
1580
  /**
@@ -10943,6 +11047,31 @@ export const KEY_DOMAIN_CREATE_ATTRIBUTES: keyof DomainCreate = 'attributes';
10943
11047
  * @see {@link KEYS_DOMAIN_CREATE} - Array of all keys for this type
10944
11048
  */
10945
11049
  export const KEY_DOMAIN_CREATE_AUTH_CODE: keyof DomainCreate = 'auth_code';
11050
+ /**
11051
+ * The accept_hash of the related claims notice
11052
+ *
11053
+ * During the claims phase domain names that match a trademark registered in the Trademark Clearinghouse require an acceptance by the registrant.
11054
+ *
11055
+ *
11056
+ *
11057
+ * @remarks
11058
+ * This key constant provides type-safe access to the `claims_notice_acceptance_hash` property of DomainCreate objects.
11059
+ * Use this constant when you need to access properties dynamically or ensure type safety.
11060
+ *
11061
+ * @example
11062
+ * ```typescript
11063
+ * // Direct property access
11064
+ * const value = domaincreate[KEY_DOMAIN_CREATE_CLAIMS_NOTICE_ACCEPTANCE_HASH];
11065
+ *
11066
+ * // Dynamic property access
11067
+ * const propertyName = KEY_DOMAIN_CREATE_CLAIMS_NOTICE_ACCEPTANCE_HASH;
11068
+ * const value = domaincreate[propertyName];
11069
+ * ```
11070
+ *
11071
+ * @see {@link DomainCreate} - The TypeScript type definition
11072
+ * @see {@link KEYS_DOMAIN_CREATE} - Array of all keys for this type
11073
+ */
11074
+ export const KEY_DOMAIN_CREATE_CLAIMS_NOTICE_ACCEPTANCE_HASH: keyof DomainCreate = 'claims_notice_acceptance_hash';
10946
11075
  /**
10947
11076
  * Contacts
10948
11077
  *
@@ -11144,6 +11273,7 @@ export const KEY_DOMAIN_CREATE_RENEWAL_MODE: keyof DomainCreate = 'renewal_mode'
11144
11273
  export const KEYS_DOMAIN_CREATE = [
11145
11274
  KEY_DOMAIN_CREATE_ATTRIBUTES,
11146
11275
  KEY_DOMAIN_CREATE_AUTH_CODE,
11276
+ KEY_DOMAIN_CREATE_CLAIMS_NOTICE_ACCEPTANCE_HASH,
11147
11277
  KEY_DOMAIN_CREATE_CONTACTS,
11148
11278
  KEY_DOMAIN_CREATE_CREATE_ZONE,
11149
11279
  KEY_DOMAIN_CREATE_EXPECTED_PRICE,
@@ -11926,6 +12056,31 @@ export const KEY_DOMAIN_CREATE_PAYLOAD_DATA_ATTRIBUTES: keyof DomainCreatePayloa
11926
12056
  * @see {@link KEYS_DOMAIN_CREATE_PAYLOAD_DATA} - Array of all keys for this type
11927
12057
  */
11928
12058
  export const KEY_DOMAIN_CREATE_PAYLOAD_DATA_AUTH_CODE: keyof DomainCreatePayloadData = 'auth_code';
12059
+ /**
12060
+ * The accept_hash of the related claims notice
12061
+ *
12062
+ * During the claims phase domain names that match a trademark registered in the Trademark Clearinghouse require an acceptance by the registrant.
12063
+ *
12064
+ *
12065
+ *
12066
+ * @remarks
12067
+ * This key constant provides type-safe access to the `claims_notice_acceptance_hash` property of DomainCreatePayloadData objects.
12068
+ * Use this constant when you need to access properties dynamically or ensure type safety.
12069
+ *
12070
+ * @example
12071
+ * ```typescript
12072
+ * // Direct property access
12073
+ * const value = domaincreatepayloaddata[KEY_DOMAIN_CREATE_PAYLOAD_DATA_CLAIMS_NOTICE_ACCEPTANCE_HASH];
12074
+ *
12075
+ * // Dynamic property access
12076
+ * const propertyName = KEY_DOMAIN_CREATE_PAYLOAD_DATA_CLAIMS_NOTICE_ACCEPTANCE_HASH;
12077
+ * const value = domaincreatepayloaddata[propertyName];
12078
+ * ```
12079
+ *
12080
+ * @see {@link DomainCreatePayloadData} - The TypeScript type definition
12081
+ * @see {@link KEYS_DOMAIN_CREATE_PAYLOAD_DATA} - Array of all keys for this type
12082
+ */
12083
+ export const KEY_DOMAIN_CREATE_PAYLOAD_DATA_CLAIMS_NOTICE_ACCEPTANCE_HASH: keyof DomainCreatePayloadData = 'claims_notice_acceptance_hash';
11929
12084
  /**
11930
12085
  * Contacts
11931
12086
  *
@@ -12127,6 +12282,7 @@ export const KEY_DOMAIN_CREATE_PAYLOAD_DATA_RENEWAL_MODE: keyof DomainCreatePayl
12127
12282
  export const KEYS_DOMAIN_CREATE_PAYLOAD_DATA = [
12128
12283
  KEY_DOMAIN_CREATE_PAYLOAD_DATA_ATTRIBUTES,
12129
12284
  KEY_DOMAIN_CREATE_PAYLOAD_DATA_AUTH_CODE,
12285
+ KEY_DOMAIN_CREATE_PAYLOAD_DATA_CLAIMS_NOTICE_ACCEPTANCE_HASH,
12130
12286
  KEY_DOMAIN_CREATE_PAYLOAD_DATA_CONTACTS,
12131
12287
  KEY_DOMAIN_CREATE_PAYLOAD_DATA_CREATE_ZONE,
12132
12288
  KEY_DOMAIN_CREATE_PAYLOAD_DATA_EXPECTED_PRICE,
package/src/openapi.yaml CHANGED
@@ -325,6 +325,14 @@ components:
325
325
  type: object
326
326
  CommandError:
327
327
  properties:
328
+ code:
329
+ anyOf:
330
+ - type: string
331
+ - type: 'null'
332
+ description: Stable semantic error code for known failure modes (e.g. 'ERROR_BATCH_EMPTY');
333
+ null for ad-hoc failures. Matches the 'code' field in top-level error
334
+ responses.
335
+ title: Code
328
336
  error:
329
337
  description: Error message
330
338
  title: Error
@@ -333,6 +341,28 @@ components:
333
341
  description: Index of the failed command in the request
334
342
  title: Index
335
343
  type: integer
344
+ instance_index:
345
+ anyOf:
346
+ - type: integer
347
+ - type: 'null'
348
+ description: Index within the bulk command's instances[] for per-instance
349
+ failures
350
+ title: Instance Index
351
+ resource_key:
352
+ anyOf:
353
+ - type: string
354
+ - type: 'null'
355
+ description: Resource identifier (zone name, domain name, contact email)
356
+ for per-instance failures
357
+ title: Resource Key
358
+ type:
359
+ anyOf:
360
+ - type: string
361
+ - type: 'null'
362
+ description: RFC 9457 problem type identifier derived from the exception
363
+ class (e.g. 'value', 'batch-empty'). Matches the 'type' field in top-level
364
+ error responses.
365
+ title: Type
336
366
  required:
337
367
  - index
338
368
  - error
@@ -2629,6 +2659,14 @@ components:
2629
2659
  - type: 'null'
2630
2660
  description: The auth code used for the domain
2631
2661
  title: Auth Code
2662
+ claims_notice_acceptance_hash:
2663
+ anyOf:
2664
+ - type: string
2665
+ - type: 'null'
2666
+ description: During the claims phase domain names that match a trademark
2667
+ registered in the Trademark Clearinghouse require an acceptance by the
2668
+ registrant.
2669
+ title: The accept_hash of the related claims notice
2632
2670
  contacts:
2633
2671
  anyOf:
2634
2672
  - $ref: '#/components/schemas/DomainContactHandles'
@@ -2849,6 +2887,14 @@ components:
2849
2887
  - type: 'null'
2850
2888
  description: The auth code used for the domain
2851
2889
  title: Auth Code
2890
+ claims_notice_acceptance_hash:
2891
+ anyOf:
2892
+ - type: string
2893
+ - type: 'null'
2894
+ description: During the claims phase domain names that match a trademark
2895
+ registered in the Trademark Clearinghouse require an acceptance by the
2896
+ registrant.
2897
+ title: The accept_hash of the related claims notice
2852
2898
  contacts:
2853
2899
  anyOf:
2854
2900
  - $ref: '#/components/schemas/DomainContactHandles'
@@ -10153,7 +10199,7 @@ info:
10153
10199
  \n\n"
10154
10200
  summary: OpusDNS - your gateway to a seamless domain management experience.
10155
10201
  title: OpusDNS API
10156
- version: 2026-04-27-163825
10202
+ version: 2026-04-27-182502
10157
10203
  x-logo:
10158
10204
  altText: OpusDNS API Reference
10159
10205
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
package/src/schema.d.ts CHANGED
@@ -2413,6 +2413,11 @@ export interface components {
2413
2413
  };
2414
2414
  /** CommandError */
2415
2415
  CommandError: {
2416
+ /**
2417
+ * Code
2418
+ * @description Stable semantic error code for known failure modes (e.g. 'ERROR_BATCH_EMPTY'); null for ad-hoc failures. Matches the 'code' field in top-level error responses.
2419
+ */
2420
+ code?: string | null;
2416
2421
  /**
2417
2422
  * Error
2418
2423
  * @description Error message
@@ -2423,6 +2428,21 @@ export interface components {
2423
2428
  * @description Index of the failed command in the request
2424
2429
  */
2425
2430
  index: number;
2431
+ /**
2432
+ * Instance Index
2433
+ * @description Index within the bulk command's instances[] for per-instance failures
2434
+ */
2435
+ instance_index?: number | null;
2436
+ /**
2437
+ * Resource Key
2438
+ * @description Resource identifier (zone name, domain name, contact email) for per-instance failures
2439
+ */
2440
+ resource_key?: string | null;
2441
+ /**
2442
+ * Type
2443
+ * @description RFC 9457 problem type identifier derived from the exception class (e.g. 'value', 'batch-empty'). Matches the 'type' field in top-level error responses.
2444
+ */
2445
+ type?: string | null;
2426
2446
  };
2427
2447
  /**
2428
2448
  * ComplianceStatus
@@ -4011,6 +4031,11 @@ export interface components {
4011
4031
  * @description The auth code used for the domain
4012
4032
  */
4013
4033
  auth_code?: string | null;
4034
+ /**
4035
+ * The accept_hash of the related claims notice
4036
+ * @description During the claims phase domain names that match a trademark registered in the Trademark Clearinghouse require an acceptance by the registrant.
4037
+ */
4038
+ claims_notice_acceptance_hash?: string | null;
4014
4039
  /**
4015
4040
  * Contacts
4016
4041
  * @description The contacts of the domain
@@ -4168,6 +4193,11 @@ export interface components {
4168
4193
  * @description The auth code used for the domain
4169
4194
  */
4170
4195
  auth_code?: string | null;
4196
+ /**
4197
+ * The accept_hash of the related claims notice
4198
+ * @description During the claims phase domain names that match a trademark registered in the Trademark Clearinghouse require an acceptance by the registrant.
4199
+ */
4200
+ claims_notice_acceptance_hash?: string | null;
4171
4201
  /**
4172
4202
  * Contacts
4173
4203
  * @description The contacts of the domain