@opusdns/api 0.163.0 → 0.164.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 +27 -0
- package/src/openapi.yaml +12 -4
- package/src/schema.d.ts +6 -0
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -4420,6 +4420,32 @@ export const KEYS_DNS_RECORD_PATCH_OP = [
|
|
|
4420
4420
|
KEY_DNS_RECORD_PATCH_OP_RECORD,
|
|
4421
4421
|
] as const satisfies (keyof DnsRecordPatchOp)[];
|
|
4422
4422
|
|
|
4423
|
+
/**
|
|
4424
|
+
* Protected
|
|
4425
|
+
*
|
|
4426
|
+
* Whether the record is protected
|
|
4427
|
+
*
|
|
4428
|
+
* @type {boolean}
|
|
4429
|
+
*
|
|
4430
|
+
*
|
|
4431
|
+
* @remarks
|
|
4432
|
+
* This key constant provides type-safe access to the `protected` property of DnsRecord objects.
|
|
4433
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
4434
|
+
*
|
|
4435
|
+
* @example
|
|
4436
|
+
* ```typescript
|
|
4437
|
+
* // Direct property access
|
|
4438
|
+
* const value = dnsrecord[KEY_DNS_RECORD_PROTECTED];
|
|
4439
|
+
*
|
|
4440
|
+
* // Dynamic property access
|
|
4441
|
+
* const propertyName = KEY_DNS_RECORD_PROTECTED;
|
|
4442
|
+
* const value = dnsrecord[propertyName];
|
|
4443
|
+
* ```
|
|
4444
|
+
*
|
|
4445
|
+
* @see {@link DnsRecord} - The TypeScript type definition
|
|
4446
|
+
* @see {@link KEYS_DNS_RECORD} - Array of all keys for this type
|
|
4447
|
+
*/
|
|
4448
|
+
export const KEY_DNS_RECORD_PROTECTED: keyof DnsRecord = 'protected';
|
|
4423
4449
|
/**
|
|
4424
4450
|
* Rdata
|
|
4425
4451
|
*
|
|
@@ -4467,6 +4493,7 @@ export const KEY_DNS_RECORD_RDATA: keyof DnsRecord = 'rdata';
|
|
|
4467
4493
|
* @see {@link DnsRecord} - The TypeScript type definition
|
|
4468
4494
|
*/
|
|
4469
4495
|
export const KEYS_DNS_RECORD = [
|
|
4496
|
+
KEY_DNS_RECORD_PROTECTED,
|
|
4470
4497
|
KEY_DNS_RECORD_RDATA,
|
|
4471
4498
|
] as const satisfies (keyof DnsRecord)[];
|
|
4472
4499
|
|
package/src/openapi.yaml
CHANGED
|
@@ -1059,6 +1059,11 @@ components:
|
|
|
1059
1059
|
type: object
|
|
1060
1060
|
DnsRecordResponse:
|
|
1061
1061
|
properties:
|
|
1062
|
+
protected:
|
|
1063
|
+
default: false
|
|
1064
|
+
description: Whether the record is protected
|
|
1065
|
+
title: Protected
|
|
1066
|
+
type: boolean
|
|
1062
1067
|
rdata:
|
|
1063
1068
|
title: Rdata
|
|
1064
1069
|
type: string
|
|
@@ -6750,7 +6755,7 @@ info:
|
|
|
6750
6755
|
'
|
|
6751
6756
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
6752
6757
|
title: OpusDNS API
|
|
6753
|
-
version: 2026-01-
|
|
6758
|
+
version: 2026-01-21-134818
|
|
6754
6759
|
x-logo:
|
|
6755
6760
|
altText: OpusDNS API Reference
|
|
6756
6761
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8372,14 +8377,17 @@ paths:
|
|
|
8372
8377
|
rrsets:
|
|
8373
8378
|
- name: example.com.
|
|
8374
8379
|
records:
|
|
8375
|
-
-
|
|
8380
|
+
- protected: false
|
|
8381
|
+
rdata: ns1.opusdns.com. hostmaster.opusdns.com. 2025111801
|
|
8376
8382
|
10800 3600 604800 300
|
|
8377
8383
|
ttl: 3600
|
|
8378
8384
|
type: SOA
|
|
8379
8385
|
- name: example.com.
|
|
8380
8386
|
records:
|
|
8381
|
-
-
|
|
8382
|
-
|
|
8387
|
+
- protected: false
|
|
8388
|
+
rdata: ns1.opusdns.com.
|
|
8389
|
+
- protected: false
|
|
8390
|
+
rdata: ns2.opusdns.net.
|
|
8383
8391
|
ttl: 3600
|
|
8384
8392
|
type: NS
|
|
8385
8393
|
updated_on: '2025-11-18T12:43:35Z'
|
package/src/schema.d.ts
CHANGED
|
@@ -2537,6 +2537,12 @@ export interface components {
|
|
|
2537
2537
|
};
|
|
2538
2538
|
/** DnsRecordResponse */
|
|
2539
2539
|
DnsRecordResponse: {
|
|
2540
|
+
/**
|
|
2541
|
+
* Protected
|
|
2542
|
+
* @description Whether the record is protected
|
|
2543
|
+
* @default false
|
|
2544
|
+
*/
|
|
2545
|
+
protected: boolean;
|
|
2540
2546
|
/** Rdata */
|
|
2541
2547
|
rdata: string;
|
|
2542
2548
|
};
|