@vercel/sdk 1.7.4 → 1.7.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 (164) hide show
  1. package/README.md +6 -6
  2. package/bin/mcp-server.js +559 -272
  3. package/bin/mcp-server.js.map +35 -35
  4. package/docs/sdks/accessgroups/README.md +16 -0
  5. package/docs/sdks/artifacts/README.md +6 -6
  6. package/docs/sdks/authentication/README.md +1 -1
  7. package/docs/sdks/deployments/README.md +8 -14
  8. package/docs/sdks/dns/README.md +12 -26
  9. package/docs/sdks/domains/README.md +2 -2
  10. package/docs/sdks/edgeconfig/README.md +10 -2
  11. package/docs/sdks/marketplace/README.md +77 -97
  12. package/docs/sdks/security/README.md +4 -10
  13. package/docs/sdks/teams/README.md +8 -0
  14. package/docs/sdks/vercel/README.md +2 -2
  15. package/docs/sdks/webhooks/README.md +12 -4
  16. package/esm/__tests__/deployments.test.js +1 -2
  17. package/esm/__tests__/deployments.test.js.map +1 -1
  18. package/esm/__tests__/projects.test.js +13 -15
  19. package/esm/__tests__/projects.test.js.map +1 -1
  20. package/esm/funcs/authenticationExchangeSsoToken.d.ts +1 -1
  21. package/esm/funcs/authenticationExchangeSsoToken.js +1 -1
  22. package/esm/funcs/certsGetCertById.js +1 -1
  23. package/esm/funcs/certsIssueCert.js +1 -1
  24. package/esm/funcs/certsRemoveCert.js +1 -1
  25. package/esm/funcs/certsUploadCert.js +1 -1
  26. package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts +2 -2
  27. package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
  28. package/esm/funcs/deploymentsGetDeploymentFileContents.js +4 -3
  29. package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
  30. package/esm/funcs/marketplaceExchangeSsoToken.d.ts +1 -1
  31. package/esm/funcs/marketplaceExchangeSsoToken.js +1 -1
  32. package/esm/funcs/projectsRemoveProjectDomain.js +3 -2
  33. package/esm/funcs/projectsRemoveProjectDomain.js.map +1 -1
  34. package/esm/funcs/projectsRequestPromote.js +0 -1
  35. package/esm/funcs/projectsRequestPromote.js.map +1 -1
  36. package/esm/lib/config.d.ts +3 -3
  37. package/esm/lib/config.js +3 -3
  38. package/esm/mcp-server/cli/start/impl.js +2 -2
  39. package/esm/mcp-server/cli/start/impl.js.map +1 -1
  40. package/esm/mcp-server/mcp-server.js +1 -1
  41. package/esm/mcp-server/server.js +1 -1
  42. package/esm/mcp-server/tools/authenticationExchangeSsoToken.js +1 -1
  43. package/esm/mcp-server/tools/authenticationExchangeSsoToken.js.map +1 -1
  44. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
  45. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +1 -2
  46. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js.map +1 -1
  47. package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js +1 -1
  48. package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js.map +1 -1
  49. package/esm/models/canceldeploymentop.d.ts +10 -0
  50. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  51. package/esm/models/canceldeploymentop.js +4 -0
  52. package/esm/models/canceldeploymentop.js.map +1 -1
  53. package/esm/models/createdeploymentop.d.ts +38 -28
  54. package/esm/models/createdeploymentop.d.ts.map +1 -1
  55. package/esm/models/createdeploymentop.js +16 -12
  56. package/esm/models/createdeploymentop.js.map +1 -1
  57. package/esm/models/createprojectop.d.ts +114 -2
  58. package/esm/models/createprojectop.d.ts.map +1 -1
  59. package/esm/models/createprojectop.js +108 -2
  60. package/esm/models/createprojectop.js.map +1 -1
  61. package/esm/models/getdeploymentfilecontentsop.d.ts +0 -31
  62. package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
  63. package/esm/models/getdeploymentfilecontentsop.js +0 -25
  64. package/esm/models/getdeploymentfilecontentsop.js.map +1 -1
  65. package/esm/models/getdeploymentop.d.ts +10 -0
  66. package/esm/models/getdeploymentop.d.ts.map +1 -1
  67. package/esm/models/getdeploymentop.js +4 -0
  68. package/esm/models/getdeploymentop.js.map +1 -1
  69. package/esm/models/getprojectsop.d.ts +114 -2
  70. package/esm/models/getprojectsop.d.ts.map +1 -1
  71. package/esm/models/getprojectsop.js +108 -2
  72. package/esm/models/getprojectsop.js.map +1 -1
  73. package/esm/models/importresourceop.d.ts +9 -0
  74. package/esm/models/importresourceop.d.ts.map +1 -1
  75. package/esm/models/importresourceop.js +2 -0
  76. package/esm/models/importresourceop.js.map +1 -1
  77. package/esm/models/issuecertop.d.ts +2 -2
  78. package/esm/models/issuecertop.d.ts.map +1 -1
  79. package/esm/models/issuecertop.js +2 -2
  80. package/esm/models/issuecertop.js.map +1 -1
  81. package/esm/models/removeprojectdomainop.d.ts +30 -0
  82. package/esm/models/removeprojectdomainop.d.ts.map +1 -1
  83. package/esm/models/removeprojectdomainop.js +38 -0
  84. package/esm/models/removeprojectdomainop.js.map +1 -1
  85. package/esm/models/requestpromoteop.d.ts +0 -5
  86. package/esm/models/requestpromoteop.d.ts.map +1 -1
  87. package/esm/models/requestpromoteop.js +0 -2
  88. package/esm/models/requestpromoteop.js.map +1 -1
  89. package/esm/models/teamlimited.d.ts +13 -13
  90. package/esm/models/teamlimited.d.ts.map +1 -1
  91. package/esm/models/teamlimited.js +6 -6
  92. package/esm/models/teamlimited.js.map +1 -1
  93. package/esm/models/updateprojectdatacacheop.d.ts +114 -2
  94. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  95. package/esm/models/updateprojectdatacacheop.js +108 -2
  96. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  97. package/esm/models/updateprojectop.d.ts +114 -2
  98. package/esm/models/updateprojectop.d.ts.map +1 -1
  99. package/esm/models/updateprojectop.js +108 -2
  100. package/esm/models/updateprojectop.js.map +1 -1
  101. package/esm/models/updateresourcesecretsbyidop.d.ts +9 -0
  102. package/esm/models/updateresourcesecretsbyidop.d.ts.map +1 -1
  103. package/esm/models/updateresourcesecretsbyidop.js +2 -0
  104. package/esm/models/updateresourcesecretsbyidop.js.map +1 -1
  105. package/esm/models/updateresourcesecretsop.d.ts +9 -0
  106. package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
  107. package/esm/models/updateresourcesecretsop.js +2 -0
  108. package/esm/models/updateresourcesecretsop.js.map +1 -1
  109. package/esm/models/uploadcertop.d.ts +2 -2
  110. package/esm/models/uploadcertop.d.ts.map +1 -1
  111. package/esm/models/uploadcertop.js +2 -2
  112. package/esm/models/uploadcertop.js.map +1 -1
  113. package/esm/models/userevent.d.ts +368 -257
  114. package/esm/models/userevent.d.ts.map +1 -1
  115. package/esm/models/userevent.js +423 -315
  116. package/esm/models/userevent.js.map +1 -1
  117. package/esm/sdk/authentication.d.ts +1 -1
  118. package/esm/sdk/authentication.js +1 -1
  119. package/esm/sdk/deployments.d.ts +2 -2
  120. package/esm/sdk/deployments.d.ts.map +1 -1
  121. package/esm/sdk/deployments.js.map +1 -1
  122. package/esm/sdk/marketplace.d.ts +1 -1
  123. package/esm/sdk/marketplace.js +1 -1
  124. package/jsr.json +1 -1
  125. package/package.json +1 -1
  126. package/src/__tests__/deployments.test.ts +1 -2
  127. package/src/__tests__/projects.test.ts +13 -15
  128. package/src/funcs/authenticationExchangeSsoToken.ts +1 -1
  129. package/src/funcs/certsGetCertById.ts +1 -1
  130. package/src/funcs/certsIssueCert.ts +1 -1
  131. package/src/funcs/certsRemoveCert.ts +1 -1
  132. package/src/funcs/certsUploadCert.ts +1 -1
  133. package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -7
  134. package/src/funcs/marketplaceExchangeSsoToken.ts +1 -1
  135. package/src/funcs/projectsRemoveProjectDomain.ts +3 -2
  136. package/src/funcs/projectsRequestPromote.ts +0 -1
  137. package/src/lib/config.ts +3 -3
  138. package/src/mcp-server/cli/start/impl.ts +2 -2
  139. package/src/mcp-server/mcp-server.ts +1 -1
  140. package/src/mcp-server/server.ts +1 -1
  141. package/src/mcp-server/tools/authenticationExchangeSsoToken.ts +1 -1
  142. package/src/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +1 -3
  143. package/src/mcp-server/tools/marketplaceExchangeSsoToken.ts +1 -1
  144. package/src/models/canceldeploymentop.ts +14 -0
  145. package/src/models/createdeploymentop.ts +30 -16
  146. package/src/models/createprojectop.ts +243 -4
  147. package/src/models/getdeploymentfilecontentsop.ts +0 -69
  148. package/src/models/getdeploymentop.ts +14 -0
  149. package/src/models/getprojectsop.ts +237 -4
  150. package/src/models/importresourceop.ts +7 -0
  151. package/src/models/issuecertop.ts +4 -4
  152. package/src/models/removeprojectdomainop.ts +78 -0
  153. package/src/models/requestpromoteop.ts +0 -7
  154. package/src/models/teamlimited.ts +13 -13
  155. package/src/models/updateprojectdatacacheop.ts +260 -4
  156. package/src/models/updateprojectop.ts +243 -4
  157. package/src/models/updateresourcesecretsbyidop.ts +7 -0
  158. package/src/models/updateresourcesecretsop.ts +7 -0
  159. package/src/models/uploadcertop.ts +4 -4
  160. package/src/models/userevent.ts +798 -582
  161. package/src/sdk/authentication.ts +1 -1
  162. package/src/sdk/deployments.ts +2 -5
  163. package/src/sdk/marketplace.ts +1 -1
  164. package/vercel-spec.json +497 -94
