@vercel/sdk 1.10.3 → 1.10.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/bin/mcp-server.js +373 -85
- package/bin/mcp-server.js.map +10 -10
- package/docs/sdks/aliases/README.md +1 -1
- package/esm/__tests__/aliases.test.js +1 -20
- package/esm/__tests__/aliases.test.js.map +1 -1
- package/esm/funcs/aliasesGetAlias.d.ts +2 -2
- package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
- package/esm/funcs/aliasesGetAlias.js +2 -2
- package/esm/funcs/aliasesGetAlias.js.map +1 -1
- 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.js +1 -1
- package/esm/models/createdeploymentop.d.ts +15 -15
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +15 -15
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +654 -0
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +546 -0
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/listaliasesop.d.ts +66 -66
- package/esm/models/listaliasesop.d.ts.map +1 -1
- package/esm/models/listaliasesop.js +78 -78
- package/esm/models/listaliasesop.js.map +1 -1
- package/esm/models/listdeploymentaliasesop.d.ts +30 -30
- package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
- package/esm/models/listdeploymentaliasesop.js +34 -34
- package/esm/models/listdeploymentaliasesop.js.map +1 -1
- package/esm/sdk/aliases.d.ts +2 -2
- package/esm/sdk/aliases.d.ts.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/aliases.test.ts +1 -20
- package/src/funcs/aliasesGetAlias.ts +6 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/createdeploymentop.ts +61 -39
- package/src/models/getaliasop.ts +1262 -0
- package/src/models/listaliasesop.ts +143 -124
- package/src/models/listdeploymentaliasesop.ts +70 -58
- package/src/sdk/aliases.ts +2 -2
- package/vercel-spec.json +350 -1
package/src/models/getaliasop.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
10
|
|
|
@@ -38,6 +39,265 @@ export type GetAliasRequest = {
|
|
|
38
39
|
slug?: string | undefined;
|
|
39
40
|
};
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Information of the user who created the alias
|
|
44
|
+
*/
|
|
45
|
+
export type GetAliasCreator = {
|
|
46
|
+
/**
|
|
47
|
+
* ID of the user who created the alias
|
|
48
|
+
*/
|
|
49
|
+
uid: string;
|
|
50
|
+
/**
|
|
51
|
+
* Email of the user who created the alias
|
|
52
|
+
*/
|
|
53
|
+
email: string;
|
|
54
|
+
/**
|
|
55
|
+
* Username of the user who created the alias
|
|
56
|
+
*/
|
|
57
|
+
username: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A map with the deployment ID, URL and metadata
|
|
62
|
+
*/
|
|
63
|
+
export type GetAliasDeployment = {
|
|
64
|
+
/**
|
|
65
|
+
* The deployment unique identifier
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* The deployment unique URL
|
|
70
|
+
*/
|
|
71
|
+
url: string;
|
|
72
|
+
/**
|
|
73
|
+
* The deployment metadata
|
|
74
|
+
*/
|
|
75
|
+
meta?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const GetAliasProtectionBypassAliasesResponse200Scope = {
|
|
79
|
+
EmailInvite: "email_invite",
|
|
80
|
+
} as const;
|
|
81
|
+
export type GetAliasProtectionBypassAliasesResponse200Scope = ClosedEnum<
|
|
82
|
+
typeof GetAliasProtectionBypassAliasesResponse200Scope
|
|
83
|
+
>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The protection bypass for the alias
|
|
87
|
+
*/
|
|
88
|
+
export type ProtectionBypass4 = {
|
|
89
|
+
createdAt: number;
|
|
90
|
+
lastUpdatedAt: number;
|
|
91
|
+
lastUpdatedBy: string;
|
|
92
|
+
scope: GetAliasProtectionBypassAliasesResponse200Scope;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const GetAliasProtectionBypassAliasesResponseScope = {
|
|
96
|
+
AliasProtectionOverride: "alias-protection-override",
|
|
97
|
+
} as const;
|
|
98
|
+
export type GetAliasProtectionBypassAliasesResponseScope = ClosedEnum<
|
|
99
|
+
typeof GetAliasProtectionBypassAliasesResponseScope
|
|
100
|
+
>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The protection bypass for the alias
|
|
104
|
+
*/
|
|
105
|
+
export type ProtectionBypass3 = {
|
|
106
|
+
createdAt: number;
|
|
107
|
+
createdBy: string;
|
|
108
|
+
scope: GetAliasProtectionBypassAliasesResponseScope;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const ProtectionBypassAccess = {
|
|
112
|
+
Requested: "requested",
|
|
113
|
+
Granted: "granted",
|
|
114
|
+
} as const;
|
|
115
|
+
export type ProtectionBypassAccess = ClosedEnum<typeof ProtectionBypassAccess>;
|
|
116
|
+
|
|
117
|
+
export const GetAliasProtectionBypassAliasesScope = {
|
|
118
|
+
User: "user",
|
|
119
|
+
} as const;
|
|
120
|
+
export type GetAliasProtectionBypassAliasesScope = ClosedEnum<
|
|
121
|
+
typeof GetAliasProtectionBypassAliasesScope
|
|
122
|
+
>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The protection bypass for the alias
|
|
126
|
+
*/
|
|
127
|
+
export type GetAliasProtectionBypass2 = {
|
|
128
|
+
createdAt: number;
|
|
129
|
+
lastUpdatedAt: number;
|
|
130
|
+
lastUpdatedBy: string;
|
|
131
|
+
access: ProtectionBypassAccess;
|
|
132
|
+
scope: GetAliasProtectionBypassAliasesScope;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const GetAliasProtectionBypassScope = {
|
|
136
|
+
ShareableLink: "shareable-link",
|
|
137
|
+
} as const;
|
|
138
|
+
export type GetAliasProtectionBypassScope = ClosedEnum<
|
|
139
|
+
typeof GetAliasProtectionBypassScope
|
|
140
|
+
>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The protection bypass for the alias
|
|
144
|
+
*/
|
|
145
|
+
export type GetAliasProtectionBypass1 = {
|
|
146
|
+
createdAt: number;
|
|
147
|
+
createdBy: string;
|
|
148
|
+
scope: GetAliasProtectionBypassScope;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export type GetAliasProtectionBypass =
|
|
152
|
+
| GetAliasProtectionBypass2
|
|
153
|
+
| ProtectionBypass4
|
|
154
|
+
| GetAliasProtectionBypass1
|
|
155
|
+
| ProtectionBypass3;
|
|
156
|
+
|
|
157
|
+
export type DefaultApp = {
|
|
158
|
+
projectId: string;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* A list of the deployment routing information for each project.
|
|
163
|
+
*/
|
|
164
|
+
export type Applications3 = {
|
|
165
|
+
/**
|
|
166
|
+
* This is the deployment for the same commit, it could be a cancelled deployment. The proxy will fallback to the branchDeploymentId and then the fallbackDeploymentId.
|
|
167
|
+
*/
|
|
168
|
+
deploymentId?: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* This is the latest non-cancelled deployment of the branch alias at the time the commit alias was created. It is possible there is no deployment for the branch, or this was set before the deployment was canceled, in which case this will point to a cancelled deployment, in either case the proxy will fallback to the fallbackDeploymentId.
|
|
171
|
+
*/
|
|
172
|
+
branchDeploymentId?: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* This is the deployment of the fallback host at the time the commit alias was created. It is possible for this to be a deleted deployment, in which case the proxy will show that the deployment is deleted. It will not use the fallbackHost, as a future deployment on the fallback host could be invalid for this deployment, and it could lead to confusion / incorrect behavior for the commit alias.
|
|
175
|
+
*/
|
|
176
|
+
fallbackDeploymentId?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* Temporary for backwards compatibility. Can remove when metadata change is released
|
|
179
|
+
*/
|
|
180
|
+
fallbackHost?: string | undefined;
|
|
181
|
+
branchAlias?: string | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* The project ID of the microfrontends application.
|
|
184
|
+
*/
|
|
185
|
+
projectId: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* A list of the deployment routing information for each project.
|
|
190
|
+
*/
|
|
191
|
+
export type Applications2 = {
|
|
192
|
+
/**
|
|
193
|
+
* This is always set. For branch aliases, it's used as the fallback if there is no deployment for the branch.
|
|
194
|
+
*/
|
|
195
|
+
fallbackHost: string;
|
|
196
|
+
/**
|
|
197
|
+
* Could point to a branch without a deployment if the project was never deployed. The proxy will fallback to the fallbackHost if there is no deployment.
|
|
198
|
+
*/
|
|
199
|
+
branchAlias: string;
|
|
200
|
+
/**
|
|
201
|
+
* The project ID of the microfrontends application.
|
|
202
|
+
*/
|
|
203
|
+
projectId: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A list of the deployment routing information for each project.
|
|
208
|
+
*/
|
|
209
|
+
export type Applications1 = {
|
|
210
|
+
/**
|
|
211
|
+
* This is always set. In production it is used as a pointer to each apps production deployment. For pre-production, it's used as the fallback if there is no deployment for the branch.
|
|
212
|
+
*/
|
|
213
|
+
fallbackHost: string;
|
|
214
|
+
/**
|
|
215
|
+
* The project ID of the microfrontends application.
|
|
216
|
+
*/
|
|
217
|
+
projectId: string;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export type Applications =
|
|
221
|
+
| Array<Applications1>
|
|
222
|
+
| Array<Applications2>
|
|
223
|
+
| Array<Applications3>;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The microfrontends for the alias including the routing configuration
|
|
227
|
+
*/
|
|
228
|
+
export type GetAliasMicrofrontends = {
|
|
229
|
+
defaultApp: DefaultApp;
|
|
230
|
+
applications:
|
|
231
|
+
| Array<Applications1>
|
|
232
|
+
| Array<Applications2>
|
|
233
|
+
| Array<Applications3>;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export type GetAliasResponseBody = {
|
|
237
|
+
/**
|
|
238
|
+
* The alias name, it could be a `.vercel.app` subdomain or a custom domain
|
|
239
|
+
*/
|
|
240
|
+
alias: string;
|
|
241
|
+
/**
|
|
242
|
+
* The date when the alias was created
|
|
243
|
+
*/
|
|
244
|
+
created: Date;
|
|
245
|
+
/**
|
|
246
|
+
* The date when the alias was created in milliseconds since the UNIX epoch
|
|
247
|
+
*/
|
|
248
|
+
createdAt?: number | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* Information of the user who created the alias
|
|
251
|
+
*/
|
|
252
|
+
creator?: GetAliasCreator | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* The date when the alias was deleted in milliseconds since the UNIX epoch
|
|
255
|
+
*/
|
|
256
|
+
deletedAt?: number | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* A map with the deployment ID, URL and metadata
|
|
259
|
+
*/
|
|
260
|
+
deployment?: GetAliasDeployment | undefined;
|
|
261
|
+
/**
|
|
262
|
+
* The deployment ID
|
|
263
|
+
*/
|
|
264
|
+
deploymentId: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* The unique identifier of the project
|
|
267
|
+
*/
|
|
268
|
+
projectId: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* Target destination domain for redirect when the alias is a redirect
|
|
271
|
+
*/
|
|
272
|
+
redirect?: string | null | undefined;
|
|
273
|
+
/**
|
|
274
|
+
* Status code to be used on redirect
|
|
275
|
+
*/
|
|
276
|
+
redirectStatusCode?: number | null | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* The unique identifier of the alias
|
|
279
|
+
*/
|
|
280
|
+
uid: string;
|
|
281
|
+
/**
|
|
282
|
+
* The date when the alias was updated in milliseconds since the UNIX epoch
|
|
283
|
+
*/
|
|
284
|
+
updatedAt?: number | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* The protection bypass for the alias
|
|
287
|
+
*/
|
|
288
|
+
protectionBypass?: {
|
|
289
|
+
[k: string]:
|
|
290
|
+
| GetAliasProtectionBypass2
|
|
291
|
+
| ProtectionBypass4
|
|
292
|
+
| GetAliasProtectionBypass1
|
|
293
|
+
| ProtectionBypass3;
|
|
294
|
+
} | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* The microfrontends for the alias including the routing configuration
|
|
297
|
+
*/
|
|
298
|
+
microfrontends?: GetAliasMicrofrontends | undefined;
|
|
299
|
+
};
|
|
300
|
+
|
|
41
301
|
/** @internal */
|
|
42
302
|
export const GetAliasRequest$inboundSchema: z.ZodType<
|
|
43
303
|
GetAliasRequest,
|
|
@@ -107,3 +367,1005 @@ export function getAliasRequestFromJSON(
|
|
|
107
367
|
`Failed to parse 'GetAliasRequest' from JSON`,
|
|
108
368
|
);
|
|
109
369
|
}
|
|
370
|
+
|
|
371
|
+
/** @internal */
|
|
372
|
+
export const GetAliasCreator$inboundSchema: z.ZodType<
|
|
373
|
+
GetAliasCreator,
|
|
374
|
+
z.ZodTypeDef,
|
|
375
|
+
unknown
|
|
376
|
+
> = z.object({
|
|
377
|
+
uid: z.string(),
|
|
378
|
+
email: z.string(),
|
|
379
|
+
username: z.string(),
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
/** @internal */
|
|
383
|
+
export type GetAliasCreator$Outbound = {
|
|
384
|
+
uid: string;
|
|
385
|
+
email: string;
|
|
386
|
+
username: string;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
/** @internal */
|
|
390
|
+
export const GetAliasCreator$outboundSchema: z.ZodType<
|
|
391
|
+
GetAliasCreator$Outbound,
|
|
392
|
+
z.ZodTypeDef,
|
|
393
|
+
GetAliasCreator
|
|
394
|
+
> = z.object({
|
|
395
|
+
uid: z.string(),
|
|
396
|
+
email: z.string(),
|
|
397
|
+
username: z.string(),
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
403
|
+
*/
|
|
404
|
+
export namespace GetAliasCreator$ {
|
|
405
|
+
/** @deprecated use `GetAliasCreator$inboundSchema` instead. */
|
|
406
|
+
export const inboundSchema = GetAliasCreator$inboundSchema;
|
|
407
|
+
/** @deprecated use `GetAliasCreator$outboundSchema` instead. */
|
|
408
|
+
export const outboundSchema = GetAliasCreator$outboundSchema;
|
|
409
|
+
/** @deprecated use `GetAliasCreator$Outbound` instead. */
|
|
410
|
+
export type Outbound = GetAliasCreator$Outbound;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export function getAliasCreatorToJSON(
|
|
414
|
+
getAliasCreator: GetAliasCreator,
|
|
415
|
+
): string {
|
|
416
|
+
return JSON.stringify(GetAliasCreator$outboundSchema.parse(getAliasCreator));
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export function getAliasCreatorFromJSON(
|
|
420
|
+
jsonString: string,
|
|
421
|
+
): SafeParseResult<GetAliasCreator, SDKValidationError> {
|
|
422
|
+
return safeParse(
|
|
423
|
+
jsonString,
|
|
424
|
+
(x) => GetAliasCreator$inboundSchema.parse(JSON.parse(x)),
|
|
425
|
+
`Failed to parse 'GetAliasCreator' from JSON`,
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/** @internal */
|
|
430
|
+
export const GetAliasDeployment$inboundSchema: z.ZodType<
|
|
431
|
+
GetAliasDeployment,
|
|
432
|
+
z.ZodTypeDef,
|
|
433
|
+
unknown
|
|
434
|
+
> = z.object({
|
|
435
|
+
id: z.string(),
|
|
436
|
+
url: z.string(),
|
|
437
|
+
meta: z.string().optional(),
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
/** @internal */
|
|
441
|
+
export type GetAliasDeployment$Outbound = {
|
|
442
|
+
id: string;
|
|
443
|
+
url: string;
|
|
444
|
+
meta?: string | undefined;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
/** @internal */
|
|
448
|
+
export const GetAliasDeployment$outboundSchema: z.ZodType<
|
|
449
|
+
GetAliasDeployment$Outbound,
|
|
450
|
+
z.ZodTypeDef,
|
|
451
|
+
GetAliasDeployment
|
|
452
|
+
> = z.object({
|
|
453
|
+
id: z.string(),
|
|
454
|
+
url: z.string(),
|
|
455
|
+
meta: z.string().optional(),
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @internal
|
|
460
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
461
|
+
*/
|
|
462
|
+
export namespace GetAliasDeployment$ {
|
|
463
|
+
/** @deprecated use `GetAliasDeployment$inboundSchema` instead. */
|
|
464
|
+
export const inboundSchema = GetAliasDeployment$inboundSchema;
|
|
465
|
+
/** @deprecated use `GetAliasDeployment$outboundSchema` instead. */
|
|
466
|
+
export const outboundSchema = GetAliasDeployment$outboundSchema;
|
|
467
|
+
/** @deprecated use `GetAliasDeployment$Outbound` instead. */
|
|
468
|
+
export type Outbound = GetAliasDeployment$Outbound;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export function getAliasDeploymentToJSON(
|
|
472
|
+
getAliasDeployment: GetAliasDeployment,
|
|
473
|
+
): string {
|
|
474
|
+
return JSON.stringify(
|
|
475
|
+
GetAliasDeployment$outboundSchema.parse(getAliasDeployment),
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export function getAliasDeploymentFromJSON(
|
|
480
|
+
jsonString: string,
|
|
481
|
+
): SafeParseResult<GetAliasDeployment, SDKValidationError> {
|
|
482
|
+
return safeParse(
|
|
483
|
+
jsonString,
|
|
484
|
+
(x) => GetAliasDeployment$inboundSchema.parse(JSON.parse(x)),
|
|
485
|
+
`Failed to parse 'GetAliasDeployment' from JSON`,
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/** @internal */
|
|
490
|
+
export const GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema:
|
|
491
|
+
z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> = z
|
|
492
|
+
.nativeEnum(GetAliasProtectionBypassAliasesResponse200Scope);
|
|
493
|
+
|
|
494
|
+
/** @internal */
|
|
495
|
+
export const GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema:
|
|
496
|
+
z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> =
|
|
497
|
+
GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @internal
|
|
501
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
502
|
+
*/
|
|
503
|
+
export namespace GetAliasProtectionBypassAliasesResponse200Scope$ {
|
|
504
|
+
/** @deprecated use `GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema` instead. */
|
|
505
|
+
export const inboundSchema =
|
|
506
|
+
GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
|
|
507
|
+
/** @deprecated use `GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema` instead. */
|
|
508
|
+
export const outboundSchema =
|
|
509
|
+
GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/** @internal */
|
|
513
|
+
export const ProtectionBypass4$inboundSchema: z.ZodType<
|
|
514
|
+
ProtectionBypass4,
|
|
515
|
+
z.ZodTypeDef,
|
|
516
|
+
unknown
|
|
517
|
+
> = z.object({
|
|
518
|
+
createdAt: z.number(),
|
|
519
|
+
lastUpdatedAt: z.number(),
|
|
520
|
+
lastUpdatedBy: z.string(),
|
|
521
|
+
scope: GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema,
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
/** @internal */
|
|
525
|
+
export type ProtectionBypass4$Outbound = {
|
|
526
|
+
createdAt: number;
|
|
527
|
+
lastUpdatedAt: number;
|
|
528
|
+
lastUpdatedBy: string;
|
|
529
|
+
scope: string;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
/** @internal */
|
|
533
|
+
export const ProtectionBypass4$outboundSchema: z.ZodType<
|
|
534
|
+
ProtectionBypass4$Outbound,
|
|
535
|
+
z.ZodTypeDef,
|
|
536
|
+
ProtectionBypass4
|
|
537
|
+
> = z.object({
|
|
538
|
+
createdAt: z.number(),
|
|
539
|
+
lastUpdatedAt: z.number(),
|
|
540
|
+
lastUpdatedBy: z.string(),
|
|
541
|
+
scope: GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema,
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* @internal
|
|
546
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
547
|
+
*/
|
|
548
|
+
export namespace ProtectionBypass4$ {
|
|
549
|
+
/** @deprecated use `ProtectionBypass4$inboundSchema` instead. */
|
|
550
|
+
export const inboundSchema = ProtectionBypass4$inboundSchema;
|
|
551
|
+
/** @deprecated use `ProtectionBypass4$outboundSchema` instead. */
|
|
552
|
+
export const outboundSchema = ProtectionBypass4$outboundSchema;
|
|
553
|
+
/** @deprecated use `ProtectionBypass4$Outbound` instead. */
|
|
554
|
+
export type Outbound = ProtectionBypass4$Outbound;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export function protectionBypass4ToJSON(
|
|
558
|
+
protectionBypass4: ProtectionBypass4,
|
|
559
|
+
): string {
|
|
560
|
+
return JSON.stringify(
|
|
561
|
+
ProtectionBypass4$outboundSchema.parse(protectionBypass4),
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export function protectionBypass4FromJSON(
|
|
566
|
+
jsonString: string,
|
|
567
|
+
): SafeParseResult<ProtectionBypass4, SDKValidationError> {
|
|
568
|
+
return safeParse(
|
|
569
|
+
jsonString,
|
|
570
|
+
(x) => ProtectionBypass4$inboundSchema.parse(JSON.parse(x)),
|
|
571
|
+
`Failed to parse 'ProtectionBypass4' from JSON`,
|
|
572
|
+
);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/** @internal */
|
|
576
|
+
export const GetAliasProtectionBypassAliasesResponseScope$inboundSchema:
|
|
577
|
+
z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> = z
|
|
578
|
+
.nativeEnum(GetAliasProtectionBypassAliasesResponseScope);
|
|
579
|
+
|
|
580
|
+
/** @internal */
|
|
581
|
+
export const GetAliasProtectionBypassAliasesResponseScope$outboundSchema:
|
|
582
|
+
z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> =
|
|
583
|
+
GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* @internal
|
|
587
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
588
|
+
*/
|
|
589
|
+
export namespace GetAliasProtectionBypassAliasesResponseScope$ {
|
|
590
|
+
/** @deprecated use `GetAliasProtectionBypassAliasesResponseScope$inboundSchema` instead. */
|
|
591
|
+
export const inboundSchema =
|
|
592
|
+
GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
|
|
593
|
+
/** @deprecated use `GetAliasProtectionBypassAliasesResponseScope$outboundSchema` instead. */
|
|
594
|
+
export const outboundSchema =
|
|
595
|
+
GetAliasProtectionBypassAliasesResponseScope$outboundSchema;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/** @internal */
|
|
599
|
+
export const ProtectionBypass3$inboundSchema: z.ZodType<
|
|
600
|
+
ProtectionBypass3,
|
|
601
|
+
z.ZodTypeDef,
|
|
602
|
+
unknown
|
|
603
|
+
> = z.object({
|
|
604
|
+
createdAt: z.number(),
|
|
605
|
+
createdBy: z.string(),
|
|
606
|
+
scope: GetAliasProtectionBypassAliasesResponseScope$inboundSchema,
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
/** @internal */
|
|
610
|
+
export type ProtectionBypass3$Outbound = {
|
|
611
|
+
createdAt: number;
|
|
612
|
+
createdBy: string;
|
|
613
|
+
scope: string;
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
/** @internal */
|
|
617
|
+
export const ProtectionBypass3$outboundSchema: z.ZodType<
|
|
618
|
+
ProtectionBypass3$Outbound,
|
|
619
|
+
z.ZodTypeDef,
|
|
620
|
+
ProtectionBypass3
|
|
621
|
+
> = z.object({
|
|
622
|
+
createdAt: z.number(),
|
|
623
|
+
createdBy: z.string(),
|
|
624
|
+
scope: GetAliasProtectionBypassAliasesResponseScope$outboundSchema,
|
|
625
|
+
});
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @internal
|
|
629
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
630
|
+
*/
|
|
631
|
+
export namespace ProtectionBypass3$ {
|
|
632
|
+
/** @deprecated use `ProtectionBypass3$inboundSchema` instead. */
|
|
633
|
+
export const inboundSchema = ProtectionBypass3$inboundSchema;
|
|
634
|
+
/** @deprecated use `ProtectionBypass3$outboundSchema` instead. */
|
|
635
|
+
export const outboundSchema = ProtectionBypass3$outboundSchema;
|
|
636
|
+
/** @deprecated use `ProtectionBypass3$Outbound` instead. */
|
|
637
|
+
export type Outbound = ProtectionBypass3$Outbound;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export function protectionBypass3ToJSON(
|
|
641
|
+
protectionBypass3: ProtectionBypass3,
|
|
642
|
+
): string {
|
|
643
|
+
return JSON.stringify(
|
|
644
|
+
ProtectionBypass3$outboundSchema.parse(protectionBypass3),
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export function protectionBypass3FromJSON(
|
|
649
|
+
jsonString: string,
|
|
650
|
+
): SafeParseResult<ProtectionBypass3, SDKValidationError> {
|
|
651
|
+
return safeParse(
|
|
652
|
+
jsonString,
|
|
653
|
+
(x) => ProtectionBypass3$inboundSchema.parse(JSON.parse(x)),
|
|
654
|
+
`Failed to parse 'ProtectionBypass3' from JSON`,
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/** @internal */
|
|
659
|
+
export const ProtectionBypassAccess$inboundSchema: z.ZodNativeEnum<
|
|
660
|
+
typeof ProtectionBypassAccess
|
|
661
|
+
> = z.nativeEnum(ProtectionBypassAccess);
|
|
662
|
+
|
|
663
|
+
/** @internal */
|
|
664
|
+
export const ProtectionBypassAccess$outboundSchema: z.ZodNativeEnum<
|
|
665
|
+
typeof ProtectionBypassAccess
|
|
666
|
+
> = ProtectionBypassAccess$inboundSchema;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @internal
|
|
670
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
671
|
+
*/
|
|
672
|
+
export namespace ProtectionBypassAccess$ {
|
|
673
|
+
/** @deprecated use `ProtectionBypassAccess$inboundSchema` instead. */
|
|
674
|
+
export const inboundSchema = ProtectionBypassAccess$inboundSchema;
|
|
675
|
+
/** @deprecated use `ProtectionBypassAccess$outboundSchema` instead. */
|
|
676
|
+
export const outboundSchema = ProtectionBypassAccess$outboundSchema;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/** @internal */
|
|
680
|
+
export const GetAliasProtectionBypassAliasesScope$inboundSchema:
|
|
681
|
+
z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> = z.nativeEnum(
|
|
682
|
+
GetAliasProtectionBypassAliasesScope,
|
|
683
|
+
);
|
|
684
|
+
|
|
685
|
+
/** @internal */
|
|
686
|
+
export const GetAliasProtectionBypassAliasesScope$outboundSchema:
|
|
687
|
+
z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> =
|
|
688
|
+
GetAliasProtectionBypassAliasesScope$inboundSchema;
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* @internal
|
|
692
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
693
|
+
*/
|
|
694
|
+
export namespace GetAliasProtectionBypassAliasesScope$ {
|
|
695
|
+
/** @deprecated use `GetAliasProtectionBypassAliasesScope$inboundSchema` instead. */
|
|
696
|
+
export const inboundSchema =
|
|
697
|
+
GetAliasProtectionBypassAliasesScope$inboundSchema;
|
|
698
|
+
/** @deprecated use `GetAliasProtectionBypassAliasesScope$outboundSchema` instead. */
|
|
699
|
+
export const outboundSchema =
|
|
700
|
+
GetAliasProtectionBypassAliasesScope$outboundSchema;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/** @internal */
|
|
704
|
+
export const GetAliasProtectionBypass2$inboundSchema: z.ZodType<
|
|
705
|
+
GetAliasProtectionBypass2,
|
|
706
|
+
z.ZodTypeDef,
|
|
707
|
+
unknown
|
|
708
|
+
> = z.object({
|
|
709
|
+
createdAt: z.number(),
|
|
710
|
+
lastUpdatedAt: z.number(),
|
|
711
|
+
lastUpdatedBy: z.string(),
|
|
712
|
+
access: ProtectionBypassAccess$inboundSchema,
|
|
713
|
+
scope: GetAliasProtectionBypassAliasesScope$inboundSchema,
|
|
714
|
+
});
|
|
715
|
+
|
|
716
|
+
/** @internal */
|
|
717
|
+
export type GetAliasProtectionBypass2$Outbound = {
|
|
718
|
+
createdAt: number;
|
|
719
|
+
lastUpdatedAt: number;
|
|
720
|
+
lastUpdatedBy: string;
|
|
721
|
+
access: string;
|
|
722
|
+
scope: string;
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
/** @internal */
|
|
726
|
+
export const GetAliasProtectionBypass2$outboundSchema: z.ZodType<
|
|
727
|
+
GetAliasProtectionBypass2$Outbound,
|
|
728
|
+
z.ZodTypeDef,
|
|
729
|
+
GetAliasProtectionBypass2
|
|
730
|
+
> = z.object({
|
|
731
|
+
createdAt: z.number(),
|
|
732
|
+
lastUpdatedAt: z.number(),
|
|
733
|
+
lastUpdatedBy: z.string(),
|
|
734
|
+
access: ProtectionBypassAccess$outboundSchema,
|
|
735
|
+
scope: GetAliasProtectionBypassAliasesScope$outboundSchema,
|
|
736
|
+
});
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* @internal
|
|
740
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
741
|
+
*/
|
|
742
|
+
export namespace GetAliasProtectionBypass2$ {
|
|
743
|
+
/** @deprecated use `GetAliasProtectionBypass2$inboundSchema` instead. */
|
|
744
|
+
export const inboundSchema = GetAliasProtectionBypass2$inboundSchema;
|
|
745
|
+
/** @deprecated use `GetAliasProtectionBypass2$outboundSchema` instead. */
|
|
746
|
+
export const outboundSchema = GetAliasProtectionBypass2$outboundSchema;
|
|
747
|
+
/** @deprecated use `GetAliasProtectionBypass2$Outbound` instead. */
|
|
748
|
+
export type Outbound = GetAliasProtectionBypass2$Outbound;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export function getAliasProtectionBypass2ToJSON(
|
|
752
|
+
getAliasProtectionBypass2: GetAliasProtectionBypass2,
|
|
753
|
+
): string {
|
|
754
|
+
return JSON.stringify(
|
|
755
|
+
GetAliasProtectionBypass2$outboundSchema.parse(getAliasProtectionBypass2),
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
export function getAliasProtectionBypass2FromJSON(
|
|
760
|
+
jsonString: string,
|
|
761
|
+
): SafeParseResult<GetAliasProtectionBypass2, SDKValidationError> {
|
|
762
|
+
return safeParse(
|
|
763
|
+
jsonString,
|
|
764
|
+
(x) => GetAliasProtectionBypass2$inboundSchema.parse(JSON.parse(x)),
|
|
765
|
+
`Failed to parse 'GetAliasProtectionBypass2' from JSON`,
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/** @internal */
|
|
770
|
+
export const GetAliasProtectionBypassScope$inboundSchema: z.ZodNativeEnum<
|
|
771
|
+
typeof GetAliasProtectionBypassScope
|
|
772
|
+
> = z.nativeEnum(GetAliasProtectionBypassScope);
|
|
773
|
+
|
|
774
|
+
/** @internal */
|
|
775
|
+
export const GetAliasProtectionBypassScope$outboundSchema: z.ZodNativeEnum<
|
|
776
|
+
typeof GetAliasProtectionBypassScope
|
|
777
|
+
> = GetAliasProtectionBypassScope$inboundSchema;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* @internal
|
|
781
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
782
|
+
*/
|
|
783
|
+
export namespace GetAliasProtectionBypassScope$ {
|
|
784
|
+
/** @deprecated use `GetAliasProtectionBypassScope$inboundSchema` instead. */
|
|
785
|
+
export const inboundSchema = GetAliasProtectionBypassScope$inboundSchema;
|
|
786
|
+
/** @deprecated use `GetAliasProtectionBypassScope$outboundSchema` instead. */
|
|
787
|
+
export const outboundSchema = GetAliasProtectionBypassScope$outboundSchema;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/** @internal */
|
|
791
|
+
export const GetAliasProtectionBypass1$inboundSchema: z.ZodType<
|
|
792
|
+
GetAliasProtectionBypass1,
|
|
793
|
+
z.ZodTypeDef,
|
|
794
|
+
unknown
|
|
795
|
+
> = z.object({
|
|
796
|
+
createdAt: z.number(),
|
|
797
|
+
createdBy: z.string(),
|
|
798
|
+
scope: GetAliasProtectionBypassScope$inboundSchema,
|
|
799
|
+
});
|
|
800
|
+
|
|
801
|
+
/** @internal */
|
|
802
|
+
export type GetAliasProtectionBypass1$Outbound = {
|
|
803
|
+
createdAt: number;
|
|
804
|
+
createdBy: string;
|
|
805
|
+
scope: string;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
/** @internal */
|
|
809
|
+
export const GetAliasProtectionBypass1$outboundSchema: z.ZodType<
|
|
810
|
+
GetAliasProtectionBypass1$Outbound,
|
|
811
|
+
z.ZodTypeDef,
|
|
812
|
+
GetAliasProtectionBypass1
|
|
813
|
+
> = z.object({
|
|
814
|
+
createdAt: z.number(),
|
|
815
|
+
createdBy: z.string(),
|
|
816
|
+
scope: GetAliasProtectionBypassScope$outboundSchema,
|
|
817
|
+
});
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* @internal
|
|
821
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
822
|
+
*/
|
|
823
|
+
export namespace GetAliasProtectionBypass1$ {
|
|
824
|
+
/** @deprecated use `GetAliasProtectionBypass1$inboundSchema` instead. */
|
|
825
|
+
export const inboundSchema = GetAliasProtectionBypass1$inboundSchema;
|
|
826
|
+
/** @deprecated use `GetAliasProtectionBypass1$outboundSchema` instead. */
|
|
827
|
+
export const outboundSchema = GetAliasProtectionBypass1$outboundSchema;
|
|
828
|
+
/** @deprecated use `GetAliasProtectionBypass1$Outbound` instead. */
|
|
829
|
+
export type Outbound = GetAliasProtectionBypass1$Outbound;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export function getAliasProtectionBypass1ToJSON(
|
|
833
|
+
getAliasProtectionBypass1: GetAliasProtectionBypass1,
|
|
834
|
+
): string {
|
|
835
|
+
return JSON.stringify(
|
|
836
|
+
GetAliasProtectionBypass1$outboundSchema.parse(getAliasProtectionBypass1),
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export function getAliasProtectionBypass1FromJSON(
|
|
841
|
+
jsonString: string,
|
|
842
|
+
): SafeParseResult<GetAliasProtectionBypass1, SDKValidationError> {
|
|
843
|
+
return safeParse(
|
|
844
|
+
jsonString,
|
|
845
|
+
(x) => GetAliasProtectionBypass1$inboundSchema.parse(JSON.parse(x)),
|
|
846
|
+
`Failed to parse 'GetAliasProtectionBypass1' from JSON`,
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/** @internal */
|
|
851
|
+
export const GetAliasProtectionBypass$inboundSchema: z.ZodType<
|
|
852
|
+
GetAliasProtectionBypass,
|
|
853
|
+
z.ZodTypeDef,
|
|
854
|
+
unknown
|
|
855
|
+
> = z.union([
|
|
856
|
+
z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
|
|
857
|
+
z.lazy(() => ProtectionBypass4$inboundSchema),
|
|
858
|
+
z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
|
|
859
|
+
z.lazy(() => ProtectionBypass3$inboundSchema),
|
|
860
|
+
]);
|
|
861
|
+
|
|
862
|
+
/** @internal */
|
|
863
|
+
export type GetAliasProtectionBypass$Outbound =
|
|
864
|
+
| GetAliasProtectionBypass2$Outbound
|
|
865
|
+
| ProtectionBypass4$Outbound
|
|
866
|
+
| GetAliasProtectionBypass1$Outbound
|
|
867
|
+
| ProtectionBypass3$Outbound;
|
|
868
|
+
|
|
869
|
+
/** @internal */
|
|
870
|
+
export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
|
|
871
|
+
GetAliasProtectionBypass$Outbound,
|
|
872
|
+
z.ZodTypeDef,
|
|
873
|
+
GetAliasProtectionBypass
|
|
874
|
+
> = z.union([
|
|
875
|
+
z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
|
|
876
|
+
z.lazy(() => ProtectionBypass4$outboundSchema),
|
|
877
|
+
z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
|
|
878
|
+
z.lazy(() => ProtectionBypass3$outboundSchema),
|
|
879
|
+
]);
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* @internal
|
|
883
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
884
|
+
*/
|
|
885
|
+
export namespace GetAliasProtectionBypass$ {
|
|
886
|
+
/** @deprecated use `GetAliasProtectionBypass$inboundSchema` instead. */
|
|
887
|
+
export const inboundSchema = GetAliasProtectionBypass$inboundSchema;
|
|
888
|
+
/** @deprecated use `GetAliasProtectionBypass$outboundSchema` instead. */
|
|
889
|
+
export const outboundSchema = GetAliasProtectionBypass$outboundSchema;
|
|
890
|
+
/** @deprecated use `GetAliasProtectionBypass$Outbound` instead. */
|
|
891
|
+
export type Outbound = GetAliasProtectionBypass$Outbound;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
export function getAliasProtectionBypassToJSON(
|
|
895
|
+
getAliasProtectionBypass: GetAliasProtectionBypass,
|
|
896
|
+
): string {
|
|
897
|
+
return JSON.stringify(
|
|
898
|
+
GetAliasProtectionBypass$outboundSchema.parse(getAliasProtectionBypass),
|
|
899
|
+
);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export function getAliasProtectionBypassFromJSON(
|
|
903
|
+
jsonString: string,
|
|
904
|
+
): SafeParseResult<GetAliasProtectionBypass, SDKValidationError> {
|
|
905
|
+
return safeParse(
|
|
906
|
+
jsonString,
|
|
907
|
+
(x) => GetAliasProtectionBypass$inboundSchema.parse(JSON.parse(x)),
|
|
908
|
+
`Failed to parse 'GetAliasProtectionBypass' from JSON`,
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/** @internal */
|
|
913
|
+
export const DefaultApp$inboundSchema: z.ZodType<
|
|
914
|
+
DefaultApp,
|
|
915
|
+
z.ZodTypeDef,
|
|
916
|
+
unknown
|
|
917
|
+
> = z.object({
|
|
918
|
+
projectId: z.string(),
|
|
919
|
+
});
|
|
920
|
+
|
|
921
|
+
/** @internal */
|
|
922
|
+
export type DefaultApp$Outbound = {
|
|
923
|
+
projectId: string;
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
/** @internal */
|
|
927
|
+
export const DefaultApp$outboundSchema: z.ZodType<
|
|
928
|
+
DefaultApp$Outbound,
|
|
929
|
+
z.ZodTypeDef,
|
|
930
|
+
DefaultApp
|
|
931
|
+
> = z.object({
|
|
932
|
+
projectId: z.string(),
|
|
933
|
+
});
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* @internal
|
|
937
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
938
|
+
*/
|
|
939
|
+
export namespace DefaultApp$ {
|
|
940
|
+
/** @deprecated use `DefaultApp$inboundSchema` instead. */
|
|
941
|
+
export const inboundSchema = DefaultApp$inboundSchema;
|
|
942
|
+
/** @deprecated use `DefaultApp$outboundSchema` instead. */
|
|
943
|
+
export const outboundSchema = DefaultApp$outboundSchema;
|
|
944
|
+
/** @deprecated use `DefaultApp$Outbound` instead. */
|
|
945
|
+
export type Outbound = DefaultApp$Outbound;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export function defaultAppToJSON(defaultApp: DefaultApp): string {
|
|
949
|
+
return JSON.stringify(DefaultApp$outboundSchema.parse(defaultApp));
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
export function defaultAppFromJSON(
|
|
953
|
+
jsonString: string,
|
|
954
|
+
): SafeParseResult<DefaultApp, SDKValidationError> {
|
|
955
|
+
return safeParse(
|
|
956
|
+
jsonString,
|
|
957
|
+
(x) => DefaultApp$inboundSchema.parse(JSON.parse(x)),
|
|
958
|
+
`Failed to parse 'DefaultApp' from JSON`,
|
|
959
|
+
);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/** @internal */
|
|
963
|
+
export const Applications3$inboundSchema: z.ZodType<
|
|
964
|
+
Applications3,
|
|
965
|
+
z.ZodTypeDef,
|
|
966
|
+
unknown
|
|
967
|
+
> = z.object({
|
|
968
|
+
deploymentId: z.string().optional(),
|
|
969
|
+
branchDeploymentId: z.string().optional(),
|
|
970
|
+
fallbackDeploymentId: z.string().optional(),
|
|
971
|
+
fallbackHost: z.string().optional(),
|
|
972
|
+
branchAlias: z.string().optional(),
|
|
973
|
+
projectId: z.string(),
|
|
974
|
+
});
|
|
975
|
+
|
|
976
|
+
/** @internal */
|
|
977
|
+
export type Applications3$Outbound = {
|
|
978
|
+
deploymentId?: string | undefined;
|
|
979
|
+
branchDeploymentId?: string | undefined;
|
|
980
|
+
fallbackDeploymentId?: string | undefined;
|
|
981
|
+
fallbackHost?: string | undefined;
|
|
982
|
+
branchAlias?: string | undefined;
|
|
983
|
+
projectId: string;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
/** @internal */
|
|
987
|
+
export const Applications3$outboundSchema: z.ZodType<
|
|
988
|
+
Applications3$Outbound,
|
|
989
|
+
z.ZodTypeDef,
|
|
990
|
+
Applications3
|
|
991
|
+
> = z.object({
|
|
992
|
+
deploymentId: z.string().optional(),
|
|
993
|
+
branchDeploymentId: z.string().optional(),
|
|
994
|
+
fallbackDeploymentId: z.string().optional(),
|
|
995
|
+
fallbackHost: z.string().optional(),
|
|
996
|
+
branchAlias: z.string().optional(),
|
|
997
|
+
projectId: z.string(),
|
|
998
|
+
});
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* @internal
|
|
1002
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1003
|
+
*/
|
|
1004
|
+
export namespace Applications3$ {
|
|
1005
|
+
/** @deprecated use `Applications3$inboundSchema` instead. */
|
|
1006
|
+
export const inboundSchema = Applications3$inboundSchema;
|
|
1007
|
+
/** @deprecated use `Applications3$outboundSchema` instead. */
|
|
1008
|
+
export const outboundSchema = Applications3$outboundSchema;
|
|
1009
|
+
/** @deprecated use `Applications3$Outbound` instead. */
|
|
1010
|
+
export type Outbound = Applications3$Outbound;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export function applications3ToJSON(applications3: Applications3): string {
|
|
1014
|
+
return JSON.stringify(Applications3$outboundSchema.parse(applications3));
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
export function applications3FromJSON(
|
|
1018
|
+
jsonString: string,
|
|
1019
|
+
): SafeParseResult<Applications3, SDKValidationError> {
|
|
1020
|
+
return safeParse(
|
|
1021
|
+
jsonString,
|
|
1022
|
+
(x) => Applications3$inboundSchema.parse(JSON.parse(x)),
|
|
1023
|
+
`Failed to parse 'Applications3' from JSON`,
|
|
1024
|
+
);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/** @internal */
|
|
1028
|
+
export const Applications2$inboundSchema: z.ZodType<
|
|
1029
|
+
Applications2,
|
|
1030
|
+
z.ZodTypeDef,
|
|
1031
|
+
unknown
|
|
1032
|
+
> = z.object({
|
|
1033
|
+
fallbackHost: z.string(),
|
|
1034
|
+
branchAlias: z.string(),
|
|
1035
|
+
projectId: z.string(),
|
|
1036
|
+
});
|
|
1037
|
+
|
|
1038
|
+
/** @internal */
|
|
1039
|
+
export type Applications2$Outbound = {
|
|
1040
|
+
fallbackHost: string;
|
|
1041
|
+
branchAlias: string;
|
|
1042
|
+
projectId: string;
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
/** @internal */
|
|
1046
|
+
export const Applications2$outboundSchema: z.ZodType<
|
|
1047
|
+
Applications2$Outbound,
|
|
1048
|
+
z.ZodTypeDef,
|
|
1049
|
+
Applications2
|
|
1050
|
+
> = z.object({
|
|
1051
|
+
fallbackHost: z.string(),
|
|
1052
|
+
branchAlias: z.string(),
|
|
1053
|
+
projectId: z.string(),
|
|
1054
|
+
});
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* @internal
|
|
1058
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1059
|
+
*/
|
|
1060
|
+
export namespace Applications2$ {
|
|
1061
|
+
/** @deprecated use `Applications2$inboundSchema` instead. */
|
|
1062
|
+
export const inboundSchema = Applications2$inboundSchema;
|
|
1063
|
+
/** @deprecated use `Applications2$outboundSchema` instead. */
|
|
1064
|
+
export const outboundSchema = Applications2$outboundSchema;
|
|
1065
|
+
/** @deprecated use `Applications2$Outbound` instead. */
|
|
1066
|
+
export type Outbound = Applications2$Outbound;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export function applications2ToJSON(applications2: Applications2): string {
|
|
1070
|
+
return JSON.stringify(Applications2$outboundSchema.parse(applications2));
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export function applications2FromJSON(
|
|
1074
|
+
jsonString: string,
|
|
1075
|
+
): SafeParseResult<Applications2, SDKValidationError> {
|
|
1076
|
+
return safeParse(
|
|
1077
|
+
jsonString,
|
|
1078
|
+
(x) => Applications2$inboundSchema.parse(JSON.parse(x)),
|
|
1079
|
+
`Failed to parse 'Applications2' from JSON`,
|
|
1080
|
+
);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/** @internal */
|
|
1084
|
+
export const Applications1$inboundSchema: z.ZodType<
|
|
1085
|
+
Applications1,
|
|
1086
|
+
z.ZodTypeDef,
|
|
1087
|
+
unknown
|
|
1088
|
+
> = z.object({
|
|
1089
|
+
fallbackHost: z.string(),
|
|
1090
|
+
projectId: z.string(),
|
|
1091
|
+
});
|
|
1092
|
+
|
|
1093
|
+
/** @internal */
|
|
1094
|
+
export type Applications1$Outbound = {
|
|
1095
|
+
fallbackHost: string;
|
|
1096
|
+
projectId: string;
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
/** @internal */
|
|
1100
|
+
export const Applications1$outboundSchema: z.ZodType<
|
|
1101
|
+
Applications1$Outbound,
|
|
1102
|
+
z.ZodTypeDef,
|
|
1103
|
+
Applications1
|
|
1104
|
+
> = z.object({
|
|
1105
|
+
fallbackHost: z.string(),
|
|
1106
|
+
projectId: z.string(),
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1112
|
+
*/
|
|
1113
|
+
export namespace Applications1$ {
|
|
1114
|
+
/** @deprecated use `Applications1$inboundSchema` instead. */
|
|
1115
|
+
export const inboundSchema = Applications1$inboundSchema;
|
|
1116
|
+
/** @deprecated use `Applications1$outboundSchema` instead. */
|
|
1117
|
+
export const outboundSchema = Applications1$outboundSchema;
|
|
1118
|
+
/** @deprecated use `Applications1$Outbound` instead. */
|
|
1119
|
+
export type Outbound = Applications1$Outbound;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export function applications1ToJSON(applications1: Applications1): string {
|
|
1123
|
+
return JSON.stringify(Applications1$outboundSchema.parse(applications1));
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
export function applications1FromJSON(
|
|
1127
|
+
jsonString: string,
|
|
1128
|
+
): SafeParseResult<Applications1, SDKValidationError> {
|
|
1129
|
+
return safeParse(
|
|
1130
|
+
jsonString,
|
|
1131
|
+
(x) => Applications1$inboundSchema.parse(JSON.parse(x)),
|
|
1132
|
+
`Failed to parse 'Applications1' from JSON`,
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/** @internal */
|
|
1137
|
+
export const Applications$inboundSchema: z.ZodType<
|
|
1138
|
+
Applications,
|
|
1139
|
+
z.ZodTypeDef,
|
|
1140
|
+
unknown
|
|
1141
|
+
> = z.union([
|
|
1142
|
+
z.array(z.lazy(() => Applications1$inboundSchema)),
|
|
1143
|
+
z.array(z.lazy(() => Applications2$inboundSchema)),
|
|
1144
|
+
z.array(z.lazy(() => Applications3$inboundSchema)),
|
|
1145
|
+
]);
|
|
1146
|
+
|
|
1147
|
+
/** @internal */
|
|
1148
|
+
export type Applications$Outbound =
|
|
1149
|
+
| Array<Applications1$Outbound>
|
|
1150
|
+
| Array<Applications2$Outbound>
|
|
1151
|
+
| Array<Applications3$Outbound>;
|
|
1152
|
+
|
|
1153
|
+
/** @internal */
|
|
1154
|
+
export const Applications$outboundSchema: z.ZodType<
|
|
1155
|
+
Applications$Outbound,
|
|
1156
|
+
z.ZodTypeDef,
|
|
1157
|
+
Applications
|
|
1158
|
+
> = z.union([
|
|
1159
|
+
z.array(z.lazy(() => Applications1$outboundSchema)),
|
|
1160
|
+
z.array(z.lazy(() => Applications2$outboundSchema)),
|
|
1161
|
+
z.array(z.lazy(() => Applications3$outboundSchema)),
|
|
1162
|
+
]);
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* @internal
|
|
1166
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1167
|
+
*/
|
|
1168
|
+
export namespace Applications$ {
|
|
1169
|
+
/** @deprecated use `Applications$inboundSchema` instead. */
|
|
1170
|
+
export const inboundSchema = Applications$inboundSchema;
|
|
1171
|
+
/** @deprecated use `Applications$outboundSchema` instead. */
|
|
1172
|
+
export const outboundSchema = Applications$outboundSchema;
|
|
1173
|
+
/** @deprecated use `Applications$Outbound` instead. */
|
|
1174
|
+
export type Outbound = Applications$Outbound;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export function applicationsToJSON(applications: Applications): string {
|
|
1178
|
+
return JSON.stringify(Applications$outboundSchema.parse(applications));
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
export function applicationsFromJSON(
|
|
1182
|
+
jsonString: string,
|
|
1183
|
+
): SafeParseResult<Applications, SDKValidationError> {
|
|
1184
|
+
return safeParse(
|
|
1185
|
+
jsonString,
|
|
1186
|
+
(x) => Applications$inboundSchema.parse(JSON.parse(x)),
|
|
1187
|
+
`Failed to parse 'Applications' from JSON`,
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/** @internal */
|
|
1192
|
+
export const GetAliasMicrofrontends$inboundSchema: z.ZodType<
|
|
1193
|
+
GetAliasMicrofrontends,
|
|
1194
|
+
z.ZodTypeDef,
|
|
1195
|
+
unknown
|
|
1196
|
+
> = z.object({
|
|
1197
|
+
defaultApp: z.lazy(() => DefaultApp$inboundSchema),
|
|
1198
|
+
applications: z.union([
|
|
1199
|
+
z.array(z.lazy(() => Applications1$inboundSchema)),
|
|
1200
|
+
z.array(z.lazy(() => Applications2$inboundSchema)),
|
|
1201
|
+
z.array(z.lazy(() => Applications3$inboundSchema)),
|
|
1202
|
+
]),
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
/** @internal */
|
|
1206
|
+
export type GetAliasMicrofrontends$Outbound = {
|
|
1207
|
+
defaultApp: DefaultApp$Outbound;
|
|
1208
|
+
applications:
|
|
1209
|
+
| Array<Applications1$Outbound>
|
|
1210
|
+
| Array<Applications2$Outbound>
|
|
1211
|
+
| Array<Applications3$Outbound>;
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
/** @internal */
|
|
1215
|
+
export const GetAliasMicrofrontends$outboundSchema: z.ZodType<
|
|
1216
|
+
GetAliasMicrofrontends$Outbound,
|
|
1217
|
+
z.ZodTypeDef,
|
|
1218
|
+
GetAliasMicrofrontends
|
|
1219
|
+
> = z.object({
|
|
1220
|
+
defaultApp: z.lazy(() => DefaultApp$outboundSchema),
|
|
1221
|
+
applications: z.union([
|
|
1222
|
+
z.array(z.lazy(() => Applications1$outboundSchema)),
|
|
1223
|
+
z.array(z.lazy(() => Applications2$outboundSchema)),
|
|
1224
|
+
z.array(z.lazy(() => Applications3$outboundSchema)),
|
|
1225
|
+
]),
|
|
1226
|
+
});
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* @internal
|
|
1230
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1231
|
+
*/
|
|
1232
|
+
export namespace GetAliasMicrofrontends$ {
|
|
1233
|
+
/** @deprecated use `GetAliasMicrofrontends$inboundSchema` instead. */
|
|
1234
|
+
export const inboundSchema = GetAliasMicrofrontends$inboundSchema;
|
|
1235
|
+
/** @deprecated use `GetAliasMicrofrontends$outboundSchema` instead. */
|
|
1236
|
+
export const outboundSchema = GetAliasMicrofrontends$outboundSchema;
|
|
1237
|
+
/** @deprecated use `GetAliasMicrofrontends$Outbound` instead. */
|
|
1238
|
+
export type Outbound = GetAliasMicrofrontends$Outbound;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
export function getAliasMicrofrontendsToJSON(
|
|
1242
|
+
getAliasMicrofrontends: GetAliasMicrofrontends,
|
|
1243
|
+
): string {
|
|
1244
|
+
return JSON.stringify(
|
|
1245
|
+
GetAliasMicrofrontends$outboundSchema.parse(getAliasMicrofrontends),
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export function getAliasMicrofrontendsFromJSON(
|
|
1250
|
+
jsonString: string,
|
|
1251
|
+
): SafeParseResult<GetAliasMicrofrontends, SDKValidationError> {
|
|
1252
|
+
return safeParse(
|
|
1253
|
+
jsonString,
|
|
1254
|
+
(x) => GetAliasMicrofrontends$inboundSchema.parse(JSON.parse(x)),
|
|
1255
|
+
`Failed to parse 'GetAliasMicrofrontends' from JSON`,
|
|
1256
|
+
);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/** @internal */
|
|
1260
|
+
export const GetAliasResponseBody$inboundSchema: z.ZodType<
|
|
1261
|
+
GetAliasResponseBody,
|
|
1262
|
+
z.ZodTypeDef,
|
|
1263
|
+
unknown
|
|
1264
|
+
> = z.object({
|
|
1265
|
+
alias: z.string(),
|
|
1266
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
1267
|
+
createdAt: z.number().optional(),
|
|
1268
|
+
creator: z.lazy(() => GetAliasCreator$inboundSchema).optional(),
|
|
1269
|
+
deletedAt: z.number().optional(),
|
|
1270
|
+
deployment: z.lazy(() => GetAliasDeployment$inboundSchema).optional(),
|
|
1271
|
+
deploymentId: z.nullable(z.string()),
|
|
1272
|
+
projectId: z.nullable(z.string()),
|
|
1273
|
+
redirect: z.nullable(z.string()).optional(),
|
|
1274
|
+
redirectStatusCode: z.nullable(z.number()).optional(),
|
|
1275
|
+
uid: z.string(),
|
|
1276
|
+
updatedAt: z.number().optional(),
|
|
1277
|
+
protectionBypass: z.record(
|
|
1278
|
+
z.union([
|
|
1279
|
+
z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
|
|
1280
|
+
z.lazy(() => ProtectionBypass4$inboundSchema),
|
|
1281
|
+
z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
|
|
1282
|
+
z.lazy(() => ProtectionBypass3$inboundSchema),
|
|
1283
|
+
]),
|
|
1284
|
+
).optional(),
|
|
1285
|
+
microfrontends: z.lazy(() => GetAliasMicrofrontends$inboundSchema).optional(),
|
|
1286
|
+
});
|
|
1287
|
+
|
|
1288
|
+
/** @internal */
|
|
1289
|
+
export type GetAliasResponseBody$Outbound = {
|
|
1290
|
+
alias: string;
|
|
1291
|
+
created: string;
|
|
1292
|
+
createdAt?: number | undefined;
|
|
1293
|
+
creator?: GetAliasCreator$Outbound | undefined;
|
|
1294
|
+
deletedAt?: number | undefined;
|
|
1295
|
+
deployment?: GetAliasDeployment$Outbound | undefined;
|
|
1296
|
+
deploymentId: string | null;
|
|
1297
|
+
projectId: string | null;
|
|
1298
|
+
redirect?: string | null | undefined;
|
|
1299
|
+
redirectStatusCode?: number | null | undefined;
|
|
1300
|
+
uid: string;
|
|
1301
|
+
updatedAt?: number | undefined;
|
|
1302
|
+
protectionBypass?: {
|
|
1303
|
+
[k: string]:
|
|
1304
|
+
| GetAliasProtectionBypass2$Outbound
|
|
1305
|
+
| ProtectionBypass4$Outbound
|
|
1306
|
+
| GetAliasProtectionBypass1$Outbound
|
|
1307
|
+
| ProtectionBypass3$Outbound;
|
|
1308
|
+
} | undefined;
|
|
1309
|
+
microfrontends?: GetAliasMicrofrontends$Outbound | undefined;
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
/** @internal */
|
|
1313
|
+
export const GetAliasResponseBody$outboundSchema: z.ZodType<
|
|
1314
|
+
GetAliasResponseBody$Outbound,
|
|
1315
|
+
z.ZodTypeDef,
|
|
1316
|
+
GetAliasResponseBody
|
|
1317
|
+
> = z.object({
|
|
1318
|
+
alias: z.string(),
|
|
1319
|
+
created: z.date().transform(v => v.toISOString()),
|
|
1320
|
+
createdAt: z.number().optional(),
|
|
1321
|
+
creator: z.lazy(() => GetAliasCreator$outboundSchema).optional(),
|
|
1322
|
+
deletedAt: z.number().optional(),
|
|
1323
|
+
deployment: z.lazy(() => GetAliasDeployment$outboundSchema).optional(),
|
|
1324
|
+
deploymentId: z.nullable(z.string()),
|
|
1325
|
+
projectId: z.nullable(z.string()),
|
|
1326
|
+
redirect: z.nullable(z.string()).optional(),
|
|
1327
|
+
redirectStatusCode: z.nullable(z.number()).optional(),
|
|
1328
|
+
uid: z.string(),
|
|
1329
|
+
updatedAt: z.number().optional(),
|
|
1330
|
+
protectionBypass: z.record(
|
|
1331
|
+
z.union([
|
|
1332
|
+
z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
|
|
1333
|
+
z.lazy(() => ProtectionBypass4$outboundSchema),
|
|
1334
|
+
z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
|
|
1335
|
+
z.lazy(() => ProtectionBypass3$outboundSchema),
|
|
1336
|
+
]),
|
|
1337
|
+
).optional(),
|
|
1338
|
+
microfrontends: z.lazy(() => GetAliasMicrofrontends$outboundSchema)
|
|
1339
|
+
.optional(),
|
|
1340
|
+
});
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* @internal
|
|
1344
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1345
|
+
*/
|
|
1346
|
+
export namespace GetAliasResponseBody$ {
|
|
1347
|
+
/** @deprecated use `GetAliasResponseBody$inboundSchema` instead. */
|
|
1348
|
+
export const inboundSchema = GetAliasResponseBody$inboundSchema;
|
|
1349
|
+
/** @deprecated use `GetAliasResponseBody$outboundSchema` instead. */
|
|
1350
|
+
export const outboundSchema = GetAliasResponseBody$outboundSchema;
|
|
1351
|
+
/** @deprecated use `GetAliasResponseBody$Outbound` instead. */
|
|
1352
|
+
export type Outbound = GetAliasResponseBody$Outbound;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
export function getAliasResponseBodyToJSON(
|
|
1356
|
+
getAliasResponseBody: GetAliasResponseBody,
|
|
1357
|
+
): string {
|
|
1358
|
+
return JSON.stringify(
|
|
1359
|
+
GetAliasResponseBody$outboundSchema.parse(getAliasResponseBody),
|
|
1360
|
+
);
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
export function getAliasResponseBodyFromJSON(
|
|
1364
|
+
jsonString: string,
|
|
1365
|
+
): SafeParseResult<GetAliasResponseBody, SDKValidationError> {
|
|
1366
|
+
return safeParse(
|
|
1367
|
+
jsonString,
|
|
1368
|
+
(x) => GetAliasResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1369
|
+
`Failed to parse 'GetAliasResponseBody' from JSON`,
|
|
1370
|
+
);
|
|
1371
|
+
}
|