@vercel/sdk 1.6.3 → 1.6.5

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 +2 -0
  2. package/bin/mcp-server.js +3517 -1245
  3. package/bin/mcp-server.js.map +29 -26
  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__/environment.test.js +3 -0
  11. package/esm/__tests__/environment.test.js.map +1 -1
  12. package/esm/__tests__/marketplace.test.js +7 -2
  13. package/esm/__tests__/marketplace.test.js.map +1 -1
  14. package/esm/__tests__/projects.test.js +4 -4
  15. package/esm/__tests__/projects.test.js.map +1 -1
  16. package/esm/__tests__/security.test.js +174 -3
  17. package/esm/__tests__/security.test.js.map +1 -1
  18. package/esm/funcs/projectsCreateProject.js +2 -2
  19. package/esm/funcs/projectsCreateProject.js.map +1 -1
  20. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  21. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  22. package/esm/funcs/securityPutFirewallConfig.js +88 -0
  23. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  24. package/esm/lib/config.d.ts +3 -3
  25. package/esm/lib/config.js +3 -3
  26. package/esm/mcp-server/mcp-server.js +1 -1
  27. package/esm/mcp-server/server.d.ts.map +1 -1
  28. package/esm/mcp-server/server.js +3 -1
  29. package/esm/mcp-server/server.js.map +1 -1
  30. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  31. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  32. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  33. package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
  34. package/esm/models/authtoken.d.ts +6 -0
  35. package/esm/models/authtoken.d.ts.map +1 -1
  36. package/esm/models/authtoken.js +2 -0
  37. package/esm/models/authtoken.js.map +1 -1
  38. package/esm/models/authuser.d.ts +46 -0
  39. package/esm/models/authuser.d.ts.map +1 -1
  40. package/esm/models/authuser.js +28 -0
  41. package/esm/models/authuser.js.map +1 -1
  42. package/esm/models/canceldeploymentop.d.ts +274 -73
  43. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  44. package/esm/models/canceldeploymentop.js +270 -72
  45. package/esm/models/canceldeploymentop.js.map +1 -1
  46. package/esm/models/createdeploymentop.d.ts +274 -73
  47. package/esm/models/createdeploymentop.d.ts.map +1 -1
  48. package/esm/models/createdeploymentop.js +270 -72
  49. package/esm/models/createdeploymentop.js.map +1 -1
  50. package/esm/models/createprojectenvop.d.ts +12 -18
  51. package/esm/models/createprojectenvop.d.ts.map +1 -1
  52. package/esm/models/createprojectenvop.js +12 -12
  53. package/esm/models/createprojectenvop.js.map +1 -1
  54. package/esm/models/createprojectop.d.ts +175 -13
  55. package/esm/models/createprojectop.d.ts.map +1 -1
  56. package/esm/models/createprojectop.js +157 -6
  57. package/esm/models/createprojectop.js.map +1 -1
  58. package/esm/models/editprojectenvop.d.ts +4 -7
  59. package/esm/models/editprojectenvop.d.ts.map +1 -1
  60. package/esm/models/editprojectenvop.js +4 -4
  61. package/esm/models/editprojectenvop.js.map +1 -1
  62. package/esm/models/filterprojectenvsop.d.ts +18 -27
  63. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  64. package/esm/models/filterprojectenvsop.js +18 -18
  65. package/esm/models/filterprojectenvsop.js.map +1 -1
  66. package/esm/models/getdeploymentop.d.ts +574 -172
  67. package/esm/models/getdeploymentop.d.ts.map +1 -1
  68. package/esm/models/getdeploymentop.js +567 -171
  69. package/esm/models/getdeploymentop.js.map +1 -1
  70. package/esm/models/getfirewallconfigop.d.ts +214 -214
  71. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  72. package/esm/models/getfirewallconfigop.js +210 -231
  73. package/esm/models/getfirewallconfigop.js.map +1 -1
  74. package/esm/models/getprojectdomainsop.d.ts +198 -36
  75. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  76. package/esm/models/getprojectdomainsop.js +193 -32
  77. package/esm/models/getprojectdomainsop.js.map +1 -1
  78. package/esm/models/getprojectenvop.d.ts +10 -16
  79. package/esm/models/getprojectenvop.d.ts.map +1 -1
  80. package/esm/models/getprojectenvop.js +10 -10
  81. package/esm/models/getprojectenvop.js.map +1 -1
  82. package/esm/models/getprojectsop.d.ts +175 -13
  83. package/esm/models/getprojectsop.d.ts.map +1 -1
  84. package/esm/models/getprojectsop.js +156 -6
  85. package/esm/models/getprojectsop.js.map +1 -1
  86. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +31 -1
  87. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  88. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +27 -0
  89. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  90. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  91. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  92. package/esm/models/putfirewallconfigop.js +2383 -0
  93. package/esm/models/putfirewallconfigop.js.map +1 -0
  94. package/esm/models/removeprojectenvop.d.ts +18 -27
  95. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  96. package/esm/models/removeprojectenvop.js +18 -18
  97. package/esm/models/removeprojectenvop.js.map +1 -1
  98. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  99. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  100. package/esm/models/updatefirewallconfigop.js +379 -357
  101. package/esm/models/updatefirewallconfigop.js.map +1 -1
  102. package/esm/models/updateprojectdatacacheop.d.ts +183 -21
  103. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  104. package/esm/models/updateprojectdatacacheop.js +172 -18
  105. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  106. package/esm/models/updateprojectop.d.ts +175 -13
  107. package/esm/models/updateprojectop.d.ts.map +1 -1
  108. package/esm/models/updateprojectop.js +157 -6
  109. package/esm/models/updateprojectop.js.map +1 -1
  110. package/esm/models/userevent.d.ts +46 -19
  111. package/esm/models/userevent.d.ts.map +1 -1
  112. package/esm/models/userevent.js +34 -10
  113. package/esm/models/userevent.js.map +1 -1
  114. package/esm/sdk/security.d.ts +8 -0
  115. package/esm/sdk/security.d.ts.map +1 -1
  116. package/esm/sdk/security.js +10 -0
  117. package/esm/sdk/security.js.map +1 -1
  118. package/jsr.json +1 -1
  119. package/package.json +3 -3
  120. package/src/__tests__/deployments.test.ts +16 -1
  121. package/src/__tests__/environment.test.ts +3 -0
  122. package/src/__tests__/marketplace.test.ts +7 -2
  123. package/src/__tests__/projects.test.ts +4 -4
  124. package/src/__tests__/security.test.ts +176 -5
  125. package/src/funcs/projectsCreateProject.ts +2 -2
  126. package/src/funcs/securityPutFirewallConfig.ts +194 -0
  127. package/src/lib/config.ts +3 -3
  128. package/src/mcp-server/mcp-server.ts +1 -1
  129. package/src/mcp-server/server.ts +3 -1
  130. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  131. package/src/models/authtoken.ts +2 -0
  132. package/src/models/authuser.ts +52 -0
  133. package/src/models/canceldeploymentop.ts +591 -148
  134. package/src/models/createdeploymentop.ts +616 -165
  135. package/src/models/createprojectenvop.ts +24 -30
  136. package/src/models/createprojectop.ts +336 -15
  137. package/src/models/editprojectenvop.ts +8 -11
  138. package/src/models/filterprojectenvsop.ts +36 -45
  139. package/src/models/getdeploymentop.ts +1288 -353
  140. package/src/models/getfirewallconfigop.ts +555 -410
  141. package/src/models/getprojectdomainsop.ts +470 -63
  142. package/src/models/getprojectenvop.ts +20 -26
  143. package/src/models/getprojectsop.ts +338 -16
  144. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +62 -1
  145. package/src/models/putfirewallconfigop.ts +4932 -0
  146. package/src/models/removeprojectenvop.ts +36 -45
  147. package/src/models/updatefirewallconfigop.ts +820 -612
  148. package/src/models/updateprojectdatacacheop.ts +353 -34
  149. package/src/models/updateprojectop.ts +336 -15
  150. package/src/models/userevent.ts +54 -29
  151. package/src/sdk/security.ts +22 -0
  152. package/vercel-spec.json +1395 -291
