@opusdns/api 0.67.0 → 0.69.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.67.0",
11
+ "version": "0.69.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 { AgreementType, AllocationMethodType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, 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, UserStatus, VerificationType, WalletCreditResponseStatus, ZoneSortField } from './schemas';
24
+ import { AgreementType, AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, 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, UserStatus, VerificationType, WalletCreditResponseStatus, ZoneSortField } from './schemas';
25
25
 
26
26
  /**
27
27
  * AgreementType. Auto-generated enum for AgreementType
@@ -127,6 +127,60 @@ export const ALLOCATION_METHOD_TYPE_VALUES = [
127
127
  'lottery'
128
128
  ] as const satisfies [string, ...string[]] | AllocationMethodType[];
129
129
 
130
+ /**
131
+ * AttributeType. Auto-generated enum for AttributeType
132
+ *
133
+ * @remarks
134
+ * This constant provides both object and array forms for the AttributeType enum.
135
+ * The object form allows key-value access, while the array form enables iteration and validation.
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * // Using the object form for key-value access
140
+ * const status = ATTRIBUTE_TYPE.SUCCESS;
141
+ *
142
+ * // Using the array form for iteration
143
+ * const allStatuses = ATTRIBUTE_TYPE_VALUES;
144
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
145
+ * ```
146
+ *
147
+ * @see {@link AttributeType} - The TypeScript type definition
148
+ */
149
+ export const ATTRIBUTE_TYPE = {
150
+ ENUM: "enum",
151
+ STRING: "string",
152
+ BOOLEAN: "boolean",
153
+ DATETIME: "datetime",
154
+ } as const satisfies Record<string, AttributeType>;
155
+
156
+ /**
157
+ * Array of all AttributeType enum values
158
+ *
159
+ * @remarks
160
+ * This constant provides a array containing all valid AttributeType enum values.
161
+ * Useful for iteration, validation, and generating dynamic UI components.
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * // Iterating through all values
166
+ * for (const value of ATTRIBUTE_TYPE_VALUES) {
167
+ * console.log(`Processing: ${value}`);
168
+ * }
169
+ *
170
+ * // Validation
171
+ * const isValid = ATTRIBUTE_TYPE_VALUES.includes(someValue);
172
+ * ```
173
+ *
174
+ * @see {@link AttributeType} - The TypeScript type definition
175
+ * @see {@link ATTRIBUTE_TYPE} - The object form of this enum
176
+ */
177
+ export const ATTRIBUTE_TYPE_VALUES = [
178
+ 'enum',
179
+ 'string',
180
+ 'boolean',
181
+ 'datetime'
182
+ ] as const satisfies [string, ...string[]] | AttributeType[];
183
+
130
184
  /**
131
185
  * BillingTransactionAction. Auto-generated enum for BillingTransactionAction
132
186
  *
@@ -36,10 +36,12 @@ import { BillingTransaction } from './schemas';
36
36
  import { Body_issue_organization_token_v1_auth_token_post } from './schemas';
37
37
  import { CheckoutSessionRequest } from './schemas';
38
38
  import { CheckoutSession } from './schemas';
39
+ import { ContactAttributeDefinition } from './schemas';
39
40
  import { ContactConfigBase } from './schemas';
40
41
  import { ContactCreate } from './schemas';
41
42
  import { ContactHandle } from './schemas';
42
43
  import { Contact } from './schemas';
44
+ import { ContactRoleAttributeRequirement } from './schemas';
43
45
  import { ContactSchema } from './schemas';
44
46
  import { ContactVerificationApi } from './schemas';
45
47
  import { ContactVerificationEmail } from './schemas';
@@ -132,6 +134,7 @@ import { RelationSet } from './schemas';
132
134
  import { ReservedDomainsBase } from './schemas';
133
135
  import { RgpOperations } from './schemas';
134
136
  import { SignupCreate } from './schemas';
137
+ import { Signup } from './schemas';
135
138
  import { SldLength } from './schemas';
136
139
  import { SpiceDbRelationshipUpdate } from './schemas';
137
140
  import { TermsOfServiceAccept } from './schemas';
@@ -980,6 +983,108 @@ export const KEYS_CHECKOUT_SESSION = [
980
983
  KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET,
981
984
  ] as const satisfies (keyof CheckoutSession)[];
982
985
 
986
+ /**
987
+ * key property
988
+ *
989
+ * Unique identifier for the attribute
990
+ *
991
+ *
992
+ *
993
+ * @remarks
994
+ * This key constant provides type-safe access to the `key` property of ContactAttributeDefinition objects.
995
+ * Use this constant when you need to access properties dynamically or ensure type safety.
996
+ *
997
+ * @example
998
+ * ```typescript
999
+ * // Direct property access
1000
+ * const value = contactattributedefinition[KEY_CONTACT_ATTRIBUTE_DEFINITION_KEY];
1001
+ *
1002
+ * // Dynamic property access
1003
+ * const propertyName = KEY_CONTACT_ATTRIBUTE_DEFINITION_KEY;
1004
+ * const value = contactattributedefinition[propertyName];
1005
+ * ```
1006
+ *
1007
+ * @see {@link ContactAttributeDefinition} - The TypeScript type definition
1008
+ * @see {@link KEYS_CONTACT_ATTRIBUTE_DEFINITION} - Array of all keys for this type
1009
+ */
1010
+ export const KEY_CONTACT_ATTRIBUTE_DEFINITION_KEY = 'key' as keyof ContactAttributeDefinition;
1011
+ /**
1012
+ * type property
1013
+ *
1014
+ * Type of the attribute (e.g., 'enum', 'string', 'boolean')
1015
+ *
1016
+ *
1017
+ *
1018
+ * @remarks
1019
+ * This key constant provides type-safe access to the `type` property of ContactAttributeDefinition objects.
1020
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1021
+ *
1022
+ * @example
1023
+ * ```typescript
1024
+ * // Direct property access
1025
+ * const value = contactattributedefinition[KEY_CONTACT_ATTRIBUTE_DEFINITION_TYPE];
1026
+ *
1027
+ * // Dynamic property access
1028
+ * const propertyName = KEY_CONTACT_ATTRIBUTE_DEFINITION_TYPE;
1029
+ * const value = contactattributedefinition[propertyName];
1030
+ * ```
1031
+ *
1032
+ * @see {@link ContactAttributeDefinition} - The TypeScript type definition
1033
+ * @see {@link KEYS_CONTACT_ATTRIBUTE_DEFINITION} - Array of all keys for this type
1034
+ */
1035
+ export const KEY_CONTACT_ATTRIBUTE_DEFINITION_TYPE = 'type' as keyof ContactAttributeDefinition;
1036
+ /**
1037
+ * Values
1038
+ *
1039
+ * Allowed values for enum types
1040
+ *
1041
+ *
1042
+ *
1043
+ * @remarks
1044
+ * This key constant provides type-safe access to the `values` property of ContactAttributeDefinition objects.
1045
+ * Use this constant when you need to access properties dynamically or ensure type safety.
1046
+ *
1047
+ * @example
1048
+ * ```typescript
1049
+ * // Direct property access
1050
+ * const value = contactattributedefinition[KEY_CONTACT_ATTRIBUTE_DEFINITION_VALUES];
1051
+ *
1052
+ * // Dynamic property access
1053
+ * const propertyName = KEY_CONTACT_ATTRIBUTE_DEFINITION_VALUES;
1054
+ * const value = contactattributedefinition[propertyName];
1055
+ * ```
1056
+ *
1057
+ * @see {@link ContactAttributeDefinition} - The TypeScript type definition
1058
+ * @see {@link KEYS_CONTACT_ATTRIBUTE_DEFINITION} - Array of all keys for this type
1059
+ */
1060
+ export const KEY_CONTACT_ATTRIBUTE_DEFINITION_VALUES = 'values' as keyof ContactAttributeDefinition;
1061
+
1062
+ /**
1063
+ * Array of all ContactAttributeDefinition property keys
1064
+ *
1065
+ * @remarks
1066
+ * This constant provides a readonly array containing all valid property keys for ContactAttributeDefinition objects.
1067
+ * Useful for iteration, validation, and generating dynamic UI components.
1068
+ *
1069
+ * @example
1070
+ * ```typescript
1071
+ * // Iterating through all keys
1072
+ * for (const key of KEYS_CONTACT_ATTRIBUTE_DEFINITION) {
1073
+ * console.log(`Property: ${key}, Value: ${contactattributedefinition[key]}`);
1074
+ * }
1075
+ *
1076
+ * // Validation
1077
+ * const isValidKey = KEYS_CONTACT_ATTRIBUTE_DEFINITION.includes(someKey);
1078
+ * ```
1079
+ *
1080
+ * @see {@link ContactAttributeDefinition} - The TypeScript type definition
1081
+ */
1082
+ export const KEYS_CONTACT_ATTRIBUTE_DEFINITION = [
1083
+ KEY_CONTACT_ATTRIBUTE_DEFINITION_KEY,
1084
+ KEY_CONTACT_ATTRIBUTE_DEFINITION_TYPE,
1085
+ KEY_CONTACT_ATTRIBUTE_DEFINITION_VALUES,
1086
+ ] as const satisfies (keyof ContactAttributeDefinition)[];
1087
+
983
1088
  /**
984
1089
  * Max
985
1090
  *
@@ -1903,6 +2008,83 @@ export const KEYS_CONTACT = [
1903
2008
  KEY_CONTACT_TITLE,
1904
2009
  ] as const satisfies (keyof Contact)[];
1905
2010
 
2011
+ /**
2012
+ * Attributes
2013
+ *
2014
+ * List of required attribute keys for this role
2015
+ *
2016
+ * @type {array}
2017
+ *
2018
+ *
2019
+ * @remarks
2020
+ * This key constant provides type-safe access to the `attributes` property of ContactRoleAttributeRequirement objects.
2021
+ * Use this constant when you need to access properties dynamically or ensure type safety.
2022
+ *
2023
+ * @example
2024
+ * ```typescript
2025
+ * // Direct property access
2026
+ * const value = contactroleattributerequirement[KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ATTRIBUTES];
2027
+ *
2028
+ * // Dynamic property access
2029
+ * const propertyName = KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ATTRIBUTES;
2030
+ * const value = contactroleattributerequirement[propertyName];
2031
+ * ```
2032
+ *
2033
+ * @see {@link ContactRoleAttributeRequirement} - The TypeScript type definition
2034
+ * @see {@link KEYS_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT} - Array of all keys for this type
2035
+ */
2036
+ export const KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ATTRIBUTES = 'attributes' as keyof ContactRoleAttributeRequirement;
2037
+ /**
2038
+ * role property
2039
+ *
2040
+ * The role this requirement applies to
2041
+ *
2042
+ *
2043
+ *
2044
+ * @remarks
2045
+ * This key constant provides type-safe access to the `role` property of ContactRoleAttributeRequirement objects.
2046
+ * Use this constant when you need to access properties dynamically or ensure type safety.
2047
+ *
2048
+ * @example
2049
+ * ```typescript
2050
+ * // Direct property access
2051
+ * const value = contactroleattributerequirement[KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ROLE];
2052
+ *
2053
+ * // Dynamic property access
2054
+ * const propertyName = KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ROLE;
2055
+ * const value = contactroleattributerequirement[propertyName];
2056
+ * ```
2057
+ *
2058
+ * @see {@link ContactRoleAttributeRequirement} - The TypeScript type definition
2059
+ * @see {@link KEYS_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT} - Array of all keys for this type
2060
+ */
2061
+ export const KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ROLE = 'role' as keyof ContactRoleAttributeRequirement;
2062
+
2063
+ /**
2064
+ * Array of all ContactRoleAttributeRequirement property keys
2065
+ *
2066
+ * @remarks
2067
+ * This constant provides a readonly array containing all valid property keys for ContactRoleAttributeRequirement objects.
2068
+ * Useful for iteration, validation, and generating dynamic UI components.
2069
+ *
2070
+ * @example
2071
+ * ```typescript
2072
+ * // Iterating through all keys
2073
+ * for (const key of KEYS_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT) {
2074
+ * console.log(`Property: ${key}, Value: ${contactroleattributerequirement[key]}`);
2075
+ * }
2076
+ *
2077
+ * // Validation
2078
+ * const isValidKey = KEYS_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT.includes(someKey);
2079
+ * ```
2080
+ *
2081
+ * @see {@link ContactRoleAttributeRequirement} - The TypeScript type definition
2082
+ */
2083
+ export const KEYS_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT = [
2084
+ KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ATTRIBUTES,
2085
+ KEY_CONTACT_ROLE_ATTRIBUTE_REQUIREMENT_ROLE,
2086
+ ] as const satisfies (keyof ContactRoleAttributeRequirement)[];
2087
+
1906
2088
  /**
1907
2089
  * City
1908
2090
  *
@@ -3162,6 +3344,32 @@ export const KEY_CONTACTS_BASE_AUTHINFO_REQUIRED = 'authinfo_required' as keyof
3162
3344
  * @see {@link KEYS_CONTACTS_BASE} - Array of all keys for this type
3163
3345
  */
