@vercel/sdk 1.6.3 → 1.6.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.
Files changed (144) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +3504 -1244
  3. package/bin/mcp-server.js.map +28 -25
  4. package/docs/sdks/edgeconfig/README.md +2 -6
  5. package/docs/sdks/marketplace/README.md +2 -6
  6. package/docs/sdks/security/README.md +90 -0
  7. package/docs/sdks/webhooks/README.md +2 -6
  8. package/esm/__tests__/deployments.test.js +16 -1
  9. package/esm/__tests__/deployments.test.js.map +1 -1
  10. package/esm/__tests__/marketplace.test.js +7 -2
  11. package/esm/__tests__/marketplace.test.js.map +1 -1
  12. package/esm/__tests__/projects.test.js +4 -4
  13. package/esm/__tests__/projects.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +163 -3
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/funcs/projectsCreateProject.js +2 -2
  17. package/esm/funcs/projectsCreateProject.js.map +1 -1
  18. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  19. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  20. package/esm/funcs/securityPutFirewallConfig.js +88 -0
  21. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/mcp-server/mcp-server.js +1 -1
  25. package/esm/mcp-server/server.d.ts.map +1 -1
  26. package/esm/mcp-server/server.js +3 -1
  27. package/esm/mcp-server/server.js.map +1 -1
  28. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  29. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  30. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  31. package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
  32. package/esm/models/authtoken.d.ts +6 -0
  33. package/esm/models/authtoken.d.ts.map +1 -1
  34. package/esm/models/authtoken.js +2 -0
  35. package/esm/models/authtoken.js.map +1 -1
  36. package/esm/models/authuser.d.ts +46 -0
  37. package/esm/models/authuser.d.ts.map +1 -1
  38. package/esm/models/authuser.js +28 -0
  39. package/esm/models/authuser.js.map +1 -1
  40. package/esm/models/canceldeploymentop.d.ts +274 -73
  41. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  42. package/esm/models/canceldeploymentop.js +270 -72
  43. package/esm/models/canceldeploymentop.js.map +1 -1
  44. package/esm/models/createdeploymentop.d.ts +274 -73
  45. package/esm/models/createdeploymentop.d.ts.map +1 -1
  46. package/esm/models/createdeploymentop.js +270 -72
  47. package/esm/models/createdeploymentop.js.map +1 -1
  48. package/esm/models/createprojectenvop.d.ts +12 -18
  49. package/esm/models/createprojectenvop.d.ts.map +1 -1
  50. package/esm/models/createprojectenvop.js +12 -12
  51. package/esm/models/createprojectenvop.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +175 -13
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +157 -6
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/editprojectenvop.d.ts +4 -7
  57. package/esm/models/editprojectenvop.d.ts.map +1 -1
  58. package/esm/models/editprojectenvop.js +4 -4
  59. package/esm/models/editprojectenvop.js.map +1 -1
  60. package/esm/models/filterprojectenvsop.d.ts +18 -27
  61. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  62. package/esm/models/filterprojectenvsop.js +18 -18
  63. package/esm/models/filterprojectenvsop.js.map +1 -1
  64. package/esm/models/getdeploymentop.d.ts +574 -172
  65. package/esm/models/getdeploymentop.d.ts.map +1 -1
  66. package/esm/models/getdeploymentop.js +567 -171
  67. package/esm/models/getdeploymentop.js.map +1 -1
  68. package/esm/models/getfirewallconfigop.d.ts +214 -214
  69. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  70. package/esm/models/getfirewallconfigop.js +210 -231
  71. package/esm/models/getfirewallconfigop.js.map +1 -1
  72. package/esm/models/getprojectdomainsop.d.ts +198 -36
  73. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  74. package/esm/models/getprojectdomainsop.js +193 -32
  75. package/esm/models/getprojectdomainsop.js.map +1 -1
  76. package/esm/models/getprojectenvop.d.ts +10 -16
  77. package/esm/models/getprojectenvop.d.ts.map +1 -1
  78. package/esm/models/getprojectenvop.js +10 -10
  79. package/esm/models/getprojectenvop.js.map +1 -1
  80. package/esm/models/getprojectsop.d.ts +175 -13
  81. package/esm/models/getprojectsop.d.ts.map +1 -1
  82. package/esm/models/getprojectsop.js +156 -6
  83. package/esm/models/getprojectsop.js.map +1 -1
  84. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  85. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  86. package/esm/models/putfirewallconfigop.js +2383 -0
  87. package/esm/models/putfirewallconfigop.js.map +1 -0
  88. package/esm/models/removeprojectenvop.d.ts +18 -27
  89. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  90. package/esm/models/removeprojectenvop.js +18 -18
  91. package/esm/models/removeprojectenvop.js.map +1 -1
  92. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  93. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  94. package/esm/models/updatefirewallconfigop.js +379 -357
  95. package/esm/models/updatefirewallconfigop.js.map +1 -1
  96. package/esm/models/updateprojectdatacacheop.d.ts +183 -21
  97. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  98. package/esm/models/updateprojectdatacacheop.js +172 -18
  99. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  100. package/esm/models/updateprojectop.d.ts +175 -13
  101. package/esm/models/updateprojectop.d.ts.map +1 -1
  102. package/esm/models/updateprojectop.js +157 -6
  103. package/esm/models/updateprojectop.js.map +1 -1
  104. package/esm/models/userevent.d.ts +46 -19
  105. package/esm/models/userevent.d.ts.map +1 -1
  106. package/esm/models/userevent.js +34 -10
  107. package/esm/models/userevent.js.map +1 -1
  108. package/esm/sdk/security.d.ts +8 -0
  109. package/esm/sdk/security.d.ts.map +1 -1
  110. package/esm/sdk/security.js +10 -0
  111. package/esm/sdk/security.js.map +1 -1
  112. package/jsr.json +1 -1
  113. package/package.json +3 -3
  114. package/src/__tests__/deployments.test.ts +16 -1
  115. package/src/__tests__/marketplace.test.ts +7 -2
  116. package/src/__tests__/projects.test.ts +4 -4
  117. package/src/__tests__/security.test.ts +165 -5
  118. package/src/funcs/projectsCreateProject.ts +2 -2
  119. package/src/funcs/securityPutFirewallConfig.ts +194 -0
  120. package/src/lib/config.ts +3 -3
  121. package/src/mcp-server/mcp-server.ts +1 -1
  122. package/src/mcp-server/server.ts +3 -1
  123. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  124. package/src/models/authtoken.ts +2 -0
  125. package/src/models/authuser.ts +52 -0
  126. package/src/models/canceldeploymentop.ts +591 -148
  127. package/src/models/createdeploymentop.ts +616 -165
  128. package/src/models/createprojectenvop.ts +24 -30
  129. package/src/models/createprojectop.ts +336 -15
  130. package/src/models/editprojectenvop.ts +8 -11
  131. package/src/models/filterprojectenvsop.ts +36 -45
  132. package/src/models/getdeploymentop.ts +1288 -353
  133. package/src/models/getfirewallconfigop.ts +555 -410
  134. package/src/models/getprojectdomainsop.ts +470 -63
  135. package/src/models/getprojectenvop.ts +20 -26
  136. package/src/models/getprojectsop.ts +338 -16
  137. package/src/models/putfirewallconfigop.ts +4932 -0
  138. package/src/models/removeprojectenvop.ts +36 -45
  139. package/src/models/updatefirewallconfigop.ts +820 -612
  140. package/src/models/updateprojectdatacacheop.ts +353 -34
  141. package/src/models/updateprojectop.ts +336 -15
  142. package/src/models/userevent.ts +54 -29
  143. package/src/sdk/security.ts +22 -0
  144. package/vercel-spec.json +1375 -286
