@opusdns/api 0.18.0 → 0.20.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.18.0",
11
+ "version": "0.20.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -118,6 +118,7 @@ import { Problem } from './schemas';
118
118
  import { RdapBase } from './schemas';
119
119
  import { RegistryLockBase } from './schemas';
120
120
  import { RelationSet } from './schemas';
121
+ import { RenewalEvent } from './schemas';
121
122
  import { ReservedDomainsBase } from './schemas';
122
123
  import { RgpOperations } from './schemas';
123
124
  import { SignupCreate } from './schemas';
@@ -14438,6 +14439,57 @@ export const KEYS_RELATION_SET = [
14438
14439
  KEY_RELATION_SET_RELATIONS,
14439
14440
  ] as const satisfies (keyof RelationSet)[];
14440
14441
 
14442
+ /**
14443
+ * Registration Expiration Date
14444
+ *
14445
+ * The new expiration date/time after the domain has been renewed
14446
+ *
14447
+ * @type {string}
14448
+ *
14449
+ *
14450
+ * @remarks
14451
+ * This key constant provides type-safe access to the `registration_expiration_date` property of RenewalEvent objects.
14452
+ * Use this constant when you need to access properties dynamically or ensure type safety.
14453
+ *
14454
+ * @example
14455
+ * ```typescript
14456
+ * // Direct property access
14457
+ * const value = renewalevent[KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE];
14458
+ *
14459
+ * // Dynamic property access
14460
+ * const propertyName = KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE;
14461
+ * const value = renewalevent[propertyName];
14462
+ * ```
14463
+ *
14464
+ * @see {@link RenewalEvent} - The TypeScript type definition
14465
+ * @see {@link KEYS_RENEWAL_EVENT} - Array of all keys for this type
14466
+ */
14467
+ export const KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE = 'registration_expiration_date' as keyof RenewalEvent;
14468
+
14469
+ /**
14470
+ * Array of all RenewalEvent property keys
14471
+ *
14472
+ * @remarks
14473
+ * This constant provides a readonly array containing all valid property keys for RenewalEvent objects.
14474
+ * Useful for iteration, validation, and generating dynamic UI components.
14475
+ *
14476
+ * @example
14477
+ * ```typescript
14478
+ * // Iterating through all keys
14479
+ * for (const key of KEYS_RENEWAL_EVENT) {
14480
+ * console.log(`Property: ${key}, Value: ${renewalevent[key]}`);
14481
+ * }
14482
+ *
14483
+ * // Validation
14484
+ * const isValidKey = KEYS_RENEWAL_EVENT.includes(someKey);
14485
+ * ```
14486
+ *
14487
+ * @see {@link RenewalEvent} - The TypeScript type definition
14488
+ */
14489
+ export const KEYS_RENEWAL_EVENT = [
14490
+ KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE,
14491
+ ] as const satisfies (keyof RenewalEvent)[];
14492
+
14441
14493
  /**
14442
14494
  * source property
14443
14495
  *
@@ -1162,6 +1162,22 @@ export type EmailForwardAliasUpdate = components['schemas']['EmailForwardAliasUp
1162
1162
  * @see {@link components} - The OpenAPI components schema definition
1163
1163
  */
1164
1164
  export type EmailVerificationStatus = components['schemas']['EmailVerificationStatus'];
1165
+ /**
1166
+ * EmptyEvent
1167
+ *
1168
+ * @remarks
1169
+ * Type alias for the `EmptyEvent` OpenAPI schema.
1170
+ * This type represents emptyevent data structures used in API requests and responses.
1171
+ *
1172
+ * @example
1173
+ * ```typescript
1174
+ * const response = await api.getEmptyEvent();
1175
+ * const item: EmptyEvent = response.results;
1176
+ * ```
1177
+ *
1178
+ * @see {@link components} - The OpenAPI components schema definition
1179
+ */
1180
+ export type EmptyEvent = components['schemas']['EmptyEvent'];
1165
1181
  /**
1166
1182
  * EppDateTime
1167
1183
  *
@@ -2234,6 +2250,22 @@ export type Relation = components['schemas']['Relation'];
2234
2250
  * @see {@link components} - The OpenAPI components schema definition
2235
2251
  */
2236
2252
  export type RelationSet = components['schemas']['RelationSet'];