3164
3346
  export const KEY_CONTACTS_BASE_IS_THICK = 'is_thick' as keyof ContactsBase;
3347
+ /**
3348
+ * Possible Attributes
3349
+ *
3350
+ * List of possible attributes that can be set for this TLD
3351
+ *
3352
+ * @type {array}
3353
+ *
3354
+ *
3355
+ * @remarks
3356
+ * This key constant provides type-safe access to the `possible_attributes` property of ContactsBase objects.
3357
+ * Use this constant when you need to access properties dynamically or ensure type safety.
3358
+ *
3359
+ * @example
3360
+ * ```typescript
3361
+ * // Direct property access
3362
+ * const value = contactsbase[KEY_CONTACTS_BASE_POSSIBLE_ATTRIBUTES];
3363
+ *
3364
+ * // Dynamic property access
3365
+ * const propertyName = KEY_CONTACTS_BASE_POSSIBLE_ATTRIBUTES;
3366
+ * const value = contactsbase[propertyName];
3367
+ * ```
3368
+ *
3369
+ * @see {@link ContactsBase} - The TypeScript type definition
3370
+ * @see {@link KEYS_CONTACTS_BASE} - Array of all keys for this type
3371
+ */
3372
+ export const KEY_CONTACTS_BASE_POSSIBLE_ATTRIBUTES = 'possible_attributes' as keyof ContactsBase;
3165
3373
  /**
3166
3374
  * Privacy Proxy
3167
3375
  *
@@ -3212,6 +3420,32 @@ export const KEY_CONTACTS_BASE_PRIVACY_PROXY = 'privacy_proxy' as keyof Contacts
3212
3420
  * @see {@link KEYS_CONTACTS_BASE} - Array of all keys for this type
3213
3421
  */