@@ -705,9 +705,11 @@ export type UpdateProjectEnv = {
705
705
  * This is used to identiy variables that have been migrated from type secret to sensitive.
706
706
  */
707
707
  sunsetSecretId?: string | undefined;
708
+ decrypted?: boolean | undefined;
709
+ value: string;
710
+ vsmValue?: string | undefined;
708
711
  id?: string | undefined;
709
712
  key: string;
710
- value: string;
711
713
  configurationId?: string | null | undefined;
712
714
  createdAt?: number | undefined;
713
715
  updatedAt?: number | undefined;
@@ -738,13 +740,8 @@ export type UpdateProjectEnv = {
738
740
  * Similar to `contentHints`, but should not be exposed to the user.
739
741
  */
740
742
  internalContentHint?: UpdateProjectInternalContentHint | null | undefined;
741
- /**
742
- * Whether `value` and `vsmValue` are decrypted.
743
- */
744
- decrypted?: boolean | undefined;
745
743
  comment?: string | undefined;
746
744
  customEnvironmentIds?: Array<string> | undefined;
747
- vsmValue?: string | undefined;
748
745
  };
749
746
 
750
747
  export type UpdateProjectCustomEnvironments = {};
@@ -962,6 +959,39 @@ export type UpdateProjectLatestDeployments = {
962
959
  withCache?: boolean | undefined;
963
960
  };
964
961
 
962
+ export const UpdateProjectLinkProjectsResponse200Type = {
963
+ GithubCustomHost: "github-custom-host",
964
+ } as const;
965
+ export type UpdateProjectLinkProjectsResponse200Type = ClosedEnum<
966
+ typeof UpdateProjectLinkProjectsResponse200Type
967
+ >;
968
+
969
+ export type UpdateProjectLinkProjectsResponse200DeployHooks = {
970
+ createdAt?: number | undefined;
971
+ id: string;
972
+ name: string;
973
+ ref: string;
974
+ url: string;
975
+ };
976
+
977
+ export type UpdateProjectLink4 = {
978
+ org?: string | undefined;
979
+ /**
980
+ * 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.
981
+ */
982
+ repoOwnerId?: number | undefined;
983
+ repo?: string | undefined;
984
+ repoId?: number | undefined;
985
+ type?: UpdateProjectLinkProjectsResponse200Type | undefined;
986
+ host?: string | undefined;
987
+ createdAt?: number | undefined;
988
+ deployHooks: Array<UpdateProjectLinkProjectsResponse200DeployHooks>;
989
+ gitCredentialId?: string | undefined;
990
+ updatedAt?: number | undefined;
991
+ sourceless?: boolean | undefined;
992
+ productionBranch?: string | undefined;
993
+ };
994
+
965
995
  export const UpdateProjectLinkProjectsResponseType = {
966
996
  Bitbucket: "bitbucket",
967
997
  } as const;
@@ -1059,6 +1089,7 @@ export type UpdateProjectLink1 = {
1059
1089
  export type UpdateProjectLink =
1060
1090
  | UpdateProjectLink1
1061
1091
  | UpdateProjectLink3
1092
+ | UpdateProjectLink4
1062
1093
  | UpdateProjectLink2;
1063
1094
 
1064
1095
  export type UpdateProjectMicrofrontends2 = {
@@ -1131,6 +1162,13 @@ export type UpdateProjectFunctionDefaultMemoryType = ClosedEnum<
1131
1162
  typeof UpdateProjectFunctionDefaultMemoryType
1132
1163
  >;
1133
1164
 
1165
+ export const UpdateProjectBuildMachineType = {
1166
+ Enhanced: "enhanced",
1167
+ } as const;
1168
+ export type UpdateProjectBuildMachineType = ClosedEnum<
1169
+ typeof UpdateProjectBuildMachineType
1170
+ >;
1171
+
1134
1172
  export type UpdateProjectResourceConfig = {
1135
1173
  fluid?: boolean | undefined;
1136
1174
  functionDefaultRegions: Array<string>;
@@ -1140,6 +1178,7 @@ export type UpdateProjectResourceConfig = {
1140
1178
  | undefined;
1141
1179
  functionZeroConfigFailover?: boolean | undefined;
1142
1180
  elasticConcurrencyEnabled?: boolean | undefined;
1181
+ buildMachineType?: UpdateProjectBuildMachineType | undefined;
1143
1182
  };
1144
1183
 
1145
1184
  /**
@@ -1150,6 +1189,14 @@ export type UpdateProjectStages = {
1150
1189
  * The percentage of traffic to serve to the new deployment
1151
1190
  */
1152
1191
  targetPercentage: number;
1192
+ /**
1193
+ * 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.
1194
+ */
1195
+ minutesToRelease?: number | undefined;
1196
+ /**
1197
+ * Whether or not this stage requires approval to proceed.
1198
+ */
1199
+ requireApproval?: boolean | undefined;
1153
1200
  };
1154
1201
 
1155
1202
  export type UpdateProjectRollingRelease = {
@@ -1176,6 +1223,13 @@ export type UpdateProjectProjectsFunctionDefaultMemoryType = ClosedEnum<
1176
1223
  typeof UpdateProjectProjectsFunctionDefaultMemoryType
1177
1224
  >;
1178
1225
 
1226
+ export const UpdateProjectProjectsBuildMachineType = {
1227
+ Enhanced: "enhanced",
1228
+ } as const;
1229
+ export type UpdateProjectProjectsBuildMachineType = ClosedEnum<
1230
+ typeof UpdateProjectProjectsBuildMachineType
1231
+ >;
1232
+
1179
1233
  export type UpdateProjectDefaultResourceConfig = {
1180
1234
  fluid?: boolean | undefined;
1181
1235
  functionDefaultRegions: Array<string>;
@@ -1185,6 +1239,7 @@ export type UpdateProjectDefaultResourceConfig = {
1185
1239
  | undefined;
1186
1240
  functionZeroConfigFailover?: boolean | undefined;
1187
1241
  elasticConcurrencyEnabled?: boolean | undefined;
1242
+ buildMachineType?: UpdateProjectProjectsBuildMachineType | undefined;
1188
1243
  };
1189
1244
 
1190
1245
  export const UpdateProjectProjectsResponseDeploymentType = {
@@ -1440,6 +1495,7 @@ export type UpdateProjectPermissions = {
1440
1495
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1441
1496
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1442
1497
  observabilityConfiguration?: Array<ACLAction> | undefined;
1498
+ observabilityNotebook?: Array<ACLAction> | undefined;
1443
1499
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1444
1500
  paymentMethod?: Array<ACLAction> | undefined;
1445
1501
  permissions?: Array<ACLAction> | undefined;
@@ -1916,6 +1972,7 @@ export type UpdateProjectResponseBody = {
1916
1972
  link?:
1917
1973
  | UpdateProjectLink1
1918
1974
  | UpdateProjectLink3
1975
+ | UpdateProjectLink4
1919
1976
  | UpdateProjectLink2
1920
1977
  | undefined;
1921
1978
  microfrontends?:
@@ -4726,9 +4783,11 @@ export const UpdateProjectEnv$inboundSchema: z.ZodType<
4726
4783
  .optional(),
4727
4784
  type: UpdateProjectType$inboundSchema,
4728
4785
  sunsetSecretId: z.string().optional(),
4786
+ decrypted: z.boolean().optional(),
4787
+ value: z.string(),
4788
+ vsmValue: z.string().optional(),
4729
4789
  id: z.string().optional(),
4730
4790
  key: z.string(),
4731
- value: z.string(),
4732
4791
  configurationId: z.nullable(z.string()).optional(),
4733
4792
  createdAt: z.number().optional(),
4734
4793
  updatedAt: z.number().optional(),
@@ -4759,10 +4818,8 @@ export const UpdateProjectEnv$inboundSchema: z.ZodType<
4759
4818
  internalContentHint: z.nullable(
4760
4819
  z.lazy(() => UpdateProjectInternalContentHint$inboundSchema),
4761
4820
  ).optional(),
4762
- decrypted: z.boolean().optional(),
4763
4821
  comment: z.string().optional(),
4764
4822
  customEnvironmentIds: z.array(z.string()).optional(),
4765
- vsmValue: z.string().optional(),
4766
4823
  });
4767
4824
 
4768
4825
  /** @internal */
@@ -4770,9 +4827,11 @@ export type UpdateProjectEnv$Outbound = {
4770
4827
  target?: Array<string> | string | undefined;
4771
4828
  type: string;
4772
4829
  sunsetSecretId?: string | undefined;
4830
+ decrypted?: boolean | undefined;
4831
+ value: string;
4832
+ vsmValue?: string | undefined;
4773
4833
  id?: string | undefined;
4774
4834
  key: string;
4775
- value: string;
4776
4835
  configurationId?: string | null | undefined;
4777
4836
  createdAt?: number | undefined;
4778
4837
  updatedAt?: number | undefined;
@@ -4803,10 +4862,8 @@ export type UpdateProjectEnv$Outbound = {
4803
4862
  | UpdateProjectInternalContentHint$Outbound
4804
4863
  | null
4805
4864
  | undefined;
4806
- decrypted?: boolean | undefined;
4807
4865
  comment?: string | undefined;
4808
4866
  customEnvironmentIds?: Array<string> | undefined;
4809
- vsmValue?: string | undefined;
4810
4867
  };
4811
4868
 
4812
4869
  /** @internal */
@@ -4819,9 +4876,11 @@ export const UpdateProjectEnv$outboundSchema: z.ZodType<
4819
4876
  .optional(),
4820
4877
  type: UpdateProjectType$outboundSchema,
4821
4878
  sunsetSecretId: z.string().optional(),
4879
+ decrypted: z.boolean().optional(),
4880
+ value: z.string(),
4881
+ vsmValue: z.string().optional(),
4822
4882
  id: z.string().optional(),
4823
4883
  key: z.string(),
4824
- value: z.string(),
4825
4884
  configurationId: z.nullable(z.string()).optional(),
4826
4885
  createdAt: z.number().optional(),
4827
4886
  updatedAt: z.number().optional(),
@@ -4852,10 +4911,8 @@ export const UpdateProjectEnv$outboundSchema: z.ZodType<
4852
4911
  internalContentHint: z.nullable(
4853
4912
  z.lazy(() => UpdateProjectInternalContentHint$outboundSchema),
4854
4913
  ).optional(),
4855
- decrypted: z.boolean().optional(),
4856
4914
  comment: z.string().optional(),
4857
4915
  customEnvironmentIds: z.array(z.string()).optional(),
4858
- vsmValue: z.string().optional(),
4859
4916
  });
4860
4917
 
4861
4918
  /**
@@ -5718,6 +5775,202 @@ export function updateProjectLatestDeploymentsFromJSON(
5718
5775
  );
5719
5776
  }
5720
5777
 
5778
+ /** @internal */
5779
+ export const UpdateProjectLinkProjectsResponse200Type$inboundSchema:
5780
+ z.ZodNativeEnum<typeof UpdateProjectLinkProjectsResponse200Type> = z
5781
+ .nativeEnum(UpdateProjectLinkProjectsResponse200Type);
5782
+
5783
+ /** @internal */
5784
+ export const UpdateProjectLinkProjectsResponse200Type$outboundSchema:
5785
+ z.ZodNativeEnum<typeof UpdateProjectLinkProjectsResponse200Type> =
5786
+ UpdateProjectLinkProjectsResponse200Type$inboundSchema;
5787
+
5788
+ /**
5789
+ * @internal
5790
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5791
+ */
5792
+ export namespace UpdateProjectLinkProjectsResponse200Type$ {
5793
+ /** @deprecated use `UpdateProjectLinkProjectsResponse200Type$inboundSchema` instead. */
5794
+ export const inboundSchema =
5795
+ UpdateProjectLinkProjectsResponse200Type$inboundSchema;
5796
+ /** @deprecated use `UpdateProjectLinkProjectsResponse200Type$outboundSchema` instead. */
5797
+ export const outboundSchema =
5798
+ UpdateProjectLinkProjectsResponse200Type$outboundSchema;
5799
+ }
5800
+
5801
+ /** @internal */
5802
+ export const UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema:
5803
+ z.ZodType<
5804
+ UpdateProjectLinkProjectsResponse200DeployHooks,
5805
+ z.ZodTypeDef,
5806
+ unknown
5807
+ > = z.object({
5808
+ createdAt: z.number().optional(),
5809
+ id: z.string(),
5810
+ name: z.string(),
5811
+ ref: z.string(),
5812
+ url: z.string(),
5813
+ });
5814
+
5815
+ /** @internal */
5816
+ export type UpdateProjectLinkProjectsResponse200DeployHooks$Outbound = {
5817
+ createdAt?: number | undefined;
5818
+ id: string;
5819
+ name: string;
5820
+ ref: string;
5821
+ url: string;
5822
+ };
5823
+
5824
+ /** @internal */
5825
+ export const UpdateProjectLinkProjectsResponse200DeployHooks$outboundSchema:
5826
+ z.ZodType<
5827
+ UpdateProjectLinkProjectsResponse200DeployHooks$Outbound,
5828
+ z.ZodTypeDef,
5829
+ UpdateProjectLinkProjectsResponse200DeployHooks
5830
+ > = z.object({
5831
+ createdAt: z.number().optional(),
5832
+ id: z.string(),
5833
+ name: z.string(),
5834
+ ref: z.string(),
5835
+ url: z.string(),
5836
+ });
5837
+
5838
+ /**
5839
+ * @internal
5840
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5841
+ */
5842
+ export namespace UpdateProjectLinkProjectsResponse200DeployHooks$ {
5843
+ /** @deprecated use `UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema` instead. */
5844
+ export const inboundSchema =
5845
+ UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema;
5846
+ /** @deprecated use `UpdateProjectLinkProjectsResponse200DeployHooks$outboundSchema` instead. */
5847
+ export const outboundSchema =
5848
+ UpdateProjectLinkProjectsResponse200DeployHooks$outboundSchema;
5849
+ /** @deprecated use `UpdateProjectLinkProjectsResponse200DeployHooks$Outbound` instead. */
5850
+ export type Outbound =
5851
+ UpdateProjectLinkProjectsResponse200DeployHooks$Outbound;
5852
+ }
5853
+
5854
+ export function updateProjectLinkProjectsResponse200DeployHooksToJSON(
5855
+ updateProjectLinkProjectsResponse200DeployHooks:
5856
+ UpdateProjectLinkProjectsResponse200DeployHooks,
5857
+ ): string {
5858
+ return JSON.stringify(
5859
+ UpdateProjectLinkProjectsResponse200DeployHooks$outboundSchema.parse(
5860
+ updateProjectLinkProjectsResponse200DeployHooks,
5861
+ ),
5862
+ );
5863
+ }
5864
+
5865
+ export function updateProjectLinkProjectsResponse200DeployHooksFromJSON(
5866
+ jsonString: string,
5867
+ ): SafeParseResult<
5868
+ UpdateProjectLinkProjectsResponse200DeployHooks,
5869
+ SDKValidationError
5870
+ > {
5871
+ return safeParse(
5872
+ jsonString,
5873
+ (x) =>
5874
+ UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema.parse(
5875
+ JSON.parse(x),
5876
+ ),
5877
+ `Failed to parse 'UpdateProjectLinkProjectsResponse200DeployHooks' from JSON`,
5878
+ );
5879
+ }
5880
+
5881
+ /** @internal */
5882
+ export const UpdateProjectLink4$inboundSchema: z.ZodType<
5883
+ UpdateProjectLink4,
5884
+ z.ZodTypeDef,
5885
+ unknown
5886
+ > = z.object({
5887
+ org: z.string().optional(),
5888
+ repoOwnerId: z.number().optional(),
5889
+ repo: z.string().optional(),
5890
+ repoId: z.number().optional(),
5891
+ type: UpdateProjectLinkProjectsResponse200Type$inboundSchema.optional(),
5892
+ host: z.string().optional(),
5893
+ createdAt: z.number().optional(),
5894
+ deployHooks: z.array(
5895
+ z.lazy(() => UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema),
5896
+ ),
5897
+ gitCredentialId: z.string().optional(),
5898
+ updatedAt: z.number().optional(),
5899
+ sourceless: z.boolean().optional(),
5900
+ productionBranch: z.string().optional(),
5901
+ });
5902
+
5903
+ /** @internal */
5904
+ export type UpdateProjectLink4$Outbound = {
5905
+ org?: string | undefined;
5906
+ repoOwnerId?: number | undefined;
5907
+ repo?: string | undefined;
5908
+ repoId?: number | undefined;
5909
+ type?: string | undefined;
5910
+ host?: string | undefined;
5911
+ createdAt?: number | undefined;
5912
+ deployHooks: Array<UpdateProjectLinkProjectsResponse200DeployHooks$Outbound>;
5913
+ gitCredentialId?: string | undefined;
5914
+ updatedAt?: number | undefined;
5915
+ sourceless?: boolean | undefined;
5916
+ productionBranch?: string | undefined;
5917
+ };
5918
+
5919
+ /** @internal */
5920
+ export const UpdateProjectLink4$outboundSchema: z.ZodType<
5921
+ UpdateProjectLink4$Outbound,
5922
+ z.ZodTypeDef,
5923
+ UpdateProjectLink4
5924
+ > = z.object({
5925
+ org: z.string().optional(),
5926
+ repoOwnerId: z.number().optional(),
5927
+ repo: z.string().optional(),
5928
+ repoId: z.number().optional(),
5929
+ type: UpdateProjectLinkProjectsResponse200Type$outboundSchema.optional(),
5930
+ host: z.string().optional(),
5931
+ createdAt: z.number().optional(),
5932
+ deployHooks: z.array(
5933
+ z.lazy(() =>
5934
+ UpdateProjectLinkProjectsResponse200DeployHooks$outboundSchema
5935
+ ),
5936
+ ),
5937
+ gitCredentialId: z.string().optional(),
5938
+ updatedAt: z.number().optional(),
5939
+ sourceless: z.boolean().optional(),
5940
+ productionBranch: z.string().optional(),
5941
+ });
5942
+
5943
+ /**
5944
+ * @internal
5945
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5946
+ */
5947
+ export namespace UpdateProjectLink4$ {
5948
+ /** @deprecated use `UpdateProjectLink4$inboundSchema` instead. */
5949
+ export const inboundSchema = UpdateProjectLink4$inboundSchema;
5950
+ /** @deprecated use `UpdateProjectLink4$outboundSchema` instead. */
5951
+ export const outboundSchema = UpdateProjectLink4$outboundSchema;
5952
+ /** @deprecated use `UpdateProjectLink4$Outbound` instead. */
5953
+ export type Outbound = UpdateProjectLink4$Outbound;
5954
+ }
5955
+
5956
+ export function updateProjectLink4ToJSON(
5957
+ updateProjectLink4: UpdateProjectLink4,
5958
+ ): string {
5959
+ return JSON.stringify(
5960
+ UpdateProjectLink4$outboundSchema.parse(updateProjectLink4),
5961
+ );
5962
+ }
5963
+
5964
+ export function updateProjectLink4FromJSON(
5965
+ jsonString: string,
5966
+ ): SafeParseResult<UpdateProjectLink4, SDKValidationError> {
5967
+ return safeParse(
5968
+ jsonString,
5969
+ (x) => UpdateProjectLink4$inboundSchema.parse(JSON.parse(x)),
5970
+ `Failed to parse 'UpdateProjectLink4' from JSON`,
5971
+ );
5972
+ }
5973
+
5721
5974
  /** @internal */
5722
5975
  export const UpdateProjectLinkProjectsResponseType$inboundSchema:
5723
5976
  z.ZodNativeEnum<typeof UpdateProjectLinkProjectsResponseType> = z.nativeEnum(
@@ -6283,6 +6536,7 @@ export const UpdateProjectLink$inboundSchema: z.ZodType<
6283
6536
  > = z.union([
6284
6537
  z.lazy(() => UpdateProjectLink1$inboundSchema),
6285
6538
  z.lazy(() => UpdateProjectLink3$inboundSchema),
6539
+ z.lazy(() => UpdateProjectLink4$inboundSchema),
6286
6540
  z.lazy(() => UpdateProjectLink2$inboundSchema),
6287
6541
  ]);
6288
6542
 
@@ -6290,6 +6544,7 @@ export const UpdateProjectLink$inboundSchema: z.ZodType<
6290
6544
  export type UpdateProjectLink$Outbound =
6291
6545
  | UpdateProjectLink1$Outbound
6292
6546
  | UpdateProjectLink3$Outbound
6547
+ | UpdateProjectLink4$Outbound
6293
6548
  | UpdateProjectLink2$Outbound;
6294
6549
 
6295
6550
  /** @internal */
@@ -6300,6 +6555,7 @@ export const UpdateProjectLink$outboundSchema: z.ZodType<
6300
6555
  > = z.union([
6301
6556
  z.lazy(() => UpdateProjectLink1$outboundSchema),
6302
6557
  z.lazy(() => UpdateProjectLink3$outboundSchema),
6558
+ z.lazy(() => UpdateProjectLink4$outboundSchema),
6303
6559
  z.lazy(() => UpdateProjectLink2$outboundSchema),
6304
6560
  ]);
6305
6561
 
@@ -6742,6 +6998,27 @@ export namespace UpdateProjectFunctionDefaultMemoryType$ {
6742
6998
  UpdateProjectFunctionDefaultMemoryType$outboundSchema;
6743
6999
  }
6744
7000
 
7001
+ /** @internal */
7002
+ export const UpdateProjectBuildMachineType$inboundSchema: z.ZodNativeEnum<
7003
+ typeof UpdateProjectBuildMachineType
7004
+ > = z.nativeEnum(UpdateProjectBuildMachineType);
7005
+
7006
+ /** @internal */
7007
+ export const UpdateProjectBuildMachineType$outboundSchema: z.ZodNativeEnum<
7008
+ typeof UpdateProjectBuildMachineType
7009
+ > = UpdateProjectBuildMachineType$inboundSchema;
7010
+
7011
+ /**
7012
+ * @internal
7013
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7014
+ */
7015
+ export namespace UpdateProjectBuildMachineType$ {
7016
+ /** @deprecated use `UpdateProjectBuildMachineType$inboundSchema` instead. */
7017
+ export const inboundSchema = UpdateProjectBuildMachineType$inboundSchema;
7018
+ /** @deprecated use `UpdateProjectBuildMachineType$outboundSchema` instead. */
7019
+ export const outboundSchema = UpdateProjectBuildMachineType$outboundSchema;
7020
+ }
7021
+
6745
7022
  /** @internal */
6746
7023
  export const UpdateProjectResourceConfig$inboundSchema: z.ZodType<
6747
7024
  UpdateProjectResourceConfig,
@@ -6755,6 +7032,7 @@ export const UpdateProjectResourceConfig$inboundSchema: z.ZodType<
6755
7032
  UpdateProjectFunctionDefaultMemoryType$inboundSchema.optional(),
6756
7033
  functionZeroConfigFailover: z.boolean().optional(),
6757
7034
  elasticConcurrencyEnabled: z.boolean().optional(),
7035
+ buildMachineType: UpdateProjectBuildMachineType$inboundSchema.optional(),
6758
7036
  });
6759
7037
 
6760
7038
  /** @internal */
@@ -6765,6 +7043,7 @@ export type UpdateProjectResourceConfig$Outbound = {
6765
7043
  functionDefaultMemoryType?: string | undefined;
6766
7044
  functionZeroConfigFailover?: boolean | undefined;
6767
7045
  elasticConcurrencyEnabled?: boolean | undefined;
7046
+ buildMachineType?: string | undefined;
6768
7047
  };
6769
7048
 
6770
7049
  /** @internal */
@@ -6780,6 +7059,7 @@ export const UpdateProjectResourceConfig$outboundSchema: z.ZodType<
6780
7059
  UpdateProjectFunctionDefaultMemoryType$outboundSchema.optional(),
6781
7060
  functionZeroConfigFailover: z.boolean().optional(),
6782
7061
  elasticConcurrencyEnabled: z.boolean().optional(),
7062
+ buildMachineType: UpdateProjectBuildMachineType$outboundSchema.optional(),
6783
7063
  });
6784
7064
 
6785
7065
  /**
@@ -6822,11 +7102,15 @@ export const UpdateProjectStages$inboundSchema: z.ZodType<
6822
7102
  unknown
6823
7103
  > = z.object({
6824
7104
  targetPercentage: z.number(),
7105
+ minutesToRelease: z.number().optional(),
7106
+ requireApproval: z.boolean().optional(),
6825
7107
  });
6826
7108
 
6827
7109
  /** @internal */
6828
7110
  export type UpdateProjectStages$Outbound = {
6829
7111
  targetPercentage: number;
7112
+ minutesToRelease?: number | undefined;
7113
+ requireApproval?: boolean | undefined;
6830
7114
  };
6831
7115
 
6832
7116
  /** @internal */
@@ -6836,6 +7120,8 @@ export const UpdateProjectStages$outboundSchema: z.ZodType<
6836
7120
  UpdateProjectStages
6837
7121
  > = z.object({
6838
7122
  targetPercentage: z.number(),
7123
+ minutesToRelease: z.number().optional(),
7124
+ requireApproval: z.boolean().optional(),
6839
7125
  });
6840
7126
 
6841
7127
  /**
@@ -6956,6 +7242,30 @@ export namespace UpdateProjectProjectsFunctionDefaultMemoryType$ {
6956
7242
  UpdateProjectProjectsFunctionDefaultMemoryType$outboundSchema;
6957
7243
  }
6958
7244
 
7245
+ /** @internal */
7246
+ export const UpdateProjectProjectsBuildMachineType$inboundSchema:
7247
+ z.ZodNativeEnum<typeof UpdateProjectProjectsBuildMachineType> = z.nativeEnum(
7248
+ UpdateProjectProjectsBuildMachineType,
7249
+ );
7250
+
7251
+ /** @internal */
7252
+ export const UpdateProjectProjectsBuildMachineType$outboundSchema:
7253
+ z.ZodNativeEnum<typeof UpdateProjectProjectsBuildMachineType> =
7254
+ UpdateProjectProjectsBuildMachineType$inboundSchema;
7255
+
7256
+ /**
7257
+ * @internal
7258
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7259
+ */
7260
+ export namespace UpdateProjectProjectsBuildMachineType$ {
7261
+ /** @deprecated use `UpdateProjectProjectsBuildMachineType$inboundSchema` instead. */
7262
+ export const inboundSchema =
7263
+ UpdateProjectProjectsBuildMachineType$inboundSchema;
7264
+ /** @deprecated use `UpdateProjectProjectsBuildMachineType$outboundSchema` instead. */
7265
+ export const outboundSchema =
7266
+ UpdateProjectProjectsBuildMachineType$outboundSchema;
7267
+ }
7268
+
6959
7269
  /** @internal */
6960
7270
  export const UpdateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
6961
7271
  UpdateProjectDefaultResourceConfig,
@@ -6969,6 +7279,8 @@ export const UpdateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
6969
7279
  UpdateProjectProjectsFunctionDefaultMemoryType$inboundSchema.optional(),
6970
7280
  functionZeroConfigFailover: z.boolean().optional(),
6971
7281
  elasticConcurrencyEnabled: z.boolean().optional(),
7282
+ buildMachineType: UpdateProjectProjectsBuildMachineType$inboundSchema
7283
+ .optional(),
6972
7284
  });