@@ -392,9 +392,11 @@ export type Env = {
392
392
  * This is used to identiy variables that have been migrated from type secret to sensitive.
393
393
  */
394
394
  sunsetSecretId?: string | undefined;
395
+ decrypted?: boolean | undefined;
396
+ value: string;
397
+ vsmValue?: string | undefined;
395
398
  id?: string | undefined;
396
399
  key: string;
397
- value: string;
398
400
  configurationId?: string | null | undefined;
399
401
  createdAt?: number | undefined;
400
402
  updatedAt?: number | undefined;
@@ -425,13 +427,8 @@ export type Env = {
425
427
  * Similar to `contentHints`, but should not be exposed to the user.
426
428
  */
427
429
  internalContentHint?: InternalContentHint | null | undefined;
428
- /**
429
- * Whether `value` and `vsmValue` are decrypted.
430
- */
431
- decrypted?: boolean | undefined;
432
430
  comment?: string | undefined;
433
431
  customEnvironmentIds?: Array<string> | undefined;
434
- vsmValue?: string | undefined;
435
432
  };
436
433
 
437
434
  export type CustomEnvironments = {};
@@ -651,6 +648,39 @@ export type LatestDeployments = {
651
648
  withCache?: boolean | undefined;
652
649
  };
653
650
 
651
+ export const UpdateProjectDataCacheLinkProjectsResponseType = {
652
+ GithubCustomHost: "github-custom-host",
653
+ } as const;
654
+ export type UpdateProjectDataCacheLinkProjectsResponseType = ClosedEnum<
655
+ typeof UpdateProjectDataCacheLinkProjectsResponseType
656
+ >;
657
+
658
+ export type UpdateProjectDataCacheLinkProjectsDeployHooks = {
659
+ createdAt?: number | undefined;
660
+ id: string;
661
+ name: string;
662
+ ref: string;
663
+ url: string;
664
+ };
665
+
666
+ export type Link4 = {
667
+ org?: string | undefined;
668
+ /**
669
+ * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
670
+ */
671
+ repoOwnerId?: number | undefined;
672
+ repo?: string | undefined;
673
+ repoId?: number | undefined;
674
+ type?: UpdateProjectDataCacheLinkProjectsResponseType | undefined;
675
+ host?: string | undefined;
676
+ createdAt?: number | undefined;
677
+ deployHooks: Array<UpdateProjectDataCacheLinkProjectsDeployHooks>;
678
+ gitCredentialId?: string | undefined;
679
+ updatedAt?: number | undefined;
680
+ sourceless?: boolean | undefined;
681
+ productionBranch?: string | undefined;
682
+ };
683
+
654
684
  export const UpdateProjectDataCacheLinkProjectsType = {
655
685
  Bitbucket: "bitbucket",
656
686
  } as const;
@@ -745,7 +775,7 @@ export type Link1 = {
745
775
  productionBranch?: string | undefined;
746
776
  };
747
777
 
748
- export type Link = Link1 | Link3 | Link2;
778
+ export type Link = Link1 | Link3 | Link4 | Link2;
749
779
 
750
780
  export type UpdateProjectDataCacheMicrofrontends2 = {
751
781
  updatedAt: number;
@@ -817,6 +847,11 @@ export type FunctionDefaultMemoryType = ClosedEnum<
817
847
  typeof FunctionDefaultMemoryType
818
848
  >;
819
849
 
850
+ export const BuildMachineType = {
851
+ Enhanced: "enhanced",
852
+ } as const;
853
+ export type BuildMachineType = ClosedEnum<typeof BuildMachineType>;
854
+
820
855
  export type UpdateProjectDataCacheResourceConfig = {
821
856
  fluid?: boolean | undefined;
822
857
  functionDefaultRegions: Array<string>;
@@ -824,6 +859,7 @@ export type UpdateProjectDataCacheResourceConfig = {
824
859
  functionDefaultMemoryType?: FunctionDefaultMemoryType | undefined;
825
860
  functionZeroConfigFailover?: boolean | undefined;
826
861
  elasticConcurrencyEnabled?: boolean | undefined;
862
+ buildMachineType?: BuildMachineType | undefined;
827
863
  };
828
864
 
829
865
  /**
@@ -834,6 +870,14 @@ export type Stages = {
834
870
  * The percentage of traffic to serve to the new deployment
835
871
  */
836
872
  targetPercentage: number;
873
+ /**
874
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth starting percentage to ending percentage stage. So once we have fetched the document with the update time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving.
875
+ */
876
+ minutesToRelease?: number | undefined;
877
+ /**
878
+ * Whether or not this stage requires approval to proceed.
879
+ */
880
+ requireApproval?: boolean | undefined;
837
881
  };
838
882
 
839
883
  export type RollingRelease = {
@@ -860,6 +904,13 @@ export type UpdateProjectDataCacheFunctionDefaultMemoryType = ClosedEnum<
860
904
  typeof UpdateProjectDataCacheFunctionDefaultMemoryType
861
905
  >;
862
906
 
907
+ export const UpdateProjectDataCacheBuildMachineType = {
908
+ Enhanced: "enhanced",
909
+ } as const;
910
+ export type UpdateProjectDataCacheBuildMachineType = ClosedEnum<
911
+ typeof UpdateProjectDataCacheBuildMachineType
912
+ >;
913
+
863
914
  export type DefaultResourceConfig = {
864
915
  fluid?: boolean | undefined;
865
916
  functionDefaultRegions: Array<string>;
@@ -869,6 +920,7 @@ export type DefaultResourceConfig = {
869
920
  | undefined;
870
921
  functionZeroConfigFailover?: boolean | undefined;
871
922
  elasticConcurrencyEnabled?: boolean | undefined;
923
+ buildMachineType?: UpdateProjectDataCacheBuildMachineType | undefined;
872
924
  };
873
925
 
874
926
  export const UpdateProjectDataCacheDeploymentType = {
@@ -1127,6 +1179,7 @@ export type Permissions = {
1127
1179
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1128
1180
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1129
1181
  observabilityConfiguration?: Array<ACLAction> | undefined;
1182
+ observabilityNotebook?: Array<ACLAction> | undefined;
1130
1183
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1131
1184
  paymentMethod?: Array<ACLAction> | undefined;
1132
1185
  permissions?: Array<ACLAction> | undefined;
@@ -1483,14 +1536,16 @@ export type UpdateProjectDataCacheProjectsAction = ClosedEnum<
1483
1536
  typeof UpdateProjectDataCacheProjectsAction
1484
1537
  >;
1485
1538
 
1486
- export const Algo = {
1539
+ export const UpdateProjectDataCacheAlgo = {
1487
1540
  FixedWindow: "fixed_window",
1488
1541
  TokenBucket: "token_bucket",
1489
1542
  } as const;
1490
- export type Algo = ClosedEnum<typeof Algo>;
1543
+ export type UpdateProjectDataCacheAlgo = ClosedEnum<
1544
+ typeof UpdateProjectDataCacheAlgo
1545
+ >;
1491
1546
 
1492
1547
  export type Erl = {
1493
- algo: Algo;
1548
+ algo: UpdateProjectDataCacheAlgo;
1494
1549
  window: number;
1495
1550
  limit: number;
1496
1551
  keys: Array<string>;
@@ -1603,7 +1658,7 @@ export type UpdateProjectDataCacheResponseBody = {
1603
1658
  id: string;
1604
1659
  ipBuckets?: Array<IpBuckets> | undefined;
1605
1660
  latestDeployments?: Array<LatestDeployments> | undefined;
1606
- link?: Link1 | Link3 | Link2 | undefined;
1661
+ link?: Link1 | Link3 | Link4 | Link2 | undefined;
1607
1662
  microfrontends?:
1608
1663
  | UpdateProjectDataCacheMicrofrontends2
1609
1664
  | UpdateProjectDataCacheMicrofrontends1
@@ -3692,9 +3747,11 @@ export const Env$inboundSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z
3692
3747
  ]).optional(),
3693
3748
  type: UpdateProjectDataCacheProjectsResponse200Type$inboundSchema,
3694
3749
  sunsetSecretId: z.string().optional(),
3750
+ decrypted: z.boolean().optional(),
3751
+ value: z.string(),
3752
+ vsmValue: z.string().optional(),
3695
3753
  id: z.string().optional(),
3696
3754
  key: z.string(),
3697
- value: z.string(),
3698
3755
  configurationId: z.nullable(z.string()).optional(),
3699
3756
  createdAt: z.number().optional(),
3700
3757
  updatedAt: z.number().optional(),
@@ -3725,10 +3782,8 @@ export const Env$inboundSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z
3725
3782
  internalContentHint: z.nullable(
3726
3783
  z.lazy(() => InternalContentHint$inboundSchema),
3727
3784
  ).optional(),
3728
- decrypted: z.boolean().optional(),
3729
3785
  comment: z.string().optional(),
3730
3786
  customEnvironmentIds: z.array(z.string()).optional(),
3731
- vsmValue: z.string().optional(),
3732
3787
  });
3733
3788
 
3734
3789
  /** @internal */
@@ -3736,9 +3791,11 @@ export type Env$Outbound = {
3736
3791
  target?: Array<string> | string | undefined;
3737
3792
  type: string;
3738
3793
  sunsetSecretId?: string | undefined;
3794
+ decrypted?: boolean | undefined;
3795
+ value: string;
3796
+ vsmValue?: string | undefined;
3739
3797
  id?: string | undefined;
3740
3798
  key: string;
3741
- value: string;
3742
3799
  configurationId?: string | null | undefined;
3743
3800
  createdAt?: number | undefined;
3744
3801
  updatedAt?: number | undefined;
@@ -3766,10 +3823,8 @@ export type Env$Outbound = {
3766
3823
  | null
3767
3824
  | undefined;
3768
3825
  internalContentHint?: InternalContentHint$Outbound | null | undefined;
3769
- decrypted?: boolean | undefined;
3770
3826
  comment?: string | undefined;
3771
3827
  customEnvironmentIds?: Array<string> | undefined;
3772
- vsmValue?: string | undefined;
3773
3828
  };
3774
3829
 
3775
3830
  /** @internal */
@@ -3781,9 +3836,11 @@ export const Env$outboundSchema: z.ZodType<Env$Outbound, z.ZodTypeDef, Env> = z
3781
3836
  ]).optional(),
3782
3837
  type: UpdateProjectDataCacheProjectsResponse200Type$outboundSchema,
3783
3838
  sunsetSecretId: z.string().optional(),
3839
+ decrypted: z.boolean().optional(),
3840
+ value: z.string(),
3841
+ vsmValue: z.string().optional(),
3784
3842
  id: z.string().optional(),
3785
3843
  key: z.string(),
3786
- value: z.string(),
3787
3844
  configurationId: z.nullable(z.string()).optional(),
3788
3845
  createdAt: z.number().optional(),
3789
3846
  updatedAt: z.number().optional(),
@@ -3814,10 +3871,8 @@ export const Env$outboundSchema: z.ZodType<Env$Outbound, z.ZodTypeDef, Env> = z
3814
3871
  internalContentHint: z.nullable(
3815
3872
  z.lazy(() => InternalContentHint$outboundSchema),
3816
3873
  ).optional(),
3817
- decrypted: z.boolean().optional(),
3818
3874
  comment: z.string().optional(),
3819
3875
  customEnvironmentIds: z.array(z.string()).optional(),
3820
- vsmValue: z.string().optional(),
3821
3876
  });
3822
3877
 
3823
3878
  /**
@@ -4745,6 +4800,194 @@ export function latestDeploymentsFromJSON(
4745
4800
  );
4746
4801
  }
4747
4802
 
4803
+ /** @internal */
4804
+ export const UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema:
4805
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheLinkProjectsResponseType> = z
4806
+ .nativeEnum(UpdateProjectDataCacheLinkProjectsResponseType);
4807
+
4808
+ /** @internal */
4809
+ export const UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema:
4810
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheLinkProjectsResponseType> =
4811
+ UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema;
4812
+
4813
+ /**
4814
+ * @internal
4815
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4816
+ */
4817
+ export namespace UpdateProjectDataCacheLinkProjectsResponseType$ {
4818
+ /** @deprecated use `UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema` instead. */
4819
+ export const inboundSchema =
4820
+ UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema;
4821
+ /** @deprecated use `UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema` instead. */
4822
+ export const outboundSchema =
4823
+ UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema;
4824
+ }
4825
+
4826
+ /** @internal */
4827
+ export const UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema:
4828
+ z.ZodType<
4829
+ UpdateProjectDataCacheLinkProjectsDeployHooks,
4830
+ z.ZodTypeDef,
4831
+ unknown
4832
+ > = z.object({
4833
+ createdAt: z.number().optional(),
4834
+ id: z.string(),
4835
+ name: z.string(),
4836
+ ref: z.string(),
4837
+ url: z.string(),
4838
+ });
4839
+
4840
+ /** @internal */
4841
+ export type UpdateProjectDataCacheLinkProjectsDeployHooks$Outbound = {
4842
+ createdAt?: number | undefined;
4843
+ id: string;
4844
+ name: string;
4845
+ ref: string;
4846
+ url: string;
4847
+ };
4848
+
4849
+ /** @internal */
4850
+ export const UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema:
4851
+ z.ZodType<
4852
+ UpdateProjectDataCacheLinkProjectsDeployHooks$Outbound,
4853
+ z.ZodTypeDef,
4854
+ UpdateProjectDataCacheLinkProjectsDeployHooks
4855
+ > = z.object({
4856
+ createdAt: z.number().optional(),
4857
+ id: z.string(),
4858
+ name: z.string(),
4859
+ ref: z.string(),
4860
+ url: z.string(),
4861
+ });
4862
+
4863
+ /**
4864
+ * @internal
4865
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4866
+ */
4867
+ export namespace UpdateProjectDataCacheLinkProjectsDeployHooks$ {
4868
+ /** @deprecated use `UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema` instead. */
4869
+ export const inboundSchema =
4870
+ UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema;
4871
+ /** @deprecated use `UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema` instead. */
4872
+ export const outboundSchema =
4873
+ UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema;
4874
+ /** @deprecated use `UpdateProjectDataCacheLinkProjectsDeployHooks$Outbound` instead. */
4875
+ export type Outbound = UpdateProjectDataCacheLinkProjectsDeployHooks$Outbound;
4876
+ }
4877
+
4878
+ export function updateProjectDataCacheLinkProjectsDeployHooksToJSON(
4879
+ updateProjectDataCacheLinkProjectsDeployHooks:
4880
+ UpdateProjectDataCacheLinkProjectsDeployHooks,
4881
+ ): string {
4882
+ return JSON.stringify(
4883
+ UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema.parse(
4884
+ updateProjectDataCacheLinkProjectsDeployHooks,
4885
+ ),
4886
+ );
4887
+ }
4888
+
4889
+ export function updateProjectDataCacheLinkProjectsDeployHooksFromJSON(
4890
+ jsonString: string,
4891
+ ): SafeParseResult<
4892
+ UpdateProjectDataCacheLinkProjectsDeployHooks,
4893
+ SDKValidationError
4894
+ > {
4895
+ return safeParse(
4896
+ jsonString,
4897
+ (x) =>
4898
+ UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema.parse(
4899
+ JSON.parse(x),
4900
+ ),
4901
+ `Failed to parse 'UpdateProjectDataCacheLinkProjectsDeployHooks' from JSON`,
4902
+ );
4903
+ }
4904
+
4905
+ /** @internal */
4906
+ export const Link4$inboundSchema: z.ZodType<Link4, z.ZodTypeDef, unknown> = z
4907
+ .object({
4908
+ org: z.string().optional(),
4909
+ repoOwnerId: z.number().optional(),
4910
+ repo: z.string().optional(),
4911
+ repoId: z.number().optional(),
4912
+ type: UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema
4913
+ .optional(),
4914
+ host: z.string().optional(),
4915
+ createdAt: z.number().optional(),
4916
+ deployHooks: z.array(
4917
+ z.lazy(() => UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema),
4918
+ ),
4919
+ gitCredentialId: z.string().optional(),
4920
+ updatedAt: z.number().optional(),
4921
+ sourceless: z.boolean().optional(),
4922
+ productionBranch: z.string().optional(),
4923
+ });
4924
+
4925
+ /** @internal */
4926
+ export type Link4$Outbound = {
4927
+ org?: string | undefined;
4928
+ repoOwnerId?: number | undefined;
4929
+ repo?: string | undefined;
4930
+ repoId?: number | undefined;
4931
+ type?: string | undefined;
4932
+ host?: string | undefined;
4933
+ createdAt?: number | undefined;
4934
+ deployHooks: Array<UpdateProjectDataCacheLinkProjectsDeployHooks$Outbound>;
4935
+ gitCredentialId?: string | undefined;
4936
+ updatedAt?: number | undefined;
4937
+ sourceless?: boolean | undefined;
4938
+ productionBranch?: string | undefined;
4939
+ };
4940
+
4941
+ /** @internal */
4942
+ export const Link4$outboundSchema: z.ZodType<
4943
+ Link4$Outbound,
4944
+ z.ZodTypeDef,
4945
+ Link4
4946
+ > = z.object({
4947
+ org: z.string().optional(),
4948
+ repoOwnerId: z.number().optional(),
4949
+ repo: z.string().optional(),
4950
+ repoId: z.number().optional(),
4951
+ type: UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema
4952
+ .optional(),
4953
+ host: z.string().optional(),
4954
+ createdAt: z.number().optional(),
4955
+ deployHooks: z.array(
4956
+ z.lazy(() => UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema),
4957
+ ),
4958
+ gitCredentialId: z.string().optional(),
4959
+ updatedAt: z.number().optional(),
4960
+ sourceless: z.boolean().optional(),
4961
+ productionBranch: z.string().optional(),
4962
+ });
4963
+
4964
+ /**
4965
+ * @internal
4966
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4967
+ */
4968
+ export namespace Link4$ {
4969
+ /** @deprecated use `Link4$inboundSchema` instead. */
4970
+ export const inboundSchema = Link4$inboundSchema;
4971
+ /** @deprecated use `Link4$outboundSchema` instead. */
4972
+ export const outboundSchema = Link4$outboundSchema;
4973
+ /** @deprecated use `Link4$Outbound` instead. */
4974
+ export type Outbound = Link4$Outbound;
4975
+ }
4976
+
4977
+ export function link4ToJSON(link4: Link4): string {
4978
+ return JSON.stringify(Link4$outboundSchema.parse(link4));
4979
+ }
4980
+
4981
+ export function link4FromJSON(
4982
+ jsonString: string,
4983
+ ): SafeParseResult<Link4, SDKValidationError> {
4984
+ return safeParse(
4985
+ jsonString,
4986
+ (x) => Link4$inboundSchema.parse(JSON.parse(x)),
4987
+ `Failed to parse 'Link4' from JSON`,
4988
+ );
4989
+ }
4990
+
4748
4991
  /** @internal */
4749
4992
  export const UpdateProjectDataCacheLinkProjectsType$inboundSchema:
4750
4993
  z.ZodNativeEnum<typeof UpdateProjectDataCacheLinkProjectsType> = z.nativeEnum(
@@ -5255,17 +5498,23 @@ export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
5255
5498
  .union([
5256
5499
  z.lazy(() => Link1$inboundSchema),
5257
5500
  z.lazy(() => Link3$inboundSchema),
5501
+ z.lazy(() => Link4$inboundSchema),
5258
5502
  z.lazy(() => Link2$inboundSchema),
5259
5503
  ]);
5260
5504
 
5261
5505
  /** @internal */
5262
- export type Link$Outbound = Link1$Outbound | Link3$Outbound | Link2$Outbound;
5506
+ export type Link$Outbound =
5507
+ | Link1$Outbound
5508
+ | Link3$Outbound
5509
+ | Link4$Outbound
5510
+ | Link2$Outbound;
5263
5511
 
5264
5512
  /** @internal */
5265
5513
  export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
5266
5514
  z.union([
5267
5515
  z.lazy(() => Link1$outboundSchema),
5268
5516
  z.lazy(() => Link3$outboundSchema),
5517
+ z.lazy(() => Link4$outboundSchema),
5269
5518
  z.lazy(() => Link2$outboundSchema),
5270
5519
  ]);
5271
5520
 
@@ -5714,6 +5963,27 @@ export namespace FunctionDefaultMemoryType$ {
5714
5963
  export const outboundSchema = FunctionDefaultMemoryType$outboundSchema;
5715
5964
  }
5716
5965
 
5966
+ /** @internal */
5967
+ export const BuildMachineType$inboundSchema: z.ZodNativeEnum<
5968
+ typeof BuildMachineType
5969
+ > = z.nativeEnum(BuildMachineType);
5970
+
5971
+ /** @internal */
5972
+ export const BuildMachineType$outboundSchema: z.ZodNativeEnum<
5973
+ typeof BuildMachineType
5974
+ > = BuildMachineType$inboundSchema;
5975
+
5976
+ /**
5977
+ * @internal
5978
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5979
+ */
5980
+ export namespace BuildMachineType$ {
5981
+ /** @deprecated use `BuildMachineType$inboundSchema` instead. */
5982
+ export const inboundSchema = BuildMachineType$inboundSchema;
5983
+ /** @deprecated use `BuildMachineType$outboundSchema` instead. */
5984
+ export const outboundSchema = BuildMachineType$outboundSchema;
5985
+ }
5986
+
5717
5987
  /** @internal */
5718
5988
  export const UpdateProjectDataCacheResourceConfig$inboundSchema: z.ZodType<
5719
5989
  UpdateProjectDataCacheResourceConfig,
@@ -5726,6 +5996,7 @@ export const UpdateProjectDataCacheResourceConfig$inboundSchema: z.ZodType<
5726
5996
  functionDefaultMemoryType: FunctionDefaultMemoryType$inboundSchema.optional(),
5727
5997
  functionZeroConfigFailover: z.boolean().optional(),
5728
5998
  elasticConcurrencyEnabled: z.boolean().optional(),
5999
+ buildMachineType: BuildMachineType$inboundSchema.optional(),
5729
6000
  });
5730
6001
 
5731
6002
  /** @internal */
@@ -5736,6 +6007,7 @@ export type UpdateProjectDataCacheResourceConfig$Outbound = {
5736
6007
  functionDefaultMemoryType?: string | undefined;
5737
6008
  functionZeroConfigFailover?: boolean | undefined;
5738
6009
  elasticConcurrencyEnabled?: boolean | undefined;
6010
+ buildMachineType?: string | undefined;
5739
6011
  };
5740
6012
 
5741
6013
  /** @internal */
@@ -5751,6 +6023,7 @@ export const UpdateProjectDataCacheResourceConfig$outboundSchema: z.ZodType<
5751
6023
  .optional(),
5752
6024
  functionZeroConfigFailover: z.boolean().optional(),
5753
6025
  elasticConcurrencyEnabled: z.boolean().optional(),
6026
+ buildMachineType: BuildMachineType$outboundSchema.optional(),
5754
6027
  });
