@vercel/sdk 1.6.10 → 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 (99) hide show
  1. package/README.md +31 -17
  2. package/bin/mcp-server.js +1510 -1189
  3. package/bin/mcp-server.js.map +17 -17
  4. package/docs/sdks/aliases/README.md +84 -0
  5. package/docs/sdks/vercel/README.md +0 -77
  6. package/esm/__tests__/aliases.test.js +17 -0
  7. package/esm/__tests__/aliases.test.js.map +1 -1
  8. package/esm/__tests__/projects.test.js +15 -13
  9. package/esm/__tests__/projects.test.js.map +1 -1
  10. package/esm/__tests__/vercel.test.js +3 -16
  11. package/esm/__tests__/vercel.test.js.map +1 -1
  12. package/esm/funcs/{patchAliasesIdProtectionBypass.d.ts → aliasesPatchUrlProtectionBypass.d.ts} +7 -4
  13. package/esm/funcs/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
  14. package/esm/funcs/{patchAliasesIdProtectionBypass.js → aliasesPatchUrlProtectionBypass.js} +22 -9
  15. package/esm/funcs/aliasesPatchUrlProtectionBypass.js.map +1 -0
  16. package/esm/lib/config.d.ts +2 -2
  17. package/esm/lib/config.js +2 -2
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/server.js +3 -3
  20. package/esm/mcp-server/server.js.map +1 -1
  21. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts +7 -0
  22. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
  23. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js +28 -0
  24. package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js.map +1 -0
  25. package/esm/models/createprojectop.d.ts +206 -28
  26. package/esm/models/createprojectop.d.ts.map +1 -1
  27. package/esm/models/createprojectop.js +195 -31
  28. package/esm/models/createprojectop.js.map +1 -1
  29. package/esm/models/createrecordop.d.ts +43 -43
  30. package/esm/models/createrecordop.d.ts.map +1 -1
  31. package/esm/models/createrecordop.js +51 -51
  32. package/esm/models/createrecordop.js.map +1 -1
  33. package/esm/models/getaliasop.d.ts +62 -62
  34. package/esm/models/getaliasop.d.ts.map +1 -1
  35. package/esm/models/getaliasop.js +84 -83
  36. package/esm/models/getaliasop.js.map +1 -1
  37. package/esm/models/getprojectsop.d.ts +87 -13
  38. package/esm/models/getprojectsop.d.ts.map +1 -1
  39. package/esm/models/getprojectsop.js +99 -16
  40. package/esm/models/getprojectsop.js.map +1 -1
  41. package/esm/models/listdeploymentaliasesop.d.ts +32 -32
  42. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  43. package/esm/models/listdeploymentaliasesop.js +50 -50
  44. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  45. package/esm/models/{patchaliasesidprotectionbypassop.d.ts → patchurlprotectionbypassop.d.ts} +86 -76
  46. package/esm/models/patchurlprotectionbypassop.d.ts.map +1 -0
  47. package/esm/models/{patchaliasesidprotectionbypassop.js → patchurlprotectionbypassop.js} +95 -91
  48. package/esm/models/patchurlprotectionbypassop.js.map +1 -0
  49. package/esm/models/updateprojectdatacacheop.d.ts +103 -29
  50. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  51. package/esm/models/updateprojectdatacacheop.js +126 -42
  52. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  53. package/esm/models/updateprojectop.d.ts +238 -60
  54. package/esm/models/updateprojectop.d.ts.map +1 -1
  55. package/esm/models/updateprojectop.js +248 -80
  56. package/esm/models/updateprojectop.js.map +1 -1
  57. package/esm/models/updateprojectprotectionbypassop.d.ts +88 -14
  58. package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
  59. package/esm/models/updateprojectprotectionbypassop.js +100 -17
  60. package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
  61. package/esm/sdk/aliases.d.ts +10 -0
  62. package/esm/sdk/aliases.d.ts.map +1 -1
  63. package/esm/sdk/aliases.js +10 -0
  64. package/esm/sdk/aliases.js.map +1 -1
  65. package/esm/sdk/sdk.d.ts +1 -8
  66. package/esm/sdk/sdk.d.ts.map +1 -1
  67. package/esm/sdk/sdk.js +0 -8
  68. package/esm/sdk/sdk.js.map +1 -1
  69. package/jsr.json +1 -1
  70. package/package.json +1 -1
  71. package/src/__tests__/aliases.test.ts +20 -0
  72. package/src/__tests__/projects.test.ts +15 -13
  73. package/src/__tests__/vercel.test.ts +4 -19
  74. package/src/funcs/{patchAliasesIdProtectionBypass.ts → aliasesPatchUrlProtectionBypass.ts} +27 -13
  75. package/src/lib/config.ts +2 -2
  76. package/src/mcp-server/mcp-server.ts +1 -1
  77. package/src/mcp-server/server.ts +3 -3
  78. package/src/mcp-server/tools/aliasesPatchUrlProtectionBypass.ts +38 -0
  79. package/src/models/createprojectop.ts +401 -55
  80. package/src/models/createrecordop.ts +84 -96
  81. package/src/models/getaliasop.ts +130 -126
  82. package/src/models/getprojectsop.ts +205 -29
  83. package/src/models/listdeploymentaliasesop.ts +78 -78
  84. package/src/models/{patchaliasesidprotectionbypassop.ts → patchurlprotectionbypassop.ts} +191 -156
  85. package/src/models/updateprojectdatacacheop.ts +247 -65
  86. package/src/models/updateprojectop.ts +486 -125
  87. package/src/models/updateprojectprotectionbypassop.ts +239 -31
  88. package/src/sdk/aliases.ts +19 -0
  89. package/src/sdk/sdk.ts +1 -18
  90. package/vercel-spec.json +417 -112
  91. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +0 -1
  92. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +0 -1
  93. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +0 -7
  94. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +0 -1
  95. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +0 -26
  96. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +0 -1
  97. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +0 -1
  98. package/esm/models/patchaliasesidprotectionbypassop.js.map +0 -1
  99. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +0 -37
