@opusdns/api 0.85.0 → 0.87.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.85.0",
6
+ "version": "0.87.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, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, 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, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, 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
@@ -1387,6 +1387,56 @@ export const EVENT_OBJECT_TYPE_VALUES = [
1387
1387
  'UNKNOWN'
1388
1388
  ] as const satisfies [string, ...string[]] | EventObjectType[];
1389
1389
 
1390
+ /**
1391
+ * EventSortField. Auto-generated enum for EventSortField
1392
+ *
1393
+ * @remarks
1394
+ * This constant provides both object and array forms for the EventSortField enum.
1395
+ * The object form allows key-value access, while the array form enables iteration and validation.
1396
+ *
1397
+ * @example
1398
+ * ```typescript
1399
+ * // Using the object form for key-value access
1400
+ * const status = EVENT_SORT_FIELD.SUCCESS;
1401
+ *
1402
+ * // Using the array form for iteration
1403
+ * const allStatuses = EVENT_SORT_FIELD_VALUES;
1404
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1405
+ * ```
1406
+ *
1407
+ * @see {@link EventSortField} - The TypeScript type definition
1408
+ */
1409
+ export const EVENT_SORT_FIELD = {
1410
+ OBJECT_ID: "object_id",
1411
+ CREATED_ON: "created_on",
1412
+ } as const satisfies Record<string, EventSortField>;
1413
+
1414
+ /**
1415
+ * Array of all EventSortField enum values
1416
+ *
1417
+ * @remarks
1418
+ * This constant provides a array containing all valid EventSortField enum values.
1419
+ * Useful for iteration, validation, and generating dynamic UI components.
1420
+ *
1421
+ * @example
1422
+ * ```typescript
1423
+ * // Iterating through all values
1424
+ * for (const value of EVENT_SORT_FIELD_VALUES) {
1425
+ * console.log(`Processing: ${value}`);
1426
+ * }
1427
+ *
1428
+ * // Validation
1429
+ * const isValid = EVENT_SORT_FIELD_VALUES.includes(someValue);
1430
+ * ```
1431
+ *
1432
+ * @see {@link EventSortField} - The TypeScript type definition
1433
+ * @see {@link EVENT_SORT_FIELD} - The object form of this enum
1434
+ */
1435
+ export const EVENT_SORT_FIELD_VALUES = [
1436
+ 'object_id',
1437
+ 'created_on'
1438
+ ] as const satisfies [string, ...string[]] | EventSortField[];
1439
+
1390
1440
  /**
1391
1441
  * EventSubtype. Auto-generated enum for EventSubtype
1392
1442
  *
@@ -2443,7 +2443,7 @@ export type PATCH_EmailForwardsZoneNameEnable_Request_Path = PATCH_EmailForwards
2443
2443
  * Request type for GET Events endpoint
2444
2444
  *
2445
2445
  * Get pending events
2446
- * Retrieves a paginated list of pending events for the organization
2446
+ * Retrieves a paginated list of events for the organization
2447
2447
  *
2448
2448
  * @remarks
2449
2449
  * This type defines the complete request structure for the GET Events endpoint.
@@ -3377,6 +3377,45 @@ export type GET_OrganizationsUsers_Request = {
3377
3377
  */
3378
3378
  export type GET_OrganizationsUsers_Request_Query = GET_OrganizationsUsers_Request['parameters']['query'];
3379
3379
 
