@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.
Files changed (152) hide show
  1. package/README.md +31 -17
  2. package/bin/mcp-server.js +1828 -1318
  3. package/bin/mcp-server.js.map +28 -28
  4. package/docs/sdks/aliases/README.md +84 -0
  5. package/docs/sdks/user/README.md +2 -0
  6. package/docs/sdks/vercel/README.md +0 -77
  7. package/esm/__tests__/aliases.test.js +17 -0
  8. package/esm/__tests__/aliases.test.js.map +1 -1
  9. package/esm/__tests__/projects.test.js +15 -13
  10. package/esm/__tests__/projects.test.js.map +1 -1
  11. package/esm/__tests__/vercel.test.js +3 -16
  12. package/esm/__tests__/vercel.test.js.map +1 -1
  13. package/esm/funcs/{patchAliasesIdProtectionBypass.d.ts → aliasesPatchUrlProtectionBypass.d.ts} +7 -4
  14. package/esm/funcs/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
  15. package/esm/funcs/{patchAliasesIdProtectionBypass.js → aliasesPatchUrlProtectionBypass.js} +22 -9
  16. package/esm/funcs/aliasesPatchUrlProtectionBypass.js.map +1 -0
  17. package/esm/funcs/userListUserEvents.js +1 -0
  18. package/esm/funcs/userListUserEvents.js.map +1 -1
  19. package/esm/lib/config.d.ts +2 -2
  20. package/esm/lib/config.js +2 -2
  21. package/esm/lib/config.js.map +1 -1
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/mcp-server.js.map +1 -1
  24. package/esm/mcp-server/server.js +3 -3
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts +7 -0
  27. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
  28. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js +28 -0
  29. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js.map +1 -0
  30. package/esm/models/authuser.d.ts +3 -0
  31. package/esm/models/authuser.d.ts.map +1 -1
  32. package/esm/models/authuser.js +1 -0
  33. package/esm/models/authuser.js.map +1 -1
  34. package/esm/models/createprojectenvop.d.ts +6 -6
  35. package/esm/models/createprojectenvop.js +2 -2
  36. package/esm/models/createprojectenvop.js.map +1 -1
  37. package/esm/models/createprojectop.d.ts +221 -37
  38. package/esm/models/createprojectop.d.ts.map +1 -1
  39. package/esm/models/createprojectop.js +200 -34
  40. package/esm/models/createprojectop.js.map +1 -1
  41. package/esm/models/createrecordop.d.ts +43 -43
  42. package/esm/models/createrecordop.d.ts.map +1 -1
  43. package/esm/models/createrecordop.js +51 -51
  44. package/esm/models/createrecordop.js.map +1 -1
  45. package/esm/models/createwebhookop.d.ts +24 -0
  46. package/esm/models/createwebhookop.d.ts.map +1 -1
  47. package/esm/models/createwebhookop.js +8 -0
  48. package/esm/models/createwebhookop.js.map +1 -1
  49. package/esm/models/editprojectenvop.d.ts +3 -3
  50. package/esm/models/editprojectenvop.js +1 -1
  51. package/esm/models/editprojectenvop.js.map +1 -1
  52. package/esm/models/getaliasop.d.ts +62 -62
  53. package/esm/models/getaliasop.d.ts.map +1 -1
  54. package/esm/models/getaliasop.js +84 -83
  55. package/esm/models/getaliasop.js.map +1 -1
  56. package/esm/models/getprojectsop.d.ts +93 -13
  57. package/esm/models/getprojectsop.d.ts.map +1 -1
  58. package/esm/models/getprojectsop.js +101 -16
  59. package/esm/models/getprojectsop.js.map +1 -1
  60. package/esm/models/getwebhookop.d.ts +12 -0
  61. package/esm/models/getwebhookop.d.ts.map +1 -1
  62. package/esm/models/getwebhookop.js +4 -0
  63. package/esm/models/getwebhookop.js.map +1 -1
  64. package/esm/models/getwebhooksop.d.ts +24 -0
  65. package/esm/models/getwebhooksop.d.ts.map +1 -1
  66. package/esm/models/getwebhooksop.js +8 -0
  67. package/esm/models/getwebhooksop.js.map +1 -1
  68. package/esm/models/listdeploymentaliasesop.d.ts +32 -32
  69. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  70. package/esm/models/listdeploymentaliasesop.js +50 -50
  71. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  72. package/esm/models/listusereventsop.d.ts +6 -1
  73. package/esm/models/listusereventsop.d.ts.map +1 -1
  74. package/esm/models/listusereventsop.js +2 -0
  75. package/esm/models/listusereventsop.js.map +1 -1
  76. package/esm/models/{patchaliasesidprotectionbypassop.d.ts → patchurlprotectionbypassop.d.ts} +86 -76
  77. package/esm/models/patchurlprotectionbypassop.d.ts.map +1 -0
  78. package/esm/models/{patchaliasesidprotectionbypassop.js → patchurlprotectionbypassop.js} +95 -91
  79. package/esm/models/patchurlprotectionbypassop.js.map +1 -0
  80. package/esm/models/removeprojectenvop.d.ts +9 -9
  81. package/esm/models/removeprojectenvop.js +3 -3
  82. package/esm/models/removeprojectenvop.js.map +1 -1
  83. package/esm/models/teamlimited.d.ts +30 -1
  84. package/esm/models/teamlimited.d.ts.map +1 -1
  85. package/esm/models/teamlimited.js +24 -0
  86. package/esm/models/teamlimited.js.map +1 -1
  87. package/esm/models/updateprojectdatacacheop.d.ts +109 -29
  88. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  89. package/esm/models/updateprojectdatacacheop.js +128 -42
  90. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  91. package/esm/models/updateprojectop.d.ts +253 -69
  92. package/esm/models/updateprojectop.d.ts.map +1 -1
  93. package/esm/models/updateprojectop.js +253 -83
  94. package/esm/models/updateprojectop.js.map +1 -1
  95. package/esm/models/updateprojectprotectionbypassop.d.ts +88 -14
  96. package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
  97. package/esm/models/updateprojectprotectionbypassop.js +100 -17
  98. package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
  99. package/esm/models/userevent.d.ts +324 -34
  100. package/esm/models/userevent.d.ts.map +1 -1
  101. package/esm/models/userevent.js +313 -40
  102. package/esm/models/userevent.js.map +1 -1
  103. package/esm/sdk/aliases.d.ts +10 -0
  104. package/esm/sdk/aliases.d.ts.map +1 -1
  105. package/esm/sdk/aliases.js +10 -0
  106. package/esm/sdk/aliases.js.map +1 -1
  107. package/esm/sdk/sdk.d.ts +1 -8
  108. package/esm/sdk/sdk.d.ts.map +1 -1
  109. package/esm/sdk/sdk.js +0 -8
  110. package/esm/sdk/sdk.js.map +1 -1
  111. package/jsr.json +1 -1
  112. package/package.json +1 -1
  113. package/src/__tests__/aliases.test.ts +20 -0
  114. package/src/__tests__/projects.test.ts +15 -13
  115. package/src/__tests__/vercel.test.ts +4 -19
  116. package/src/funcs/{patchAliasesIdProtectionBypass.ts → aliasesPatchUrlProtectionBypass.ts} +27 -13
  117. package/src/funcs/userListUserEvents.ts +1 -0
  118. package/src/lib/config.ts +2 -2
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +3 -3
  121. package/src/mcp-server/tools/aliasesPatchUrlProtectionBypass.ts +38 -0
  122. package/src/models/authuser.ts +1 -0
  123. package/src/models/createprojectenvop.ts +2 -2
  124. package/src/models/createprojectop.ts +406 -58
  125. package/src/models/createrecordop.ts +84 -96
  126. package/src/models/createwebhookop.ts +8 -0
  127. package/src/models/editprojectenvop.ts +1 -1
  128. package/src/models/getaliasop.ts +130 -126
  129. package/src/models/getprojectsop.ts +207 -29
  130. package/src/models/getwebhookop.ts +4 -0
  131. package/src/models/getwebhooksop.ts +8 -0
  132. package/src/models/listdeploymentaliasesop.ts +78 -78
  133. package/src/models/listusereventsop.ts +8 -1
  134. package/src/models/{patchaliasesidprotectionbypassop.ts → patchurlprotectionbypassop.ts} +191 -156
  135. package/src/models/removeprojectenvop.ts +3 -3
  136. package/src/models/teamlimited.ts +34 -1
  137. package/src/models/updateprojectdatacacheop.ts +249 -65
  138. package/src/models/updateprojectop.ts +491 -128
  139. package/src/models/updateprojectprotectionbypassop.ts +239 -31
  140. package/src/models/userevent.ts +579 -70
  141. package/src/sdk/aliases.ts +19 -0
  142. package/src/sdk/sdk.ts +1 -18
  143. package/vercel-spec.json +673 -157
  144. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +0 -1
  145. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +0 -1
  146. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +0 -7
  147. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +0 -1
  148. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +0 -26
  149. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +0 -1
  150. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +0 -1
  151. package/esm/models/patchaliasesidprotectionbypassop.js.map +0 -1
  152. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +0 -37