@@ -963,29 +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",
977
976
  Ultra: "ultra",
978
977
  } as const;
979
- export type BuildMachineType = ClosedEnum<typeof BuildMachineType>;
978
+ export type UpdateProjectDataCacheProjectsBuildMachineType = ClosedEnum<
979
+ typeof UpdateProjectDataCacheProjectsBuildMachineType
980
+ >;
980
981
 
981
982
  export type UpdateProjectDataCacheResourceConfig = {
982
983
  fluid?: boolean | undefined;
983
984
  functionDefaultRegions: Array<string>;
984
985
  functionDefaultTimeout?: number | undefined;
985
- functionDefaultMemoryType?: FunctionDefaultMemoryType | undefined;
986
+ functionDefaultMemoryType?:
987
+ | UpdateProjectDataCacheProjectsFunctionDefaultMemoryType
988
+ | undefined;
986
989
  functionZeroConfigFailover?: boolean | undefined;
987
990
  elasticConcurrencyEnabled?: boolean | undefined;
988
- buildMachineType?: BuildMachineType | undefined;
991
+ buildMachineType?: UpdateProjectDataCacheProjectsBuildMachineType | undefined;
989
992
  };
990
993
 
991
994
  /**
@@ -1456,19 +1459,33 @@ export type LastAliasRequest = {
1456
1459
  type: UpdateProjectDataCacheProjectsResponse200Type;
1457
1460
  };
1458
1461
 
1459
- export const UpdateProjectDataCacheScope = {
1462
+ export const ProtectionBypassScope = {
1460
1463
  AutomationBypass: "automation-bypass",
1461
1464
  } as const;
1462
- export type UpdateProjectDataCacheScope = ClosedEnum<
1463
- 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
1464
1478
  >;
1465
1479
 
1466
- export type ProtectionBypass = {
1480
+ export type ProtectionBypass1 = {
1467
1481
  createdAt: number;
1468
1482
  createdBy: string;
1469
- scope: UpdateProjectDataCacheScope;
1483
+ scope: UpdateProjectDataCacheProtectionBypassScope;
1484
+ integrationId: string;
1470
1485
  };
1471
1486
 
1487
+ export type ProtectionBypass = ProtectionBypass2 | ProtectionBypass1;
1488
+
1472
1489
  export const UpdateProjectDataCacheTrustedIpsDeploymentType = {
1473
1490
  Production: "production",
1474
1491
  Preview: "preview",
@@ -1836,7 +1853,9 @@ export type UpdateProjectDataCacheResponseBody = {
1836
1853
  permissions?: Permissions | undefined;
1837
1854
  lastRollbackTarget?: LastRollbackTarget | null | undefined;
1838
1855
  lastAliasRequest?: LastAliasRequest | null | undefined;
1839
- protectionBypass?: { [k: string]: ProtectionBypass } | undefined;
1856
+ protectionBypass?:
1857
+ | { [k: string]: ProtectionBypass2 | ProtectionBypass1 }
1858
+ | undefined;
1840
1859
  hasActiveBranches?: boolean | undefined;
1841
1860
  trustedIps?: TrustedIps2 | TrustedIps1 | null | undefined;
1842
1861
  gitComments?: GitComments | undefined;
@@ -6395,45 +6414,51 @@ export function updateProjectDataCachePasswordProtectionFromJSON(
6395
6414
  }
6396
6415
 
6397
6416
  /** @internal */
