@opusdns/api 0.225.0 → 0.227.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/constants.ts +97 -1
- package/src/helpers/keys.ts +105 -0
- package/src/helpers/schemas.d.ts +16 -0
- package/src/openapi.yaml +70 -1
- package/src/schema.d.ts +16 -1
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -599,6 +599,54 @@ export const CONTACT_SORT_FIELD_VALUES = [
|
|
|
599
599
|
export const CURRENCY = {
|
|
600
600
|
USD: "USD",
|
|
601
601
|
EUR: "EUR",
|
|
602
|
+
JPY: "JPY",
|
|
603
|
+
GBP: "GBP",
|
|
604
|
+
CNY: "CNY",
|
|
605
|
+
AUD: "AUD",
|
|
606
|
+
CAD: "CAD",
|
|
607
|
+
CHF: "CHF",
|
|
608
|
+
HKD: "HKD",
|
|
609
|
+
SGD: "SGD",
|
|
610
|
+
SEK: "SEK",
|
|
611
|
+
KRW: "KRW",
|
|
612
|
+
NOK: "NOK",
|
|
613
|
+
NZD: "NZD",
|
|
614
|
+
INR: "INR",
|
|
615
|
+
MXN: "MXN",
|
|
616
|
+
TWD: "TWD",
|
|
617
|
+
ZAR: "ZAR",
|
|
618
|
+
BRL: "BRL",
|
|
619
|
+
DKK: "DKK",
|
|
620
|
+
PLN: "PLN",
|
|
621
|
+
THB: "THB",
|
|
622
|
+
IDR: "IDR",
|
|
623
|
+
HUF: "HUF",
|
|
624
|
+
CZK: "CZK",
|
|
625
|
+
TRY: "TRY",
|
|
626
|
+
ILS: "ILS",
|
|
627
|
+
PHP: "PHP",
|
|
628
|
+
MYR: "MYR",
|
|
629
|
+
RON: "RON",
|
|
630
|
+
SAR: "SAR",
|
|
631
|
+
AED: "AED",
|
|
632
|
+
CLP: "CLP",
|
|
633
|
+
COP: "COP",
|
|
634
|
+
ARS: "ARS",
|
|
635
|
+
VND: "VND",
|
|
636
|
+
EGP: "EGP",
|
|
637
|
+
NGN: "NGN",
|
|
638
|
+
PKR: "PKR",
|
|
639
|
+
UAH: "UAH",
|
|
640
|
+
KZT: "KZT",
|
|
641
|
+
QAR: "QAR",
|
|
642
|
+
KWD: "KWD",
|
|
643
|
+
BHD: "BHD",
|
|
644
|
+
OMR: "OMR",
|
|
645
|
+
MAD: "MAD",
|
|
646
|
+
RUB: "RUB",
|
|
647
|
+
BGN: "BGN",
|
|
648
|
+
PEN: "PEN",
|
|
649
|
+
JOD: "JOD",
|
|
602
650
|
} as const satisfies Record<string, Currency>;
|
|
603
651
|
|
|
604
652
|
/**
|
|
@@ -624,7 +672,55 @@ export const CURRENCY = {
|
|
|
624
672
|
*/
|
|
625
673
|
export const CURRENCY_VALUES = [
|
|
626
674
|
'USD',
|
|
627
|
-
'EUR'
|
|
675
|
+
'EUR',
|
|
676
|
+
'JPY',
|
|
677
|
+
'GBP',
|
|
678
|
+
'CNY',
|
|
679
|
+
'AUD',
|
|
680
|
+
'CAD',
|
|
681
|
+
'CHF',
|
|
682
|
+
'HKD',
|
|
683
|
+
'SGD',
|
|
684
|
+
'SEK',
|
|
685
|
+
'KRW',
|
|
686
|
+
'NOK',
|
|
687
|
+
'NZD',
|
|
688
|
+
'INR',
|
|
689
|
+
'MXN',
|
|
690
|
+
'TWD',
|
|
691
|
+
'ZAR',
|
|
692
|
+
'BRL',
|
|
693
|
+
'DKK',
|
|
694
|
+
'PLN',
|
|
695
|
+
'THB',
|
|
696
|
+
'IDR',
|
|
697
|
+
'HUF',
|
|
698
|
+
'CZK',
|
|
699
|
+
'TRY',
|
|
700
|
+
'ILS',
|
|
701
|
+
'PHP',
|
|
702
|
+
'MYR',
|
|
703
|
+
'RON',
|
|
704
|
+
'SAR',
|
|
705
|
+
'AED',
|
|
706
|
+
'CLP',
|
|
707
|
+
'COP',
|
|
708
|
+
'ARS',
|
|
709
|
+
'VND',
|
|
710
|
+
'EGP',
|
|
711
|
+
'NGN',
|
|
712
|
+
'PKR',
|
|
713
|
+
'UAH',
|
|
714
|
+
'KZT',
|
|
715
|
+
'QAR',
|
|
716
|
+
'KWD',
|
|
717
|
+
'BHD',
|
|
718
|
+
'OMR',
|
|
719
|
+
'MAD',
|
|
720
|
+
'RUB',
|
|
721
|
+
'BGN',
|
|
722
|
+
'PEN',
|
|
723
|
+
'JOD'
|
|
628
724
|
] as const satisfies [string, ...string[]] | Currency[];
|
|
629
725
|
|
|
630
726
|
/**
|
package/src/helpers/keys.ts
CHANGED
|
@@ -190,6 +190,7 @@ import { ReservedDomainsBase } from './schemas';
|
|
|
190
190
|
import { RgpOperations } from './schemas';
|
|
191
191
|
import { SldLength } from './schemas';
|
|
192
192
|
import { SpiceDbRelationshipUpdate } from './schemas';
|
|
193
|
+
import { StatusChanges } from './schemas';
|
|
193
194
|
import { StatusCodeStatsBucket } from './schemas';
|
|
194
195
|
import { TimeSeriesBucket } from './schemas';
|
|
195
196
|
import { TldBase } from './schemas';
|
|
@@ -11960,6 +11961,31 @@ export const KEY_DOMAIN_UPDATE_NAMESERVERS: keyof DomainUpdate = 'nameservers';
|
|
|
11960
11961
|
* @see {@link KEYS_DOMAIN_UPDATE} - Array of all keys for this type
|
|
11961
11962
|
*/
|
|
11962
11963
|
export const KEY_DOMAIN_UPDATE_RENEWAL_MODE: keyof DomainUpdate = 'renewal_mode';
|
|
11964
|
+
/**
|
|
11965
|
+
* status_changes property
|
|
11966
|
+
*
|
|
11967
|
+
* Statuses to add or remove relative to current state
|
|
11968
|
+
*
|
|
11969
|
+
*
|
|
11970
|
+
*
|
|
11971
|
+
* @remarks
|
|
11972
|
+
* This key constant provides type-safe access to the `status_changes` property of DomainUpdate objects.
|
|
11973
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11974
|
+
*
|
|
11975
|
+
* @example
|
|
11976
|
+
* ```typescript
|
|
11977
|
+
* // Direct property access
|
|
11978
|
+
* const value = domainupdate[KEY_DOMAIN_UPDATE_STATUS_CHANGES];
|
|
11979
|
+
*
|
|
11980
|
+
* // Dynamic property access
|
|
11981
|
+
* const propertyName = KEY_DOMAIN_UPDATE_STATUS_CHANGES;
|
|
11982
|
+
* const value = domainupdate[propertyName];
|
|
11983
|
+
* ```
|
|
11984
|
+
*
|
|
11985
|
+
* @see {@link DomainUpdate} - The TypeScript type definition
|
|
11986
|
+
* @see {@link KEYS_DOMAIN_UPDATE} - Array of all keys for this type
|
|
11987
|
+
*/
|
|
11988
|
+
export const KEY_DOMAIN_UPDATE_STATUS_CHANGES: keyof DomainUpdate = 'status_changes';
|
|
11963
11989
|
/**
|
|
11964
11990
|
* Statuses
|
|
11965
11991
|
*
|
|
@@ -12011,6 +12037,7 @@ export const KEYS_DOMAIN_UPDATE = [
|
|
|
12011
12037
|
KEY_DOMAIN_UPDATE_CONTACTS,
|
|
12012
12038
|
KEY_DOMAIN_UPDATE_NAMESERVERS,
|
|
12013
12039
|
KEY_DOMAIN_UPDATE_RENEWAL_MODE,
|
|
12040
|
+
KEY_DOMAIN_UPDATE_STATUS_CHANGES,
|
|
12014
12041
|
KEY_DOMAIN_UPDATE_STATUSES,
|
|
12015
12042
|
] as const satisfies (keyof DomainUpdate)[];
|
|
12016
12043
|
|
|
@@ -23410,6 +23437,84 @@ export const KEYS_SPICE_DB_RELATIONSHIP_UPDATE = [
|
|
|
23410
23437
|
KEY_SPICE_DB_RELATIONSHIP_UPDATE_REMOVE,
|
|
23411
23438
|
] as const satisfies (keyof SpiceDbRelationshipUpdate)[];
|
|
23412
23439
|
|
|
23440
|
+
/**
|
|
23441
|
+
* Add
|
|
23442
|
+
*
|
|
23443
|
+
* Statuses to add to the domain
|
|
23444
|
+
*
|
|
23445
|
+
* @type {array}
|
|
23446
|
+
*
|
|
23447
|
+
*
|
|
23448
|
+
* @remarks
|
|
23449
|
+
* This key constant provides type-safe access to the `add` property of StatusChanges objects.
|
|
23450
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
23451
|
+
*
|
|
23452
|
+
* @example
|
|
23453
|
+
* ```typescript
|
|
23454
|
+
* // Direct property access
|
|
23455
|
+
* const value = statuschanges[KEY_STATUS_CHANGES_ADD];
|
|
23456
|
+
*
|
|
23457
|
+
* // Dynamic property access
|
|
23458
|
+
* const propertyName = KEY_STATUS_CHANGES_ADD;
|
|
23459
|
+
* const value = statuschanges[propertyName];
|
|
23460
|
+
* ```
|
|
23461
|
+
*
|
|
23462
|
+
* @see {@link StatusChanges} - The TypeScript type definition
|
|
23463
|
+
* @see {@link KEYS_STATUS_CHANGES} - Array of all keys for this type
|
|
23464
|
+
*/
|
|
23465
|
+
export const KEY_STATUS_CHANGES_ADD: keyof StatusChanges = 'add';
|
|
23466
|
+
/**
|
|
23467
|
+
* Remove
|
|
23468
|
+
*
|
|
23469
|
+
* Statuses to remove from the domain
|
|
23470
|
+
*
|
|
23471
|
+
* @type {array}
|
|
23472
|
+
*
|
|
23473
|
+
*
|
|
23474
|
+
* @remarks
|
|
23475
|
+
* This key constant provides type-safe access to the `remove` property of StatusChanges objects.
|
|
23476
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
23477
|
+
*
|
|
23478
|
+
* @example
|
|
23479
|
+
* ```typescript
|
|
23480
|
+
* // Direct property access
|
|
23481
|
+
* const value = statuschanges[KEY_STATUS_CHANGES_REMOVE];
|
|
23482
|
+
*
|
|
23483
|
+
* // Dynamic property access
|
|
23484
|
+
* const propertyName = KEY_STATUS_CHANGES_REMOVE;
|
|
23485
|
+
* const value = statuschanges[propertyName];
|
|
23486
|
+
* ```
|
|
23487
|
+
*
|
|
23488
|
+
* @see {@link StatusChanges} - The TypeScript type definition
|
|
23489
|
+
* @see {@link KEYS_STATUS_CHANGES} - Array of all keys for this type
|
|
23490
|
+
*/
|
|
23491
|
+
export const KEY_STATUS_CHANGES_REMOVE: keyof StatusChanges = 'remove';
|
|
23492
|
+
|
|
23493
|
+
/**
|
|
23494
|
+
* Array of all StatusChanges property keys
|
|
23495
|
+
*
|
|
23496
|
+
* @remarks
|
|
23497
|
+
* This constant provides a readonly array containing all valid property keys for StatusChanges objects.
|
|
23498
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
23499
|
+
*
|
|
23500
|
+
* @example
|
|
23501
|
+
* ```typescript
|
|
23502
|
+
* // Iterating through all keys
|
|
23503
|
+
* for (const key of KEYS_STATUS_CHANGES) {
|
|
23504
|
+
* console.log(`Property: ${key}, Value: ${statuschanges[key]}`);
|
|
23505
|
+
* }
|
|
23506
|
+
*
|
|
23507
|
+
* // Validation
|
|
23508
|
+
* const isValidKey = KEYS_STATUS_CHANGES.includes(someKey);
|
|
23509
|
+
* ```
|
|
23510
|
+
*
|
|
23511
|
+
* @see {@link StatusChanges} - The TypeScript type definition
|
|
23512
|
+
*/
|
|
23513
|
+
export const KEYS_STATUS_CHANGES = [
|
|
23514
|
+
KEY_STATUS_CHANGES_ADD,
|
|
23515
|
+
KEY_STATUS_CHANGES_REMOVE,
|
|
23516
|
+
] as const satisfies (keyof StatusChanges)[];
|
|
23517
|
+
|
|
23413
23518
|
/**
|
|
23414
23519
|
* Key
|
|
23415
23520
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -4132,6 +4132,22 @@ export type SortOrder = components['schemas']['SortOrder'];
|
|
|
4132
4132
|
* @see {@link components} - The OpenAPI components schema definition
|
|
4133
4133
|
*/
|
|
4134
4134
|
export type SpiceDbRelationshipUpdate = components['schemas']['SpiceDbRelationshipUpdate'];
|
|
4135
|
+
/**
|
|
4136
|
+
* StatusChanges
|
|
4137
|
+
*
|
|
4138
|
+
* @remarks
|
|
4139
|
+
* Type alias for the `StatusChanges` OpenAPI schema.
|
|
4140
|
+
* This type represents statuschanges data structures used in API requests and responses.
|
|
4141
|
+
*
|
|
4142
|
+
* @example
|
|
4143
|
+
* ```typescript
|
|
4144
|
+
* const response = await api.getStatusChanges();
|
|
4145
|
+
* const item: StatusChanges = response.results;
|
|
4146
|
+
* ```
|
|
4147
|
+
*
|
|
4148
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
4149
|
+
*/
|
|
4150
|
+
export type StatusChanges = components['schemas']['StatusChanges'];
|
|
4135
4151
|
/**
|
|
4136
4152
|
* StatusCodeStatsBucket
|
|
4137
4153
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -1151,6 +1151,54 @@ components:
|
|
|
1151
1151
|
enum:
|
|
1152
1152
|
- USD
|
|
1153
1153
|
- EUR
|
|
1154
|
+
- JPY
|
|
1155
|
+
- GBP
|
|
1156
|
+
- CNY
|
|
1157
|
+
- AUD
|
|
1158
|
+
- CAD
|
|
1159
|
+
- CHF
|
|
1160
|
+
- HKD
|
|
1161
|
+
- SGD
|
|
1162
|
+
- SEK
|
|
1163
|
+
- KRW
|
|
1164
|
+
- NOK
|
|
1165
|
+
- NZD
|
|
1166
|
+
- INR
|
|
1167
|
+
- MXN
|
|
1168
|
+
- TWD
|
|
1169
|
+
- ZAR
|
|
1170
|
+
- BRL
|
|
1171
|
+
- DKK
|
|
1172
|
+
- PLN
|
|
1173
|
+
- THB
|
|
1174
|
+
- IDR
|
|
1175
|
+
- HUF
|
|
1176
|
+
- CZK
|
|
1177
|
+
- TRY
|
|
1178
|
+
- ILS
|
|
1179
|
+
- PHP
|
|
1180
|
+
- MYR
|
|
1181
|
+
- RON
|
|
1182
|
+
- SAR
|
|
1183
|
+
- AED
|
|
1184
|
+
- CLP
|
|
1185
|
+
- COP
|
|
1186
|
+
- ARS
|
|
1187
|
+
- VND
|
|
1188
|
+
- EGP
|
|
1189
|
+
- NGN
|
|
1190
|
+
- PKR
|
|
1191
|
+
- UAH
|
|
1192
|
+
- KZT
|
|
1193
|
+
- QAR
|
|
1194
|
+
- KWD
|
|
1195
|
+
- BHD
|
|
1196
|
+
- OMR
|
|
1197
|
+
- MAD
|
|
1198
|
+
- RUB
|
|
1199
|
+
- BGN
|
|
1200
|
+
- PEN
|
|
1201
|
+
- JOD
|
|
1154
1202
|
title: Currency
|
|
1155
1203
|
type: string
|
|
1156
1204
|
DeletePolicyType:
|
|
@@ -2926,6 +2974,11 @@ components:
|
|
|
2926
2974
|
- $ref: '#/components/schemas/RenewalMode'
|
|
2927
2975
|
- type: 'null'
|
|
2928
2976
|
description: The new renewal mode of the domain
|
|
2977
|
+
status_changes:
|
|
2978
|
+
anyOf:
|
|
2979
|
+
- $ref: '#/components/schemas/StatusChanges'
|
|
2980
|
+
- type: 'null'
|
|
2981
|
+
description: Statuses to add or remove relative to current state
|
|
2929
2982
|
statuses:
|
|
2930
2983
|
anyOf:
|
|
2931
2984
|
- items:
|
|
@@ -6144,6 +6197,22 @@ components:
|
|
|
6144
6197
|
title: Remove
|
|
6145
6198
|
title: SpiceDbRelationshipUpdate
|
|
6146
6199
|
type: object
|
|
6200
|
+
StatusChanges:
|
|
6201
|
+
properties:
|
|
6202
|
+
add:
|
|
6203
|
+
description: Statuses to add to the domain
|
|
6204
|
+
items:
|
|
6205
|
+
$ref: '#/components/schemas/DomainClientStatus'
|
|
6206
|
+
title: Add
|
|
6207
|
+
type: array
|
|
6208
|
+
remove:
|
|
6209
|
+
description: Statuses to remove from the domain
|
|
6210
|
+
items:
|
|
6211
|
+
$ref: '#/components/schemas/DomainClientStatus'
|
|
6212
|
+
title: Remove
|
|
6213
|
+
type: array
|
|
6214
|
+
title: StatusChanges
|
|
6215
|
+
type: object
|
|
6147
6216
|
StatusCodeStatsBucket:
|
|
6148
6217
|
properties:
|
|
6149
6218
|
key:
|
|
@@ -7339,7 +7408,7 @@ info:
|
|
|
7339
7408
|
'
|
|
7340
7409
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
7341
7410
|
title: OpusDNS API
|
|
7342
|
-
version: 2026-03-
|
|
7411
|
+
version: 2026-03-27-090254
|
|
7343
7412
|
x-logo:
|
|
7344
7413
|
altText: OpusDNS API Reference
|
|
7345
7414
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -2786,7 +2786,7 @@ export interface components {
|
|
|
2786
2786
|
* Currency
|
|
2787
2787
|
* @enum {string}
|
|
2788
2788
|
*/
|
|
2789
|
-
Currency: "USD" | "EUR";
|
|
2789
|
+
Currency: "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "AUD" | "CAD" | "CHF" | "HKD" | "SGD" | "SEK" | "KRW" | "NOK" | "NZD" | "INR" | "MXN" | "TWD" | "ZAR" | "BRL" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "TRY" | "ILS" | "PHP" | "MYR" | "RON" | "SAR" | "AED" | "CLP" | "COP" | "ARS" | "VND" | "EGP" | "NGN" | "PKR" | "UAH" | "KZT" | "QAR" | "KWD" | "BHD" | "OMR" | "MAD" | "RUB" | "BGN" | "PEN" | "JOD";
|
|
2790
2790
|
/**
|
|
2791
2791
|
* DeletePolicyType
|
|
2792
2792
|
* @enum {string}
|
|
@@ -3868,6 +3868,8 @@ export interface components {
|
|
|
3868
3868
|
nameservers?: components["schemas"]["Nameserver"][] | null;
|
|
3869
3869
|
/** @description The new renewal mode of the domain */
|
|
3870
3870
|
renewal_mode?: components["schemas"]["RenewalMode"] | null;
|
|
3871
|
+
/** @description Statuses to add or remove relative to current state */
|
|
3872
|
+
status_changes?: components["schemas"]["StatusChanges"] | null;
|
|
3871
3873
|
/**
|
|
3872
3874
|
* Statuses
|
|
3873
3875
|
* @description The new statuses of the domain
|
|
@@ -5989,6 +5991,19 @@ export interface components {
|
|
|
5989
5991
|
/** Remove */
|
|
5990
5992
|
remove?: components["schemas"]["Relation"][] | null;
|
|
5991
5993
|
};
|
|
5994
|
+
/** StatusChanges */
|
|
5995
|
+
StatusChanges: {
|
|
5996
|
+
/**
|
|
5997
|
+
* Add
|
|
5998
|
+
* @description Statuses to add to the domain
|
|
5999
|
+
*/
|
|
6000
|
+
add?: components["schemas"]["DomainClientStatus"][];
|
|
6001
|
+
/**
|
|
6002
|
+
* Remove
|
|
6003
|
+
* @description Statuses to remove from the domain
|
|
6004
|
+
*/
|
|
6005
|
+
remove?: components["schemas"]["DomainClientStatus"][];
|
|
6006
|
+
};
|
|
5992
6007
|
/** StatusCodeStatsBucket */
|
|
5993
6008
|
StatusCodeStatsBucket: {
|
|
5994
6009
|
/** Key */
|