@opusdns/api 0.72.0 → 0.74.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.72.0",
11
+ "version": "0.74.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -34,7 +34,6 @@ import { BillingMetadata } from './schemas';
34
34
  import { BillingPlan } from './schemas';
35
35
  import { BillingTransaction } from './schemas';
36
36
  import { Body_issue_organization_token_v1_auth_token_post } from './schemas';
37
- import { CheckoutSessionRequest } from './schemas';
38
37
  import { CheckoutSession } from './schemas';
39
38
  import { ContactAttributeDefinition } from './schemas';
40
39
  import { ContactConfigBase } from './schemas';
@@ -620,6 +619,31 @@ export const KEY_BILLING_TRANSACTION_COMPLETED_ON = 'completed_on' as keyof Bill
620
619
  * @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
621
620
  */
622
621
  export const KEY_BILLING_TRANSACTION_CREATED_ON = 'created_on' as keyof BillingTransaction;
622
+ /**
623
+ * currency property
624
+ *
625
+ * The currency of the transaction
626
+ *
627
+ *
628
+ *
629
+ * @remarks
630
+ * This key constant provides type-safe access to the `currency` property of BillingTransaction objects.
631
+ * Use this constant when you need to access properties dynamically or ensure type safety.
632
+ *
633
+ * @example
634
+ * ```typescript
635
+ * // Direct property access
636
+ * const value = billingtransaction[KEY_BILLING_TRANSACTION_CURRENCY];
637
+ *
638
+ * // Dynamic property access
639
+ * const propertyName = KEY_BILLING_TRANSACTION_CURRENCY;
640
+ * const value = billingtransaction[propertyName];
641
+ * ```
642
+ *
643
+ * @see {@link BillingTransaction} - The TypeScript type definition
644
+ * @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
645
+ */
646
+ export const KEY_BILLING_TRANSACTION_CURRENCY = 'currency' as keyof BillingTransaction;
623
647
  /**
624
648
  * Price
625
649
  *
@@ -826,6 +850,7 @@ export const KEYS_BILLING_TRANSACTION = [
826
850
  KEY_BILLING_TRANSACTION_BILLING_TRANSACTION_ID,
827
851
  KEY_BILLING_TRANSACTION_COMPLETED_ON,
828
852
  KEY_BILLING_TRANSACTION_CREATED_ON,
853
+ KEY_BILLING_TRANSACTION_CURRENCY,
829
854
  KEY_BILLING_TRANSACTION_PRICE,
830
855
  KEY_BILLING_TRANSACTION_PRODUCT_REFERENCE,
831
856
  KEY_BILLING_TRANSACTION_PRODUCT_TYPE,
@@ -989,57 +1014,6 @@ export const KEYS_BODY_ISSUE_ORGANIZATION_TOKEN_V1_AUTH_TOKEN_POST = [
989
1014
  KEY_BODY_ISSUE_ORGANIZATION_TOKEN_V1_AUTH_TOKEN_POST_USERNAME,
990
1015
  ] as const satisfies (keyof Body_issue_organization_token_v1_auth_token_post)[];
991
1016
 
992
- /**
993
- * Return Url
994
- *
995
- * Return URL that will be used
996
- *
997
- * @type {string}
998
- *
999
- *
1000
- * @remarks
1001
- * This key constant provides type-safe access to the `return_url` property of CheckoutSessionRequest objects.
1002
- * Use this constant when you need to access properties dynamically or ensure type safety.
1003
- *
1004
- * @example
1005
- * ```typescript
1006
- * // Direct property access
1007
- * const value = checkoutsessionrequest[KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL];
1008
- *
1009
- * // Dynamic property access
1010
- * const propertyName = KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL;
1011
- * const value = checkoutsessionrequest[propertyName];
1012
- * ```
1013
- *
1014
- * @see {@link CheckoutSessionRequest} - The TypeScript type definition
1015
- * @see {@link KEYS_CHECKOUT_SESSION_REQUEST} - Array of all keys for this type
1016
- */
1017
- export const KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL = 'return_url' as keyof CheckoutSessionRequest;
1018
-
1019
- /**
1020
- * Array of all CheckoutSessionRequest property keys
1021
- *
1022
- * @remarks
1023
- * This constant provides a readonly array containing all valid property keys for CheckoutSessionRequest objects.
1024
- * Useful for iteration, validation, and generating dynamic UI components.
1025
- *
1026
- * @example
1027
- * ```typescript
1028
- * // Iterating through all keys
1029
- * for (const key of KEYS_CHECKOUT_SESSION_REQUEST) {
1030
- * console.log(`Property: ${key}, Value: ${checkoutsessionrequest[key]}`);
1031
- * }
1032
- *
1033
- * // Validation
1034
- * const isValidKey = KEYS_CHECKOUT_SESSION_REQUEST.includes(someKey);
1035
- * ```
1036
- *
1037
- * @see {@link CheckoutSessionRequest} - The TypeScript type definition
1038
- */
1039
- export const KEYS_CHECKOUT_SESSION_REQUEST = [
1040
- KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL,
1041
- ] as const satisfies (keyof CheckoutSessionRequest)[];
1042
-
1043
1017
  /**
1044
1018
  * Session Client Secret
1045
1019
  *
package/src/openapi.yaml CHANGED
@@ -138,6 +138,9 @@ components:
138
138
  format: date-time
139
139
  title: Created On
140
140
  type: string
141
+ currency:
142
+ $ref: '#/components/schemas/Currency'
143
+ description: The currency of the transaction
141
144
  price:
142
145
  description: The price of the product without sales tax
143
146
  title: Price
@@ -233,13 +236,7 @@ components:
233
236
  title: Body_issue_organization_token_v1_auth_token_post
234
237
  type: object
235
238
  CheckoutSessionRequest:
236
- properties:
237
- return_url:
238
- description: Return URL that will be used
239
- title: Return Url
240
- type: string
241
- required:
242
- - return_url
239
+ properties: {}
243
240
  title: CheckoutSessionRequest
244
241
  type: object
245
242
  CheckoutSessionResponse:
@@ -5216,7 +5213,7 @@ info:
5216
5213
  '
5217
5214
  summary: OpusDNS - your gateway to a seamless domain management experience.
5218
5215
  title: OpusDNS API
5219
- version: 2025-09-29-103012
5216
+ version: 2025-09-29-135930
5220
5217
  x-logo:
5221
5218
  altText: OpusDNS API Reference
5222
5219
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
package/src/schema.d.ts CHANGED
@@ -1406,6 +1406,8 @@ export interface components {
1406
1406
  * @description The date/time the transaction was created
1407
1407
  */
1408
1408
  created_on?: Date;
1409
+ /** @description The currency of the transaction */
1410
+ currency?: components["schemas"]["Currency"];
1409
1411
  /**
1410
1412
  * Price
1411
1413
  * @description The price of the product without sales tax
@@ -1476,13 +1478,7 @@ export interface components {
1476
1478
  username?: string | null;
1477
1479
  };
1478
1480
  /** CheckoutSessionRequest */
1479
- CheckoutSessionRequest: {
1480
- /**
1481
- * Return Url
1482
- * @description Return URL that will be used
1483
- */
1484
- return_url: string;
1485
- };
1481
+ CheckoutSessionRequest: Record<string, never>;
1486
1482
  /** CheckoutSessionResponse */
1487
1483
  CheckoutSessionResponse: {
1488
1484
  /**