3380
+ /**
3381
+ * Request type for GET Tlds endpoint
3382
+ *
3383
+ * Get list of Specifications for all TLDs we support
3384
+ * Retrieves a list of TLD Specifications we have support for
3385
+ *
3386
+ * @remarks
3387
+ * This type defines the complete request structure for the GET Tlds endpoint.
3388
+ * It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
3389
+ * Use this type to ensure type safety when making API requests to this endpoint.
3390
+ *
3391
+ * @example
3392
+ * Use this type to ensure type safety when making API requests to this endpoint.
3393
+ *
3394
+ * @path /v1/tlds/
3395
+ *
3396
+ * @see {@link GET_Tlds_Request_Query} - Query parameters type
3397
+ * @see {@link GET_Tlds_Request_Path} - Path parameters type
3398
+ * @see {@link GET_Tlds_Request_Body} - Request body type
3399
+ */
3400
+ export type GET_Tlds_Request = {
3401
+ parameters: {
3402
+ query: operations['get_tld_specifications_v1_tlds__get']['parameters']['query'];
3403
+ };
3404
+ }
3405
+ /**
3406
+ * Query parameters for GET /v1/tlds/
3407
+ *
3408
+ * @remarks
3409
+ * This type defines the query parameters for the GET /v1/tlds/ endpoint.
3410
+ * It provides type safety for all query parameters as defined in the OpenAPI specification.
3411
+ *
3412
+ * @example
3413
+ * Use this type to ensure type safety for query parameters.
3414
+ *
3415
+ * @path /v1/tlds/
3416
+ */
3417
+ export type GET_Tlds_Request_Query = GET_Tlds_Request['parameters']['query'];
3418
+
3380
3419
  /**
3381
3420
  * Request type for GET TldsPortfolio endpoint
3382
3421
  *
@@ -3581,7 +3581,7 @@ export type PATCH_EmailForwardsByZoneNameEnable_Response_422 = HTTPValidationErr
3581
3581
  * Response types for GET Events endpoint
3582
3582
  *
3583
3583
  * Get pending events
3584
- * Retrieves a paginated list of pending events for the organization
3584
+ * Retrieves a paginated list of events for the organization
3585
3585
  *
3586
3586
  * @remarks
3587
3587
  * This type defines all possible response structures for the GET Events endpoint.
@@ -5499,6 +5499,44 @@ export type GET_OrganizationsUsers_Response_403 = Problem
5499
5499
  */
5500
5500
  export type GET_OrganizationsUsers_Response_422 = HTTPValidationError
5501
5501
 
5502
+ /**
5503
+ * Response types for GET Tlds endpoint
5504
+ *
5505
+ * Get list of Specifications for all TLDs we support
5506
+ * Retrieves a list of TLD Specifications we have support for
5507
+ *
5508
+ * @remarks
5509
+ * This type defines all possible response structures for the GET Tlds endpoint.
5510
+ * Each response code maps to a specific response type as defined in the OpenAPI specification.
5511
+ * Use this type to ensure type safety when handling API responses from this endpoint.
5512
+ *
5513
+
5514
+ *
5515
+ * @path /v1/tlds/
5516
+ *
5517
+ * @see {@link GET_Tlds_Response_422} - 422 response type
5518
+ *
5519
+
5520
+ */
5521
+ export type GET_Tlds_Response = GET_Tlds_Response_422;
5522
+
5523
+ /**
5524
+ * 422 response for GET Tlds endpoint
5525
+ *
5526
+ * @remarks
5527
+ * This type defines the response structure for the 422 status code
5528
+ * of the GET Tlds endpoint.
5529
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
5530
+ *
5531
+
5532
+ *
5533
+ * @path /v1/tlds/
5534
+ *
5535
+ * @see {@link GET_Tlds_Response} - The main response type definition
5536
+ * @see {@link HTTPValidationError} - The actual schema type definition
5537
+ */
5538
+ export type GET_Tlds_Response_422 = HTTPValidationError
5539
+
5502
5540
  /**
5503
5541
  * Response types for GET TldsByTld endpoint
5504
5542
  *
@@ -1450,6 +1450,22 @@ export type EventResponse = components['schemas']['EventResponse'];
1450
1450
  * @see {@link components} - The OpenAPI components schema definition
1451
1451
  */
1452
1452
  export type EventSchema = components['schemas']['EventSchema'];