3214
3422
  export const KEY_CONTACTS_BASE_REGISTRANT_CHANGE = 'registrant_change' as keyof ContactsBase;
3423
+ /**
3424
+ * Required Attributes
3425
+ *
3426
+ * List of attribute requirements by role
3427
+ *
3428
+ * @type {array}
3429
+ *
3430
+ *
3431
+ * @remarks
3432
+ * This key constant provides type-safe access to the `required_attributes` property of ContactsBase objects.
3433
+ * Use this constant when you need to access properties dynamically or ensure type safety.
3434
+ *
3435
+ * @example
3436
+ * ```typescript
3437
+ * // Direct property access
3438
+ * const value = contactsbase[KEY_CONTACTS_BASE_REQUIRED_ATTRIBUTES];
3439
+ *
3440
+ * // Dynamic property access
3441
+ * const propertyName = KEY_CONTACTS_BASE_REQUIRED_ATTRIBUTES;
3442
+ * const value = contactsbase[propertyName];
3443
+ * ```
3444
+ *
3445
+ * @see {@link ContactsBase} - The TypeScript type definition
3446
+ * @see {@link KEYS_CONTACTS_BASE} - Array of all keys for this type
3447
+ */
3448
+ export const KEY_CONTACTS_BASE_REQUIRED_ATTRIBUTES = 'required_attributes' as keyof ContactsBase;
3215
3449
  /**
3216
3450
  * Support Check
3217
3451
  *
@@ -3361,8 +3595,10 @@ export const KEY_CONTACTS_BASE_SUPPORTED_ROLES = 'supported_roles' as keyof Cont
3361
3595
  export const KEYS_CONTACTS_BASE = [
3362
3596
  KEY_CONTACTS_BASE_AUTHINFO_REQUIRED,
3363
3597
  KEY_CONTACTS_BASE_IS_THICK,
3598
+ KEY_CONTACTS_BASE_POSSIBLE_ATTRIBUTES,
3364
3599
  KEY_CONTACTS_BASE_PRIVACY_PROXY,
3365
3600
  KEY_CONTACTS_BASE_REGISTRANT_CHANGE,
3601
+ KEY_CONTACTS_BASE_REQUIRED_ATTRIBUTES,
3366
3602
  KEY_CONTACTS_BASE_SUPPORT_CHECK,
3367
3603
  KEY_CONTACTS_BASE_SUPPORT_CLIENT_CONTACT_ID,
3368
3604
  KEY_CONTACTS_BASE_SUPPORT_TRANSFER,
@@ -15822,6 +16058,80 @@ export const KEYS_SIGNUP_CREATE = [
15822
16058
  KEY_SIGNUP_CREATE_USER,
15823
16059
  ] as const satisfies (keyof SignupCreate)[];
15824
16060
 
16061
+ /**
16062
+ * organization property
16063
+ *
16064
+ *
16065
+ *
16066
+ *
16067
+ * @remarks
16068
+ * This key constant provides type-safe access to the `organization` property of Signup objects.
16069
+ * Use this constant when you need to access properties dynamically or ensure type safety.
16070
+ *
16071
+ * @example
16072
+ * ```typescript
16073
+ * // Direct property access
16074
+ * const value = signup[KEY_SIGNUP_ORGANIZATION];
16075
+ *
16076
+ * // Dynamic property access
16077
+ * const propertyName = KEY_SIGNUP_ORGANIZATION;
16078
+ * const value = signup[propertyName];
16079
+ * ```
16080
+ *
16081
+ * @see {@link Signup} - The TypeScript type definition
16082
+ * @see {@link KEYS_SIGNUP} - Array of all keys for this type
16083
+ */
16084
+ export const KEY_SIGNUP_ORGANIZATION = 'organization' as keyof Signup;
16085
+ /**
16086
+ * user property
16087
+ *
16088
+ *
16089
+ *
16090
+ *
16091
+ * @remarks
16092
+ * This key constant provides type-safe access to the `user` property of Signup objects.
16093
+ * Use this constant when you need to access properties dynamically or ensure type safety.
16094
+ *
16095
+ * @example
16096
+ * ```typescript
16097
+ * // Direct property access
16098
+ * const value = signup[KEY_SIGNUP_USER];
16099
+ *
16100
+ * // Dynamic property access
16101
+ * const propertyName = KEY_SIGNUP_USER;
16102
+ * const value = signup[propertyName];
16103
+ * ```
16104
+ *
16105
+ * @see {@link Signup} - The TypeScript type definition
16106
+ * @see {@link KEYS_SIGNUP} - Array of all keys for this type
16107
+ */
16108
+ export const KEY_SIGNUP_USER = 'user' as keyof Signup;
16109
+
16110
+ /**
16111
+ * Array of all Signup property keys
16112
+ *
16113
+ * @remarks
16114
+ * This constant provides a readonly array containing all valid property keys for Signup objects.
16115
+ * Useful for iteration, validation, and generating dynamic UI components.
16116
+ *
16117
+ * @example
16118
+ * ```typescript
16119
+ * // Iterating through all keys
16120
+ * for (const key of KEYS_SIGNUP) {
16121
+ * console.log(`Property: ${key}, Value: ${signup[key]}`);
16122
+ * }
16123
+ *
16124
+ * // Validation
16125
+ * const isValidKey = KEYS_SIGNUP.includes(someKey);
16126
+ * ```
16127
+ *
16128
+ * @see {@link Signup} - The TypeScript type definition
16129
+ */
16130
+ export const KEYS_SIGNUP = [
16131
+ KEY_SIGNUP_ORGANIZATION,
16132
+ KEY_SIGNUP_USER,
16133
+ ] as const satisfies (keyof Signup)[];
16134
+
15825
16135
  /**
15826
16136
  * Max
15827
16137
  *