2253
+ /**
2254
+ * RenewalEvent
2255
+ *
2256
+ * @remarks
2257
+ * Type alias for the `RenewalEvent` OpenAPI schema.
2258
+ * This type represents renewalevent data structures used in API requests and responses.
2259
+ *
2260
+ * @example
2261
+ * ```typescript
2262
+ * const response = await api.getRenewalEvent();
2263
+ * const item: RenewalEvent = response.results;
2264
+ * ```
2265
+ *
2266
+ * @see {@link components} - The OpenAPI components schema definition
2267
+ */
2268
+ export type RenewalEvent = components['schemas']['RenewalEvent'];
2237
2269
  /**
2238
2270
  * RenewalMode
2239
2271
  *
package/src/openapi.yaml CHANGED
@@ -1914,6 +1914,10 @@ components:
1914
1914
  - canceled
1915
1915
  title: EmailVerificationStatus
1916
1916
  type: string
1917
+ EmptyEvent:
1918
+ properties: {}
1919
+ title: EmptyEvent
1920
+ type: object
1917
1921
  EppDateTime:
1918
1922
  anyOf:
1919
1923
  - format: date-time
@@ -1934,6 +1938,8 @@ components:
1934
1938
  anyOf:
1935
1939
  - $ref: '#/components/schemas/TransferEvent'
1936
1940
  - $ref: '#/components/schemas/DeletedEvent'
1941
+ - $ref: '#/components/schemas/RenewalEvent'
1942
+ - $ref: '#/components/schemas/EmptyEvent'
1937
1943
  title: Event Data
1938
1944
  event_id:
1939
1945
  examples:
@@ -3750,6 +3756,17 @@ components:
3750
3756
  type: array
3751
3757
  title: RelationSet
3752
3758
  type: object
3759
+ RenewalEvent:
3760
+ properties:
3761
+ registration_expiration_date:
3762
+ description: The new expiration date/time after the domain has been renewed
3763
+ format: date-time
3764
+ title: Registration Expiration Date
3765
+ type: string
3766
+ required:
3767
+ - registration_expiration_date
3768
+ title: RenewalEvent
3769
+ type: object
3753
3770
  RenewalMode:
3754
3771
  enum:
3755
3772
  - renew
@@ -4839,7 +4856,7 @@ info:
4839
4856
  '
4840
4857
  summary: OpusDNS - your gateway to a seamless domain management experience.
4841
4858
  title: OpusDNS API
4842
- version: 2025-08-13-193514
4859
+ version: 2025-08-15-204923
4843
4860
  x-logo:
4844
4861
  altText: OpusDNS API Reference
4845
4862
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -5289,23 +5306,6 @@ paths:
5289
5306
  description: List all contacts
5290
5307
  operationId: get_contacts_v1_contacts_get
5291
5308
  parameters:
5292
- - in: query
5293
- name: page
5294
- required: false
5295
- schema:
5296
- default: 1
5297
- minimum: 1
5298
- title: Page
5299
- type: integer
5300
- - in: query
5301
- name: page_size
5302
- required: false
5303
- schema:
5304
- default: 10
5305
- maximum: 100
5306
- minimum: 1
5307
- title: Page Size
5308
- type: integer
5309
5309
  - in: query
5310
5310
  name: sort_by
5311
5311
  required: false
@@ -5376,6 +5376,23 @@ paths:
5376
5376
  type: string
5377
5377
  - type: 'null'
5378
5378
  title: Created Before
5379
+ - in: query
5380
+ name: page
5381
+ required: false
5382
+ schema:
5383
+ default: 1
5384
+ minimum: 1
5385
+ title: Page
5386
+ type: integer
5387
+ - in: query
5388
+ name: page_size
5389
+ required: false
5390
+ schema:
5391
+ default: 10
5392
+ maximum: 100
5393
+ minimum: 1
5394
+ title: Page Size
5395
+ type: integer
5379
5396
  responses:
5380
5397
  '200':
5381
5398
  content:
@@ -5971,23 +5988,6 @@ paths:
5971
5988
  get:
5972
5989
  operationId: list_zones_v1_dns_get
5973
5990
  parameters:
5974
- - in: query
5975
- name: page
5976
- required: false
5977
- schema:
5978
- default: 1
5979
- minimum: 1
5980
- title: Page
5981
- type: integer
5982
- - in: query
5983
- name: page_size
5984
- required: false
5985
- schema:
5986
- default: 10
5987
- maximum: 100
5988
- minimum: 1
5989
- title: Page Size
5990
- type: integer
5991
5991
  - in: query
5992
5992
  name: sort_by
5993
5993
  required: false
@@ -6068,6 +6068,23 @@ paths:
6068
6068
  type: string
6069
6069
  - type: 'null'
6070
6070
  title: Updated Before
6071
+ - in: query
6072
+ name: page
6073
+ required: false
6074
+ schema:
6075
+ default: 1
6076
+ minimum: 1
6077
+ title: Page
6078
+ type: integer
6079
+ - in: query
6080
+ name: page_size
6081
+ required: false
6082
+ schema:
6083
+ default: 10
6084
+ maximum: 100
6085
+ minimum: 1
6086
+ title: Page Size
6087
+ type: integer
6071
6088
  responses:
6072
6089
  '200':
6073
6090
  content:
@@ -6448,23 +6465,6 @@ paths:
6448
6465
  description: Retrieves a paginated list of all domains
6449
6466
  operationId: get_domains_v1_domains_get
6450
6467
  parameters:
6451
- - in: query
6452
- name: page
6453
- required: false
6454
- schema:
6455
- default: 1
6456
- minimum: 1
6457
- title: Page
6458
- type: integer
6459
- - in: query
6460
- name: page_size
6461
- required: false
6462
- schema:
6463
- default: 10
6464
- maximum: 100
6465
- minimum: 1
6466
- title: Page Size
6467
- type: integer
6468
6468
  - in: query
6469
6469
  name: sort_by
6470
6470
  required: false
@@ -6613,6 +6613,23 @@ paths:
6613
6613
  type: string
6614
6614
  - type: 'null'
6615
6615
  title: Registered Before
6616
+ - in: query
6617
+ name: page
6618
+ required: false
6619
+ schema:
6620
+ default: 1
6621
+ minimum: 1
6622
+ title: Page
6623
+ type: integer
6624
+ - in: query
6625
+ name: page_size
6626
+ required: false
6627
+ schema:
6628
+ default: 10
6629
+ maximum: 100
6630
+ minimum: 1
6631
+ title: Page Size
6632
+ type: integer
6616
6633
  responses:
6617
6634
  '200':
6618
6635
  content:
package/src/schema.d.ts CHANGED
@@ -2313,6 +2313,8 @@ export interface components {
2313
2313
  * @enum {string}
2314
2314
  */