6398
- export const FunctionDefaultMemoryType$inboundSchema: z.ZodNativeEnum<
6399
- typeof FunctionDefaultMemoryType
6400
- > = z.nativeEnum(FunctionDefaultMemoryType);
6417
+ export const UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema:
6418
+ z.ZodNativeEnum<
6419
+ typeof UpdateProjectDataCacheProjectsFunctionDefaultMemoryType
6420
+ > = z.nativeEnum(UpdateProjectDataCacheProjectsFunctionDefaultMemoryType);
6401
6421
 
6402
6422
  /** @internal */
6403
- export const FunctionDefaultMemoryType$outboundSchema: z.ZodNativeEnum<
6404
- typeof FunctionDefaultMemoryType
6405
- > = FunctionDefaultMemoryType$inboundSchema;
6423
+ export const UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$outboundSchema:
6424
+ z.ZodNativeEnum<
6425
+ typeof UpdateProjectDataCacheProjectsFunctionDefaultMemoryType
6426
+ > = UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema;
6406
6427
 
6407
6428
  /**
6408
6429
  * @internal
6409
6430
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6410
6431
  */
6411
- export namespace FunctionDefaultMemoryType$ {
6412
- /** @deprecated use `FunctionDefaultMemoryType$inboundSchema` instead. */
6413
- export const inboundSchema = FunctionDefaultMemoryType$inboundSchema;
6414
- /** @deprecated use `FunctionDefaultMemoryType$outboundSchema` instead. */
6415
- 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;
6416
6439
  }
6417
6440
 
6418
6441
  /** @internal */
6419
- export const BuildMachineType$inboundSchema: z.ZodNativeEnum<
6420
- typeof BuildMachineType
6421
- > = z.nativeEnum(BuildMachineType);
6442
+ export const UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema:
6443
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsBuildMachineType> = z
6444
+ .nativeEnum(UpdateProjectDataCacheProjectsBuildMachineType);
6422
6445
 
6423
6446
  /** @internal */
6424
- export const BuildMachineType$outboundSchema: z.ZodNativeEnum<
6425
- typeof BuildMachineType
6426
- > = BuildMachineType$inboundSchema;
6447
+ export const UpdateProjectDataCacheProjectsBuildMachineType$outboundSchema:
6448
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsBuildMachineType> =
6449
+ UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema;
6427
6450
 
6428
6451
  /**
6429
6452
  * @internal
6430
6453
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6431
6454
  */
6432
- export namespace BuildMachineType$ {
6433
- /** @deprecated use `BuildMachineType$inboundSchema` instead. */
6434
- export const inboundSchema = BuildMachineType$inboundSchema;
6435
- /** @deprecated use `BuildMachineType$outboundSchema` instead. */
6436
- 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;
6437
6462
  }