1453
+ /**
1454
+ * EventSortField
1455
+ *
1456
+ * @remarks
1457
+ * Type alias for the `EventSortField` OpenAPI schema.
1458
+ * This type represents eventsortfield data structures used in API requests and responses.
1459
+ *
1460
+ * @example
1461
+ * ```typescript
1462
+ * const response = await api.getEventSortField();
1463
+ * const item: EventSortField = response.results;
1464
+ * ```
1465
+ *
1466
+ * @see {@link components} - The OpenAPI components schema definition
1467
+ */
1468
+ export type EventSortField = components['schemas']['EventSortField'];
1453
1469
  /**
1454
1470
  * EventSubtype
1455
1471
  *
package/src/openapi.yaml CHANGED
@@ -2383,6 +2383,12 @@ components:
2383
2383
  - source
2384
2384
  title: EventSchema
2385
2385
  type: object
2386
+ EventSortField:
2387
+ enum:
2388
+ - object_id
2389
+ - created_on
2390
+ title: EventSortField
2391
+ type: string
2386
2392
  EventSubtype:
2387
2393
  enum:
2388
2394
  - NOTIFICATION
@@ -4946,7 +4952,7 @@ info:
4946
4952
  '
4947
4953
  summary: OpusDNS - your gateway to a seamless domain management experience.
4948
4954
  title: OpusDNS API
4949
- version: 2025-10-20-101702
4955
+ version: 2025-10-28-111859
4950
4956
  x-logo:
4951
4957
  altText: OpusDNS API Reference
4952
4958
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8033,9 +8039,62 @@ paths:
8033
8039
  - email_forward
8034
8040
  /v1/events:
8035
8041
  get:
8036
- description: Retrieves a paginated list of pending events for the organization
8042
+ description: Retrieves a paginated list of events for the organization
8037
8043
  operationId: get_events_v1_events_get
8038
8044
  parameters:
8045
+ - in: query
8046
+ name: sort_by
8047
+ required: false
8048
+ schema:
8049
+ $ref: '#/components/schemas/EventSortField'
8050
+ default: created_on
8051
+ - in: query
8052
+ name: sort_order
8053
+ required: false
8054
+ schema:
8055
+ $ref: '#/components/schemas/SortOrder'
8056
+ default: desc
8057
+ - in: query
8058
+ name: object_type
8059
+ required: false
8060
+ schema:
8061
+ anyOf:
8062
+ - $ref: '#/components/schemas/EventObjectType'
8063
+ - type: 'null'
8064
+ title: Object Type
8065
+ - in: query
8066
+ name: object_id
8067
+ required: false
8068
+ schema:
8069
+ anyOf:
8070
+ - type: string
8071
+ - type: 'null'
8072
+ title: Object Id
8073
+ - in: query
8074
+ name: type
8075
+ required: false
8076
+ schema:
8077
+ anyOf:
8078
+ - $ref: '#/components/schemas/EventType'
8079
+ - type: 'null'
8080
+ title: Type
8081
+ - in: query
8082
+ name: subtype
8083
+ required: false
8084
+ schema:
8085
+ anyOf:
8086
+ - $ref: '#/components/schemas/EventSubtype'
8087
+ - type: 'null'
8088
+ title: Subtype
8089
+ - in: query
8090
+ name: acknowledged
8091
+ required: false
8092
+ schema:
8093
+ anyOf:
8094
+ - type: boolean
8095
+ - type: 'null'
8096
+ default: false
8097
+ title: Acknowledged
8039
8098
  - in: query
8040
8099
  name: page
8041
8100
  required: false
@@ -9469,6 +9528,50 @@ paths:
9469
9528
  summary: Get a specific transaction
9470
9529
  tags:
9471
9530
  - organization
9531
+ /v1/tlds/:
9532
+ get:
9533
+ description: Retrieves a list of TLD Specifications we have support for
9534
+ operationId: get_tld_specifications_v1_tlds__get
9535
+ parameters:
9536
+ - in: query
9537
+ name: fields
9538
+ required: false
9539
+ schema:
9540
+ anyOf:
9541
+ - type: string
9542
+ - type: 'null'
9543
+ title: Fields
9544
+ - in: query
9545
+ name: tlds
9546
+ required: false
9547
+ schema:
9548
+ anyOf:
9549
+ - type: string
9550
+ - type: 'null'
9551
+ title: Tlds
9552
+ responses:
9553
+ '200':
9554
+ content:
9555
+ application/json:
9556
+ schema:
9557
+ additionalProperties:
9558
+ items:
9559
+ type: object
9560
+ type: array
9561
+ title: Response Get Tld Specifications V1 Tlds Get
9562
+ type: object
9563
+ description: Successful Response
9564
+ '422':
9565
+ content:
9566
+ application/problem+json:
9567
+ schema:
9568
+ $ref: '#/components/schemas/HTTPValidationError'
9569
+ description: Validation Error
9570
+ security:
9571
+ - OAuth2PasswordBearer: []
9572
+ summary: Get list of Specifications for all TLDs we support
9573
+ tags:
9574
+ - tld
9472
9575
  /v1/tlds/portfolio:
9473
9576
  get:
9474
9577
  description: Retrieves a list of TLDs we have support for
package/src/schema.d.ts CHANGED
@@ -688,7 +688,7 @@ export interface paths {
688
688
  };
689
689
  /**
690
690
  * Get pending events
691
- * @description Retrieves a paginated list of pending events for the organization
691
+ * @description Retrieves a paginated list of events for the organization
692
692
  */
