@opusdns/api 0.133.0 → 0.135.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 +51 -105
- package/src/helpers/keys.ts +52 -0
- package/src/helpers/schemas-arrays.d.ts +6 -6
- package/src/helpers/schemas.d.ts +33 -33
- package/src/openapi.yaml +23 -21
- package/src/schema.d.ts +19 -16
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus,
|
|
24
|
+
import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainForwardSortField, DomainForwardZoneSortField, DomainSortField, DomainStatus, EmailForwardLogSortField, EmailForwardSortField, EmailForwardZoneSortField, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, HostStatus, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LocalPresenceRequirementType, ObjectEventType, ObjectLogSortField, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, RequestHistorySortField, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -357,60 +357,6 @@ export const BILLING_TRANSACTION_STATUS_VALUES = [
|
|
|
357
357
|
'canceled'
|
|
358
358
|
] as const satisfies [string, ...string[]] | BillingTransactionStatus[];
|
|
359
359
|
|
|
360
|
-
/**
|
|
361
|
-
* ContactRoleType. Auto-generated enum for ContactRoleType
|
|
362
|
-
*
|
|
363
|
-
* @remarks
|
|
364
|
-
* This constant provides both object and array forms for the ContactRoleType enum.
|
|
365
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
366
|
-
*
|
|
367
|
-
* @example
|
|
368
|
-
* ```typescript
|
|
369
|
-
* // Using the object form for key-value access
|
|
370
|
-
* const status = CONTACT_ROLE_TYPE.SUCCESS;
|
|
371
|
-
*
|
|
372
|
-
* // Using the array form for iteration
|
|
373
|
-
* const allStatuses = CONTACT_ROLE_TYPE_VALUES;
|
|
374
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
375
|
-
* ```
|
|
376
|
-
*
|
|
377
|
-
* @see {@link ContactRoleType} - The TypeScript type definition
|
|
378
|
-
*/
|
|
379
|
-
export const CONTACT_ROLE_TYPE = {
|
|
380
|
-
REGISTRANT: "registrant",
|
|
381
|
-
ADMIN: "admin",
|
|
382
|
-
TECH: "tech",
|
|
383
|
-
BILLING: "billing",
|
|
384
|
-
} as const satisfies Record<string, ContactRoleType>;
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Array of all ContactRoleType enum values
|
|
388
|
-
*
|
|
389
|
-
* @remarks
|
|
390
|
-
* This constant provides a array containing all valid ContactRoleType enum values.
|
|
391
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
392
|
-
*
|
|
393
|
-
* @example
|
|
394
|
-
* ```typescript
|
|
395
|
-
* // Iterating through all values
|
|
396
|
-
* for (const value of CONTACT_ROLE_TYPE_VALUES) {
|
|
397
|
-
* console.log(`Processing: ${value}`);
|
|
398
|
-
* }
|
|
399
|
-
*
|
|
400
|
-
* // Validation
|
|
401
|
-
* const isValid = CONTACT_ROLE_TYPE_VALUES.includes(someValue);
|
|
402
|
-
* ```
|
|
403
|
-
*
|
|
404
|
-
* @see {@link ContactRoleType} - The TypeScript type definition
|
|
405
|
-
* @see {@link CONTACT_ROLE_TYPE} - The object form of this enum
|
|
406
|
-
*/
|
|
407
|
-
export const CONTACT_ROLE_TYPE_VALUES = [
|
|
408
|
-
'registrant',
|
|
409
|
-
'admin',
|
|
410
|
-
'tech',
|
|
411
|
-
'billing'
|
|
412
|
-
] as const satisfies [string, ...string[]] | ContactRoleType[];
|
|
413
|
-
|
|
414
360
|
/**
|
|
415
361
|
* ContactSortField. Auto-generated enum for ContactSortField
|
|
416
362
|
*
|
|
@@ -2437,6 +2383,56 @@ export const ORGANIZATION_STATUS_VALUES = [
|
|
|
2437
2383
|
'inactive'
|
|
2438
2384
|
] as const satisfies [string, ...string[]] | OrganizationStatus[];
|
|
2439
2385
|
|
|
2386
|
+
/**
|
|
2387
|
+
* PatchOp. Auto-generated enum for PatchOp
|
|
2388
|
+
*
|
|
2389
|
+
* @remarks
|
|
2390
|
+
* This constant provides both object and array forms for the PatchOp enum.
|
|
2391
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
2392
|
+
*
|
|
2393
|
+
* @example
|
|
2394
|
+
* ```typescript
|
|
2395
|
+
* // Using the object form for key-value access
|
|
2396
|
+
* const status = PATCH_OP.SUCCESS;
|
|
2397
|
+
*
|
|
2398
|
+
* // Using the array form for iteration
|
|
2399
|
+
* const allStatuses = PATCH_OP_VALUES;
|
|
2400
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
2401
|
+
* ```
|
|
2402
|
+
*
|
|
2403
|
+
* @see {@link PatchOp} - The TypeScript type definition
|
|
2404
|
+
*/
|
|
2405
|
+
export const PATCH_OP = {
|
|
2406
|
+
UPSERT: "upsert",
|
|
2407
|
+
REMOVE: "remove",
|
|
2408
|
+
} as const satisfies Record<string, PatchOp>;
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* Array of all PatchOp enum values
|
|
2412
|
+
*
|
|
2413
|
+
* @remarks
|
|
2414
|
+
* This constant provides a array containing all valid PatchOp enum values.
|
|
2415
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
2416
|
+
*
|
|
2417
|
+
* @example
|
|
2418
|
+
* ```typescript
|
|
2419
|
+
* // Iterating through all values
|
|
2420
|
+
* for (const value of PATCH_OP_VALUES) {
|
|
2421
|
+
* console.log(`Processing: ${value}`);
|
|
2422
|
+
* }
|
|
2423
|
+
*
|
|
2424
|
+
* // Validation
|
|
2425
|
+
* const isValid = PATCH_OP_VALUES.includes(someValue);
|
|
2426
|
+
* ```
|
|
2427
|
+
*
|
|
2428
|
+
* @see {@link PatchOp} - The TypeScript type definition
|
|
2429
|
+
* @see {@link PATCH_OP} - The object form of this enum
|
|
2430
|
+
*/
|
|
2431
|
+
export const PATCH_OP_VALUES = [
|
|
2432
|
+
'upsert',
|
|
2433
|
+
'remove'
|
|
2434
|
+
] as const satisfies [string, ...string[]] | PatchOp[];
|
|
2435
|
+
|
|
2440
2436
|
/**
|
|
2441
2437
|
* PeriodUnit. Auto-generated enum for PeriodUnit
|
|
2442
2438
|
*
|
|
@@ -3564,53 +3560,3 @@ export const ZONE_SORT_FIELD_VALUES = [
|
|
|
3564
3560
|
'dnssec_status'
|
|
3565
3561
|
] as const satisfies [string, ...string[]] | ZoneSortField[];
|
|
3566
3562
|
|
|
3567
|
-
/**
|
|
3568
|
-
* PatchOp. Auto-generated enum for common__schemas__domain_forward__PatchOp
|
|
3569
|
-
*
|
|
3570
|
-
* @remarks
|
|
3571
|
-
* This constant provides both object and array forms for the common__schemas__domain_forward__PatchOp enum.
|
|
3572
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
3573
|
-
*
|
|
3574
|
-
* @example
|
|
3575
|
-
* ```typescript
|
|
3576
|
-
* // Using the object form for key-value access
|
|
3577
|
-
* const status = COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP.SUCCESS;
|
|
3578
|
-
*
|
|
3579
|
-
* // Using the array form for iteration
|
|
3580
|
-
* const allStatuses = COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP_VALUES;
|
|
3581
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
3582
|
-
* ```
|
|
3583
|
-
*
|
|
3584
|
-
* @see {@link common__schemas__domain_forward__PatchOp} - The TypeScript type definition
|
|
3585
|
-
*/
|
|
3586
|
-
export const COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP = {
|
|
3587
|
-
UPSERT: "upsert",
|
|
3588
|
-
REMOVE: "remove",
|
|
3589
|
-
} as const satisfies Record<string, common__schemas__domain_forward__PatchOp>;
|
|
3590
|
-
|
|
3591
|
-
/**
|
|
3592
|
-
* Array of all common__schemas__domain_forward__PatchOp enum values
|
|
3593
|
-
*
|
|
3594
|
-
* @remarks
|
|
3595
|
-
* This constant provides a array containing all valid common__schemas__domain_forward__PatchOp enum values.
|
|
3596
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
3597
|
-
*
|
|
3598
|
-
* @example
|
|
3599
|
-
* ```typescript
|
|
3600
|
-
* // Iterating through all values
|
|
3601
|
-
* for (const value of COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP_VALUES) {
|
|
3602
|
-
* console.log(`Processing: ${value}`);
|
|
3603
|
-
* }
|
|
3604
|
-
*
|
|
3605
|
-
* // Validation
|
|
3606
|
-
* const isValid = COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP_VALUES.includes(someValue);
|
|
3607
|
-
* ```
|
|
3608
|
-
*
|
|
3609
|
-
* @see {@link common__schemas__domain_forward__PatchOp} - The TypeScript type definition
|
|
3610
|
-
* @see {@link COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP} - The object form of this enum
|
|
3611
|
-
*/
|
|
3612
|
-
export const COMMON_SCHEMAS_DOMAIN_FORWARD_PATCH_OP_VALUES = [
|
|
3613
|
-
'upsert',
|
|
3614
|
-
'remove'
|
|
3615
|
-
] as const satisfies [string, ...string[]] | common__schemas__domain_forward__PatchOp[];
|
|
3616
|
-
|
package/src/helpers/keys.ts
CHANGED
|
@@ -92,6 +92,7 @@ import { DomainSearchMeta } from './schemas';
|
|
|
92
92
|
import { DomainSearch } from './schemas';
|
|
93
93
|
import { DomainSearchSuggestionPriceData } from './schemas';
|
|
94
94
|
import { DomainSearchSuggestionWithPrice } from './schemas';
|
|
95
|
+
import { DomainStatus2 } from './schemas';
|
|
95
96
|
import { DomainStatusesBase } from './schemas';
|
|
96
97
|
import { DomainSummaryData } from './schemas';
|
|
97
98
|
import { DomainSummary } from './schemas';
|
|
@@ -9519,6 +9520,57 @@ export const KEYS_DOMAIN_SEARCH_SUGGESTION_WITH_PRICE = [
|
|
|
9519
9520
|
KEY_DOMAIN_SEARCH_SUGGESTION_WITH_PRICE_PRICE,
|
|
9520
9521
|
] as const satisfies (keyof DomainSearchSuggestionWithPrice)[];
|
|
9521
9522
|
|
|
9523
|
+
/**
|
|
9524
|
+
* Status
|
|
9525
|
+
*
|
|
9526
|
+
* The status of the domain
|
|
9527
|
+
*
|
|
9528
|
+
* @type {string}
|
|
9529
|
+
*
|
|
9530
|
+
*
|
|
9531
|
+
* @remarks
|
|
9532
|
+
* This key constant provides type-safe access to the `status` property of DomainStatus2 objects.
|
|
9533
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
9534
|
+
*
|
|
9535
|
+
* @example
|
|
9536
|
+
* ```typescript
|
|
9537
|
+
* // Direct property access
|
|
9538
|
+
* const value = domainstatus2[KEY_DOMAIN_STATUS2_STATUS];
|
|
9539
|
+
*
|
|
9540
|
+
* // Dynamic property access
|
|
9541
|
+
* const propertyName = KEY_DOMAIN_STATUS2_STATUS;
|
|
9542
|
+
* const value = domainstatus2[propertyName];
|
|
9543
|
+
* ```
|
|
9544
|
+
*
|
|
9545
|
+
* @see {@link DomainStatus2} - The TypeScript type definition
|
|
9546
|
+
* @see {@link KEYS_DOMAIN_STATUS2} - Array of all keys for this type
|
|
9547
|
+
*/
|
|
9548
|
+
export const KEY_DOMAIN_STATUS2_STATUS: keyof DomainStatus2 = 'status';
|
|
9549
|
+
|
|
9550
|
+
/**
|
|
9551
|
+
* Array of all DomainStatus2 property keys
|
|
9552
|
+
*
|
|
9553
|
+
* @remarks
|
|
9554
|
+
* This constant provides a readonly array containing all valid property keys for DomainStatus2 objects.
|
|
9555
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
9556
|
+
*
|
|
9557
|
+
* @example
|
|
9558
|
+
* ```typescript
|
|
9559
|
+
* // Iterating through all keys
|
|
9560
|
+
* for (const key of KEYS_DOMAIN_STATUS2) {
|
|
9561
|
+
* console.log(`Property: ${key}, Value: ${domainstatus2[key]}`);
|
|
9562
|
+
* }
|
|
9563
|
+
*
|
|
9564
|
+
* // Validation
|
|
9565
|
+
* const isValidKey = KEYS_DOMAIN_STATUS2.includes(someKey);
|
|
9566
|
+
* ```
|
|
9567
|
+
*
|
|
9568
|
+
* @see {@link DomainStatus2} - The TypeScript type definition
|
|
9569
|
+
*/
|
|
9570
|
+
export const KEYS_DOMAIN_STATUS2 = [
|
|
9571
|
+
KEY_DOMAIN_STATUS2_STATUS,
|
|
9572
|
+
] as const satisfies (keyof DomainStatus2)[];
|
|
9573
|
+
|
|
9522
9574
|
/**
|
|
9523
9575
|
* Default
|
|
9524
9576
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* This file is auto-generated from the OpenAPI specification.
|
|
22
22
|
* Do not edit manually.
|
|
23
23
|
*/
|
|
24
|
-
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DomainForwardPatchOp, HttpRedirectList, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType,
|
|
24
|
+
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DomainForwardPatchOp, HttpRedirectList, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* DomainDnssecDataResponse
|
|
@@ -570,19 +570,19 @@ export type LaunchPhaseBaseArray = LaunchPhaseBase[];
|
|
|
570
570
|
*/
|
|
571
571
|
export type LocalPresenceRequirementTypeArray = LocalPresenceRequirementType[];
|
|
572
572
|
/**
|
|
573
|
-
*
|
|
573
|
+
* DomainContactType
|
|
574
574
|
*
|
|
575
575
|
* @remarks
|
|
576
|
-
* Array type for
|
|
576
|
+
* Array type for DomainContactType objects. Used when the API returns a collection of DomainContactType instances.
|
|
577
577
|
*
|
|
578
578
|
* @example
|
|
579
579
|
* ```typescript
|
|
580
|
-
* const items:
|
|
580
|
+
* const items: DomainContactTypeArray = await api.getDomainContactTypes();
|
|
581
581
|
* ```
|
|
582
582
|
*
|
|
583
|
-
* @see {@link
|
|
583
|
+
* @see {@link DomainContactType} - The individual DomainContactType type definition
|
|
584
584
|
*/
|
|
585
|
-
export type
|
|
585
|
+
export type DomainContactTypeArray = DomainContactType[];
|
|
586
586
|
/**
|
|
587
587
|
* OrganizationAttribute
|
|
588
588
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -298,22 +298,6 @@ export type Contact = components['schemas']['ContactResponse'];
|
|
|
298
298
|
* @see {@link components} - The OpenAPI components schema definition
|
|
299
299
|
*/
|
|
300
300
|
export type ContactRoleAttributeRequirement = components['schemas']['ContactRoleAttributeRequirement'];
|
|
301
|
-
/**
|
|
302
|
-
* ContactRoleType
|
|
303
|
-
*
|
|
304
|
-
* @remarks
|
|
305
|
-
* Type alias for the `ContactRoleType` OpenAPI schema.
|
|
306
|
-
* This type represents contactroletype data structures used in API requests and responses.
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
* ```typescript
|
|
310
|
-
* const response = await api.getContactRoleType();
|
|
311
|
-
* const item: ContactRoleType = response.results;
|
|
312
|
-
* ```
|
|
313
|
-
*
|
|
314
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
315
|
-
*/
|
|
316
|
-
export type ContactRoleType = components['schemas']['ContactRoleType'];
|
|
317
301
|
/**
|
|
318
302
|
* ContactSchema
|
|
319
303
|
*
|
|
@@ -1466,6 +1450,22 @@ export type DomainSortField = components['schemas']['DomainSortField'];
|
|
|
1466
1450
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1467
1451
|
*/
|
|
1468
1452
|
export type DomainStatus = components['schemas']['DomainStatus'];
|
|
1453
|
+
/**
|
|
1454
|
+
* DomainStatusResponse
|
|
1455
|
+
*
|
|
1456
|
+
* @remarks
|
|
1457
|
+
* Type alias for the `DomainStatusResponse` OpenAPI schema.
|
|
1458
|
+
* This type represents domainstatusresponse data structures used in API requests and responses.
|
|
1459
|
+
*
|
|
1460
|
+
* @example
|
|
1461
|
+
* ```typescript
|
|
1462
|
+
* const response = await api.getDomainStatus2();
|
|
1463
|
+
* const item: DomainStatus2 = response.results;
|
|
1464
|
+
* ```
|
|
1465
|
+
*
|
|
1466
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1467
|
+
*/
|
|
1468
|
+
export type DomainStatus2 = components['schemas']['DomainStatusResponse'];
|
|
1469
1469
|
/**
|
|
1470
1470
|
* DomainStatusesBase
|
|
1471
1471
|
*
|
|
@@ -2847,6 +2847,22 @@ export type Pagination_User = components['schemas']['Pagination_User_'];
|
|
|
2847
2847
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2848
2848
|
*/
|
|
2849
2849
|
export type PasswordUpdate = components['schemas']['PasswordUpdate'];
|
|
2850
|
+
/**
|
|
2851
|
+
* PatchOp
|
|
2852
|
+
*
|
|
2853
|
+
* @remarks
|
|
2854
|
+
* Type alias for the `PatchOp` OpenAPI schema.
|
|
2855
|
+
* This type represents patchop data structures used in API requests and responses.
|
|
2856
|
+
*
|
|
2857
|
+
* @example
|
|
2858
|
+
* ```typescript
|
|
2859
|
+
* const response = await api.getPatchOp();
|
|
2860
|
+
* const item: PatchOp = response.results;
|
|
2861
|
+
* ```
|
|
2862
|
+
*
|
|
2863
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
2864
|
+
*/
|
|
2865
|
+
export type PatchOp = components['schemas']['PatchOp'];
|
|
2850
2866
|
/**
|
|
2851
2867
|
* Period
|
|
2852
2868
|
*
|
|
@@ -3790,20 +3806,4 @@ export type DomainAvailabilityList = components['schemas']['common__models__avai
|
|
|
3790
3806
|
*
|
|
3791
3807
|
* @see {@link components} - The OpenAPI components schema definition
|
|
3792
3808
|
*/
|
|
3793
|
-
export type DomainAvailabilityCheck = components['schemas']['common__models__domain__domain__DomainAvailabilityResponse'];
|
|
3794
|
-
/**
|
|
3795
|
-
* PatchOp
|
|
3796
|
-
*
|
|
3797
|
-
* @remarks
|
|
3798
|
-
* Type alias for the `common__schemas__domain_forward__PatchOp` OpenAPI schema.
|
|
3799
|
-
* This type represents patchop data structures used in API requests and responses.
|
|
3800
|
-
*
|
|
3801
|
-
* @example
|
|
3802
|
-
* ```typescript
|
|
3803
|
-
* const response = await api.getPatchOp();
|
|
3804
|
-
* const item: PatchOp = response.results;
|
|
3805
|
-
* ```
|
|
3806
|
-
*
|
|
3807
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
3808
|
-
*/
|
|
3809
|
-
export type PatchOp = components['schemas']['common__schemas__domain_forward__PatchOp'];
|
|
3809
|
+
export type DomainAvailabilityCheck = components['schemas']['common__models__domain__domain__DomainAvailabilityResponse'];
|
package/src/openapi.yaml
CHANGED
|
@@ -240,7 +240,7 @@ components:
|
|
|
240
240
|
title: Min
|
|
241
241
|
type: integer
|
|
242
242
|
type:
|
|
243
|
-
$ref: '#/components/schemas/
|
|
243
|
+
$ref: '#/components/schemas/DomainContactType'
|
|
244
244
|
description: The type of contact
|
|
245
245
|
required:
|
|
246
246
|
- type
|
|
@@ -471,21 +471,13 @@ components:
|
|
|
471
471
|
title: Attributes
|
|
472
472
|
type: array
|
|
473
473
|
role:
|
|
474
|
-
$ref: '#/components/schemas/
|
|
474
|
+
$ref: '#/components/schemas/DomainContactType'
|
|
475
475
|
description: The role this requirement applies to
|
|
476
476
|
required:
|
|
477
477
|
- role
|
|
478
478
|
- attributes
|
|
479
479
|
title: ContactRoleAttributeRequirement
|
|
480
480
|
type: object
|
|
481
|
-
ContactRoleType:
|
|
482
|
-
enum:
|
|
483
|
-
- registrant
|
|
484
|
-
- admin
|
|
485
|
-
- tech
|
|
486
|
-
- billing
|
|
487
|
-
title: ContactRoleType
|
|
488
|
-
type: string
|
|
489
481
|
ContactSchema:
|
|
490
482
|
properties:
|
|
491
483
|
city:
|
|
@@ -1013,7 +1005,7 @@ components:
|
|
|
1013
1005
|
DnsRecordPatchOp:
|
|
1014
1006
|
properties:
|
|
1015
1007
|
op:
|
|
1016
|
-
$ref: '#/components/schemas/
|
|
1008
|
+
$ref: '#/components/schemas/PatchOp'
|
|
1017
1009
|
record:
|
|
1018
1010
|
$ref: '#/components/schemas/DnsRrsetWithOneRecordPatch'
|
|
1019
1011
|
required:
|
|
@@ -1077,7 +1069,7 @@ components:
|
|
|
1077
1069
|
DnsRrsetPatchOp:
|
|
1078
1070
|
properties:
|
|
1079
1071
|
op:
|
|
1080
|
-
$ref: '#/components/schemas/
|
|
1072
|
+
$ref: '#/components/schemas/PatchOp'
|
|
1081
1073
|
rrset:
|
|
1082
1074
|
$ref: '#/components/schemas/DnsRrsetPatch'
|
|
1083
1075
|
required:
|
|
@@ -1613,7 +1605,7 @@ components:
|
|
|
1613
1605
|
DomainForwardPatchOp:
|
|
1614
1606
|
properties:
|
|
1615
1607
|
op:
|
|
1616
|
-
$ref: '#/components/schemas/
|
|
1608
|
+
$ref: '#/components/schemas/PatchOp'
|
|
1617
1609
|
redirect:
|
|
1618
1610
|
anyOf:
|
|
1619
1611
|
- $ref: '#/components/schemas/HttpRedirectUpsert'
|
|
@@ -2294,6 +2286,16 @@ components:
|
|
|
2294
2286
|
- invalid
|
|
2295
2287
|
title: DomainStatus
|
|
2296
2288
|
type: string
|
|
2289
|
+
DomainStatusResponse:
|
|
2290
|
+
properties:
|
|
2291
|
+
status:
|
|
2292
|
+
description: The status of the domain
|
|
2293
|
+
title: Status
|
|
2294
|
+
type: string
|
|
2295
|
+
required:
|
|
2296
|
+
- status
|
|
2297
|
+
title: DomainStatusResponse
|
|
2298
|
+
type: object
|
|
2297
2299
|
DomainStatusesBase:
|
|
2298
2300
|
properties:
|
|
2299
2301
|
default:
|
|
@@ -3544,7 +3546,7 @@ components:
|
|
|
3544
3546
|
type:
|
|
3545
3547
|
anyOf:
|
|
3546
3548
|
- items:
|
|
3547
|
-
$ref: '#/components/schemas/
|
|
3549
|
+
$ref: '#/components/schemas/DomainContactType'
|
|
3548
3550
|
type: array
|
|
3549
3551
|
- type: 'null'
|
|
3550
3552
|
description: Who must meet the requirement
|
|
@@ -4591,6 +4593,12 @@ components:
|
|
|
4591
4593
|
- new_password
|
|
4592
4594
|
title: PasswordUpdate
|
|
4593
4595
|
type: object
|
|
4596
|
+
PatchOp:
|
|
4597
|
+
enum:
|
|
4598
|
+
- upsert
|
|
4599
|
+
- remove
|
|
4600
|
+
title: PatchOp
|
|
4601
|
+
type: string
|
|
4594
4602
|
Period:
|
|
4595
4603
|
properties:
|
|
4596
4604
|
unit:
|
|
@@ -6062,12 +6070,6 @@ components:
|
|
|
6062
6070
|
- reason
|
|
6063
6071
|
title: DomainAvailabilityResponse
|
|
6064
6072
|
type: object
|
|
6065
|
-
common__schemas__domain_forward__PatchOp:
|
|
6066
|
-
enum:
|
|
6067
|
-
- upsert
|
|
6068
|
-
- remove
|
|
6069
|
-
title: PatchOp
|
|
6070
|
-
type: string
|
|
6071
6073
|
securitySchemes:
|
|
6072
6074
|
APIKeyHeader:
|
|
6073
6075
|
description: API key for the organization.
|
|
@@ -6143,7 +6145,7 @@ info:
|
|
|
6143
6145
|
'
|
|
6144
6146
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
6145
6147
|
title: OpusDNS API
|
|
6146
|
-
version: 2025-12-
|
|
6148
|
+
version: 2025-12-22-091011
|
|
6147
6149
|
x-logo:
|
|
6148
6150
|
altText: OpusDNS API Reference
|
|
6149
6151
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -1749,7 +1749,7 @@ export interface components {
|
|
|
1749
1749
|
*/
|
|
1750
1750
|
min: number;
|
|
1751
1751
|
/** @description The type of contact */
|
|
1752
|
-
type: components["schemas"]["
|
|
1752
|
+
type: components["schemas"]["DomainContactType"];
|
|
1753
1753
|
};
|
|
1754
1754
|
/** ContactCreate */
|
|
1755
1755
|
ContactCreate: {
|
|
@@ -1925,13 +1925,8 @@ export interface components {
|
|
|
1925
1925
|
*/
|
|
1926
1926
|
attributes: components["schemas"]["RegistryHandleAttributeType"][];
|
|
1927
1927
|
/** @description The role this requirement applies to */
|
|
1928
|
-
role: components["schemas"]["
|
|
1928
|
+
role: components["schemas"]["DomainContactType"];
|
|
1929
1929
|
};
|
|
1930
|
-
/**
|
|
1931
|
-
* ContactRoleType
|
|
1932
|
-
* @enum {string}
|
|
1933
|
-
*/
|
|
1934
|
-
ContactRoleType: "registrant" | "admin" | "tech" | "billing";
|
|
1935
1930
|
/** ContactSchema */
|
|
1936
1931
|
ContactSchema: {
|
|
1937
1932
|
/**
|
|
@@ -2320,7 +2315,7 @@ export interface components {
|
|
|
2320
2315
|
};
|
|
2321
2316
|
/** DnsRecordPatchOp */
|
|
2322
2317
|
DnsRecordPatchOp: {
|
|
2323
|
-
op: components["schemas"]["
|
|
2318
|
+
op: components["schemas"]["PatchOp"];
|
|
2324
2319
|
record: components["schemas"]["DnsRrsetWithOneRecordPatch"];
|
|
2325
2320
|
};
|
|
2326
2321
|
/** DnsRecordResponse */
|
|
@@ -2350,7 +2345,7 @@ export interface components {
|
|
|
2350
2345
|
};
|
|
2351
2346
|
/** DnsRrsetPatchOp */
|
|
2352
2347
|
DnsRrsetPatchOp: {
|
|
2353
|
-
op: components["schemas"]["
|
|
2348
|
+
op: components["schemas"]["PatchOp"];
|
|
2354
2349
|
rrset: components["schemas"]["DnsRrsetPatch"];
|
|
2355
2350
|
};
|
|
2356
2351
|
/** DnsRrsetResponse */
|
|
@@ -2680,7 +2675,7 @@ export interface components {
|
|
|
2680
2675
|
};
|
|
2681
2676
|
/** DomainForwardPatchOp */
|
|
2682
2677
|
DomainForwardPatchOp: {
|
|
2683
|
-
op: components["schemas"]["
|
|
2678
|
+
op: components["schemas"]["PatchOp"];
|
|
2684
2679
|
/** Redirect */
|
|
2685
2680
|
redirect: components["schemas"]["HttpRedirectUpsert"] | components["schemas"]["HttpRedirectRemove"];
|
|
2686
2681
|
};
|
|
@@ -3104,6 +3099,14 @@ export interface components {
|
|
|
3104
3099
|
* @enum {string}
|
|
3105
3100
|
*/
|
|
3106
3101
|
DomainStatus: "ok" | "serverTransferProhibited" | "serverUpdateProhibited" | "serverDeleteProhibited" | "serverRenewProhibited" | "serverRestoreProhibited" | "serverHold" | "transferPeriod" | "renewPeriod" | "redemptionPeriod" | "pendingUpdate" | "pendingTransfer" | "pendingRestore" | "pendingRenew" | "pendingDelete" | "pendingCreate" | "inactive" | "autoRenewPeriod" | "addPeriod" | "deleted" | "clientTransferProhibited" | "clientUpdateProhibited" | "clientDeleteProhibited" | "clientRenewProhibited" | "clientHold" | "free" | "connect" | "failed" | "invalid";
|
|
3102
|
+
/** DomainStatusResponse */
|
|
3103
|
+
DomainStatusResponse: {
|
|
3104
|
+
/**
|
|
3105
|
+
* Status
|
|
3106
|
+
* @description The status of the domain
|
|
3107
|
+
*/
|
|
3108
|
+
status: string;
|
|
3109
|
+
};
|
|
3107
3110
|
/** DomainStatusesBase */
|
|
3108
3111
|
DomainStatusesBase: {
|
|
3109
3112
|
/**
|
|
@@ -3990,7 +3993,7 @@ export interface components {
|
|
|
3990
3993
|
* Type
|
|
3991
3994
|
* @description Who must meet the requirement
|
|
3992
3995
|
*/
|
|
3993
|
-
type?: components["schemas"]["
|
|
3996
|
+
type?: components["schemas"]["DomainContactType"][] | null;
|
|
3994
3997
|
};
|
|
3995
3998
|
/**
|
|
3996
3999
|
* LocalPresenceRequirementType
|
|
@@ -4655,6 +4658,11 @@ export interface components {
|
|
|
4655
4658
|
*/
|
|
4656
4659
|
new_password: string;
|
|
4657
4660
|
};
|
|
4661
|
+
/**
|
|
4662
|
+
* PatchOp
|
|
4663
|
+
* @enum {string}
|
|
4664
|
+
*/
|
|
4665
|
+
PatchOp: "upsert" | "remove";
|
|
4658
4666
|
/** Period */
|
|
4659
4667
|
Period: {
|
|
4660
4668
|
/** @description The unit of the period */
|
|
@@ -5644,11 +5652,6 @@ export interface components {
|
|
|
5644
5652
|
/** Reason */
|
|
5645
5653
|
reason: string | null;
|
|
5646
5654
|
};
|
|
5647
|
-
/**
|
|
5648
|
-
* PatchOp
|
|
5649
|
-
* @enum {string}
|
|
5650
|
-
*/
|
|
5651
|
-
common__schemas__domain_forward__PatchOp: "upsert" | "remove";
|
|
5652
5655
|
};
|
|
5653
5656
|
responses: never;
|
|
5654
5657
|
parameters: never;
|