@opusdns/api 0.228.0 → 0.230.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.19.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "0.228.0",
6
+ "version": "0.230.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -21,7 +21,7 @@
21
21
  * ```
22
22
  */
23
23
 
24
- import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ComplianceStatus, ConditionOperator, ContactAttributeSetSortField, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsProtectedReason, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainForwardSortField, DomainForwardZoneSortField, DomainSortField, DomainStatus, EmailForwardLogSortField, EmailForwardLogStatus, EmailForwardSortField, EmailForwardZoneSortField, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, ExecutingEntity, GrantType, HTTPMethod, HostStatus, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LegalRequirementOperationType, LegalRequirementType, LocalPresenceRequirementType, MetricsGrouping, ObjectEventType, ObjectLogSortField, OrganizationSortField, OrganizationStatus, ParkingSortField, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, Protocol, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, RequestHistorySortField, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TimeRange, TransferAckType, UserSortField, UserStatus, VerificationType, ZoneSortField } from './schemas';
24
+ import { AllocationMethodType, AttributeType, BatchSortField, BatchStatus, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ComplianceStatus, ConditionOperator, ContactAttributeSetSortField, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsProtectedReason, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainForwardSortField, DomainForwardZoneSortField, DomainSortField, DomainStatus, EmailForwardLogSortField, EmailForwardLogStatus, EmailForwardSortField, EmailForwardZoneSortField, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, ExecutingEntity, GrantType, HTTPMethod, HostStatus, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, JobStatus, LaunchPhaseType, LegalRequirementOperationType, LegalRequirementType, LocalPresenceRequirementType, MetricsGrouping, ObjectEventType, ObjectLogSortField, OrganizationSortField, OrganizationStatus, ParkingSortField, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, Protocol, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReportStatus, ReportTriggerType, ReportType, RequestHistorySortField, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TimeRange, TransferAckType, UserSortField, UserStatus, VerificationType, ZoneSortField } from './schemas';
25
25
 
26
26
  /**
27
27
  * AllocationMethodType. Auto-generated enum for AllocationMethodType
@@ -131,6 +131,108 @@ export const ATTRIBUTE_TYPE_VALUES = [
131
131
  'integer'
132
132
  ] as const satisfies [string, ...string[]] | AttributeType[];
133
133
 
134
+ /**
135
+ * BatchSortField. Auto-generated enum for BatchSortField
136
+ *
137
+ * @remarks
138
+ * This constant provides both object and array forms for the BatchSortField enum.
139
+ * The object form allows key-value access, while the array form enables iteration and validation.
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * // Using the object form for key-value access
144
+ * const status = BATCH_SORT_FIELD.SUCCESS;
145
+ *
146
+ * // Using the array form for iteration
147
+ * const allStatuses = BATCH_SORT_FIELD_VALUES;
148
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
149
+ * ```
150
+ *
151
+ * @see {@link BatchSortField} - The TypeScript type definition
152
+ */
153
+ export const BATCH_SORT_FIELD = {
154
+ CREATED_ON: "created_on",
155
+ STARTED_AT: "started_at",
156
+ FINISHED_AT: "finished_at",
157
+ } as const satisfies Record<string, BatchSortField>;
158
+
159
+ /**
160
+ * Array of all BatchSortField enum values
161
+ *
162
+ * @remarks
163
+ * This constant provides a array containing all valid BatchSortField enum values.
164
+ * Useful for iteration, validation, and generating dynamic UI components.
165
+ *
166
+ * @example
167
+ * ```typescript
168
+ * // Iterating through all values
169
+ * for (const value of BATCH_SORT_FIELD_VALUES) {
170
+ * console.log(`Processing: ${value}`);
171
+ * }
172
+ *
173
+ * // Validation
174
+ * const isValid = BATCH_SORT_FIELD_VALUES.includes(someValue);
175
+ * ```
176
+ *
177
+ * @see {@link BatchSortField} - The TypeScript type definition
178
+ * @see {@link BATCH_SORT_FIELD} - The object form of this enum
179
+ */
180
+ export const BATCH_SORT_FIELD_VALUES = [
181
+ 'created_on',
182
+ 'started_at',
183
+ 'finished_at'
184
+ ] as const satisfies [string, ...string[]] | BatchSortField[];
185
+
186
+ /**
187
+ * BatchStatus. Auto-generated enum for BatchStatus
188
+ *
189
+ * @remarks
190
+ * This constant provides both object and array forms for the BatchStatus enum.
191
+ * The object form allows key-value access, while the array form enables iteration and validation.
192
+ *
193
+ * @example
194
+ * ```typescript
195
+ * // Using the object form for key-value access
196
+ * const status = BATCH_STATUS.SUCCESS;
197
+ *
198
+ * // Using the array form for iteration
199
+ * const allStatuses = BATCH_STATUS_VALUES;
200
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
201
+ * ```
202
+ *
203
+ * @see {@link BatchStatus} - The TypeScript type definition
204
+ */
205
+ export const BATCH_STATUS = {
206
+ PENDING: "pending",
207
+ COMPLETE: "complete",
208
+ } as const satisfies Record<string, BatchStatus>;
209
+
210
+ /**
211
+ * Array of all BatchStatus enum values
212
+ *
213
+ * @remarks
214
+ * This constant provides a array containing all valid BatchStatus enum values.
215
+ * Useful for iteration, validation, and generating dynamic UI components.
216
+ *
217
+ * @example
218
+ * ```typescript
219
+ * // Iterating through all values
220
+ * for (const value of BATCH_STATUS_VALUES) {
221
+ * console.log(`Processing: ${value}`);
222
+ * }
223
+ *
224
+ * // Validation
225
+ * const isValid = BATCH_STATUS_VALUES.includes(someValue);
226
+ * ```
227
+ *
228
+ * @see {@link BatchStatus} - The TypeScript type definition
229
+ * @see {@link BATCH_STATUS} - The object form of this enum
230
+ */
231
+ export const BATCH_STATUS_VALUES = [
232
+ 'pending',
233
+ 'complete'
234
+ ] as const satisfies [string, ...string[]] | BatchStatus[];
235
+
134
236
  /**
135
237
  * BillingTransactionAction. Auto-generated enum for BillingTransactionAction
136
238
  *
@@ -2504,6 +2606,68 @@ export const INVOICE_RESPONSE_TYPE_VALUES = [
2504
2606
  'progressive_billing'
2505
2607
  ] as const satisfies [string, ...string[]] | InvoiceResponseType[];
2506
2608
 
2609
+ /**
2610
+ * JobStatus. Auto-generated enum for JobStatus
2611
+ *
2612
+ * @remarks
2613
+ * This constant provides both object and array forms for the JobStatus enum.
2614
+ * The object form allows key-value access, while the array form enables iteration and validation.
2615
+ *
2616
+ * @example
2617
+ * ```typescript
2618
+ * // Using the object form for key-value access
2619
+ * const status = JOB_STATUS.SUCCESS;
2620
+ *
2621
+ * // Using the array form for iteration
2622
+ * const allStatuses = JOB_STATUS_VALUES;
2623
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
2624
+ * ```
2625
+ *
2626
+ * @see {@link JobStatus} - The TypeScript type definition
2627
+ */
2628
+ export const JOB_STATUS = {
2629
+ BLOCKED: "blocked",
2630
+ QUEUED: "queued",
2631
+ PAUSED: "paused",
2632
+ RUNNING: "running",
2633
+ SUCCEEDED: "succeeded",
2634
+ FAILED: "failed",
2635
+ CANCELED: "canceled",
2636
+ DEAD_LETTER: "dead_letter",
2637
+ } as const satisfies Record<string, JobStatus>;
2638
+
2639
+ /**
2640
+ * Array of all JobStatus enum values
2641
+ *
2642
+ * @remarks
2643
+ * This constant provides a array containing all valid JobStatus enum values.
2644
+ * Useful for iteration, validation, and generating dynamic UI components.
2645
+ *
2646
+ * @example
2647
+ * ```typescript
2648
+ * // Iterating through all values
2649
+ * for (const value of JOB_STATUS_VALUES) {
2650
+ * console.log(`Processing: ${value}`);
2651
+ * }
2652
+ *
2653
+ * // Validation
2654
+ * const isValid = JOB_STATUS_VALUES.includes(someValue);
2655
+ * ```
2656
+ *
2657
+ * @see {@link JobStatus} - The TypeScript type definition
2658
+ * @see {@link JOB_STATUS} - The object form of this enum
2659
+ */
2660
+ export const JOB_STATUS_VALUES = [
2661
+ 'blocked',
2662
+ 'queued',
2663
+ 'paused',
2664
+ 'running',
2665
+ 'succeeded',
2666
+ 'failed',
2667
+ 'canceled',
2668
+ 'dead_letter'
2669
+ ] as const satisfies [string, ...string[]] | JobStatus[];
2670
+
2507
2671
  /**
2508
2672
  * LaunchPhaseType. Auto-generated enum for LaunchPhaseType
2509
2673
  *
@@ -3663,6 +3827,8 @@ export const REGISTRY_HANDLE_ATTRIBUTE_TYPE = {
3663
3827
  NOMINET_CO_NO: "NOMINET_CO_NO",
3664
3828
  NOMINET_TRAD_NAME: "NOMINET_TRAD_NAME",
3665
3829
  CIRA_CPR: "CIRA_CPR",
3830
+ SIDN_LEGAL_FORM: "SIDN_LEGAL_FORM",
3831
+ SIDN_LEGAL_REG_NO: "SIDN_LEGAL_REG_NO",
3666
3832
  } as const satisfies Record<string, RegistryHandleAttributeType>;
3667
3833
 
3668
3834
  /**
@@ -3716,7 +3882,9 @@ export const REGISTRY_HANDLE_ATTRIBUTE_TYPE_VALUES = [
3716
3882
  'NOMINET_CONTACT_TYPE',
3717
3883
  'NOMINET_CO_NO',
3718
3884
  'NOMINET_TRAD_NAME',
3719
- 'CIRA_CPR'
3885
+ 'CIRA_CPR',
3886
+ 'SIDN_LEGAL_FORM',
3887
+ 'SIDN_LEGAL_REG_NO'
3720
3888
  ] as const satisfies [string, ...string[]] | RegistryHandleAttributeType[];
3721
3889
 
3722
3890
  /**
@@ -3857,6 +4025,162 @@ export const RENEWAL_MODE_VALUES = [
3857
4025
  'expire'
3858
4026
  ] as const satisfies [string, ...string[]] | RenewalMode[];
3859
4027
 
4028
+ /**
4029
+ * ReportStatus. Auto-generated enum for ReportStatus
4030
+ *
4031
+ * @remarks
4032
+ * This constant provides both object and array forms for the ReportStatus enum.
4033
+ * The object form allows key-value access, while the array form enables iteration and validation.
4034
+ *
4035
+ * @example
4036
+ * ```typescript
4037
+ * // Using the object form for key-value access
4038
+ * const status = REPORT_STATUS.SUCCESS;
4039
+ *
4040
+ * // Using the array form for iteration
4041
+ * const allStatuses = REPORT_STATUS_VALUES;
4042
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
4043
+ * ```
4044
+ *
4045
+ * @see {@link ReportStatus} - The TypeScript type definition
4046
+ */
4047
+ export const REPORT_STATUS = {
4048
+ PENDING: "pending",
4049
+ GENERATING: "generating",
4050
+ COMPLETED: "completed",
4051
+ FAILED: "failed",
4052
+ } as const satisfies Record<string, ReportStatus>;
4053
+
4054
+ /**
4055
+ * Array of all ReportStatus enum values
4056
+ *
4057
+ * @remarks
4058
+ * This constant provides a array containing all valid ReportStatus enum values.
4059
+ * Useful for iteration, validation, and generating dynamic UI components.
4060
+ *
4061
+ * @example
4062
+ * ```typescript
4063
+ * // Iterating through all values
4064
+ * for (const value of REPORT_STATUS_VALUES) {
4065
+ * console.log(`Processing: ${value}`);
4066
+ * }
4067
+ *
4068
+ * // Validation
4069
+ * const isValid = REPORT_STATUS_VALUES.includes(someValue);
4070
+ * ```
4071
+ *
4072
+ * @see {@link ReportStatus} - The TypeScript type definition
4073
+ * @see {@link REPORT_STATUS} - The object form of this enum
4074
+ */
4075
+ export const REPORT_STATUS_VALUES = [
4076
+ 'pending',
4077
+ 'generating',
4078
+ 'completed',
4079
+ 'failed'
4080
+ ] as const satisfies [string, ...string[]] | ReportStatus[];
4081
+
4082
+ /**
4083
+ * ReportTriggerType. Auto-generated enum for ReportTriggerType
4084
+ *
4085
+ * @remarks
4086
+ * This constant provides both object and array forms for the ReportTriggerType enum.
4087
+ * The object form allows key-value access, while the array form enables iteration and validation.
4088
+ *
4089
+ * @example
4090
+ * ```typescript
4091
+ * // Using the object form for key-value access
4092
+ * const status = REPORT_TRIGGER_TYPE.SUCCESS;
4093
+ *
4094
+ * // Using the array form for iteration
4095
+ * const allStatuses = REPORT_TRIGGER_TYPE_VALUES;
4096
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
4097
+ * ```
4098
+ *
4099
+ * @see {@link ReportTriggerType} - The TypeScript type definition
4100
+ */
4101
+ export const REPORT_TRIGGER_TYPE = {
4102
+ ON_DEMAND: "on_demand",
4103
+ SCHEDULED: "scheduled",
4104
+ } as const satisfies Record<string, ReportTriggerType>;
4105
+
4106
+ /**
4107
+ * Array of all ReportTriggerType enum values
4108
+ *
4109
+ * @remarks
4110
+ * This constant provides a array containing all valid ReportTriggerType enum values.
4111
+ * Useful for iteration, validation, and generating dynamic UI components.
4112
+ *
4113
+ * @example
4114
+ * ```typescript
4115
+ * // Iterating through all values
4116
+ * for (const value of REPORT_TRIGGER_TYPE_VALUES) {
4117
+ * console.log(`Processing: ${value}`);
4118
+ * }
4119
+ *
4120
+ * // Validation
4121
+ * const isValid = REPORT_TRIGGER_TYPE_VALUES.includes(someValue);
4122
+ * ```
4123
+ *
4124
+ * @see {@link ReportTriggerType} - The TypeScript type definition
4125
+ * @see {@link REPORT_TRIGGER_TYPE} - The object form of this enum
4126
+ */
4127
+ export const REPORT_TRIGGER_TYPE_VALUES = [
4128
+ 'on_demand',
4129
+ 'scheduled'
4130
+ ] as const satisfies [string, ...string[]] | ReportTriggerType[];
4131
+
4132
+ /**
4133
+ * ReportType. Auto-generated enum for ReportType
4134
+ *
4135
+ * @remarks
4136
+ * This constant provides both object and array forms for the ReportType enum.
4137
+ * The object form allows key-value access, while the array form enables iteration and validation.
4138
+ *
4139
+ * @example
4140
+ * ```typescript
4141
+ * // Using the object form for key-value access
4142
+ * const status = REPORT_TYPE.SUCCESS;
4143
+ *
4144
+ * // Using the array form for iteration
4145
+ * const allStatuses = REPORT_TYPE_VALUES;
4146
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
4147
+ * ```
4148
+ *
4149
+ * @see {@link ReportType} - The TypeScript type definition
4150
+ */
4151
+ export const REPORT_TYPE = {
4152
+ DOMAIN_INVENTORY: "domain_inventory",
4153
+ DNS_ZONE_SUMMARY: "dns_zone_summary",
4154
+ DNS_ZONE_RECORDS: "dns_zone_records",
4155
+ } as const satisfies Record<string, ReportType>;
4156
+
4157
+ /**
4158
+ * Array of all ReportType enum values
4159
+ *
4160
+ * @remarks
4161
+ * This constant provides a array containing all valid ReportType enum values.
4162
+ * Useful for iteration, validation, and generating dynamic UI components.
4163
+ *
4164
+ * @example
4165
+ * ```typescript
4166
+ * // Iterating through all values
4167
+ * for (const value of REPORT_TYPE_VALUES) {
4168
+ * console.log(`Processing: ${value}`);
4169
+ * }
4170
+ *
4171
+ * // Validation
4172
+ * const isValid = REPORT_TYPE_VALUES.includes(someValue);
4173
+ * ```
4174
+ *
4175
+ * @see {@link ReportType} - The TypeScript type definition
4176
+ * @see {@link REPORT_TYPE} - The object form of this enum
4177
+ */
4178
+ export const REPORT_TYPE_VALUES = [
4179
+ 'domain_inventory',
4180
+ 'dns_zone_summary',
4181
+ 'dns_zone_records'
4182
+ ] as const satisfies [string, ...string[]] | ReportType[];
4183
+
3860
4184
  /**
3861
4185
  * RequestHistorySortField. Auto-generated enum for RequestHistorySortField
3862
4186
  *