@vercel/sdk 1.6.8 → 1.6.9

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 (54) hide show
  1. package/bin/mcp-server.js +106 -103
  2. package/bin/mcp-server.js.map +13 -13
  3. package/esm/__tests__/environment.test.js +12 -12
  4. package/esm/__tests__/environment.test.js.map +1 -1
  5. package/esm/__tests__/projects.test.js +13 -15
  6. package/esm/__tests__/projects.test.js.map +1 -1
  7. package/esm/lib/config.d.ts +3 -3
  8. package/esm/lib/config.js +3 -3
  9. package/esm/mcp-server/mcp-server.js +1 -1
  10. package/esm/mcp-server/server.js +1 -1
  11. package/esm/models/authuser.d.ts +0 -3
  12. package/esm/models/authuser.d.ts.map +1 -1
  13. package/esm/models/authuser.js +0 -1
  14. package/esm/models/authuser.js.map +1 -1
  15. package/esm/models/createprojectenvop.d.ts +6 -6
  16. package/esm/models/createprojectenvop.js +2 -2
  17. package/esm/models/createprojectenvop.js.map +1 -1
  18. package/esm/models/createprojectop.d.ts +9 -9
  19. package/esm/models/createprojectop.js +3 -3
  20. package/esm/models/createprojectop.js.map +1 -1
  21. package/esm/models/editprojectenvop.d.ts +3 -3
  22. package/esm/models/editprojectenvop.js +1 -1
  23. package/esm/models/editprojectenvop.js.map +1 -1
  24. package/esm/models/getbypassipop.d.ts +28 -28
  25. package/esm/models/getbypassipop.d.ts.map +1 -1
  26. package/esm/models/getbypassipop.js +28 -28
  27. package/esm/models/getbypassipop.js.map +1 -1
  28. package/esm/models/removeprojectenvop.d.ts +9 -9
  29. package/esm/models/removeprojectenvop.js +3 -3
  30. package/esm/models/removeprojectenvop.js.map +1 -1
  31. package/esm/models/updateprojectop.d.ts +78 -9
  32. package/esm/models/updateprojectop.d.ts.map +1 -1
  33. package/esm/models/updateprojectop.js +57 -3
  34. package/esm/models/updateprojectop.js.map +1 -1
  35. package/esm/models/userevent.d.ts +37 -80
  36. package/esm/models/userevent.d.ts.map +1 -1
  37. package/esm/models/userevent.js +25 -58
  38. package/esm/models/userevent.js.map +1 -1
  39. package/jsr.json +1 -1
  40. package/package.json +1 -1
  41. package/src/__tests__/environment.test.ts +12 -12
  42. package/src/__tests__/projects.test.ts +13 -15
  43. package/src/lib/config.ts +3 -3
  44. package/src/mcp-server/mcp-server.ts +1 -1
  45. package/src/mcp-server/server.ts +1 -1
  46. package/src/models/authuser.ts +0 -1
  47. package/src/models/createprojectenvop.ts +2 -2
  48. package/src/models/createprojectop.ts +3 -3
  49. package/src/models/editprojectenvop.ts +1 -1
  50. package/src/models/getbypassipop.ts +56 -56
  51. package/src/models/removeprojectenvop.ts +3 -3
  52. package/src/models/updateprojectop.ts +149 -3
  53. package/src/models/userevent.ts +41 -109
  54. package/vercel-spec.json +66 -82