5755
6028
 
5756
6029
  /**
@@ -5793,11 +6066,15 @@ export function updateProjectDataCacheResourceConfigFromJSON(
5793
6066
  export const Stages$inboundSchema: z.ZodType<Stages, z.ZodTypeDef, unknown> = z
5794
6067
  .object({
5795
6068
  targetPercentage: z.number(),
6069
+ minutesToRelease: z.number().optional(),
6070
+ requireApproval: z.boolean().optional(),
5796
6071
  });
5797
6072
 
5798
6073
  /** @internal */
5799
6074
  export type Stages$Outbound = {
5800
6075
  targetPercentage: number;
6076
+ minutesToRelease?: number | undefined;
6077
+ requireApproval?: boolean | undefined;
5801
6078
  };
5802
6079
 
5803
6080
  /** @internal */
@@ -5807,6 +6084,8 @@ export const Stages$outboundSchema: z.ZodType<
5807
6084
  Stages
5808
6085
  > = z.object({
5809
6086
  targetPercentage: z.number(),
6087
+ minutesToRelease: z.number().optional(),
6088
+ requireApproval: z.boolean().optional(),
5810
6089
  });
5811
6090
 
5812
6091
  /**
@@ -5915,6 +6194,30 @@ export namespace UpdateProjectDataCacheFunctionDefaultMemoryType$ {
5915
6194
  UpdateProjectDataCacheFunctionDefaultMemoryType$outboundSchema;
5916
6195
  }
5917
6196
 
6197
+ /** @internal */
6198
+ export const UpdateProjectDataCacheBuildMachineType$inboundSchema:
6199
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheBuildMachineType> = z.nativeEnum(
6200
+ UpdateProjectDataCacheBuildMachineType,
6201
+ );
6202
+
6203
+ /** @internal */
6204
+ export const UpdateProjectDataCacheBuildMachineType$outboundSchema:
6205
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheBuildMachineType> =
6206
+ UpdateProjectDataCacheBuildMachineType$inboundSchema;
6207
+
6208
+ /**
6209
+ * @internal
6210
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6211
+ */
6212
+ export namespace UpdateProjectDataCacheBuildMachineType$ {
6213
+ /** @deprecated use `UpdateProjectDataCacheBuildMachineType$inboundSchema` instead. */
6214
+ export const inboundSchema =
6215
+ UpdateProjectDataCacheBuildMachineType$inboundSchema;
6216
+ /** @deprecated use `UpdateProjectDataCacheBuildMachineType$outboundSchema` instead. */
6217
+ export const outboundSchema =
6218
+ UpdateProjectDataCacheBuildMachineType$outboundSchema;
6219
+ }
6220
+
5918
6221
  /** @internal */
