@opusdns/api 0.124.0 → 0.126.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 +80 -1
- package/src/helpers/responses.d.ts +95 -5
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +16 -0
- package/src/openapi.yaml +53 -2
- package/src/schema.d.ts +61 -1
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -78,6 +78,7 @@ import { DomainForwardRequest } from './schemas';
|
|
|
78
78
|
import { DomainForwardSetRequest } from './schemas';
|
|
79
79
|
import { DomainForwardSet } from './schemas';
|
|
80
80
|
import { DomainForwardZone } from './schemas';
|
|
81
|
+
import { DomainHost } from './schemas';
|
|
81
82
|
import { DomainLifecycleBase } from './schemas';
|
|
82
83
|
import { DomainNameParts } from './schemas';
|
|
83
84
|
import { DomainPeriod } from './schemas';
|
|
@@ -7498,6 +7499,57 @@ export const KEYS_DOMAIN_FORWARD_ZONE = [
|
|
|
7498
7499
|
KEY_DOMAIN_FORWARD_ZONE_ZONE_NAME,
|
|
7499
7500
|
] as const satisfies (keyof DomainForwardZone)[];
|
|
7500
7501
|
|
|
7502
|
+
/**
|
|
7503
|
+
* Host Id
|
|
7504
|
+
*
|
|
7505
|
+
* The host id of the host
|
|
7506
|
+
*
|
|
7507
|
+
* @type {string}
|
|
7508
|
+
*
|
|
7509
|
+
*
|
|
7510
|
+
* @remarks
|
|
7511
|
+
* This key constant provides type-safe access to the `host_id` property of DomainHost objects.
|
|
7512
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
7513
|
+
*
|
|
7514
|
+
* @example
|
|
7515
|
+
* ```typescript
|
|
7516
|
+
* // Direct property access
|
|
7517
|
+
* const value = domainhost[KEY_DOMAIN_HOST_HOST_ID];
|
|
7518
|
+
*
|
|
7519
|
+
* // Dynamic property access
|
|
7520
|
+
* const propertyName = KEY_DOMAIN_HOST_HOST_ID;
|
|
7521
|
+
* const value = domainhost[propertyName];
|
|
7522
|
+
* ```
|
|
7523
|
+
*
|
|
7524
|
+
* @see {@link DomainHost} - The TypeScript type definition
|
|
7525
|
+
* @see {@link KEYS_DOMAIN_HOST} - Array of all keys for this type
|
|
7526
|
+
*/
|
|
7527
|
+
export const KEY_DOMAIN_HOST_HOST_ID = 'host_id' as keyof DomainHost;
|
|
7528
|
+
|
|
7529
|
+
/**
|
|
7530
|
+
* Array of all DomainHost property keys
|
|
7531
|
+
*
|
|
7532
|
+
* @remarks
|
|
7533
|
+
* This constant provides a readonly array containing all valid property keys for DomainHost objects.
|
|
7534
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
7535
|
+
*
|
|
7536
|
+
* @example
|
|
7537
|
+
* ```typescript
|
|
7538
|
+
* // Iterating through all keys
|
|
7539
|
+
* for (const key of KEYS_DOMAIN_HOST) {
|
|
7540
|
+
* console.log(`Property: ${key}, Value: ${domainhost[key]}`);
|
|
7541
|
+
* }
|
|
7542
|
+
*
|
|
7543
|
+
* // Validation
|
|
7544
|
+
* const isValidKey = KEYS_DOMAIN_HOST.includes(someKey);
|
|
7545
|
+
* ```
|
|
7546
|
+
*
|
|
7547
|
+
* @see {@link DomainHost} - The TypeScript type definition
|
|
7548
|
+
*/
|
|
7549
|
+
export const KEYS_DOMAIN_HOST = [
|
|
7550
|
+
KEY_DOMAIN_HOST_HOST_ID,
|
|
7551
|
+
] as const satisfies (keyof DomainHost)[];
|
|
7552
|
+
|
|
7501
7553
|
/**
|
|
7502
7554
|
* Add Grace Period
|
|
7503
7555
|
*
|
|
@@ -8419,6 +8471,32 @@ export const KEY_DOMAIN_DOMAIN_ID = 'domain_id' as keyof Domain;
|
|
|
8419
8471
|
* @see {@link KEYS_DOMAIN} - Array of all keys for this type
|
|
8420
8472
|
*/
|
|
8421
8473
|
export const KEY_DOMAIN_EXPIRES_ON = 'expires_on' as keyof Domain;
|
|
8474
|
+
/**
|
|
8475
|
+
* Hosts
|
|
8476
|
+
*
|
|
8477
|
+
* The subordinate hosts of the domain
|
|
8478
|
+
*
|
|
8479
|
+
* @type {array}
|
|
8480
|
+
*
|
|
8481
|
+
*
|
|
8482
|
+
* @remarks
|
|
8483
|
+
* This key constant provides type-safe access to the `hosts` property of Domain objects.
|
|
8484
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
8485
|
+
*
|
|
8486
|
+
* @example
|
|
8487
|
+
* ```typescript
|
|
8488
|
+
* // Direct property access
|
|
8489
|
+
* const value = domain[KEY_DOMAIN_HOSTS];
|
|
8490
|
+
*
|
|
8491
|
+
* // Dynamic property access
|
|
8492
|
+
* const propertyName = KEY_DOMAIN_HOSTS;
|
|
8493
|
+
* const value = domain[propertyName];
|
|
8494
|
+
* ```
|
|
8495
|
+
*
|
|
8496
|
+
* @see {@link Domain} - The TypeScript type definition
|
|
8497
|
+
* @see {@link KEYS_DOMAIN} - Array of all keys for this type
|
|
8498
|
+
*/
|
|
8499
|
+
export const KEY_DOMAIN_HOSTS = 'hosts' as keyof Domain;
|
|
8422
8500
|
/**
|
|
8423
8501
|
* Name
|
|
8424
8502
|
*
|
|
@@ -8448,7 +8526,7 @@ export const KEY_DOMAIN_NAME = 'name' as keyof Domain;
|
|
|
8448
8526
|
/**
|
|
8449
8527
|
* Nameservers
|
|
8450
8528
|
*
|
|
8451
|
-
*
|
|
8529
|
+
* The nameservers of the domain
|
|
8452
8530
|
*
|
|
8453
8531
|
* @type {array}
|
|
8454
8532
|
*
|
|
@@ -8758,6 +8836,7 @@ export const KEYS_DOMAIN = [
|
|
|
8758
8836
|
KEY_DOMAIN_DELETED_ON,
|
|
8759
8837
|
KEY_DOMAIN_DOMAIN_ID,
|
|
8760
8838
|
KEY_DOMAIN_EXPIRES_ON,
|
|
8839
|
+
KEY_DOMAIN_HOSTS,
|
|
8761
8840
|
KEY_DOMAIN_NAME,
|
|
8762
8841
|
KEY_DOMAIN_NAMESERVERS,
|
|
8763
8842
|
KEY_DOMAIN_OWNER_ID,
|
|
@@ -2335,10 +2335,11 @@ export type GET_DnsEmailForwards_Response_422 = HTTPValidationError
|
|
|
2335
2335
|
* @path /v1/dns/summary
|
|
2336
2336
|
*
|
|
2337
2337
|
* @see {@link GET_DnsSummary_Response_200} - 200 response type
|
|
2338
|
+
* @see {@link GET_DnsSummary_Response_422} - 422 response type
|
|
2338
2339
|
*
|
|
2339
2340
|
|
|
2340
2341
|
*/
|
|
2341
|
-
export type GET_DnsSummary_Response = GET_DnsSummary_Response_200;
|
|
2342
|
+
export type GET_DnsSummary_Response = GET_DnsSummary_Response_200 | GET_DnsSummary_Response_422;
|
|
2342
2343
|
|
|
2343
2344
|
/**
|
|
2344
2345
|
* 200 response for GET DnsSummary endpoint
|
|
@@ -2357,6 +2358,23 @@ export type GET_DnsSummary_Response = GET_DnsSummary_Response_200;
|
|
|
2357
2358
|
*/
|
|
2358
2359
|
export type GET_DnsSummary_Response_200 = DnsZoneSummary
|
|
2359
2360
|
|
|
2361
|
+
/**
|
|
2362
|
+
* 422 response for GET DnsSummary endpoint
|
|
2363
|
+
*
|
|
2364
|
+
* @remarks
|
|
2365
|
+
* This type defines the response structure for the 422 status code
|
|
2366
|
+
* of the GET DnsSummary endpoint.
|
|
2367
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
2368
|
+
*
|
|
2369
|
+
|
|
2370
|
+
*
|
|
2371
|
+
* @path /v1/dns/summary
|
|
2372
|
+
*
|
|
2373
|
+
* @see {@link GET_DnsSummary_Response} - The main response type definition
|
|
2374
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
2375
|
+
*/
|
|
2376
|
+
export type GET_DnsSummary_Response_422 = HTTPValidationError
|
|
2377
|
+
|
|
2360
2378
|
/**
|
|
2361
2379
|
* Response types for GET DomainForwards endpoint
|
|
2362
2380
|
*
|
|
@@ -4760,10 +4778,11 @@ export type GET_DomainsCheck_Response_422 = HTTPValidationError
|
|
|
4760
4778
|
* @path /v1/domains/summary
|
|
4761
4779
|
*
|
|
4762
4780
|
* @see {@link GET_DomainsSummary_Response_200} - 200 response type
|
|
4781
|
+
* @see {@link GET_DomainsSummary_Response_422} - 422 response type
|
|
4763
4782
|
*
|
|
4764
4783
|
|
|
4765
4784
|
*/
|
|
4766
|
-
export type GET_DomainsSummary_Response = GET_DomainsSummary_Response_200;
|
|
4785
|
+
export type GET_DomainsSummary_Response = GET_DomainsSummary_Response_200 | GET_DomainsSummary_Response_422;
|
|
4767
4786
|
|
|
4768
4787
|
/**
|
|
4769
4788
|
* 200 response for GET DomainsSummary endpoint
|
|
@@ -4782,6 +4801,23 @@ export type GET_DomainsSummary_Response = GET_DomainsSummary_Response_200;
|
|
|
4782
4801
|
*/
|
|
4783
4802
|
export type GET_DomainsSummary_Response_200 = DomainSummary
|
|
4784
4803
|
|
|
4804
|
+
/**
|
|
4805
|
+
* 422 response for GET DomainsSummary endpoint
|
|
4806
|
+
*
|
|
4807
|
+
* @remarks
|
|
4808
|
+
* This type defines the response structure for the 422 status code
|
|
4809
|
+
* of the GET DomainsSummary endpoint.
|
|
4810
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4811
|
+
*
|
|
4812
|
+
|
|
4813
|
+
*
|
|
4814
|
+
* @path /v1/domains/summary
|
|
4815
|
+
*
|
|
4816
|
+
* @see {@link GET_DomainsSummary_Response} - The main response type definition
|
|
4817
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
4818
|
+
*/
|
|
4819
|
+
export type GET_DomainsSummary_Response_422 = HTTPValidationError
|
|
4820
|
+
|
|
4785
4821
|
/**
|
|
4786
4822
|
* Response types for POST DomainsTldSpecificAtByDomainReferenceWithdraw endpoint
|
|
4787
4823
|
*
|
|
@@ -7553,10 +7589,11 @@ Single IP addresses are returned with CIDR notation (/32 for IPv4, /128 for IPv6
|
|
|
7553
7589
|
* @see {@link GET_OrganizationsIpRestrictions_Response_200} - 200 response type
|
|
7554
7590
|
* @see {@link GET_OrganizationsIpRestrictions_Response_401} - 401 response type
|
|
7555
7591
|
* @see {@link GET_OrganizationsIpRestrictions_Response_403} - 403 response type
|
|
7592
|
+
* @see {@link GET_OrganizationsIpRestrictions_Response_422} - 422 response type
|
|
7556
7593
|
*
|
|
7557
7594
|
|
|
7558
7595
|
*/
|
|
7559
|
-
export type GET_OrganizationsIpRestrictions_Response = GET_OrganizationsIpRestrictions_Response_200 | GET_OrganizationsIpRestrictions_Response_401 | GET_OrganizationsIpRestrictions_Response_403;
|
|
7596
|
+
export type GET_OrganizationsIpRestrictions_Response = GET_OrganizationsIpRestrictions_Response_200 | GET_OrganizationsIpRestrictions_Response_401 | GET_OrganizationsIpRestrictions_Response_403 | GET_OrganizationsIpRestrictions_Response_422;
|
|
7560
7597
|
|
|
7561
7598
|
/**
|
|
7562
7599
|
* 200 response for GET OrganizationsIpRestrictions endpoint
|
|
@@ -7609,6 +7646,23 @@ export type GET_OrganizationsIpRestrictions_Response_401 = Problem
|
|
|
7609
7646
|
*/
|
|
7610
7647
|
export type GET_OrganizationsIpRestrictions_Response_403 = Problem
|
|
7611
7648
|
|
|
7649
|
+
/**
|
|
7650
|
+
* 422 response for GET OrganizationsIpRestrictions endpoint
|
|
7651
|
+
*
|
|
7652
|
+
* @remarks
|
|
7653
|
+
* This type defines the response structure for the 422 status code
|
|
7654
|
+
* of the GET OrganizationsIpRestrictions endpoint.
|
|
7655
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
7656
|
+
*
|
|
7657
|
+
|
|
7658
|
+
*
|
|
7659
|
+
* @path /v1/organizations/ip-restrictions
|
|
7660
|
+
*
|
|
7661
|
+
* @see {@link GET_OrganizationsIpRestrictions_Response} - The main response type definition
|
|
7662
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
7663
|
+
*/
|
|
7664
|
+
export type GET_OrganizationsIpRestrictions_Response_422 = HTTPValidationError
|
|
7665
|
+
|
|
7612
7666
|
/**
|
|
7613
7667
|
* Response types for POST OrganizationsIpRestrictions endpoint
|
|
7614
7668
|
*
|
|
@@ -7987,10 +8041,11 @@ export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Response_422 = HT
|
|
|
7987
8041
|
*
|
|
7988
8042
|
* @see {@link GET_OrganizationsRoles_Response_401} - 401 response type
|
|
7989
8043
|
* @see {@link GET_OrganizationsRoles_Response_403} - 403 response type
|
|
8044
|
+
* @see {@link GET_OrganizationsRoles_Response_422} - 422 response type
|
|
7990
8045
|
*
|
|
7991
8046
|
|
|
7992
8047
|
*/
|
|
7993
|
-
export type GET_OrganizationsRoles_Response = GET_OrganizationsRoles_Response_401 | GET_OrganizationsRoles_Response_403;
|
|
8048
|
+
export type GET_OrganizationsRoles_Response = GET_OrganizationsRoles_Response_401 | GET_OrganizationsRoles_Response_403 | GET_OrganizationsRoles_Response_422;
|
|
7994
8049
|
|
|
7995
8050
|
/**
|
|
7996
8051
|
* 401 response for GET OrganizationsRoles endpoint
|
|
@@ -8026,6 +8081,23 @@ export type GET_OrganizationsRoles_Response_401 = Problem
|
|
|
8026
8081
|
*/
|
|
8027
8082
|
export type GET_OrganizationsRoles_Response_403 = Problem
|
|
8028
8083
|
|
|
8084
|
+
/**
|
|
8085
|
+
* 422 response for GET OrganizationsRoles endpoint
|
|
8086
|
+
*
|
|
8087
|
+
* @remarks
|
|
8088
|
+
* This type defines the response structure for the 422 status code
|
|
8089
|
+
* of the GET OrganizationsRoles endpoint.
|
|
8090
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
8091
|
+
*
|
|
8092
|
+
|
|
8093
|
+
*
|
|
8094
|
+
* @path /v1/organizations/roles
|
|
8095
|
+
*
|
|
8096
|
+
* @see {@link GET_OrganizationsRoles_Response} - The main response type definition
|
|
8097
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
8098
|
+
*/
|
|
8099
|
+
export type GET_OrganizationsRoles_Response_422 = HTTPValidationError
|
|
8100
|
+
|
|
8029
8101
|
/**
|
|
8030
8102
|
* Response types for GET OrganizationsUsers endpoint
|
|
8031
8103
|
*
|
|
@@ -8246,10 +8318,11 @@ export type GET_TldsByTld_Response_422 = HTTPValidationError
|
|
|
8246
8318
|
* @path /v1/tlds/portfolio
|
|
8247
8319
|
*
|
|
8248
8320
|
* @see {@link GET_TldsPortfolio_Response_200} - 200 response type
|
|
8321
|
+
* @see {@link GET_TldsPortfolio_Response_422} - 422 response type
|
|
8249
8322
|
*
|
|
8250
8323
|
|
|
8251
8324
|
*/
|
|
8252
|
-
export type GET_TldsPortfolio_Response = GET_TldsPortfolio_Response_200;
|
|
8325
|
+
export type GET_TldsPortfolio_Response = GET_TldsPortfolio_Response_200 | GET_TldsPortfolio_Response_422;
|
|
8253
8326
|
|
|
8254
8327
|
/**
|
|
8255
8328
|
* 200 response for GET TldsPortfolio endpoint
|
|
@@ -8268,6 +8341,23 @@ export type GET_TldsPortfolio_Response = GET_TldsPortfolio_Response_200;
|
|
|
8268
8341
|
*/
|
|
8269
8342
|
export type GET_TldsPortfolio_Response_200 = TldResponseShortArray
|
|
8270
8343
|
|
|
8344
|
+
/**
|
|
8345
|
+
* 422 response for GET TldsPortfolio endpoint
|
|
8346
|
+
*
|
|
8347
|
+
* @remarks
|
|
8348
|
+
* This type defines the response structure for the 422 status code
|
|
8349
|
+
* of the GET TldsPortfolio endpoint.
|
|
8350
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
8351
|
+
*
|
|
8352
|
+
|
|
8353
|
+
*
|
|
8354
|
+
* @path /v1/tlds/portfolio
|
|
8355
|
+
*
|
|
8356
|
+
* @see {@link GET_TldsPortfolio_Response} - The main response type definition
|
|
8357
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
8358
|
+
*/
|
|
8359
|
+
export type GET_TldsPortfolio_Response_422 = HTTPValidationError
|
|
8360
|
+
|
|
8271
8361
|
/**
|
|
8272
8362
|
* Response types for POST Users endpoint
|
|
8273
8363
|
*
|
|
@@ -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, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, 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';
|
|
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, ContactRoleType, 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
|
|
@@ -401,6 +401,20 @@ export type SyncOperationTypeArray = SyncOperationType[];
|
|
|
401
401
|
* @see {@link DomainContact} - The individual DomainContactResponse type definition
|
|
402
402
|
*/
|
|
403
403
|
export type DomainContactArray = DomainContact[];
|
|
404
|
+
/**
|
|
405
|
+
* DomainHostResponse
|
|
406
|
+
*
|
|
407
|
+
* @remarks
|
|
408
|
+
* Array type for DomainHostResponse objects. Used when the API returns a collection of DomainHostResponse instances.
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* ```typescript
|
|
412
|
+
* const items: DomainHostArray = await api.getDomainHosts();
|
|
413
|
+
* ```
|
|
414
|
+
*
|
|
415
|
+
* @see {@link DomainHost} - The individual DomainHostResponse type definition
|
|
416
|
+
*/
|
|
417
|
+
export type DomainHostArray = DomainHost[];
|
|
404
418
|
/**
|
|
405
419
|
* DomainSearchSuggestionWithPrice
|
|
406
420
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -1210,6 +1210,22 @@ export type DomainForwardZone = components['schemas']['DomainForwardZone'];
|
|
|
1210
1210
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1211
1211
|
*/
|
|
1212
1212
|
export type DomainForwardZoneSortField = components['schemas']['DomainForwardZoneSortField'];
|
|
1213
|
+
/**
|
|
1214
|
+
* DomainHostResponse
|
|
1215
|
+
*
|
|
1216
|
+
* @remarks
|
|
1217
|
+
* Type alias for the `DomainHostResponse` OpenAPI schema.
|
|
1218
|
+
* This type represents domainhostresponse data structures used in API requests and responses.
|
|
1219
|
+
*
|
|
1220
|
+
* @example
|
|
1221
|
+
* ```typescript
|
|
1222
|
+
* const response = await api.getDomainHost();
|
|
1223
|
+
* const item: DomainHost = response.results;
|
|
1224
|
+
* ```
|
|
1225
|
+
*
|
|
1226
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1227
|
+
*/
|
|
1228
|
+
export type DomainHost = components['schemas']['DomainHostResponse'];
|
|
1213
1229
|
/**
|
|
1214
1230
|
* DomainLifecycleBase
|
|
1215
1231
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -1769,6 +1769,21 @@ components:
|
|
|
1769
1769
|
- updated_on
|
|
1770
1770
|
title: DomainForwardZoneSortField
|
|
1771
1771
|
type: string
|
|
1772
|
+
DomainHostResponse:
|
|
1773
|
+
properties:
|
|
1774
|
+
host_id:
|
|
1775
|
+
description: The host id of the host
|
|
1776
|
+
examples:
|
|
1777
|
+
- host_01h45ytscbebyvny4gc8cr8ma2
|
|
1778
|
+
format: typeid
|
|
1779
|
+
pattern: ^host_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
1780
|
+
title: Host Id
|
|
1781
|
+
type: string
|
|
1782
|
+
x-typeid-prefix: host
|
|
1783
|
+
required:
|
|
1784
|
+
- host_id
|
|
1785
|
+
title: DomainHostResponse
|
|
1786
|
+
type: object
|
|
1772
1787
|
DomainLifecycleBase:
|
|
1773
1788
|
properties:
|
|
1774
1789
|
add_grace_period:
|
|
@@ -2014,6 +2029,12 @@ components:
|
|
|
2014
2029
|
- type: 'null'
|
|
2015
2030
|
description: When the domain expires
|
|
2016
2031
|
title: Expires On
|
|
2032
|
+
hosts:
|
|
2033
|
+
description: The subordinate hosts of the domain
|
|
2034
|
+
items:
|
|
2035
|
+
$ref: '#/components/schemas/DomainHostResponse'
|
|
2036
|
+
title: Hosts
|
|
2037
|
+
type: array
|
|
2017
2038
|
name:
|
|
2018
2039
|
description: The domain name
|
|
2019
2040
|
examples:
|
|
@@ -2021,7 +2042,7 @@ components:
|
|
|
2021
2042
|
title: Name
|
|
2022
2043
|
type: string
|
|
2023
2044
|
nameservers:
|
|
2024
|
-
description:
|
|
2045
|
+
description: The nameservers of the domain
|
|
2025
2046
|
items:
|
|
2026
2047
|
$ref: '#/components/schemas/Nameserver'
|
|
2027
2048
|
title: Nameservers
|
|
@@ -5978,7 +5999,7 @@ info:
|
|
|
5978
5999
|
'
|
|
5979
6000
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5980
6001
|
title: OpusDNS API
|
|
5981
|
-
version: 2025-12-
|
|
6002
|
+
version: 2025-12-16-155016
|
|
5982
6003
|
x-logo:
|
|
5983
6004
|
altText: OpusDNS API Reference
|
|
5984
6005
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8040,6 +8061,12 @@ paths:
|
|
|
8040
8061
|
schema:
|
|
8041
8062
|
$ref: '#/components/schemas/DnsZoneSummary'
|
|
8042
8063
|
description: DNS zones summary retrieved successfully
|
|
8064
|
+
'422':
|
|
8065
|
+
content:
|
|
8066
|
+
application/problem+json:
|
|
8067
|
+
schema:
|
|
8068
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8069
|
+
description: Validation Error
|
|
8043
8070
|
security:
|
|
8044
8071
|
- OAuth2PasswordBearer: []
|
|
8045
8072
|
summary: Get Zones Summary
|
|
@@ -10184,6 +10211,12 @@ paths:
|
|
|
10184
10211
|
schema:
|
|
10185
10212
|
$ref: '#/components/schemas/DomainSummaryResponse'
|
|
10186
10213
|
description: Successful Response
|
|
10214
|
+
'422':
|
|
10215
|
+
content:
|
|
10216
|
+
application/problem+json:
|
|
10217
|
+
schema:
|
|
10218
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
10219
|
+
description: Validation Error
|
|
10187
10220
|
security:
|
|
10188
10221
|
- OAuth2PasswordBearer: []
|
|
10189
10222
|
summary: Get domain summary
|
|
@@ -12451,6 +12484,12 @@ paths:
|
|
|
12451
12484
|
schema:
|
|
12452
12485
|
$ref: '#/components/schemas/Problem'
|
|
12453
12486
|
description: Forbidden
|
|
12487
|
+
'422':
|
|
12488
|
+
content:
|
|
12489
|
+
application/problem+json:
|
|
12490
|
+
schema:
|
|
12491
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
12492
|
+
description: Validation Error
|
|
12454
12493
|
security:
|
|
12455
12494
|
- OAuth2PasswordBearer: []
|
|
12456
12495
|
summary: List IP restrictions
|
|
@@ -12722,6 +12761,12 @@ paths:
|
|
|
12722
12761
|
schema:
|
|
12723
12762
|
$ref: '#/components/schemas/Problem'
|
|
12724
12763
|
description: Forbidden
|
|
12764
|
+
'422':
|
|
12765
|
+
content:
|
|
12766
|
+
application/problem+json:
|
|
12767
|
+
schema:
|
|
12768
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
12769
|
+
description: Validation Error
|
|
12725
12770
|
security:
|
|
12726
12771
|
- OAuth2PasswordBearer: []
|
|
12727
12772
|
summary: List all roles
|
|
@@ -13379,6 +13424,12 @@ paths:
|
|
|
13379
13424
|
title: Response Get Tld Portfolio V1 Tlds Portfolio Get
|
|
13380
13425
|
type: array
|
|
13381
13426
|
description: Successful Response
|
|
13427
|
+
'422':
|
|
13428
|
+
content:
|
|
13429
|
+
application/problem+json:
|
|
13430
|
+
schema:
|
|
13431
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
13432
|
+
description: Validation Error
|
|
13382
13433
|
security:
|
|
13383
13434
|
- OAuth2PasswordBearer: []
|
|
13384
13435
|
summary: Get the list of TLDs we support
|
package/src/schema.d.ts
CHANGED
|
@@ -2767,6 +2767,16 @@ export interface components {
|
|
|
2767
2767
|
* @enum {string}
|
|
2768
2768
|
*/
|
|
2769
2769
|
DomainForwardZoneSortField: "name" | "created_on" | "updated_on";
|
|
2770
|
+
/** DomainHostResponse */
|
|
2771
|
+
DomainHostResponse: {
|
|
2772
|
+
/**
|
|
2773
|
+
* Host Id
|
|
2774
|
+
* Format: typeid
|
|
2775
|
+
* @description The host id of the host
|
|
2776
|
+
* @example host_01h45ytscbebyvny4gc8cr8ma2
|
|
2777
|
+
*/
|
|
2778
|
+
host_id: TypeId<"host">;
|
|
2779
|
+
};
|
|
2770
2780
|
/** DomainLifecycleBase */
|
|
2771
2781
|
DomainLifecycleBase: {
|
|
2772
2782
|
/**
|
|
@@ -2927,6 +2937,11 @@ export interface components {
|
|
|
2927
2937
|
* @description When the domain expires
|
|
2928
2938
|
*/
|
|
2929
2939
|
expires_on?: Date | null;
|
|
2940
|
+
/**
|
|
2941
|
+
* Hosts
|
|
2942
|
+
* @description The subordinate hosts of the domain
|
|
2943
|
+
*/
|
|
2944
|
+
hosts?: components["schemas"]["DomainHostResponse"][];
|
|
2930
2945
|
/**
|
|
2931
2946
|
* Name
|
|
2932
2947
|
* @description The domain name
|
|
@@ -2935,7 +2950,7 @@ export interface components {
|
|
|
2935
2950
|
name: string;
|
|
2936
2951
|
/**
|
|
2937
2952
|
* Nameservers
|
|
2938
|
-
* @description
|
|
2953
|
+
* @description The nameservers of the domain
|
|
2939
2954
|
*/
|
|
2940
2955
|
nameservers?: components["schemas"]["Nameserver"][];
|
|
2941
2956
|
/**
|
|
@@ -6858,6 +6873,15 @@ export interface operations {
|
|
|
6858
6873
|
"application/json": components["schemas"]["DnsZoneSummary"];
|
|
6859
6874
|
};
|
|
6860
6875
|
};
|
|
6876
|
+
/** @description Validation Error */
|
|
6877
|
+
422: {
|
|
6878
|
+
headers: {
|
|
6879
|
+
[name: string]: unknown;
|
|
6880
|
+
};
|
|
6881
|
+
content: {
|
|
6882
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
6883
|
+
};
|
|
6884
|
+
};
|
|
6861
6885
|
};
|
|
6862
6886
|
};
|
|
6863
6887
|
get_zone_v1_dns__zone_name__get: {
|
|
@@ -8543,6 +8567,15 @@ export interface operations {
|
|
|
8543
8567
|
"application/json": components["schemas"]["DomainSummaryResponse"];
|
|
8544
8568
|
};
|
|
8545
8569
|
};
|
|
8570
|
+
/** @description Validation Error */
|
|
8571
|
+
422: {
|
|
8572
|
+
headers: {
|
|
8573
|
+
[name: string]: unknown;
|
|
8574
|
+
};
|
|
8575
|
+
content: {
|
|
8576
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
8577
|
+
};
|
|
8578
|
+
};
|
|
8546
8579
|
};
|
|
8547
8580
|
};
|
|
8548
8581
|
withdraw_domain_v1_domains_tld_specific_at__domain_reference__withdraw_post: {
|
|
@@ -10744,6 +10777,15 @@ export interface operations {
|
|
|
10744
10777
|
"application/problem+json": components["schemas"]["Problem"];
|
|
10745
10778
|
};
|
|
10746
10779
|
};
|
|
10780
|
+
/** @description Validation Error */
|
|
10781
|
+
422: {
|
|
10782
|
+
headers: {
|
|
10783
|
+
[name: string]: unknown;
|
|
10784
|
+
};
|
|
10785
|
+
content: {
|
|
10786
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
10787
|
+
};
|
|
10788
|
+
};
|
|
10747
10789
|
};
|
|
10748
10790
|
};
|
|
10749
10791
|
create_ip_restriction_v1_organizations_ip_restrictions_post: {
|
|
@@ -11052,6 +11094,15 @@ export interface operations {
|
|
|
11052
11094
|
"application/problem+json": components["schemas"]["Problem"];
|
|
11053
11095
|
};
|
|
11054
11096
|
};
|
|
11097
|
+
/** @description Validation Error */
|
|
11098
|
+
422: {
|
|
11099
|
+
headers: {
|
|
11100
|
+
[name: string]: unknown;
|
|
11101
|
+
};
|
|
11102
|
+
content: {
|
|
11103
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
11104
|
+
};
|
|
11105
|
+
};
|
|
11055
11106
|
};
|
|
11056
11107
|
};
|
|
11057
11108
|
list_users_v1_organizations_users_get: {
|
|
@@ -11602,6 +11653,15 @@ export interface operations {
|
|
|
11602
11653
|
"application/json": components["schemas"]["TldResponseShort"][];
|
|
11603
11654
|
};
|
|
11604
11655
|
};
|
|
11656
|
+
/** @description Validation Error */
|
|
11657
|
+
422: {
|
|
11658
|
+
headers: {
|
|
11659
|
+
[name: string]: unknown;
|
|
11660
|
+
};
|
|
11661
|
+
content: {
|
|
11662
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
11663
|
+
};
|
|
11664
|
+
};
|
|
11605
11665
|
};
|
|
11606
11666
|
};
|
|
11607
11667
|
get_tld_spec_v1_tlds__tld__get: {
|