2315
2315
  EmailVerificationStatus: "verified" | "pending" | "canceled";
2316
+ /** EmptyEvent */
2317
+ EmptyEvent: Record<string, never>;
2316
2318
  EppDateTime: Date | string;
2317
2319
  /**
2318
2320
  * EventObjectType
@@ -2322,7 +2324,7 @@ export interface components {
2322
2324
  /** EventResponse */
2323
2325
  EventResponse: {
2324
2326
  /** Event Data */
2325
- event_data: components["schemas"]["TransferEvent"] | components["schemas"]["DeletedEvent"];
2327
+ event_data: components["schemas"]["TransferEvent"] | components["schemas"]["DeletedEvent"] | components["schemas"]["RenewalEvent"] | components["schemas"]["EmptyEvent"];
2326
2328
  /**
2327
2329
  * Event Id
2328
2330
  * Format: typeid
@@ -3534,6 +3536,15 @@ export interface components {
3534
3536
  /** Relations */
3535
3537
  relations?: components["schemas"]["Relation"][];
3536
3538
  };
3539
+ /** RenewalEvent */
3540
+ RenewalEvent: {
3541
+ /**
3542
+ * Registration Expiration Date
3543
+ * Format: date-time
3544
+ * @description The new expiration date/time after the domain has been renewed
3545
+ */
3546
+ registration_expiration_date: Date;
3547
+ };
3537
3548
  /**
3538
3549
  * RenewalMode
3539
3550
  * @enum {string}
@@ -4681,8 +4692,6 @@ export interface operations {
4681
4692
  get_contacts_v1_contacts_get: {
4682
4693
  parameters: {
4683
4694
  query?: {
4684
- page?: number;
4685
- page_size?: number;
4686
4695
  sort_by?: components["schemas"]["ContactSortField"];
4687
4696
  sort_order?: components["schemas"]["SortOrder"];
4688
4697
  first_name?: string | null;
@@ -4692,6 +4701,8 @@ export interface operations {
4692
4701
  country?: string | null;
4693
4702
  created_after?: Date | null;
4694
4703
  created_before?: Date | null;
4704
+ page?: number;
4705
+ page_size?: number;
4695
4706
  };
4696
4707
  header?: never;
4697
4708
  path?: never;
@@ -5355,8 +5366,6 @@ export interface operations {
5355
5366
  list_zones_v1_dns_get: {
5356
5367
  parameters: {
5357
5368
  query?: {
5358
- page?: number;
5359
- page_size?: number;
5360
5369
  sort_by?: components["schemas"]["ZoneSortField"];
5361
5370
  sort_order?: components["schemas"]["SortOrder"];
5362
5371
  dnssec_status?: components["schemas"]["DnssecStatus"] | null;
@@ -5367,6 +5376,8 @@ export interface operations {
5367
5376
  created_before?: Date | null;
5368
5377
  updated_after?: Date | null;
5369
5378
  updated_before?: Date | null;
5379
+ page?: number;
5380
+ page_size?: number;
5370
5381
  };
5371
5382
  header?: never;
5372
5383
  path?: never;
@@ -5750,8 +5761,6 @@ export interface operations {
5750
5761
  get_domains_v1_domains_get: {
5751
5762
  parameters: {
5752
5763
  query?: {
5753
- page?: number;
5754
- page_size?: number;
5755
5764
  sort_by?: components["schemas"]["DomainSortField"];
5756
5765
  sort_order?: components["schemas"]["SortOrder"];
5757
5766
  name?: string | null;
@@ -5770,6 +5779,8 @@ export interface operations {
5770
5779
  expires_in_90_days?: boolean | null;
5771
5780
  registered_after?: Date | null;
5772
5781
  registered_before?: Date | null;
5782
+ page?: number;
5783
+ page_size?: number;
5773
5784
  };
5774
5785
  header?: never;
5775
5786
  path?: never;