5919
6222
  export const DefaultResourceConfig$inboundSchema: z.ZodType<
5920
6223
  DefaultResourceConfig,
@@ -5928,6 +6231,8 @@ export const DefaultResourceConfig$inboundSchema: z.ZodType<
5928
6231
  UpdateProjectDataCacheFunctionDefaultMemoryType$inboundSchema.optional(),
5929
6232
  functionZeroConfigFailover: z.boolean().optional(),
5930
6233
  elasticConcurrencyEnabled: z.boolean().optional(),
6234
+ buildMachineType: UpdateProjectDataCacheBuildMachineType$inboundSchema
6235
+ .optional(),
5931
6236
  });
5932
6237
 
5933
6238
  /** @internal */
@@ -5938,6 +6243,7 @@ export type DefaultResourceConfig$Outbound = {
5938
6243
  functionDefaultMemoryType?: string | undefined;
5939
6244
  functionZeroConfigFailover?: boolean | undefined;
5940
6245
  elasticConcurrencyEnabled?: boolean | undefined;
6246
+ buildMachineType?: string | undefined;
5941
6247
  };
5942
6248
 
5943
6249
  /** @internal */
@@ -5953,6 +6259,8 @@ export const DefaultResourceConfig$outboundSchema: z.ZodType<
5953
6259
  UpdateProjectDataCacheFunctionDefaultMemoryType$outboundSchema.optional(),
