@opusdns/api 0.228.0 → 0.229.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.229.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
  *
@@ -3857,6 +4021,162 @@ export const RENEWAL_MODE_VALUES = [
3857
4021
  'expire'
3858
4022
  ] as const satisfies [string, ...string[]] | RenewalMode[];
3859
4023
 
4024
+ /**
4025
+ * ReportStatus. Auto-generated enum for ReportStatus
4026
+ *
4027
+ * @remarks
4028
+ * This constant provides both object and array forms for the ReportStatus enum.
4029
+ * The object form allows key-value access, while the array form enables iteration and validation.
4030
+ *
4031
+ * @example
4032
+ * ```typescript
4033
+ * // Using the object form for key-value access
4034
+ * const status = REPORT_STATUS.SUCCESS;
4035
+ *
4036
+ * // Using the array form for iteration
4037
+ * const allStatuses = REPORT_STATUS_VALUES;
4038
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
4039
+ * ```
4040
+ *
4041
+ * @see {@link ReportStatus} - The TypeScript type definition
4042
+ */
4043
+ export const REPORT_STATUS = {
4044
+ PENDING: "pending",
4045
+ GENERATING: "generating",
4046
+ COMPLETED: "completed",
4047
+ FAILED: "failed",
4048
+ } as const satisfies Record<string, ReportStatus>;
4049
+
4050
+ /**
4051
+ * Array of all ReportStatus enum values
4052
+ *
4053
+ * @remarks
4054
+ * This constant provides a array containing all valid ReportStatus enum values.
4055
+ * Useful for iteration, validation, and generating dynamic UI components.
4056
+ *
4057
+ * @example
4058
+ * ```typescript
4059
+ * // Iterating through all values
4060
+ * for (const value of REPORT_STATUS_VALUES) {
4061
+ * console.log(`Processing: ${value}`);
4062
+ * }
4063
+ *
4064
+ * // Validation
4065
+ * const isValid = REPORT_STATUS_VALUES.includes(someValue);
4066
+ * ```
4067
+ *
4068
+ * @see {@link ReportStatus} - The TypeScript type definition
4069
+ * @see {@link REPORT_STATUS} - The object form of this enum
4070
+ */
4071
+ export const REPORT_STATUS_VALUES = [
4072
+ 'pending',
4073
+ 'generating',
4074
+ 'completed',
4075
+ 'failed'
4076
+ ] as const satisfies [string, ...string[]] | ReportStatus[];
4077
+
4078
+ /**
4079
+ * ReportTriggerType. Auto-generated enum for ReportTriggerType
4080
+ *
4081
+ * @remarks
4082
+ * This constant provides both object and array forms for the ReportTriggerType enum.
4083
+ * The object form allows key-value access, while the array form enables iteration and validation.
4084
+ *
4085
+ * @example
4086
+ * ```typescript
4087
+ * // Using the object form for key-value access
4088
+ * const status = REPORT_TRIGGER_TYPE.SUCCESS;
4089
+ *
4090
+ * // Using the array form for iteration
4091
+ * const allStatuses = REPORT_TRIGGER_TYPE_VALUES;
4092
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
4093
+ * ```
4094
+ *
4095
+ * @see {@link ReportTriggerType} - The TypeScript type definition
4096
+ */
4097
+ export const REPORT_TRIGGER_TYPE = {
4098
+ ON_DEMAND: "on_demand",
4099
+ SCHEDULED: "scheduled",
4100
+ } as const satisfies Record<string, ReportTriggerType>;
4101
+
4102
+ /**
4103
+ * Array of all ReportTriggerType enum values
4104
+ *
4105
+ * @remarks
4106
+ * This constant provides a array containing all valid ReportTriggerType enum values.
4107
+ * Useful for iteration, validation, and generating dynamic UI components.
4108
+ *
4109
+ * @example
4110
+ * ```typescript
4111
+ * // Iterating through all values
4112
+ * for (const value of REPORT_TRIGGER_TYPE_VALUES) {
4113
+ * console.log(`Processing: ${value}`);
4114
+ * }
4115
+ *
4116
+ * // Validation
4117
+ * const isValid = REPORT_TRIGGER_TYPE_VALUES.includes(someValue);
4118
+ * ```
4119
+ *
4120
+ * @see {@link ReportTriggerType} - The TypeScript type definition
4121
+ * @see {@link REPORT_TRIGGER_TYPE} - The object form of this enum
4122
+ */
4123
+ export const REPORT_TRIGGER_TYPE_VALUES = [
4124
+ 'on_demand',
4125
+ 'scheduled'
4126
+ ] as const satisfies [string, ...string[]] | ReportTriggerType[];
4127
+
4128
+ /**
4129
+ * ReportType. Auto-generated enum for ReportType
4130
+ *
4131
+ * @remarks
4132
+ * This constant provides both object and array forms for the ReportType enum.
4133
+ * The object form allows key-value access, while the array form enables iteration and validation.
4134
+ *
4135
+ * @example
4136
+ * ```typescript
4137
+ * // Using the object form for key-value access
4138
+ * const status = REPORT_TYPE.SUCCESS;
4139
+ *
4140
+ * // Using the array form for iteration
4141
+ * const allStatuses = REPORT_TYPE_VALUES;
4142
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
4143
+ * ```
4144
+ *
4145
+ * @see {@link ReportType} - The TypeScript type definition
4146
+ */
4147
+ export const REPORT_TYPE = {
4148
+ DOMAIN_INVENTORY: "domain_inventory",
4149
+ DNS_ZONE_SUMMARY: "dns_zone_summary",
4150
+ DNS_ZONE_RECORDS: "dns_zone_records",
4151
+ } as const satisfies Record<string, ReportType>;
4152
+
4153
+ /**
4154
+ * Array of all ReportType enum values
4155
+ *
4156
+ * @remarks
4157
+ * This constant provides a array containing all valid ReportType enum values.
4158
+ * Useful for iteration, validation, and generating dynamic UI components.
4159
+ *
4160
+ * @example
4161
+ * ```typescript
4162
+ * // Iterating through all values
4163
+ * for (const value of REPORT_TYPE_VALUES) {
4164
+ * console.log(`Processing: ${value}`);
4165
+ * }
4166
+ *
4167
+ * // Validation
4168
+ * const isValid = REPORT_TYPE_VALUES.includes(someValue);
4169
+ * ```
4170
+ *
4171
+ * @see {@link ReportType} - The TypeScript type definition
4172
+ * @see {@link REPORT_TYPE} - The object form of this enum
4173
+ */
4174
+ export const REPORT_TYPE_VALUES = [
4175
+ 'domain_inventory',
4176
+ 'dns_zone_summary',
4177
+ 'dns_zone_records'
4178
+ ] as const satisfies [string, ...string[]] | ReportType[];
4179
+
3860
4180
  /**
3861
4181
  * RequestHistorySortField. Auto-generated enum for RequestHistorySortField
3862
4182
  *