@@ -8,6 +8,12 @@ import { ClosedEnum } from "../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../types/fp.js";
9
9
  import { SDKValidationError } from "./sdkvalidationerror.js";
10
10
 
11
+ export const LimitedBy = {
12
+ Saml: "saml",
13
+ Mfa: "mfa",
14
+ } as const;
15
+ export type LimitedBy = ClosedEnum<typeof LimitedBy>;
16
+
11
17
  /**
12
18
  * Information for the SAML Single Sign-On configuration.
13
19
  */
@@ -163,13 +169,15 @@ export type Membership = {
163
169
  */
164
170
  export type TeamLimited = {
165
171
  /**
166
- * Property indicating that this Team data contains only limited information, due to the authentication token missing privileges to read the full Team data. Re-login with the Team's configured SAML Single Sign-On provider in order to upgrade the authentication token with the necessary privileges.
172
+ * Property indicating that this Team data contains only limited information, due to the authentication token missing privileges to read the full Team data or due to team having MFA enforced and the user not having MFA enabled. Re-login with the Team's configured SAML Single Sign-On provider in order to upgrade the authentication token with the necessary privileges.
167
173
  */
168
174
  limited: boolean;
175
+ limitedBy: Array<LimitedBy>;
169
176
  /**
170
177
  * When "Single Sign-On (SAML)" is configured, this object contains information that allows the client-side to identify whether or not this Team has SAML enforced.
171
178
  */
172
179
  saml?: Saml | undefined;
180
+ mfaEnforced?: boolean | undefined;
173
181
  /**
174
182
  * The Team's unique identifier.
175
183
  */
@@ -200,6 +208,25 @@ export type TeamLimited = {
200
208
  createdAt: number;
201
209
  };
202
210
 
211
+ /** @internal */
212
+ export const LimitedBy$inboundSchema: z.ZodNativeEnum<typeof LimitedBy> = z
213
+ .nativeEnum(LimitedBy);
214
+
215
+ /** @internal */
216
+ export const LimitedBy$outboundSchema: z.ZodNativeEnum<typeof LimitedBy> =
217
+ LimitedBy$inboundSchema;
218
+
219
+ /**
220
+ * @internal
221
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
222
+ */
223
+ export namespace LimitedBy$ {
224
+ /** @deprecated use `LimitedBy$inboundSchema` instead. */
225
+ export const inboundSchema = LimitedBy$inboundSchema;
226
+ /** @deprecated use `LimitedBy$outboundSchema` instead. */
227
+ export const outboundSchema = LimitedBy$outboundSchema;
228
+ }
229
+
203
230
  /** @internal */
204
231
  export const Connection$inboundSchema: z.ZodType<
205
232
  Connection,
@@ -714,7 +741,9 @@ export const TeamLimited$inboundSchema: z.ZodType<
714
741
  unknown
715
742
  > = z.object({
716
743
  limited: z.boolean(),
744
+ limitedBy: z.array(LimitedBy$inboundSchema),
717
745
  saml: z.lazy(() => Saml$inboundSchema).optional(),
746
+ mfaEnforced: z.boolean().optional(),
718
747
  id: z.string(),
719
748
  slug: z.string(),
720
749
  name: z.nullable(z.string()),
@@ -727,7 +756,9 @@ export const TeamLimited$inboundSchema: z.ZodType<
727
756
  /** @internal */
728
757
  export type TeamLimited$Outbound = {
729
758
  limited: boolean;
759
+ limitedBy: Array<string>;
730
760
  saml?: Saml$Outbound | undefined;
761
+ mfaEnforced?: boolean | undefined;
731
762
  id: string;
732
763
  slug: string;
733
764
  name: string | null;
@@ -744,7 +775,9 @@ export const TeamLimited$outboundSchema: z.ZodType<
744
775
  TeamLimited
745
776
  > = z.object({
746
777
  limited: z.boolean(),
778
+ limitedBy: z.array(LimitedBy$outboundSchema),
747
779
  saml: z.lazy(() => Saml$outboundSchema).optional(),
780
+ mfaEnforced: z.boolean().optional(),
748
781
  id: z.string(),
749
782
  slug: z.string(),
750
783
  name: z.nullable(z.string()),
@@ -963,28 +963,32 @@ export type UpdateProjectDataCacheOptionsAllowlist = {
963
963
 
964
964
  export type UpdateProjectDataCachePasswordProtection = {};
965
965
 
966
- export const FunctionDefaultMemoryType = {
966
+ export const UpdateProjectDataCacheProjectsFunctionDefaultMemoryType = {
967
967
  StandardLegacy: "standard_legacy",
968
968
  Standard: "standard",
969
969
  Performance: "performance",
970
970
  } as const;
971
- export type FunctionDefaultMemoryType = ClosedEnum<
972
- typeof FunctionDefaultMemoryType
973
- >;
971
+ export type UpdateProjectDataCacheProjectsFunctionDefaultMemoryType =
972
+ ClosedEnum<typeof UpdateProjectDataCacheProjectsFunctionDefaultMemoryType>;
974
973
 
975
- export const BuildMachineType = {
974
+ export const UpdateProjectDataCacheProjectsBuildMachineType = {
976
975
  Enhanced: "enhanced",
976
+ Ultra: "ultra",
977
977
  } as const;
978
- export type BuildMachineType = ClosedEnum<typeof BuildMachineType>;
978
+ export type UpdateProjectDataCacheProjectsBuildMachineType = ClosedEnum<
979
+ typeof UpdateProjectDataCacheProjectsBuildMachineType
980
+ >;
979
981
 
980
982
  export type UpdateProjectDataCacheResourceConfig = {
981
983
  fluid?: boolean | undefined;
982
984
  functionDefaultRegions: Array<string>;
983
985
  functionDefaultTimeout?: number | undefined;
984
- functionDefaultMemoryType?: FunctionDefaultMemoryType | undefined;
986
+ functionDefaultMemoryType?:
987
+ | UpdateProjectDataCacheProjectsFunctionDefaultMemoryType
988
+ | undefined;
985
989
  functionZeroConfigFailover?: boolean | undefined;
986
990
  elasticConcurrencyEnabled?: boolean | undefined;
987
- buildMachineType?: BuildMachineType | undefined;
991
+ buildMachineType?: UpdateProjectDataCacheProjectsBuildMachineType | undefined;
988
992
  };
989
993
 
990
994
  /**
@@ -1035,6 +1039,7 @@ export type UpdateProjectDataCacheFunctionDefaultMemoryType = ClosedEnum<
1035
1039
 
1036
1040
  export const UpdateProjectDataCacheBuildMachineType = {
1037
1041
  Enhanced: "enhanced",
1042
+ Ultra: "ultra",
1038
1043
  } as const;
1039
1044
  export type UpdateProjectDataCacheBuildMachineType = ClosedEnum<
1040
1045
  typeof UpdateProjectDataCacheBuildMachineType
@@ -1454,19 +1459,33 @@ export type LastAliasRequest = {
1454
1459
  type: UpdateProjectDataCacheProjectsResponse200Type;
1455
1460
  };
1456
1461
 
1457
- export const UpdateProjectDataCacheScope = {
1462
+ export const ProtectionBypassScope = {
1458
1463
  AutomationBypass: "automation-bypass",
1459
1464
  } as const;
1460
- export type UpdateProjectDataCacheScope = ClosedEnum<
1461
- typeof UpdateProjectDataCacheScope
1465
+ export type ProtectionBypassScope = ClosedEnum<typeof ProtectionBypassScope>;
1466
+
1467
+ export type ProtectionBypass2 = {
1468
+ createdAt: number;
1469
+ createdBy: string;
1470
+ scope: ProtectionBypassScope;
1471
+ };
1472
+
1473
+ export const UpdateProjectDataCacheProtectionBypassScope = {
1474
+ IntegrationAutomationBypass: "integration-automation-bypass",
1475
+ } as const;
1476
+ export type UpdateProjectDataCacheProtectionBypassScope = ClosedEnum<
1477
+ typeof UpdateProjectDataCacheProtectionBypassScope
1462
1478
  >;
1463
1479
 
1464
- export type ProtectionBypass = {
1480
+ export type ProtectionBypass1 = {
1465
1481
  createdAt: number;
1466
1482
  createdBy: string;
1467
- scope: UpdateProjectDataCacheScope;
1483
+ scope: UpdateProjectDataCacheProtectionBypassScope;
1484
+ integrationId: string;
1468
1485
  };
1469
1486
 
1487
+ export type ProtectionBypass = ProtectionBypass2 | ProtectionBypass1;
1488
+
1470
1489
  export const UpdateProjectDataCacheTrustedIpsDeploymentType = {
1471
1490
  Production: "production",
1472
1491
  Preview: "preview",
@@ -1834,7 +1853,9 @@ export type UpdateProjectDataCacheResponseBody = {
1834
1853
  permissions?: Permissions | undefined;
1835
1854
  lastRollbackTarget?: LastRollbackTarget | null | undefined;
1836
1855
  lastAliasRequest?: LastAliasRequest | null | undefined;
1837
- protectionBypass?: { [k: string]: ProtectionBypass } | undefined;
1856
+ protectionBypass?:
1857
+ | { [k: string]: ProtectionBypass2 | ProtectionBypass1 }
1858
+ | undefined;
1838
1859
  hasActiveBranches?: boolean | undefined;
1839
1860
  trustedIps?: TrustedIps2 | TrustedIps1 | null | undefined;
1840
1861
  gitComments?: GitComments | undefined;
@@ -6393,45 +6414,51 @@ export function updateProjectDataCachePasswordProtectionFromJSON(
6393
6414
  }
6394
6415
 
6395
6416
  /** @internal */
6396
- export const FunctionDefaultMemoryType$inboundSchema: z.ZodNativeEnum<
6397
- typeof FunctionDefaultMemoryType
6398
- > = z.nativeEnum(FunctionDefaultMemoryType);
6417
+ export const UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema:
6418
+ z.ZodNativeEnum<
6419
+ typeof UpdateProjectDataCacheProjectsFunctionDefaultMemoryType
6420
+ > = z.nativeEnum(UpdateProjectDataCacheProjectsFunctionDefaultMemoryType);
6399
6421
 
6400
6422
  /** @internal */
6401
- export const FunctionDefaultMemoryType$outboundSchema: z.ZodNativeEnum<
6402
- typeof FunctionDefaultMemoryType
6403
- > = FunctionDefaultMemoryType$inboundSchema;
6423
+ export const UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$outboundSchema:
6424
+ z.ZodNativeEnum<
6425
+ typeof UpdateProjectDataCacheProjectsFunctionDefaultMemoryType
6426
+ > = UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema;
6404
6427
 
6405
6428
  /**
6406
6429
  * @internal
6407
6430
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6408
6431
  */
6409
- export namespace FunctionDefaultMemoryType$ {
6410
- /** @deprecated use `FunctionDefaultMemoryType$inboundSchema` instead. */
6411
- export const inboundSchema = FunctionDefaultMemoryType$inboundSchema;
6412
- /** @deprecated use `FunctionDefaultMemoryType$outboundSchema` instead. */
6413
- export const outboundSchema = FunctionDefaultMemoryType$outboundSchema;
6432
+ export namespace UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$ {
6433
+ /** @deprecated use `UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema` instead. */
6434
+ export const inboundSchema =
6435
+ UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema;
6436
+ /** @deprecated use `UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$outboundSchema` instead. */
6437
+ export const outboundSchema =
6438
+ UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$outboundSchema;
6414
6439
  }
6415
6440
 
6416
6441
  /** @internal */
6417
- export const BuildMachineType$inboundSchema: z.ZodNativeEnum<
6418
- typeof BuildMachineType
6419
- > = z.nativeEnum(BuildMachineType);
6442
+ export const UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema:
6443
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsBuildMachineType> = z
6444
+ .nativeEnum(UpdateProjectDataCacheProjectsBuildMachineType);
6420
6445
 
6421
6446
  /** @internal */
6422
- export const BuildMachineType$outboundSchema: z.ZodNativeEnum<
6423
- typeof BuildMachineType
6424
- > = BuildMachineType$inboundSchema;
6447
+ export const UpdateProjectDataCacheProjectsBuildMachineType$outboundSchema:
6448
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsBuildMachineType> =
6449
+ UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema;
6425
6450
 
6426
6451
  /**
6427
6452
  * @internal
6428
6453
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6429
6454
  */
6430
- export namespace BuildMachineType$ {
6431
- /** @deprecated use `BuildMachineType$inboundSchema` instead. */
6432
- export const inboundSchema = BuildMachineType$inboundSchema;
6433
- /** @deprecated use `BuildMachineType$outboundSchema` instead. */
6434
- export const outboundSchema = BuildMachineType$outboundSchema;
6455
+ export namespace UpdateProjectDataCacheProjectsBuildMachineType$ {
6456
+ /** @deprecated use `UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema` instead. */
6457
+ export const inboundSchema =
6458
+ UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema;
6459
+ /** @deprecated use `UpdateProjectDataCacheProjectsBuildMachineType$outboundSchema` instead. */
6460
+ export const outboundSchema =
6461
+ UpdateProjectDataCacheProjectsBuildMachineType$outboundSchema;
6435
6462
  }
6436
6463
 
6437
6464
  /** @internal */
@@ -6443,10 +6470,13 @@ export const UpdateProjectDataCacheResourceConfig$inboundSchema: z.ZodType<
6443
6470
  fluid: z.boolean().optional(),
6444
6471
  functionDefaultRegions: z.array(z.string()),
6445
6472
  functionDefaultTimeout: z.number().optional(),
6446
- functionDefaultMemoryType: FunctionDefaultMemoryType$inboundSchema.optional(),
6473
+ functionDefaultMemoryType:
6474
+ UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema
6475
+ .optional(),
6447
6476
  functionZeroConfigFailover: z.boolean().optional(),
6448
6477
  elasticConcurrencyEnabled: z.boolean().optional(),
6449
- buildMachineType: BuildMachineType$inboundSchema.optional(),
6478
+ buildMachineType: UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema
6479
+ .optional(),
6450
6480
  });
6451
6481
 
6452
6482
  /** @internal */
@@ -6469,11 +6499,13 @@ export const UpdateProjectDataCacheResourceConfig$outboundSchema: z.ZodType<
6469
6499
  fluid: z.boolean().optional(),
6470
6500
  functionDefaultRegions: z.array(z.string()),
6471
6501
  functionDefaultTimeout: z.number().optional(),
6472
- functionDefaultMemoryType: FunctionDefaultMemoryType$outboundSchema
6473
- .optional(),
6502
+ functionDefaultMemoryType:
6503
+ UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$outboundSchema
6504
+ .optional(),
6474
6505
  functionZeroConfigFailover: z.boolean().optional(),
6475
6506
  elasticConcurrencyEnabled: z.boolean().optional(),
6476
- buildMachineType: BuildMachineType$outboundSchema.optional(),
6507
+ buildMachineType:
6508
+ UpdateProjectDataCacheProjectsBuildMachineType$outboundSchema.optional(),
6477
6509
  });
6478
6510
 
6479
6511
  /**
@@ -8389,55 +8421,197 @@ export function lastAliasRequestFromJSON(
8389
8421
  }
8390
8422
 
8391
8423
  /** @internal */
8392
- export const UpdateProjectDataCacheScope$inboundSchema: z.ZodNativeEnum<
8393
- typeof UpdateProjectDataCacheScope
8394
- > = z.nativeEnum(UpdateProjectDataCacheScope);
8424
+ export const ProtectionBypassScope$inboundSchema: z.ZodNativeEnum<
8425
+ typeof ProtectionBypassScope
8426
+ > = z.nativeEnum(ProtectionBypassScope);
8395
8427
 
8396
8428
  /** @internal */
8397
- export const UpdateProjectDataCacheScope$outboundSchema: z.ZodNativeEnum<
8398
- typeof UpdateProjectDataCacheScope
8399
- > = UpdateProjectDataCacheScope$inboundSchema;
8429
+ export const ProtectionBypassScope$outboundSchema: z.ZodNativeEnum<
8430
+ typeof ProtectionBypassScope
8431
+ > = ProtectionBypassScope$inboundSchema;
8400
8432
 
8401
8433
  /**
8402
8434
  * @internal
8403
8435
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8404
8436
  */
8405
- export namespace UpdateProjectDataCacheScope$ {
8406
- /** @deprecated use `UpdateProjectDataCacheScope$inboundSchema` instead. */
8407
- export const inboundSchema = UpdateProjectDataCacheScope$inboundSchema;
8408
- /** @deprecated use `UpdateProjectDataCacheScope$outboundSchema` instead. */
8409
- export const outboundSchema = UpdateProjectDataCacheScope$outboundSchema;
8437
+ export namespace ProtectionBypassScope$ {
8438
+ /** @deprecated use `ProtectionBypassScope$inboundSchema` instead. */
8439
+ export const inboundSchema = ProtectionBypassScope$inboundSchema;
8440
+ /** @deprecated use `ProtectionBypassScope$outboundSchema` instead. */
8441
+ export const outboundSchema = ProtectionBypassScope$outboundSchema;
8410
8442
  }
8411
8443
 
8412
8444
  /** @internal */
8413
- export const ProtectionBypass$inboundSchema: z.ZodType<
8414
- ProtectionBypass,
8445
+ export const ProtectionBypass2$inboundSchema: z.ZodType<
8446
+ ProtectionBypass2,
8415
8447
  z.ZodTypeDef,
8416
8448
  unknown
8417
8449
  > = z.object({
8418
8450
  createdAt: z.number(),
8419
8451
  createdBy: z.string(),
8420
- scope: UpdateProjectDataCacheScope$inboundSchema,
8452
+ scope: ProtectionBypassScope$inboundSchema,
8421
8453
  });
8422
8454
 
8423
8455
  /** @internal */
8424
- export type ProtectionBypass$Outbound = {
8456
+ export type ProtectionBypass2$Outbound = {
8425
8457
  createdAt: number;
8426
8458
  createdBy: string;
8427
8459
  scope: string;
8428
8460
  };
8429
8461
 
8430
8462
  /** @internal */
8431
- export const ProtectionBypass$outboundSchema: z.ZodType<
8432
- ProtectionBypass$Outbound,
8463
+ export const ProtectionBypass2$outboundSchema: z.ZodType<
8464
+ ProtectionBypass2$Outbound,
8433
8465
  z.ZodTypeDef,
8434
- ProtectionBypass
8466
+ ProtectionBypass2
8467
+ > = z.object({
8468
+ createdAt: z.number(),
8469
+ createdBy: z.string(),
8470
+ scope: ProtectionBypassScope$outboundSchema,
8471
+ });
8472
+
8473
+ /**
8474
+ * @internal
8475
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8476
+ */
8477
+ export namespace ProtectionBypass2$ {
8478
+ /** @deprecated use `ProtectionBypass2$inboundSchema` instead. */
8479
+ export const inboundSchema = ProtectionBypass2$inboundSchema;
8480
+ /** @deprecated use `ProtectionBypass2$outboundSchema` instead. */
8481
+ export const outboundSchema = ProtectionBypass2$outboundSchema;
8482
+ /** @deprecated use `ProtectionBypass2$Outbound` instead. */
8483
+ export type Outbound = ProtectionBypass2$Outbound;
8484
+ }
8485
+
8486
+ export function protectionBypass2ToJSON(
8487
+ protectionBypass2: ProtectionBypass2,
8488
+ ): string {
8489
+ return JSON.stringify(
8490
+ ProtectionBypass2$outboundSchema.parse(protectionBypass2),
8491
+ );
8492
+ }
8493
+
8494
+ export function protectionBypass2FromJSON(
8495
+ jsonString: string,
8496
+ ): SafeParseResult<ProtectionBypass2, SDKValidationError> {
8497
+ return safeParse(
8498
+ jsonString,
8499
+ (x) => ProtectionBypass2$inboundSchema.parse(JSON.parse(x)),
8500
+ `Failed to parse 'ProtectionBypass2' from JSON`,
8501
+ );
8502
+ }
8503
+
8504
+ /** @internal */
8505
+ export const UpdateProjectDataCacheProtectionBypassScope$inboundSchema:
8506
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProtectionBypassScope> = z
8507
+ .nativeEnum(UpdateProjectDataCacheProtectionBypassScope);
8508
+
8509
+ /** @internal */
8510
+ export const UpdateProjectDataCacheProtectionBypassScope$outboundSchema:
8511
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProtectionBypassScope> =
8512
+ UpdateProjectDataCacheProtectionBypassScope$inboundSchema;
8513
+
8514
+ /**
8515
+ * @internal
8516
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8517
+ */
8518
+ export namespace UpdateProjectDataCacheProtectionBypassScope$ {
8519
+ /** @deprecated use `UpdateProjectDataCacheProtectionBypassScope$inboundSchema` instead. */
8520
+ export const inboundSchema =
8521
+ UpdateProjectDataCacheProtectionBypassScope$inboundSchema;
8522
+ /** @deprecated use `UpdateProjectDataCacheProtectionBypassScope$outboundSchema` instead. */
8523
+ export const outboundSchema =
8524
+ UpdateProjectDataCacheProtectionBypassScope$outboundSchema;
8525
+ }
8526
+
8527
+ /** @internal */
8528
+ export const ProtectionBypass1$inboundSchema: z.ZodType<
8529
+ ProtectionBypass1,
8530
+ z.ZodTypeDef,
8531
+ unknown
8532
+ > = z.object({
8533
+ createdAt: z.number(),
8534
+ createdBy: z.string(),
8535
+ scope: UpdateProjectDataCacheProtectionBypassScope$inboundSchema,
8536
+ integrationId: z.string(),
8537
+ });
8538
+
8539
+ /** @internal */
8540
+ export type ProtectionBypass1$Outbound = {
8541
+ createdAt: number;
8542
+ createdBy: string;
8543
+ scope: string;
8544
+ integrationId: string;
8545
+ };
8546
+
8547
+ /** @internal */
8548
+ export const ProtectionBypass1$outboundSchema: z.ZodType<
8549
+ ProtectionBypass1$Outbound,
8550
+ z.ZodTypeDef,
8551
+ ProtectionBypass1
8435
8552
  > = z.object({
8436
8553
  createdAt: z.number(),
8437
8554
  createdBy: z.string(),
8438
- scope: UpdateProjectDataCacheScope$outboundSchema,
8555
+ scope: UpdateProjectDataCacheProtectionBypassScope$outboundSchema,
8556
+ integrationId: z.string(),
8439
8557
  });
8440
8558
 
8559
+ /**
8560
+ * @internal
8561
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8562
+ */
8563
+ export namespace ProtectionBypass1$ {
8564
+ /** @deprecated use `ProtectionBypass1$inboundSchema` instead. */
8565
+ export const inboundSchema = ProtectionBypass1$inboundSchema;
8566
+ /** @deprecated use `ProtectionBypass1$outboundSchema` instead. */
8567
+ export const outboundSchema = ProtectionBypass1$outboundSchema;
8568
+ /** @deprecated use `ProtectionBypass1$Outbound` instead. */
8569
+ export type Outbound = ProtectionBypass1$Outbound;
8570
+ }
8571
+
8572
+ export function protectionBypass1ToJSON(
8573
+ protectionBypass1: ProtectionBypass1,
8574
+ ): string {
8575
+ return JSON.stringify(
8576
+ ProtectionBypass1$outboundSchema.parse(protectionBypass1),
8577
+ );
8578
+ }
8579
+
8580
+ export function protectionBypass1FromJSON(
8581
+ jsonString: string,
8582
+ ): SafeParseResult<ProtectionBypass1, SDKValidationError> {
8583
+ return safeParse(
8584
+ jsonString,
8585
+ (x) => ProtectionBypass1$inboundSchema.parse(JSON.parse(x)),
8586
+ `Failed to parse 'ProtectionBypass1' from JSON`,
8587
+ );
8588
+ }
8589
+
8590
+ /** @internal */
8591
+ export const ProtectionBypass$inboundSchema: z.ZodType<
8592
+ ProtectionBypass,
8593
+ z.ZodTypeDef,
8594
+ unknown
8595
+ > = z.union([
8596
+ z.lazy(() => ProtectionBypass2$inboundSchema),
8597
+ z.lazy(() => ProtectionBypass1$inboundSchema),
8598
+ ]);
8599
+
8600
+ /** @internal */
8601
+ export type ProtectionBypass$Outbound =
8602
+ | ProtectionBypass2$Outbound
8603
+ | ProtectionBypass1$Outbound;
8604
+
8605
+ /** @internal */
8606
+ export const ProtectionBypass$outboundSchema: z.ZodType<
8607
+ ProtectionBypass$Outbound,
8608
+ z.ZodTypeDef,
8609
+ ProtectionBypass
8610
+ > = z.union([
8611
+ z.lazy(() => ProtectionBypass2$outboundSchema),
8612
+ z.lazy(() => ProtectionBypass1$outboundSchema),
8613
+ ]);
8614
+
8441
8615
  /**
8442
8616
  * @internal
8443
8617
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -10188,8 +10362,12 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10188
10362
  .optional(),
10189
10363
  lastAliasRequest: z.nullable(z.lazy(() => LastAliasRequest$inboundSchema))
10190
10364
  .optional(),
10191
- protectionBypass: z.record(z.lazy(() => ProtectionBypass$inboundSchema))
10192
- .optional(),
10365
+ protectionBypass: z.record(
10366
+ z.union([
10367
+ z.lazy(() => ProtectionBypass2$inboundSchema),
10368
+ z.lazy(() => ProtectionBypass1$inboundSchema),
10369
+ ]),
10370
+ ).optional(),
10193
10371
  hasActiveBranches: z.boolean().optional(),
10194
10372
  trustedIps: z.nullable(
10195
10373
  z.union([
@@ -10290,7 +10468,9 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
10290
10468
  permissions?: Permissions$Outbound | undefined;
10291
10469
  lastRollbackTarget?: LastRollbackTarget$Outbound | null | undefined;
10292
10470
  lastAliasRequest?: LastAliasRequest$Outbound | null | undefined;
10293
- protectionBypass?: { [k: string]: ProtectionBypass$Outbound } | undefined;
10471
+ protectionBypass?: {
10472
+ [k: string]: ProtectionBypass2$Outbound | ProtectionBypass1$Outbound;
10473
+ } | undefined;
10294
10474
  hasActiveBranches?: boolean | undefined;
10295
10475
  trustedIps?: TrustedIps2$Outbound | TrustedIps1$Outbound | null | undefined;
10296
10476
  gitComments?: GitComments$Outbound | undefined;
@@ -10396,8 +10576,12 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10396
10576
  ).optional(),
10397
10577
  lastAliasRequest: z.nullable(z.lazy(() => LastAliasRequest$outboundSchema))
10398
10578
  .optional(),
10399
- protectionBypass: z.record(z.lazy(() => ProtectionBypass$outboundSchema))
10400
- .optional(),
10579
+ protectionBypass: z.record(
10580
+ z.union([
10581
+ z.lazy(() => ProtectionBypass2$outboundSchema),
10582
+ z.lazy(() => ProtectionBypass1$outboundSchema),
10583
+ ]),
10584
+ ).optional(),
10401
10585
  hasActiveBranches: z.boolean().optional(),
10402
10586
  trustedIps: z.nullable(
10403
10587
  z.union([