6438
6463
 
6439
6464
  /** @internal */
@@ -6445,10 +6470,13 @@ export const UpdateProjectDataCacheResourceConfig$inboundSchema: z.ZodType<
6445
6470
  fluid: z.boolean().optional(),
6446
6471
  functionDefaultRegions: z.array(z.string()),
6447
6472
  functionDefaultTimeout: z.number().optional(),
6448
- functionDefaultMemoryType: FunctionDefaultMemoryType$inboundSchema.optional(),
6473
+ functionDefaultMemoryType:
6474
+ UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$inboundSchema
6475
+ .optional(),
6449
6476
  functionZeroConfigFailover: z.boolean().optional(),
6450
6477
  elasticConcurrencyEnabled: z.boolean().optional(),
6451
- buildMachineType: BuildMachineType$inboundSchema.optional(),
6478
+ buildMachineType: UpdateProjectDataCacheProjectsBuildMachineType$inboundSchema
6479
+ .optional(),
6452
6480
  });
6453
6481
 
6454
6482
  /** @internal */
@@ -6471,11 +6499,13 @@ export const UpdateProjectDataCacheResourceConfig$outboundSchema: z.ZodType<
6471
6499
  fluid: z.boolean().optional(),
6472
6500
  functionDefaultRegions: z.array(z.string()),
6473
6501
  functionDefaultTimeout: z.number().optional(),
6474
- functionDefaultMemoryType: FunctionDefaultMemoryType$outboundSchema
6475
- .optional(),
6502
+ functionDefaultMemoryType:
6503
+ UpdateProjectDataCacheProjectsFunctionDefaultMemoryType$outboundSchema
6504
+ .optional(),
6476
6505
  functionZeroConfigFailover: z.boolean().optional(),
6477
6506
  elasticConcurrencyEnabled: z.boolean().optional(),
6478
- buildMachineType: BuildMachineType$outboundSchema.optional(),
6507
+ buildMachineType:
6508
+ UpdateProjectDataCacheProjectsBuildMachineType$outboundSchema.optional(),
6479
6509
  });
6480
6510
 
6481
6511
  /**
@@ -8391,55 +8421,197 @@ export function lastAliasRequestFromJSON(
8391
8421
  }
8392
8422
 
8393
8423
  /** @internal */
8394
- export const UpdateProjectDataCacheScope$inboundSchema: z.ZodNativeEnum<
8395
- typeof UpdateProjectDataCacheScope
8396
- > = z.nativeEnum(UpdateProjectDataCacheScope);
8424
+ export const ProtectionBypassScope$inboundSchema: z.ZodNativeEnum<
8425
+ typeof ProtectionBypassScope
8426
+ > = z.nativeEnum(ProtectionBypassScope);
8397
8427
 
8398
8428
  /** @internal */
8399
- export const UpdateProjectDataCacheScope$outboundSchema: z.ZodNativeEnum<
8400
- typeof UpdateProjectDataCacheScope
8401
- > = UpdateProjectDataCacheScope$inboundSchema;
8429
+ export const ProtectionBypassScope$outboundSchema: z.ZodNativeEnum<
8430
+ typeof ProtectionBypassScope
8431
+ > = ProtectionBypassScope$inboundSchema;
8402
8432
 
8403
8433
  /**
8404
8434
  * @internal
8405
8435
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8406
8436
  */
8407
- export namespace UpdateProjectDataCacheScope$ {
8408
- /** @deprecated use `UpdateProjectDataCacheScope$inboundSchema` instead. */
8409
- export const inboundSchema = UpdateProjectDataCacheScope$inboundSchema;
8410
- /** @deprecated use `UpdateProjectDataCacheScope$outboundSchema` instead. */
8411
- 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;
8412
8442
  }
8413
8443
 
8414
8444
  /** @internal */
