@vercel/sdk 1.6.9 → 1.6.11
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 +31 -17
- package/bin/mcp-server.js +1828 -1318
- package/bin/mcp-server.js.map +28 -28
- package/docs/sdks/aliases/README.md +84 -0
- package/docs/sdks/user/README.md +2 -0
- package/docs/sdks/vercel/README.md +0 -77
- package/esm/__tests__/aliases.test.js +17 -0
- package/esm/__tests__/aliases.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +15 -13
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +3 -16
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/{patchAliasesIdProtectionBypass.d.ts → aliasesPatchUrlProtectionBypass.d.ts} +7 -4
- package/esm/funcs/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
- package/esm/funcs/{patchAliasesIdProtectionBypass.js → aliasesPatchUrlProtectionBypass.js} +22 -9
- package/esm/funcs/aliasesPatchUrlProtectionBypass.js.map +1 -0
- package/esm/funcs/userListUserEvents.js +1 -0
- package/esm/funcs/userListUserEvents.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/mcp-server.js.map +1 -1
- package/esm/mcp-server/server.js +3 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts +7 -0
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js +28 -0
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js.map +1 -0
- package/esm/models/authuser.d.ts +3 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +1 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +221 -37
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +200 -34
- 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/createwebhookop.d.ts +24 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +8 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +62 -62
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +84 -83
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +93 -13
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +101 -16
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +12 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +4 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +24 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +8 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/listdeploymentaliasesop.d.ts +32 -32
- package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
- package/esm/models/listdeploymentaliasesop.js +50 -50
- package/esm/models/listdeploymentaliasesop.js.map +1 -1
- package/esm/models/listusereventsop.d.ts +6 -1
- package/esm/models/listusereventsop.d.ts.map +1 -1
- package/esm/models/listusereventsop.js +2 -0
- package/esm/models/listusereventsop.js.map +1 -1
- package/esm/models/{patchaliasesidprotectionbypassop.d.ts → patchurlprotectionbypassop.d.ts} +86 -76
- package/esm/models/patchurlprotectionbypassop.d.ts.map +1 -0
- package/esm/models/{patchaliasesidprotectionbypassop.js → patchurlprotectionbypassop.js} +95 -91
- package/esm/models/patchurlprotectionbypassop.js.map +1 -0
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +30 -1
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +24 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +109 -29
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +128 -42
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +253 -69
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +253 -83
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.d.ts +88 -14
- package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.js +100 -17
- package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
- package/esm/models/userevent.d.ts +324 -34
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +313 -40
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/aliases.d.ts +10 -0
- package/esm/sdk/aliases.d.ts.map +1 -1
- package/esm/sdk/aliases.js +10 -0
- package/esm/sdk/aliases.js.map +1 -1
- package/esm/sdk/sdk.d.ts +1 -8
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -8
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/aliases.test.ts +20 -0
- package/src/__tests__/projects.test.ts +15 -13
- package/src/__tests__/vercel.test.ts +4 -19
- package/src/funcs/{patchAliasesIdProtectionBypass.ts → aliasesPatchUrlProtectionBypass.ts} +27 -13
- package/src/funcs/userListUserEvents.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/aliasesPatchUrlProtectionBypass.ts +38 -0
- package/src/models/authuser.ts +1 -0
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +406 -58
- package/src/models/createrecordop.ts +84 -96
- package/src/models/createwebhookop.ts +8 -0
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/getaliasop.ts +130 -126
- package/src/models/getprojectsop.ts +207 -29
- package/src/models/getwebhookop.ts +4 -0
- package/src/models/getwebhooksop.ts +8 -0
- package/src/models/listdeploymentaliasesop.ts +78 -78
- package/src/models/listusereventsop.ts +8 -1
- package/src/models/{patchaliasesidprotectionbypassop.ts → patchurlprotectionbypassop.ts} +191 -156
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/teamlimited.ts +34 -1
- package/src/models/updateprojectdatacacheop.ts +249 -65
- package/src/models/updateprojectop.ts +491 -128
- package/src/models/updateprojectprotectionbypassop.ts +239 -31
- package/src/models/userevent.ts +579 -70
- package/src/sdk/aliases.ts +19 -0
- package/src/sdk/sdk.ts +1 -18
- package/vercel-spec.json +673 -157
- package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +0 -1
- package/esm/funcs/patchAliasesIdProtectionBypass.js.map +0 -1
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +0 -7
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +0 -1
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +0 -26
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +0 -1
- package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +0 -1
- package/esm/models/patchaliasesidprotectionbypassop.js.map +0 -1
- package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +0 -37
|
@@ -28,7 +28,7 @@ export type Revoke = {
|
|
|
28
28
|
*/
|
|
29
29
|
export type Generate = {
|
|
30
30
|
/**
|
|
31
|
-
* Optional value of the secret to generate
|
|
31
|
+
* Optional value of the secret to generate, don't send it for oauth2 tokens
|
|
32
32
|
*/
|
|
33
33
|
secret?: string | undefined;
|
|
34
34
|
};
|
|
@@ -60,22 +60,41 @@ export type UpdateProjectProtectionBypassRequest = {
|
|
|
60
60
|
requestBody: UpdateProjectProtectionBypassRequestBody;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
export const
|
|
63
|
+
export const UpdateProjectProtectionBypassProtectionBypassProjectsScope = {
|
|
64
64
|
AutomationBypass: "automation-bypass",
|
|
65
65
|
} as const;
|
|
66
|
-
export type
|
|
67
|
-
typeof
|
|
66
|
+
export type UpdateProjectProtectionBypassProtectionBypassProjectsScope =
|
|
67
|
+
ClosedEnum<typeof UpdateProjectProtectionBypassProtectionBypassProjectsScope>;
|
|
68
|
+
|
|
69
|
+
export type UpdateProjectProtectionBypassProtectionBypass2 = {
|
|
70
|
+
createdAt: number;
|
|
71
|
+
createdBy: string;
|
|
72
|
+
scope: UpdateProjectProtectionBypassProtectionBypassProjectsScope;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const UpdateProjectProtectionBypassProtectionBypassScope = {
|
|
76
|
+
IntegrationAutomationBypass: "integration-automation-bypass",
|
|
77
|
+
} as const;
|
|
78
|
+
export type UpdateProjectProtectionBypassProtectionBypassScope = ClosedEnum<
|
|
79
|
+
typeof UpdateProjectProtectionBypassProtectionBypassScope
|
|
68
80
|
>;
|
|
69
81
|
|
|
70
|
-
export type
|
|
82
|
+
export type UpdateProjectProtectionBypassProtectionBypass1 = {
|
|
71
83
|
createdAt: number;
|
|
72
84
|
createdBy: string;
|
|
73
|
-
scope:
|
|
85
|
+
scope: UpdateProjectProtectionBypassProtectionBypassScope;
|
|
86
|
+
integrationId: string;
|
|
74
87
|
};
|
|
75
88
|
|
|
89
|
+
export type UpdateProjectProtectionBypassProtectionBypass =
|
|
90
|
+
| UpdateProjectProtectionBypassProtectionBypass2
|
|
91
|
+
| UpdateProjectProtectionBypassProtectionBypass1;
|
|
92
|
+
|
|
76
93
|
export type UpdateProjectProtectionBypassResponseBody = {
|
|
77
94
|
protectionBypass?: {
|
|
78
|
-
[k: string]:
|
|
95
|
+
[k: string]:
|
|
96
|
+
| UpdateProjectProtectionBypassProtectionBypass2
|
|
97
|
+
| UpdateProjectProtectionBypassProtectionBypass1;
|
|
79
98
|
} | undefined;
|
|
80
99
|
};
|
|
81
100
|
|
|
@@ -328,58 +347,233 @@ export function updateProjectProtectionBypassRequestFromJSON(
|
|
|
328
347
|
}
|
|
329
348
|
|
|
330
349
|
/** @internal */
|
|
331
|
-
export const
|
|
332
|
-
|
|
333
|
-
|
|
350
|
+
export const UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema:
|
|
351
|
+
z.ZodNativeEnum<
|
|
352
|
+
typeof UpdateProjectProtectionBypassProtectionBypassProjectsScope
|
|
353
|
+
> = z.nativeEnum(UpdateProjectProtectionBypassProtectionBypassProjectsScope);
|
|
334
354
|
|
|
335
355
|
/** @internal */
|
|
336
|
-
export const
|
|
337
|
-
|
|
338
|
-
|
|
356
|
+
export const UpdateProjectProtectionBypassProtectionBypassProjectsScope$outboundSchema:
|
|
357
|
+
z.ZodNativeEnum<
|
|
358
|
+
typeof UpdateProjectProtectionBypassProtectionBypassProjectsScope
|
|
359
|
+
> = UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema;
|
|
339
360
|
|
|
340
361
|
/**
|
|
341
362
|
* @internal
|
|
342
363
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
343
364
|
*/
|
|
344
|
-
export namespace
|
|
345
|
-
/** @deprecated use `
|
|
346
|
-
export const inboundSchema =
|
|
347
|
-
|
|
365
|
+
export namespace UpdateProjectProtectionBypassProtectionBypassProjectsScope$ {
|
|
366
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema` instead. */
|
|
367
|
+
export const inboundSchema =
|
|
368
|
+
UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema;
|
|
369
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypassProjectsScope$outboundSchema` instead. */
|
|
348
370
|
export const outboundSchema =
|
|
349
|
-
|
|
371
|
+
UpdateProjectProtectionBypassProtectionBypassProjectsScope$outboundSchema;
|
|
350
372
|
}
|
|
351
373
|
|
|
352
374
|
/** @internal */
|
|
353
|
-
export const
|
|
375
|
+
export const UpdateProjectProtectionBypassProtectionBypass2$inboundSchema:
|
|
354
376
|
z.ZodType<
|
|
355
|
-
|
|
377
|
+
UpdateProjectProtectionBypassProtectionBypass2,
|
|
356
378
|
z.ZodTypeDef,
|
|
357
379
|
unknown
|
|
358
380
|
> = z.object({
|
|
359
381
|
createdAt: z.number(),
|
|
360
382
|
createdBy: z.string(),
|
|
361
|
-
scope:
|
|
383
|
+
scope:
|
|
384
|
+
UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema,
|
|
362
385
|
});
|
|
363
386
|
|
|
364
387
|
/** @internal */
|
|
365
|
-
export type
|
|
388
|
+
export type UpdateProjectProtectionBypassProtectionBypass2$Outbound = {
|
|
366
389
|
createdAt: number;
|
|
367
390
|
createdBy: string;
|
|
368
391
|
scope: string;
|
|
369
392
|
};
|
|
370
393
|
|
|
371
394
|
/** @internal */
|
|
372
|
-
export const
|
|
395
|
+
export const UpdateProjectProtectionBypassProtectionBypass2$outboundSchema:
|
|
373
396
|
z.ZodType<
|
|
374
|
-
|
|
397
|
+
UpdateProjectProtectionBypassProtectionBypass2$Outbound,
|
|
375
398
|
z.ZodTypeDef,
|
|
376
|
-
|
|
399
|
+
UpdateProjectProtectionBypassProtectionBypass2
|
|
400
|
+
> = z.object({
|
|
401
|
+
createdAt: z.number(),
|
|
402
|
+
createdBy: z.string(),
|
|
403
|
+
scope:
|
|
404
|
+
UpdateProjectProtectionBypassProtectionBypassProjectsScope$outboundSchema,
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @internal
|
|
409
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
410
|
+
*/
|
|
411
|
+
export namespace UpdateProjectProtectionBypassProtectionBypass2$ {
|
|
412
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypass2$inboundSchema` instead. */
|
|
413
|
+
export const inboundSchema =
|
|
414
|
+
UpdateProjectProtectionBypassProtectionBypass2$inboundSchema;
|
|
415
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypass2$outboundSchema` instead. */
|
|
416
|
+
export const outboundSchema =
|
|
417
|
+
UpdateProjectProtectionBypassProtectionBypass2$outboundSchema;
|
|
418
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypass2$Outbound` instead. */
|
|
419
|
+
export type Outbound =
|
|
420
|
+
UpdateProjectProtectionBypassProtectionBypass2$Outbound;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export function updateProjectProtectionBypassProtectionBypass2ToJSON(
|
|
424
|
+
updateProjectProtectionBypassProtectionBypass2:
|
|
425
|
+
UpdateProjectProtectionBypassProtectionBypass2,
|
|
426
|
+
): string {
|
|
427
|
+
return JSON.stringify(
|
|
428
|
+
UpdateProjectProtectionBypassProtectionBypass2$outboundSchema.parse(
|
|
429
|
+
updateProjectProtectionBypassProtectionBypass2,
|
|
430
|
+
),
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export function updateProjectProtectionBypassProtectionBypass2FromJSON(
|
|
435
|
+
jsonString: string,
|
|
436
|
+
): SafeParseResult<
|
|
437
|
+
UpdateProjectProtectionBypassProtectionBypass2,
|
|
438
|
+
SDKValidationError
|
|
439
|
+
> {
|
|
440
|
+
return safeParse(
|
|
441
|
+
jsonString,
|
|
442
|
+
(x) =>
|
|
443
|
+
UpdateProjectProtectionBypassProtectionBypass2$inboundSchema.parse(
|
|
444
|
+
JSON.parse(x),
|
|
445
|
+
),
|
|
446
|
+
`Failed to parse 'UpdateProjectProtectionBypassProtectionBypass2' from JSON`,
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** @internal */
|
|
451
|
+
export const UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema:
|
|
452
|
+
z.ZodNativeEnum<typeof UpdateProjectProtectionBypassProtectionBypassScope> = z
|
|
453
|
+
.nativeEnum(UpdateProjectProtectionBypassProtectionBypassScope);
|
|
454
|
+
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const UpdateProjectProtectionBypassProtectionBypassScope$outboundSchema:
|
|
457
|
+
z.ZodNativeEnum<typeof UpdateProjectProtectionBypassProtectionBypassScope> =
|
|
458
|
+
UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @internal
|
|
462
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
463
|
+
*/
|
|
464
|
+
export namespace UpdateProjectProtectionBypassProtectionBypassScope$ {
|
|
465
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema` instead. */
|
|
466
|
+
export const inboundSchema =
|
|
467
|
+
UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema;
|
|
468
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypassScope$outboundSchema` instead. */
|
|
469
|
+
export const outboundSchema =
|
|
470
|
+
UpdateProjectProtectionBypassProtectionBypassScope$outboundSchema;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/** @internal */
|
|
474
|
+
export const UpdateProjectProtectionBypassProtectionBypass1$inboundSchema:
|
|
475
|
+
z.ZodType<
|
|
476
|
+
UpdateProjectProtectionBypassProtectionBypass1,
|
|
477
|
+
z.ZodTypeDef,
|
|
478
|
+
unknown
|
|
479
|
+
> = z.object({
|
|
480
|
+
createdAt: z.number(),
|
|
481
|
+
createdBy: z.string(),
|
|
482
|
+
scope: UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema,
|
|
483
|
+
integrationId: z.string(),
|
|
484
|
+
});
|
|
485
|
+
|
|
486
|
+
/** @internal */
|
|
487
|
+
export type UpdateProjectProtectionBypassProtectionBypass1$Outbound = {
|
|
488
|
+
createdAt: number;
|
|
489
|
+
createdBy: string;
|
|
490
|
+
scope: string;
|
|
491
|
+
integrationId: string;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
/** @internal */
|
|
495
|
+
export const UpdateProjectProtectionBypassProtectionBypass1$outboundSchema:
|
|
496
|
+
z.ZodType<
|
|
497
|
+
UpdateProjectProtectionBypassProtectionBypass1$Outbound,
|
|
498
|
+
z.ZodTypeDef,
|
|
499
|
+
UpdateProjectProtectionBypassProtectionBypass1
|
|
377
500
|
> = z.object({
|
|
378
501
|
createdAt: z.number(),
|
|
379
502
|
createdBy: z.string(),
|
|
380
|
-
scope:
|
|
503
|
+
scope: UpdateProjectProtectionBypassProtectionBypassScope$outboundSchema,
|
|
504
|
+
integrationId: z.string(),
|
|
381
505
|
});
|
|
382
506
|
|
|
507
|
+
/**
|
|
508
|
+
* @internal
|
|
509
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
510
|
+
*/
|
|
511
|
+
export namespace UpdateProjectProtectionBypassProtectionBypass1$ {
|
|
512
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypass1$inboundSchema` instead. */
|
|
513
|
+
export const inboundSchema =
|
|
514
|
+
UpdateProjectProtectionBypassProtectionBypass1$inboundSchema;
|
|
515
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypass1$outboundSchema` instead. */
|
|
516
|
+
export const outboundSchema =
|
|
517
|
+
UpdateProjectProtectionBypassProtectionBypass1$outboundSchema;
|
|
518
|
+
/** @deprecated use `UpdateProjectProtectionBypassProtectionBypass1$Outbound` instead. */
|
|
519
|
+
export type Outbound =
|
|
520
|
+
UpdateProjectProtectionBypassProtectionBypass1$Outbound;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export function updateProjectProtectionBypassProtectionBypass1ToJSON(
|
|
524
|
+
updateProjectProtectionBypassProtectionBypass1:
|
|
525
|
+
UpdateProjectProtectionBypassProtectionBypass1,
|
|
526
|
+
): string {
|
|
527
|
+
return JSON.stringify(
|
|
528
|
+
UpdateProjectProtectionBypassProtectionBypass1$outboundSchema.parse(
|
|
529
|
+
updateProjectProtectionBypassProtectionBypass1,
|
|
530
|
+
),
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
export function updateProjectProtectionBypassProtectionBypass1FromJSON(
|
|
535
|
+
jsonString: string,
|
|
536
|
+
): SafeParseResult<
|
|
537
|
+
UpdateProjectProtectionBypassProtectionBypass1,
|
|
538
|
+
SDKValidationError
|
|
539
|
+
> {
|
|
540
|
+
return safeParse(
|
|
541
|
+
jsonString,
|
|
542
|
+
(x) =>
|
|
543
|
+
UpdateProjectProtectionBypassProtectionBypass1$inboundSchema.parse(
|
|
544
|
+
JSON.parse(x),
|
|
545
|
+
),
|
|
546
|
+
`Failed to parse 'UpdateProjectProtectionBypassProtectionBypass1' from JSON`,
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/** @internal */
|
|
551
|
+
export const UpdateProjectProtectionBypassProtectionBypass$inboundSchema:
|
|
552
|
+
z.ZodType<
|
|
553
|
+
UpdateProjectProtectionBypassProtectionBypass,
|
|
554
|
+
z.ZodTypeDef,
|
|
555
|
+
unknown
|
|
556
|
+
> = z.union([
|
|
557
|
+
z.lazy(() => UpdateProjectProtectionBypassProtectionBypass2$inboundSchema),
|
|
558
|
+
z.lazy(() => UpdateProjectProtectionBypassProtectionBypass1$inboundSchema),
|
|
559
|
+
]);
|
|
560
|
+
|
|
561
|
+
/** @internal */
|
|
562
|
+
export type UpdateProjectProtectionBypassProtectionBypass$Outbound =
|
|
563
|
+
| UpdateProjectProtectionBypassProtectionBypass2$Outbound
|
|
564
|
+
| UpdateProjectProtectionBypassProtectionBypass1$Outbound;
|
|
565
|
+
|
|
566
|
+
/** @internal */
|
|
567
|
+
export const UpdateProjectProtectionBypassProtectionBypass$outboundSchema:
|
|
568
|
+
z.ZodType<
|
|
569
|
+
UpdateProjectProtectionBypassProtectionBypass$Outbound,
|
|
570
|
+
z.ZodTypeDef,
|
|
571
|
+
UpdateProjectProtectionBypassProtectionBypass
|
|
572
|
+
> = z.union([
|
|
573
|
+
z.lazy(() => UpdateProjectProtectionBypassProtectionBypass2$outboundSchema),
|
|
574
|
+
z.lazy(() => UpdateProjectProtectionBypassProtectionBypass1$outboundSchema),
|
|
575
|
+
]);
|
|
576
|
+
|
|
383
577
|
/**
|
|
384
578
|
* @internal
|
|
385
579
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -429,14 +623,23 @@ export const UpdateProjectProtectionBypassResponseBody$inboundSchema: z.ZodType<
|
|
|
429
623
|
unknown
|
|
430
624
|
> = z.object({
|
|
431
625
|
protectionBypass: z.record(
|
|
432
|
-
z.
|
|
626
|
+
z.union([
|
|
627
|
+
z.lazy(() =>
|
|
628
|
+
UpdateProjectProtectionBypassProtectionBypass2$inboundSchema
|
|
629
|
+
),
|
|
630
|
+
z.lazy(() =>
|
|
631
|
+
UpdateProjectProtectionBypassProtectionBypass1$inboundSchema
|
|
632
|
+
),
|
|
633
|
+
]),
|
|
433
634
|
).optional(),
|
|
434
635
|
});
|
|
435
636
|
|
|
436
637
|
/** @internal */
|
|
437
638
|
export type UpdateProjectProtectionBypassResponseBody$Outbound = {
|
|
438
639
|
protectionBypass?: {
|
|
439
|
-
[k: string]:
|
|
640
|
+
[k: string]:
|
|
641
|
+
| UpdateProjectProtectionBypassProtectionBypass2$Outbound
|
|
642
|
+
| UpdateProjectProtectionBypassProtectionBypass1$Outbound;
|
|
440
643
|
} | undefined;
|
|
441
644
|
};
|
|
442
645
|
|
|
@@ -448,9 +651,14 @@ export const UpdateProjectProtectionBypassResponseBody$outboundSchema:
|
|
|
448
651
|
UpdateProjectProtectionBypassResponseBody
|
|
449
652
|
> = z.object({
|
|
450
653
|
protectionBypass: z.record(
|
|
451
|
-
z.
|
|
452
|
-
|
|
453
|
-
|
|
654
|
+
z.union([
|
|
655
|
+
z.lazy(() =>
|
|
656
|
+
UpdateProjectProtectionBypassProtectionBypass2$outboundSchema
|
|
657
|
+
),
|
|
658
|
+
z.lazy(() =>
|
|
659
|
+
UpdateProjectProtectionBypassProtectionBypass1$outboundSchema
|
|
660
|
+
),
|
|
661
|
+
]),
|
|
454
662
|
).optional(),
|
|
455
663
|
});
|
|
456
664
|
|