@vercel/sdk 1.6.7 → 1.6.8
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 +17 -29
- package/bin/mcp-server.js +2591 -901
- package/bin/mcp-server.js.map +29 -26
- package/docs/sdks/vercel/README.md +77 -0
- package/esm/__tests__/environment.test.js +28 -4
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/vercel.test.d.ts +2 -0
- package/esm/__tests__/vercel.test.d.ts.map +1 -0
- package/esm/__tests__/vercel.test.js +21 -0
- package/esm/__tests__/vercel.test.js.map +1 -0
- package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
- package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
- package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
- package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
- package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
- package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/sdks.d.ts +3 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +6 -11
- package/esm/lib/sdks.js.map +1 -1
- 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 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
- package/esm/models/authuser.d.ts +0 -5
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -2
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +268 -26
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +194 -24
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createcustomenvironmentop.d.ts +244 -2
- package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/createcustomenvironmentop.js +174 -2
- package/esm/models/createcustomenvironmentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +357 -58
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +290 -60
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +328 -71
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +253 -75
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createrecordop.d.ts +43 -43
- package/esm/models/createrecordop.d.ts.map +1 -1
- package/esm/models/createrecordop.js +51 -51
- package/esm/models/createrecordop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +8 -8
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +12 -13
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +242 -2
- package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/getcustomenvironmentop.js +175 -2
- package/esm/models/getcustomenvironmentop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +502 -18
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +354 -14
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getprojectdomainsop.d.ts +30 -30
- package/esm/models/getprojectdomainsop.d.ts.map +1 -1
- package/esm/models/getprojectdomainsop.js +32 -32
- package/esm/models/getprojectdomainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +342 -95
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +285 -112
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/listaliasesop.d.ts +8 -8
- package/esm/models/listaliasesop.d.ts.map +1 -1
- package/esm/models/listaliasesop.js +12 -12
- package/esm/models/listaliasesop.js.map +1 -1
- package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
- package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
- package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
- package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
- package/esm/models/removecustomenvironmentop.d.ts +245 -2
- package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
- package/esm/models/removecustomenvironmentop.js +173 -2
- package/esm/models/removecustomenvironmentop.js.map +1 -1
- package/esm/models/updatecustomenvironmentop.d.ts +244 -2
- package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
- package/esm/models/updatecustomenvironmentop.js +174 -2
- package/esm/models/updatecustomenvironmentop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +358 -111
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +309 -135
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +342 -95
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +285 -111
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +124 -6
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +114 -6
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/sdk.d.ts +8 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +8 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/environment.test.ts +28 -4
- package/src/__tests__/vercel.test.ts +26 -0
- package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
- package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
- package/src/models/authuser.ts +0 -7
- package/src/models/canceldeploymentop.ts +503 -43
- package/src/models/createcustomenvironmentop.ts +426 -4
- package/src/models/createdeploymentop.ts +640 -117
- package/src/models/createprojectop.ts +658 -201
- package/src/models/createrecordop.ts +96 -84
- package/src/models/getaliasop.ts +16 -14
- package/src/models/getcustomenvironmentop.ts +412 -4
- package/src/models/getdeploymentop.ts +962 -49
- package/src/models/getprojectdomainsop.ts +84 -84
- package/src/models/getprojectsop.ts +630 -189
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
- package/src/models/listaliasesop.ts +19 -16
- package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
- package/src/models/removecustomenvironmentop.ts +425 -4
- package/src/models/updatecustomenvironmentop.ts +437 -4
- package/src/models/updateprojectdatacacheop.ts +731 -271
- package/src/models/updateprojectop.ts +692 -249
- package/src/models/userevent.ts +205 -12
- package/src/sdk/sdk.ts +18 -1
- package/vercel-spec.json +2646 -161
|
@@ -0,0 +1,786 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const RequestBodyScope = {
|
|
13
|
+
AliasProtectionOverride: "alias-protection-override",
|
|
14
|
+
} as const;
|
|
15
|
+
export type RequestBodyScope = ClosedEnum<typeof RequestBodyScope>;
|
|
16
|
+
|
|
17
|
+
export const PatchAliasesIdProtectionBypassRequestBodyAction = {
|
|
18
|
+
Create: "create",
|
|
19
|
+
Revoke: "revoke",
|
|
20
|
+
} as const;
|
|
21
|
+
export type PatchAliasesIdProtectionBypassRequestBodyAction = ClosedEnum<
|
|
22
|
+
typeof PatchAliasesIdProtectionBypassRequestBodyAction
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
export type Override = {
|
|
26
|
+
scope: RequestBodyScope;
|
|
27
|
+
action: PatchAliasesIdProtectionBypassRequestBodyAction;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type RequestBody3 = {
|
|
31
|
+
override: Override;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Invitation status for the user scoped bypass.
|
|
36
|
+
*/
|
|
37
|
+
export const ScopeAccess = {
|
|
38
|
+
Denied: "denied",
|
|
39
|
+
Granted: "granted",
|
|
40
|
+
} as const;
|
|
41
|
+
/**
|
|
42
|
+
* Invitation status for the user scoped bypass.
|
|
43
|
+
*/
|
|
44
|
+
export type ScopeAccess = ClosedEnum<typeof ScopeAccess>;
|
|
45
|
+
|
|
46
|
+
export type Scope2 = {
|
|
47
|
+
/**
|
|
48
|
+
* Specified user id for the scoped bypass.
|
|
49
|
+
*/
|
|
50
|
+
userId?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Specified email for the scoped bypass.
|
|
53
|
+
*/
|
|
54
|
+
email: string;
|
|
55
|
+
/**
|
|
56
|
+
* Invitation status for the user scoped bypass.
|
|
57
|
+
*/
|
|
58
|
+
access: ScopeAccess;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Invitation status for the user scoped bypass.
|
|
63
|
+
*/
|
|
64
|
+
export const Access = {
|
|
65
|
+
Denied: "denied",
|
|
66
|
+
Granted: "granted",
|
|
67
|
+
} as const;
|
|
68
|
+
/**
|
|
69
|
+
* Invitation status for the user scoped bypass.
|
|
70
|
+
*/
|
|
71
|
+
export type Access = ClosedEnum<typeof Access>;
|
|
72
|
+
|
|
73
|
+
export type Scope1 = {
|
|
74
|
+
/**
|
|
75
|
+
* Specified user id for the scoped bypass.
|
|
76
|
+
*/
|
|
77
|
+
userId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Specified email for the scoped bypass.
|
|
80
|
+
*/
|
|
81
|
+
email?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Invitation status for the user scoped bypass.
|
|
84
|
+
*/
|
|
85
|
+
access: Access;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Instructions for creating a user scoped protection bypass
|
|
90
|
+
*/
|
|
91
|
+
export type Scope = Scope1 | Scope2;
|
|
92
|
+
|
|
93
|
+
export type RequestBody2 = {
|
|
94
|
+
/**
|
|
95
|
+
* Instructions for creating a user scoped protection bypass
|
|
96
|
+
*/
|
|
97
|
+
scope: Scope1 | Scope2;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Optional instructions for revoking and regenerating a shareable link
|
|
102
|
+
*/
|
|
103
|
+
export type RequestBodyRevoke = {
|
|
104
|
+
/**
|
|
105
|
+
* Sharebale link to revoked
|
|
106
|
+
*/
|
|
107
|
+
secret: string;
|
|
108
|
+
/**
|
|
109
|
+
* Whether or not a new shareable link should be created after the provided secret is revoked
|
|
110
|
+
*/
|
|
111
|
+
regenerate: boolean;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type RequestBody1 = {
|
|
115
|
+
/**
|
|
116
|
+
* Optional instructions for revoking and regenerating a shareable link
|
|
117
|
+
*/
|
|
118
|
+
revoke?: RequestBodyRevoke | undefined;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export type PatchAliasesIdProtectionBypassRequestBody =
|
|
122
|
+
| RequestBody1
|
|
123
|
+
| RequestBody2
|
|
124
|
+
| RequestBody3;
|
|
125
|
+
|
|
126
|
+
export type PatchAliasesIdProtectionBypassRequest = {
|
|
127
|
+
/**
|
|
128
|
+
* The alias or deployment ID
|
|
129
|
+
*/
|
|
130
|
+
id: string;
|
|
131
|
+
requestBody?: RequestBody1 | RequestBody2 | RequestBody3 | undefined;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const RequestBodyScope$inboundSchema: z.ZodNativeEnum<
|
|
136
|
+
typeof RequestBodyScope
|
|
137
|
+
> = z.nativeEnum(RequestBodyScope);
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const RequestBodyScope$outboundSchema: z.ZodNativeEnum<
|
|
141
|
+
typeof RequestBodyScope
|
|
142
|
+
> = RequestBodyScope$inboundSchema;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @internal
|
|
146
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
+
*/
|
|
148
|
+
export namespace RequestBodyScope$ {
|
|
149
|
+
/** @deprecated use `RequestBodyScope$inboundSchema` instead. */
|
|
150
|
+
export const inboundSchema = RequestBodyScope$inboundSchema;
|
|
151
|
+
/** @deprecated use `RequestBodyScope$outboundSchema` instead. */
|
|
152
|
+
export const outboundSchema = RequestBodyScope$outboundSchema;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export const PatchAliasesIdProtectionBypassRequestBodyAction$inboundSchema:
|
|
157
|
+
z.ZodNativeEnum<typeof PatchAliasesIdProtectionBypassRequestBodyAction> = z
|
|
158
|
+
.nativeEnum(PatchAliasesIdProtectionBypassRequestBodyAction);
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const PatchAliasesIdProtectionBypassRequestBodyAction$outboundSchema:
|
|
162
|
+
z.ZodNativeEnum<typeof PatchAliasesIdProtectionBypassRequestBodyAction> =
|
|
163
|
+
PatchAliasesIdProtectionBypassRequestBodyAction$inboundSchema;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
+
*/
|
|
169
|
+
export namespace PatchAliasesIdProtectionBypassRequestBodyAction$ {
|
|
170
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequestBodyAction$inboundSchema` instead. */
|
|
171
|
+
export const inboundSchema =
|
|
172
|
+
PatchAliasesIdProtectionBypassRequestBodyAction$inboundSchema;
|
|
173
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequestBodyAction$outboundSchema` instead. */
|
|
174
|
+
export const outboundSchema =
|
|
175
|
+
PatchAliasesIdProtectionBypassRequestBodyAction$outboundSchema;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const Override$inboundSchema: z.ZodType<
|
|
180
|
+
Override,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
unknown
|
|
183
|
+
> = z.object({
|
|
184
|
+
scope: RequestBodyScope$inboundSchema,
|
|
185
|
+
action: PatchAliasesIdProtectionBypassRequestBodyAction$inboundSchema,
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export type Override$Outbound = {
|
|
190
|
+
scope: string;
|
|
191
|
+
action: string;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const Override$outboundSchema: z.ZodType<
|
|
196
|
+
Override$Outbound,
|
|
197
|
+
z.ZodTypeDef,
|
|
198
|
+
Override
|
|
199
|
+
> = z.object({
|
|
200
|
+
scope: RequestBodyScope$outboundSchema,
|
|
201
|
+
action: PatchAliasesIdProtectionBypassRequestBodyAction$outboundSchema,
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
|
+
*/
|
|
208
|
+
export namespace Override$ {
|
|
209
|
+
/** @deprecated use `Override$inboundSchema` instead. */
|
|
210
|
+
export const inboundSchema = Override$inboundSchema;
|
|
211
|
+
/** @deprecated use `Override$outboundSchema` instead. */
|
|
212
|
+
export const outboundSchema = Override$outboundSchema;
|
|
213
|
+
/** @deprecated use `Override$Outbound` instead. */
|
|
214
|
+
export type Outbound = Override$Outbound;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export function overrideToJSON(override: Override): string {
|
|
218
|
+
return JSON.stringify(Override$outboundSchema.parse(override));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function overrideFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<Override, SDKValidationError> {
|
|
224
|
+
return safeParse(
|
|
225
|
+
jsonString,
|
|
226
|
+
(x) => Override$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'Override' from JSON`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const RequestBody3$inboundSchema: z.ZodType<
|
|
233
|
+
RequestBody3,
|
|
234
|
+
z.ZodTypeDef,
|
|
235
|
+
unknown
|
|
236
|
+
> = z.object({
|
|
237
|
+
override: z.lazy(() => Override$inboundSchema),
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
/** @internal */
|
|
241
|
+
export type RequestBody3$Outbound = {
|
|
242
|
+
override: Override$Outbound;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
/** @internal */
|
|
246
|
+
export const RequestBody3$outboundSchema: z.ZodType<
|
|
247
|
+
RequestBody3$Outbound,
|
|
248
|
+
z.ZodTypeDef,
|
|
249
|
+
RequestBody3
|
|
250
|
+
> = z.object({
|
|
251
|
+
override: z.lazy(() => Override$outboundSchema),
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
257
|
+
*/
|
|
258
|
+
export namespace RequestBody3$ {
|
|
259
|
+
/** @deprecated use `RequestBody3$inboundSchema` instead. */
|
|
260
|
+
export const inboundSchema = RequestBody3$inboundSchema;
|
|
261
|
+
/** @deprecated use `RequestBody3$outboundSchema` instead. */
|
|
262
|
+
export const outboundSchema = RequestBody3$outboundSchema;
|
|
263
|
+
/** @deprecated use `RequestBody3$Outbound` instead. */
|
|
264
|
+
export type Outbound = RequestBody3$Outbound;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function requestBody3ToJSON(requestBody3: RequestBody3): string {
|
|
268
|
+
return JSON.stringify(RequestBody3$outboundSchema.parse(requestBody3));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function requestBody3FromJSON(
|
|
272
|
+
jsonString: string,
|
|
273
|
+
): SafeParseResult<RequestBody3, SDKValidationError> {
|
|
274
|
+
return safeParse(
|
|
275
|
+
jsonString,
|
|
276
|
+
(x) => RequestBody3$inboundSchema.parse(JSON.parse(x)),
|
|
277
|
+
`Failed to parse 'RequestBody3' from JSON`,
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** @internal */
|
|
282
|
+
export const ScopeAccess$inboundSchema: z.ZodNativeEnum<typeof ScopeAccess> = z
|
|
283
|
+
.nativeEnum(ScopeAccess);
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export const ScopeAccess$outboundSchema: z.ZodNativeEnum<typeof ScopeAccess> =
|
|
287
|
+
ScopeAccess$inboundSchema;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @internal
|
|
291
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
292
|
+
*/
|
|
293
|
+
export namespace ScopeAccess$ {
|
|
294
|
+
/** @deprecated use `ScopeAccess$inboundSchema` instead. */
|
|
295
|
+
export const inboundSchema = ScopeAccess$inboundSchema;
|
|
296
|
+
/** @deprecated use `ScopeAccess$outboundSchema` instead. */
|
|
297
|
+
export const outboundSchema = ScopeAccess$outboundSchema;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** @internal */
|
|
301
|
+
export const Scope2$inboundSchema: z.ZodType<Scope2, z.ZodTypeDef, unknown> = z
|
|
302
|
+
.object({
|
|
303
|
+
userId: z.string().optional(),
|
|
304
|
+
email: z.string(),
|
|
305
|
+
access: ScopeAccess$inboundSchema,
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
/** @internal */
|
|
309
|
+
export type Scope2$Outbound = {
|
|
310
|
+
userId?: string | undefined;
|
|
311
|
+
email: string;
|
|
312
|
+
access: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const Scope2$outboundSchema: z.ZodType<
|
|
317
|
+
Scope2$Outbound,
|
|
318
|
+
z.ZodTypeDef,
|
|
319
|
+
Scope2
|
|
320
|
+
> = z.object({
|
|
321
|
+
userId: z.string().optional(),
|
|
322
|
+
email: z.string(),
|
|
323
|
+
access: ScopeAccess$outboundSchema,
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @internal
|
|
328
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
329
|
+
*/
|
|
330
|
+
export namespace Scope2$ {
|
|
331
|
+
/** @deprecated use `Scope2$inboundSchema` instead. */
|
|
332
|
+
export const inboundSchema = Scope2$inboundSchema;
|
|
333
|
+
/** @deprecated use `Scope2$outboundSchema` instead. */
|
|
334
|
+
export const outboundSchema = Scope2$outboundSchema;
|
|
335
|
+
/** @deprecated use `Scope2$Outbound` instead. */
|
|
336
|
+
export type Outbound = Scope2$Outbound;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export function scope2ToJSON(scope2: Scope2): string {
|
|
340
|
+
return JSON.stringify(Scope2$outboundSchema.parse(scope2));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export function scope2FromJSON(
|
|
344
|
+
jsonString: string,
|
|
345
|
+
): SafeParseResult<Scope2, SDKValidationError> {
|
|
346
|
+
return safeParse(
|
|
347
|
+
jsonString,
|
|
348
|
+
(x) => Scope2$inboundSchema.parse(JSON.parse(x)),
|
|
349
|
+
`Failed to parse 'Scope2' from JSON`,
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/** @internal */
|
|
354
|
+
export const Access$inboundSchema: z.ZodNativeEnum<typeof Access> = z
|
|
355
|
+
.nativeEnum(Access);
|
|
356
|
+
|
|
357
|
+
/** @internal */
|
|
358
|
+
export const Access$outboundSchema: z.ZodNativeEnum<typeof Access> =
|
|
359
|
+
Access$inboundSchema;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @internal
|
|
363
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
364
|
+
*/
|
|
365
|
+
export namespace Access$ {
|
|
366
|
+
/** @deprecated use `Access$inboundSchema` instead. */
|
|
367
|
+
export const inboundSchema = Access$inboundSchema;
|
|
368
|
+
/** @deprecated use `Access$outboundSchema` instead. */
|
|
369
|
+
export const outboundSchema = Access$outboundSchema;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/** @internal */
|
|
373
|
+
export const Scope1$inboundSchema: z.ZodType<Scope1, z.ZodTypeDef, unknown> = z
|
|
374
|
+
.object({
|
|
375
|
+
userId: z.string(),
|
|
376
|
+
email: z.string().optional(),
|
|
377
|
+
access: Access$inboundSchema,
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
/** @internal */
|
|
381
|
+
export type Scope1$Outbound = {
|
|
382
|
+
userId: string;
|
|
383
|
+
email?: string | undefined;
|
|
384
|
+
access: string;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/** @internal */
|
|
388
|
+
export const Scope1$outboundSchema: z.ZodType<
|
|
389
|
+
Scope1$Outbound,
|
|
390
|
+
z.ZodTypeDef,
|
|
391
|
+
Scope1
|
|
392
|
+
> = z.object({
|
|
393
|
+
userId: z.string(),
|
|
394
|
+
email: z.string().optional(),
|
|
395
|
+
access: Access$outboundSchema,
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @internal
|
|
400
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
401
|
+
*/
|
|
402
|
+
export namespace Scope1$ {
|
|
403
|
+
/** @deprecated use `Scope1$inboundSchema` instead. */
|
|
404
|
+
export const inboundSchema = Scope1$inboundSchema;
|
|
405
|
+
/** @deprecated use `Scope1$outboundSchema` instead. */
|
|
406
|
+
export const outboundSchema = Scope1$outboundSchema;
|
|
407
|
+
/** @deprecated use `Scope1$Outbound` instead. */
|
|
408
|
+
export type Outbound = Scope1$Outbound;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export function scope1ToJSON(scope1: Scope1): string {
|
|
412
|
+
return JSON.stringify(Scope1$outboundSchema.parse(scope1));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export function scope1FromJSON(
|
|
416
|
+
jsonString: string,
|
|
417
|
+
): SafeParseResult<Scope1, SDKValidationError> {
|
|
418
|
+
return safeParse(
|
|
419
|
+
jsonString,
|
|
420
|
+
(x) => Scope1$inboundSchema.parse(JSON.parse(x)),
|
|
421
|
+
`Failed to parse 'Scope1' from JSON`,
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/** @internal */
|
|
426
|
+
export const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown> = z
|
|
427
|
+
.union([
|
|
428
|
+
z.lazy(() => Scope1$inboundSchema),
|
|
429
|
+
z.lazy(() => Scope2$inboundSchema),
|
|
430
|
+
]);
|
|
431
|
+
|
|
432
|
+
/** @internal */
|
|
433
|
+
export type Scope$Outbound = Scope1$Outbound | Scope2$Outbound;
|
|
434
|
+
|
|
435
|
+
/** @internal */
|
|
436
|
+
export const Scope$outboundSchema: z.ZodType<
|
|
437
|
+
Scope$Outbound,
|
|
438
|
+
z.ZodTypeDef,
|
|
439
|
+
Scope
|
|
440
|
+
> = z.union([
|
|
441
|
+
z.lazy(() => Scope1$outboundSchema),
|
|
442
|
+
z.lazy(() => Scope2$outboundSchema),
|
|
443
|
+
]);
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @internal
|
|
447
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
448
|
+
*/
|
|
449
|
+
export namespace Scope$ {
|
|
450
|
+
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
451
|
+
export const inboundSchema = Scope$inboundSchema;
|
|
452
|
+
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
453
|
+
export const outboundSchema = Scope$outboundSchema;
|
|
454
|
+
/** @deprecated use `Scope$Outbound` instead. */
|
|
455
|
+
export type Outbound = Scope$Outbound;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export function scopeToJSON(scope: Scope): string {
|
|
459
|
+
return JSON.stringify(Scope$outboundSchema.parse(scope));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export function scopeFromJSON(
|
|
463
|
+
jsonString: string,
|
|
464
|
+
): SafeParseResult<Scope, SDKValidationError> {
|
|
465
|
+
return safeParse(
|
|
466
|
+
jsonString,
|
|
467
|
+
(x) => Scope$inboundSchema.parse(JSON.parse(x)),
|
|
468
|
+
`Failed to parse 'Scope' from JSON`,
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/** @internal */
|
|
473
|
+
export const RequestBody2$inboundSchema: z.ZodType<
|
|
474
|
+
RequestBody2,
|
|
475
|
+
z.ZodTypeDef,
|
|
476
|
+
unknown
|
|
477
|
+
> = z.object({
|
|
478
|
+
scope: z.union([
|
|
479
|
+
z.lazy(() => Scope1$inboundSchema),
|
|
480
|
+
z.lazy(() => Scope2$inboundSchema),
|
|
481
|
+
]),
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
/** @internal */
|
|
485
|
+
export type RequestBody2$Outbound = {
|
|
486
|
+
scope: Scope1$Outbound | Scope2$Outbound;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
/** @internal */
|
|
490
|
+
export const RequestBody2$outboundSchema: z.ZodType<
|
|
491
|
+
RequestBody2$Outbound,
|
|
492
|
+
z.ZodTypeDef,
|
|
493
|
+
RequestBody2
|
|
494
|
+
> = z.object({
|
|
495
|
+
scope: z.union([
|
|
496
|
+
z.lazy(() => Scope1$outboundSchema),
|
|
497
|
+
z.lazy(() => Scope2$outboundSchema),
|
|
498
|
+
]),
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @internal
|
|
503
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
504
|
+
*/
|
|
505
|
+
export namespace RequestBody2$ {
|
|
506
|
+
/** @deprecated use `RequestBody2$inboundSchema` instead. */
|
|
507
|
+
export const inboundSchema = RequestBody2$inboundSchema;
|
|
508
|
+
/** @deprecated use `RequestBody2$outboundSchema` instead. */
|
|
509
|
+
export const outboundSchema = RequestBody2$outboundSchema;
|
|
510
|
+
/** @deprecated use `RequestBody2$Outbound` instead. */
|
|
511
|
+
export type Outbound = RequestBody2$Outbound;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
515
|
+
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export function requestBody2FromJSON(
|
|
519
|
+
jsonString: string,
|
|
520
|
+
): SafeParseResult<RequestBody2, SDKValidationError> {
|
|
521
|
+
return safeParse(
|
|
522
|
+
jsonString,
|
|
523
|
+
(x) => RequestBody2$inboundSchema.parse(JSON.parse(x)),
|
|
524
|
+
`Failed to parse 'RequestBody2' from JSON`,
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const RequestBodyRevoke$inboundSchema: z.ZodType<
|
|
530
|
+
RequestBodyRevoke,
|
|
531
|
+
z.ZodTypeDef,
|
|
532
|
+
unknown
|
|
533
|
+
> = z.object({
|
|
534
|
+
secret: z.string(),
|
|
535
|
+
regenerate: z.boolean(),
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
/** @internal */
|
|
539
|
+
export type RequestBodyRevoke$Outbound = {
|
|
540
|
+
secret: string;
|
|
541
|
+
regenerate: boolean;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
/** @internal */
|
|
545
|
+
export const RequestBodyRevoke$outboundSchema: z.ZodType<
|
|
546
|
+
RequestBodyRevoke$Outbound,
|
|
547
|
+
z.ZodTypeDef,
|
|
548
|
+
RequestBodyRevoke
|
|
549
|
+
> = z.object({
|
|
550
|
+
secret: z.string(),
|
|
551
|
+
regenerate: z.boolean(),
|
|
552
|
+
});
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* @internal
|
|
556
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
557
|
+
*/
|
|
558
|
+
export namespace RequestBodyRevoke$ {
|
|
559
|
+
/** @deprecated use `RequestBodyRevoke$inboundSchema` instead. */
|
|
560
|
+
export const inboundSchema = RequestBodyRevoke$inboundSchema;
|
|
561
|
+
/** @deprecated use `RequestBodyRevoke$outboundSchema` instead. */
|
|
562
|
+
export const outboundSchema = RequestBodyRevoke$outboundSchema;
|
|
563
|
+
/** @deprecated use `RequestBodyRevoke$Outbound` instead. */
|
|
564
|
+
export type Outbound = RequestBodyRevoke$Outbound;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export function requestBodyRevokeToJSON(
|
|
568
|
+
requestBodyRevoke: RequestBodyRevoke,
|
|
569
|
+
): string {
|
|
570
|
+
return JSON.stringify(
|
|
571
|
+
RequestBodyRevoke$outboundSchema.parse(requestBodyRevoke),
|
|
572
|
+
);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export function requestBodyRevokeFromJSON(
|
|
576
|
+
jsonString: string,
|
|
577
|
+
): SafeParseResult<RequestBodyRevoke, SDKValidationError> {
|
|
578
|
+
return safeParse(
|
|
579
|
+
jsonString,
|
|
580
|
+
(x) => RequestBodyRevoke$inboundSchema.parse(JSON.parse(x)),
|
|
581
|
+
`Failed to parse 'RequestBodyRevoke' from JSON`,
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** @internal */
|
|
586
|
+
export const RequestBody1$inboundSchema: z.ZodType<
|
|
587
|
+
RequestBody1,
|
|
588
|
+
z.ZodTypeDef,
|
|
589
|
+
unknown
|
|
590
|
+
> = z.object({
|
|
591
|
+
revoke: z.lazy(() => RequestBodyRevoke$inboundSchema).optional(),
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
/** @internal */
|
|
595
|
+
export type RequestBody1$Outbound = {
|
|
596
|
+
revoke?: RequestBodyRevoke$Outbound | undefined;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
/** @internal */
|
|
600
|
+
export const RequestBody1$outboundSchema: z.ZodType<
|
|
601
|
+
RequestBody1$Outbound,
|
|
602
|
+
z.ZodTypeDef,
|
|
603
|
+
RequestBody1
|
|
604
|
+
> = z.object({
|
|
605
|
+
revoke: z.lazy(() => RequestBodyRevoke$outboundSchema).optional(),
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @internal
|
|
610
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
611
|
+
*/
|
|
612
|
+
export namespace RequestBody1$ {
|
|
613
|
+
/** @deprecated use `RequestBody1$inboundSchema` instead. */
|
|
614
|
+
export const inboundSchema = RequestBody1$inboundSchema;
|
|
615
|
+
/** @deprecated use `RequestBody1$outboundSchema` instead. */
|
|
616
|
+
export const outboundSchema = RequestBody1$outboundSchema;
|
|
617
|
+
/** @deprecated use `RequestBody1$Outbound` instead. */
|
|
618
|
+
export type Outbound = RequestBody1$Outbound;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
622
|
+
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export function requestBody1FromJSON(
|
|
626
|
+
jsonString: string,
|
|
627
|
+
): SafeParseResult<RequestBody1, SDKValidationError> {
|
|
628
|
+
return safeParse(
|
|
629
|
+
jsonString,
|
|
630
|
+
(x) => RequestBody1$inboundSchema.parse(JSON.parse(x)),
|
|
631
|
+
`Failed to parse 'RequestBody1' from JSON`,
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/** @internal */
|
|
636
|
+
export const PatchAliasesIdProtectionBypassRequestBody$inboundSchema: z.ZodType<
|
|
637
|
+
PatchAliasesIdProtectionBypassRequestBody,
|
|
638
|
+
z.ZodTypeDef,
|
|
639
|
+
unknown
|
|
640
|
+
> = z.union([
|
|
641
|
+
z.lazy(() => RequestBody1$inboundSchema),
|
|
642
|
+
z.lazy(() => RequestBody2$inboundSchema),
|
|
643
|
+
z.lazy(() => RequestBody3$inboundSchema),
|
|
644
|
+
]);
|
|
645
|
+
|
|
646
|
+
/** @internal */
|
|
647
|
+
export type PatchAliasesIdProtectionBypassRequestBody$Outbound =
|
|
648
|
+
| RequestBody1$Outbound
|
|
649
|
+
| RequestBody2$Outbound
|
|
650
|
+
| RequestBody3$Outbound;
|
|
651
|
+
|
|
652
|
+
/** @internal */
|
|
653
|
+
export const PatchAliasesIdProtectionBypassRequestBody$outboundSchema:
|
|
654
|
+
z.ZodType<
|
|
655
|
+
PatchAliasesIdProtectionBypassRequestBody$Outbound,
|
|
656
|
+
z.ZodTypeDef,
|
|
657
|
+
PatchAliasesIdProtectionBypassRequestBody
|
|
658
|
+
> = z.union([
|
|
659
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
660
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
661
|
+
z.lazy(() => RequestBody3$outboundSchema),
|
|
662
|
+
]);
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* @internal
|
|
666
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
667
|
+
*/
|
|
668
|
+
export namespace PatchAliasesIdProtectionBypassRequestBody$ {
|
|
669
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequestBody$inboundSchema` instead. */
|
|
670
|
+
export const inboundSchema =
|
|
671
|
+
PatchAliasesIdProtectionBypassRequestBody$inboundSchema;
|
|
672
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequestBody$outboundSchema` instead. */
|
|
673
|
+
export const outboundSchema =
|
|
674
|
+
PatchAliasesIdProtectionBypassRequestBody$outboundSchema;
|
|
675
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequestBody$Outbound` instead. */
|
|
676
|
+
export type Outbound = PatchAliasesIdProtectionBypassRequestBody$Outbound;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export function patchAliasesIdProtectionBypassRequestBodyToJSON(
|
|
680
|
+
patchAliasesIdProtectionBypassRequestBody:
|
|
681
|
+
PatchAliasesIdProtectionBypassRequestBody,
|
|
682
|
+
): string {
|
|
683
|
+
return JSON.stringify(
|
|
684
|
+
PatchAliasesIdProtectionBypassRequestBody$outboundSchema.parse(
|
|
685
|
+
patchAliasesIdProtectionBypassRequestBody,
|
|
686
|
+
),
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export function patchAliasesIdProtectionBypassRequestBodyFromJSON(
|
|
691
|
+
jsonString: string,
|
|
692
|
+
): SafeParseResult<
|
|
693
|
+
PatchAliasesIdProtectionBypassRequestBody,
|
|
694
|
+
SDKValidationError
|
|
695
|
+
> {
|
|
696
|
+
return safeParse(
|
|
697
|
+
jsonString,
|
|
698
|
+
(x) =>
|
|
699
|
+
PatchAliasesIdProtectionBypassRequestBody$inboundSchema.parse(
|
|
700
|
+
JSON.parse(x),
|
|
701
|
+
),
|
|
702
|
+
`Failed to parse 'PatchAliasesIdProtectionBypassRequestBody' from JSON`,
|
|
703
|
+
);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/** @internal */
|
|
707
|
+
export const PatchAliasesIdProtectionBypassRequest$inboundSchema: z.ZodType<
|
|
708
|
+
PatchAliasesIdProtectionBypassRequest,
|
|
709
|
+
z.ZodTypeDef,
|
|
710
|
+
unknown
|
|
711
|
+
> = z.object({
|
|
712
|
+
id: z.string(),
|
|
713
|
+
RequestBody: z.union([
|
|
714
|
+
z.lazy(() => RequestBody1$inboundSchema),
|
|
715
|
+
z.lazy(() => RequestBody2$inboundSchema),
|
|
716
|
+
z.lazy(() => RequestBody3$inboundSchema),
|
|
717
|
+
]).optional(),
|
|
718
|
+
}).transform((v) => {
|
|
719
|
+
return remap$(v, {
|
|
720
|
+
"RequestBody": "requestBody",
|
|
721
|
+
});
|
|
722
|
+
});
|
|
723
|
+
|
|
724
|
+
/** @internal */
|
|
725
|
+
export type PatchAliasesIdProtectionBypassRequest$Outbound = {
|
|
726
|
+
id: string;
|
|
727
|
+
RequestBody?:
|
|
728
|
+
| RequestBody1$Outbound
|
|
729
|
+
| RequestBody2$Outbound
|
|
730
|
+
| RequestBody3$Outbound
|
|
731
|
+
| undefined;
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
/** @internal */
|
|
735
|
+
export const PatchAliasesIdProtectionBypassRequest$outboundSchema: z.ZodType<
|
|
736
|
+
PatchAliasesIdProtectionBypassRequest$Outbound,
|
|
737
|
+
z.ZodTypeDef,
|
|
738
|
+
PatchAliasesIdProtectionBypassRequest
|
|
739
|
+
> = z.object({
|
|
740
|
+
id: z.string(),
|
|
741
|
+
requestBody: z.union([
|
|
742
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
743
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
744
|
+
z.lazy(() => RequestBody3$outboundSchema),
|
|
745
|
+
]).optional(),
|
|
746
|
+
}).transform((v) => {
|
|
747
|
+
return remap$(v, {
|
|
748
|
+
requestBody: "RequestBody",
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* @internal
|
|
754
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
755
|
+
*/
|
|
756
|
+
export namespace PatchAliasesIdProtectionBypassRequest$ {
|
|
757
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequest$inboundSchema` instead. */
|
|
758
|
+
export const inboundSchema =
|
|
759
|
+
PatchAliasesIdProtectionBypassRequest$inboundSchema;
|
|
760
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequest$outboundSchema` instead. */
|
|
761
|
+
export const outboundSchema =
|
|
762
|
+
PatchAliasesIdProtectionBypassRequest$outboundSchema;
|
|
763
|
+
/** @deprecated use `PatchAliasesIdProtectionBypassRequest$Outbound` instead. */
|
|
764
|
+
export type Outbound = PatchAliasesIdProtectionBypassRequest$Outbound;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export function patchAliasesIdProtectionBypassRequestToJSON(
|
|
768
|
+
patchAliasesIdProtectionBypassRequest: PatchAliasesIdProtectionBypassRequest,
|
|
769
|
+
): string {
|
|
770
|
+
return JSON.stringify(
|
|
771
|
+
PatchAliasesIdProtectionBypassRequest$outboundSchema.parse(
|
|
772
|
+
patchAliasesIdProtectionBypassRequest,
|
|
773
|
+
),
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export function patchAliasesIdProtectionBypassRequestFromJSON(
|
|
778
|
+
jsonString: string,
|
|
779
|
+
): SafeParseResult<PatchAliasesIdProtectionBypassRequest, SDKValidationError> {
|
|
780
|
+
return safeParse(
|
|
781
|
+
jsonString,
|
|
782
|
+
(x) =>
|
|
783
|
+
PatchAliasesIdProtectionBypassRequest$inboundSchema.parse(JSON.parse(x)),
|
|
784
|
+
`Failed to parse 'PatchAliasesIdProtectionBypassRequest' from JSON`,
|
|
785
|
+
);
|
|
786
|
+
}
|