@@ -56,6 +56,31 @@ export type SpeedInsights = {
56
56
  paidAt?: number | undefined;
57
57
  };
58
58
 
59
+ export const UpdateProjectDataCacheEnvId2 = {
60
+ Production: "production",
61
+ Preview: "preview",
62
+ } as const;
63
+ export type UpdateProjectDataCacheEnvId2 = ClosedEnum<
64
+ typeof UpdateProjectDataCacheEnvId2
65
+ >;
66
+
67
+ export type UpdateProjectDataCacheEnvId = string | UpdateProjectDataCacheEnvId2;
68
+
69
+ export type UpdateProjectDataCacheAws = {
70
+ subnetIds: Array<string>;
71
+ securityGroupId: string;
72
+ };
73
+
74
+ export type UpdateProjectDataCacheConnectConfigurations = {
75
+ envId: string | UpdateProjectDataCacheEnvId2;
76
+ connectConfigurationId: string;
77
+ passive: boolean;
78
+ buildsEnabled: boolean;
79
+ aws?: UpdateProjectDataCacheAws | undefined;
80
+ createdAt: number;
81
+ updatedAt: number;
82
+ };
83
+
59
84
  export type Definitions = {
60
85
  /**
61
86
  * The hostname that should be used.
@@ -1797,8 +1822,13 @@ export type UpdateProjectDataCacheResponseBody = {
1797
1822
  autoAssignCustomDomainsUpdatedBy?: string | undefined;
1798
1823
  buildCommand?: string | null | undefined;
1799
1824
  commandForIgnoringBuildStep?: string | null | undefined;
1825
+ connectConfigurations?:
1826
+ | Array<UpdateProjectDataCacheConnectConfigurations>
1827
+ | null
1828
+ | undefined;
1800
1829
  connectConfigurationId?: string | null | undefined;
1801
1830
  connectBuildsEnabled?: boolean | undefined;
1831
+ passiveConnectConfigurationId?: string | null | undefined;
1802
1832
  createdAt?: number | undefined;
1803
1833
  customerSupportCodeVisibility?: boolean | undefined;
1804
1834
  crons?: Crons | undefined;
@@ -1824,7 +1854,6 @@ export type UpdateProjectDataCacheResponseBody = {
1824
1854
  nodeVersion: UpdateProjectDataCacheNodeVersion;
1825
1855
  optionsAllowlist?: UpdateProjectDataCacheOptionsAllowlist | null | undefined;
1826
1856
  outputDirectory?: string | null | undefined;
1827
- passiveConnectConfigurationId?: string | null | undefined;
1828
1857
  passwordProtection?:
1829
1858
  | UpdateProjectDataCachePasswordProtection
1830
1859
  | null
@@ -2133,6 +2162,219 @@ export function speedInsightsFromJSON(
2133
2162
  );
2134
2163
  }
2135
2164
 
2165
+ /** @internal */
2166
+ export const UpdateProjectDataCacheEnvId2$inboundSchema: z.ZodNativeEnum<
2167
+ typeof UpdateProjectDataCacheEnvId2
2168
+ > = z.nativeEnum(UpdateProjectDataCacheEnvId2);
2169
+
2170
+ /** @internal */
2171
+ export const UpdateProjectDataCacheEnvId2$outboundSchema: z.ZodNativeEnum<
2172
+ typeof UpdateProjectDataCacheEnvId2
2173
+ > = UpdateProjectDataCacheEnvId2$inboundSchema;
2174
+
2175
+ /**
2176
+ * @internal
2177
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2178
+ */
2179
+ export namespace UpdateProjectDataCacheEnvId2$ {
2180
+ /** @deprecated use `UpdateProjectDataCacheEnvId2$inboundSchema` instead. */
2181
+ export const inboundSchema = UpdateProjectDataCacheEnvId2$inboundSchema;
2182
+ /** @deprecated use `UpdateProjectDataCacheEnvId2$outboundSchema` instead. */
2183
+ export const outboundSchema = UpdateProjectDataCacheEnvId2$outboundSchema;
2184
+ }
2185
+
2186
+ /** @internal */
2187
+ export const UpdateProjectDataCacheEnvId$inboundSchema: z.ZodType<
2188
+ UpdateProjectDataCacheEnvId,
2189
+ z.ZodTypeDef,
2190
+ unknown
2191
+ > = z.union([z.string(), UpdateProjectDataCacheEnvId2$inboundSchema]);
2192
+
2193
+ /** @internal */
2194
+ export type UpdateProjectDataCacheEnvId$Outbound = string | string;
2195
+
2196
+ /** @internal */
2197
+ export const UpdateProjectDataCacheEnvId$outboundSchema: z.ZodType<
2198
+ UpdateProjectDataCacheEnvId$Outbound,
2199
+ z.ZodTypeDef,
2200
+ UpdateProjectDataCacheEnvId
2201
+ > = z.union([z.string(), UpdateProjectDataCacheEnvId2$outboundSchema]);
2202
+
2203
+ /**
2204
+ * @internal
2205
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2206
+ */
2207
+ export namespace UpdateProjectDataCacheEnvId$ {
2208
+ /** @deprecated use `UpdateProjectDataCacheEnvId$inboundSchema` instead. */
2209
+ export const inboundSchema = UpdateProjectDataCacheEnvId$inboundSchema;
2210
+ /** @deprecated use `UpdateProjectDataCacheEnvId$outboundSchema` instead. */
2211
+ export const outboundSchema = UpdateProjectDataCacheEnvId$outboundSchema;
2212
+ /** @deprecated use `UpdateProjectDataCacheEnvId$Outbound` instead. */
2213
+ export type Outbound = UpdateProjectDataCacheEnvId$Outbound;
2214
+ }
2215
+
2216
+ export function updateProjectDataCacheEnvIdToJSON(
2217
+ updateProjectDataCacheEnvId: UpdateProjectDataCacheEnvId,
2218
+ ): string {
2219
+ return JSON.stringify(
2220
+ UpdateProjectDataCacheEnvId$outboundSchema.parse(
2221
+ updateProjectDataCacheEnvId,
2222
+ ),
2223
+ );
2224
+ }
2225
+
2226
+ export function updateProjectDataCacheEnvIdFromJSON(
2227
+ jsonString: string,
2228
+ ): SafeParseResult<UpdateProjectDataCacheEnvId, SDKValidationError> {
2229
+ return safeParse(
2230
+ jsonString,
2231
+ (x) => UpdateProjectDataCacheEnvId$inboundSchema.parse(JSON.parse(x)),
2232
+ `Failed to parse 'UpdateProjectDataCacheEnvId' from JSON`,
2233
+ );
2234
+ }
2235
+
2236
+ /** @internal */
2237
+ export const UpdateProjectDataCacheAws$inboundSchema: z.ZodType<
2238
+ UpdateProjectDataCacheAws,
2239
+ z.ZodTypeDef,
2240
+ unknown
2241
+ > = z.object({
2242
+ subnetIds: z.array(z.string()),
2243
+ securityGroupId: z.string(),
2244
+ });
2245
+
2246
+ /** @internal */
2247
+ export type UpdateProjectDataCacheAws$Outbound = {
2248
+ subnetIds: Array<string>;
2249
+ securityGroupId: string;
2250
+ };
2251
+
2252
+ /** @internal */
2253
+ export const UpdateProjectDataCacheAws$outboundSchema: z.ZodType<
2254
+ UpdateProjectDataCacheAws$Outbound,
2255
+ z.ZodTypeDef,
2256
+ UpdateProjectDataCacheAws
2257
+ > = z.object({
2258
+ subnetIds: z.array(z.string()),
2259
+ securityGroupId: z.string(),
2260
+ });
2261
+
2262
+ /**
2263
+ * @internal
2264
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2265
+ */
2266
+ export namespace UpdateProjectDataCacheAws$ {
2267
+ /** @deprecated use `UpdateProjectDataCacheAws$inboundSchema` instead. */
2268
+ export const inboundSchema = UpdateProjectDataCacheAws$inboundSchema;
2269
+ /** @deprecated use `UpdateProjectDataCacheAws$outboundSchema` instead. */
2270
+ export const outboundSchema = UpdateProjectDataCacheAws$outboundSchema;
2271
+ /** @deprecated use `UpdateProjectDataCacheAws$Outbound` instead. */
2272
+ export type Outbound = UpdateProjectDataCacheAws$Outbound;
2273
+ }
2274
+
2275
+ export function updateProjectDataCacheAwsToJSON(
2276
+ updateProjectDataCacheAws: UpdateProjectDataCacheAws,
2277
+ ): string {
2278
+ return JSON.stringify(
2279
+ UpdateProjectDataCacheAws$outboundSchema.parse(updateProjectDataCacheAws),
2280
+ );
2281
+ }
2282
+
2283
+ export function updateProjectDataCacheAwsFromJSON(
2284
+ jsonString: string,
2285
+ ): SafeParseResult<UpdateProjectDataCacheAws, SDKValidationError> {
2286
+ return safeParse(
2287
+ jsonString,
2288
+ (x) => UpdateProjectDataCacheAws$inboundSchema.parse(JSON.parse(x)),
2289
+ `Failed to parse 'UpdateProjectDataCacheAws' from JSON`,
2290
+ );
2291
+ }
2292
+
2293
+ /** @internal */
2294
+ export const UpdateProjectDataCacheConnectConfigurations$inboundSchema:
2295
+ z.ZodType<
2296
+ UpdateProjectDataCacheConnectConfigurations,
2297
+ z.ZodTypeDef,
2298
+ unknown
2299
+ > = z.object({
2300
+ envId: z.union([z.string(), UpdateProjectDataCacheEnvId2$inboundSchema]),
2301
+ connectConfigurationId: z.string(),
2302
+ passive: z.boolean(),
2303
+ buildsEnabled: z.boolean(),
2304
+ aws: z.lazy(() => UpdateProjectDataCacheAws$inboundSchema).optional(),
2305
+ createdAt: z.number(),
2306
+ updatedAt: z.number(),
2307
+ });
2308
+
2309
+ /** @internal */
2310
+ export type UpdateProjectDataCacheConnectConfigurations$Outbound = {
2311
+ envId: string | string;
2312
+ connectConfigurationId: string;
2313
+ passive: boolean;
2314
+ buildsEnabled: boolean;
2315
+ aws?: UpdateProjectDataCacheAws$Outbound | undefined;
2316
+ createdAt: number;
2317
+ updatedAt: number;
2318
+ };
2319
+
2320
+ /** @internal */
2321
+ export const UpdateProjectDataCacheConnectConfigurations$outboundSchema:
2322
+ z.ZodType<
2323
+ UpdateProjectDataCacheConnectConfigurations$Outbound,
2324
+ z.ZodTypeDef,
2325
+ UpdateProjectDataCacheConnectConfigurations
2326
+ > = z.object({
2327
+ envId: z.union([z.string(), UpdateProjectDataCacheEnvId2$outboundSchema]),
2328
+ connectConfigurationId: z.string(),
2329
+ passive: z.boolean(),
2330
+ buildsEnabled: z.boolean(),
2331
+ aws: z.lazy(() => UpdateProjectDataCacheAws$outboundSchema).optional(),
2332
+ createdAt: z.number(),
2333
+ updatedAt: z.number(),
2334
+ });
2335
+
2336
+ /**
2337
+ * @internal
2338
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2339
+ */
2340
+ export namespace UpdateProjectDataCacheConnectConfigurations$ {
2341
+ /** @deprecated use `UpdateProjectDataCacheConnectConfigurations$inboundSchema` instead. */
2342
+ export const inboundSchema =
2343
+ UpdateProjectDataCacheConnectConfigurations$inboundSchema;
2344
+ /** @deprecated use `UpdateProjectDataCacheConnectConfigurations$outboundSchema` instead. */
2345
+ export const outboundSchema =
2346
+ UpdateProjectDataCacheConnectConfigurations$outboundSchema;
2347
+ /** @deprecated use `UpdateProjectDataCacheConnectConfigurations$Outbound` instead. */
2348
+ export type Outbound = UpdateProjectDataCacheConnectConfigurations$Outbound;
2349
+ }
2350
+
2351
+ export function updateProjectDataCacheConnectConfigurationsToJSON(
2352
+ updateProjectDataCacheConnectConfigurations:
2353
+ UpdateProjectDataCacheConnectConfigurations,
2354
+ ): string {
2355
+ return JSON.stringify(
2356
+ UpdateProjectDataCacheConnectConfigurations$outboundSchema.parse(
2357
+ updateProjectDataCacheConnectConfigurations,
2358
+ ),
2359
+ );
2360
+ }
2361
+
2362
+ export function updateProjectDataCacheConnectConfigurationsFromJSON(
2363
+ jsonString: string,
2364
+ ): SafeParseResult<
2365
+ UpdateProjectDataCacheConnectConfigurations,
2366
+ SDKValidationError
2367
+ > {
2368
+ return safeParse(
2369
+ jsonString,
2370
+ (x) =>
2371
+ UpdateProjectDataCacheConnectConfigurations$inboundSchema.parse(
2372
+ JSON.parse(x),
2373
+ ),
2374
+ `Failed to parse 'UpdateProjectDataCacheConnectConfigurations' from JSON`,
2375
+ );
2376
+ }
2377
+
2136
2378
  /** @internal */
2137
2379
  export const Definitions$inboundSchema: z.ZodType<
2138
2380
  Definitions,
@@ -10293,8 +10535,14 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10293
10535
  autoAssignCustomDomainsUpdatedBy: z.string().optional(),
10294
10536
  buildCommand: z.nullable(z.string()).optional(),
10295
10537
  commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
10538
+ connectConfigurations: z.nullable(
10539
+ z.array(z.lazy(() =>
10540
+ UpdateProjectDataCacheConnectConfigurations$inboundSchema
10541
+ )),
10542
+ ).optional(),
10296
10543
  connectConfigurationId: z.nullable(z.string()).optional(),
10297
10544
  connectBuildsEnabled: z.boolean().optional(),
10545
+ passiveConnectConfigurationId: z.nullable(z.string()).optional(),
10298
10546
  createdAt: z.number().optional(),
10299
10547
  customerSupportCodeVisibility: z.boolean().optional(),
10300
10548
  crons: z.lazy(() => Crons$inboundSchema).optional(),
@@ -10333,7 +10581,6 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10333
10581
  z.lazy(() => UpdateProjectDataCacheOptionsAllowlist$inboundSchema),
10334
10582
  ).optional(),
