@opusdns/api 0.139.0 → 0.141.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 +159 -1
- package/src/helpers/keys.ts +1398 -268
- package/src/helpers/requests.d.ts +388 -8
- package/src/helpers/responses.d.ts +559 -7
- package/src/helpers/schemas-arrays.d.ts +113 -1
- package/src/helpers/schemas.d.ts +326 -6
- package/src/openapi.yaml +764 -198
- package/src/schema.d.ts +629 -39
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, 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';
|
|
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, MetricsGrouping, ObjectEventType, ObjectLogSortField, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, Protocol, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, RequestHistorySortField, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TimeRange, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -2201,6 +2201,60 @@ export const LOCAL_PRESENCE_REQUIREMENT_TYPE_VALUES = [
|
|
|
2201
2201
|
'business_entity'
|
|
2202
2202
|
] as const satisfies [string, ...string[]] | LocalPresenceRequirementType[];
|
|
2203
2203
|
|
|
2204
|
+
/**
|
|
2205
|
+
* MetricsGrouping. Auto-generated enum for MetricsGrouping
|
|
2206
|
+
*
|
|
2207
|
+
* @remarks
|
|
2208
|
+
* This constant provides both object and array forms for the MetricsGrouping enum.
|
|
2209
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
2210
|
+
*
|
|
2211
|
+
* @example
|
|
2212
|
+
* ```typescript
|
|
2213
|
+
* // Using the object form for key-value access
|
|
2214
|
+
* const status = METRICS_GROUPING.SUCCESS;
|
|
2215
|
+
*
|
|
2216
|
+
* // Using the array form for iteration
|
|
2217
|
+
* const allStatuses = METRICS_GROUPING_VALUES;
|
|
2218
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
2219
|
+
* ```
|
|
2220
|
+
*
|
|
2221
|
+
* @see {@link MetricsGrouping} - The TypeScript type definition
|
|
2222
|
+
*/
|
|
2223
|
+
export const METRICS_GROUPING = {
|
|
2224
|
+
URL: "url",
|
|
2225
|
+
FQDN: "fqdn",
|
|
2226
|
+
DOMAIN: "domain",
|
|
2227
|
+
FORWARD: "forward",
|
|
2228
|
+
} as const satisfies Record<string, MetricsGrouping>;
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* Array of all MetricsGrouping enum values
|
|
2232
|
+
*
|
|
2233
|
+
* @remarks
|
|
2234
|
+
* This constant provides a array containing all valid MetricsGrouping enum values.
|
|
2235
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
2236
|
+
*
|
|
2237
|
+
* @example
|
|
2238
|
+
* ```typescript
|
|
2239
|
+
* // Iterating through all values
|
|
2240
|
+
* for (const value of METRICS_GROUPING_VALUES) {
|
|
2241
|
+
* console.log(`Processing: ${value}`);
|
|
2242
|
+
* }
|
|
2243
|
+
*
|
|
2244
|
+
* // Validation
|
|
2245
|
+
* const isValid = METRICS_GROUPING_VALUES.includes(someValue);
|
|
2246
|
+
* ```
|
|
2247
|
+
*
|
|
2248
|
+
* @see {@link MetricsGrouping} - The TypeScript type definition
|
|
2249
|
+
* @see {@link METRICS_GROUPING} - The object form of this enum
|
|
2250
|
+
*/
|
|
2251
|
+
export const METRICS_GROUPING_VALUES = [
|
|
2252
|
+
'url',
|
|
2253
|
+
'fqdn',
|
|
2254
|
+
'domain',
|
|
2255
|
+
'forward'
|
|
2256
|
+
] as const satisfies [string, ...string[]] | MetricsGrouping[];
|
|
2257
|
+
|
|
2204
2258
|
/**
|
|
2205
2259
|
* ObjectEventType. Auto-generated enum for ObjectEventType
|
|
2206
2260
|
*
|
|
@@ -2817,6 +2871,56 @@ export const PREMIUM_SOURCE_TYPE_VALUES = [
|
|
|
2817
2871
|
'manual'
|
|
2818
2872
|
] as const satisfies [string, ...string[]] | PremiumSourceType[];
|
|
2819
2873
|
|
|
2874
|
+
/**
|
|
2875
|
+
* Protocol. Auto-generated enum for Protocol
|
|
2876
|
+
*
|
|
2877
|
+
* @remarks
|
|
2878
|
+
* This constant provides both object and array forms for the Protocol enum.
|
|
2879
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
2880
|
+
*
|
|
2881
|
+
* @example
|
|
2882
|
+
* ```typescript
|
|
2883
|
+
* // Using the object form for key-value access
|
|
2884
|
+
* const status = PROTOCOL.SUCCESS;
|
|
2885
|
+
*
|
|
2886
|
+
* // Using the array form for iteration
|
|
2887
|
+
* const allStatuses = PROTOCOL_VALUES;
|
|
2888
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
2889
|
+
* ```
|
|
2890
|
+
*
|
|
2891
|
+
* @see {@link Protocol} - The TypeScript type definition
|
|
2892
|
+
*/
|
|
2893
|
+
export const PROTOCOL = {
|
|
2894
|
+
HTTP: "http",
|
|
2895
|
+
HTTPS: "https",
|
|
2896
|
+
} as const satisfies Record<string, Protocol>;
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* Array of all Protocol enum values
|
|
2900
|
+
*
|
|
2901
|
+
* @remarks
|
|
2902
|
+
* This constant provides a array containing all valid Protocol enum values.
|
|
2903
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
2904
|
+
*
|
|
2905
|
+
* @example
|
|
2906
|
+
* ```typescript
|
|
2907
|
+
* // Iterating through all values
|
|
2908
|
+
* for (const value of PROTOCOL_VALUES) {
|
|
2909
|
+
* console.log(`Processing: ${value}`);
|
|
2910
|
+
* }
|
|
2911
|
+
*
|
|
2912
|
+
* // Validation
|
|
2913
|
+
* const isValid = PROTOCOL_VALUES.includes(someValue);
|
|
2914
|
+
* ```
|
|
2915
|
+
*
|
|
2916
|
+
* @see {@link Protocol} - The TypeScript type definition
|
|
2917
|
+
* @see {@link PROTOCOL} - The object form of this enum
|
|
2918
|
+
*/
|
|
2919
|
+
export const PROTOCOL_VALUES = [
|
|
2920
|
+
'http',
|
|
2921
|
+
'https'
|
|
2922
|
+
] as const satisfies [string, ...string[]] | Protocol[];
|
|
2923
|
+
|
|
2820
2924
|
/**
|
|
2821
2925
|
* RedirectCode. Auto-generated enum for RedirectCode
|
|
2822
2926
|
*
|
|
@@ -3386,6 +3490,60 @@ export const TLD_TYPE_VALUES = [
|
|
|
3386
3490
|
'ccTLD'
|
|
3387
3491
|
] as const satisfies [string, ...string[]] | TLDType[];
|
|
3388
3492
|
|
|
3493
|
+
/**
|
|
3494
|
+
* TimeRange. Auto-generated enum for TimeRange
|
|
3495
|
+
*
|
|
3496
|
+
* @remarks
|
|
3497
|
+
* This constant provides both object and array forms for the TimeRange enum.
|
|
3498
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
3499
|
+
*
|
|
3500
|
+
* @example
|
|
3501
|
+
* ```typescript
|
|
3502
|
+
* // Using the object form for key-value access
|
|
3503
|
+
* const status = TIME_RANGE.SUCCESS;
|
|
3504
|
+
*
|
|
3505
|
+
* // Using the array form for iteration
|
|
3506
|
+
* const allStatuses = TIME_RANGE_VALUES;
|
|
3507
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
3508
|
+
* ```
|
|
3509
|
+
*
|
|
3510
|
+
* @see {@link TimeRange} - The TypeScript type definition
|
|
3511
|
+
*/
|
|
3512
|
+
export const TIME_RANGE = {
|
|
3513
|
+
"1H": "1h",
|
|
3514
|
+
"1D": "1d",
|
|
3515
|
+
"7D": "7d",
|
|
3516
|
+
"30D": "30d",
|
|
3517
|
+
} as const satisfies Record<string, TimeRange>;
|
|
3518
|
+
|
|
3519
|
+
/**
|
|
3520
|
+
* Array of all TimeRange enum values
|
|
3521
|
+
*
|
|
3522
|
+
* @remarks
|
|
3523
|
+
* This constant provides a array containing all valid TimeRange enum values.
|
|
3524
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
3525
|
+
*
|
|
3526
|
+
* @example
|
|
3527
|
+
* ```typescript
|
|
3528
|
+
* // Iterating through all values
|
|
3529
|
+
* for (const value of TIME_RANGE_VALUES) {
|
|
3530
|
+
* console.log(`Processing: ${value}`);
|
|
3531
|
+
* }
|
|
3532
|
+
*
|
|
3533
|
+
* // Validation
|
|
3534
|
+
* const isValid = TIME_RANGE_VALUES.includes(someValue);
|
|
3535
|
+
* ```
|
|
3536
|
+
*
|
|
3537
|
+
* @see {@link TimeRange} - The TypeScript type definition
|
|
3538
|
+
* @see {@link TIME_RANGE} - The object form of this enum
|
|
3539
|
+
*/
|
|
3540
|
+
export const TIME_RANGE_VALUES = [
|
|
3541
|
+
'1h',
|
|
3542
|
+
'1d',
|
|
3543
|
+
'7d',
|
|
3544
|
+
'30d'
|
|
3545
|
+
] as const satisfies [string, ...string[]] | TimeRange[];
|
|
3546
|
+
|
|
3389
3547
|
/**
|
|
3390
3548
|
* TransferAckType. Auto-generated enum for TransferAckType
|
|
3391
3549
|
*
|