@opusdns/api 0.35.0 → 0.36.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
@@ -8,7 +8,7 @@
8
8
  "typescript": "^5.8.2"
9
9
  },
10
10
  "name": "@opusdns/api",
11
- "version": "0.35.0",
11
+ "version": "0.36.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -21,7 +21,7 @@
21
21
  * ```
22
22
  */
23
23
 
24
- import { AllocationMethodType, BillingTransactionAction, BillingTransactionProductType, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationCredentialStatus, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserNotificationStatus, UserStatus, VerificationType, ZoneSortField } from './schemas';
24
+ import { AllocationMethodType, BillingTransactionAction, BillingTransactionProductType, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationCredentialStatus, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserNotificationStatus, UserStatus, VerificationType, ZoneSortField } from './schemas';
25
25
 
26
26
  /**
27
27
  * AllocationMethodType. Auto-generated enum for AllocationMethodType
@@ -2001,6 +2001,54 @@ export const REGISTRANT_CHANGE_TYPE_VALUES = [
2001
2001
  'trade'
2002
2002
  ] as const satisfies [string, ...string[]] | RegistrantChangeType[];
2003
2003
 
2004
+ /**
2005
+ * RegistryHandleAttributeType. Registry handle attribute types for type-safe attribute key access.
2006
+ *
2007
+ * @remarks
2008
+ * This constant provides both object and array forms for the RegistryHandleAttributeType enum.
2009
+ * The object form allows key-value access, while the array form enables iteration and validation.
2010
+ *
2011
+ * @example
2012
+ * ```typescript
2013
+ * // Using the object form for key-value access
2014
+ * const status = REGISTRY_HANDLE_ATTRIBUTE_TYPE.SUCCESS;
2015
+ *
2016
+ * // Using the array form for iteration
2017
+ * const allStatuses = REGISTRY_HANDLE_ATTRIBUTE_TYPE_VALUES;
2018
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
2019
+ * ```
2020
+ *
2021
+ * @see {@link RegistryHandleAttributeType} - The TypeScript type definition
2022
+ */
2023
+ export const REGISTRY_HANDLE_ATTRIBUTE_TYPE = {
2024
+ AT-EXT-CONTACT:TYPE: "at-ext-contact:type",
2025
+ } as const satisfies Record<string, RegistryHandleAttributeType>;
2026
+
2027
+ /**
2028
+ * Array of all RegistryHandleAttributeType enum values
2029
+ *
2030
+ * @remarks
2031
+ * This constant provides a array containing all valid RegistryHandleAttributeType enum values.
2032
+ * Useful for iteration, validation, and generating dynamic UI components.
2033
+ *
2034
+ * @example
2035
+ * ```typescript
2036
+ * // Iterating through all values
2037
+ * for (const value of REGISTRY_HANDLE_ATTRIBUTE_TYPE_VALUES) {
2038
+ * console.log(`Processing: ${value}`);
2039
+ * }
2040
+ *
2041
+ * // Validation
2042
+ * const isValid = REGISTRY_HANDLE_ATTRIBUTE_TYPE_VALUES.includes(someValue);
2043
+ * ```
2044
+ *
2045
+ * @see {@link RegistryHandleAttributeType} - The TypeScript type definition
2046
+ * @see {@link REGISTRY_HANDLE_ATTRIBUTE_TYPE} - The object form of this enum
2047
+ */
2048
+ export const REGISTRY_HANDLE_ATTRIBUTE_TYPE_VALUES = [
2049
+ 'at-ext-contact:type'
2050
+ ] as const satisfies [string, ...string[]] | RegistryHandleAttributeType[];
2051
+
2004
2052
  /**
2005
2053
  * Relation. Auto-generated enum for Relation
2006
2054
  *
@@ -35,6 +35,7 @@ import { BillingPlan } from './schemas';
35
35
  import { Body_issue_organization_token_v1_auth_token_post } from './schemas';
36
36
  import { ContactConfigBase } from './schemas';
37
37
  import { ContactCreate } from './schemas';
38
+ import { ContactHandle } from './schemas';
38
39
  import { Contact } from './schemas';
39
40
  import { ContactSchema } from './schemas';
40
41
  import { ContactVerificationApi } from './schemas';
@@ -1092,6 +1093,83 @@ export const KEYS_CONTACT_CREATE = [
1092
1093
  KEY_CONTACT_CREATE_TITLE,
1093
1094
  ] as const satisfies (keyof ContactCreate)[];
1094
1095
 
1096
+ /**
1097
+ * Attributes
1098
+ *
1099
+ * Additional attributes related to the contact
1100
+ *
1101
+ *
1102
+ *
1103
+ * @remarks
1104
+ * This key constant provides type-safe access to the `attributes` property of ContactHandle objects.
1105
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1106
+ *
1107
+ * @example
1108
+ * ```typescript
1109
+ * // Direct property access
1110
+ * const value = contacthandle[KEY_CONTACT_HANDLE_ATTRIBUTES];
1111
+ *
1112
+ * // Dynamic property access
1113
+ * const propertyName = KEY_CONTACT_HANDLE_ATTRIBUTES;
1114
+ * const value = contacthandle[propertyName];
1115
+ * ```
1116
+ *
1117
+ * @see {@link ContactHandle} - The TypeScript type definition
1118
+ * @see {@link KEYS_CONTACT_HANDLE} - Array of all keys for this type
1119
+ */
1120
+ export const KEY_CONTACT_HANDLE_ATTRIBUTES = 'attributes' as keyof ContactHandle;
1121
+ /**
1122
+ * Contact Id
1123
+ *
1124
+ * The contact id of the contact
1125
+ *
1126
+ * @type {string}
1127
+ *
1128
+ *
1129
+ * @remarks
1130
+ * This key constant provides type-safe access to the `contact_id` property of ContactHandle objects.
1131
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1132
+ *
1133
+ * @example
1134
+ * ```typescript
1135
+ * // Direct property access
1136
+ * const value = contacthandle[KEY_CONTACT_HANDLE_CONTACT_ID];
1137
+ *
1138
+ * // Dynamic property access
1139
+ * const propertyName = KEY_CONTACT_HANDLE_CONTACT_ID;
1140
+ * const value = contacthandle[propertyName];
1141
+ * ```
1142
+ *
1143
+ * @see {@link ContactHandle} - The TypeScript type definition
1144
+ * @see {@link KEYS_CONTACT_HANDLE} - Array of all keys for this type
1145
+ */
1146
+ export const KEY_CONTACT_HANDLE_CONTACT_ID = 'contact_id' as keyof ContactHandle;
1147
+
1148
+ /**
1149
+ * Array of all ContactHandle property keys
1150
+ *
1151
+ * @remarks
1152
+ * This constant provides a readonly array containing all valid property keys for ContactHandle objects.
1153
+ * Useful for iteration, validation, and generating dynamic UI components.
1154
+ *
1155
+ * @example
1156
+ * ```typescript
1157
+ * // Iterating through all keys
1158
+ * for (const key of KEYS_CONTACT_HANDLE) {
1159
+ * console.log(`Property: ${key}, Value: ${contacthandle[key]}`);
1160
+ * }
1161
+ *
1162
+ * // Validation
1163
+ * const isValidKey = KEYS_CONTACT_HANDLE.includes(someKey);
1164
+ * ```
1165
+ *
1166
+ * @see {@link ContactHandle} - The TypeScript type definition
1167
+ */
1168
+ export const KEYS_CONTACT_HANDLE = [
1169
+ KEY_CONTACT_HANDLE_ATTRIBUTES,
1170
+ KEY_CONTACT_HANDLE_CONTACT_ID,
1171
+ ] as const satisfies (keyof ContactHandle)[];
1172
+
1095
1173
  /**
1096
1174
  * City
1097
1175
  *
@@ -4982,7 +5060,7 @@ export const KEYS_DOMAIN_CONTACT = [
4982
5060
  */
4983
5061
  export const KEY_DOMAIN_CREATE_AUTH_CODE = 'auth_code' as keyof DomainCreate;
4984
5062
  /**
4985
- * contacts property
5063
+ * Contacts
4986
5064
  *
4987
5065
  * The contacts of the domain
4988
5066
  *
@@ -7699,7 +7777,7 @@ export const KEYS_DOMAIN_SUMMARY = [
7699
7777
  */
7700
7778
  export const KEY_DOMAIN_TRANSFER_IN_AUTH_CODE = 'auth_code' as keyof DomainTransferIn;
7701
7779
  /**
7702
- * contacts property
7780
+ * Contacts
7703
7781
  *
7704
7782
  * The contacts of the domain
7705
7783
  *
@@ -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, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PlanInfo, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
24
+ import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PlanInfo, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
25
25
 
26
26
  /**
27
27
  * DomainDnssecDataResponse
@@ -247,6 +247,20 @@ export type DnsRrsetPatchOpArray = DnsRrsetPatchOp[];
247
247
  * @see {@link DomainAvailabilityCheck} - The individual DomainAvailabilityResponse type definition
248
248
  */
249
249
  export type DomainAvailabilityCheckArray = DomainAvailabilityCheck[];
250
+ /**
251
+ * ContactHandle
252
+ *
253
+ * @remarks
254
+ * Array type for ContactHandle objects. Used when the API returns a collection of ContactHandle instances.
255
+ *
256
+ * @example
257
+ * ```typescript
258
+ * const items: ContactHandleArray = await api.getContactHandles();
259
+ * ```
260
+ *
261
+ * @see {@link ContactHandle} - The individual ContactHandle type definition
262
+ */
263
+ export type ContactHandleArray = ContactHandle[];
250
264
  /**
251
265
  * Nameserver
252
266
  *
@@ -170,6 +170,22 @@ export type ContactConfigBase = components['schemas']['ContactConfigBase'];
170
170
  * @see {@link components} - The OpenAPI components schema definition
171
171
  */
172
172
  export type ContactCreate = components['schemas']['ContactCreate'];
173
+ /**
174
+ * ContactHandle
175
+ *
176
+ * @remarks
177
+ * Type alias for the `ContactHandle` OpenAPI schema.
178
+ * This type represents contacthandle data structures used in API requests and responses.
179
+ *
180
+ * @example
181
+ * ```typescript
182
+ * const response = await api.getContactHandle();
183
+ * const item: ContactHandle = response.results;
184
+ * ```
185
+ *
186
+ * @see {@link components} - The OpenAPI components schema definition
187
+ */
188
+ export type ContactHandle = components['schemas']['ContactHandle'];
173
189
  /**
174
190
  * ContactIdList
175
191
  *
@@ -810,6 +826,22 @@ export type DomainCheck = components['schemas']['DomainCheckResponse'];
810
826
  * @see {@link components} - The OpenAPI components schema definition
811
827
  */
812
828
  export type DomainClientStatus = components['schemas']['DomainClientStatus'];
829
+ /**
830
+ * DomainContactHandles
831
+ *
832
+ * @remarks
833
+ * Type alias for the `DomainContactHandles` OpenAPI schema.
834
+ * This type represents domaincontacthandles data structures used in API requests and responses.
835
+ *
836
+ * @example
837
+ * ```typescript
838
+ * const response = await api.getDomainContactHandles();
839
+ * const item: DomainContactHandles = response.results;
840
+ * ```
841
+ *
842
+ * @see {@link components} - The OpenAPI components schema definition
843
+ */
844
+ export type DomainContactHandles = components['schemas']['DomainContactHandles'];
813
845
  /**
814
846
  * DomainContactResponse
815
847
  *
@@ -2298,6 +2330,22 @@ export type RdapBase = components['schemas']['RdapBase'];
2298
2330
  * @see {@link components} - The OpenAPI components schema definition
2299
2331
  */
2300
2332
  export type RegistrantChangeType = components['schemas']['RegistrantChangeType'];
2333
+ /**
2334
+ * RegistryHandleAttributeType. Registry handle attribute types for type-safe attribute key access.
2335
+ *
2336
+ * @remarks
2337
+ * Type alias for the `RegistryHandleAttributeType` OpenAPI schema.
2338
+ * This type represents registryhandleattributetype data structures used in API requests and responses.
2339
+ *
2340
+ * @example
2341
+ * ```typescript
2342
+ * const response = await api.getRegistryHandleAttributeType();
2343
+ * const item: RegistryHandleAttributeType = response.results;
2344
+ * ```
2345
+ *
2346
+ * @see {@link components} - The OpenAPI components schema definition
2347
+ */
2348
+ export type RegistryHandleAttributeType = components['schemas']['RegistryHandleAttributeType'];
2301
2349
  /**
2302
2350
  * RegistryLockBase
2303
2351
  *
package/src/openapi.yaml CHANGED
@@ -234,6 +234,31 @@ components:
234
234
  - disclose
235
235
  title: ContactCreate
236
236
  type: object
237
+ ContactHandle:
238
+ properties:
239
+ attributes:
240
+ anyOf:
241
+ - additionalProperties:
242
+ $ref: '#/components/schemas/JsonValue'
243
+ propertyNames:
244
+ $ref: '#/components/schemas/RegistryHandleAttributeType'
245
+ type: object
246
+ - type: 'null'
247
+ description: Additional attributes related to the contact
248
+ title: Attributes
249
+ contact_id:
250
+ description: The contact id of the contact
251
+ examples:
252
+ - contact_01h45ytscbebyvny4gc8cr8ma2
253
+ format: typeid
254
+ pattern: ^contact_[0-7][0-9a-hjkmnpq-tv-z]{25}$
255
+ title: Contact Id
256
+ type: string
257
+ x-typeid-prefix: contact
258
+ required:
259
+ - contact_id
260
+ title: ContactHandle
261
+ type: object
237
262
  ContactIdList:
238
263
  additionalProperties:
239
264
  examples:
@@ -1165,6 +1190,14 @@ components:
1165
1190
  - clientHold
1166
1191
  title: DomainClientStatus
1167
1192
  type: string
1193
+ DomainContactHandles:
1194
+ additionalProperties:
1195
+ items:
1196
+ $ref: '#/components/schemas/ContactHandle'
1197
+ type: array
1198
+ propertyNames:
1199
+ $ref: '#/components/schemas/DomainContactType'
1200
+ type: object
1168
1201
  DomainContactResponse:
1169
1202
  properties:
1170
1203
  contact_id:
@@ -1203,8 +1236,11 @@ components:
1203
1236
  description: The auth code used for the domain
1204
1237
  title: Auth Code
1205
1238
  contacts:
1206
- $ref: '#/components/schemas/ContactIdList'
1239
+ anyOf:
1240
+ - $ref: '#/components/schemas/DomainContactHandles'
1241
+ - $ref: '#/components/schemas/ContactIdList'
1207
1242
  description: The contacts of the domain
1243
+ title: Contacts
1208
1244
  name:
1209
1245
  description: The domain to be created
1210
1246
  title: Name
@@ -1874,8 +1910,11 @@ components:
1874
1910
  title: Auth Code
1875
1911
  type: string
1876
1912
  contacts:
1877
- $ref: '#/components/schemas/ContactIdList'
1913
+ anyOf:
1914
+ - $ref: '#/components/schemas/DomainContactHandles'
1915
+ - $ref: '#/components/schemas/ContactIdList'
1878
1916
  description: The contacts of the domain
1917
+ title: Contacts
1879
1918
  name:
1880
1919
  description: The domain to be created
1881
1920
  title: Name
@@ -1909,16 +1948,8 @@ components:
1909
1948
  title: Auth Code
1910
1949
  contacts:
1911
1950
  anyOf:
1912
- - additionalProperties:
1913
- examples:
1914
- - contact_01h45ytscbebyvny4gc8cr8ma2
1915
- format: typeid
1916
- pattern: ^contact_[0-7][0-9a-hjkmnpq-tv-z]{25}$
1917
- type: string
1918
- x-typeid-prefix: contact
1919
- propertyNames:
1920
- $ref: '#/components/schemas/DomainContactType'
1921
- type: object
1951
+ - $ref: '#/components/schemas/DomainContactHandles'
1952
+ - $ref: '#/components/schemas/ContactIdList'
1922
1953
  - type: 'null'
1923
1954
  description: The new contacts of the domain
1924
1955
  examples:
@@ -3871,6 +3902,12 @@ components:
3871
3902
  - trade
3872
3903
  title: RegistrantChangeType
3873
3904
  type: string
3905
+ RegistryHandleAttributeType:
3906
+ description: Registry handle attribute types for type-safe attribute key access.
3907
+ enum:
3908
+ - at-ext-contact:type
3909
+ title: RegistryHandleAttributeType
3910
+ type: string
3874
3911
  RegistryLockBase:
3875
3912
  properties:
3876
3913
  prevents:
@@ -5177,7 +5214,7 @@ info:
5177
5214
  '
5178
5215
  summary: OpusDNS - your gateway to a seamless domain management experience.
5179
5216
  title: OpusDNS API
5180
- version: 2025-09-10-232127
5217
+ version: 2025-09-11-090517
5181
5218
  x-logo:
5182
5219
  altText: OpusDNS API Reference
5183
5220
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
package/src/schema.d.ts CHANGED
@@ -1368,6 +1368,22 @@ export interface components {
1368
1368
  */
1369
1369
  title?: string | null;
1370
1370
  };
1371
+ /** ContactHandle */
1372
+ ContactHandle: {
1373
+ /**
1374
+ * Attributes
1375
+ * @description Additional attributes related to the contact
1376
+ */
1377
+ attributes?: {
1378
+ [key: string]: components["schemas"]["JsonValue"];
1379
+ } | null;
1380
+ /**
1381
+ * Contact Id
1382
+ * Format: typeid
1383
+ * @description The contact id of the contact
1384
+ */
1385
+ contact_id: TypeID<"contact">;
1386
+ };
1371
1387
  ContactIdList: {
1372
1388
  [key: string]: TypeID<"contact">;
1373
1389
  };
@@ -1971,6 +1987,9 @@ export interface components {
1971
1987
  * @enum {string}
1972
1988
  */
1973
1989
  DomainClientStatus: "clientTransferProhibited" | "clientUpdateProhibited" | "clientDeleteProhibited" | "clientRenewProhibited" | "clientHold";
1990
+ DomainContactHandles: {
1991
+ [key: string]: components["schemas"]["ContactHandle"][];
1992
+ };
1974
1993
  /** DomainContactResponse */
1975
1994
  DomainContactResponse: {
1976
1995
  /**
@@ -1994,8 +2013,11 @@ export interface components {
1994
2013
  * @description The auth code used for the domain
1995
2014
  */
1996
2015
  auth_code?: string | null;
1997
- /** @description The contacts of the domain */
1998
- contacts: components["schemas"]["ContactIdList"];
2016
+ /**
2017
+ * Contacts
2018
+ * @description The contacts of the domain
2019
+ */
2020
+ contacts: components["schemas"]["DomainContactHandles"] | components["schemas"]["ContactIdList"];
1999
2021
  /**
2000
2022
  * Name
2001
2023
  * @description The domain to be created
@@ -2417,8 +2439,11 @@ export interface components {
2417
2439
  * @description The auth code for the domain
2418
2440
  */
2419
2441
  auth_code: string;
2420
- /** @description The contacts of the domain */
2421
- contacts: components["schemas"]["ContactIdList"];
2442
+ /**
2443
+ * Contacts
2444
+ * @description The contacts of the domain
2445
+ */
2446
+ contacts: components["schemas"]["DomainContactHandles"] | components["schemas"]["ContactIdList"];
2422
2447
  /**
2423
2448
  * Name
2424
2449
  * @description The domain to be created
@@ -2443,9 +2468,7 @@ export interface components {
2443
2468
  * Contacts
2444
2469
  * @description The new contacts of the domain
2445
2470
  */
2446
- contacts?: {
2447
- [key: string]: TypeID<"contact">;
2448
- } | null;
2471
+ contacts?: components["schemas"]["DomainContactHandles"] | components["schemas"]["ContactIdList"] | null;
2449
2472
  /**
2450
2473
  * Nameservers
2451
2474
  * @description The new name servers for the domain
@@ -3749,6 +3772,12 @@ export interface components {
3749
3772
  * @enum {string}
3750
3773
  */
3751
3774
  RegistrantChangeType: "update" | "trade";
3775
+ /**
3776
+ * RegistryHandleAttributeType
3777
+ * @description Registry handle attribute types for type-safe attribute key access.
3778
+ * @enum {string}
3779
+ */
3780
+ RegistryHandleAttributeType: "at-ext-contact:type";
3752
3781
  /** RegistryLockBase */
3753
3782
  RegistryLockBase: {
3754
3783
  /**