@vercel/sdk 1.18.0 → 1.18.1
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/bin/mcp-server.js +462 -388
- package/bin/mcp-server.js.map +36 -36
- package/esm/__tests__/accessgroups.test.js +3 -1
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/checks.test.js +1 -1
- package/esm/__tests__/checks.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +3 -6
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/drains.test.js +27 -0
- package/esm/__tests__/drains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +7 -6
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +11 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/integrationsGetBillingPlans.js +1 -0
- package/esm/funcs/integrationsGetBillingPlans.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/buydomainsop.d.ts +4 -4
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.d.ts +1 -4
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +18 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +17 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +18 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +17 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createdrainop.d.ts +8 -8
- package/esm/models/createdrainop.d.ts.map +1 -1
- package/esm/models/createdrainop.js +8 -10
- package/esm/models/createdrainop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +152 -152
- package/esm/models/createintegrationstoredirectop.js +218 -218
- package/esm/models/createprojectop.d.ts +2 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +4 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getalllogdrainsop.d.ts +8 -8
- package/esm/models/getalllogdrainsop.d.ts.map +1 -1
- package/esm/models/getalllogdrainsop.js +8 -10
- package/esm/models/getalllogdrainsop.js.map +1 -1
- package/esm/models/getbillingplansop.d.ts +2 -0
- package/esm/models/getbillingplansop.d.ts.map +1 -1
- package/esm/models/getbillingplansop.js +2 -0
- package/esm/models/getbillingplansop.js.map +1 -1
- package/esm/models/getbulkavailabilityop.d.ts +3 -0
- package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
- package/esm/models/getbulkavailabilityop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +2 -38
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +4 -35
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +200 -200
- package/esm/models/getconfigurationproductsop.js +290 -290
- package/esm/models/getconfigurationsop.d.ts +2 -38
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +4 -35
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +18 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +20 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +36 -15
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.js +36 -6
- package/esm/models/getdomainpriceop.js.map +1 -1
- package/esm/models/getdrainop.d.ts +8 -8
- package/esm/models/getdrainop.d.ts.map +1 -1
- package/esm/models/getdrainop.js +8 -10
- package/esm/models/getdrainop.js.map +1 -1
- package/esm/models/getdrainsop.d.ts +8 -8
- package/esm/models/getdrainsop.d.ts.map +1 -1
- package/esm/models/getdrainsop.js +8 -8
- package/esm/models/getdrainsop.js.map +1 -1
- package/esm/models/getinvoiceop.d.ts +10 -0
- package/esm/models/getinvoiceop.d.ts.map +1 -1
- package/esm/models/getinvoiceop.js +4 -0
- package/esm/models/getinvoiceop.js.map +1 -1
- package/esm/models/getorderop.d.ts +9 -9
- package/esm/models/getorderop.d.ts.map +1 -1
- package/esm/models/getprojectsop.d.ts +2 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/gettldpriceop.d.ts +36 -15
- package/esm/models/gettldpriceop.d.ts.map +1 -1
- package/esm/models/gettldpriceop.js +36 -6
- package/esm/models/gettldpriceop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +2 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +4 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +4 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/renewdomainop.d.ts +1 -4
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/renewdomainop.js.map +1 -1
- package/esm/models/transferindomainop.d.ts +4 -4
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/updatedrainop.d.ts +8 -8
- package/esm/models/updatedrainop.d.ts.map +1 -1
- package/esm/models/updatedrainop.js +8 -12
- package/esm/models/updatedrainop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +2 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +2 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +2 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +2 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +52 -10
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +50 -10
- package/esm/models/userevent.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +3 -1
- package/src/__tests__/checks.test.ts +1 -1
- package/src/__tests__/domains.test.ts +3 -6
- package/src/__tests__/drains.test.ts +27 -0
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +7 -6
- package/src/__tests__/security.test.ts +11 -1
- package/src/funcs/integrationsGetBillingPlans.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/buydomainsop.ts +4 -4
- package/src/models/buysingledomainop.ts +1 -4
- package/src/models/canceldeploymentop.ts +29 -0
- package/src/models/createdeploymentop.ts +29 -0
- package/src/models/createdrainop.ts +19 -29
- package/src/models/createintegrationstoredirectop.ts +471 -471
- package/src/models/createprojectop.ts +4 -0
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/getalllogdrainsop.ts +20 -26
- package/src/models/getbillingplansop.ts +4 -0
- package/src/models/getbulkavailabilityop.ts +3 -0
- package/src/models/getconfigurationop.ts +6 -60
- package/src/models/getconfigurationproductsop.ts +627 -627
- package/src/models/getconfigurationsop.ts +6 -60
- package/src/models/getdeploymentop.ts +30 -0
- package/src/models/getdomainpriceop.ts +124 -21
- package/src/models/getdrainop.ts +20 -26
- package/src/models/getdrainsop.ts +20 -24
- package/src/models/getinvoiceop.ts +14 -0
- package/src/models/getorderop.ts +9 -9
- package/src/models/getprojectsop.ts +4 -0
- package/src/models/gettldpriceop.ts +108 -21
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +4 -0
- package/src/models/renewdomainop.ts +1 -4
- package/src/models/transferindomainop.ts +4 -4
- package/src/models/updatedrainop.ts +20 -28
- package/src/models/updateprojectdatacacheop.ts +4 -0
- package/src/models/updateprojectop.ts +4 -0
- package/src/models/userevent.ts +112 -22
- package/tsconfig.json +1 -1
- package/vercel-spec.json +312 -159
|
@@ -148,6 +148,14 @@ export type GetInvoiceResponseBody = {
|
|
|
148
148
|
* Subscription period for this billing cycle. ISO 8601 timestamps.
|
|
149
149
|
*/
|
|
150
150
|
period: GetInvoicePeriod;
|
|
151
|
+
/**
|
|
152
|
+
* Moment the invoice was paid. ISO 8601 timestamp.
|
|
153
|
+
*/
|
|
154
|
+
paidAt?: string | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Most recent moment the invoice was refunded. ISO 8601 timestamp.
|
|
157
|
+
*/
|
|
158
|
+
refundedAt?: string | undefined;
|
|
151
159
|
/**
|
|
152
160
|
* Additional memo for the invoice.
|
|
153
161
|
*/
|
|
@@ -409,6 +417,8 @@ export const GetInvoiceResponseBody$inboundSchema: z.ZodType<
|
|
|
409
417
|
invoiceNumber: z.string().optional(),
|
|
410
418
|
invoiceDate: z.string(),
|
|
411
419
|
period: z.lazy(() => GetInvoicePeriod$inboundSchema),
|
|
420
|
+
paidAt: z.string().optional(),
|
|
421
|
+
refundedAt: z.string().optional(),
|
|
412
422
|
memo: z.string().optional(),
|
|
413
423
|
items: z.array(z.lazy(() => GetInvoiceItems$inboundSchema)),
|
|
414
424
|
discounts: z.array(z.lazy(() => GetInvoiceDiscounts$inboundSchema))
|
|
@@ -428,6 +438,8 @@ export type GetInvoiceResponseBody$Outbound = {
|
|
|
428
438
|
invoiceNumber?: string | undefined;
|
|
429
439
|
invoiceDate: string;
|
|
430
440
|
period: GetInvoicePeriod$Outbound;
|
|
441
|
+
paidAt?: string | undefined;
|
|
442
|
+
refundedAt?: string | undefined;
|
|
431
443
|
memo?: string | undefined;
|
|
432
444
|
items: Array<GetInvoiceItems$Outbound>;
|
|
433
445
|
discounts?: Array<GetInvoiceDiscounts$Outbound> | undefined;
|
|
@@ -451,6 +463,8 @@ export const GetInvoiceResponseBody$outboundSchema: z.ZodType<
|
|
|
451
463
|
invoiceNumber: z.string().optional(),
|
|
452
464
|
invoiceDate: z.string(),
|
|
453
465
|
period: z.lazy(() => GetInvoicePeriod$outboundSchema),
|
|
466
|
+
paidAt: z.string().optional(),
|
|
467
|
+
refundedAt: z.string().optional(),
|
|
454
468
|
memo: z.string().optional(),
|
|
455
469
|
items: z.array(z.lazy(() => GetInvoiceItems$outboundSchema)),
|
|
456
470
|
discounts: z.array(z.lazy(() => GetInvoiceDiscounts$outboundSchema))
|
package/src/models/getorderop.ts
CHANGED
|
@@ -83,11 +83,11 @@ export type Domains3 = {
|
|
|
83
83
|
* The number of years the domain is being transferred for.
|
|
84
84
|
*/
|
|
85
85
|
years: number;
|
|
86
|
-
domainName: string;
|
|
87
|
-
status: GetOrderDomainsDomainsRegistrarStatus;
|
|
88
86
|
/**
|
|
89
|
-
*
|
|
87
|
+
* A valid domain name
|
|
90
88
|
*/
|
|
89
|
+
domainName: string;
|
|
90
|
+
status: GetOrderDomainsDomainsRegistrarStatus;
|
|
91
91
|
price: number;
|
|
92
92
|
error?:
|
|
93
93
|
| GetOrderErrorDomainsRegistrar2
|
|
@@ -145,11 +145,11 @@ export type Domains2 = {
|
|
|
145
145
|
* The number of years the domain is being renewed for.
|
|
146
146
|
*/
|
|
147
147
|
years: number;
|
|
148
|
-
domainName: string;
|
|
149
|
-
status: GetOrderDomainsStatus;
|
|
150
148
|
/**
|
|
151
|
-
*
|
|
149
|
+
* A valid domain name
|
|
152
150
|
*/
|
|
151
|
+
domainName: string;
|
|
152
|
+
status: GetOrderDomainsStatus;
|
|
153
153
|
price: number;
|
|
154
154
|
error?:
|
|
155
155
|
| GetOrderError2
|
|
@@ -208,11 +208,11 @@ export type Domains1 = {
|
|
|
208
208
|
* The number of years the domain is being purchased for.
|
|
209
209
|
*/
|
|
210
210
|
years: number;
|
|
211
|
-
domainName: string;
|
|
212
|
-
status: DomainsStatus;
|
|
213
211
|
/**
|
|
214
|
-
*
|
|
212
|
+
* A valid domain name
|
|
215
213
|
*/
|
|
214
|
+
domainName: string;
|
|
215
|
+
status: DomainsStatus;
|
|
216
216
|
price: number;
|
|
217
217
|
error?:
|
|
218
218
|
| GetOrderErrorDomainsRegistrarResponse2
|
|
@@ -1292,6 +1292,7 @@ export type GetProjectsPermissions = {
|
|
|
1292
1292
|
accessGroup?: Array<ACLAction> | undefined;
|
|
1293
1293
|
agent?: Array<ACLAction> | undefined;
|
|
1294
1294
|
alerts?: Array<ACLAction> | undefined;
|
|
1295
|
+
alertRules?: Array<ACLAction> | undefined;
|
|
1295
1296
|
aliasGlobal?: Array<ACLAction> | undefined;
|
|
1296
1297
|
analyticsSampling?: Array<ACLAction> | undefined;
|
|
1297
1298
|
analyticsUsage?: Array<ACLAction> | undefined;
|
|
@@ -6537,6 +6538,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
|
|
|
6537
6538
|
accessGroup: z.array(ACLAction$inboundSchema).optional(),
|
|
6538
6539
|
agent: z.array(ACLAction$inboundSchema).optional(),
|
|
6539
6540
|
alerts: z.array(ACLAction$inboundSchema).optional(),
|
|
6541
|
+
alertRules: z.array(ACLAction$inboundSchema).optional(),
|
|
6540
6542
|
aliasGlobal: z.array(ACLAction$inboundSchema).optional(),
|
|
6541
6543
|
analyticsSampling: z.array(ACLAction$inboundSchema).optional(),
|
|
6542
6544
|
analyticsUsage: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -6770,6 +6772,7 @@ export type GetProjectsPermissions$Outbound = {
|
|
|
6770
6772
|
accessGroup?: Array<string> | undefined;
|
|
6771
6773
|
agent?: Array<string> | undefined;
|
|
6772
6774
|
alerts?: Array<string> | undefined;
|
|
6775
|
+
alertRules?: Array<string> | undefined;
|
|
6773
6776
|
aliasGlobal?: Array<string> | undefined;
|
|
6774
6777
|
analyticsSampling?: Array<string> | undefined;
|
|
6775
6778
|
analyticsUsage?: Array<string> | undefined;
|
|
@@ -6997,6 +7000,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
|
|
|
6997
7000
|
accessGroup: z.array(ACLAction$outboundSchema).optional(),
|
|
6998
7001
|
agent: z.array(ACLAction$outboundSchema).optional(),
|
|
6999
7002
|
alerts: z.array(ACLAction$outboundSchema).optional(),
|
|
7003
|
+
alertRules: z.array(ACLAction$outboundSchema).optional(),
|
|
7000
7004
|
aliasGlobal: z.array(ACLAction$outboundSchema).optional(),
|
|
7001
7005
|
analyticsSampling: z.array(ACLAction$outboundSchema).optional(),
|
|
7002
7006
|
analyticsUsage: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
|
|
22
22
|
export type GetTldPriceRequest = {
|
|
23
23
|
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.
|
|
26
|
+
*/
|
|
24
27
|
years?: string | undefined;
|
|
25
28
|
teamId?: string | undefined;
|
|
26
29
|
};
|
|
@@ -32,6 +35,12 @@ export type GetTldPriceDomainsRegistrarResponseBody =
|
|
|
32
35
|
| TldNotSupported
|
|
33
36
|
| HttpApiDecodeError;
|
|
34
37
|
|
|
38
|
+
export type PurchasePrice = number | string;
|
|
39
|
+
|
|
40
|
+
export type RenewalPrice = number | string;
|
|
41
|
+
|
|
42
|
+
export type TransferPrice = number | string;
|
|
43
|
+
|
|
35
44
|
/**
|
|
36
45
|
* Success
|
|
37
46
|
*/
|
|
@@ -40,18 +49,9 @@ export type GetTldPriceResponseBody = {
|
|
|
40
49
|
* The number of years the returned price is for.
|
|
41
50
|
*/
|
|
42
51
|
years: number;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
purchasePrice: number | null;
|
|
47
|
-
/**
|
|
48
|
-
* The base TLD price for renewing a domain for the given number of years. If null, the TLD does not support renewing domains for the given number of years.
|
|
49
|
-
*/
|
|
50
|
-
renewalPrice: number | null;
|
|
51
|
-
/**
|
|
52
|
-
* The base TLD price for transferring a domain in for the given number of years. If null, the TLD does not support transferring domains in for the given number of years.
|
|
53
|
-
*/
|
|
54
|
-
transferPrice: number | null;
|
|
52
|
+
purchasePrice: number | string;
|
|
53
|
+
renewalPrice: number | string;
|
|
54
|
+
transferPrice: number | string;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
@@ -146,6 +146,93 @@ export function getTldPriceDomainsRegistrarResponseBodyFromJSON(
|
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const PurchasePrice$inboundSchema: z.ZodType<
|
|
151
|
+
PurchasePrice,
|
|
152
|
+
z.ZodTypeDef,
|
|
153
|
+
unknown
|
|
154
|
+
> = z.union([z.number(), z.string()]);
|
|
155
|
+
/** @internal */
|
|
156
|
+
export type PurchasePrice$Outbound = number | string;
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const PurchasePrice$outboundSchema: z.ZodType<
|
|
160
|
+
PurchasePrice$Outbound,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
PurchasePrice
|
|
163
|
+
> = z.union([z.number(), z.string()]);
|
|
164
|
+
|
|
165
|
+
export function purchasePriceToJSON(purchasePrice: PurchasePrice): string {
|
|
166
|
+
return JSON.stringify(PurchasePrice$outboundSchema.parse(purchasePrice));
|
|
167
|
+
}
|
|
168
|
+
export function purchasePriceFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<PurchasePrice, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => PurchasePrice$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'PurchasePrice' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const RenewalPrice$inboundSchema: z.ZodType<
|
|
180
|
+
RenewalPrice,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
unknown
|
|
183
|
+
> = z.union([z.number(), z.string()]);
|
|
184
|
+
/** @internal */
|
|
185
|
+
export type RenewalPrice$Outbound = number | string;
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const RenewalPrice$outboundSchema: z.ZodType<
|
|
189
|
+
RenewalPrice$Outbound,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
RenewalPrice
|
|
192
|
+
> = z.union([z.number(), z.string()]);
|
|
193
|
+
|
|
194
|
+
export function renewalPriceToJSON(renewalPrice: RenewalPrice): string {
|
|
195
|
+
return JSON.stringify(RenewalPrice$outboundSchema.parse(renewalPrice));
|
|
196
|
+
}
|
|
197
|
+
export function renewalPriceFromJSON(
|
|
198
|
+
jsonString: string,
|
|
199
|
+
): SafeParseResult<RenewalPrice, SDKValidationError> {
|
|
200
|
+
return safeParse(
|
|
201
|
+
jsonString,
|
|
202
|
+
(x) => RenewalPrice$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
+
`Failed to parse 'RenewalPrice' from JSON`,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const TransferPrice$inboundSchema: z.ZodType<
|
|
209
|
+
TransferPrice,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
unknown
|
|
212
|
+
> = z.union([z.number(), z.string()]);
|
|
213
|
+
/** @internal */
|
|
214
|
+
export type TransferPrice$Outbound = number | string;
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const TransferPrice$outboundSchema: z.ZodType<
|
|
218
|
+
TransferPrice$Outbound,
|
|
219
|
+
z.ZodTypeDef,
|
|
220
|
+
TransferPrice
|
|
221
|
+
> = z.union([z.number(), z.string()]);
|
|
222
|
+
|
|
223
|
+
export function transferPriceToJSON(transferPrice: TransferPrice): string {
|
|
224
|
+
return JSON.stringify(TransferPrice$outboundSchema.parse(transferPrice));
|
|
225
|
+
}
|
|
226
|
+
export function transferPriceFromJSON(
|
|
227
|
+
jsonString: string,
|
|
228
|
+
): SafeParseResult<TransferPrice, SDKValidationError> {
|
|
229
|
+
return safeParse(
|
|
230
|
+
jsonString,
|
|
231
|
+
(x) => TransferPrice$inboundSchema.parse(JSON.parse(x)),
|
|
232
|
+
`Failed to parse 'TransferPrice' from JSON`,
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
149
236
|
/** @internal */
|
|
150
237
|
export const GetTldPriceResponseBody$inboundSchema: z.ZodType<
|
|
151
238
|
GetTldPriceResponseBody,
|
|
@@ -153,16 +240,16 @@ export const GetTldPriceResponseBody$inboundSchema: z.ZodType<
|
|
|
153
240
|
unknown
|
|
154
241
|
> = z.object({
|
|
155
242
|
years: z.number(),
|
|
156
|
-
purchasePrice: z.
|
|
157
|
-
renewalPrice: z.
|
|
158
|
-
transferPrice: z.
|
|
243
|
+
purchasePrice: z.union([z.number(), z.string()]),
|
|
244
|
+
renewalPrice: z.union([z.number(), z.string()]),
|
|
245
|
+
transferPrice: z.union([z.number(), z.string()]),
|
|
159
246
|
});
|
|
160
247
|
/** @internal */
|
|
161
248
|
export type GetTldPriceResponseBody$Outbound = {
|
|
162
249
|
years: number;
|
|
163
|
-
purchasePrice: number |
|
|
164
|
-
renewalPrice: number |
|
|
165
|
-
transferPrice: number |
|
|
250
|
+
purchasePrice: number | string;
|
|
251
|
+
renewalPrice: number | string;
|
|
252
|
+
transferPrice: number | string;
|
|
166
253
|
};
|
|
167
254
|
|
|
168
255
|
/** @internal */
|
|
@@ -172,9 +259,9 @@ export const GetTldPriceResponseBody$outboundSchema: z.ZodType<
|
|
|
172
259
|
GetTldPriceResponseBody
|
|
173
260
|
> = z.object({
|
|
174
261
|
years: z.number(),
|
|
175
|
-
purchasePrice: z.
|
|
176
|
-
renewalPrice: z.
|
|
177
|
-
transferPrice: z.
|
|
262
|
+
purchasePrice: z.union([z.number(), z.string()]),
|
|
263
|
+
renewalPrice: z.union([z.number(), z.string()]),
|
|
264
|
+
transferPrice: z.union([z.number(), z.string()]),
|
|
178
265
|
});
|
|
179
266
|
|
|
180
267
|
export function getTldPriceResponseBodyToJSON(
|
|
@@ -56,6 +56,8 @@ export const GetWebhookEvents = {
|
|
|
56
56
|
EdgeConfigDeleted: "edge-config.deleted",
|
|
57
57
|
EdgeConfigItemsUpdated: "edge-config.items.updated",
|
|
58
58
|
FirewallAttack: "firewall.attack",
|
|
59
|
+
FirewallSystemRuleAnomaly: "firewall.system-rule-anomaly",
|
|
60
|
+
FirewallCustomRuleAnomaly: "firewall.custom-rule-anomaly",
|
|
59
61
|
IntegrationConfigurationPermissionUpgraded:
|
|
60
62
|
"integration-configuration.permission-upgraded",
|
|
61
63
|
IntegrationConfigurationRemoved: "integration-configuration.removed",
|
|
@@ -56,6 +56,8 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
56
56
|
EdgeConfigDeleted: "edge-config.deleted",
|
|
57
57
|
EdgeConfigItemsUpdated: "edge-config.items.updated",
|
|
58
58
|
FirewallAttack: "firewall.attack",
|
|
59
|
+
FirewallSystemRuleAnomaly: "firewall.system-rule-anomaly",
|
|
60
|
+
FirewallCustomRuleAnomaly: "firewall.custom-rule-anomaly",
|
|
59
61
|
IntegrationConfigurationPermissionUpgraded:
|
|
60
62
|
"integration-configuration.permission-upgraded",
|
|
61
63
|
IntegrationConfigurationRemoved: "integration-configuration.removed",
|
|
@@ -250,6 +252,8 @@ export const ResponseBodyEvents = {
|
|
|
250
252
|
EdgeConfigDeleted: "edge-config.deleted",
|
|
251
253
|
EdgeConfigItemsUpdated: "edge-config.items.updated",
|
|
252
254
|
FirewallAttack: "firewall.attack",
|
|
255
|
+
FirewallSystemRuleAnomaly: "firewall.system-rule-anomaly",
|
|
256
|
+
FirewallCustomRuleAnomaly: "firewall.custom-rule-anomaly",
|
|
253
257
|
IntegrationConfigurationPermissionUpgraded:
|
|
254
258
|
"integration-configuration.permission-upgraded",
|
|
255
259
|
IntegrationConfigurationRemoved: "integration-configuration.removed",
|
|
@@ -73,7 +73,7 @@ export type RenewDomainContactInformation = {
|
|
|
73
73
|
*/
|
|
74
74
|
lastName: string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* A valid RFC 5322 email address
|
|
77
77
|
*/
|
|
78
78
|
email: string;
|
|
79
79
|
/**
|
|
@@ -119,9 +119,6 @@ export type RenewDomainRequestBody = {
|
|
|
119
119
|
* The number of years to renew the domain for.
|
|
120
120
|
*/
|
|
121
121
|
years: number;
|
|
122
|
-
/**
|
|
123
|
-
* The expected price for the domain. Use the [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain) endpoint to retrieve the price data for a domain.
|
|
124
|
-
*/
|
|
125
122
|
expectedPrice: number;
|
|
126
123
|
contactInformation?: RenewDomainContactInformation | undefined;
|
|
127
124
|
};
|
|
@@ -79,7 +79,7 @@ export type TransferInDomainContactInformation = {
|
|
|
79
79
|
*/
|
|
80
80
|
lastName: string;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* A valid RFC 5322 email address
|
|
83
83
|
*/
|
|
84
84
|
email: string;
|
|
85
85
|
/**
|
|
@@ -121,6 +121,9 @@ export type TransferInDomainContactInformation = {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
export type TransferInDomainRequestBody = {
|
|
124
|
+
/**
|
|
125
|
+
* The auth code for the domain. You must obtain this code from the losing registrar.
|
|
126
|
+
*/
|
|
124
127
|
authCode: string;
|
|
125
128
|
/**
|
|
126
129
|
* Whether the domain should be auto-renewed before it expires. This can be configured later through the Vercel Dashboard or the [Update auto-renew for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/update-auto-renew-for-a-domain) endpoint.
|
|
@@ -130,9 +133,6 @@ export type TransferInDomainRequestBody = {
|
|
|
130
133
|
* The number of years to renew the domain for once it is transferred in. This must be a valid number of transfer years for the TLD.
|
|
131
134
|
*/
|
|
132
135
|
years: number;
|
|
133
|
-
/**
|
|
134
|
-
* The expected price for the domain. Use the [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain) endpoint to retrieve the price data for a domain.
|
|
135
|
-
*/
|
|
136
136
|
expectedPrice: number;
|
|
137
137
|
contactInformation: TransferInDomainContactInformation;
|
|
138
138
|
};
|
|
@@ -477,13 +477,12 @@ export type UpdateDrainResponseBody2 = {
|
|
|
477
477
|
createdAt: number;
|
|
478
478
|
updatedAt: number;
|
|
479
479
|
projectIds?: Array<string> | undefined;
|
|
480
|
-
schemas
|
|
481
|
-
delivery
|
|
480
|
+
schemas: UpdateDrainResponseBodyDrainsSchemas;
|
|
481
|
+
delivery:
|
|
482
482
|
| UpdateDrainDeliveryDrainsResponse1
|
|
483
483
|
| UpdateDrainDeliveryDrainsResponse2
|
|
484
484
|
| UpdateDrainDeliveryDrains3
|
|
485
|
-
| UpdateDrainDeliveryDrains4
|
|
486
|
-
| undefined;
|
|
485
|
+
| UpdateDrainDeliveryDrains4;
|
|
487
486
|
sampling?: Array<UpdateDrainResponseBodyDrainsSampling> | undefined;
|
|
488
487
|
teamId?: string | null | undefined;
|
|
489
488
|
status?: UpdateDrainResponseBodyDrainsStatus | undefined;
|
|
@@ -741,13 +740,12 @@ export type UpdateDrainResponseBody1 = {
|
|
|
741
740
|
createdAt: number;
|
|
742
741
|
updatedAt: number;
|
|
743
742
|
projectIds?: Array<string> | undefined;
|
|
744
|
-
schemas
|
|
745
|
-
delivery
|
|
743
|
+
schemas: UpdateDrainResponseBodySchemas;
|
|
744
|
+
delivery:
|
|
746
745
|
| UpdateDrainDeliveryDrains1
|
|
747
746
|
| UpdateDrainDeliveryDrains2
|
|
748
747
|
| UpdateDrainDelivery3
|
|
749
|
-
| UpdateDrainDelivery4
|
|
750
|
-
| undefined;
|
|
748
|
+
| UpdateDrainDelivery4;
|
|
751
749
|
sampling?: Array<UpdateDrainResponseBodySampling> | undefined;
|
|
752
750
|
teamId?: string | null | undefined;
|
|
753
751
|
status?: UpdateDrainResponseBodyStatus | undefined;
|
|
@@ -3470,14 +3468,13 @@ export const UpdateDrainResponseBody2$inboundSchema: z.ZodType<
|
|
|
3470
3468
|
createdAt: z.number(),
|
|
3471
3469
|
updatedAt: z.number(),
|
|
3472
3470
|
projectIds: z.array(z.string()).optional(),
|
|
3473
|
-
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$inboundSchema)
|
|
3474
|
-
.optional(),
|
|
3471
|
+
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$inboundSchema),
|
|
3475
3472
|
delivery: z.union([
|
|
3476
3473
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse1$inboundSchema),
|
|
3477
3474
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse2$inboundSchema),
|
|
3478
3475
|
z.lazy(() => UpdateDrainDeliveryDrains3$inboundSchema),
|
|
3479
3476
|
z.lazy(() => UpdateDrainDeliveryDrains4$inboundSchema),
|
|
3480
|
-
])
|
|
3477
|
+
]),
|
|
3481
3478
|
sampling: z.array(
|
|
3482
3479
|
z.lazy(() => UpdateDrainResponseBodyDrainsSampling$inboundSchema),
|
|
3483
3480
|
).optional(),
|
|
@@ -3513,13 +3510,12 @@ export type UpdateDrainResponseBody2$Outbound = {
|
|
|
3513
3510
|
createdAt: number;
|
|
3514
3511
|
updatedAt: number;
|
|
3515
3512
|
projectIds?: Array<string> | undefined;
|
|
3516
|
-
schemas
|
|
3517
|
-
delivery
|
|
3513
|
+
schemas: UpdateDrainResponseBodyDrainsSchemas$Outbound;
|
|
3514
|
+
delivery:
|
|
3518
3515
|
| UpdateDrainDeliveryDrainsResponse1$Outbound
|
|
3519
3516
|
| UpdateDrainDeliveryDrainsResponse2$Outbound
|
|
3520
3517
|
| UpdateDrainDeliveryDrains3$Outbound
|
|
3521
|
-
| UpdateDrainDeliveryDrains4$Outbound
|
|
3522
|
-
| undefined;
|
|
3518
|
+
| UpdateDrainDeliveryDrains4$Outbound;
|
|
3523
3519
|
sampling?: Array<UpdateDrainResponseBodyDrainsSampling$Outbound> | undefined;
|
|
3524
3520
|
teamId?: string | null | undefined;
|
|
3525
3521
|
status?: string | undefined;
|
|
@@ -3556,14 +3552,13 @@ export const UpdateDrainResponseBody2$outboundSchema: z.ZodType<
|
|
|
3556
3552
|
createdAt: z.number(),
|
|
3557
3553
|
updatedAt: z.number(),
|
|
3558
3554
|
projectIds: z.array(z.string()).optional(),
|
|
3559
|
-
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$outboundSchema)
|
|
3560
|
-
.optional(),
|
|
3555
|
+
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$outboundSchema),
|
|
3561
3556
|
delivery: z.union([
|
|
3562
3557
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse1$outboundSchema),
|
|
3563
3558
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse2$outboundSchema),
|
|
3564
3559
|
z.lazy(() => UpdateDrainDeliveryDrains3$outboundSchema),
|
|
3565
3560
|
z.lazy(() => UpdateDrainDeliveryDrains4$outboundSchema),
|
|
3566
|
-
])
|
|
3561
|
+
]),
|
|
3567
3562
|
sampling: z.array(
|
|
3568
3563
|
z.lazy(() => UpdateDrainResponseBodyDrainsSampling$outboundSchema),
|
|
3569
3564
|
).optional(),
|
|
@@ -4958,14 +4953,13 @@ export const UpdateDrainResponseBody1$inboundSchema: z.ZodType<
|
|
|
4958
4953
|
createdAt: z.number(),
|
|
4959
4954
|
updatedAt: z.number(),
|
|
4960
4955
|
projectIds: z.array(z.string()).optional(),
|
|
4961
|
-
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$inboundSchema)
|
|
4962
|
-
.optional(),
|
|
4956
|
+
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$inboundSchema),
|
|
4963
4957
|
delivery: z.union([
|
|
4964
4958
|
z.lazy(() => UpdateDrainDeliveryDrains1$inboundSchema),
|
|
4965
4959
|
z.lazy(() => UpdateDrainDeliveryDrains2$inboundSchema),
|
|
4966
4960
|
z.lazy(() => UpdateDrainDelivery3$inboundSchema),
|
|
4967
4961
|
z.lazy(() => UpdateDrainDelivery4$inboundSchema),
|
|
4968
|
-
])
|
|
4962
|
+
]),
|
|
4969
4963
|
sampling: z.array(z.lazy(() => UpdateDrainResponseBodySampling$inboundSchema))
|
|
4970
4964
|
.optional(),
|
|
4971
4965
|
teamId: z.nullable(z.string()).optional(),
|
|
@@ -4993,13 +4987,12 @@ export type UpdateDrainResponseBody1$Outbound = {
|
|
|
4993
4987
|
createdAt: number;
|
|
4994
4988
|
updatedAt: number;
|
|
4995
4989
|
projectIds?: Array<string> | undefined;
|
|
4996
|
-
schemas
|
|
4997
|
-
delivery
|
|
4990
|
+
schemas: UpdateDrainResponseBodySchemas$Outbound;
|
|
4991
|
+
delivery:
|
|
4998
4992
|
| UpdateDrainDeliveryDrains1$Outbound
|
|
4999
4993
|
| UpdateDrainDeliveryDrains2$Outbound
|
|
5000
4994
|
| UpdateDrainDelivery3$Outbound
|
|
5001
|
-
| UpdateDrainDelivery4$Outbound
|
|
5002
|
-
| undefined;
|
|
4995
|
+
| UpdateDrainDelivery4$Outbound;
|
|
5003
4996
|
sampling?: Array<UpdateDrainResponseBodySampling$Outbound> | undefined;
|
|
5004
4997
|
teamId?: string | null | undefined;
|
|
5005
4998
|
status?: string | undefined;
|
|
@@ -5027,14 +5020,13 @@ export const UpdateDrainResponseBody1$outboundSchema: z.ZodType<
|
|
|
5027
5020
|
createdAt: z.number(),
|
|
5028
5021
|
updatedAt: z.number(),
|
|
5029
5022
|
projectIds: z.array(z.string()).optional(),
|
|
5030
|
-
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$outboundSchema)
|
|
5031
|
-
.optional(),
|
|
5023
|
+
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$outboundSchema),
|
|
5032
5024
|
delivery: z.union([
|
|
5033
5025
|
z.lazy(() => UpdateDrainDeliveryDrains1$outboundSchema),
|
|
5034
5026
|
z.lazy(() => UpdateDrainDeliveryDrains2$outboundSchema),
|
|
5035
5027
|
z.lazy(() => UpdateDrainDelivery3$outboundSchema),
|
|
5036
5028
|
z.lazy(() => UpdateDrainDelivery4$outboundSchema),
|
|
5037
|
-
])
|
|
5029
|
+
]),
|
|
5038
5030
|
sampling: z.array(
|
|
5039
5031
|
z.lazy(() => UpdateDrainResponseBodySampling$outboundSchema),
|
|
5040
5032
|
).optional(),
|
|
@@ -1230,6 +1230,7 @@ export type UpdateProjectDataCachePermissions = {
|
|
|
1230
1230
|
accessGroup?: Array<ACLAction> | undefined;
|
|
1231
1231
|
agent?: Array<ACLAction> | undefined;
|
|
1232
1232
|
alerts?: Array<ACLAction> | undefined;
|
|
1233
|
+
alertRules?: Array<ACLAction> | undefined;
|
|
1233
1234
|
aliasGlobal?: Array<ACLAction> | undefined;
|
|
1234
1235
|
analyticsSampling?: Array<ACLAction> | undefined;
|
|
1235
1236
|
analyticsUsage?: Array<ACLAction> | undefined;
|
|
@@ -6400,6 +6401,7 @@ export const UpdateProjectDataCachePermissions$inboundSchema: z.ZodType<
|
|
|
6400
6401
|
accessGroup: z.array(ACLAction$inboundSchema).optional(),
|
|
6401
6402
|
agent: z.array(ACLAction$inboundSchema).optional(),
|
|
6402
6403
|
alerts: z.array(ACLAction$inboundSchema).optional(),
|
|
6404
|
+
alertRules: z.array(ACLAction$inboundSchema).optional(),
|
|
6403
6405
|
aliasGlobal: z.array(ACLAction$inboundSchema).optional(),
|
|
6404
6406
|
analyticsSampling: z.array(ACLAction$inboundSchema).optional(),
|
|
6405
6407
|
analyticsUsage: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -6633,6 +6635,7 @@ export type UpdateProjectDataCachePermissions$Outbound = {
|
|
|
6633
6635
|
accessGroup?: Array<string> | undefined;
|
|
6634
6636
|
agent?: Array<string> | undefined;
|
|
6635
6637
|
alerts?: Array<string> | undefined;
|
|
6638
|
+
alertRules?: Array<string> | undefined;
|
|
6636
6639
|
aliasGlobal?: Array<string> | undefined;
|
|
6637
6640
|
analyticsSampling?: Array<string> | undefined;
|
|
6638
6641
|
analyticsUsage?: Array<string> | undefined;
|
|
@@ -6860,6 +6863,7 @@ export const UpdateProjectDataCachePermissions$outboundSchema: z.ZodType<
|
|
|
6860
6863
|
accessGroup: z.array(ACLAction$outboundSchema).optional(),
|
|
6861
6864
|
agent: z.array(ACLAction$outboundSchema).optional(),
|
|
6862
6865
|
alerts: z.array(ACLAction$outboundSchema).optional(),
|
|
6866
|
+
alertRules: z.array(ACLAction$outboundSchema).optional(),
|
|
6863
6867
|
aliasGlobal: z.array(ACLAction$outboundSchema).optional(),
|
|
6864
6868
|
analyticsSampling: z.array(ACLAction$outboundSchema).optional(),
|
|
6865
6869
|
analyticsUsage: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -1682,6 +1682,7 @@ export type UpdateProjectPermissions = {
|
|
|
1682
1682
|
accessGroup?: Array<ACLAction> | undefined;
|
|
1683
1683
|
agent?: Array<ACLAction> | undefined;
|
|
1684
1684
|
alerts?: Array<ACLAction> | undefined;
|
|
1685
|
+
alertRules?: Array<ACLAction> | undefined;
|
|
1685
1686
|
aliasGlobal?: Array<ACLAction> | undefined;
|
|
1686
1687
|
analyticsSampling?: Array<ACLAction> | undefined;
|
|
1687
1688
|
analyticsUsage?: Array<ACLAction> | undefined;
|
|
@@ -7814,6 +7815,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
|
|
|
7814
7815
|
accessGroup: z.array(ACLAction$inboundSchema).optional(),
|
|
7815
7816
|
agent: z.array(ACLAction$inboundSchema).optional(),
|
|
7816
7817
|
alerts: z.array(ACLAction$inboundSchema).optional(),
|
|
7818
|
+
alertRules: z.array(ACLAction$inboundSchema).optional(),
|
|
7817
7819
|
aliasGlobal: z.array(ACLAction$inboundSchema).optional(),
|
|
7818
7820
|
analyticsSampling: z.array(ACLAction$inboundSchema).optional(),
|
|
7819
7821
|
analyticsUsage: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -8047,6 +8049,7 @@ export type UpdateProjectPermissions$Outbound = {
|
|
|
8047
8049
|
accessGroup?: Array<string> | undefined;
|
|
8048
8050
|
agent?: Array<string> | undefined;
|
|
8049
8051
|
alerts?: Array<string> | undefined;
|
|
8052
|
+
alertRules?: Array<string> | undefined;
|
|
8050
8053
|
aliasGlobal?: Array<string> | undefined;
|
|
8051
8054
|
analyticsSampling?: Array<string> | undefined;
|
|
8052
8055
|
analyticsUsage?: Array<string> | undefined;
|
|
@@ -8274,6 +8277,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
|
|
|
8274
8277
|
accessGroup: z.array(ACLAction$outboundSchema).optional(),
|
|
8275
8278
|
agent: z.array(ACLAction$outboundSchema).optional(),
|
|
8276
8279
|
alerts: z.array(ACLAction$outboundSchema).optional(),
|
|
8280
|
+
alertRules: z.array(ACLAction$outboundSchema).optional(),
|
|
8277
8281
|
aliasGlobal: z.array(ACLAction$outboundSchema).optional(),
|
|
8278
8282
|
analyticsSampling: z.array(ACLAction$outboundSchema).optional(),
|
|
8279
8283
|
analyticsUsage: z.array(ACLAction$outboundSchema).optional(),
|