6973
7285
 
6974
7286
  /** @internal */
@@ -6979,6 +7291,7 @@ export type UpdateProjectDefaultResourceConfig$Outbound = {
6979
7291
  functionDefaultMemoryType?: string | undefined;
6980
7292
  functionZeroConfigFailover?: boolean | undefined;
6981
7293
  elasticConcurrencyEnabled?: boolean | undefined;
7294
+ buildMachineType?: string | undefined;
6982
7295
  };
6983
7296
 
6984
7297
  /** @internal */
@@ -6994,6 +7307,8 @@ export const UpdateProjectDefaultResourceConfig$outboundSchema: z.ZodType<
6994
7307
  UpdateProjectProjectsFunctionDefaultMemoryType$outboundSchema.optional(),
6995
7308
  functionZeroConfigFailover: z.boolean().optional(),
6996
7309
  elasticConcurrencyEnabled: z.boolean().optional(),
7310
+ buildMachineType: UpdateProjectProjectsBuildMachineType$outboundSchema
7311
+ .optional(),
6997
7312
  });
6998
7313
 
6999
7314
  /**
@@ -7927,6 +8242,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
7927
8242
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
7928
8243
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
7929
8244
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
8245
+ observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7930
8246
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7931
8247
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7932
8248
  permissions: z.array(ACLAction$inboundSchema).optional(),
@@ -8132,6 +8448,7 @@ export type UpdateProjectPermissions$Outbound = {
8132
8448
  notificationCustomerBudget?: Array<string> | undefined;
8133
8449
  notificationStatementOfReasons?: Array<string> | undefined;
8134
8450
  observabilityConfiguration?: Array<string> | undefined;
8451
+ observabilityNotebook?: Array<string> | undefined;
8135
8452
  openTelemetryEndpoint?: Array<string> | undefined;
8136
8453
  paymentMethod?: Array<string> | undefined;
8137
8454
  permissions?: Array<string> | undefined;
@@ -8338,6 +8655,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
8338
8655
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
8339
8656
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
8340
8657
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
8658
+ observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
8341
8659
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
8342
8660
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
8343
8661
  permissions: z.array(ACLAction$outboundSchema).optional(),
@@ -10434,6 +10752,7 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType<
10434
10752
  link: z.union([
10435
10753
  z.lazy(() => UpdateProjectLink1$inboundSchema),
10436
10754
  z.lazy(() => UpdateProjectLink3$inboundSchema),
10755
+ z.lazy(() => UpdateProjectLink4$inboundSchema),
10437
10756
  z.lazy(() => UpdateProjectLink2$inboundSchema),
10438
10757
  ]).optional(),
10439
10758
  microfrontends: z.union([
@@ -10551,6 +10870,7 @@ export type UpdateProjectResponseBody$Outbound = {
10551
10870
  link?:
10552
10871
  | UpdateProjectLink1$Outbound
10553
10872
  | UpdateProjectLink3$Outbound
10873
+ | UpdateProjectLink4$Outbound
10554
10874
  | UpdateProjectLink2$Outbound
10555
10875
  | undefined;
10556
10876
  microfrontends?:
@@ -10664,6 +10984,7 @@ export const UpdateProjectResponseBody$outboundSchema: z.ZodType<
10664
10984
  link: z.union([
10665
10985
  z.lazy(() => UpdateProjectLink1$outboundSchema),
10666
10986
  z.lazy(() => UpdateProjectLink3$outboundSchema),
10987
+ z.lazy(() => UpdateProjectLink4$outboundSchema),
10667
10988
  z.lazy(() => UpdateProjectLink2$outboundSchema),
10668
10989
  ]).optional(),
10669
10990
  microfrontends: z.union([