10335
10583
  outputDirectory: z.nullable(z.string()).optional(),
10336
- passiveConnectConfigurationId: z.nullable(z.string()).optional(),
10337
10584
  passwordProtection: z.nullable(
10338
10585
  z.lazy(() => UpdateProjectDataCachePasswordProtection$inboundSchema),
10339
10586
  ).optional(),
@@ -10407,8 +10654,13 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
10407
10654
  autoAssignCustomDomainsUpdatedBy?: string | undefined;
10408
10655
  buildCommand?: string | null | undefined;
10409
10656
  commandForIgnoringBuildStep?: string | null | undefined;
10657
+ connectConfigurations?:
10658
+ | Array<UpdateProjectDataCacheConnectConfigurations$Outbound>
10659
+ | null
10660
+ | undefined;
10410
10661
  connectConfigurationId?: string | null | undefined;
10411
10662
  connectBuildsEnabled?: boolean | undefined;
10663
+ passiveConnectConfigurationId?: string | null | undefined;
10412
10664
  createdAt?: number | undefined;
10413
10665
  customerSupportCodeVisibility?: boolean | undefined;
10414
10666
  crons?: Crons$Outbound | undefined;
@@ -10442,7 +10694,6 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
10442
10694
  | null
10443
10695
  | undefined;
