@opusdns/api 0.9.0 → 0.11.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 +5 -5
- package/src/helpers/constants.ts +2633 -0
- package/src/helpers/index.ts +20 -0
- package/src/helpers/keys.ts +19097 -0
- package/src/helpers/requests.ts +3553 -0
- package/src/helpers/responses.ts +5266 -0
- package/src/helpers/schemas-arrays.ts +711 -0
- package/src/helpers/schemas.ts +2908 -0
- package/src/index.d.ts +2 -0
- package/src/openapi.yaml +959 -3
- package/src/schema.d.ts +1078 -0
- package/src/types/constants.ts +109 -0
- package/src/types/keys.ts +1526 -4
- package/src/types/types.ts +470 -4
package/src/types/constants.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated This file is deprecated and will be removed in a future release.
|
|
3
|
+
* All enums and constants have moved to src/helpers/enums.ts. Please update your imports to use @/helpers or @/helpers/enums.
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* Auto-generated enums from OpenAPI schema
|
|
3
7
|
* Generated on: 2025-07-25T14:03:33.604Z
|
|
@@ -6,6 +10,9 @@
|
|
|
6
10
|
/**
|
|
7
11
|
* BULK_OPERATION_STATUS
|
|
8
12
|
*/
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
15
|
+
*/
|
|
9
16
|
export enum BULK_OPERATION_STATUS {
|
|
10
17
|
SUCCESS = "success",
|
|
11
18
|
FAILED = "failed",
|
|
@@ -14,6 +21,9 @@ export enum BULK_OPERATION_STATUS {
|
|
|
14
21
|
/**
|
|
15
22
|
* CONTACT_SORT_FIELD
|
|
16
23
|
*/
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
26
|
+
*/
|
|
17
27
|
export enum CONTACT_SORT_FIELD {
|
|
18
28
|
FIRST_NAME = "first_name",
|
|
19
29
|
LAST_NAME = "last_name",
|
|
@@ -24,6 +34,9 @@ export enum CONTACT_SORT_FIELD {
|
|
|
24
34
|
/**
|
|
25
35
|
* CURRENCY
|
|
26
36
|
*/
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
39
|
+
*/
|
|
27
40
|
export enum CURRENCY {
|
|
28
41
|
USD = "USD",
|
|
29
42
|
EUR = "EUR",
|
|
@@ -32,6 +45,9 @@ export enum CURRENCY {
|
|
|
32
45
|
/**
|
|
33
46
|
* DNS_CHANGE_ACTION
|
|
34
47
|
*/
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
50
|
+
*/
|
|
35
51
|
export enum DNS_CHANGE_ACTION {
|
|
36
52
|
CREATE_ZONE = "create_zone",
|
|
37
53
|
DELETE_ZONE = "delete_zone",
|
|
@@ -44,6 +60,9 @@ export enum DNS_CHANGE_ACTION {
|
|
|
44
60
|
/**
|
|
45
61
|
* DNS_RRSET_TYPE
|
|
46
62
|
*/
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
65
|
+
*/
|
|
47
66
|
export enum DNS_RRSET_TYPE {
|
|
48
67
|
A = "A",
|
|
49
68
|
AAAA = "AAAA",
|
|
@@ -63,20 +82,35 @@ export enum DNS_RRSET_TYPE {
|
|
|
63
82
|
/**
|
|
64
83
|
* DNSSEC_ALGORITHM
|
|
65
84
|
*/
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
87
|
+
*/
|
|
66
88
|
export const DNSSECALGORITHM = [1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 23] as const;
|
|
67
89
|
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
92
|
+
*/
|
|
68
93
|
export type Dnssecalgorithm = typeof DNSSECALGORITHM[number];
|
|
69
94
|
|
|
70
95
|
/**
|
|
71
96
|
* DNSSEC_DIGEST_TYPE
|
|
72
97
|
*/
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
100
|
+
*/
|
|
73
101
|
export const DNSSECDIGESTTYPE = [1, 2, 3, 4, 5, 6] as const;
|
|
74
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
105
|
+
*/
|
|
75
106
|
export type Dnssecdigesttype = typeof DNSSECDIGESTTYPE[number];
|
|
76
107
|
|
|
77
108
|
/**
|
|
78
109
|
* DNSSEC_RECORD_TYPE
|
|
79
110
|
*/
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
113
|
+
*/
|
|
80
114
|
export enum DNSSEC_RECORD_TYPE {
|
|
81
115
|
DS_DATA = "ds_data",
|
|
82
116
|
KEY_DATA = "key_data",
|
|
@@ -85,6 +119,9 @@ export enum DNSSEC_RECORD_TYPE {
|
|
|
85
119
|
/**
|
|
86
120
|
* DNSSEC_STATUS
|
|
87
121
|
*/
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
124
|
+
*/
|
|
88
125
|
export enum DNSSEC_STATUS {
|
|
89
126
|
ENABLED = "enabled",
|
|
90
127
|
DISABLED = "disabled",
|
|
@@ -93,6 +130,9 @@ export enum DNSSEC_STATUS {
|
|
|
93
130
|
/**
|
|
94
131
|
* DOMAIN_AVAILABILITY_STATUS
|
|
95
132
|
*/
|
|
133
|
+
/**
|
|
134
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
135
|
+
*/
|
|
96
136
|
export enum DOMAIN_AVAILABILITY_STATUS {
|
|
97
137
|
AVAILABLE = "available",
|
|
98
138
|
UNAVAILABLE = "unavailable",
|
|
@@ -104,6 +144,9 @@ export enum DOMAIN_AVAILABILITY_STATUS {
|
|
|
104
144
|
/**
|
|
105
145
|
* DOMAIN_CLIENT_STATUS
|
|
106
146
|
*/
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
149
|
+
*/
|
|
107
150
|
export enum DOMAIN_CLIENT_STATUS {
|
|
108
151
|
CLIENTTRANSFERPROHIBITED = "clientTransferProhibited",
|
|
109
152
|
CLIENTUPDATEPROHIBITED = "clientUpdateProhibited",
|
|
@@ -115,6 +158,9 @@ export enum DOMAIN_CLIENT_STATUS {
|
|
|
115
158
|
/**
|
|
116
159
|
* DOMAIN_CONTACT_TYPE
|
|
117
160
|
*/
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
163
|
+
*/
|
|
118
164
|
export enum DOMAIN_CONTACT_TYPE {
|
|
119
165
|
REGISTRANT = "registrant",
|
|
120
166
|
ADMIN = "admin",
|
|
@@ -125,6 +171,9 @@ export enum DOMAIN_CONTACT_TYPE {
|
|
|
125
171
|
/**
|
|
126
172
|
* DOMAIN_SORT_FIELD
|
|
127
173
|
*/
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
176
|
+
*/
|
|
128
177
|
export enum DOMAIN_SORT_FIELD {
|
|
129
178
|
NAME = "name",
|
|
130
179
|
CREATED_ON = "created_on",
|
|
@@ -136,6 +185,9 @@ export enum DOMAIN_SORT_FIELD {
|
|
|
136
185
|
/**
|
|
137
186
|
* DOMAIN_STATUS
|
|
138
187
|
*/
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
190
|
+
*/
|
|
139
191
|
export enum DOMAIN_STATUS {
|
|
140
192
|
OK = "ok",
|
|
141
193
|
SERVERTRANSFERPROHIBITED = "serverTransferProhibited",
|
|
@@ -166,6 +218,9 @@ export enum DOMAIN_STATUS {
|
|
|
166
218
|
/**
|
|
167
219
|
* EMAIL_FORWARD_STATUS
|
|
168
220
|
*/
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
223
|
+
*/
|
|
169
224
|
export enum EMAIL_FORWARD_STATUS {
|
|
170
225
|
ACTIVE = "active",
|
|
171
226
|
INACTIVE = "inactive",
|
|
@@ -174,6 +229,9 @@ export enum EMAIL_FORWARD_STATUS {
|
|
|
174
229
|
/**
|
|
175
230
|
* EMAIL_VERIFICATION_STATUS
|
|
176
231
|
*/
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
234
|
+
*/
|
|
177
235
|
export enum EMAIL_VERIFICATION_STATUS {
|
|
178
236
|
VERIFIED = "verified",
|
|
179
237
|
PENDING = "pending",
|
|
@@ -183,6 +241,9 @@ export enum EMAIL_VERIFICATION_STATUS {
|
|
|
183
241
|
/**
|
|
184
242
|
* EVENT_OBJECT_TYPE
|
|
185
243
|
*/
|
|
244
|
+
/**
|
|
245
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
246
|
+
*/
|
|
186
247
|
export enum EVENT_OBJECT_TYPE {
|
|
187
248
|
DOMAIN = "DOMAIN",
|
|
188
249
|
CONTACT = "CONTACT",
|
|
@@ -194,6 +255,9 @@ export enum EVENT_OBJECT_TYPE {
|
|
|
194
255
|
/**
|
|
195
256
|
* EVENT_SUBTYPE
|
|
196
257
|
*/
|
|
258
|
+
/**
|
|
259
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
260
|
+
*/
|
|
197
261
|
export enum EVENT_SUBTYPE {
|
|
198
262
|
NOTIFICATION = "NOTIFICATION",
|
|
199
263
|
SUCCESS = "SUCCESS",
|
|
@@ -204,6 +268,9 @@ export enum EVENT_SUBTYPE {
|
|
|
204
268
|
/**
|
|
205
269
|
* EVENT_TYPE
|
|
206
270
|
*/
|
|
271
|
+
/**
|
|
272
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
273
|
+
*/
|
|
207
274
|
export enum EVENT_TYPE {
|
|
208
275
|
REGISTRATION = "REGISTRATION",
|
|
209
276
|
RENEWAL = "RENEWAL",
|
|
@@ -216,6 +283,9 @@ export enum EVENT_TYPE {
|
|
|
216
283
|
/**
|
|
217
284
|
* GRANT_TYPE
|
|
218
285
|
*/
|
|
286
|
+
/**
|
|
287
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
288
|
+
*/
|
|
219
289
|
export enum GRANT_TYPE {
|
|
220
290
|
CLIENT_CREDENTIALS = "client_credentials",
|
|
221
291
|
PASSWORD = "password",
|
|
@@ -225,6 +295,9 @@ export enum GRANT_TYPE {
|
|
|
225
295
|
/**
|
|
226
296
|
* ORGANIZATION_CREDENTIAL_STATUS
|
|
227
297
|
*/
|
|
298
|
+
/**
|
|
299
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
300
|
+
*/
|
|
228
301
|
export enum ORGANIZATION_CREDENTIAL_STATUS {
|
|
229
302
|
ACTIVE = "active",
|
|
230
303
|
REVOKED = "revoked",
|
|
@@ -233,6 +306,9 @@ export enum ORGANIZATION_CREDENTIAL_STATUS {
|
|
|
233
306
|
/**
|
|
234
307
|
* ORGANIZATION_STATUS
|
|
235
308
|
*/
|
|
309
|
+
/**
|
|
310
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
311
|
+
*/
|
|
236
312
|
export enum ORGANIZATION_STATUS {
|
|
237
313
|
ACTIVE = "active",
|
|
238
314
|
INACTIVE = "inactive",
|
|
@@ -241,6 +317,9 @@ export enum ORGANIZATION_STATUS {
|
|
|
241
317
|
/**
|
|
242
318
|
* PATCH_OP
|
|
243
319
|
*/
|
|
320
|
+
/**
|
|
321
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
322
|
+
*/
|
|
244
323
|
export enum PATCH_OP {
|
|
245
324
|
UPSERT = "upsert",
|
|
246
325
|
REMOVE = "remove",
|
|
@@ -249,6 +328,9 @@ export enum PATCH_OP {
|
|
|
249
328
|
/**
|
|
250
329
|
* PERIOD_UNIT
|
|
251
330
|
*/
|
|
331
|
+
/**
|
|
332
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
333
|
+
*/
|
|
252
334
|
export enum PERIOD_UNIT {
|
|
253
335
|
Y = "y",
|
|
254
336
|
M = "m",
|
|
@@ -258,6 +340,9 @@ export enum PERIOD_UNIT {
|
|
|
258
340
|
/**
|
|
259
341
|
* PERMISSION
|
|
260
342
|
*/
|
|
343
|
+
/**
|
|
344
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
345
|
+
*/
|
|
261
346
|
export enum PERMISSION {
|
|
262
347
|
ACKNOWLEDGE = "acknowledge",
|
|
263
348
|
BULK_CREATE = "bulk_create",
|
|
@@ -296,6 +381,9 @@ export enum PERMISSION {
|
|
|
296
381
|
/**
|
|
297
382
|
* PLAN_RELATION
|
|
298
383
|
*/
|
|
384
|
+
/**
|
|
385
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
386
|
+
*/
|
|
299
387
|
export enum PLAN_RELATION {
|
|
300
388
|
BASIC_PLAN = "basic_plan",
|
|
301
389
|
ENTERPRISE_PLAN = "enterprise_plan",
|
|
@@ -306,6 +394,9 @@ export enum PLAN_RELATION {
|
|
|
306
394
|
/**
|
|
307
395
|
* RELATION
|
|
308
396
|
*/
|
|
397
|
+
/**
|
|
398
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
399
|
+
*/
|
|
309
400
|
export enum RELATION {
|
|
310
401
|
ACCEPTED_TOS = "accepted_tos",
|
|
311
402
|
ADMIN = "admin",
|
|
@@ -331,6 +422,9 @@ export enum RELATION {
|
|
|
331
422
|
/**
|
|
332
423
|
* RENEWAL_MODE
|
|
333
424
|
*/
|
|
425
|
+
/**
|
|
426
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
427
|
+
*/
|
|
334
428
|
export enum RENEWAL_MODE {
|
|
335
429
|
RENEW = "renew",
|
|
336
430
|
EXPIRE = "expire",
|
|
@@ -340,6 +434,9 @@ export enum RENEWAL_MODE {
|
|
|
340
434
|
/**
|
|
341
435
|
* SORT_ORDER
|
|
342
436
|
*/
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
439
|
+
*/
|
|
343
440
|
export enum SORT_ORDER {
|
|
344
441
|
ASC = "asc",
|
|
345
442
|
DESC = "desc",
|
|
@@ -348,6 +445,9 @@ export enum SORT_ORDER {
|
|
|
348
445
|
/**
|
|
349
446
|
* USER_NOTIFICATION_STATUS
|
|
350
447
|
*/
|
|
448
|
+
/**
|
|
449
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
450
|
+
*/
|
|
351
451
|
export enum USER_NOTIFICATION_STATUS {
|
|
352
452
|
READ = "read",
|
|
353
453
|
UNREAD = "unread",
|
|
@@ -356,6 +456,9 @@ export enum USER_NOTIFICATION_STATUS {
|
|
|
356
456
|
/**
|
|
357
457
|
* USER_STATUS
|
|
358
458
|
*/
|
|
459
|
+
/**
|
|
460
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
461
|
+
*/
|
|
359
462
|
export enum USER_STATUS {
|
|
360
463
|
ACTIVE = "active",
|
|
361
464
|
INACTIVE = "inactive",
|
|
@@ -364,6 +467,9 @@ export enum USER_STATUS {
|
|
|
364
467
|
/**
|
|
365
468
|
* VERIFICATION_TYPE
|
|
366
469
|
*/
|
|
470
|
+
/**
|
|
471
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
472
|
+
*/
|
|
367
473
|
export enum VERIFICATION_TYPE {
|
|
368
474
|
API = "api",
|
|
369
475
|
EMAIL = "email",
|
|
@@ -372,6 +478,9 @@ export enum VERIFICATION_TYPE {
|
|
|
372
478
|
/**
|
|
373
479
|
* ZONE_SORT_FIELD
|
|
374
480
|
*/
|
|
481
|
+
/**
|
|
482
|
+
* @deprecated Use the corresponding type from @/helpers instead.
|
|
483
|
+
*/
|
|
375
484
|
export enum ZONE_SORT_FIELD {
|
|
376
485
|
NAME = "name",
|
|
377
486
|
CREATED_ON = "created_on",
|