@opusdns/api 0.154.0 → 0.156.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 +1 -1
- package/src/helpers/keys.ts +53 -27
- package/src/openapi.yaml +14 -7
- package/src/schema.d.ts +11 -6
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -9608,32 +9608,6 @@ export const KEYS_DOMAIN_RESTORE_REQUEST = [
|
|
|
9608
9608
|
* @see {@link KEYS_DOMAIN_RESTORE} - Array of all keys for this type
|
|
9609
9609
|
*/
|
|
9610
9610
|
export const KEY_DOMAIN_RESTORE_DOMAIN_ID: keyof DomainRestore = 'domain_id';
|
|
9611
|
-
/**
|
|
9612
|
-
* Expiration Date
|
|
9613
|
-
*
|
|
9614
|
-
* The new expiration date after restore
|
|
9615
|
-
*
|
|
9616
|
-
* @type {string}
|
|
9617
|
-
*
|
|
9618
|
-
*
|
|
9619
|
-
* @remarks
|
|
9620
|
-
* This key constant provides type-safe access to the `expiration_date` property of DomainRestore objects.
|
|
9621
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
9622
|
-
*
|
|
9623
|
-
* @example
|
|
9624
|
-
* ```typescript
|
|
9625
|
-
* // Direct property access
|
|
9626
|
-
* const value = domainrestore[KEY_DOMAIN_RESTORE_EXPIRATION_DATE];
|
|
9627
|
-
*
|
|
9628
|
-
* // Dynamic property access
|
|
9629
|
-
* const propertyName = KEY_DOMAIN_RESTORE_EXPIRATION_DATE;
|
|
9630
|
-
* const value = domainrestore[propertyName];
|
|
9631
|
-
* ```
|
|
9632
|
-
*
|
|
9633
|
-
* @see {@link DomainRestore} - The TypeScript type definition
|
|
9634
|
-
* @see {@link KEYS_DOMAIN_RESTORE} - Array of all keys for this type
|
|
9635
|
-
*/
|
|
9636
|
-
export const KEY_DOMAIN_RESTORE_EXPIRATION_DATE: keyof DomainRestore = 'expiration_date';
|
|
9637
9611
|
/**
|
|
9638
9612
|
* Name
|
|
9639
9613
|
*
|
|
@@ -9709,7 +9683,6 @@ export const KEY_DOMAIN_RESTORE_RESTORED_AT: keyof DomainRestore = 'restored_at'
|
|
|
9709
9683
|
*/
|
|
9710
9684
|
export const KEYS_DOMAIN_RESTORE = [
|
|
9711
9685
|
KEY_DOMAIN_RESTORE_DOMAIN_ID,
|
|
9712
|
-
KEY_DOMAIN_RESTORE_EXPIRATION_DATE,
|
|
9713
9686
|
KEY_DOMAIN_RESTORE_NAME,
|
|
9714
9687
|
KEY_DOMAIN_RESTORE_RESTORED_AT,
|
|
9715
9688
|
] as const satisfies (keyof DomainRestore)[];
|
|
@@ -12485,6 +12458,57 @@ export const KEYS_EMAIL_FORWARD_ZONE = [
|
|
|
12485
12458
|
KEY_EMAIL_FORWARD_ZONE_ZONE_NAME,
|
|
12486
12459
|
] as const satisfies (keyof EmailForwardZone)[];
|
|
12487
12460
|
|
|
12461
|
+
/**
|
|
12462
|
+
* Acknowledged On
|
|
12463
|
+
*
|
|
12464
|
+
* When the event was acknowledged
|
|
12465
|
+
*
|
|
12466
|
+
*
|
|
12467
|
+
*
|
|
12468
|
+
* @remarks
|
|
12469
|
+
* This key constant provides type-safe access to the `acknowledged_on` property of EventResponse objects.
|
|
12470
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12471
|
+
*
|
|
12472
|
+
* @example
|
|
12473
|
+
* ```typescript
|
|
12474
|
+
* // Direct property access
|
|
12475
|
+
* const value = eventresponse[KEY_EVENT_RESPONSE_ACKNOWLEDGED_ON];
|
|
12476
|
+
*
|
|
12477
|
+
* // Dynamic property access
|
|
12478
|
+
* const propertyName = KEY_EVENT_RESPONSE_ACKNOWLEDGED_ON;
|
|
12479
|
+
* const value = eventresponse[propertyName];
|
|
12480
|
+
* ```
|
|
12481
|
+
*
|
|
12482
|
+
* @see {@link EventResponse} - The TypeScript type definition
|
|
12483
|
+
* @see {@link KEYS_EVENT_RESPONSE} - Array of all keys for this type
|
|
12484
|
+
*/
|
|
12485
|
+
export const KEY_EVENT_RESPONSE_ACKNOWLEDGED_ON: keyof EventResponse = 'acknowledged_on';
|
|
12486
|
+
/**
|
|
12487
|
+
* Created On
|
|
12488
|
+
*
|
|
12489
|
+
* When the event was created
|
|
12490
|
+
*
|
|
12491
|
+
* @type {string}
|
|
12492
|
+
*
|
|
12493
|
+
*
|
|
12494
|
+
* @remarks
|
|
12495
|
+
* This key constant provides type-safe access to the `created_on` property of EventResponse objects.
|
|
12496
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12497
|
+
*
|
|
12498
|
+
* @example
|
|
12499
|
+
* ```typescript
|
|
12500
|
+
* // Direct property access
|
|
12501
|
+
* const value = eventresponse[KEY_EVENT_RESPONSE_CREATED_ON];
|
|
12502
|
+
*
|
|
12503
|
+
* // Dynamic property access
|
|
12504
|
+
* const propertyName = KEY_EVENT_RESPONSE_CREATED_ON;
|
|
12505
|
+
* const value = eventresponse[propertyName];
|
|
12506
|
+
* ```
|
|
12507
|
+
*
|
|
12508
|
+
* @see {@link EventResponse} - The TypeScript type definition
|
|
12509
|
+
* @see {@link KEYS_EVENT_RESPONSE} - Array of all keys for this type
|
|
12510
|
+
*/
|
|
12511
|
+
export const KEY_EVENT_RESPONSE_CREATED_ON: keyof EventResponse = 'created_on';
|
|
12488
12512
|
/**
|
|
12489
12513
|
* Event Data
|
|
12490
12514
|
*
|
|
@@ -12657,6 +12681,8 @@ export const KEY_EVENT_RESPONSE_TYPE: keyof EventResponse = 'type';
|
|
|
12657
12681
|
* @see {@link EventResponse} - The TypeScript type definition
|
|
12658
12682
|
*/
|
|
12659
12683
|
export const KEYS_EVENT_RESPONSE = [
|
|
12684
|
+
KEY_EVENT_RESPONSE_ACKNOWLEDGED_ON,
|
|
12685
|
+
KEY_EVENT_RESPONSE_CREATED_ON,
|
|
12660
12686
|
KEY_EVENT_RESPONSE_EVENT_DATA,
|
|
12661
12687
|
KEY_EVENT_RESPONSE_EVENT_ID,
|
|
12662
12688
|
KEY_EVENT_RESPONSE_OBJECT_ID,
|
package/src/openapi.yaml
CHANGED
|
@@ -2283,11 +2283,6 @@ components:
|
|
|
2283
2283
|
title: Domain Id
|
|
2284
2284
|
type: string
|
|
2285
2285
|
x-typeid-prefix: domain
|
|
2286
|
-
expiration_date:
|
|
2287
|
-
description: The new expiration date after restore
|
|
2288
|
-
format: date-time
|
|
2289
|
-
title: Expiration Date
|
|
2290
|
-
type: string
|
|
2291
2286
|
name:
|
|
2292
2287
|
description: The name of the restored domain
|
|
2293
2288
|
title: Name
|
|
@@ -2300,7 +2295,6 @@ components:
|
|
|
2300
2295
|
required:
|
|
2301
2296
|
- domain_id
|
|
2302
2297
|
- name
|
|
2303
|
-
- expiration_date
|
|
2304
2298
|
- restored_at
|
|
2305
2299
|
title: DomainRestoreResponse
|
|
2306
2300
|
type: object
|
|
@@ -3005,6 +2999,18 @@ components:
|
|
|
3005
2999
|
type: string
|
|
3006
3000
|
EventResponse:
|
|
3007
3001
|
properties:
|
|
3002
|
+
acknowledged_on:
|
|
3003
|
+
anyOf:
|
|
3004
|
+
- format: date-time
|
|
3005
|
+
type: string
|
|
3006
|
+
- type: 'null'
|
|
3007
|
+
description: When the event was acknowledged
|
|
3008
|
+
title: Acknowledged On
|
|
3009
|
+
created_on:
|
|
3010
|
+
description: When the event was created
|
|
3011
|
+
format: date-time
|
|
3012
|
+
title: Created On
|
|
3013
|
+
type: string
|
|
3008
3014
|
event_data:
|
|
3009
3015
|
additionalProperties: true
|
|
3010
3016
|
title: Event Data
|
|
@@ -3042,6 +3048,7 @@ components:
|
|
|
3042
3048
|
(e.g., 'ACCOUNT_CREATE', 'DOMAIN_MODIFICATION')
|
|
3043
3049
|
required:
|
|
3044
3050
|
- event_data
|
|
3051
|
+
- created_on
|
|
3045
3052
|
title: EventResponse
|
|
3046
3053
|
type: object
|
|
3047
3054
|
EventSchema:
|
|
@@ -6537,7 +6544,7 @@ info:
|
|
|
6537
6544
|
'
|
|
6538
6545
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
6539
6546
|
title: OpusDNS API
|
|
6540
|
-
version: 2026-01-
|
|
6547
|
+
version: 2026-01-13-161713
|
|
6541
6548
|
x-logo:
|
|
6542
6549
|
altText: OpusDNS API Reference
|
|
6543
6550
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -3251,12 +3251,6 @@ export interface components {
|
|
|
3251
3251
|
* @example domain_01h45ytscbebyvny4gc8cr8ma2
|
|
3252
3252
|
*/
|
|
3253
3253
|
domain_id: TypeId<"domain">;
|
|
3254
|
-
/**
|
|
3255
|
-
* Expiration Date
|
|
3256
|
-
* Format: date-time
|
|
3257
|
-
* @description The new expiration date after restore
|
|
3258
|
-
*/
|
|
3259
|
-
expiration_date: Date;
|
|
3260
3254
|
/**
|
|
3261
3255
|
* Name
|
|
3262
3256
|
* @description The name of the restored domain
|
|
@@ -3742,6 +3736,17 @@ export interface components {
|
|
|
3742
3736
|
EventObjectType: "DOMAIN" | "CONTACT" | "HOST" | "RAW" | "UNKNOWN";
|
|
3743
3737
|
/** EventResponse */
|
|
3744
3738
|
EventResponse: {
|
|
3739
|
+
/**
|
|
3740
|
+
* Acknowledged On
|
|
3741
|
+
* @description When the event was acknowledged
|
|
3742
|
+
*/
|
|
3743
|
+
acknowledged_on?: Date | null;
|
|
3744
|
+
/**
|
|
3745
|
+
* Created On
|
|
3746
|
+
* Format: date-time
|
|
3747
|
+
* @description When the event was created
|
|
3748
|
+
*/
|
|
3749
|
+
created_on: Date;
|
|
3745
3750
|
/** Event Data */
|
|
3746
3751
|
event_data: {
|
|
3747
3752
|
[key: string]: unknown;
|