@opusdns/api 0.123.0 → 0.125.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^0.9.1"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "0.123.0",
6
+ "version": "0.125.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -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
- * All the domain statuses
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,
@@ -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
  *
@@ -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: All the domain statuses
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-11-092649
6002
+ version: 2025-12-12-074144
5982
6003
  x-logo:
5983
6004
  altText: OpusDNS API Reference
5984
6005
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -13895,11 +13916,6 @@ tags:
13895
13916
  '
13896
13917
  name: organization
13897
13918
  x-displayName: Organizations
13898
- - description: 'Endpoints for RDAP.
13899
-
13900
- '
13901
- name: rdap
13902
- x-displayName: RDAP
13903
13919
  - description: 'Endpoints for retrieving TLD specifications.
13904
13920
 
13905
13921
  '
@@ -13928,7 +13944,6 @@ x-tagGroups:
13928
13944
  - dns
13929
13945
  - email_forward
13930
13946
  - domain_forward
13931
- - rdap
13932
13947
  - domain_search
13933
13948
  - archive
13934
13949
  - jobs
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 All the domain statuses
2953
+ * @description The nameservers of the domain
2939
2954
  */
2940
2955
  nameservers?: components["schemas"]["Nameserver"][];
2941
2956
  /**