@opusdns/api 0.98.0 → 0.100.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.98.0",
6
+ "version": "0.100.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, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
24
+ import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainForwardSortField, DomainForwardZoneSortField, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
25
25
 
26
26
  /**
27
27
  * AllocationMethodType. Auto-generated enum for AllocationMethodType
@@ -1125,6 +1125,112 @@ export const DOMAIN_CONTACT_TYPE_VALUES = [
1125
1125
  'billing'
1126
1126
  ] as const satisfies [string, ...string[]] | DomainContactType[];
1127
1127
 
1128
+ /**
1129
+ * DomainForwardSortField. Auto-generated enum for DomainForwardSortField
1130
+ *
1131
+ * @remarks
1132
+ * This constant provides both object and array forms for the DomainForwardSortField enum.
1133
+ * The object form allows key-value access, while the array form enables iteration and validation.
1134
+ *
1135
+ * @example
1136
+ * ```typescript
1137
+ * // Using the object form for key-value access
1138
+ * const status = DOMAIN_FORWARD_SORT_FIELD.SUCCESS;
1139
+ *
1140
+ * // Using the array form for iteration
1141
+ * const allStatuses = DOMAIN_FORWARD_SORT_FIELD_VALUES;
1142
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1143
+ * ```
1144
+ *
1145
+ * @see {@link DomainForwardSortField} - The TypeScript type definition
1146
+ */
1147
+ export const DOMAIN_FORWARD_SORT_FIELD = {
1148
+ HOSTNAME: "hostname",
1149
+ ENABLED: "enabled",
1150
+ CREATED_ON: "created_on",
1151
+ UPDATED_ON: "updated_on",
1152
+ } as const satisfies Record<string, DomainForwardSortField>;
1153
+
1154
+ /**
1155
+ * Array of all DomainForwardSortField enum values
1156
+ *
1157
+ * @remarks
1158
+ * This constant provides a array containing all valid DomainForwardSortField enum values.
1159
+ * Useful for iteration, validation, and generating dynamic UI components.
1160
+ *
1161
+ * @example
1162
+ * ```typescript
1163
+ * // Iterating through all values
1164
+ * for (const value of DOMAIN_FORWARD_SORT_FIELD_VALUES) {
1165
+ * console.log(`Processing: ${value}`);
1166
+ * }
1167
+ *
1168
+ * // Validation
1169
+ * const isValid = DOMAIN_FORWARD_SORT_FIELD_VALUES.includes(someValue);
1170
+ * ```
1171
+ *
1172
+ * @see {@link DomainForwardSortField} - The TypeScript type definition
1173
+ * @see {@link DOMAIN_FORWARD_SORT_FIELD} - The object form of this enum
1174
+ */
1175
+ export const DOMAIN_FORWARD_SORT_FIELD_VALUES = [
1176
+ 'hostname',
1177
+ 'enabled',
1178
+ 'created_on',
1179
+ 'updated_on'
1180
+ ] as const satisfies [string, ...string[]] | DomainForwardSortField[];
1181
+
1182
+ /**
1183
+ * DomainForwardZoneSortField. Auto-generated enum for DomainForwardZoneSortField
1184
+ *
1185
+ * @remarks
1186
+ * This constant provides both object and array forms for the DomainForwardZoneSortField enum.
1187
+ * The object form allows key-value access, while the array form enables iteration and validation.
1188
+ *
1189
+ * @example
1190
+ * ```typescript
1191
+ * // Using the object form for key-value access
1192
+ * const status = DOMAIN_FORWARD_ZONE_SORT_FIELD.SUCCESS;
1193
+ *
1194
+ * // Using the array form for iteration
1195
+ * const allStatuses = DOMAIN_FORWARD_ZONE_SORT_FIELD_VALUES;
1196
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1197
+ * ```
1198
+ *
1199
+ * @see {@link DomainForwardZoneSortField} - The TypeScript type definition
1200
+ */
1201
+ export const DOMAIN_FORWARD_ZONE_SORT_FIELD = {
1202
+ NAME: "name",
1203
+ CREATED_ON: "created_on",
1204
+ UPDATED_ON: "updated_on",
1205
+ } as const satisfies Record<string, DomainForwardZoneSortField>;
1206
+
1207
+ /**
1208
+ * Array of all DomainForwardZoneSortField enum values
1209
+ *
1210
+ * @remarks
1211
+ * This constant provides a array containing all valid DomainForwardZoneSortField enum values.
1212
+ * Useful for iteration, validation, and generating dynamic UI components.
1213
+ *
1214
+ * @example
1215
+ * ```typescript
1216
+ * // Iterating through all values
1217
+ * for (const value of DOMAIN_FORWARD_ZONE_SORT_FIELD_VALUES) {
1218
+ * console.log(`Processing: ${value}`);
1219
+ * }
1220
+ *
1221
+ * // Validation
1222
+ * const isValid = DOMAIN_FORWARD_ZONE_SORT_FIELD_VALUES.includes(someValue);
1223
+ * ```
1224
+ *
1225
+ * @see {@link DomainForwardZoneSortField} - The TypeScript type definition
1226
+ * @see {@link DOMAIN_FORWARD_ZONE_SORT_FIELD} - The object form of this enum
1227
+ */
1228
+ export const DOMAIN_FORWARD_ZONE_SORT_FIELD_VALUES = [
1229
+ 'name',
1230
+ 'created_on',
1231
+ 'updated_on'
1232
+ ] as const satisfies [string, ...string[]] | DomainForwardZoneSortField[];
1233
+
1128
1234
  /**
1129
1235
  * DomainSortField. Auto-generated enum for DomainSortField
1130
1236
  *
@@ -1098,7 +1098,7 @@ export type PUT_DnsZoneNameRrsets_Request_Body = PUT_DnsZoneNameRrsets_Request['
1098
1098
  * Request type for GET DomainForwards endpoint
1099
1099
  *
1100
1100
  * List domain forwards
1101
- * Retrieves a paginated list of domain forwards for the organization
1101
+ * Retrieves a paginated list of domain forwards by hostname for the organization
1102
1102
  *
1103
1103
  * @remarks
1104
1104
  * This type defines the complete request structure for the GET DomainForwards endpoint.
@@ -1854,7 +1854,7 @@ export type GET_DnsSummary_Response_200 = DnsZoneSummary
1854
1854
  * Response types for GET DomainForwards endpoint
1855
1855
  *
1856
1856
  * List domain forwards
1857
- * Retrieves a paginated list of domain forwards for the organization
1857
+ * Retrieves a paginated list of domain forwards by hostname for the organization
1858
1858
  *
1859
1859
  * @remarks
1860
1860
  * This type defines all possible response structures for the GET DomainForwards endpoint.
@@ -1146,6 +1146,22 @@ export type DomainForwardSetRequest = components['schemas']['DomainForwardSetReq
1146
1146
  * @see {@link components} - The OpenAPI components schema definition
1147
1147
  */
