@opusdns/api 0.91.0 → 0.93.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 +8 -2
- package/src/helpers/requests.d.ts +4 -0
- package/src/helpers/responses.d.ts +4 -0
- package/src/openapi.yaml +12 -5
- package/src/schema.d.ts +12 -4
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -155,6 +155,8 @@ export const BILLING_TRANSACTION_ACTION = {
|
|
|
155
155
|
RESTORE: "restore",
|
|
156
156
|
TRADE: "trade",
|
|
157
157
|
APPLICATION: "application",
|
|
158
|
+
SERVICE_FEE: "service_fee",
|
|
159
|
+
WALLET_TOP_UP: "wallet_top_up",
|
|
158
160
|
} as const satisfies Record<string, BillingTransactionAction>;
|
|
159
161
|
|
|
160
162
|
/**
|
|
@@ -184,7 +186,9 @@ export const BILLING_TRANSACTION_ACTION_VALUES = [
|
|
|
184
186
|
'renew',
|
|
185
187
|
'restore',
|
|
186
188
|
'trade',
|
|
187
|
-
'application'
|
|
189
|
+
'application',
|
|
190
|
+
'service_fee',
|
|
191
|
+
'wallet_top_up'
|
|
188
192
|
] as const satisfies [string, ...string[]] | BillingTransactionAction[];
|
|
189
193
|
|
|
190
194
|
/**
|
|
@@ -211,6 +215,7 @@ export const BILLING_TRANSACTION_PRODUCT_TYPE = {
|
|
|
211
215
|
ZONES: "zones",
|
|
212
216
|
EMAIL_FORWARD: "email_forward",
|
|
213
217
|
DOMAIN_FORWARD: "domain_forward",
|
|
218
|
+
ACCOUNT_WALLET: "account_wallet",
|
|
214
219
|
} as const satisfies Record<string, BillingTransactionProductType>;
|
|
215
220
|
|
|
216
221
|
/**
|
|
@@ -238,7 +243,8 @@ export const BILLING_TRANSACTION_PRODUCT_TYPE_VALUES = [
|
|
|
238
243
|
'domain',
|
|
239
244
|
'zones',
|
|
240
245
|
'email_forward',
|
|
241
|
-
'domain_forward'
|
|
246
|
+
'domain_forward',
|
|
247
|
+
'account_wallet'
|
|
242
248
|
] as const satisfies [string, ...string[]] | BillingTransactionProductType[];
|
|
243
249
|
|
|
244
250
|
/**
|
|
@@ -1143,6 +1143,8 @@ export type PATCH_DomainForwardsZoneNameDisable_Request_Path = PATCH_DomainForwa
|
|
|
1143
1143
|
*
|
|
1144
1144
|
* @path /v1/domain-forwards/{zone_name}/enable
|
|
1145
1145
|
* @param zone_name (path) - DNS zone name (trailing dot optional)
|
|
1146
|
+
* @param auto_create_zone (query) - Auto create zone if it doesn't exist
|
|
1147
|
+
* @param wildcard (query) - Wildcard domain forwarding
|
|
1146
1148
|
*
|
|
1147
1149
|
* @see {@link PATCH_DomainForwardsZoneNameEnable_Request_Query} - Query parameters type
|
|
1148
1150
|
* @see {@link PATCH_DomainForwardsZoneNameEnable_Request_Path} - Path parameters type
|
|
@@ -1165,6 +1167,8 @@ export type PATCH_DomainForwardsZoneNameEnable_Request = {
|
|
|
1165
1167
|
* Use this type to ensure type safety for query parameters.
|
|
1166
1168
|
*
|
|
1167
1169
|
* @path /v1/domain-forwards/{zone_name}/enable
|
|
1170
|
+
* @param auto_create_zone (query) - Auto create zone if it doesn't exist
|
|
1171
|
+
* @param wildcard (query) - Wildcard domain forwarding
|
|
1168
1172
|
*/
|
|
1169
1173
|
export type PATCH_DomainForwardsZoneNameEnable_Request_Query = PATCH_DomainForwardsZoneNameEnable_Request['parameters']['query'];
|
|
1170
1174
|
/**
|
|
@@ -2094,6 +2094,8 @@ export type PATCH_DomainForwardsByZoneNameDisable_Response_422 = HTTPValidationE
|
|
|
2094
2094
|
*
|
|
2095
2095
|
* @path /v1/domain-forwards/{zone_name}/enable
|
|
2096
2096
|
* @param zone_name (path) - DNS zone name (trailing dot optional)
|
|
2097
|
+
* @param auto_create_zone (query) - Auto create zone if it doesn't exist
|
|
2098
|
+
* @param wildcard (query) - Wildcard domain forwarding
|
|
2097
2099
|
*
|
|
2098
2100
|
* @see {@link PATCH_DomainForwardsByZoneNameEnable_Response_422} - 422 response type
|
|
2099
2101
|
*
|
|
@@ -2113,6 +2115,8 @@ export type PATCH_DomainForwardsByZoneNameEnable_Response = PATCH_DomainForwards
|
|
|
2113
2115
|
*
|
|
2114
2116
|
* @path /v1/domain-forwards/{zone_name}/enable
|
|
2115
2117
|
* @param zone_name (path) - DNS zone name (trailing dot optional)
|
|
2118
|
+
* @param auto_create_zone (query) - Auto create zone if it doesn't exist
|
|
2119
|
+
* @param wildcard (query) - Wildcard domain forwarding
|
|
2116
2120
|
*
|
|
2117
2121
|
* @see {@link PATCH_DomainForwardsByZoneNameEnable_Response} - The main response type definition
|
|
2118
2122
|
* @see {@link HTTPValidationError} - The actual schema type definition
|
package/src/openapi.yaml
CHANGED
|
@@ -92,6 +92,8 @@ components:
|
|
|
92
92
|
- restore
|
|
93
93
|
- trade
|
|
94
94
|
- application
|
|
95
|
+
- service_fee
|
|
96
|
+
- wallet_top_up
|
|
95
97
|
title: BillingTransactionAction
|
|
96
98
|
type: string
|
|
97
99
|
BillingTransactionProductType:
|
|
@@ -100,6 +102,7 @@ components:
|
|
|
100
102
|
- zones
|
|
101
103
|
- email_forward
|
|
102
104
|
- domain_forward
|
|
105
|
+
- account_wallet
|
|
103
106
|
title: BillingTransactionProductType
|
|
104
107
|
type: string
|
|
105
108
|
BillingTransactionResponse:
|
|
@@ -1549,13 +1552,13 @@ components:
|
|
|
1549
1552
|
title: Updated On
|
|
1550
1553
|
type: string
|
|
1551
1554
|
wildcard:
|
|
1555
|
+
default: false
|
|
1552
1556
|
title: Wildcard
|
|
1553
1557
|
type: boolean
|
|
1554
1558
|
zone_name:
|
|
1555
1559
|
title: Zone Name
|
|
1556
1560
|
type: string
|
|
1557
1561
|
required:
|
|
1558
|
-
- wildcard
|
|
1559
1562
|
- redirects
|
|
1560
1563
|
- zone_name
|
|
1561
1564
|
- request_protocol
|
|
@@ -1615,10 +1618,10 @@ components:
|
|
|
1615
1618
|
title: Redirects
|
|
1616
1619
|
type: array
|
|
1617
1620
|
wildcard:
|
|
1621
|
+
default: false
|
|
1618
1622
|
title: Wildcard
|
|
1619
1623
|
type: boolean
|
|
1620
1624
|
required:
|
|
1621
|
-
- wildcard
|
|
1622
1625
|
- redirects
|
|
1623
1626
|
title: DomainForwardRequest
|
|
1624
1627
|
type: object
|
|
@@ -5108,7 +5111,7 @@ info:
|
|
|
5108
5111
|
'
|
|
5109
5112
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5110
5113
|
title: OpusDNS API
|
|
5111
|
-
version: 2025-
|
|
5114
|
+
version: 2025-11-12-143559
|
|
5112
5115
|
x-logo:
|
|
5113
5116
|
altText: OpusDNS API Reference
|
|
5114
5117
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -6777,18 +6780,22 @@ paths:
|
|
|
6777
6780
|
description: DNS zone name (trailing dot optional)
|
|
6778
6781
|
title: Zone Name
|
|
6779
6782
|
type: string
|
|
6780
|
-
-
|
|
6783
|
+
- description: Auto create zone if it doesn't exist
|
|
6784
|
+
in: query
|
|
6781
6785
|
name: auto_create_zone
|
|
6782
6786
|
required: false
|
|
6783
6787
|
schema:
|
|
6784
6788
|
default: false
|
|
6789
|
+
description: Auto create zone if it doesn't exist
|
|
6785
6790
|
title: Auto Create Zone
|
|
6786
6791
|
type: boolean
|
|
6787
|
-
-
|
|
6792
|
+
- description: Wildcard domain forwarding
|
|
6793
|
+
in: query
|
|
6788
6794
|
name: wildcard
|
|
6789
6795
|
required: false
|
|
6790
6796
|
schema:
|
|
6791
6797
|
default: false
|
|
6798
|
+
description: Wildcard domain forwarding
|
|
6792
6799
|
title: Wildcard
|
|
6793
6800
|
type: boolean
|
|
6794
6801
|
responses:
|
package/src/schema.d.ts
CHANGED
|
@@ -1273,12 +1273,12 @@ export interface components {
|
|
|
1273
1273
|
* BillingTransactionAction
|
|
1274
1274
|
* @enum {string}
|
|
1275
1275
|
*/
|
|
1276
|
-
BillingTransactionAction: "create" | "transfer" | "renew" | "restore" | "trade" | "application";
|
|
1276
|
+
BillingTransactionAction: "create" | "transfer" | "renew" | "restore" | "trade" | "application" | "service_fee" | "wallet_top_up";
|
|
1277
1277
|
/**
|
|
1278
1278
|
* BillingTransactionProductType
|
|
1279
1279
|
* @enum {string}
|
|
1280
1280
|
*/
|
|
1281
|
-
BillingTransactionProductType: "domain" | "zones" | "email_forward" | "domain_forward";
|
|
1281
|
+
BillingTransactionProductType: "domain" | "zones" | "email_forward" | "domain_forward" | "account_wallet";
|
|
1282
1282
|
/** BillingTransactionResponse */
|
|
1283
1283
|
BillingTransactionResponse: {
|
|
1284
1284
|
/** @description The action performed in the transaction */
|
|
@@ -2284,7 +2284,10 @@ export interface components {
|
|
|
2284
2284
|
* Format: date-time
|
|
2285
2285
|
*/
|
|
2286
2286
|
updated_on: Date;
|
|
2287
|
-
/**
|
|
2287
|
+
/**
|
|
2288
|
+
* Wildcard
|
|
2289
|
+
* @default false
|
|
2290
|
+
*/
|
|
2288
2291
|
wildcard: boolean;
|
|
2289
2292
|
/** Zone Name */
|
|
2290
2293
|
zone_name: string;
|
|
@@ -2312,7 +2315,10 @@ export interface components {
|
|
|
2312
2315
|
DomainForwardRequest: {
|
|
2313
2316
|
/** Redirects */
|
|
2314
2317
|
redirects: components["schemas"]["HttpRedirect"][];
|
|
2315
|
-
/**
|
|
2318
|
+
/**
|
|
2319
|
+
* Wildcard
|
|
2320
|
+
* @default false
|
|
2321
|
+
*/
|
|
2316
2322
|
wildcard: boolean;
|
|
2317
2323
|
};
|
|
2318
2324
|
/** DomainForwardZone */
|
|
@@ -5969,7 +5975,9 @@ export interface operations {
|
|
|
5969
5975
|
enable_domain_forward_v1_domain_forwards__zone_name__enable_patch: {
|
|
5970
5976
|
parameters: {
|
|
5971
5977
|
query?: {
|
|
5978
|
+
/** @description Auto create zone if it doesn't exist */
|
|
5972
5979
|
auto_create_zone?: boolean;
|
|
5980
|
+
/** @description Wildcard domain forwarding */
|
|
5973
5981
|
wildcard?: boolean;
|
|
5974
5982
|
};
|
|
5975
5983
|
header?: never;
|