@opusdns/api 0.17.0 → 0.19.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.17.0",
11
+ "version": "0.19.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -870,6 +870,7 @@ export const DOMAIN_STATUS = {
870
870
  SERVER_UPDATE_PROHIBITED: "serverUpdateProhibited",
871
871
  SERVER_DELETE_PROHIBITED: "serverDeleteProhibited",
872
872
  SERVER_RENEW_PROHIBITED: "serverRenewProhibited",
873
+ SERVER_RESTORE_PROHIBITED: "serverRestoreProhibited",
873
874
  SERVER_HOLD: "serverHold",
874
875
  TRANSFER_PERIOD: "transferPeriod",
875
876
  RENEW_PERIOD: "renewPeriod",
@@ -918,6 +919,7 @@ export const DOMAIN_STATUS_VALUES = [
918
919
  'serverUpdateProhibited',
919
920
  'serverDeleteProhibited',
920
921
  'serverRenewProhibited',
922
+ 'serverRestoreProhibited',
921
923
  'serverHold',
922
924
  'transferPeriod',
923
925
  'renewPeriod',
@@ -119,6 +119,7 @@ import { RdapBase } from './schemas';
119
119
  import { RegistryLockBase } from './schemas';
120
120
  import { RelationSet } from './schemas';
121
121
  import { ReservedDomainsBase } from './schemas';
122
+ import { RgpOperations } from './schemas';
122
123
  import { SignupCreate } from './schemas';
123
124
  import { SldLength } from './schemas';
124
125
  import { SpiceDbRelationshipUpdate } from './schemas';
@@ -5791,6 +5792,31 @@ export const KEY_DOMAIN_LIFECYCLE_BASE_REGISTRY_AUTO_RENEW = 'registry_auto_rene
5791
5792
  * @see {@link KEYS_DOMAIN_LIFECYCLE_BASE} - Array of all keys for this type
5792
5793
  */
5793
5794
  export const KEY_DOMAIN_LIFECYCLE_BASE_RENEWAL_PERIODS = 'renewal_periods' as keyof DomainLifecycleBase;
5795
+ /**
5796
+ * rgp_operations property
5797
+ *
5798
+ * RGP operations supported by the registry
5799
+ *
5800
+ *
5801
+ *
5802
+ * @remarks
5803
+ * This key constant provides type-safe access to the `rgp_operations` property of DomainLifecycleBase objects.
5804
+ * Use this constant when you need to access properties dynamically or ensure type safety.
5805
+ *
5806
+ * @example
5807
+ * ```typescript
5808
+ * // Direct property access
5809
+ * const value = domainlifecyclebase[KEY_DOMAIN_LIFECYCLE_BASE_RGP_OPERATIONS];
5810
+ *
5811
+ * // Dynamic property access
5812
+ * const propertyName = KEY_DOMAIN_LIFECYCLE_BASE_RGP_OPERATIONS;
5813
+ * const value = domainlifecyclebase[propertyName];
5814
+ * ```
5815
+ *
5816
+ * @see {@link DomainLifecycleBase} - The TypeScript type definition
5817
+ * @see {@link KEYS_DOMAIN_LIFECYCLE_BASE} - Array of all keys for this type
5818
+ */
5819
+ export const KEY_DOMAIN_LIFECYCLE_BASE_RGP_OPERATIONS = 'rgp_operations' as keyof DomainLifecycleBase;
5794
5820
  /**
5795
5821
  * Sync After Operations
5796
5822
  *
@@ -5849,6 +5875,7 @@ export const KEYS_DOMAIN_LIFECYCLE_BASE = [
5849
5875
  KEY_DOMAIN_LIFECYCLE_BASE_REGISTRATION_PERIODS,
5850
5876
  KEY_DOMAIN_LIFECYCLE_BASE_REGISTRY_AUTO_RENEW,
5851
5877
  KEY_DOMAIN_LIFECYCLE_BASE_RENEWAL_PERIODS,
5878
+ KEY_DOMAIN_LIFECYCLE_BASE_RGP_OPERATIONS,
5852
5879
  KEY_DOMAIN_LIFECYCLE_BASE_SYNC_AFTER_OPERATIONS,
5853
5880
  ] as const satisfies (keyof DomainLifecycleBase)[];
5854
5881
 
@@ -14514,6 +14541,84 @@ export const KEYS_RESERVED_DOMAINS_BASE = [
14514
14541
  KEY_RESERVED_DOMAINS_BASE_URL,
14515
14542
  ] as const satisfies (keyof ReservedDomainsBase)[];
14516
14543
 
14544
+ /**
14545
+ * Report
14546
+ *
14547
+ * Whether registry supports RGP restore report
14548
+ *
14549
+ * @type {boolean}
14550
+ *
14551
+ *
14552
+ * @remarks
14553
+ * This key constant provides type-safe access to the `report` property of RgpOperations objects.
14554
+ * Use this constant when you need to access properties dynamically or ensure type safety.
14555
+ *
14556
+ * @example
14557
+ * ```typescript
14558
+ * // Direct property access
14559
+ * const value = rgpoperations[KEY_RGP_OPERATIONS_REPORT];
14560
+ *
14561
+ * // Dynamic property access
14562
+ * const propertyName = KEY_RGP_OPERATIONS_REPORT;
14563
+ * const value = rgpoperations[propertyName];
14564
+ * ```
14565
+ *
14566
+ * @see {@link RgpOperations} - The TypeScript type definition
14567
+ * @see {@link KEYS_RGP_OPERATIONS} - Array of all keys for this type
14568
+ */
14569
+ export const KEY_RGP_OPERATIONS_REPORT = 'report' as keyof RgpOperations;
14570
+ /**
14571
+ * Request
14572
+ *
14573
+ * Whether registry supports RGP restore request
14574
+ *
14575
+ * @type {boolean}
14576
+ *
14577
+ *
14578
+ * @remarks
14579
+ * This key constant provides type-safe access to the `request` property of RgpOperations objects.
14580
+ * Use this constant when you need to access properties dynamically or ensure type safety.
14581
+ *
14582
+ * @example
14583
+ * ```typescript
14584
+ * // Direct property access
14585
+ * const value = rgpoperations[KEY_RGP_OPERATIONS_REQUEST];
14586
+ *
14587
+ * // Dynamic property access
14588
+ * const propertyName = KEY_RGP_OPERATIONS_REQUEST;
14589
+ * const value = rgpoperations[propertyName];
14590
+ * ```
14591
+ *
14592
+ * @see {@link RgpOperations} - The TypeScript type definition
14593
+ * @see {@link KEYS_RGP_OPERATIONS} - Array of all keys for this type
14594
+ */
14595
+ export const KEY_RGP_OPERATIONS_REQUEST = 'request' as keyof RgpOperations;
14596
+
14597
+ /**
14598
+ * Array of all RgpOperations property keys
14599
+ *
14600
+ * @remarks
14601
+ * This constant provides a readonly array containing all valid property keys for RgpOperations objects.
14602
+ * Useful for iteration, validation, and generating dynamic UI components.
14603
+ *
14604
+ * @example
14605
+ * ```typescript
14606
+ * // Iterating through all keys
14607
+ * for (const key of KEYS_RGP_OPERATIONS) {
14608
+ * console.log(`Property: ${key}, Value: ${rgpoperations[key]}`);
14609
+ * }
14610
+ *
14611
+ * // Validation
14612
+ * const isValidKey = KEYS_RGP_OPERATIONS.includes(someKey);
14613
+ * ```
14614
+ *
14615
+ * @see {@link RgpOperations} - The TypeScript type definition
14616
+ */
14617
+ export const KEYS_RGP_OPERATIONS = [
14618
+ KEY_RGP_OPERATIONS_REPORT,
14619
+ KEY_RGP_OPERATIONS_REQUEST,
14620
+ ] as const satisfies (keyof RgpOperations)[];
14621
+
14517
14622
  /**
14518
14623
  * organization property
14519
14624
  *
@@ -2282,6 +2282,22 @@ export type ReservedDomainsBase = components['schemas']['ReservedDomainsBase'];
2282
2282
  * @see {@link components} - The OpenAPI components schema definition
2283
2283
  */
2284
2284
  export type ReservedSourceType = components['schemas']['ReservedSourceType'];
2285
+ /**
2286
+ * RgpOperations
2287
+ *
2288
+ * @remarks
2289
+ * Type alias for the `RgpOperations` OpenAPI schema.
2290
+ * This type represents rgpoperations data structures used in API requests and responses.
2291
+ *
2292
+ * @example
2293
+ * ```typescript
2294
+ * const response = await api.getRgpOperations();
2295
+ * const item: RgpOperations = response.results;
2296
+ * ```
2297
+ *
2298
+ * @see {@link components} - The OpenAPI components schema definition
2299
+ */
2300
+ export type RgpOperations = components['schemas']['RgpOperations'];
2285
2301
  /**
2286
2302
  * SignupCreate
2287
2303
  *
package/src/openapi.yaml CHANGED
@@ -1395,6 +1395,11 @@ components:
1395
1395
  $ref: '#/components/schemas/PeriodList'
1396
1396
  description: List of allowed renewal periods (e.g., '1y' or ['1y', '2y',
1397
1397
  '5y'])
1398
+ rgp_operations:
1399
+ anyOf:
1400
+ - $ref: '#/components/schemas/RgpOperations'
1401
+ - type: 'null'
1402
+ description: RGP operations supported by the registry
1398
1403
  sync_after_operations:
1399
1404
  anyOf:
1400
1405
  - items:
@@ -1680,6 +1685,7 @@ components:
1680
1685
  - serverUpdateProhibited
1681
1686
  - serverDeleteProhibited
1682
1687
  - serverRenewProhibited
1688
+ - serverRestoreProhibited
1683
1689
  - serverHold
1684
1690
  - transferPeriod
1685
1691
  - renewPeriod
@@ -3782,6 +3788,20 @@ components:
3782
3788
  - manual
3783
3789
  title: ReservedSourceType
3784
3790
  type: string
3791
+ RgpOperations:
3792
+ properties:
3793
+ report:
3794
+ default: true
3795
+ description: Whether registry supports RGP restore report
3796
+ title: Report
3797
+ type: boolean
3798
+ request:
3799
+ default: true
3800
+ description: Whether registry supports RGP restore request
3801
+ title: Request
3802
+ type: boolean
3803
+ title: RgpOperations
3804
+ type: object
3785
3805
  SignupCreate:
3786
3806
  properties:
3787
3807
  organization:
@@ -4819,7 +4839,7 @@ info:
4819
4839
  '
4820
4840
  summary: OpusDNS - your gateway to a seamless domain management experience.
4821
4841
  title: OpusDNS API
4822
- version: 2025-08-07-211955
4842
+ version: 2025-08-15-171704
4823
4843
  x-logo:
4824
4844
  altText: OpusDNS API Reference
4825
4845
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -5269,23 +5289,6 @@ paths:
5269
5289
  description: List all contacts
5270
5290
  operationId: get_contacts_v1_contacts_get
5271
5291
  parameters:
5272
- - in: query
5273
- name: page
5274
- required: false
5275
- schema:
5276
- default: 1
5277
- minimum: 1
5278
- title: Page
5279
- type: integer
5280
- - in: query
5281
- name: page_size
5282
- required: false
5283
- schema:
5284
- default: 10
5285
- maximum: 100
5286
- minimum: 1
5287
- title: Page Size
5288
- type: integer
5289
5292
  - in: query
5290
5293
  name: sort_by
5291
5294
  required: false
@@ -5356,6 +5359,23 @@ paths:
5356
5359
  type: string
5357
5360
  - type: 'null'
5358
5361
  title: Created Before
5362
+ - in: query
5363
+ name: page
5364
+ required: false
5365
+ schema:
5366
+ default: 1
5367
+ minimum: 1
5368
+ title: Page
5369
+ type: integer
5370
+ - in: query
5371
+ name: page_size
5372
+ required: false
5373
+ schema:
5374
+ default: 10
5375
+ maximum: 100
5376
+ minimum: 1
5377
+ title: Page Size
5378
+ type: integer
5359
5379
  responses:
5360
5380
  '200':
5361
5381
  content:
@@ -5951,23 +5971,6 @@ paths:
5951
5971
  get:
5952
5972
  operationId: list_zones_v1_dns_get
5953
5973
  parameters:
5954
- - in: query
5955
- name: page
5956
- required: false
5957
- schema:
5958
- default: 1
5959
- minimum: 1
5960
- title: Page
5961
- type: integer
5962
- - in: query
5963
- name: page_size
5964
- required: false
5965
- schema:
5966
- default: 10
5967
- maximum: 100
5968
- minimum: 1
5969
- title: Page Size
5970
- type: integer
5971
5974
  - in: query
5972
5975
  name: sort_by
5973
5976
  required: false
@@ -6048,6 +6051,23 @@ paths:
6048
6051
  type: string
6049
6052
  - type: 'null'
6050
6053
  title: Updated Before
6054
+ - in: query
6055
+ name: page
6056
+ required: false
6057
+ schema:
6058
+ default: 1
6059
+ minimum: 1
6060
+ title: Page
6061
+ type: integer
6062
+ - in: query
6063
+ name: page_size
6064
+ required: false
6065
+ schema:
6066
+ default: 10
6067
+ maximum: 100
6068
+ minimum: 1
6069
+ title: Page Size
6070
+ type: integer
6051
6071
  responses:
6052
6072
  '200':
6053
6073
  content:
@@ -6428,23 +6448,6 @@ paths:
6428
6448
  description: Retrieves a paginated list of all domains
6429
6449
  operationId: get_domains_v1_domains_get
6430
6450
  parameters:
6431
- - in: query
6432
- name: page
6433
- required: false
6434
- schema:
6435
- default: 1
6436
- minimum: 1
6437
- title: Page
6438
- type: integer
6439
- - in: query
6440
- name: page_size
6441
- required: false
6442
- schema:
6443
- default: 10
6444
- maximum: 100
6445
- minimum: 1
6446
- title: Page Size
6447
- type: integer
6448
6451
  - in: query
6449
6452
  name: sort_by
6450
6453
  required: false
@@ -6593,6 +6596,23 @@ paths:
6593
6596
  type: string
6594
6597
  - type: 'null'
6595
6598
  title: Registered Before
6599
+ - in: query
6600
+ name: page
6601
+ required: false
6602
+ schema:
6603
+ default: 1
6604
+ minimum: 1
6605
+ title: Page
6606
+ type: integer
6607
+ - in: query
6608
+ name: page_size
6609
+ required: false
6610
+ schema:
6611
+ default: 10
6612
+ maximum: 100
6613
+ minimum: 1
6614
+ title: Page Size
6615
+ type: integer
6596
6616
  responses:
6597
6617
  '200':
6598
6618
  content:
package/src/schema.d.ts CHANGED
@@ -1984,6 +1984,8 @@ export interface components {
1984
1984
  registry_auto_renew?: boolean | null;
1985
1985
  /** @description List of allowed renewal periods (e.g., '1y' or ['1y', '2y', '5y']) */
1986
1986
  renewal_periods?: components["schemas"]["PeriodList"];
1987
+ /** @description RGP operations supported by the registry */
1988
+ rgp_operations?: components["schemas"]["RgpOperations"] | null;
1987
1989
  /**
1988
1990
  * Sync After Operations
1989
1991
  * @description Operations that trigger a sync with the registry
@@ -2173,7 +2175,7 @@ export interface components {
2173
2175
  * DomainStatus
2174
2176
  * @enum {string}
2175
2177
  */
2176
- DomainStatus: "ok" | "serverTransferProhibited" | "serverUpdateProhibited" | "serverDeleteProhibited" | "serverRenewProhibited" | "serverHold" | "transferPeriod" | "renewPeriod" | "redemptionPeriod" | "pendingUpdate" | "pendingTransfer" | "pendingRestore" | "pendingRenew" | "pendingDelete" | "pendingCreate" | "inactive" | "autoRenewPeriod" | "addPeriod" | "deleted" | "clientTransferProhibited" | "clientUpdateProhibited" | "clientDeleteProhibited" | "clientRenewProhibited" | "clientHold";
2178
+ DomainStatus: "ok" | "serverTransferProhibited" | "serverUpdateProhibited" | "serverDeleteProhibited" | "serverRenewProhibited" | "serverRestoreProhibited" | "serverHold" | "transferPeriod" | "renewPeriod" | "redemptionPeriod" | "pendingUpdate" | "pendingTransfer" | "pendingRestore" | "pendingRenew" | "pendingDelete" | "pendingCreate" | "inactive" | "autoRenewPeriod" | "addPeriod" | "deleted" | "clientTransferProhibited" | "clientUpdateProhibited" | "clientDeleteProhibited" | "clientRenewProhibited" | "clientHold";
2177
2179
  /** DomainStatusesBase */
2178
2180
  DomainStatusesBase: {
2179
2181
  /**
@@ -3557,6 +3559,21 @@ export interface components {
3557
3559
  * @enum {string}
3558
3560
  */
3559
3561
  ReservedSourceType: "API" | "CSV" | "manual";
3562
+ /** RgpOperations */
3563
+ RgpOperations: {
3564
+ /**
3565
+ * Report
3566
+ * @description Whether registry supports RGP restore report
3567
+ * @default true
3568
+ */
3569
+ report: boolean;
3570
+ /**
3571
+ * Request
3572
+ * @description Whether registry supports RGP restore request
3573
+ * @default true
3574
+ */
3575
+ request: boolean;
3576
+ };
3560
3577
  /** SignupCreate */
3561
3578
  SignupCreate: {
3562
3579
  /** @description Organization signup. */
@@ -4664,8 +4681,6 @@ export interface operations {
4664
4681
  get_contacts_v1_contacts_get: {
4665
4682
  parameters: {
4666
4683
  query?: {
4667
- page?: number;
4668
- page_size?: number;
4669
4684
  sort_by?: components["schemas"]["ContactSortField"];
4670
4685
  sort_order?: components["schemas"]["SortOrder"];
4671
4686
  first_name?: string | null;
@@ -4675,6 +4690,8 @@ export interface operations {
4675
4690
  country?: string | null;
4676
4691
  created_after?: Date | null;
4677
4692
  created_before?: Date | null;
4693
+ page?: number;
4694
+ page_size?: number;
4678
4695
  };
4679
4696
  header?: never;
4680
4697
  path?: never;
@@ -5338,8 +5355,6 @@ export interface operations {
5338
5355
  list_zones_v1_dns_get: {
5339
5356
  parameters: {
5340
5357
  query?: {
5341
- page?: number;
5342
- page_size?: number;
5343
5358
  sort_by?: components["schemas"]["ZoneSortField"];
5344
5359
  sort_order?: components["schemas"]["SortOrder"];
5345
5360
  dnssec_status?: components["schemas"]["DnssecStatus"] | null;
@@ -5350,6 +5365,8 @@ export interface operations {
5350
5365
  created_before?: Date | null;
5351
5366
  updated_after?: Date | null;
5352
5367
  updated_before?: Date | null;
5368
+ page?: number;
5369
+ page_size?: number;
5353
5370
  };
5354
5371
  header?: never;
5355
5372
  path?: never;
@@ -5733,8 +5750,6 @@ export interface operations {
5733
5750
  get_domains_v1_domains_get: {
5734
5751
  parameters: {
5735
5752
  query?: {
5736
- page?: number;
5737
- page_size?: number;
5738
5753
  sort_by?: components["schemas"]["DomainSortField"];
5739
5754
  sort_order?: components["schemas"]["SortOrder"];
5740
5755
  name?: string | null;
@@ -5753,6 +5768,8 @@ export interface operations {
5753
5768
  expires_in_90_days?: boolean | null;
5754
5769
  registered_after?: Date | null;
5755
5770
  registered_before?: Date | null;
5771
+ page?: number;
5772
+ page_size?: number;
5756
5773
  };
5757
5774
  header?: never;
5758
5775
  path?: never;