1148
1148
  export type DomainForwardSet = components['schemas']['DomainForwardSetResponse'];
1149
+ /**
1150
+ * DomainForwardSortField
1151
+ *
1152
+ * @remarks
1153
+ * Type alias for the `DomainForwardSortField` OpenAPI schema.
1154
+ * This type represents domainforwardsortfield data structures used in API requests and responses.
1155
+ *
1156
+ * @example
1157
+ * ```typescript
1158
+ * const response = await api.getDomainForwardSortField();
1159
+ * const item: DomainForwardSortField = response.results;
1160
+ * ```
1161
+ *
1162
+ * @see {@link components} - The OpenAPI components schema definition
1163
+ */
1164
+ export type DomainForwardSortField = components['schemas']['DomainForwardSortField'];
1149
1165
  /**
1150
1166
  * DomainForwardZone
1151
1167
  *
@@ -1162,6 +1178,22 @@ export type DomainForwardSet = components['schemas']['DomainForwardSetResponse']
1162
1178
  * @see {@link components} - The OpenAPI components schema definition
1163
1179
  */
1164
1180
  export type DomainForwardZone = components['schemas']['DomainForwardZone'];
1181
+ /**
1182
+ * DomainForwardZoneSortField
1183
+ *
1184
+ * @remarks
1185
+ * Type alias for the `DomainForwardZoneSortField` OpenAPI schema.
1186
+ * This type represents domainforwardzonesortfield data structures used in API requests and responses.
1187
+ *
1188
+ * @example
1189
+ * ```typescript
1190
+ * const response = await api.getDomainForwardZoneSortField();
1191
+ * const item: DomainForwardZoneSortField = response.results;
1192
+ * ```
1193
+ *
1194
+ * @see {@link components} - The OpenAPI components schema definition
1195
+ */
1196
+ export type DomainForwardZoneSortField = components['schemas']['DomainForwardZoneSortField'];
1165
1197
  /**
1166
1198
  * DomainLifecycleBase
1167
1199
  *
package/src/openapi.yaml CHANGED
@@ -1703,6 +1703,14 @@ components:
1703
1703
  - created_on
1704
1704
  title: DomainForwardSetResponse
1705
1705
  type: object
1706
+ DomainForwardSortField:
1707
+ enum:
1708
+ - hostname
1709
+ - enabled
1710
+ - created_on
1711
+ - updated_on
1712
+ title: DomainForwardSortField
1713
+ type: string
1706
1714
  DomainForwardZone:
1707
1715
  properties:
1708
1716
  domain_forwards:
@@ -1727,6 +1735,13 @@ components:
1727
1735
  - domain_forwards
1728
1736
  title: DomainForwardZone
1729
1737
  type: object
1738
+ DomainForwardZoneSortField:
1739
+ enum:
1740
+ - name
1741
+ - created_on
1742
+ - updated_on
1743
+ title: DomainForwardZoneSortField
1744
+ type: string
1730
1745
  DomainLifecycleBase:
1731
1746
  properties:
1732
1747
  add_grace_period:
@@ -5318,7 +5333,7 @@ info:
5318
5333
  '
5319
5334
  summary: OpusDNS - your gateway to a seamless domain management experience.
5320
5335
  title: OpusDNS API
5321
- version: 2025-11-20-110801
5336
+ version: 2025-11-25-093749
5322
5337
  x-logo:
5323
5338
  altText: OpusDNS API Reference
5324
5339
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6540,34 +6555,6 @@ paths:
6540
6555
  description: Retrieves a paginated list of domain forwards grouped by DNS zones.
6541
6556
  operationId: list_domain_forwards_by_zone_v1_dns_domain_forwards_get
6542
6557
  parameters:
6543
- - in: query
6544
- name: sort_by
6545
- required: false
6546
- schema:
6547
- $ref: '#/components/schemas/ZoneSortField'
6548
- default: created_on
6549
- - in: query
6550
- name: sort_order
6551
- required: false
6552
- schema:
6553
- $ref: '#/components/schemas/SortOrder'
6554
- default: desc
6555
- - in: query
6556
- name: dnssec_status
6557
- required: false
6558
- schema:
6559
- anyOf:
6560
- - $ref: '#/components/schemas/DnssecStatus'
6561
- - type: 'null'
6562
- title: Dnssec Status
6563
- - in: query
6564
- name: name
6565
- required: false
6566
- schema:
6567
- anyOf:
6568
- - type: string
6569
- - type: 'null'
6570
- title: Name
6571
6558
  - in: query
6572
6559
  name: search
6573
6560
  required: false
@@ -6577,49 +6564,17 @@ paths:
6577
6564
  - type: 'null'
6578
6565
  title: Search
6579
6566
  - in: query
6580
- name: suffix
6581
- required: false
6582
- schema:
6583
- anyOf:
6584
- - type: string
6585
- - type: 'null'
6586
- title: Suffix
6587
- - in: query
6588
- name: created_after
6589
- required: false
6590
- schema:
6591
- anyOf:
6592
- - format: date-time
6593
- type: string
6594
- - type: 'null'
6595
- title: Created After
6596
- - in: query
6597
- name: created_before
6598
- required: false
6599
- schema:
6600
- anyOf:
6601
- - format: date-time
6602
- type: string
6603
- - type: 'null'
6604
- title: Created Before
6605
- - in: query
6606
- name: updated_after
6567
+ name: sort_by
6607
6568
  required: false
6608
6569
  schema:
6609
- anyOf:
6610
- - format: date-time
6611
- type: string
6612
- - type: 'null'
6613
- title: Updated After
6570
+ $ref: '#/components/schemas/DomainForwardZoneSortField'
6571
+ default: created_on
6614
6572
  - in: query
6615
- name: updated_before
6573
+ name: sort_order
6616
6574
  required: false
6617
6575
  schema:
6618
- anyOf:
6619
- - format: date-time
6620
- type: string
6621
- - type: 'null'
6622
- title: Updated Before
6576
+ $ref: '#/components/schemas/SortOrder'
6577
+ default: desc
6623
6578
  - in: query
6624
6579
  name: page
6625
6580
  required: false
@@ -6998,37 +6953,10 @@ paths:
6998
6953
  - dns
6999
6954
  /v1/domain-forwards:
7000
6955
  get:
7001
- description: Retrieves a paginated list of domain forwards for the organization
6956
+ description: Retrieves a paginated list of domain forwards by hostname for the
6957
+ organization
7002
6958
  operationId: list_domain_forwards_v1_domain_forwards_get
7003
6959
  parameters:
7004
- - in: query
7005
- name: sort_by
7006
- required: false
7007
- schema:
7008
- $ref: '#/components/schemas/ZoneSortField'
7009
- default: created_on
7010
- - in: query
7011
- name: sort_order
7012
- required: false
7013
- schema:
7014
- $ref: '#/components/schemas/SortOrder'
7015
- default: desc
7016
- - in: query
7017
- name: dnssec_status
7018
- required: false
7019
- schema:
7020
- anyOf:
7021
- - $ref: '#/components/schemas/DnssecStatus'
7022
- - type: 'null'
7023
- title: Dnssec Status
7024
- - in: query
7025
- name: name
7026
- required: false
7027
- schema:
7028
- anyOf:
7029
- - type: string
7030
- - type: 'null'
7031
- title: Name
7032
6960
  - in: query
7033
6961
  name: search
7034
6962
  required: false
@@ -7038,49 +6966,17 @@ paths:
7038
6966
  - type: 'null'
7039
6967
  title: Search
7040
6968
  - in: query
7041
- name: suffix
7042
- required: false
7043
- schema:
7044
- anyOf:
7045
- - type: string
7046
- - type: 'null'
7047
- title: Suffix
7048
- - in: query
7049
- name: created_after
7050
- required: false
7051
- schema:
7052
- anyOf:
7053
- - format: date-time
7054
- type: string
7055
- - type: 'null'
7056
- title: Created After
7057
- - in: query
7058
- name: created_before
7059
- required: false
7060
- schema:
7061
- anyOf:
7062
- - format: date-time
7063
- type: string
7064
- - type: 'null'
7065
- title: Created Before
7066
- - in: query
7067
- name: updated_after
6969
+ name: sort_by
7068
6970
  required: false
7069
6971
  schema:
7070
- anyOf:
7071
- - format: date-time
7072
- type: string
7073
- - type: 'null'
7074
- title: Updated After
6972
+ $ref: '#/components/schemas/DomainForwardSortField'
6973
+ default: created_on
7075
6974
  - in: query
7076
- name: updated_before
6975
+ name: sort_order
7077
6976
  required: false
7078
6977
  schema:
7079
- anyOf:
7080
- - format: date-time
7081
- type: string
7082
- - type: 'null'
7083
- title: Updated Before
6978
+ $ref: '#/components/schemas/SortOrder'
6979
+ default: desc
7084
6980
  - in: query
7085
6981
  name: page
7086
6982
  required: false
@@ -11293,6 +11189,9 @@ tags:
11293
11189
  '
11294
11190
  name: authentication
11295
11191
  x-displayName: Authentication
11192
+ - description: "Endpoints for fetching historical data for objects and requests \n"
11193
+ name: archive
11194
+ x-displayName: Archive
11296
11195
  - description: 'Endpoints for checking domain availability.
11297
11196
 
11298
11197
  '
package/src/schema.d.ts CHANGED
@@ -331,7 +331,7 @@ export interface paths {
331
331
  };
332
332
  /**
333
333
  * List domain forwards
334
- * @description Retrieves a paginated list of domain forwards for the organization
334
+ * @description Retrieves a paginated list of domain forwards by hostname for the organization
335
335
  */