10444
10696
  outputDirectory?: string | null | undefined;
10445
- passiveConnectConfigurationId?: string | null | undefined;
10446
10697
  passwordProtection?:
10447
10698
  | UpdateProjectDataCachePasswordProtection$Outbound
10448
10699
  | null
@@ -10505,8 +10756,14 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10505
10756
  autoAssignCustomDomainsUpdatedBy: z.string().optional(),
10506
10757
  buildCommand: z.nullable(z.string()).optional(),
10507
10758
  commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
10759
+ connectConfigurations: z.nullable(
10760
+ z.array(z.lazy(() =>
10761
+ UpdateProjectDataCacheConnectConfigurations$outboundSchema
10762
+ )),
10763
+ ).optional(),
10508
10764
  connectConfigurationId: z.nullable(z.string()).optional(),
10509
10765
  connectBuildsEnabled: z.boolean().optional(),
10766
+ passiveConnectConfigurationId: z.nullable(z.string()).optional(),
10510
10767
  createdAt: z.number().optional(),
10511
10768
  customerSupportCodeVisibility: z.boolean().optional(),
10512
10769
  crons: z.lazy(() => Crons$outboundSchema).optional(),
@@ -10545,7 +10802,6 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10545
10802
  z.lazy(() => UpdateProjectDataCacheOptionsAllowlist$outboundSchema),
