@opusdns/api 0.87.0 → 0.88.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 +74 -1
- package/src/helpers/keys.ts +527 -865
- package/src/helpers/requests.d.ts +108 -158
- package/src/helpers/responses.d.ts +101 -100
- package/src/helpers/schemas-arrays.d.ts +15 -43
- package/src/helpers/schemas.d.ts +70 -102
- package/src/openapi.yaml +180 -247
- package/src/schema.d.ts +117 -181
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, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
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, EventSortField, EventSubtype, EventType, GrantType, HttpProtocol, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -1601,6 +1601,56 @@ export const GRANT_TYPE_VALUES = [
|
|
|
1601
1601
|
'refresh_token'
|
|
1602
1602
|
] as const satisfies [string, ...string[]] | GrantType[];
|
|
1603
1603
|
|
|
1604
|
+
/**
|
|
1605
|
+
* HttpProtocol. Auto-generated enum for HttpProtocol
|
|
1606
|
+
*
|
|
1607
|
+
* @remarks
|
|
1608
|
+
* This constant provides both object and array forms for the HttpProtocol enum.
|
|
1609
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
1610
|
+
*
|
|
1611
|
+
* @example
|
|
1612
|
+
* ```typescript
|
|
1613
|
+
* // Using the object form for key-value access
|
|
1614
|
+
* const status = HTTP_PROTOCOL.SUCCESS;
|
|
1615
|
+
*
|
|
1616
|
+
* // Using the array form for iteration
|
|
1617
|
+
* const allStatuses = HTTP_PROTOCOL_VALUES;
|
|
1618
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
1619
|
+
* ```
|
|
1620
|
+
*
|
|
1621
|
+
* @see {@link HttpProtocol} - The TypeScript type definition
|
|
1622
|
+
*/
|
|
1623
|
+
export const HTTP_PROTOCOL = {
|
|
1624
|
+
HTTP: "http",
|
|
1625
|
+
HTTPS: "https",
|
|
1626
|
+
} as const satisfies Record<string, HttpProtocol>;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Array of all HttpProtocol enum values
|
|
1630
|
+
*
|
|
1631
|
+
* @remarks
|
|
1632
|
+
* This constant provides a array containing all valid HttpProtocol enum values.
|
|
1633
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
1634
|
+
*
|
|
1635
|
+
* @example
|
|
1636
|
+
* ```typescript
|
|
1637
|
+
* // Iterating through all values
|
|
1638
|
+
* for (const value of HTTP_PROTOCOL_VALUES) {
|
|
1639
|
+
* console.log(`Processing: ${value}`);
|
|
1640
|
+
* }
|
|
1641
|
+
*
|
|
1642
|
+
* // Validation
|
|
1643
|
+
* const isValid = HTTP_PROTOCOL_VALUES.includes(someValue);
|
|
1644
|
+
* ```
|
|
1645
|
+
*
|
|
1646
|
+
* @see {@link HttpProtocol} - The TypeScript type definition
|
|
1647
|
+
* @see {@link HTTP_PROTOCOL} - The object form of this enum
|
|
1648
|
+
*/
|
|
1649
|
+
export const HTTP_PROTOCOL_VALUES = [
|
|
1650
|
+
'http',
|
|
1651
|
+
'https'
|
|
1652
|
+
] as const satisfies [string, ...string[]] | HttpProtocol[];
|
|
1653
|
+
|
|
1604
1654
|
/**
|
|
1605
1655
|
* LaunchPhaseType. Auto-generated enum for LaunchPhaseType
|
|
1606
1656
|
*
|
|
@@ -2171,6 +2221,29 @@ export const PREMIUM_SOURCE_TYPE_VALUES = [
|
|
|
2171
2221
|
'manual'
|
|
2172
2222
|
] as const satisfies [string, ...string[]] | PremiumSourceType[];
|
|
2173
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* RedirectCode. Auto-generated enum for RedirectCode
|
|
2226
|
+
*
|
|
2227
|
+
* @remarks
|
|
2228
|
+
* This constant provides an array of integer values for the RedirectCode enum.
|
|
2229
|
+
* Integer enums are represented as typed arrays for efficient iteration and validation.
|
|
2230
|
+
*
|
|
2231
|
+
* @example
|
|
2232
|
+
* ```typescript
|
|
2233
|
+
* // Using the array for iteration
|
|
2234
|
+
* const algorithms = DNSSEC_ALGORITHM;
|
|
2235
|
+
* console.log(`Available algorithms: ${algorithms.join(', ')}`);
|
|
2236
|
+
* ```
|
|
2237
|
+
*
|
|
2238
|
+
* @see {@link RedirectCode} - The TypeScript type definition
|
|
2239
|
+
*/
|
|
2240
|
+
export const REDIRECT_CODE = [
|
|
2241
|
+
301,
|
|
2242
|
+
302,
|
|
2243
|
+
307,
|
|
2244
|
+
308
|
|
2245
|
+
] as const satisfies RedirectCode[];
|
|
2246
|
+
|
|
2174
2247
|
/**
|
|
2175
2248
|
* RegistrantChangeType. Auto-generated enum for RegistrantChangeType
|
|
2176
2249
|
*
|