@opusdns/api 0.78.0 → 0.79.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 +1 -103
- package/src/helpers/keys.ts +245 -1279
- package/src/helpers/requests.d.ts +1 -173
- package/src/helpers/responses.d.ts +1 -352
- package/src/helpers/schemas-arrays.d.ts +1 -29
- package/src/helpers/schemas.d.ts +16 -176
- package/src/openapi.yaml +28 -520
- package/src/schema.d.ts +20 -528
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -21,59 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* AgreementType. Auto-generated enum for AgreementType
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* This constant provides both object and array forms for the AgreementType enum.
|
|
31
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* // Using the object form for key-value access
|
|
36
|
-
* const status = AGREEMENT_TYPE.SUCCESS;
|
|
37
|
-
*
|
|
38
|
-
* // Using the array form for iteration
|
|
39
|
-
* const allStatuses = AGREEMENT_TYPE_VALUES;
|
|
40
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link AgreementType} - The TypeScript type definition
|
|
44
|
-
*/
|
|
45
|
-
export const AGREEMENT_TYPE = {
|
|
46
|
-
TERMS_AND_CONDITIONS: "terms_and_conditions",
|
|
47
|
-
MASTER_SERVICE_AGREEMENT: "master_service_agreement",
|
|
48
|
-
ACTING_AS_TRADER: "acting_as_trader",
|
|
49
|
-
} as const satisfies Record<string, AgreementType>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Array of all AgreementType enum values
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* This constant provides a array containing all valid AgreementType enum values.
|
|
56
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```typescript
|
|
60
|
-
* // Iterating through all values
|
|
61
|
-
* for (const value of AGREEMENT_TYPE_VALUES) {
|
|
62
|
-
* console.log(`Processing: ${value}`);
|
|
63
|
-
* }
|
|
64
|
-
*
|
|
65
|
-
* // Validation
|
|
66
|
-
* const isValid = AGREEMENT_TYPE_VALUES.includes(someValue);
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @see {@link AgreementType} - The TypeScript type definition
|
|
70
|
-
* @see {@link AGREEMENT_TYPE} - The object form of this enum
|
|
71
|
-
*/
|
|
72
|
-
export const AGREEMENT_TYPE_VALUES = [
|
|
73
|
-
'terms_and_conditions',
|
|
74
|
-
'master_service_agreement',
|
|
75
|
-
'acting_as_trader'
|
|
76
|
-
] as const satisfies [string, ...string[]] | AgreementType[];
|
|
24
|
+
import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, WalletCreditResponseStatus, ZoneSortField } from './schemas';
|
|
77
25
|
|
|
78
26
|
/**
|
|
79
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -1705,56 +1653,6 @@ export const LOCAL_PRESENCE_REQUIREMENT_TYPE_VALUES = [
|
|
|
1705
1653
|
'business_entity'
|
|
1706
1654
|
] as const satisfies [string, ...string[]] | LocalPresenceRequirementType[];
|
|
1707
1655
|
|
|
1708
|
-
/**
|
|
1709
|
-
* OrganizationCredentialStatus. Auto-generated enum for OrganizationCredentialStatus
|
|
1710
|
-
*
|
|
1711
|
-
* @remarks
|
|
1712
|
-
* This constant provides both object and array forms for the OrganizationCredentialStatus enum.
|
|
1713
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
1714
|
-
*
|
|
1715
|
-
* @example
|
|
1716
|
-
* ```typescript
|
|
1717
|
-
* // Using the object form for key-value access
|
|
1718
|
-
* const status = ORGANIZATION_CREDENTIAL_STATUS.SUCCESS;
|
|
1719
|
-
*
|
|
1720
|
-
* // Using the array form for iteration
|
|
1721
|
-
* const allStatuses = ORGANIZATION_CREDENTIAL_STATUS_VALUES;
|
|
1722
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
1723
|
-
* ```
|
|
1724
|
-
*
|
|
1725
|
-
* @see {@link OrganizationCredentialStatus} - The TypeScript type definition
|
|
1726
|
-
*/
|
|
1727
|
-
export const ORGANIZATION_CREDENTIAL_STATUS = {
|
|
1728
|
-
ACTIVE: "active",
|
|
1729
|
-
REVOKED: "revoked",
|
|
1730
|
-
} as const satisfies Record<string, OrganizationCredentialStatus>;
|
|
1731
|
-
|
|
1732
|
-
/**
|
|
1733
|
-
* Array of all OrganizationCredentialStatus enum values
|
|
1734
|
-
*
|
|
1735
|
-
* @remarks
|
|
1736
|
-
* This constant provides a array containing all valid OrganizationCredentialStatus enum values.
|
|
1737
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
1738
|
-
*
|
|
1739
|
-
* @example
|
|
1740
|
-
* ```typescript
|
|
1741
|
-
* // Iterating through all values
|
|
1742
|
-
* for (const value of ORGANIZATION_CREDENTIAL_STATUS_VALUES) {
|
|
1743
|
-
* console.log(`Processing: ${value}`);
|
|
1744
|
-
* }
|
|
1745
|
-
*
|
|
1746
|
-
* // Validation
|
|
1747
|
-
* const isValid = ORGANIZATION_CREDENTIAL_STATUS_VALUES.includes(someValue);
|
|
1748
|
-
* ```
|
|
1749
|
-
*
|
|
1750
|
-
* @see {@link OrganizationCredentialStatus} - The TypeScript type definition
|
|
1751
|
-
* @see {@link ORGANIZATION_CREDENTIAL_STATUS} - The object form of this enum
|
|
1752
|
-
*/
|
|
1753
|
-
export const ORGANIZATION_CREDENTIAL_STATUS_VALUES = [
|
|
1754
|
-
'active',
|
|
1755
|
-
'revoked'
|
|
1756
|
-
] as const satisfies [string, ...string[]] | OrganizationCredentialStatus[];
|
|
1757
|
-
|
|
1758
1656
|
/**
|
|
1759
1657
|
* OrganizationStatus. Auto-generated enum for OrganizationStatus
|
|
1760
1658
|
*
|