@opusdns/api 0.238.0 → 0.240.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/keys.ts +238 -0
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +32 -0
- package/src/openapi.yaml +50 -1
- package/src/schema.d.ts +40 -0
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -253,6 +253,8 @@ import { Period } from './schemas';
|
|
|
253
253
|
import { PermissionSet } from './schemas';
|
|
254
254
|
import { PlatformStatsBucket } from './schemas';
|
|
255
255
|
import { PremiumDomainsBase } from './schemas';
|
|
256
|
+
import { PremiumPricingAction } from './schemas';
|
|
257
|
+
import { PremiumPricing } from './schemas';
|
|
256
258
|
import { PriceInfo } from './schemas';
|
|
257
259
|
import { PricingPeriod } from './schemas';
|
|
258
260
|
import { Problem } from './schemas';
|
|
@@ -15021,6 +15023,32 @@ export const KEY_DOMAIN_EXPIRES_ON: keyof Domain = 'expires_on';
|
|
|
15021
15023
|
* @see {@link KEYS_DOMAIN} - Array of all keys for this type
|
|
15022
15024
|
*/
|
|
15023
15025
|
export const KEY_DOMAIN_HOSTS: keyof Domain = 'hosts';
|
|
15026
|
+
/**
|
|
15027
|
+
* Is Premium
|
|
15028
|
+
*
|
|
15029
|
+
* Whether this is a premium domain
|
|
15030
|
+
*
|
|
15031
|
+
* @type {boolean}
|
|
15032
|
+
*
|
|
15033
|
+
*
|
|
15034
|
+
* @remarks
|
|
15035
|
+
* This key constant provides type-safe access to the `is_premium` property of Domain objects.
|
|
15036
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15037
|
+
*
|
|
15038
|
+
* @example
|
|
15039
|
+
* ```typescript
|
|
15040
|
+
* // Direct property access
|
|
15041
|
+
* const value = domain[KEY_DOMAIN_IS_PREMIUM];
|
|
15042
|
+
*
|
|
15043
|
+
* // Dynamic property access
|
|
15044
|
+
* const propertyName = KEY_DOMAIN_IS_PREMIUM;
|
|
15045
|
+
* const value = domain[propertyName];
|
|
15046
|
+
* ```
|
|
15047
|
+
*
|
|
15048
|
+
* @see {@link Domain} - The TypeScript type definition
|
|
15049
|
+
* @see {@link KEYS_DOMAIN} - Array of all keys for this type
|
|
15050
|
+
*/
|
|
15051
|
+
export const KEY_DOMAIN_IS_PREMIUM: keyof Domain = 'is_premium';
|
|
15024
15052
|
/**
|
|
15025
15053
|
* Name
|
|
15026
15054
|
*
|
|
@@ -15361,6 +15389,7 @@ export const KEYS_DOMAIN = [
|
|
|
15361
15389
|
KEY_DOMAIN_DOMAIN_ID,
|
|
15362
15390
|
KEY_DOMAIN_EXPIRES_ON,
|
|
15363
15391
|
KEY_DOMAIN_HOSTS,
|
|
15392
|
+
KEY_DOMAIN_IS_PREMIUM,
|
|
15364
15393
|
KEY_DOMAIN_NAME,
|
|
15365
15394
|
KEY_DOMAIN_NAMESERVERS,
|
|
15366
15395
|
KEY_DOMAIN_OWNER_ID,
|
|
@@ -31673,6 +31702,162 @@ export const KEYS_PREMIUM_DOMAINS_BASE = [
|
|
|
31673
31702
|
KEY_PREMIUM_DOMAINS_BASE_SUPPORTED,
|
|
31674
31703
|
] as const satisfies (keyof PremiumDomainsBase)[];
|
|
31675
31704
|
|
|
31705
|
+
/**
|
|
31706
|
+
* Action
|
|
31707
|
+
*
|
|
31708
|
+
* The action (e.g., create, renew, transfer)
|
|
31709
|
+
*
|
|
31710
|
+
* @type {string}
|
|
31711
|
+
*
|
|
31712
|
+
*
|
|
31713
|
+
* @remarks
|
|
31714
|
+
* This key constant provides type-safe access to the `action` property of PremiumPricingAction objects.
|
|
31715
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
31716
|
+
*
|
|
31717
|
+
* @example
|
|
31718
|
+
* ```typescript
|
|
31719
|
+
* // Direct property access
|
|
31720
|
+
* const value = premiumpricingaction[KEY_PREMIUM_PRICING_ACTION_ACTION];
|
|
31721
|
+
*
|
|
31722
|
+
* // Dynamic property access
|
|
31723
|
+
* const propertyName = KEY_PREMIUM_PRICING_ACTION_ACTION;
|
|
31724
|
+
* const value = premiumpricingaction[propertyName];
|
|
31725
|
+
* ```
|
|
31726
|
+
*
|
|
31727
|
+
* @see {@link PremiumPricingAction} - The TypeScript type definition
|
|
31728
|
+
* @see {@link KEYS_PREMIUM_PRICING_ACTION} - Array of all keys for this type
|
|
31729
|
+
*/
|
|
31730
|
+
export const KEY_PREMIUM_PRICING_ACTION_ACTION: keyof PremiumPricingAction = 'action';
|
|
31731
|
+
/**
|
|
31732
|
+
* Currency
|
|
31733
|
+
*
|
|
31734
|
+
* Currency of the price
|
|
31735
|
+
*
|
|
31736
|
+
* @type {string}
|
|
31737
|
+
*
|
|
31738
|
+
*
|
|
31739
|
+
* @remarks
|
|
31740
|
+
* This key constant provides type-safe access to the `currency` property of PremiumPricingAction objects.
|
|
31741
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
31742
|
+
*
|
|
31743
|
+
* @example
|
|
31744
|
+
* ```typescript
|
|
31745
|
+
* // Direct property access
|
|
31746
|
+
* const value = premiumpricingaction[KEY_PREMIUM_PRICING_ACTION_CURRENCY];
|
|
31747
|
+
*
|
|
31748
|
+
* // Dynamic property access
|
|
31749
|
+
* const propertyName = KEY_PREMIUM_PRICING_ACTION_CURRENCY;
|
|
31750
|
+
* const value = premiumpricingaction[propertyName];
|
|
31751
|
+
* ```
|
|
31752
|
+
*
|
|
31753
|
+
* @see {@link PremiumPricingAction} - The TypeScript type definition
|
|
31754
|
+
* @see {@link KEYS_PREMIUM_PRICING_ACTION} - Array of all keys for this type
|
|
31755
|
+
*/
|
|
31756
|
+
export const KEY_PREMIUM_PRICING_ACTION_CURRENCY: keyof PremiumPricingAction = 'currency';
|
|
31757
|
+
/**
|
|
31758
|
+
* Price
|
|
31759
|
+
*
|
|
31760
|
+
* Customer-facing price after markup
|
|
31761
|
+
*
|
|
31762
|
+
* @type {string}
|
|
31763
|
+
*
|
|
31764
|
+
*
|
|
31765
|
+
* @remarks
|
|
31766
|
+
* This key constant provides type-safe access to the `price` property of PremiumPricingAction objects.
|
|
31767
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
31768
|
+
*
|
|
31769
|
+
* @example
|
|
31770
|
+
* ```typescript
|
|
31771
|
+
* // Direct property access
|
|
31772
|
+
* const value = premiumpricingaction[KEY_PREMIUM_PRICING_ACTION_PRICE];
|
|
31773
|
+
*
|
|
31774
|
+
* // Dynamic property access
|
|
31775
|
+
* const propertyName = KEY_PREMIUM_PRICING_ACTION_PRICE;
|
|
31776
|
+
* const value = premiumpricingaction[propertyName];
|
|
31777
|
+
* ```
|
|
31778
|
+
*
|
|
31779
|
+
* @see {@link PremiumPricingAction} - The TypeScript type definition
|
|
31780
|
+
* @see {@link KEYS_PREMIUM_PRICING_ACTION} - Array of all keys for this type
|
|
31781
|
+
*/
|
|
31782
|
+
export const KEY_PREMIUM_PRICING_ACTION_PRICE: keyof PremiumPricingAction = 'price';
|
|
31783
|
+
|
|
31784
|
+
/**
|
|
31785
|
+
* Array of all PremiumPricingAction property keys
|
|
31786
|
+
*
|
|
31787
|
+
* @remarks
|
|
31788
|
+
* This constant provides a readonly array containing all valid property keys for PremiumPricingAction objects.
|
|
31789
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
31790
|
+
*
|
|
31791
|
+
* @example
|
|
31792
|
+
* ```typescript
|
|
31793
|
+
* // Iterating through all keys
|
|
31794
|
+
* for (const key of KEYS_PREMIUM_PRICING_ACTION) {
|
|
31795
|
+
* console.log(`Property: ${key}, Value: ${premiumpricingaction[key]}`);
|
|
31796
|
+
* }
|
|
31797
|
+
*
|
|
31798
|
+
* // Validation
|
|
31799
|
+
* const isValidKey = KEYS_PREMIUM_PRICING_ACTION.includes(someKey);
|
|
31800
|
+
* ```
|
|
31801
|
+
*
|
|
31802
|
+
* @see {@link PremiumPricingAction} - The TypeScript type definition
|
|
31803
|
+
*/
|
|
31804
|
+
export const KEYS_PREMIUM_PRICING_ACTION = [
|
|
31805
|
+
KEY_PREMIUM_PRICING_ACTION_ACTION,
|
|
31806
|
+
KEY_PREMIUM_PRICING_ACTION_CURRENCY,
|
|
31807
|
+
KEY_PREMIUM_PRICING_ACTION_PRICE,
|
|
31808
|
+
] as const satisfies (keyof PremiumPricingAction)[];
|
|
31809
|
+
|
|
31810
|
+
/**
|
|
31811
|
+
* Prices
|
|
31812
|
+
*
|
|
31813
|
+
* Premium prices per action
|
|
31814
|
+
*
|
|
31815
|
+
* @type {array}
|
|
31816
|
+
*
|
|
31817
|
+
*
|
|
31818
|
+
* @remarks
|
|
31819
|
+
* This key constant provides type-safe access to the `prices` property of PremiumPricing objects.
|
|
31820
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
31821
|
+
*
|
|
31822
|
+
* @example
|
|
31823
|
+
* ```typescript
|
|
31824
|
+
* // Direct property access
|
|
31825
|
+
* const value = premiumpricing[KEY_PREMIUM_PRICING_PRICES];
|
|
31826
|
+
*
|
|
31827
|
+
* // Dynamic property access
|
|
31828
|
+
* const propertyName = KEY_PREMIUM_PRICING_PRICES;
|
|
31829
|
+
* const value = premiumpricing[propertyName];
|
|
31830
|
+
* ```
|
|
31831
|
+
*
|
|
31832
|
+
* @see {@link PremiumPricing} - The TypeScript type definition
|
|
31833
|
+
* @see {@link KEYS_PREMIUM_PRICING} - Array of all keys for this type
|
|
31834
|
+
*/
|
|
31835
|
+
export const KEY_PREMIUM_PRICING_PRICES: keyof PremiumPricing = 'prices';
|
|
31836
|
+
|
|
31837
|
+
/**
|
|
31838
|
+
* Array of all PremiumPricing property keys
|
|
31839
|
+
*
|
|
31840
|
+
* @remarks
|
|
31841
|
+
* This constant provides a readonly array containing all valid property keys for PremiumPricing objects.
|
|
31842
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
31843
|
+
*
|
|
31844
|
+
* @example
|
|
31845
|
+
* ```typescript
|
|
31846
|
+
* // Iterating through all keys
|
|
31847
|
+
* for (const key of KEYS_PREMIUM_PRICING) {
|
|
31848
|
+
* console.log(`Property: ${key}, Value: ${premiumpricing[key]}`);
|
|
31849
|
+
* }
|
|
31850
|
+
*
|
|
31851
|
+
* // Validation
|
|
31852
|
+
* const isValidKey = KEYS_PREMIUM_PRICING.includes(someKey);
|
|
31853
|
+
* ```
|
|
31854
|
+
*
|
|
31855
|
+
* @see {@link PremiumPricing} - The TypeScript type definition
|
|
31856
|
+
*/
|
|
31857
|
+
export const KEYS_PREMIUM_PRICING = [
|
|
31858
|
+
KEY_PREMIUM_PRICING_PRICES,
|
|
31859
|
+
] as const satisfies (keyof PremiumPricing)[];
|
|
31860
|
+
|
|
31676
31861
|
/**
|
|
31677
31862
|
* Currency
|
|
31678
31863
|
*
|
|
@@ -38266,6 +38451,57 @@ export const KEY_DOMAIN_AVAILABILITY_CHECK_AVAILABLE: keyof DomainAvailabilityCh
|
|
|
38266
38451
|
* @see {@link KEYS_DOMAIN_AVAILABILITY_CHECK} - Array of all keys for this type
|
|
38267
38452
|
*/
|
|
38268
38453
|
export const KEY_DOMAIN_AVAILABILITY_CHECK_DOMAIN: keyof DomainAvailabilityCheck = 'domain';
|
|
38454
|
+
/**
|
|
38455
|
+
* Is Premium
|
|
38456
|
+
*
|
|
38457
|
+
* Whether this is a premium domain
|
|
38458
|
+
*
|
|
38459
|
+
* @type {boolean}
|
|
38460
|
+
*
|
|
38461
|
+
*
|
|
38462
|
+
* @remarks
|
|
38463
|
+
* This key constant provides type-safe access to the `is_premium` property of DomainAvailabilityCheck objects.
|
|
38464
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
38465
|
+
*
|
|
38466
|
+
* @example
|
|
38467
|
+
* ```typescript
|
|
38468
|
+
* // Direct property access
|
|
38469
|
+
* const value = domainavailabilitycheck[KEY_DOMAIN_AVAILABILITY_CHECK_IS_PREMIUM];
|
|
38470
|
+
*
|
|
38471
|
+
* // Dynamic property access
|
|
38472
|
+
* const propertyName = KEY_DOMAIN_AVAILABILITY_CHECK_IS_PREMIUM;
|
|
38473
|
+
* const value = domainavailabilitycheck[propertyName];
|
|
38474
|
+
* ```
|
|
38475
|
+
*
|
|
38476
|
+
* @see {@link DomainAvailabilityCheck} - The TypeScript type definition
|
|
38477
|
+
* @see {@link KEYS_DOMAIN_AVAILABILITY_CHECK} - Array of all keys for this type
|
|
38478
|
+
*/
|
|
38479
|
+
export const KEY_DOMAIN_AVAILABILITY_CHECK_IS_PREMIUM: keyof DomainAvailabilityCheck = 'is_premium';
|
|
38480
|
+
/**
|
|
38481
|
+
* premium_pricing property
|
|
38482
|
+
*
|
|
38483
|
+
* Premium pricing details, present when domain is premium and pricing is available
|
|
38484
|
+
*
|
|
38485
|
+
*
|
|
38486
|
+
*
|
|
38487
|
+
* @remarks
|
|
38488
|
+
* This key constant provides type-safe access to the `premium_pricing` property of DomainAvailabilityCheck objects.
|
|
38489
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
38490
|
+
*
|
|
38491
|
+
* @example
|
|
38492
|
+
* ```typescript
|
|
38493
|
+
* // Direct property access
|
|
38494
|
+
* const value = domainavailabilitycheck[KEY_DOMAIN_AVAILABILITY_CHECK_PREMIUM_PRICING];
|
|
38495
|
+
*
|
|
38496
|
+
* // Dynamic property access
|
|
38497
|
+
* const propertyName = KEY_DOMAIN_AVAILABILITY_CHECK_PREMIUM_PRICING;
|
|
38498
|
+
* const value = domainavailabilitycheck[propertyName];
|
|
38499
|
+
* ```
|
|
38500
|
+
*
|
|
38501
|
+
* @see {@link DomainAvailabilityCheck} - The TypeScript type definition
|
|
38502
|
+
* @see {@link KEYS_DOMAIN_AVAILABILITY_CHECK} - Array of all keys for this type
|
|
38503
|
+
*/
|
|
38504
|
+
export const KEY_DOMAIN_AVAILABILITY_CHECK_PREMIUM_PRICING: keyof DomainAvailabilityCheck = 'premium_pricing';
|
|
38269
38505
|
/**
|
|
38270
38506
|
* Reason
|
|
38271
38507
|
*
|
|
@@ -38314,5 +38550,7 @@ export const KEY_DOMAIN_AVAILABILITY_CHECK_REASON: keyof DomainAvailabilityCheck
|
|
|
38314
38550
|
export const KEYS_DOMAIN_AVAILABILITY_CHECK = [
|
|
38315
38551
|
KEY_DOMAIN_AVAILABILITY_CHECK_AVAILABLE,
|
|
38316
38552
|
KEY_DOMAIN_AVAILABILITY_CHECK_DOMAIN,
|
|
38553
|
+
KEY_DOMAIN_AVAILABILITY_CHECK_IS_PREMIUM,
|
|
38554
|
+
KEY_DOMAIN_AVAILABILITY_CHECK_PREMIUM_PRICING,
|
|
38317
38555
|
KEY_DOMAIN_AVAILABILITY_CHECK_REASON,
|
|
38318
38556
|
] as const satisfies (keyof DomainAvailabilityCheck)[];
|
|
@@ -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, JobStatus, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, ReportType, ReportStatus, TldResponseShort, AttributeCondition, DomainContactType, ContactCreateBulkInstance, ContactAttributeLinkDetail, ContactAttributeDefinition, PostalAddressType, ContactConfigBase, CommandError, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsZoneCreateBulkInstance, DnsRecordPatchOp, DnsZonePatchRecordsBulkInstance, DnsRrsetPatchOp, DnsZonePatchRrsetsBulkInstance, DnsRrset, DnsZoneUpdateBulkInstance, DomainAvailabilityCheck, ContactHandle, Nameserver, DomainCreateBulkInstance, BrowserStatsBucket, GeoStatsBucket, TimeSeriesBucket, DomainForwardPatchOp, PlatformStatsBucket, HttpRedirectRequest, HttpRedirectList, ReferrerStatsBucket, StatusCodeStatsBucket, UserAgentStatsBucket, VisitsByKeyBucket, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainTransferBulkInstance, DomainClientStatus, DomainUpdateBulkInstance, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAliasMetrics, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LegalRequirementOperationType, LocalPresenceRequirementType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactAttributeSet, Contact, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, JobBatchMetadata, Job, ObjectLog, Organization, Parking, RequestHistory, UserPublic, ParkingCreateBulkInstance, ParkingDeleteBulkInstance, ParkingDisableBulkInstance, ParkingEnableBulkInstance, Period, Permission, PremiumAffectsType, PublicReportRes, Relation, LegalRequirementBase, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
24
|
+
import { DomainDnssecData, DomainDnssecDataCreate, JobStatus, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, ReportType, ReportStatus, TldResponseShort, AttributeCondition, DomainContactType, ContactCreateBulkInstance, ContactAttributeLinkDetail, ContactAttributeDefinition, PostalAddressType, ContactConfigBase, CommandError, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsZoneCreateBulkInstance, DnsRecordPatchOp, DnsZonePatchRecordsBulkInstance, DnsRrsetPatchOp, DnsZonePatchRrsetsBulkInstance, DnsRrset, DnsZoneUpdateBulkInstance, DomainAvailabilityCheck, ContactHandle, Nameserver, DomainCreateBulkInstance, BrowserStatsBucket, GeoStatsBucket, TimeSeriesBucket, DomainForwardPatchOp, PlatformStatsBucket, HttpRedirectRequest, HttpRedirectList, ReferrerStatsBucket, StatusCodeStatsBucket, UserAgentStatsBucket, VisitsByKeyBucket, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainTransferBulkInstance, DomainClientStatus, DomainUpdateBulkInstance, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAliasMetrics, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LegalRequirementOperationType, LocalPresenceRequirementType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactAttributeSet, Contact, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, JobBatchMetadata, Job, ObjectLog, Organization, Parking, RequestHistory, UserPublic, ParkingCreateBulkInstance, ParkingDeleteBulkInstance, ParkingDisableBulkInstance, ParkingEnableBulkInstance, Period, Permission, PremiumAffectsType, PremiumPricingAction, PublicReportRes, Relation, LegalRequirementBase, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* DomainDnssecDataResponse
|
|
@@ -1297,6 +1297,20 @@ export type PermissionArray = Permission[];
|
|
|
1297
1297
|
* @see {@link PremiumAffectsType} - The individual PremiumAffectsType type definition
|
|
1298
1298
|
*/
|
|
1299
1299
|
export type PremiumAffectsTypeArray = PremiumAffectsType[];
|
|
1300
|
+
/**
|
|
1301
|
+
* PremiumPricingAction
|
|
1302
|
+
*
|
|
1303
|
+
* @remarks
|
|
1304
|
+
* Array type for PremiumPricingAction objects. Used when the API returns a collection of PremiumPricingAction instances.
|
|
1305
|
+
*
|
|
1306
|
+
* @example
|
|
1307
|
+
* ```typescript
|
|
1308
|
+
* const items: PremiumPricingActionArray = await api.getPremiumPricingActions();
|
|
1309
|
+
* ```
|
|
1310
|
+
*
|
|
1311
|
+
* @see {@link PremiumPricingAction} - The individual PremiumPricingAction type definition
|
|
1312
|
+
*/
|
|
1313
|
+
export type PremiumPricingActionArray = PremiumPricingAction[];
|
|
1300
1314
|
/**
|
|
1301
1315
|
* PublicReportRes
|
|
1302
1316
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -5044,6 +5044,38 @@ export type PremiumAffectsType = components['schemas']['PremiumAffectsType'];
|
|
|
5044
5044
|
* @see {@link components} - The OpenAPI components schema definition
|
|
5045
5045
|
*/
|
|
5046
5046
|
export type PremiumDomainsBase = components['schemas']['PremiumDomainsBase'];
|
|
5047
|
+
/**
|
|
5048
|
+
* PremiumPricingAction
|
|
5049
|
+
*
|
|
5050
|
+
* @remarks
|
|
5051
|
+
* Type alias for the `PremiumPricingAction` OpenAPI schema.
|
|
5052
|
+
* This type represents premiumpricingaction data structures used in API requests and responses.
|
|
5053
|
+
*
|
|
5054
|
+
* @example
|
|
5055
|
+
* ```typescript
|
|
5056
|
+
* const response = await api.getPremiumPricingAction();
|
|
5057
|
+
* const item: PremiumPricingAction = response.results;
|
|
5058
|
+
* ```
|
|
5059
|
+
*
|
|
5060
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
5061
|
+
*/
|
|
5062
|
+
export type PremiumPricingAction = components['schemas']['PremiumPricingAction'];
|
|
5063
|
+
/**
|
|
5064
|
+
* PremiumPricingResponse
|
|
5065
|
+
*
|
|
5066
|
+
* @remarks
|
|
5067
|
+
* Type alias for the `PremiumPricingResponse` OpenAPI schema.
|
|
5068
|
+
* This type represents premiumpricingresponse data structures used in API requests and responses.
|
|
5069
|
+
*
|
|
5070
|
+
* @example
|
|
5071
|
+
* ```typescript
|
|
5072
|
+
* const response = await api.getPremiumPricing();
|
|
5073
|
+
* const item: PremiumPricing = response.results;
|
|
5074
|
+
* ```
|
|
5075
|
+
*
|
|
5076
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
5077
|
+
*/
|
|
5078
|
+
export type PremiumPricing = components['schemas']['PremiumPricingResponse'];
|
|
5047
5079
|
/**
|
|
5048
5080
|
* PremiumSourceType
|
|
5049
5081
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -3499,6 +3499,11 @@ components:
|
|
|
3499
3499
|
$ref: '#/components/schemas/DomainHostResponse'
|
|
3500
3500
|
title: Hosts
|
|
3501
3501
|
type: array
|
|
3502
|
+
is_premium:
|
|
3503
|
+
default: false
|
|
3504
|
+
description: Whether this is a premium domain
|
|
3505
|
+
title: Is Premium
|
|
3506
|
+
type: boolean
|
|
3502
3507
|
name:
|
|
3503
3508
|
description: The domain name
|
|
3504
3509
|
examples:
|
|
@@ -7906,6 +7911,39 @@ components:
|
|
|
7906
7911
|
- supported
|
|
7907
7912
|
title: PremiumDomainsBase
|
|
7908
7913
|
type: object
|
|
7914
|
+
PremiumPricingAction:
|
|
7915
|
+
properties:
|
|
7916
|
+
action:
|
|
7917
|
+
description: The action (e.g., create, renew, transfer)
|
|
7918
|
+
title: Action
|
|
7919
|
+
type: string
|
|
7920
|
+
currency:
|
|
7921
|
+
description: Currency of the price
|
|
7922
|
+
title: Currency
|
|
7923
|
+
type: string
|
|
7924
|
+
price:
|
|
7925
|
+
description: Customer-facing price after markup
|
|
7926
|
+
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
|
|
7927
|
+
title: Price
|
|
7928
|
+
type: string
|
|
7929
|
+
required:
|
|
7930
|
+
- action
|
|
7931
|
+
- price
|
|
7932
|
+
- currency
|
|
7933
|
+
title: PremiumPricingAction
|
|
7934
|
+
type: object
|
|
7935
|
+
PremiumPricingResponse:
|
|
7936
|
+
properties:
|
|
7937
|
+
prices:
|
|
7938
|
+
description: Premium prices per action
|
|
7939
|
+
items:
|
|
7940
|
+
$ref: '#/components/schemas/PremiumPricingAction'
|
|
7941
|
+
title: Prices
|
|
7942
|
+
type: array
|
|
7943
|
+
required:
|
|
7944
|
+
- prices
|
|
7945
|
+
title: PremiumPricingResponse
|
|
7946
|
+
type: object
|
|
7909
7947
|
PremiumSourceType:
|
|
7910
7948
|
enum:
|
|
7911
7949
|
- EPP
|
|
@@ -9572,6 +9610,17 @@ components:
|
|
|
9572
9610
|
- example.com
|
|
9573
9611
|
title: Domain
|
|
9574
9612
|
type: string
|
|
9613
|
+
is_premium:
|
|
9614
|
+
default: false
|
|
9615
|
+
description: Whether this is a premium domain
|
|
9616
|
+
title: Is Premium
|
|
9617
|
+
type: boolean
|
|
9618
|
+
premium_pricing:
|
|
9619
|
+
anyOf:
|
|
9620
|
+
- $ref: '#/components/schemas/PremiumPricingResponse'
|
|
9621
|
+
- type: 'null'
|
|
9622
|
+
description: Premium pricing details, present when domain is premium and
|
|
9623
|
+
pricing is available
|
|
9575
9624
|
reason:
|
|
9576
9625
|
anyOf:
|
|
9577
9626
|
- type: string
|
|
@@ -9653,7 +9702,7 @@ info:
|
|
|
9653
9702
|
\n\n"
|
|
9654
9703
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
9655
9704
|
title: OpusDNS API
|
|
9656
|
-
version: 2026-04-
|
|
9705
|
+
version: 2026-04-09-170030
|
|
9657
9706
|
x-logo:
|
|
9658
9707
|
altText: OpusDNS API Reference
|
|
9659
9708
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -4497,6 +4497,12 @@ export interface components {
|
|
|
4497
4497
|
* @description The subordinate hosts of the domain
|
|
4498
4498
|
*/
|
|
4499
4499
|
hosts?: components["schemas"]["DomainHostResponse"][];
|
|
4500
|
+
/**
|
|
4501
|
+
* Is Premium
|
|
4502
|
+
* @description Whether this is a premium domain
|
|
4503
|
+
* @default false
|
|
4504
|
+
*/
|
|
4505
|
+
is_premium: boolean;
|
|
4500
4506
|
/**
|
|
4501
4507
|
* Name
|
|
4502
4508
|
* @description The domain name
|
|
@@ -7456,6 +7462,32 @@ export interface components {
|
|
|
7456
7462
|
*/
|
|
7457
7463
|
supported: boolean;
|
|
7458
7464
|
};
|
|
7465
|
+
/** PremiumPricingAction */
|
|
7466
|
+
PremiumPricingAction: {
|
|
7467
|
+
/**
|
|
7468
|
+
* Action
|
|
7469
|
+
* @description The action (e.g., create, renew, transfer)
|
|
7470
|
+
*/
|
|
7471
|
+
action: string;
|
|
7472
|
+
/**
|
|
7473
|
+
* Currency
|
|
7474
|
+
* @description Currency of the price
|
|
7475
|
+
*/
|
|
7476
|
+
currency: string;
|
|
7477
|
+
/**
|
|
7478
|
+
* Price
|
|
7479
|
+
* @description Customer-facing price after markup
|
|
7480
|
+
*/
|
|
7481
|
+
price: string;
|
|
7482
|
+
};
|
|
7483
|
+
/** PremiumPricingResponse */
|
|
7484
|
+
PremiumPricingResponse: {
|
|
7485
|
+
/**
|
|
7486
|
+
* Prices
|
|
7487
|
+
* @description Premium prices per action
|
|
7488
|
+
*/
|
|
7489
|
+
prices: components["schemas"]["PremiumPricingAction"][];
|
|
7490
|
+
};
|
|
7459
7491
|
/**
|
|
7460
7492
|
* PremiumSourceType
|
|
7461
7493
|
* @enum {string}
|
|
@@ -8588,6 +8620,14 @@ export interface components {
|
|
|
8588
8620
|
* @example example.com
|
|
8589
8621
|
*/
|
|
8590
8622
|
domain: string;
|
|
8623
|
+
/**
|
|
8624
|
+
* Is Premium
|
|
8625
|
+
* @description Whether this is a premium domain
|
|
8626
|
+
* @default false
|
|
8627
|
+
*/
|
|
8628
|
+
is_premium: boolean;
|
|
8629
|
+
/** @description Premium pricing details, present when domain is premium and pricing is available */
|
|
8630
|
+
premium_pricing?: components["schemas"]["PremiumPricingResponse"] | null;
|
|
8591
8631
|
/** Reason */
|
|
8592
8632
|
reason: string | null;
|
|
8593
8633
|
};
|