336
336
  get: operations["list_domain_forwards_v1_domain_forwards_get"];
337
337
  put?: never;
@@ -2454,6 +2454,11 @@ export interface components {
2454
2454
  /** Wildcard */
2455
2455
  wildcard: boolean;
2456
2456
  };
2457
+ /**
2458
+ * DomainForwardSortField
2459
+ * @enum {string}
2460
+ */
2461
+ DomainForwardSortField: "hostname" | "enabled" | "created_on" | "updated_on";
2457
2462
  /** DomainForwardZone */
2458
2463
  DomainForwardZone: {
2459
2464
  /** Domain Forwards */
@@ -2467,6 +2472,11 @@ export interface components {
2467
2472
  /** Zone Name */
2468
2473
  zone_name: string;
2469
2474
  };
2475
+ /**
2476
+ * DomainForwardZoneSortField
2477
+ * @enum {string}
2478
+ */
2479
+ DomainForwardZoneSortField: "name" | "created_on" | "updated_on";
2470
2480
  /** DomainLifecycleBase */
2471
2481
  DomainLifecycleBase: {
2472
2482
  /**
@@ -5741,16 +5751,9 @@ export interface operations {
5741
5751
  list_domain_forwards_by_zone_v1_dns_domain_forwards_get: {
5742
5752
  parameters: {
5743
5753
  query?: {
5744
- sort_by?: components["schemas"]["ZoneSortField"];
5745
- sort_order?: components["schemas"]["SortOrder"];
5746
- dnssec_status?: components["schemas"]["DnssecStatus"] | null;
5747
- name?: string | null;
5748
5754
  search?: string | null;
5749
- suffix?: string | null;
5750
- created_after?: Date | null;
5751
- created_before?: Date | null;
5752
- updated_after?: Date | null;
5753
- updated_before?: Date | null;
5755
+ sort_by?: components["schemas"]["DomainForwardZoneSortField"];
5756
+ sort_order?: components["schemas"]["SortOrder"];
5754
5757
  page?: number;
5755
5758
  page_size?: number;
5756
5759
  };
@@ -6175,16 +6178,9 @@ export interface operations {
6175
6178
  list_domain_forwards_v1_domain_forwards_get: {
6176
6179
  parameters: {
6177
6180
  query?: {
6178
- sort_by?: components["schemas"]["ZoneSortField"];
6179
- sort_order?: components["schemas"]["SortOrder"];
6180
- dnssec_status?: components["schemas"]["DnssecStatus"] | null;
6181
- name?: string | null;
6182
6181
  search?: string | null;
6183
- suffix?: string | null;
6184
- created_after?: Date | null;
6185
- created_before?: Date | null;
6186
- updated_after?: Date | null;
6187
- updated_before?: Date | null;
6182
+ sort_by?: components["schemas"]["DomainForwardSortField"];
6183
+ sort_order?: components["schemas"]["SortOrder"];
6188
6184
  page?: number;
6189
6185
  page_size?: number;
6190
6186
  };