@vercel/sdk 1.10.1 → 1.10.3
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 +436 -1558
- package/bin/mcp-server.js.map +19 -19
- package/esm/__tests__/teams.test.js +2 -4
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/funcs/domainsBuyDomain.js +2 -2
- package/esm/funcs/domainsBuyDomain.js.map +1 -1
- package/esm/funcs/domainsGetDomainConfig.js +1 -0
- package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
- package/esm/funcs/domainsPatchDomain.js +2 -2
- package/esm/funcs/domainsPatchDomain.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/canceldeploymentop.d.ts +49 -49
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +53 -55
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +174 -174
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +166 -165
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +33 -585
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +31 -530
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +90 -90
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +101 -102
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdomainconfigop.d.ts +63 -0
- package/esm/models/getdomainconfigop.d.ts.map +1 -1
- package/esm/models/getdomainconfigop.js +52 -0
- package/esm/models/getdomainconfigop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +33 -585
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +31 -530
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/team.d.ts +13 -12
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +6 -7
- package/esm/models/team.js.map +1 -1
- package/esm/models/teamlimited.d.ts +0 -2
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +0 -2
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +41 -593
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +43 -561
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +33 -585
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +31 -530
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +154 -124
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +166 -135
- package/esm/models/userevent.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/examples/projectsUpdateProject.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/teams.test.ts +2 -4
- package/src/funcs/domainsBuyDomain.ts +2 -2
- package/src/funcs/domainsGetDomainConfig.ts +1 -0
- package/src/funcs/domainsPatchDomain.ts +2 -2
- 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/canceldeploymentop.ts +78 -104
- package/src/models/createdeploymentop.ts +347 -350
- package/src/models/createprojectop.ts +197 -1221
- package/src/models/getdeploymentop.ts +214 -216
- package/src/models/getdomainconfigop.ts +129 -0
- package/src/models/getprojectsop.ts +202 -1207
- package/src/models/team.ts +13 -16
- package/src/models/teamlimited.ts +0 -4
- package/src/models/updateprojectdatacacheop.ts +171 -1168
- package/src/models/updateprojectop.ts +197 -1221
- package/src/models/userevent.ts +309 -236
- package/vercel-spec.json +141 -1530
|
@@ -8,7 +8,7 @@ dotenv.config();
|
|
|
8
8
|
* Example usage of the @vercel/sdk SDK
|
|
9
9
|
*
|
|
10
10
|
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx projectsUpdateProject.ts
|
|
11
|
+
* npm run build && npx tsx projectsUpdateProject.example.ts
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { Vercel } from "@vercel/sdk";
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -167,8 +167,8 @@ test("Teams Get Team", async () => {
|
|
|
167
167
|
emailDomain: "example.com",
|
|
168
168
|
saml: {
|
|
169
169
|
connection: {
|
|
170
|
-
status: "linked",
|
|
171
170
|
type: "OktaSAML",
|
|
171
|
+
status: "linked",
|
|
172
172
|
state: "active",
|
|
173
173
|
connectedAt: 1611796915677,
|
|
174
174
|
lastReceivedWebhookEvent: 1611796915677,
|
|
@@ -192,7 +192,6 @@ test("Teams Get Team", async () => {
|
|
|
192
192
|
avatar: "6eb07268bcfadd309905ffb1579354084c24655c",
|
|
193
193
|
membership: {
|
|
194
194
|
confirmed: false,
|
|
195
|
-
confirmedAt: 4040.18,
|
|
196
195
|
role: "SECURITY",
|
|
197
196
|
createdAt: 1519.81,
|
|
198
197
|
created: 619.38,
|
|
@@ -241,8 +240,8 @@ test("Teams Patch Team", async () => {
|
|
|
241
240
|
emailDomain: "example.com",
|
|
242
241
|
saml: {
|
|
243
242
|
connection: {
|
|
244
|
-
status: "linked",
|
|
245
243
|
type: "OktaSAML",
|
|
244
|
+
status: "linked",
|
|
246
245
|
state: "active",
|
|
247
246
|
connectedAt: 1611796915677,
|
|
248
247
|
lastReceivedWebhookEvent: 1611796915677,
|
|
@@ -266,7 +265,6 @@ test("Teams Patch Team", async () => {
|
|
|
266
265
|
avatar: "6eb07268bcfadd309905ffb1579354084c24655c",
|
|
267
266
|
membership: {
|
|
268
267
|
confirmed: true,
|
|
269
|
-
confirmedAt: 3200.42,
|
|
270
268
|
role: "CONTRIBUTOR",
|
|
271
269
|
createdAt: 6209.44,
|
|
272
270
|
created: 5994.92,
|
|
@@ -157,7 +157,7 @@ async function $do(
|
|
|
157
157
|
|
|
158
158
|
const doResult = await client._do(req, {
|
|
159
159
|
context,
|
|
160
|
-
errorCodes: ["400", "401", "403", "409", "429", "4XX", "5XX"],
|
|
160
|
+
errorCodes: ["400", "401", "403", "409", "429", "4XX", "500", "5XX"],
|
|
161
161
|
retryConfig: context.retryConfig,
|
|
162
162
|
retryCodes: context.retryCodes,
|
|
163
163
|
});
|
|
@@ -190,7 +190,7 @@ async function $do(
|
|
|
190
190
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
191
191
|
M.jsonErr(429, VercelRateLimitError$inboundSchema),
|
|
192
192
|
M.fail([403, 409, "4XX"]),
|
|
193
|
-
M.fail("5XX"),
|
|
193
|
+
M.fail([500, "5XX"]),
|
|
194
194
|
)(response, req, { extraFields: responseFields });
|
|
195
195
|
if (!result.ok) {
|
|
196
196
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -112,6 +112,7 @@ async function $do(
|
|
|
112
112
|
const path = pathToFunc("/v6/domains/{domain}/config")(pathParams);
|
|
113
113
|
|
|
114
114
|
const query = encodeFormQuery({
|
|
115
|
+
"projectIdOrName": payload.projectIdOrName,
|
|
115
116
|
"slug": payload.slug,
|
|
116
117
|
"strict": payload.strict,
|
|
117
118
|
"teamId": payload.teamId,
|
|
@@ -164,7 +164,7 @@ async function $do(
|
|
|
164
164
|
|
|
165
165
|
const doResult = await client._do(req, {
|
|
166
166
|
context,
|
|
167
|
-
errorCodes: ["400", "401", "403", "404", "409", "4XX", "5XX"],
|
|
167
|
+
errorCodes: ["400", "401", "403", "404", "409", "4XX", "500", "5XX"],
|
|
168
168
|
retryConfig: context.retryConfig,
|
|
169
169
|
retryCodes: context.retryCodes,
|
|
170
170
|
});
|
|
@@ -196,7 +196,7 @@ async function $do(
|
|
|
196
196
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
197
197
|
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
198
198
|
M.fail([403, 409, "4XX"]),
|
|
199
|
-
M.fail("5XX"),
|
|
199
|
+
M.fail([500, "5XX"]),
|
|
200
200
|
)(response, req, { extraFields: responseFields });
|
|
201
201
|
if (!result.ok) {
|
|
202
202
|
return [result, { status: "complete", request: req, response }];
|
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "1.10.
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.10.
|
|
64
|
+
sdkVersion: "1.10.3",
|
|
65
|
+
genVersion: "2.681.1",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.10.3 2.681.1 0.0.1 @vercel/sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -904,7 +904,7 @@ export type CancelDeploymentRoutes3 = {
|
|
|
904
904
|
middleware: number;
|
|
905
905
|
};
|
|
906
906
|
|
|
907
|
-
export const
|
|
907
|
+
export const RoutesHandle = {
|
|
908
908
|
Error: "error",
|
|
909
909
|
Filesystem: "filesystem",
|
|
910
910
|
Hit: "hit",
|
|
@@ -912,12 +912,10 @@ export const CancelDeploymentRoutesHandle = {
|
|
|
912
912
|
Rewrite: "rewrite",
|
|
913
913
|
Resource: "resource",
|
|
914
914
|
} as const;
|
|
915
|
-
export type
|
|
916
|
-
typeof CancelDeploymentRoutesHandle
|
|
917
|
-
>;
|
|
915
|
+
export type RoutesHandle = ClosedEnum<typeof RoutesHandle>;
|
|
918
916
|
|
|
919
917
|
export type CancelDeploymentRoutes2 = {
|
|
920
|
-
handle:
|
|
918
|
+
handle: RoutesHandle;
|
|
921
919
|
src?: string | undefined;
|
|
922
920
|
dest?: string | undefined;
|
|
923
921
|
status?: number | undefined;
|
|
@@ -988,9 +986,7 @@ export type CancelDeploymentHas1 = {
|
|
|
988
986
|
value: CancelDeploymentValue2 | string;
|
|
989
987
|
};
|
|
990
988
|
|
|
991
|
-
export type
|
|
992
|
-
| CancelDeploymentHas1
|
|
993
|
-
| CancelDeploymentHas2;
|
|
989
|
+
export type RoutesHas = CancelDeploymentHas1 | CancelDeploymentHas2;
|
|
994
990
|
|
|
995
991
|
export const CancelDeploymentMissingDeploymentsType = {
|
|
996
992
|
Header: "header",
|
|
@@ -1059,9 +1055,7 @@ export type CancelDeploymentMissing1 = {
|
|
|
1059
1055
|
value: CancelDeploymentValueDeploymentsResponse2 | string;
|
|
1060
1056
|
};
|
|
1061
1057
|
|
|
1062
|
-
export type
|
|
1063
|
-
| CancelDeploymentMissing1
|
|
1064
|
-
| CancelDeploymentMissing2;
|
|
1058
|
+
export type RoutesMissing = CancelDeploymentMissing1 | CancelDeploymentMissing2;
|
|
1065
1059
|
|
|
1066
1060
|
export const CancelDeploymentRoutesAction = {
|
|
1067
1061
|
Challenge: "challenge",
|
|
@@ -1071,7 +1065,7 @@ export type CancelDeploymentRoutesAction = ClosedEnum<
|
|
|
1071
1065
|
typeof CancelDeploymentRoutesAction
|
|
1072
1066
|
>;
|
|
1073
1067
|
|
|
1074
|
-
export type
|
|
1068
|
+
export type RoutesMitigate = {
|
|
1075
1069
|
action: CancelDeploymentRoutesAction;
|
|
1076
1070
|
};
|
|
1077
1071
|
|
|
@@ -1141,7 +1135,7 @@ export type CancelDeploymentRoutes1 = {
|
|
|
1141
1135
|
missing?:
|
|
1142
1136
|
| Array<CancelDeploymentMissing1 | CancelDeploymentMissing2>
|
|
1143
1137
|
| undefined;
|
|
1144
|
-
mitigate?:
|
|
1138
|
+
mitigate?: RoutesMitigate | undefined;
|
|
1145
1139
|
transforms?: Array<RoutesTransforms> | undefined;
|
|
1146
1140
|
locale?: RoutesLocale | undefined;
|
|
1147
1141
|
/**
|
|
@@ -5701,24 +5695,22 @@ export function cancelDeploymentRoutes3FromJSON(
|
|
|
5701
5695
|
}
|
|
5702
5696
|
|
|
5703
5697
|
/** @internal */
|
|
5704
|
-
export const
|
|
5705
|
-
|
|
5706
|
-
> = z.nativeEnum(CancelDeploymentRoutesHandle);
|
|
5698
|
+
export const RoutesHandle$inboundSchema: z.ZodNativeEnum<typeof RoutesHandle> =
|
|
5699
|
+
z.nativeEnum(RoutesHandle);
|
|
5707
5700
|
|
|
5708
5701
|
/** @internal */
|
|
5709
|
-
export const
|
|
5710
|
-
|
|
5711
|
-
> = CancelDeploymentRoutesHandle$inboundSchema;
|
|
5702
|
+
export const RoutesHandle$outboundSchema: z.ZodNativeEnum<typeof RoutesHandle> =
|
|
5703
|
+
RoutesHandle$inboundSchema;
|
|
5712
5704
|
|
|
5713
5705
|
/**
|
|
5714
5706
|
* @internal
|
|
5715
5707
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5716
5708
|
*/
|
|
5717
|
-
export namespace
|
|
5718
|
-
/** @deprecated use `
|
|
5719
|
-
export const inboundSchema =
|
|
5720
|
-
/** @deprecated use `
|
|
5721
|
-
export const outboundSchema =
|
|
5709
|
+
export namespace RoutesHandle$ {
|
|
5710
|
+
/** @deprecated use `RoutesHandle$inboundSchema` instead. */
|
|
5711
|
+
export const inboundSchema = RoutesHandle$inboundSchema;
|
|
5712
|
+
/** @deprecated use `RoutesHandle$outboundSchema` instead. */
|
|
5713
|
+
export const outboundSchema = RoutesHandle$outboundSchema;
|
|
5722
5714
|
}
|
|
5723
5715
|
|
|
5724
5716
|
/** @internal */
|
|
@@ -5727,7 +5719,7 @@ export const CancelDeploymentRoutes2$inboundSchema: z.ZodType<
|
|
|
5727
5719
|
z.ZodTypeDef,
|
|
5728
5720
|
unknown
|
|
5729
5721
|
> = z.object({
|
|
5730
|
-
handle:
|
|
5722
|
+
handle: RoutesHandle$inboundSchema,
|
|
5731
5723
|
src: z.string().optional(),
|
|
5732
5724
|
dest: z.string().optional(),
|
|
5733
5725
|
status: z.number().optional(),
|
|
@@ -5747,7 +5739,7 @@ export const CancelDeploymentRoutes2$outboundSchema: z.ZodType<
|
|
|
5747
5739
|
z.ZodTypeDef,
|
|
5748
5740
|
CancelDeploymentRoutes2
|
|
5749
5741
|
> = z.object({
|
|
5750
|
-
handle:
|
|
5742
|
+
handle: RoutesHandle$outboundSchema,
|
|
5751
5743
|
src: z.string().optional(),
|
|
5752
5744
|
dest: z.string().optional(),
|
|
5753
5745
|
status: z.number().optional(),
|
|
@@ -6339,8 +6331,8 @@ export function cancelDeploymentHas1FromJSON(
|
|
|
6339
6331
|
}
|
|
6340
6332
|
|
|
6341
6333
|
/** @internal */
|
|
6342
|
-
export const
|
|
6343
|
-
|
|
6334
|
+
export const RoutesHas$inboundSchema: z.ZodType<
|
|
6335
|
+
RoutesHas,
|
|
6344
6336
|
z.ZodTypeDef,
|
|
6345
6337
|
unknown
|
|
6346
6338
|
> = z.union([
|
|
@@ -6349,15 +6341,15 @@ export const CancelDeploymentRoutesHas$inboundSchema: z.ZodType<
|
|
|
6349
6341
|
]);
|
|
6350
6342
|
|
|
6351
6343
|
/** @internal */
|
|
6352
|
-
export type
|
|
6344
|
+
export type RoutesHas$Outbound =
|
|
6353
6345
|
| CancelDeploymentHas1$Outbound
|
|
6354
6346
|
| CancelDeploymentHas2$Outbound;
|
|
6355
6347
|
|
|
6356
6348
|
/** @internal */
|
|
6357
|
-
export const
|
|
6358
|
-
|
|
6349
|
+
export const RoutesHas$outboundSchema: z.ZodType<
|
|
6350
|
+
RoutesHas$Outbound,
|
|
6359
6351
|
z.ZodTypeDef,
|
|
6360
|
-
|
|
6352
|
+
RoutesHas
|
|
6361
6353
|
> = z.union([
|
|
6362
6354
|
z.lazy(() => CancelDeploymentHas1$outboundSchema),
|
|
6363
6355
|
z.lazy(() => CancelDeploymentHas2$outboundSchema),
|
|
@@ -6367,30 +6359,26 @@ export const CancelDeploymentRoutesHas$outboundSchema: z.ZodType<
|
|
|
6367
6359
|
* @internal
|
|
6368
6360
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6369
6361
|
*/
|
|
6370
|
-
export namespace
|
|
6371
|
-
/** @deprecated use `
|
|
6372
|
-
export const inboundSchema =
|
|
6373
|
-
/** @deprecated use `
|
|
6374
|
-
export const outboundSchema =
|
|
6375
|
-
/** @deprecated use `
|
|
6376
|
-
export type Outbound =
|
|
6362
|
+
export namespace RoutesHas$ {
|
|
6363
|
+
/** @deprecated use `RoutesHas$inboundSchema` instead. */
|
|
6364
|
+
export const inboundSchema = RoutesHas$inboundSchema;
|
|
6365
|
+
/** @deprecated use `RoutesHas$outboundSchema` instead. */
|
|
6366
|
+
export const outboundSchema = RoutesHas$outboundSchema;
|
|
6367
|
+
/** @deprecated use `RoutesHas$Outbound` instead. */
|
|
6368
|
+
export type Outbound = RoutesHas$Outbound;
|
|
6377
6369
|
}
|
|
6378
6370
|
|
|
6379
|
-
export function
|
|
6380
|
-
|
|
6381
|
-
): string {
|
|
6382
|
-
return JSON.stringify(
|
|
6383
|
-
CancelDeploymentRoutesHas$outboundSchema.parse(cancelDeploymentRoutesHas),
|
|
6384
|
-
);
|
|
6371
|
+
export function routesHasToJSON(routesHas: RoutesHas): string {
|
|
6372
|
+
return JSON.stringify(RoutesHas$outboundSchema.parse(routesHas));
|
|
6385
6373
|
}
|
|
6386
6374
|
|
|
6387
|
-
export function
|
|
6375
|
+
export function routesHasFromJSON(
|
|
6388
6376
|
jsonString: string,
|
|
6389
|
-
): SafeParseResult<
|
|
6377
|
+
): SafeParseResult<RoutesHas, SDKValidationError> {
|
|
6390
6378
|
return safeParse(
|
|
6391
6379
|
jsonString,
|
|
6392
|
-
(x) =>
|
|
6393
|
-
`Failed to parse '
|
|
6380
|
+
(x) => RoutesHas$inboundSchema.parse(JSON.parse(x)),
|
|
6381
|
+
`Failed to parse 'RoutesHas' from JSON`,
|
|
6394
6382
|
);
|
|
6395
6383
|
}
|
|
6396
6384
|
|
|
@@ -7013,8 +7001,8 @@ export function cancelDeploymentMissing1FromJSON(
|
|
|
7013
7001
|
}
|
|
7014
7002
|
|
|
7015
7003
|
/** @internal */
|
|
7016
|
-
export const
|
|
7017
|
-
|
|
7004
|
+
export const RoutesMissing$inboundSchema: z.ZodType<
|
|
7005
|
+
RoutesMissing,
|
|
7018
7006
|
z.ZodTypeDef,
|
|
7019
7007
|
unknown
|
|
7020
7008
|
> = z.union([
|
|
@@ -7023,15 +7011,15 @@ export const CancelDeploymentRoutesMissing$inboundSchema: z.ZodType<
|
|
|
7023
7011
|
]);
|
|
7024
7012
|
|
|
7025
7013
|
/** @internal */
|
|
7026
|
-
export type
|
|
7014
|
+
export type RoutesMissing$Outbound =
|
|
7027
7015
|
| CancelDeploymentMissing1$Outbound
|
|
7028
7016
|
| CancelDeploymentMissing2$Outbound;
|
|
7029
7017
|
|
|
7030
7018
|
/** @internal */
|
|
7031
|
-
export const
|
|
7032
|
-
|
|
7019
|
+
export const RoutesMissing$outboundSchema: z.ZodType<
|
|
7020
|
+
RoutesMissing$Outbound,
|
|
7033
7021
|
z.ZodTypeDef,
|
|
7034
|
-
|
|
7022
|
+
RoutesMissing
|
|
7035
7023
|
> = z.union([
|
|
7036
7024
|
z.lazy(() => CancelDeploymentMissing1$outboundSchema),
|
|
7037
7025
|
z.lazy(() => CancelDeploymentMissing2$outboundSchema),
|
|
@@ -7041,32 +7029,26 @@ export const CancelDeploymentRoutesMissing$outboundSchema: z.ZodType<
|
|
|
7041
7029
|
* @internal
|
|
7042
7030
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
7043
7031
|
*/
|
|
7044
|
-
export namespace
|
|
7045
|
-
/** @deprecated use `
|
|
7046
|
-
export const inboundSchema =
|
|
7047
|
-
/** @deprecated use `
|
|
7048
|
-
export const outboundSchema =
|
|
7049
|
-
/** @deprecated use `
|
|
7050
|
-
export type Outbound =
|
|
7032
|
+
export namespace RoutesMissing$ {
|
|
7033
|
+
/** @deprecated use `RoutesMissing$inboundSchema` instead. */
|
|
7034
|
+
export const inboundSchema = RoutesMissing$inboundSchema;
|
|
7035
|
+
/** @deprecated use `RoutesMissing$outboundSchema` instead. */
|
|
7036
|
+
export const outboundSchema = RoutesMissing$outboundSchema;
|
|
7037
|
+
/** @deprecated use `RoutesMissing$Outbound` instead. */
|
|
7038
|
+
export type Outbound = RoutesMissing$Outbound;
|
|
7051
7039
|
}
|
|
7052
7040
|
|
|
7053
|
-
export function
|
|
7054
|
-
|
|
7055
|
-
): string {
|
|
7056
|
-
return JSON.stringify(
|
|
7057
|
-
CancelDeploymentRoutesMissing$outboundSchema.parse(
|
|
7058
|
-
cancelDeploymentRoutesMissing,
|
|
7059
|
-
),
|
|
7060
|
-
);
|
|
7041
|
+
export function routesMissingToJSON(routesMissing: RoutesMissing): string {
|
|
7042
|
+
return JSON.stringify(RoutesMissing$outboundSchema.parse(routesMissing));
|
|
7061
7043
|
}
|
|
7062
7044
|
|
|
7063
|
-
export function
|
|
7045
|
+
export function routesMissingFromJSON(
|
|
7064
7046
|
jsonString: string,
|
|
7065
|
-
): SafeParseResult<
|
|
7047
|
+
): SafeParseResult<RoutesMissing, SDKValidationError> {
|
|
7066
7048
|
return safeParse(
|
|
7067
7049
|
jsonString,
|
|
7068
|
-
(x) =>
|
|
7069
|
-
`Failed to parse '
|
|
7050
|
+
(x) => RoutesMissing$inboundSchema.parse(JSON.parse(x)),
|
|
7051
|
+
`Failed to parse 'RoutesMissing' from JSON`,
|
|
7070
7052
|
);
|
|
7071
7053
|
}
|
|
7072
7054
|
|
|
@@ -7092,8 +7074,8 @@ export namespace CancelDeploymentRoutesAction$ {
|
|
|
7092
7074
|
}
|
|
7093
7075
|
|
|
7094
7076
|
/** @internal */
|
|
7095
|
-
export const
|
|
7096
|
-
|
|
7077
|
+
export const RoutesMitigate$inboundSchema: z.ZodType<
|
|
7078
|
+
RoutesMitigate,
|
|
7097
7079
|
z.ZodTypeDef,
|
|
7098
7080
|
unknown
|
|
7099
7081
|
> = z.object({
|
|
@@ -7101,15 +7083,15 @@ export const CancelDeploymentRoutesMitigate$inboundSchema: z.ZodType<
|
|
|
7101
7083
|
});
|
|
7102
7084
|
|
|
7103
7085
|
/** @internal */
|
|
7104
|
-
export type
|
|
7086
|
+
export type RoutesMitigate$Outbound = {
|
|
7105
7087
|
action: string;
|
|
7106
7088
|
};
|
|
7107
7089
|
|
|
7108
7090
|
/** @internal */
|
|
7109
|
-
export const
|
|
7110
|
-
|
|
7091
|
+
export const RoutesMitigate$outboundSchema: z.ZodType<
|
|
7092
|
+
RoutesMitigate$Outbound,
|
|
7111
7093
|
z.ZodTypeDef,
|
|
7112
|
-
|
|
7094
|
+
RoutesMitigate
|
|
7113
7095
|
> = z.object({
|
|
7114
7096
|
action: CancelDeploymentRoutesAction$outboundSchema,
|
|
7115
7097
|
});
|
|
@@ -7118,32 +7100,26 @@ export const CancelDeploymentRoutesMitigate$outboundSchema: z.ZodType<
|
|
|
7118
7100
|
* @internal
|
|
7119
7101
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
7120
7102
|
*/
|
|
7121
|
-
export namespace
|
|
7122
|
-
/** @deprecated use `
|
|
7123
|
-
export const inboundSchema =
|
|
7124
|
-
/** @deprecated use `
|
|
7125
|
-
export const outboundSchema =
|
|
7126
|
-
/** @deprecated use `
|
|
7127
|
-
export type Outbound =
|
|
7103
|
+
export namespace RoutesMitigate$ {
|
|
7104
|
+
/** @deprecated use `RoutesMitigate$inboundSchema` instead. */
|
|
7105
|
+
export const inboundSchema = RoutesMitigate$inboundSchema;
|
|
7106
|
+
/** @deprecated use `RoutesMitigate$outboundSchema` instead. */
|
|
7107
|
+
export const outboundSchema = RoutesMitigate$outboundSchema;
|
|
7108
|
+
/** @deprecated use `RoutesMitigate$Outbound` instead. */
|
|
7109
|
+
export type Outbound = RoutesMitigate$Outbound;
|
|
7128
7110
|
}
|
|
7129
7111
|
|
|
7130
|
-
export function
|
|
7131
|
-
|
|
7132
|
-
): string {
|
|
7133
|
-
return JSON.stringify(
|
|
7134
|
-
CancelDeploymentRoutesMitigate$outboundSchema.parse(
|
|
7135
|
-
cancelDeploymentRoutesMitigate,
|
|
7136
|
-
),
|
|
7137
|
-
);
|
|
7112
|
+
export function routesMitigateToJSON(routesMitigate: RoutesMitigate): string {
|
|
7113
|
+
return JSON.stringify(RoutesMitigate$outboundSchema.parse(routesMitigate));
|
|
7138
7114
|
}
|
|
7139
7115
|
|
|
7140
|
-
export function
|
|
7116
|
+
export function routesMitigateFromJSON(
|
|
7141
7117
|
jsonString: string,
|
|
7142
|
-
): SafeParseResult<
|
|
7118
|
+
): SafeParseResult<RoutesMitigate, SDKValidationError> {
|
|
7143
7119
|
return safeParse(
|
|
7144
7120
|
jsonString,
|
|
7145
|
-
(x) =>
|
|
7146
|
-
`Failed to parse '
|
|
7121
|
+
(x) => RoutesMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
7122
|
+
`Failed to parse 'RoutesMitigate' from JSON`,
|
|
7147
7123
|
);
|
|
7148
7124
|
}
|
|
7149
7125
|
|
|
@@ -7604,8 +7580,7 @@ export const CancelDeploymentRoutes1$inboundSchema: z.ZodType<
|
|
|
7604
7580
|
z.lazy(() => CancelDeploymentMissing2$inboundSchema),
|
|
7605
7581
|
]),
|
|
7606
7582
|
).optional(),
|
|
7607
|
-
mitigate: z.lazy(() =>
|
|
7608
|
-
.optional(),
|
|
7583
|
+
mitigate: z.lazy(() => RoutesMitigate$inboundSchema).optional(),
|
|
7609
7584
|
transforms: z.array(z.lazy(() => RoutesTransforms$inboundSchema)).optional(),
|
|
7610
7585
|
locale: z.lazy(() => RoutesLocale$inboundSchema).optional(),
|
|
7611
7586
|
middlewarePath: z.string().optional(),
|
|
@@ -7633,7 +7608,7 @@ export type CancelDeploymentRoutes1$Outbound = {
|
|
|
7633
7608
|
CancelDeploymentMissing1$Outbound | CancelDeploymentMissing2$Outbound
|
|
7634
7609
|
>
|
|
7635
7610
|
| undefined;
|
|
7636
|
-
mitigate?:
|
|
7611
|
+
mitigate?: RoutesMitigate$Outbound | undefined;
|
|
7637
7612
|
transforms?: Array<RoutesTransforms$Outbound> | undefined;
|
|
7638
7613
|
locale?: RoutesLocale$Outbound | undefined;
|
|
7639
7614
|
middlewarePath?: string | undefined;
|
|
@@ -7669,8 +7644,7 @@ export const CancelDeploymentRoutes1$outboundSchema: z.ZodType<
|
|
|
7669
7644
|
z.lazy(() => CancelDeploymentMissing2$outboundSchema),
|
|
7670
7645
|
]),
|
|
7671
7646
|
).optional(),
|
|
7672
|
-
mitigate: z.lazy(() =>
|
|
7673
|
-
.optional(),
|
|
7647
|
+
mitigate: z.lazy(() => RoutesMitigate$outboundSchema).optional(),
|
|
7674
7648
|
transforms: z.array(z.lazy(() => RoutesTransforms$outboundSchema)).optional(),
|
|
7675
7649
|
locale: z.lazy(() => RoutesLocale$outboundSchema).optional(),
|
|
7676
7650
|
middlewarePath: z.string().optional(),
|