5954
6260
  functionZeroConfigFailover: z.boolean().optional(),
5955
6261
  elasticConcurrencyEnabled: z.boolean().optional(),
6262
+ buildMachineType: UpdateProjectDataCacheBuildMachineType$outboundSchema
6263
+ .optional(),
5956
6264
  });
5957
6265
 
5958
6266
  /**
@@ -6892,6 +7200,7 @@ export const Permissions$inboundSchema: z.ZodType<
6892
7200
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
6893
7201
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
6894
7202
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7203
+ observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
6895
7204
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
6896
7205
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
6897
7206
  permissions: z.array(ACLAction$inboundSchema).optional(),
@@ -7097,6 +7406,7 @@ export type Permissions$Outbound = {
7097
7406
  notificationCustomerBudget?: Array<string> | undefined;
7098
7407
  notificationStatementOfReasons?: Array<string> | undefined;
7099
7408
  observabilityConfiguration?: Array<string> | undefined;
7409
+ observabilityNotebook?: Array<string> | undefined;
7100
7410
  openTelemetryEndpoint?: Array<string> | undefined;
7101
7411
  paymentMethod?: Array<string> | undefined;
7102
7412
  permissions?: Array<string> | undefined;
@@ -7303,6 +7613,7 @@ export const Permissions$outboundSchema: z.ZodType<
7303
7613
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
7304
7614
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
7305
7615
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7616
+ observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
7306
7617
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7307
7618
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7308
7619
  permissions: z.array(ACLAction$outboundSchema).optional(),
@@ -8815,29 +9126,30 @@ export namespace UpdateProjectDataCacheProjectsAction$ {
8815
9126
  }
8816
9127
 
8817
9128
  /** @internal */