8415
- export const ProtectionBypass$inboundSchema: z.ZodType<
8416
- ProtectionBypass,
8445
+ export const ProtectionBypass2$inboundSchema: z.ZodType<
8446
+ ProtectionBypass2,
8417
8447
  z.ZodTypeDef,
8418
8448
  unknown
8419
8449
  > = z.object({
8420
8450
  createdAt: z.number(),
8421
8451
  createdBy: z.string(),
8422
- scope: UpdateProjectDataCacheScope$inboundSchema,
8452
+ scope: ProtectionBypassScope$inboundSchema,
8423
8453
  });
8424
8454
 
8425
8455
  /** @internal */
8426
- export type ProtectionBypass$Outbound = {
8456
+ export type ProtectionBypass2$Outbound = {
8427
8457
  createdAt: number;
8428
8458
  createdBy: string;
8429
8459
  scope: string;
8430
8460
  };
8431
8461
 
8432
8462
  /** @internal */
8433
- export const ProtectionBypass$outboundSchema: z.ZodType<
8434
- ProtectionBypass$Outbound,
8463
+ export const ProtectionBypass2$outboundSchema: z.ZodType<
8464
+ ProtectionBypass2$Outbound,
8435
8465
  z.ZodTypeDef,
8436
- 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
8437
8552
  > = z.object({
8438
8553
  createdAt: z.number(),
8439
8554
  createdBy: z.string(),
8440
- scope: UpdateProjectDataCacheScope$outboundSchema,
8555
+ scope: UpdateProjectDataCacheProtectionBypassScope$outboundSchema,
8556
+ integrationId: z.string(),
8441
8557
  });
8442
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
+
8443
8615
  /**
8444
8616
  * @internal
8445
8617
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -10190,8 +10362,12 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10190
10362
  .optional(),
10191
10363
  lastAliasRequest: z.nullable(z.lazy(() => LastAliasRequest$inboundSchema))
10192
10364
  .optional(),
10193
- protectionBypass: z.record(z.lazy(() => ProtectionBypass$inboundSchema))
10194
- .optional(),
10365
+ protectionBypass: z.record(
10366
+ z.union([
10367
+ z.lazy(() => ProtectionBypass2$inboundSchema),
10368
+ z.lazy(() => ProtectionBypass1$inboundSchema),
10369
+ ]),
10370
+ ).optional(),
10195
10371
  hasActiveBranches: z.boolean().optional(),
10196
10372
  trustedIps: z.nullable(
10197
10373
  z.union([
@@ -10292,7 +10468,9 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
10292
10468
  permissions?: Permissions$Outbound | undefined;
10293
10469
  lastRollbackTarget?: LastRollbackTarget$Outbound | null | undefined;
10294
10470
  lastAliasRequest?: LastAliasRequest$Outbound | null | undefined;
10295
- protectionBypass?: { [k: string]: ProtectionBypass$Outbound } | undefined;
10471
+ protectionBypass?: {
10472
+ [k: string]: ProtectionBypass2$Outbound | ProtectionBypass1$Outbound;
10473
+ } | undefined;
10296
10474
  hasActiveBranches?: boolean | undefined;
10297
10475
  trustedIps?: TrustedIps2$Outbound | TrustedIps1$Outbound | null | undefined;
10298
10476
  gitComments?: GitComments$Outbound | undefined;
@@ -10398,8 +10576,12 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10398
10576
  ).optional(),
10399
10577
  lastAliasRequest: z.nullable(z.lazy(() => LastAliasRequest$outboundSchema))
10400
10578
  .optional(),
10401
- protectionBypass: z.record(z.lazy(() => ProtectionBypass$outboundSchema))
10402
- .optional(),
10579
+ protectionBypass: z.record(
10580
+ z.union([
10581
+ z.lazy(() => ProtectionBypass2$outboundSchema),
10582
+ z.lazy(() => ProtectionBypass1$outboundSchema),
10583
+ ]),
10584
+ ).optional(),
10403
10585
  hasActiveBranches: z.boolean().optional(),
10404
10586
  trustedIps: z.nullable(
10405
10587
  z.union([