693
693
  get: operations["get_events_v1_events_get"];
694
694
  put?: never;
@@ -989,6 +989,26 @@ export interface paths {
989
989
  patch?: never;
990
990
  trace?: never;
991
991
  };
992
+ "/v1/tlds/": {
993
+ parameters: {
994
+ query?: never;
995
+ header?: never;
996
+ path?: never;
997
+ cookie?: never;
998
+ };
999
+ /**
1000
+ * Get list of Specifications for all TLDs we support
1001
+ * @description Retrieves a list of TLD Specifications we have support for
1002
+ */
1003
+ get: operations["get_tld_specifications_v1_tlds__get"];
1004
+ put?: never;
1005
+ post?: never;
1006
+ delete?: never;
1007
+ options?: never;
1008
+ head?: never;
1009
+ patch?: never;
1010
+ trace?: never;
1011
+ };
992
1012
  "/v1/tlds/portfolio": {
993
1013
  parameters: {
994
1014
  query?: never;
@@ -2797,6 +2817,11 @@ export interface components {
2797
2817
  /** @description The type of the event - indicates the kind of operation occurring (e.g., 'ACCOUNT_CREATE', 'DOMAIN_MODIFICATION') */
2798
2818
  type?: components["schemas"]["EventType"] | null;
2799
2819
  };
2820
+ /**
2821
+ * EventSortField
2822
+ * @enum {string}
2823
+ */
2824
+ EventSortField: "object_id" | "created_on";
2800
2825
  /**
2801
2826
  * EventSubtype
2802
2827
  * @enum {string}
@@ -7095,6 +7120,13 @@ export interface operations {
7095
7120
  get_events_v1_events_get: {
7096
7121
  parameters: {
7097
7122
  query?: {
7123
+ sort_by?: components["schemas"]["EventSortField"];
7124
+ sort_order?: components["schemas"]["SortOrder"];
7125
+ object_type?: components["schemas"]["EventObjectType"] | null;
7126
+ object_id?: string | null;
7127
+ type?: components["schemas"]["EventType"] | null;
7128
+ subtype?: components["schemas"]["EventSubtype"] | null;
7129
+ acknowledged?: boolean | null;
7098
7130
  page?: number;
7099
7131
  page_size?: number;
7100
7132
  };
@@ -8482,6 +8514,40 @@ export interface operations {
8482
8514
  };
8483
8515
  };
8484
8516
  };
8517
+ get_tld_specifications_v1_tlds__get: {
8518
+ parameters: {
8519
+ query?: {
8520
+ fields?: string | null;
8521
+ tlds?: string | null;
8522
+ };
8523
+ header?: never;
8524
+ path?: never;
8525
+ cookie?: never;
8526
+ };
8527
+ requestBody?: never;
8528
+ responses: {
8529
+ /** @description Successful Response */
8530
+ 200: {
8531
+ headers: {
8532
+ [name: string]: unknown;
8533
+ };
8534
+ content: {
8535
+ "application/json": {
8536
+ [key: string]: Record<string, never>[];
8537
+ };
8538
+ };
8539
+ };
8540
+ /** @description Validation Error */
8541
+ 422: {
8542
+ headers: {
8543
+ [name: string]: unknown;
8544
+ };
8545
+ content: {
8546
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8547
+ };
8548
+ };
8549
+ };
8550
+ };
8485
8551
  get_tld_portfolio_v1_tlds_portfolio_get: {
8486
8552
  parameters: {
8487
8553
  query?: never;