10546
10803
  ).optional(),
10547
10804
  outputDirectory: z.nullable(z.string()).optional(),
10548
- passiveConnectConfigurationId: z.nullable(z.string()).optional(),
10549
10805
  passwordProtection: z.nullable(
10550
10806
  z.lazy(() => UpdateProjectDataCachePasswordProtection$outboundSchema),
10551
10807
  ).optional(),
@@ -450,6 +450,29 @@ export type UpdateProjectSpeedInsights = {
450
450
  paidAt?: number | undefined;
451
451
  };
452
452
 
453
+ export const UpdateProjectEnvId2 = {
454
+ Production: "production",
455
+ Preview: "preview",
456
+ } as const;
457
+ export type UpdateProjectEnvId2 = ClosedEnum<typeof UpdateProjectEnvId2>;
458
+
459
+ export type UpdateProjectEnvId = string | UpdateProjectEnvId2;
460
+
461
+ export type UpdateProjectAws = {
462
+ subnetIds: Array<string>;
463
+ securityGroupId: string;
464
+ };
465
+
466
+ export type UpdateProjectConnectConfigurations = {
467
+ envId: string | UpdateProjectEnvId2;
468
+ connectConfigurationId: string;
469
+ passive: boolean;
470
+ buildsEnabled: boolean;
471
+ aws?: UpdateProjectAws | undefined;
472
+ createdAt: number;
473
+ updatedAt: number;
474
+ };
475
+
453
476
  export type UpdateProjectDefinitions = {
454
477
  /**
455
478
  * The hostname that should be used.
@@ -2174,8 +2197,13 @@ export type UpdateProjectResponseBody = {
2174
2197
  autoAssignCustomDomainsUpdatedBy?: string | undefined;
2175
2198
  buildCommand?: string | null | undefined;
2176
2199
  commandForIgnoringBuildStep?: string | null | undefined;
2200
+ connectConfigurations?:
2201
+ | Array<UpdateProjectConnectConfigurations>
2202
+ | null
2203
+ | undefined;
2177
2204
  connectConfigurationId?: string | null | undefined;
2178
2205
  connectBuildsEnabled?: boolean | undefined;
2206
+ passiveConnectConfigurationId?: string | null | undefined;
2179
2207
  createdAt?: number | undefined;
2180
2208
  customerSupportCodeVisibility?: boolean | undefined;
2181
2209
  crons?: UpdateProjectCrons | undefined;
@@ -2206,7 +2234,6 @@ export type UpdateProjectResponseBody = {
2206
2234
  nodeVersion: UpdateProjectProjectsNodeVersion;
2207
2235
  optionsAllowlist?: UpdateProjectProjectsOptionsAllowlist | null | undefined;
2208
2236
  outputDirectory?: string | null | undefined;
2209
- passiveConnectConfigurationId?: string | null | undefined;
2210
2237
  passwordProtection?:
2211
2238
  | UpdateProjectProjectsPasswordProtection
2212
2239
  | null
@@ -3433,6 +3460,208 @@ export function updateProjectSpeedInsightsFromJSON(
3433
3460
  );
3434
3461
  }
3435
3462
 
3463
+ /** @internal */
3464
+ export const UpdateProjectEnvId2$inboundSchema: z.ZodNativeEnum<
3465
+ typeof UpdateProjectEnvId2
3466
+ > = z.nativeEnum(UpdateProjectEnvId2);
3467
+
3468
+ /** @internal */
3469
+ export const UpdateProjectEnvId2$outboundSchema: z.ZodNativeEnum<
3470
+ typeof UpdateProjectEnvId2
3471
+ > = UpdateProjectEnvId2$inboundSchema;
3472
+
3473
+ /**
3474
+ * @internal
3475
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3476
+ */
3477
+ export namespace UpdateProjectEnvId2$ {
3478
+ /** @deprecated use `UpdateProjectEnvId2$inboundSchema` instead. */
3479
+ export const inboundSchema = UpdateProjectEnvId2$inboundSchema;
3480
+ /** @deprecated use `UpdateProjectEnvId2$outboundSchema` instead. */
3481
+ export const outboundSchema = UpdateProjectEnvId2$outboundSchema;
3482
+ }
3483
+
3484
+ /** @internal */
3485
+ export const UpdateProjectEnvId$inboundSchema: z.ZodType<
3486
+ UpdateProjectEnvId,
3487
+ z.ZodTypeDef,
3488
+ unknown
3489
+ > = z.union([z.string(), UpdateProjectEnvId2$inboundSchema]);
3490
+
3491
+ /** @internal */
3492
+ export type UpdateProjectEnvId$Outbound = string | string;
3493
+
3494
+ /** @internal */
3495
+ export const UpdateProjectEnvId$outboundSchema: z.ZodType<
3496
+ UpdateProjectEnvId$Outbound,
3497
+ z.ZodTypeDef,
3498
+ UpdateProjectEnvId
3499
+ > = z.union([z.string(), UpdateProjectEnvId2$outboundSchema]);
3500
+
3501
+ /**
3502
+ * @internal
3503
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3504
+ */
3505
+ export namespace UpdateProjectEnvId$ {
3506
+ /** @deprecated use `UpdateProjectEnvId$inboundSchema` instead. */
3507
+ export const inboundSchema = UpdateProjectEnvId$inboundSchema;
3508
+ /** @deprecated use `UpdateProjectEnvId$outboundSchema` instead. */
3509
+ export const outboundSchema = UpdateProjectEnvId$outboundSchema;
3510
+ /** @deprecated use `UpdateProjectEnvId$Outbound` instead. */
3511
+ export type Outbound = UpdateProjectEnvId$Outbound;
3512
+ }
3513
+
3514
+ export function updateProjectEnvIdToJSON(
3515
+ updateProjectEnvId: UpdateProjectEnvId,
3516
+ ): string {
3517
+ return JSON.stringify(
3518
+ UpdateProjectEnvId$outboundSchema.parse(updateProjectEnvId),
3519
+ );
3520
+ }
3521
+
3522
+ export function updateProjectEnvIdFromJSON(
3523
+ jsonString: string,
3524
+ ): SafeParseResult<UpdateProjectEnvId, SDKValidationError> {
3525
+ return safeParse(
3526
+ jsonString,
3527
+ (x) => UpdateProjectEnvId$inboundSchema.parse(JSON.parse(x)),
3528
+ `Failed to parse 'UpdateProjectEnvId' from JSON`,
3529
+ );
3530
+ }
3531
+
3532
+ /** @internal */
3533
+ export const UpdateProjectAws$inboundSchema: z.ZodType<
3534
+ UpdateProjectAws,
3535
+ z.ZodTypeDef,
3536
+ unknown
3537
+ > = z.object({
3538
+ subnetIds: z.array(z.string()),
3539
+ securityGroupId: z.string(),
3540
+ });
3541
+
3542
+ /** @internal */
3543
+ export type UpdateProjectAws$Outbound = {
3544
+ subnetIds: Array<string>;
3545
+ securityGroupId: string;
3546
+ };
3547
+
3548
+ /** @internal */
3549
+ export const UpdateProjectAws$outboundSchema: z.ZodType<
3550
+ UpdateProjectAws$Outbound,
3551
+ z.ZodTypeDef,
3552
+ UpdateProjectAws
3553
+ > = z.object({
3554
+ subnetIds: z.array(z.string()),
3555
+ securityGroupId: z.string(),
3556
+ });
3557
+
3558
+ /**
3559
+ * @internal
3560
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3561
+ */
3562
+ export namespace UpdateProjectAws$ {
3563
+ /** @deprecated use `UpdateProjectAws$inboundSchema` instead. */
3564
+ export const inboundSchema = UpdateProjectAws$inboundSchema;
3565
+ /** @deprecated use `UpdateProjectAws$outboundSchema` instead. */
3566
+ export const outboundSchema = UpdateProjectAws$outboundSchema;
3567
+ /** @deprecated use `UpdateProjectAws$Outbound` instead. */
3568
+ export type Outbound = UpdateProjectAws$Outbound;
3569
+ }
3570
+
3571
+ export function updateProjectAwsToJSON(
3572
+ updateProjectAws: UpdateProjectAws,
3573
+ ): string {
3574
+ return JSON.stringify(
3575
+ UpdateProjectAws$outboundSchema.parse(updateProjectAws),
3576
+ );
3577
+ }
3578
+
3579
+ export function updateProjectAwsFromJSON(
3580
+ jsonString: string,
3581
+ ): SafeParseResult<UpdateProjectAws, SDKValidationError> {
3582
+ return safeParse(
3583
+ jsonString,
3584
+ (x) => UpdateProjectAws$inboundSchema.parse(JSON.parse(x)),
3585
+ `Failed to parse 'UpdateProjectAws' from JSON`,
3586
+ );
3587
+ }
3588
+
3589
+ /** @internal */
3590
+ export const UpdateProjectConnectConfigurations$inboundSchema: z.ZodType<
3591
+ UpdateProjectConnectConfigurations,
3592
+ z.ZodTypeDef,
3593
+ unknown
3594
+ > = z.object({
3595
+ envId: z.union([z.string(), UpdateProjectEnvId2$inboundSchema]),
3596
+ connectConfigurationId: z.string(),
3597
+ passive: z.boolean(),
3598
+ buildsEnabled: z.boolean(),
3599
+ aws: z.lazy(() => UpdateProjectAws$inboundSchema).optional(),
3600
+ createdAt: z.number(),
3601
+ updatedAt: z.number(),
3602
+ });
3603
+
3604
+ /** @internal */
3605
+ export type UpdateProjectConnectConfigurations$Outbound = {
3606
+ envId: string | string;
3607
+ connectConfigurationId: string;
3608
+ passive: boolean;
3609
+ buildsEnabled: boolean;
3610
+ aws?: UpdateProjectAws$Outbound | undefined;
3611
+ createdAt: number;
3612
+ updatedAt: number;
3613
+ };
3614
+
3615
+ /** @internal */
3616
+ export const UpdateProjectConnectConfigurations$outboundSchema: z.ZodType<
3617
+ UpdateProjectConnectConfigurations$Outbound,
3618
+ z.ZodTypeDef,
3619
+ UpdateProjectConnectConfigurations
3620
+ > = z.object({
3621
+ envId: z.union([z.string(), UpdateProjectEnvId2$outboundSchema]),
3622
+ connectConfigurationId: z.string(),
3623
+ passive: z.boolean(),
3624
+ buildsEnabled: z.boolean(),
3625
+ aws: z.lazy(() => UpdateProjectAws$outboundSchema).optional(),
3626
+ createdAt: z.number(),
3627
+ updatedAt: z.number(),
3628
+ });
3629
+
3630
+ /**
3631
+ * @internal
3632
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3633
+ */
3634
+ export namespace UpdateProjectConnectConfigurations$ {
3635
+ /** @deprecated use `UpdateProjectConnectConfigurations$inboundSchema` instead. */
3636
+ export const inboundSchema = UpdateProjectConnectConfigurations$inboundSchema;
3637
+ /** @deprecated use `UpdateProjectConnectConfigurations$outboundSchema` instead. */
3638
+ export const outboundSchema =
3639
+ UpdateProjectConnectConfigurations$outboundSchema;
3640
+ /** @deprecated use `UpdateProjectConnectConfigurations$Outbound` instead. */
3641
+ export type Outbound = UpdateProjectConnectConfigurations$Outbound;
3642
+ }
3643
+
3644
+ export function updateProjectConnectConfigurationsToJSON(
3645
+ updateProjectConnectConfigurations: UpdateProjectConnectConfigurations,
3646
+ ): string {
3647
+ return JSON.stringify(
3648
+ UpdateProjectConnectConfigurations$outboundSchema.parse(
3649
+ updateProjectConnectConfigurations,
3650
+ ),
3651
+ );
3652
+ }
3653
+
3654
+ export function updateProjectConnectConfigurationsFromJSON(
3655
+ jsonString: string,
3656
+ ): SafeParseResult<UpdateProjectConnectConfigurations, SDKValidationError> {
3657
+ return safeParse(
3658
+ jsonString,
3659
+ (x) =>
3660
+ UpdateProjectConnectConfigurations$inboundSchema.parse(JSON.parse(x)),
3661
+ `Failed to parse 'UpdateProjectConnectConfigurations' from JSON`,
3662
+ );
3663
+ }
3664
+
3436
3665
  /** @internal */
3437
3666
  export const UpdateProjectDefinitions$inboundSchema: z.ZodType<
3438
3667
  UpdateProjectDefinitions,
@@ -11682,8 +11911,12 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType<
11682
11911
  autoAssignCustomDomainsUpdatedBy: z.string().optional(),
11683
11912
  buildCommand: z.nullable(z.string()).optional(),
11684
11913
  commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
11914
+ connectConfigurations: z.nullable(
11915
+ z.array(z.lazy(() => UpdateProjectConnectConfigurations$inboundSchema)),
11916
+ ).optional(),
11685
11917
  connectConfigurationId: z.nullable(z.string()).optional(),
11686
11918
  connectBuildsEnabled: z.boolean().optional(),
11919
+ passiveConnectConfigurationId: z.nullable(z.string()).optional(),
11687
11920
  createdAt: z.number().optional(),
11688
11921
  customerSupportCodeVisibility: z.boolean().optional(),
11689
11922
  crons: z.lazy(() => UpdateProjectCrons$inboundSchema).optional(),
@@ -11724,7 +11957,6 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType<
11724
11957
  z.lazy(() => UpdateProjectProjectsOptionsAllowlist$inboundSchema),
11725
11958
  ).optional(),
