@opusdns/api 0.74.0 → 0.76.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 +1 -1
- package/src/helpers/constants.ts +3 -1
- package/src/helpers/keys.ts +26 -0
- package/src/openapi.yaml +9 -6
- package/src/schema.d.ts +6 -1
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -2791,6 +2791,7 @@ export const VERIFICATION_TYPE_VALUES = [
|
|
|
2791
2791
|
export const WALLET_CREDIT_RESPONSE_STATUS = {
|
|
2792
2792
|
SUCCESS: "success",
|
|
2793
2793
|
FAILED: "failed",
|
|
2794
|
+
PENDING: "pending",
|
|
2794
2795
|
} as const satisfies Record<string, WalletCreditResponseStatus>;
|
|
2795
2796
|
|
|
2796
2797
|
/**
|
|
@@ -2816,7 +2817,8 @@ export const WALLET_CREDIT_RESPONSE_STATUS = {
|
|
|
2816
2817
|
*/
|
|
2817
2818
|
export const WALLET_CREDIT_RESPONSE_STATUS_VALUES = [
|
|
2818
2819
|
'success',
|
|
2819
|
-
'failed'
|
|
2820
|
+
'failed',
|
|
2821
|
+
'pending'
|
|
2820
2822
|
] as const satisfies [string, ...string[]] | WalletCreditResponseStatus[];
|
|
2821
2823
|
|
|
2822
2824
|
/**
|
package/src/helpers/keys.ts
CHANGED
|
@@ -19720,6 +19720,31 @@ export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT = 'amount' as keyof
|
|
|
19720
19720
|
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19721
19721
|
*/
|
|
19722
19722
|
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE = 'balance' as keyof WalletCreditResponseWithBalance;
|
|
19723
|
+
/**
|
|
19724
|
+
* Client Secret
|
|
19725
|
+
*
|
|
19726
|
+
* Client secret for 3DS authentication
|
|
19727
|
+
*
|
|
19728
|
+
*
|
|
19729
|
+
*
|
|
19730
|
+
* @remarks
|
|
19731
|
+
* This key constant provides type-safe access to the `client_secret` property of WalletCreditResponseWithBalance objects.
|
|
19732
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19733
|
+
*
|
|
19734
|
+
* @example
|
|
19735
|
+
* ```typescript
|
|
19736
|
+
* // Direct property access
|
|
19737
|
+
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET];
|
|
19738
|
+
*
|
|
19739
|
+
* // Dynamic property access
|
|
19740
|
+
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET;
|
|
19741
|
+
* const value = walletcreditresponsewithbalance[propertyName];
|
|
19742
|
+
* ```
|
|
19743
|
+
*
|
|
19744
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19745
|
+
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19746
|
+
*/
|
|
19747
|
+
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET = 'client_secret' as keyof WalletCreditResponseWithBalance;
|
|
19723
19748
|
/**
|
|
19724
19749
|
* Credit Id
|
|
19725
19750
|
*
|
|
@@ -19820,6 +19845,7 @@ export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS = 'status' as keyof
|
|
|
19820
19845
|
export const KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE = [
|
|
19821
19846
|
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT,
|
|
19822
19847
|
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE,
|
|
19848
|
+
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET,
|
|
19823
19849
|
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID,
|
|
19824
19850
|
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE,
|
|
19825
19851
|
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS,
|
package/src/openapi.yaml
CHANGED
|
@@ -5077,6 +5077,7 @@ components:
|
|
|
5077
5077
|
enum:
|
|
5078
5078
|
- success
|
|
5079
5079
|
- failed
|
|
5080
|
+
- pending
|
|
5080
5081
|
title: WalletCreditResponseStatus
|
|
5081
5082
|
type: string
|
|
5082
5083
|
WalletCreditResponseWithBalance:
|
|
@@ -5089,6 +5090,12 @@ components:
|
|
|
5089
5090
|
description: Updated wallet balance after the credit
|
|
5090
5091
|
title: Balance
|
|
5091
5092
|
type: string
|
|
5093
|
+
client_secret:
|
|
5094
|
+
anyOf:
|
|
5095
|
+
- type: string
|
|
5096
|
+
- type: 'null'
|
|
5097
|
+
description: Client secret for 3DS authentication
|
|
5098
|
+
title: Client Secret
|
|
5092
5099
|
credit_id:
|
|
5093
5100
|
description: Unique identifier of the wallet credit transaction
|
|
5094
5101
|
title: Credit Id
|
|
@@ -5106,6 +5113,7 @@ components:
|
|
|
5106
5113
|
- credit_id
|
|
5107
5114
|
- amount
|
|
5108
5115
|
- status
|
|
5116
|
+
- client_secret
|
|
5109
5117
|
- balance
|
|
5110
5118
|
title: WalletCreditResponseWithBalance
|
|
5111
5119
|
type: object
|
|
@@ -5213,7 +5221,7 @@ info:
|
|
|
5213
5221
|
'
|
|
5214
5222
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5215
5223
|
title: OpusDNS API
|
|
5216
|
-
version: 2025-09-
|
|
5224
|
+
version: 2025-09-30-110200
|
|
5217
5225
|
x-logo:
|
|
5218
5226
|
altText: OpusDNS API Reference
|
|
5219
5227
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8874,7 +8882,6 @@ paths:
|
|
|
8874
8882
|
summary: Create checkout session
|
|
8875
8883
|
tags:
|
|
8876
8884
|
- organization
|
|
8877
|
-
- organization
|
|
8878
8885
|
/v1/organizations/{organization_id}/billing/payment-methods:
|
|
8879
8886
|
get:
|
|
8880
8887
|
description: List all available payment methods for the organization
|
|
@@ -8913,7 +8920,6 @@ paths:
|
|
|
8913
8920
|
summary: List all payment methods
|
|
8914
8921
|
tags:
|
|
8915
8922
|
- organization
|
|
8916
|
-
- organization
|
|
8917
8923
|
/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}:
|
|
8918
8924
|
delete:
|
|
8919
8925
|
description: Delete a payment method for the organization
|
|
@@ -8950,7 +8956,6 @@ paths:
|
|
|
8950
8956
|
summary: Delete a payment method
|
|
8951
8957
|
tags:
|
|
8952
8958
|
- organization
|
|
8953
|
-
- organization
|
|
8954
8959
|
/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/default:
|
|
8955
8960
|
patch:
|
|
8956
8961
|
description: Set the provided payment method as default for the specified organization
|
|
@@ -8995,7 +9000,6 @@ paths:
|
|
|
8995
9000
|
summary: Set payment method as default
|
|
8996
9001
|
tags:
|
|
8997
9002
|
- organization
|
|
8998
|
-
- organization
|
|
8999
9003
|
/v1/organizations/{organization_id}/billing/wallet/credits:
|
|
9000
9004
|
post:
|
|
9001
9005
|
description: Credit the organization's wallet using the provided amount and
|
|
@@ -9037,7 +9041,6 @@ paths:
|
|
|
9037
9041
|
summary: Credit wallet
|
|
9038
9042
|
tags:
|
|
9039
9043
|
- organization
|
|
9040
|
-
- organization
|
|
9041
9044
|
/v1/organizations/{organization_id}/plan:
|
|
9042
9045
|
patch:
|
|
9043
9046
|
description: Changes the plan for an organization
|
package/src/schema.d.ts
CHANGED
|
@@ -4635,7 +4635,7 @@ export interface components {
|
|
|
4635
4635
|
* WalletCreditResponseStatus
|
|
4636
4636
|
* @enum {string}
|
|
4637
4637
|
*/
|
|
4638
|
-
WalletCreditResponseStatus: "success" | "failed";
|
|
4638
|
+
WalletCreditResponseStatus: "success" | "failed" | "pending";
|
|
4639
4639
|
/** WalletCreditResponseWithBalance */
|
|
4640
4640
|
WalletCreditResponseWithBalance: {
|
|
4641
4641
|
/**
|
|
@@ -4648,6 +4648,11 @@ export interface components {
|
|
|
4648
4648
|
* @description Updated wallet balance after the credit
|
|
4649
4649
|
*/
|
|
4650
4650
|
balance: string;
|
|
4651
|
+
/**
|
|
4652
|
+
* Client Secret
|
|
4653
|
+
* @description Client secret for 3DS authentication
|
|
4654
|
+
*/
|
|
4655
|
+
client_secret: string | null;
|
|
4651
4656
|
/**
|
|
4652
4657
|
* Credit Id
|
|
4653
4658
|
* @description Unique identifier of the wallet credit transaction
|