@@ -198,6 +198,25 @@ export type UpdateProjectPaths = {
198
198
  export type UpdateProjectOptionsAllowlist = {
199
199
  paths: Array<UpdateProjectPaths>;
200
200
  };
201
+ export type ConnectConfigurations1 = {
202
+ /**
203
+ * The ID of the environment
204
+ */
205
+ envId: string;
206
+ /**
207
+ * The ID of the Secure Compute network
208
+ */
209
+ connectConfigurationId: string;
210
+ /**
211
+ * Whether the configuration should be passive, meaning builds will not run there and only passive Serverless Functions will be deployed
212
+ */
213
+ passive: boolean;
214
+ /**
215
+ * Flag saying if project builds should use Secure Compute
216
+ */
217
+ buildsEnabled: boolean;
218
+ };
219
+ export type ConnectConfigurations = ConnectConfigurations1;
201
220
  export type UpdateProjectRequestBody = {
202
221
  autoExposeSystemEnvs?: boolean | undefined;
203
222
  autoAssignCustomDomains?: boolean | undefined;
@@ -311,6 +330,10 @@ export type UpdateProjectRequestBody = {
311
330
  * Specify a list of paths that should not be protected by Deployment Protection to enable Cors preflight requests
312
331
  */
313
332
  optionsAllowlist?: UpdateProjectOptionsAllowlist | null | undefined;
333
+ /**
334
+ * The list of connections from project environment to Secure Compute network
335
+ */
336
+ connectConfigurations?: Array<ConnectConfigurations1> | null | undefined;
314
337
  };
315
338
  export type UpdateProjectRequest = {
316
339
  /**
@@ -395,10 +418,10 @@ export type UpdateProjectTarget2 = ClosedEnum<typeof UpdateProjectTarget2>;
395
418
  export type UpdateProjectTarget = Array<string> | UpdateProjectTarget2;
396
419
  export declare const UpdateProjectType: {
397
420
  readonly System: "system";
421
+ readonly Secret: "secret";
398
422
  readonly Encrypted: "encrypted";
399
423
  readonly Plain: "plain";
400
424
  readonly Sensitive: "sensitive";
401
- readonly Secret: "secret";
402
425
  };
403
426
  export type UpdateProjectType = ClosedEnum<typeof UpdateProjectType>;
404
427
  export declare const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type: {
@@ -1545,8 +1568,8 @@ export type UpdateProjectSrc2 = {
1545
1568
  };
1546
1569
  export type UpdateProjectSrc = UpdateProjectSrc2 | string;
1547
1570
  export declare const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType: {
1548
- readonly Path: "path";
1549
1571
  readonly Host: "host";
1572
+ readonly Path: "path";
1550
1573
  readonly Method: "method";
1551
1574
  readonly Header: "header";
1552
1575
  readonly Cookie: "cookie";
@@ -1579,8 +1602,8 @@ export type UpdateProjectHas = {
1579
1602
  value?: UpdateProjectValue2 | string | undefined;
1580
1603
  };
1581
1604
  export declare const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType: {
1582
- readonly Path: "path";
1583
1605
  readonly Host: "host";
1606
+ readonly Path: "path";
1584
1607
  readonly Method: "method";
1585
1608
  readonly Header: "header";
1586
1609
  readonly Cookie: "cookie";
@@ -2188,6 +2211,51 @@ export declare namespace UpdateProjectOptionsAllowlist$ {
2188
2211
  export declare function updateProjectOptionsAllowlistToJSON(updateProjectOptionsAllowlist: UpdateProjectOptionsAllowlist): string;
2189
2212
  export declare function updateProjectOptionsAllowlistFromJSON(jsonString: string): SafeParseResult<UpdateProjectOptionsAllowlist, SDKValidationError>;
2190
2213
  /** @internal */
2214
+ export declare const ConnectConfigurations1$inboundSchema: z.ZodType<ConnectConfigurations1, z.ZodTypeDef, unknown>;
2215
+ /** @internal */
2216
+ export type ConnectConfigurations1$Outbound = {
2217
+ envId: string;
2218
+ connectConfigurationId: string;
2219
+ passive: boolean;
2220
+ buildsEnabled: boolean;
2221
+ };
2222
+ /** @internal */
2223
+ export declare const ConnectConfigurations1$outboundSchema: z.ZodType<ConnectConfigurations1$Outbound, z.ZodTypeDef, ConnectConfigurations1>;
2224
+ /**
2225
+ * @internal
2226
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2227
+ */
2228
+ export declare namespace ConnectConfigurations1$ {
2229
+ /** @deprecated use `ConnectConfigurations1$inboundSchema` instead. */
2230
+ const inboundSchema: z.ZodType<ConnectConfigurations1, z.ZodTypeDef, unknown>;
2231
+ /** @deprecated use `ConnectConfigurations1$outboundSchema` instead. */
2232
+ const outboundSchema: z.ZodType<ConnectConfigurations1$Outbound, z.ZodTypeDef, ConnectConfigurations1>;
2233
+ /** @deprecated use `ConnectConfigurations1$Outbound` instead. */
2234
+ type Outbound = ConnectConfigurations1$Outbound;
2235
+ }
2236
+ export declare function connectConfigurations1ToJSON(connectConfigurations1: ConnectConfigurations1): string;
2237
+ export declare function connectConfigurations1FromJSON(jsonString: string): SafeParseResult<ConnectConfigurations1, SDKValidationError>;
2238
+ /** @internal */
2239
+ export declare const ConnectConfigurations$inboundSchema: z.ZodType<ConnectConfigurations, z.ZodTypeDef, unknown>;
2240
+ /** @internal */
2241
+ export type ConnectConfigurations$Outbound = ConnectConfigurations1$Outbound;
2242
+ /** @internal */
2243
+ export declare const ConnectConfigurations$outboundSchema: z.ZodType<ConnectConfigurations$Outbound, z.ZodTypeDef, ConnectConfigurations>;
2244
+ /**
2245
+ * @internal
2246
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2247
+ */
2248
+ export declare namespace ConnectConfigurations$ {
2249
+ /** @deprecated use `ConnectConfigurations$inboundSchema` instead. */
2250
+ const inboundSchema: z.ZodType<ConnectConfigurations1, z.ZodTypeDef, unknown>;
2251
+ /** @deprecated use `ConnectConfigurations$outboundSchema` instead. */
2252
+ const outboundSchema: z.ZodType<ConnectConfigurations1$Outbound, z.ZodTypeDef, ConnectConfigurations1>;
2253
+ /** @deprecated use `ConnectConfigurations$Outbound` instead. */
2254
+ type Outbound = ConnectConfigurations$Outbound;
2255
+ }
2256
+ export declare function connectConfigurationsToJSON(connectConfigurations: ConnectConfigurations): string;
2257
+ export declare function connectConfigurationsFromJSON(jsonString: string): SafeParseResult<ConnectConfigurations, SDKValidationError>;
2258
+ /** @internal */
2191
2259
  export declare const UpdateProjectRequestBody$inboundSchema: z.ZodType<UpdateProjectRequestBody, z.ZodTypeDef, unknown>;
2192
2260
  /** @internal */
2193
2261
  export type UpdateProjectRequestBody$Outbound = {
@@ -2223,6 +2291,7 @@ export type UpdateProjectRequestBody$Outbound = {
2223
2291
  ssoProtection?: UpdateProjectSsoProtection$Outbound | null | undefined;
2224
2292
  trustedIps?: UpdateProjectTrustedIps$Outbound | null | undefined;
2225
2293
  optionsAllowlist?: UpdateProjectOptionsAllowlist$Outbound | null | undefined;
2294
+ connectConfigurations?: Array<ConnectConfigurations1$Outbound> | null | undefined;
2226
2295
  };
2227
2296
  /** @internal */
2228
2297
  export declare const UpdateProjectRequestBody$outboundSchema: z.ZodType<UpdateProjectRequestBody$Outbound, z.ZodTypeDef, UpdateProjectRequestBody>;
@@ -2474,18 +2543,18 @@ export declare namespace UpdateProjectType$ {
2474
2543
  /** @deprecated use `UpdateProjectType$inboundSchema` instead. */
2475
2544
  const inboundSchema: z.ZodNativeEnum<{
2476
2545
  readonly System: "system";
2546
+ readonly Secret: "secret";
2477
2547
  readonly Encrypted: "encrypted";
2478
2548
  readonly Plain: "plain";
2479
2549
  readonly Sensitive: "sensitive";
2480
- readonly Secret: "secret";
2481
2550
  }>;
2482
2551
  /** @deprecated use `UpdateProjectType$outboundSchema` instead. */
2483
2552
  const outboundSchema: z.ZodNativeEnum<{
2484
2553
  readonly System: "system";
2554
+ readonly Secret: "secret";
2485
2555
  readonly Encrypted: "encrypted";
2486
2556
  readonly Plain: "plain";
2487
2557
  readonly Sensitive: "sensitive";
2488
- readonly Secret: "secret";
2489
2558
  }>;
2490
2559
  }
2491
2560
  /** @internal */
@@ -5605,8 +5674,8 @@ export declare const UpdateProjectProjectsResponse200ApplicationJSONResponseBody
5605
5674
  export declare namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$ {
5606
5675
  /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema` instead. */
5607
5676
  const inboundSchema: z.ZodNativeEnum<{
5608
- readonly Path: "path";
5609
5677
  readonly Host: "host";
5678
+ readonly Path: "path";
5610
5679
  readonly Method: "method";
5611
5680
  readonly Header: "header";
5612
5681
  readonly Cookie: "cookie";
@@ -5620,8 +5689,8 @@ export declare namespace UpdateProjectProjectsResponse200ApplicationJSONResponse
5620
5689
  }>;
5621
5690
  /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema` instead. */
5622
5691
  const outboundSchema: z.ZodNativeEnum<{
5623
- readonly Path: "path";
5624
5692
  readonly Host: "host";
5693
+ readonly Path: "path";
5625
5694
  readonly Method: "method";
5626
5695
  readonly Header: "header";
5627
5696
  readonly Cookie: "cookie";
@@ -5721,8 +5790,8 @@ export declare const UpdateProjectProjectsResponse200ApplicationJSONResponseBody
5721
5790
  export declare namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$ {
5722
5791
  /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema` instead. */
5723
5792
  const inboundSchema: z.ZodNativeEnum<{
5724
- readonly Path: "path";
5725
5793
  readonly Host: "host";
5794
+ readonly Path: "path";
5726
5795
  readonly Method: "method";
5727
5796
  readonly Header: "header";
5728
5797
  readonly Cookie: "cookie";
@@ -5736,8 +5805,8 @@ export declare namespace UpdateProjectProjectsResponse200ApplicationJSONResponse
5736
5805
  }>;
5737
5806
  /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema` instead. */
5738
5807
  const outboundSchema: z.ZodNativeEnum<{
5739
- readonly Path: "path";
5740
5808
  readonly Host: "host";
5809
+ readonly Path: "path";
5741
5810
  readonly Method: "method";
5742
5811
  readonly Header: "header";
5743
5812
  readonly Cookie: "cookie";