11726
11959
  outputDirectory: z.nullable(z.string()).optional(),
11727
- passiveConnectConfigurationId: z.nullable(z.string()).optional(),
11728
11960
  passwordProtection: z.nullable(
11729
11961
  z.lazy(() => UpdateProjectProjectsPasswordProtection$inboundSchema),
11730
11962
  ).optional(),
@@ -11806,8 +12038,13 @@ export type UpdateProjectResponseBody$Outbound = {
11806
12038
  autoAssignCustomDomainsUpdatedBy?: string | undefined;
11807
12039
  buildCommand?: string | null | undefined;
11808
12040
  commandForIgnoringBuildStep?: string | null | undefined;
12041
+ connectConfigurations?:
12042
+ | Array<UpdateProjectConnectConfigurations$Outbound>
12043
+ | null
12044
+ | undefined;
11809
12045
  connectConfigurationId?: string | null | undefined;
11810
12046
  connectBuildsEnabled?: boolean | undefined;
12047
+ passiveConnectConfigurationId?: string | null | undefined;
11811
12048
  createdAt?: number | undefined;
11812
12049
  customerSupportCodeVisibility?: boolean | undefined;
11813
12050
  crons?: UpdateProjectCrons$Outbound | undefined;
@@ -11848,7 +12085,6 @@ export type UpdateProjectResponseBody$Outbound = {
11848
12085
  | null
11849
12086
  | undefined;
11850
12087
  outputDirectory?: string | null | undefined;
11851
- passiveConnectConfigurationId?: string | null | undefined;
11852
12088
  passwordProtection?:
11853
12089
  | UpdateProjectProjectsPasswordProtection$Outbound
11854
12090
  | null
@@ -11921,8 +12157,12 @@ export const UpdateProjectResponseBody$outboundSchema: z.ZodType<
11921
12157
  autoAssignCustomDomainsUpdatedBy: z.string().optional(),
11922
12158
  buildCommand: z.nullable(z.string()).optional(),
11923
12159
  commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
12160
+ connectConfigurations: z.nullable(
12161
+ z.array(z.lazy(() => UpdateProjectConnectConfigurations$outboundSchema)),
12162
+ ).optional(),
11924
12163
  connectConfigurationId: z.nullable(z.string()).optional(),
11925
12164
  connectBuildsEnabled: z.boolean().optional(),
12165
+ passiveConnectConfigurationId: z.nullable(z.string()).optional(),
11926
12166
  createdAt: z.number().optional(),
11927
12167
  customerSupportCodeVisibility: z.boolean().optional(),
11928
12168
  crons: z.lazy(() => UpdateProjectCrons$outboundSchema).optional(),
@@ -11963,7 +12203,6 @@ export const UpdateProjectResponseBody$outboundSchema: z.ZodType<
11963
12203
  z.lazy(() => UpdateProjectProjectsOptionsAllowlist$outboundSchema),
11964
12204
  ).optional(),
11965
12205
  outputDirectory: z.nullable(z.string()).optional(),
11966
- passiveConnectConfigurationId: z.nullable(z.string()).optional(),
11967
12206
  passwordProtection: z.nullable(
11968
12207
  z.lazy(() => UpdateProjectProjectsPasswordProtection$outboundSchema),
11969
12208
  ).optional(),
@@ -12,6 +12,10 @@ export type UpdateResourceSecretsByIdSecrets = {
12
12
  name: string;
13
13
  value: string;
14
14
  prefix?: string | undefined;
15
+ /**
16
+ * @hidden
17
+ */
18
+ environmentOverrides?: { [k: string]: string } | undefined;
15
19
  };
16
20
 
17
21
  export type UpdateResourceSecretsByIdRequestBody = {
@@ -37,6 +41,7 @@ export const UpdateResourceSecretsByIdSecrets$inboundSchema: z.ZodType<
37
41
  name: z.string(),
38
42
  value: z.string(),
39
43
  prefix: z.string().optional(),
44
+ environmentOverrides: z.record(z.string()).optional(),
40
45
  });
41
46
 
42
47
  /** @internal */
@@ -44,6 +49,7 @@ export type UpdateResourceSecretsByIdSecrets$Outbound = {
44
49
  name: string;
45
50
  value: string;
46
51
  prefix?: string | undefined;
52
+ environmentOverrides?: { [k: string]: string } | undefined;
47
53
  };
48
54
 
49
55
  /** @internal */
@@ -55,6 +61,7 @@ export const UpdateResourceSecretsByIdSecrets$outboundSchema: z.ZodType<
55
61
  name: z.string(),
56
62
  value: z.string(),
57
63
  prefix: z.string().optional(),
64
+ environmentOverrides: z.record(z.string()).optional(),
58
65
  });
59
66
 
60
67
  /**