@opusdns/api 0.273.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.273.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
  /**
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
@@ -10169,7 +10199,7 @@ info:
10169
10199
  \n\n"
10170
10200
  summary: OpusDNS - your gateway to a seamless domain management experience.
10171
10201
  title: OpusDNS API
10172
- version: 2026-04-27-175347
10202
+ version: 2026-04-27-182502
10173
10203
  x-logo:
10174
10204
  altText: OpusDNS API Reference
10175
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