@vercel/sdk 1.11.2 → 1.11.4
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/README.md +45 -52
- package/bin/mcp-server.js +926 -870
- package/bin/mcp-server.js.map +29 -29
- package/docs/sdks/integrations/README.md +83 -0
- package/docs/sdks/vercel/README.md +0 -74
- package/esm/__tests__/checks.test.js +1 -1
- package/esm/__tests__/checks.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +3 -12
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +28 -1
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +3 -27
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/integrationsGetBillingPlans.d.ts +20 -0
- package/esm/funcs/integrationsGetBillingPlans.d.ts.map +1 -0
- package/esm/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js → integrationsGetBillingPlans.js} +21 -9
- package/esm/funcs/integrationsGetBillingPlans.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.js +28 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.js.map +1 -0
- package/esm/models/approverollingreleasestageop.d.ts +15 -0
- package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
- package/esm/models/approverollingreleasestageop.js +6 -0
- package/esm/models/approverollingreleasestageop.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +1 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/completerollingreleaseop.d.ts +15 -0
- package/esm/models/completerollingreleaseop.d.ts.map +1 -1
- package/esm/models/completerollingreleaseop.js +6 -0
- package/esm/models/completerollingreleaseop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +41 -35
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +15 -13
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +243 -240
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +295 -294
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +11 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +4 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/getbillingplansop.d.ts +257 -0
- package/esm/models/getbillingplansop.d.ts.map +1 -0
- package/esm/models/getbillingplansop.js +244 -0
- package/esm/models/getbillingplansop.js.map +1 -0
- package/esm/models/getconfigurationproductsop.d.ts +330 -330
- package/esm/models/getconfigurationproductsop.js +408 -408
- package/esm/models/getdeploymentop.d.ts +3 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +1 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +3 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +1 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +8 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +3 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrollingreleaseconfigop.d.ts +5 -0
- package/esm/models/getrollingreleaseconfigop.d.ts.map +1 -1
- package/esm/models/getrollingreleaseconfigop.js +2 -0
- package/esm/models/getrollingreleaseconfigop.js.map +1 -1
- package/esm/models/getrollingreleaseop.d.ts +15 -0
- package/esm/models/getrollingreleaseop.d.ts.map +1 -1
- package/esm/models/getrollingreleaseop.js +6 -0
- package/esm/models/getrollingreleaseop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +3 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +1 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +15 -15
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +17 -15
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +8 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +3 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +173 -162
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +158 -154
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updaterollingreleaseconfigop.d.ts +5 -0
- package/esm/models/updaterollingreleaseconfigop.d.ts.map +1 -1
- package/esm/models/updaterollingreleaseconfigop.js +2 -0
- package/esm/models/updaterollingreleaseconfigop.js.map +1 -1
- package/esm/sdk/integrations.d.ts +8 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +10 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/sdk.d.ts +1 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -5
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/checks.test.ts +1 -1
- package/src/__tests__/domains.test.ts +3 -12
- package/src/__tests__/integrations.test.ts +32 -1
- package/src/__tests__/rollingrelease.test.ts +2 -6
- package/src/__tests__/security.test.ts +1 -11
- package/src/__tests__/vercel.test.ts +4 -33
- package/src/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts → integrationsGetBillingPlans.ts} +30 -24
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -5
- package/src/mcp-server/tools/integrationsGetBillingPlans.ts +37 -0
- package/src/models/approverollingreleasestageop.ts +21 -0
- package/src/models/canceldeploymentop.ts +1 -0
- package/src/models/completerollingreleaseop.ts +21 -0
- package/src/models/createdeploymentop.ts +17 -15
- package/src/models/createintegrationstoredirectop.ts +506 -505
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +9 -0
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/getbillingplansop.ts +508 -0
- package/src/models/getconfigurationproductsop.ts +703 -703
- package/src/models/getdeploymentop.ts +1 -0
- package/src/models/getdeploymentsop.ts +1 -0
- package/src/models/getprojectsop.ts +8 -0
- package/src/models/getrollingreleaseconfigop.ts +7 -0
- package/src/models/getrollingreleaseop.ts +21 -0
- package/src/models/getwebhooksop.ts +1 -0
- package/src/models/importresourceop.ts +27 -29
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/updateprojectdatacacheop.ts +8 -0
- package/src/models/updateprojectop.ts +347 -338
- package/src/models/updaterollingreleaseconfigop.ts +7 -0
- package/src/sdk/integrations.ts +22 -0
- package/src/sdk/sdk.ts +1 -23
- package/vercel-spec.json +715 -594
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +0 -14
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +0 -7
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +0 -26
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +0 -247
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +0 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +0 -246
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +0 -1
- package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +0 -41
- package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +0 -575
|
@@ -271,10 +271,10 @@ export type CreateProjectEnvCreatedTarget =
|
|
|
271
271
|
|
|
272
272
|
export const CreateProjectEnvCreatedType = {
|
|
273
273
|
System: "system",
|
|
274
|
+
Secret: "secret",
|
|
274
275
|
Encrypted: "encrypted",
|
|
275
276
|
Plain: "plain",
|
|
276
277
|
Sensitive: "sensitive",
|
|
277
|
-
Secret: "secret",
|
|
278
278
|
} as const;
|
|
279
279
|
export type CreateProjectEnvCreatedType = ClosedEnum<
|
|
280
280
|
typeof CreateProjectEnvCreatedType
|
|
@@ -617,10 +617,10 @@ export type CreatedTarget =
|
|
|
617
617
|
|
|
618
618
|
export const CreatedType = {
|
|
619
619
|
System: "system",
|
|
620
|
+
Secret: "secret",
|
|
620
621
|
Encrypted: "encrypted",
|
|
621
622
|
Plain: "plain",
|
|
622
623
|
Sensitive: "sensitive",
|
|
623
|
-
Secret: "secret",
|
|
624
624
|
} as const;
|
|
625
625
|
export type CreatedType = ClosedEnum<typeof CreatedType>;
|
|
626
626
|
|
|
@@ -125,6 +125,7 @@ export const CreateProjectFramework = {
|
|
|
125
125
|
Nitro: "nitro",
|
|
126
126
|
Hono: "hono",
|
|
127
127
|
Express: "express",
|
|
128
|
+
H3: "h3",
|
|
128
129
|
Xmcp: "xmcp",
|
|
129
130
|
} as const;
|
|
130
131
|
/**
|
|
@@ -946,6 +947,7 @@ export const CreateProjectProjectsFramework = {
|
|
|
946
947
|
Nitro: "nitro",
|
|
947
948
|
Hono: "hono",
|
|
948
949
|
Express: "express",
|
|
950
|
+
H3: "h3",
|
|
949
951
|
Xmcp: "xmcp",
|
|
950
952
|
} as const;
|
|
951
953
|
export type CreateProjectProjectsFramework = ClosedEnum<
|
|
@@ -1411,6 +1413,10 @@ export type CreateProjectStages = {
|
|
|
1411
1413
|
* Duration in minutes for automatic advancement to the next stage
|
|
1412
1414
|
*/
|
|
1413
1415
|
duration?: number | undefined;
|
|
1416
|
+
/**
|
|
1417
|
+
* Whether to linearly shift traffic over the duration of this stage
|
|
1418
|
+
*/
|
|
1419
|
+
linearShift?: boolean | undefined;
|
|
1414
1420
|
};
|
|
1415
1421
|
|
|
1416
1422
|
/**
|
|
@@ -8357,6 +8363,7 @@ export const CreateProjectStages$inboundSchema: z.ZodType<
|
|
|
8357
8363
|
targetPercentage: z.number(),
|
|
8358
8364
|
requireApproval: z.boolean().optional(),
|
|
8359
8365
|
duration: z.number().optional(),
|
|
8366
|
+
linearShift: z.boolean().optional(),
|
|
8360
8367
|
});
|
|
8361
8368
|
|
|
8362
8369
|
/** @internal */
|
|
@@ -8364,6 +8371,7 @@ export type CreateProjectStages$Outbound = {
|
|
|
8364
8371
|
targetPercentage: number;
|
|
8365
8372
|
requireApproval?: boolean | undefined;
|
|
8366
8373
|
duration?: number | undefined;
|
|
8374
|
+
linearShift?: boolean | undefined;
|
|
8367
8375
|
};
|
|
8368
8376
|
|
|
8369
8377
|
/** @internal */
|
|
@@ -8375,6 +8383,7 @@ export const CreateProjectStages$outboundSchema: z.ZodType<
|
|
|
8375
8383
|
targetPercentage: z.number(),
|
|
8376
8384
|
requireApproval: z.boolean().optional(),
|
|
8377
8385
|
duration: z.number().optional(),
|
|
8386
|
+
linearShift: z.boolean().optional(),
|
|
8378
8387
|
});
|
|
8379
8388
|
|
|
8380
8389
|
/**
|
|
@@ -97,10 +97,10 @@ export type EditProjectEnvResponseBodyTarget =
|
|
|
97
97
|
|
|
98
98
|
export const EditProjectEnvResponseBodyType = {
|
|
99
99
|
System: "system",
|
|
100
|
+
Secret: "secret",
|
|
100
101
|
Encrypted: "encrypted",
|
|
101
102
|
Plain: "plain",
|
|
102
103
|
Sensitive: "sensitive",
|
|
103
|
-
Secret: "secret",
|
|
104
104
|
} as const;
|
|
105
105
|
export type EditProjectEnvResponseBodyType = ClosedEnum<
|
|
106
106
|
typeof EditProjectEnvResponseBodyType
|
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetBillingPlansRequest = {
|
|
12
|
+
integrationIdOrSlug: string;
|
|
13
|
+
productIdOrSlug: string;
|
|
14
|
+
metadata?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The Team identifier to perform the request on behalf of.
|
|
17
|
+
*/
|
|
18
|
+
teamId?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The Team slug to perform the request on behalf of.
|
|
21
|
+
*/
|
|
22
|
+
slug?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const GetBillingPlansType = {
|
|
26
|
+
Prepayment: "prepayment",
|
|
27
|
+
Subscription: "subscription",
|
|
28
|
+
} as const;
|
|
29
|
+
export type GetBillingPlansType = ClosedEnum<typeof GetBillingPlansType>;
|
|
30
|
+
|
|
31
|
+
export const GetBillingPlansScope = {
|
|
32
|
+
Installation: "installation",
|
|
33
|
+
Resource: "resource",
|
|
34
|
+
} as const;
|
|
35
|
+
export type GetBillingPlansScope = ClosedEnum<typeof GetBillingPlansScope>;
|
|
36
|
+
|
|
37
|
+
export type GetBillingPlansDetails = {
|
|
38
|
+
label: string;
|
|
39
|
+
value?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type GetBillingPlansHighlightedDetails = {
|
|
43
|
+
label: string;
|
|
44
|
+
value?: string | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type Quote = {
|
|
48
|
+
line: string;
|
|
49
|
+
amount: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type Plans = {
|
|
53
|
+
type: GetBillingPlansType;
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
scope: GetBillingPlansScope;
|
|
57
|
+
description: string;
|
|
58
|
+
paymentMethodRequired: boolean;
|
|
59
|
+
preauthorizationAmount?: number | undefined;
|
|
60
|
+
initialCharge?: string | undefined;
|
|
61
|
+
minimumAmount?: string | undefined;
|
|
62
|
+
maximumAmount?: string | undefined;
|
|
63
|
+
maximumAmountAutoPurchasePerPeriod?: string | undefined;
|
|
64
|
+
cost?: string | undefined;
|
|
65
|
+
details?: Array<GetBillingPlansDetails> | undefined;
|
|
66
|
+
highlightedDetails?: Array<GetBillingPlansHighlightedDetails> | undefined;
|
|
67
|
+
quote?: Array<Quote> | undefined;
|
|
68
|
+
effectiveDate?: string | undefined;
|
|
69
|
+
disabled?: boolean | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type GetBillingPlansResponseBody = {
|
|
73
|
+
plans: Array<Plans>;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const GetBillingPlansRequest$inboundSchema: z.ZodType<
|
|
78
|
+
GetBillingPlansRequest,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
integrationIdOrSlug: z.string(),
|
|
83
|
+
productIdOrSlug: z.string(),
|
|
84
|
+
metadata: z.string().optional(),
|
|
85
|
+
teamId: z.string().optional(),
|
|
86
|
+
slug: z.string().optional(),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export type GetBillingPlansRequest$Outbound = {
|
|
91
|
+
integrationIdOrSlug: string;
|
|
92
|
+
productIdOrSlug: string;
|
|
93
|
+
metadata?: string | undefined;
|
|
94
|
+
teamId?: string | undefined;
|
|
95
|
+
slug?: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const GetBillingPlansRequest$outboundSchema: z.ZodType<
|
|
100
|
+
GetBillingPlansRequest$Outbound,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
GetBillingPlansRequest
|
|
103
|
+
> = z.object({
|
|
104
|
+
integrationIdOrSlug: z.string(),
|
|
105
|
+
productIdOrSlug: z.string(),
|
|
106
|
+
metadata: z.string().optional(),
|
|
107
|
+
teamId: z.string().optional(),
|
|
108
|
+
slug: z.string().optional(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
114
|
+
*/
|
|
115
|
+
export namespace GetBillingPlansRequest$ {
|
|
116
|
+
/** @deprecated use `GetBillingPlansRequest$inboundSchema` instead. */
|
|
117
|
+
export const inboundSchema = GetBillingPlansRequest$inboundSchema;
|
|
118
|
+
/** @deprecated use `GetBillingPlansRequest$outboundSchema` instead. */
|
|
119
|
+
export const outboundSchema = GetBillingPlansRequest$outboundSchema;
|
|
120
|
+
/** @deprecated use `GetBillingPlansRequest$Outbound` instead. */
|
|
121
|
+
export type Outbound = GetBillingPlansRequest$Outbound;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function getBillingPlansRequestToJSON(
|
|
125
|
+
getBillingPlansRequest: GetBillingPlansRequest,
|
|
126
|
+
): string {
|
|
127
|
+
return JSON.stringify(
|
|
128
|
+
GetBillingPlansRequest$outboundSchema.parse(getBillingPlansRequest),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function getBillingPlansRequestFromJSON(
|
|
133
|
+
jsonString: string,
|
|
134
|
+
): SafeParseResult<GetBillingPlansRequest, SDKValidationError> {
|
|
135
|
+
return safeParse(
|
|
136
|
+
jsonString,
|
|
137
|
+
(x) => GetBillingPlansRequest$inboundSchema.parse(JSON.parse(x)),
|
|
138
|
+
`Failed to parse 'GetBillingPlansRequest' from JSON`,
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const GetBillingPlansType$inboundSchema: z.ZodNativeEnum<
|
|
144
|
+
typeof GetBillingPlansType
|
|
145
|
+
> = z.nativeEnum(GetBillingPlansType);
|
|
146
|
+
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const GetBillingPlansType$outboundSchema: z.ZodNativeEnum<
|
|
149
|
+
typeof GetBillingPlansType
|
|
150
|
+
> = GetBillingPlansType$inboundSchema;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @internal
|
|
154
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
+
*/
|
|
156
|
+
export namespace GetBillingPlansType$ {
|
|
157
|
+
/** @deprecated use `GetBillingPlansType$inboundSchema` instead. */
|
|
158
|
+
export const inboundSchema = GetBillingPlansType$inboundSchema;
|
|
159
|
+
/** @deprecated use `GetBillingPlansType$outboundSchema` instead. */
|
|
160
|
+
export const outboundSchema = GetBillingPlansType$outboundSchema;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const GetBillingPlansScope$inboundSchema: z.ZodNativeEnum<
|
|
165
|
+
typeof GetBillingPlansScope
|
|
166
|
+
> = z.nativeEnum(GetBillingPlansScope);
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GetBillingPlansScope$outboundSchema: z.ZodNativeEnum<
|
|
170
|
+
typeof GetBillingPlansScope
|
|
171
|
+
> = GetBillingPlansScope$inboundSchema;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
+
*/
|
|
177
|
+
export namespace GetBillingPlansScope$ {
|
|
178
|
+
/** @deprecated use `GetBillingPlansScope$inboundSchema` instead. */
|
|
179
|
+
export const inboundSchema = GetBillingPlansScope$inboundSchema;
|
|
180
|
+
/** @deprecated use `GetBillingPlansScope$outboundSchema` instead. */
|
|
181
|
+
export const outboundSchema = GetBillingPlansScope$outboundSchema;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
export const GetBillingPlansDetails$inboundSchema: z.ZodType<
|
|
186
|
+
GetBillingPlansDetails,
|
|
187
|
+
z.ZodTypeDef,
|
|
188
|
+
unknown
|
|
189
|
+
> = z.object({
|
|
190
|
+
label: z.string(),
|
|
191
|
+
value: z.string().optional(),
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type GetBillingPlansDetails$Outbound = {
|
|
196
|
+
label: string;
|
|
197
|
+
value?: string | undefined;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const GetBillingPlansDetails$outboundSchema: z.ZodType<
|
|
202
|
+
GetBillingPlansDetails$Outbound,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
GetBillingPlansDetails
|
|
205
|
+
> = z.object({
|
|
206
|
+
label: z.string(),
|
|
207
|
+
value: z.string().optional(),
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
213
|
+
*/
|
|
214
|
+
export namespace GetBillingPlansDetails$ {
|
|
215
|
+
/** @deprecated use `GetBillingPlansDetails$inboundSchema` instead. */
|
|
216
|
+
export const inboundSchema = GetBillingPlansDetails$inboundSchema;
|
|
217
|
+
/** @deprecated use `GetBillingPlansDetails$outboundSchema` instead. */
|
|
218
|
+
export const outboundSchema = GetBillingPlansDetails$outboundSchema;
|
|
219
|
+
/** @deprecated use `GetBillingPlansDetails$Outbound` instead. */
|
|
220
|
+
export type Outbound = GetBillingPlansDetails$Outbound;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function getBillingPlansDetailsToJSON(
|
|
224
|
+
getBillingPlansDetails: GetBillingPlansDetails,
|
|
225
|
+
): string {
|
|
226
|
+
return JSON.stringify(
|
|
227
|
+
GetBillingPlansDetails$outboundSchema.parse(getBillingPlansDetails),
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export function getBillingPlansDetailsFromJSON(
|
|
232
|
+
jsonString: string,
|
|
233
|
+
): SafeParseResult<GetBillingPlansDetails, SDKValidationError> {
|
|
234
|
+
return safeParse(
|
|
235
|
+
jsonString,
|
|
236
|
+
(x) => GetBillingPlansDetails$inboundSchema.parse(JSON.parse(x)),
|
|
237
|
+
`Failed to parse 'GetBillingPlansDetails' from JSON`,
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/** @internal */
|
|
242
|
+
export const GetBillingPlansHighlightedDetails$inboundSchema: z.ZodType<
|
|
243
|
+
GetBillingPlansHighlightedDetails,
|
|
244
|
+
z.ZodTypeDef,
|
|
245
|
+
unknown
|
|
246
|
+
> = z.object({
|
|
247
|
+
label: z.string(),
|
|
248
|
+
value: z.string().optional(),
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export type GetBillingPlansHighlightedDetails$Outbound = {
|
|
253
|
+
label: string;
|
|
254
|
+
value?: string | undefined;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/** @internal */
|
|
258
|
+
export const GetBillingPlansHighlightedDetails$outboundSchema: z.ZodType<
|
|
259
|
+
GetBillingPlansHighlightedDetails$Outbound,
|
|
260
|
+
z.ZodTypeDef,
|
|
261
|
+
GetBillingPlansHighlightedDetails
|
|
262
|
+
> = z.object({
|
|
263
|
+
label: z.string(),
|
|
264
|
+
value: z.string().optional(),
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
270
|
+
*/
|
|
271
|
+
export namespace GetBillingPlansHighlightedDetails$ {
|
|
272
|
+
/** @deprecated use `GetBillingPlansHighlightedDetails$inboundSchema` instead. */
|
|
273
|
+
export const inboundSchema = GetBillingPlansHighlightedDetails$inboundSchema;
|
|
274
|
+
/** @deprecated use `GetBillingPlansHighlightedDetails$outboundSchema` instead. */
|
|
275
|
+
export const outboundSchema =
|
|
276
|
+
GetBillingPlansHighlightedDetails$outboundSchema;
|
|
277
|
+
/** @deprecated use `GetBillingPlansHighlightedDetails$Outbound` instead. */
|
|
278
|
+
export type Outbound = GetBillingPlansHighlightedDetails$Outbound;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function getBillingPlansHighlightedDetailsToJSON(
|
|
282
|
+
getBillingPlansHighlightedDetails: GetBillingPlansHighlightedDetails,
|
|
283
|
+
): string {
|
|
284
|
+
return JSON.stringify(
|
|
285
|
+
GetBillingPlansHighlightedDetails$outboundSchema.parse(
|
|
286
|
+
getBillingPlansHighlightedDetails,
|
|
287
|
+
),
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function getBillingPlansHighlightedDetailsFromJSON(
|
|
292
|
+
jsonString: string,
|
|
293
|
+
): SafeParseResult<GetBillingPlansHighlightedDetails, SDKValidationError> {
|
|
294
|
+
return safeParse(
|
|
295
|
+
jsonString,
|
|
296
|
+
(x) => GetBillingPlansHighlightedDetails$inboundSchema.parse(JSON.parse(x)),
|
|
297
|
+
`Failed to parse 'GetBillingPlansHighlightedDetails' from JSON`,
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** @internal */
|
|
302
|
+
export const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown> = z
|
|
303
|
+
.object({
|
|
304
|
+
line: z.string(),
|
|
305
|
+
amount: z.string(),
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
/** @internal */
|
|
309
|
+
export type Quote$Outbound = {
|
|
310
|
+
line: string;
|
|
311
|
+
amount: string;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/** @internal */
|
|
315
|
+
export const Quote$outboundSchema: z.ZodType<
|
|
316
|
+
Quote$Outbound,
|
|
317
|
+
z.ZodTypeDef,
|
|
318
|
+
Quote
|
|
319
|
+
> = z.object({
|
|
320
|
+
line: z.string(),
|
|
321
|
+
amount: z.string(),
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
327
|
+
*/
|
|
328
|
+
export namespace Quote$ {
|
|
329
|
+
/** @deprecated use `Quote$inboundSchema` instead. */
|
|
330
|
+
export const inboundSchema = Quote$inboundSchema;
|
|
331
|
+
/** @deprecated use `Quote$outboundSchema` instead. */
|
|
332
|
+
export const outboundSchema = Quote$outboundSchema;
|
|
333
|
+
/** @deprecated use `Quote$Outbound` instead. */
|
|
334
|
+
export type Outbound = Quote$Outbound;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export function quoteToJSON(quote: Quote): string {
|
|
338
|
+
return JSON.stringify(Quote$outboundSchema.parse(quote));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export function quoteFromJSON(
|
|
342
|
+
jsonString: string,
|
|
343
|
+
): SafeParseResult<Quote, SDKValidationError> {
|
|
344
|
+
return safeParse(
|
|
345
|
+
jsonString,
|
|
346
|
+
(x) => Quote$inboundSchema.parse(JSON.parse(x)),
|
|
347
|
+
`Failed to parse 'Quote' from JSON`,
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const Plans$inboundSchema: z.ZodType<Plans, z.ZodTypeDef, unknown> = z
|
|
353
|
+
.object({
|
|
354
|
+
type: GetBillingPlansType$inboundSchema,
|
|
355
|
+
id: z.string(),
|
|
356
|
+
name: z.string(),
|
|
357
|
+
scope: GetBillingPlansScope$inboundSchema,
|
|
358
|
+
description: z.string(),
|
|
359
|
+
paymentMethodRequired: z.boolean(),
|
|
360
|
+
preauthorizationAmount: z.number().optional(),
|
|
361
|
+
initialCharge: z.string().optional(),
|
|
362
|
+
minimumAmount: z.string().optional(),
|
|
363
|
+
maximumAmount: z.string().optional(),
|
|
364
|
+
maximumAmountAutoPurchasePerPeriod: z.string().optional(),
|
|
365
|
+
cost: z.string().optional(),
|
|
366
|
+
details: z.array(z.lazy(() => GetBillingPlansDetails$inboundSchema))
|
|
367
|
+
.optional(),
|
|
368
|
+
highlightedDetails: z.array(
|
|
369
|
+
z.lazy(() => GetBillingPlansHighlightedDetails$inboundSchema),
|
|
370
|
+
).optional(),
|
|
371
|
+
quote: z.array(z.lazy(() => Quote$inboundSchema)).optional(),
|
|
372
|
+
effectiveDate: z.string().optional(),
|
|
373
|
+
disabled: z.boolean().optional(),
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
/** @internal */
|
|
377
|
+
export type Plans$Outbound = {
|
|
378
|
+
type: string;
|
|
379
|
+
id: string;
|
|
380
|
+
name: string;
|
|
381
|
+
scope: string;
|
|
382
|
+
description: string;
|
|
383
|
+
paymentMethodRequired: boolean;
|
|
384
|
+
preauthorizationAmount?: number | undefined;
|
|
385
|
+
initialCharge?: string | undefined;
|
|
386
|
+
minimumAmount?: string | undefined;
|
|
387
|
+
maximumAmount?: string | undefined;
|
|
388
|
+
maximumAmountAutoPurchasePerPeriod?: string | undefined;
|
|
389
|
+
cost?: string | undefined;
|
|
390
|
+
details?: Array<GetBillingPlansDetails$Outbound> | undefined;
|
|
391
|
+
highlightedDetails?:
|
|
392
|
+
| Array<GetBillingPlansHighlightedDetails$Outbound>
|
|
393
|
+
| undefined;
|
|
394
|
+
quote?: Array<Quote$Outbound> | undefined;
|
|
395
|
+
effectiveDate?: string | undefined;
|
|
396
|
+
disabled?: boolean | undefined;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
/** @internal */
|
|
400
|
+
export const Plans$outboundSchema: z.ZodType<
|
|
401
|
+
Plans$Outbound,
|
|
402
|
+
z.ZodTypeDef,
|
|
403
|
+
Plans
|
|
404
|
+
> = z.object({
|
|
405
|
+
type: GetBillingPlansType$outboundSchema,
|
|
406
|
+
id: z.string(),
|
|
407
|
+
name: z.string(),
|
|
408
|
+
scope: GetBillingPlansScope$outboundSchema,
|
|
409
|
+
description: z.string(),
|
|
410
|
+
paymentMethodRequired: z.boolean(),
|
|
411
|
+
preauthorizationAmount: z.number().optional(),
|
|
412
|
+
initialCharge: z.string().optional(),
|
|
413
|
+
minimumAmount: z.string().optional(),
|
|
414
|
+
maximumAmount: z.string().optional(),
|
|
415
|
+
maximumAmountAutoPurchasePerPeriod: z.string().optional(),
|
|
416
|
+
cost: z.string().optional(),
|
|
417
|
+
details: z.array(z.lazy(() => GetBillingPlansDetails$outboundSchema))
|
|
418
|
+
.optional(),
|
|
419
|
+
highlightedDetails: z.array(
|
|
420
|
+
z.lazy(() => GetBillingPlansHighlightedDetails$outboundSchema),
|
|
421
|
+
).optional(),
|
|
422
|
+
quote: z.array(z.lazy(() => Quote$outboundSchema)).optional(),
|
|
423
|
+
effectiveDate: z.string().optional(),
|
|
424
|
+
disabled: z.boolean().optional(),
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* @internal
|
|
429
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
430
|
+
*/
|
|
431
|
+
export namespace Plans$ {
|
|
432
|
+
/** @deprecated use `Plans$inboundSchema` instead. */
|
|
433
|
+
export const inboundSchema = Plans$inboundSchema;
|
|
434
|
+
/** @deprecated use `Plans$outboundSchema` instead. */
|
|
435
|
+
export const outboundSchema = Plans$outboundSchema;
|
|
436
|
+
/** @deprecated use `Plans$Outbound` instead. */
|
|
437
|
+
export type Outbound = Plans$Outbound;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export function plansToJSON(plans: Plans): string {
|
|
441
|
+
return JSON.stringify(Plans$outboundSchema.parse(plans));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export function plansFromJSON(
|
|
445
|
+
jsonString: string,
|
|
446
|
+
): SafeParseResult<Plans, SDKValidationError> {
|
|
447
|
+
return safeParse(
|
|
448
|
+
jsonString,
|
|
449
|
+
(x) => Plans$inboundSchema.parse(JSON.parse(x)),
|
|
450
|
+
`Failed to parse 'Plans' from JSON`,
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/** @internal */
|
|
455
|
+
export const GetBillingPlansResponseBody$inboundSchema: z.ZodType<
|
|
456
|
+
GetBillingPlansResponseBody,
|
|
457
|
+
z.ZodTypeDef,
|
|
458
|
+
unknown
|
|
459
|
+
> = z.object({
|
|
460
|
+
plans: z.array(z.lazy(() => Plans$inboundSchema)),
|
|
461
|
+
});
|
|
462
|
+
|
|
463
|
+
/** @internal */
|
|
464
|
+
export type GetBillingPlansResponseBody$Outbound = {
|
|
465
|
+
plans: Array<Plans$Outbound>;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
/** @internal */
|
|
469
|
+
export const GetBillingPlansResponseBody$outboundSchema: z.ZodType<
|
|
470
|
+
GetBillingPlansResponseBody$Outbound,
|
|
471
|
+
z.ZodTypeDef,
|
|
472
|
+
GetBillingPlansResponseBody
|
|
473
|
+
> = z.object({
|
|
474
|
+
plans: z.array(z.lazy(() => Plans$outboundSchema)),
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @internal
|
|
479
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
480
|
+
*/
|
|
481
|
+
export namespace GetBillingPlansResponseBody$ {
|
|
482
|
+
/** @deprecated use `GetBillingPlansResponseBody$inboundSchema` instead. */
|
|
483
|
+
export const inboundSchema = GetBillingPlansResponseBody$inboundSchema;
|
|
484
|
+
/** @deprecated use `GetBillingPlansResponseBody$outboundSchema` instead. */
|
|
485
|
+
export const outboundSchema = GetBillingPlansResponseBody$outboundSchema;
|
|
486
|
+
/** @deprecated use `GetBillingPlansResponseBody$Outbound` instead. */
|
|
487
|
+
export type Outbound = GetBillingPlansResponseBody$Outbound;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export function getBillingPlansResponseBodyToJSON(
|
|
491
|
+
getBillingPlansResponseBody: GetBillingPlansResponseBody,
|
|
492
|
+
): string {
|
|
493
|
+
return JSON.stringify(
|
|
494
|
+
GetBillingPlansResponseBody$outboundSchema.parse(
|
|
495
|
+
getBillingPlansResponseBody,
|
|
496
|
+
),
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export function getBillingPlansResponseBodyFromJSON(
|
|
501
|
+
jsonString: string,
|
|
502
|
+
): SafeParseResult<GetBillingPlansResponseBody, SDKValidationError> {
|
|
503
|
+
return safeParse(
|
|
504
|
+
jsonString,
|
|
505
|
+
(x) => GetBillingPlansResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
506
|
+
`Failed to parse 'GetBillingPlansResponseBody' from JSON`,
|
|
507
|
+
);
|
|
508
|
+
}
|