8818
- export const Algo$inboundSchema: z.ZodNativeEnum<typeof Algo> = z.nativeEnum(
8819
- Algo,
8820
- );
9129
+ export const UpdateProjectDataCacheAlgo$inboundSchema: z.ZodNativeEnum<
9130
+ typeof UpdateProjectDataCacheAlgo
9131
+ > = z.nativeEnum(UpdateProjectDataCacheAlgo);
8821
9132
 
8822
9133
  /** @internal */
8823
- export const Algo$outboundSchema: z.ZodNativeEnum<typeof Algo> =
8824
- Algo$inboundSchema;
9134
+ export const UpdateProjectDataCacheAlgo$outboundSchema: z.ZodNativeEnum<
9135
+ typeof UpdateProjectDataCacheAlgo
9136
+ > = UpdateProjectDataCacheAlgo$inboundSchema;
8825
9137
 
8826
9138
  /**
8827
9139
  * @internal
8828
9140
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8829
9141
  */
8830
- export namespace Algo$ {
8831
- /** @deprecated use `Algo$inboundSchema` instead. */
8832
- export const inboundSchema = Algo$inboundSchema;
8833
- /** @deprecated use `Algo$outboundSchema` instead. */
8834
- export const outboundSchema = Algo$outboundSchema;
9142
+ export namespace UpdateProjectDataCacheAlgo$ {
9143
+ /** @deprecated use `UpdateProjectDataCacheAlgo$inboundSchema` instead. */
9144
+ export const inboundSchema = UpdateProjectDataCacheAlgo$inboundSchema;
9145
+ /** @deprecated use `UpdateProjectDataCacheAlgo$outboundSchema` instead. */
9146
+ export const outboundSchema = UpdateProjectDataCacheAlgo$outboundSchema;
8835
9147
  }
8836
9148
 
8837
9149
  /** @internal */
8838
9150
  export const Erl$inboundSchema: z.ZodType<Erl, z.ZodTypeDef, unknown> = z
8839
9151
  .object({
8840
- algo: Algo$inboundSchema,
9152
+ algo: UpdateProjectDataCacheAlgo$inboundSchema,
8841
9153
  window: z.number(),
8842
9154
  limit: z.number(),
8843
9155
  keys: z.array(z.string()),
@@ -8854,7 +9166,7 @@ export type Erl$Outbound = {
8854
9166
  /** @internal */
8855
9167
  export const Erl$outboundSchema: z.ZodType<Erl$Outbound, z.ZodTypeDef, Erl> = z
8856
9168
  .object({
8857
- algo: Algo$outboundSchema,
9169
+ algo: UpdateProjectDataCacheAlgo$outboundSchema,
8858
9170
  window: z.number(),
8859
9171
  limit: z.number(),
8860
9172
  keys: z.array(z.string()),
@@ -9355,6 +9667,7 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
9355
9667
  link: z.union([
9356
9668
  z.lazy(() => Link1$inboundSchema),
9357
9669
  z.lazy(() => Link3$inboundSchema),
9670
+ z.lazy(() => Link4$inboundSchema),
9358
9671
  z.lazy(() => Link2$inboundSchema),
9359
9672
  ]).optional(),
9360
9673
  microfrontends: z.union([
@@ -9455,7 +9768,12 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
9455
9768
  id: string;
9456
9769
  ipBuckets?: Array<IpBuckets$Outbound> | undefined;
9457
9770
  latestDeployments?: Array<LatestDeployments$Outbound> | undefined;
9458
- link?: Link1$Outbound | Link3$Outbound | Link2$Outbound | undefined;
9771
+ link?:
9772
+ | Link1$Outbound
9773
+ | Link3$Outbound
9774
+ | Link4$Outbound
9775
+ | Link2$Outbound
9776
+ | undefined;
9459
9777
  microfrontends?:
9460
9778
  | UpdateProjectDataCacheMicrofrontends2$Outbound
9461
9779
  | UpdateProjectDataCacheMicrofrontends1$Outbound
@@ -9555,6 +9873,7 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
9555
9873
  link: z.union([
9556
9874
  z.lazy(() => Link1$outboundSchema),
9557
9875
  z.lazy(() => Link3$outboundSchema),
9876
+ z.lazy(() => Link4$outboundSchema),
9558
9877
  z.lazy(() => Link2$outboundSchema),
9559
9878
  ]).optional(),
9560
9879
  microfrontends: z.union([