@vercel/sdk 1.7.5 → 1.7.7

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 (105) hide show
  1. package/bin/mcp-server.js +2231 -2062
  2. package/bin/mcp-server.js.map +34 -25
  3. package/esm/__tests__/projects.test.js +15 -13
  4. package/esm/__tests__/projects.test.js.map +1 -1
  5. package/esm/lib/config.d.ts +3 -3
  6. package/esm/lib/config.js +3 -3
  7. package/esm/mcp-server/mcp-server.js +1 -1
  8. package/esm/mcp-server/server.js +1 -1
  9. package/esm/models/authuser.d.ts +0 -93
  10. package/esm/models/authuser.d.ts.map +1 -1
  11. package/esm/models/authuser.js +0 -64
  12. package/esm/models/authuser.js.map +1 -1
  13. package/esm/models/authuserlimited.d.ts +0 -34
  14. package/esm/models/authuserlimited.d.ts.map +1 -1
  15. package/esm/models/authuserlimited.js +0 -23
  16. package/esm/models/authuserlimited.js.map +1 -1
  17. package/esm/models/createdeploymentop.d.ts +43 -43
  18. package/esm/models/createdeploymentop.d.ts.map +1 -1
  19. package/esm/models/createdeploymentop.js +27 -27
  20. package/esm/models/createdeploymentop.js.map +1 -1
  21. package/esm/models/createprojectop.d.ts +18 -9
  22. package/esm/models/createprojectop.d.ts.map +1 -1
  23. package/esm/models/createprojectop.js +9 -3
  24. package/esm/models/createprojectop.js.map +1 -1
  25. package/esm/models/createwebhookop.d.ts +6 -0
  26. package/esm/models/createwebhookop.d.ts.map +1 -1
  27. package/esm/models/createwebhookop.js +2 -0
  28. package/esm/models/createwebhookop.js.map +1 -1
  29. package/esm/models/getaliasop.d.ts +108 -0
  30. package/esm/models/getaliasop.d.ts.map +1 -1
  31. package/esm/models/getaliasop.js +84 -0
  32. package/esm/models/getaliasop.js.map +1 -1
  33. package/esm/models/getprojectsop.d.ts +9 -0
  34. package/esm/models/getprojectsop.d.ts.map +1 -1
  35. package/esm/models/getprojectsop.js +6 -0
  36. package/esm/models/getprojectsop.js.map +1 -1
  37. package/esm/models/getwebhookop.d.ts +3 -0
  38. package/esm/models/getwebhookop.d.ts.map +1 -1
  39. package/esm/models/getwebhookop.js +1 -0
  40. package/esm/models/getwebhookop.js.map +1 -1
  41. package/esm/models/getwebhooksop.d.ts +6 -0
  42. package/esm/models/getwebhooksop.d.ts.map +1 -1
  43. package/esm/models/getwebhooksop.js +2 -0
  44. package/esm/models/getwebhooksop.js.map +1 -1
  45. package/esm/models/importresourceop.d.ts +44 -7
  46. package/esm/models/importresourceop.d.ts.map +1 -1
  47. package/esm/models/importresourceop.js +31 -2
  48. package/esm/models/importresourceop.js.map +1 -1
  49. package/esm/models/listaliasesop.d.ts +108 -0
  50. package/esm/models/listaliasesop.d.ts.map +1 -1
  51. package/esm/models/listaliasesop.js +85 -0
  52. package/esm/models/listaliasesop.js.map +1 -1
  53. package/esm/models/listauthtokensop.d.ts +0 -5
  54. package/esm/models/listauthtokensop.d.ts.map +1 -1
  55. package/esm/models/listauthtokensop.js +0 -2
  56. package/esm/models/listauthtokensop.js.map +1 -1
  57. package/esm/models/teamlimited.d.ts +29 -2
  58. package/esm/models/teamlimited.d.ts.map +1 -1
  59. package/esm/models/teamlimited.js +31 -2
  60. package/esm/models/teamlimited.js.map +1 -1
  61. package/esm/models/updateprojectdatacacheop.d.ts +9 -0
  62. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  63. package/esm/models/updateprojectdatacacheop.js +6 -0
  64. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  65. package/esm/models/updateprojectop.d.ts +9 -0
  66. package/esm/models/updateprojectop.d.ts.map +1 -1
  67. package/esm/models/updateprojectop.js +6 -0
  68. package/esm/models/updateprojectop.js.map +1 -1
  69. package/esm/models/updateresourcesecretsbyidop.d.ts +45 -8
  70. package/esm/models/updateresourcesecretsbyidop.d.ts.map +1 -1
  71. package/esm/models/updateresourcesecretsbyidop.js +31 -2
  72. package/esm/models/updateresourcesecretsbyidop.js.map +1 -1
  73. package/esm/models/updateresourcesecretsop.d.ts +44 -7
  74. package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
  75. package/esm/models/updateresourcesecretsop.js +33 -2
  76. package/esm/models/updateresourcesecretsop.js.map +1 -1
  77. package/esm/models/userevent.d.ts +1119 -1091
  78. package/esm/models/userevent.d.ts.map +1 -1
  79. package/esm/models/userevent.js +1412 -1383
  80. package/esm/models/userevent.js.map +1 -1
  81. package/jsr.json +1 -1
  82. package/package.json +2 -2
  83. package/src/__tests__/projects.test.ts +15 -13
  84. package/src/lib/config.ts +3 -3
  85. package/src/mcp-server/mcp-server.ts +1 -1
  86. package/src/mcp-server/server.ts +1 -1
  87. package/src/models/authuser.ts +0 -145
  88. package/src/models/authuserlimited.ts +0 -40
  89. package/src/models/createdeploymentop.ts +75 -53
  90. package/src/models/createprojectop.ts +18 -3
  91. package/src/models/createwebhookop.ts +2 -0
  92. package/src/models/getaliasop.ts +204 -0
  93. package/src/models/getprojectsop.ts +15 -0
  94. package/src/models/getwebhookop.ts +1 -0
  95. package/src/models/getwebhooksop.ts +2 -0
  96. package/src/models/importresourceop.ts +93 -5
  97. package/src/models/listaliasesop.ts +213 -0
  98. package/src/models/listauthtokensop.ts +0 -7
  99. package/src/models/teamlimited.ts +56 -4
  100. package/src/models/updateprojectdatacacheop.ts +15 -0
  101. package/src/models/updateprojectop.ts +15 -0
  102. package/src/models/updateresourcesecretsbyidop.ts +105 -6
  103. package/src/models/updateresourcesecretsop.ts +85 -5
  104. package/src/models/userevent.ts +2545 -2477
  105. package/vercel-spec.json +276 -98
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@vercel/sdk",
5
- "version": "1.7.5",
5
+ "version": "1.7.7",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models": "./src/models/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/sdk",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -59,7 +59,7 @@
59
59
  "typescript": "^5.4.5",
60
60
  "typescript-eslint": "^8.22.0",
61
61
  "vitest": "^3.0.2",
62
- "zod": "^3.23.4"
62
+ "zod": "^3.25.17"
63
63
  },
64
64
  "dependencies": {
65
65
 
@@ -253,19 +253,21 @@ test("Projects Create Project Env", async () => {
253
253
  upsert: "true",
254
254
  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
255
255
  slug: "my-team-url-slug",
256
- requestBody: {
257
- key: "API_URL",
258
- value: "https://api.vercel.com",
259
- type: "plain",
260
- target: [
261
- "preview",
262
- ],
263
- gitBranch: "feature-1",
264
- comment: "database connection string for production",
265
- customEnvironmentIds: [
266
- "env_1234567890",
267
- ],
268
- },
256
+ requestBody: [
257
+ {
258
+ key: "API_URL",
259
+ value: "https://api.vercel.com",
260
+ type: "plain",
261
+ target: [
262
+ "preview",
263
+ ],
264
+ gitBranch: "feature-1",
265
+ comment: "database connection string for production",
266
+ customEnvironmentIds: [
267
+ "env_1234567890",
268
+ ],
269
+ },
270
+ ],
269
271
  });
270
272
  expect(result).toBeDefined();
271
273
  });
package/src/lib/config.ts CHANGED
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "0.0.1",
60
- sdkVersion: "1.7.5",
61
- genVersion: "2.605.6",
62
- userAgent: "speakeasy-sdk/typescript 1.7.5 2.605.6 0.0.1 @vercel/sdk",
60
+ sdkVersion: "1.7.7",
61
+ genVersion: "2.610.0",
62
+ userAgent: "speakeasy-sdk/typescript 1.7.7 2.610.0 0.0.1 @vercel/sdk",
63
63
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.7.5",
22
+ currentVersion: "1.7.7",
23
23
  },
24
24
  });
25
25
 
@@ -191,7 +191,7 @@ export function createMCPServer(deps: {
191
191
  }) {
192
192
  const server = new McpServer({
193
193
  name: "Vercel",
194
- version: "1.7.5",
194
+ version: "1.7.7",
195
195
  });
196
196
 
197
197
  const client = new VercelCore({
@@ -325,48 +325,6 @@ export type FeatureBlocks = {
325
325
  webAnalytics?: WebAnalytics | undefined;
326
326
  };
327
327
 
328
- export type NorthstarMigration = {
329
- /**
330
- * The ID of the team we created for this user.
331
- */
332
- teamId: string;
333
- /**
334
- * The number of projects migrated for this user.
335
- */
336
- projects: number;
337
- /**
338
- * The number of stores migrated for this user.
339
- */
340
- stores: number;
341
- /**
342
- * The number of integration configurations migrated for this user.
343
- */
344
- integrationConfigurations: number;
345
- /**
346
- * The number of integration clients migrated for this user.
347
- */
348
- integrationClients: number;
349
- /**
350
- * The migration start time timestamp for this user.
351
- */
352
- startTime: number;
353
- /**
354
- * The migration end time timestamp for this user.
355
- */
356
- endTime: number;
357
- };
358
-
359
- /**
360
- * The user's version. Will always be `northstar`.
361
- */
362
- export const Version = {
363
- Northstar: "northstar",
364
- } as const;
365
- /**
366
- * The user's version. Will always be `northstar`.
367
- */
368
- export type Version = ClosedEnum<typeof Version>;
369
-
370
328
  /**
371
329
  * Data for the currently authenticated User.
372
330
  */
@@ -425,7 +383,6 @@ export type AuthUser = {
425
383
  * Feature blocks for the user
426
384
  */
427
385
  featureBlocks?: FeatureBlocks | undefined;
428
- northstarMigration?: NorthstarMigration | undefined;
429
386
  /**
430
387
  * The User's unique identifier.
431
388
  */
@@ -450,10 +407,6 @@ export type AuthUser = {
450
407
  * The user's default team.
451
408
  */
452
409
  defaultTeamId: string | null;
453
- /**
454
- * The user's version. Will always be `northstar`.
455
- */
456
- version: Version;
457
410
  };
458
411
 
459
412
  /** @internal */
@@ -1565,97 +1518,6 @@ export function featureBlocksFromJSON(
1565
1518
  );
1566
1519
  }
1567
1520
 
1568
- /** @internal */
1569
- export const NorthstarMigration$inboundSchema: z.ZodType<
1570
- NorthstarMigration,
1571
- z.ZodTypeDef,
1572
- unknown
1573
- > = z.object({
1574
- teamId: z.string(),
1575
- projects: z.number(),
1576
- stores: z.number(),
1577
- integrationConfigurations: z.number(),
1578
- integrationClients: z.number(),
1579
- startTime: z.number(),
1580
- endTime: z.number(),
1581
- });
1582
-
1583
- /** @internal */
1584
- export type NorthstarMigration$Outbound = {
1585
- teamId: string;
1586
- projects: number;
1587
- stores: number;
1588
- integrationConfigurations: number;
1589
- integrationClients: number;
1590
- startTime: number;
1591
- endTime: number;
1592
- };
1593
-
1594
- /** @internal */
1595
- export const NorthstarMigration$outboundSchema: z.ZodType<
1596
- NorthstarMigration$Outbound,
1597
- z.ZodTypeDef,
1598
- NorthstarMigration
1599
- > = z.object({
1600
- teamId: z.string(),
1601
- projects: z.number(),
1602
- stores: z.number(),
1603
- integrationConfigurations: z.number(),
1604
- integrationClients: z.number(),
1605
- startTime: z.number(),
1606
- endTime: z.number(),
1607
- });
1608
-
1609
- /**
1610
- * @internal
1611
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1612
- */
1613
- export namespace NorthstarMigration$ {
1614
- /** @deprecated use `NorthstarMigration$inboundSchema` instead. */
1615
- export const inboundSchema = NorthstarMigration$inboundSchema;
1616
- /** @deprecated use `NorthstarMigration$outboundSchema` instead. */
1617
- export const outboundSchema = NorthstarMigration$outboundSchema;
1618
- /** @deprecated use `NorthstarMigration$Outbound` instead. */
1619
- export type Outbound = NorthstarMigration$Outbound;
1620
- }
1621
-
1622
- export function northstarMigrationToJSON(
1623
- northstarMigration: NorthstarMigration,
1624
- ): string {
1625
- return JSON.stringify(
1626
- NorthstarMigration$outboundSchema.parse(northstarMigration),
1627
- );
1628
- }
1629
-
1630
- export function northstarMigrationFromJSON(
1631
- jsonString: string,
1632
- ): SafeParseResult<NorthstarMigration, SDKValidationError> {
1633
- return safeParse(
1634
- jsonString,
1635
- (x) => NorthstarMigration$inboundSchema.parse(JSON.parse(x)),
1636
- `Failed to parse 'NorthstarMigration' from JSON`,
1637
- );
1638
- }
1639
-
1640
- /** @internal */
1641
- export const Version$inboundSchema: z.ZodNativeEnum<typeof Version> = z
1642
- .nativeEnum(Version);
1643
-
1644
- /** @internal */
1645
- export const Version$outboundSchema: z.ZodNativeEnum<typeof Version> =
1646
- Version$inboundSchema;
1647
-
1648
- /**
1649
- * @internal
1650
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1651
- */
1652
- export namespace Version$ {
1653
- /** @deprecated use `Version$inboundSchema` instead. */
1654
- export const inboundSchema = Version$inboundSchema;
1655
- /** @deprecated use `Version$outboundSchema` instead. */
1656
- export const outboundSchema = Version$outboundSchema;
1657
- }
1658
-
1659
1521
  /** @internal */
1660
1522
  export const AuthUser$inboundSchema: z.ZodType<
1661
1523
  AuthUser,
@@ -1688,14 +1550,12 @@ export const AuthUser$inboundSchema: z.ZodType<
1688
1550
  remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(),
1689
1551
  dataCache: z.lazy(() => DataCache$inboundSchema).optional(),
1690
1552
  featureBlocks: z.lazy(() => FeatureBlocks$inboundSchema).optional(),
1691
- northstarMigration: z.lazy(() => NorthstarMigration$inboundSchema).optional(),
1692
1553
  id: z.string(),
1693
1554
  email: z.string(),
1694
1555
  name: z.nullable(z.string()),
1695
1556
  username: z.string(),
1696
1557
  avatar: z.nullable(z.string()),
1697
1558
  defaultTeamId: z.nullable(z.string()),
1698
- version: Version$inboundSchema,
1699
1559
  });
1700
1560
 
1701
1561
  /** @internal */
@@ -1720,14 +1580,12 @@ export type AuthUser$Outbound = {
1720
1580
  remoteCaching?: RemoteCaching$Outbound | undefined;
1721
1581
  dataCache?: DataCache$Outbound | undefined;
1722
1582
  featureBlocks?: FeatureBlocks$Outbound | undefined;
1723
- northstarMigration?: NorthstarMigration$Outbound | undefined;
1724
1583
  id: string;
1725
1584
  email: string;
1726
1585
  name: string | null;
1727
1586
  username: string;
1728
1587
  avatar: string | null;
1729
1588
  defaultTeamId: string | null;
1730
- version: string;
1731
1589
  };
1732
1590
 
1733
1591
  /** @internal */
@@ -1762,15 +1620,12 @@ export const AuthUser$outboundSchema: z.ZodType<
1762
1620
  remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(),
1763
1621
  dataCache: z.lazy(() => DataCache$outboundSchema).optional(),
1764
1622
  featureBlocks: z.lazy(() => FeatureBlocks$outboundSchema).optional(),
1765
- northstarMigration: z.lazy(() => NorthstarMigration$outboundSchema)
1766
- .optional(),
1767
1623
  id: z.string(),
1768
1624
  email: z.string(),
1769
1625
  name: z.nullable(z.string()),
1770
1626
  username: z.string(),
1771
1627
  avatar: z.nullable(z.string()),
1772
1628
  defaultTeamId: z.nullable(z.string()),
1773
- version: Version$outboundSchema,
1774
1629
  });
1775
1630
 
1776
1631
  /**
@@ -4,21 +4,9 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../lib/schemas.js";
7
- import { ClosedEnum } from "../types/enums.js";
8
7
  import { Result as SafeParseResult } from "../types/fp.js";
9
8
  import { SDKValidationError } from "./sdkvalidationerror.js";
10
9
 
11
- /**
12
- * The user's version. Will always be `northstar`.
13
- */
14
- export const AuthUserLimitedVersion = {
15
- Northstar: "northstar",
16
- } as const;
17
- /**
18
- * The user's version. Will always be `northstar`.
19
- */
20
- export type AuthUserLimitedVersion = ClosedEnum<typeof AuthUserLimitedVersion>;
21
-
22
10
  /**
23
11
  * A limited form of data for the currently authenticated User, due to the authentication token missing privileges to read the full User data.
24
12
  */
@@ -51,33 +39,8 @@ export type AuthUserLimited = {
51
39
  * The user's default team.
52
40
  */
53
41
  defaultTeamId: string | null;
54
- /**
55
- * The user's version. Will always be `northstar`.
56
- */
57
- version: AuthUserLimitedVersion;
58
42
  };
59
43
 
60
- /** @internal */
61
- export const AuthUserLimitedVersion$inboundSchema: z.ZodNativeEnum<
62
- typeof AuthUserLimitedVersion
63
- > = z.nativeEnum(AuthUserLimitedVersion);
64
-
65
- /** @internal */
66
- export const AuthUserLimitedVersion$outboundSchema: z.ZodNativeEnum<
67
- typeof AuthUserLimitedVersion
68
- > = AuthUserLimitedVersion$inboundSchema;
69
-
70
- /**
71
- * @internal
72
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
- */
74
- export namespace AuthUserLimitedVersion$ {
75
- /** @deprecated use `AuthUserLimitedVersion$inboundSchema` instead. */
76
- export const inboundSchema = AuthUserLimitedVersion$inboundSchema;
77
- /** @deprecated use `AuthUserLimitedVersion$outboundSchema` instead. */
78
- export const outboundSchema = AuthUserLimitedVersion$outboundSchema;
79
- }
80
-
81
44
  /** @internal */
82
45
  export const AuthUserLimited$inboundSchema: z.ZodType<
83
46
  AuthUserLimited,
@@ -91,7 +54,6 @@ export const AuthUserLimited$inboundSchema: z.ZodType<
91
54
  username: z.string(),
92
55
  avatar: z.nullable(z.string()),
93
56
  defaultTeamId: z.nullable(z.string()),
94
- version: AuthUserLimitedVersion$inboundSchema,
95
57
  });
96
58
 
97
59
  /** @internal */
@@ -103,7 +65,6 @@ export type AuthUserLimited$Outbound = {
103
65
  username: string;
104
66
  avatar: string | null;
105
67
  defaultTeamId: string | null;
106
- version: string;
107
68
  };
108
69
 
109
70
  /** @internal */
@@ -119,7 +80,6 @@ export const AuthUserLimited$outboundSchema: z.ZodType<
119
80
  username: z.string(),
120
81
  avatar: z.nullable(z.string()),
121
82
  defaultTeamId: z.nullable(z.string()),
122
- version: AuthUserLimitedVersion$outboundSchema,
123
83
  });
124
84
 
125
85
  /**
@@ -613,8 +613,8 @@ export type Creator = {
613
613
  };
614
614
 
615
615
  export const CreateDeploymentReadyState = {
616
- Building: "BUILDING",
617
616
  Error: "ERROR",
617
+ Building: "BUILDING",
618
618
  Initializing: "INITIALIZING",
619
619
  Ready: "READY",
620
620
  } as const;
@@ -631,10 +631,10 @@ export type CreateDeploymentOutput = {
631
631
  * A partial representation of a Build used by the deployment endpoint.
632
632
  */
633
633
  export type Lambdas = {
634
- id?: string | undefined;
635
634
  createdAt?: number | undefined;
636
- entrypoint?: string | null | undefined;
635
+ id?: string | undefined;
637
636
  readyState?: CreateDeploymentReadyState | undefined;
637
+ entrypoint?: string | null | undefined;
638
638
  readyStateAt?: number | undefined;
639
639
  output: Array<CreateDeploymentOutput>;
640
640
  };
@@ -677,9 +677,9 @@ export type CustomEnvironmentType = ClosedEnum<typeof CustomEnvironmentType>;
677
677
  * The type of matching to perform
678
678
  */
679
679
  export const CreateDeploymentCustomEnvironmentType = {
680
+ EndsWith: "endsWith",
680
681
  StartsWith: "startsWith",
681
682
  Equals: "equals",
682
- EndsWith: "endsWith",
683
683
  } as const;
684
684
  /**
685
685
  * The type of matching to perform
@@ -1121,7 +1121,7 @@ export type CreateDeploymentPlan = ClosedEnum<typeof CreateDeploymentPlan>;
1121
1121
  /**
1122
1122
  * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment.
1123
1123
  */
1124
- export type Applications = {
1124
+ export type CreateDeploymentMicrofrontendsApplications = {
1125
1125
  /**
1126
1126
  * This is the production alias, it will always show the most up to date of each application.
1127
1127
  */
@@ -1137,7 +1137,9 @@ export type CreateDeploymentMicrofrontends2 = {
1137
1137
  /**
1138
1138
  * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment.
1139
1139
  */
1140
- applications?: { [k: string]: Applications } | undefined;
1140
+ applications?:
1141
+ | { [k: string]: CreateDeploymentMicrofrontendsApplications }
1142
+ | undefined;
1141
1143
  isDefaultApp: boolean;
1142
1144
  /**
1143
1145
  * The project name of the default app of this deployment's microfrontends group.
@@ -1177,14 +1179,14 @@ export type CreateDeploymentMicrofrontends =
1177
1179
  | CreateDeploymentMicrofrontends2;
1178
1180
 
1179
1181
  export const FunctionType = {
1180
- Fluid: "fluid",
1181
1182
  Standard: "standard",
1183
+ Fluid: "fluid",
1182
1184
  } as const;
1183
1185
  export type FunctionType = ClosedEnum<typeof FunctionType>;
1184
1186
 
1185
1187
  export const FunctionMemoryType = {
1186
- Standard: "standard",
1187
1188
  StandardLegacy: "standard_legacy",
1189
+ Standard: "standard",
1188
1190
  Performance: "performance",
1189
1191
  } as const;
1190
1192
  export type FunctionMemoryType = ClosedEnum<typeof FunctionMemoryType>;
@@ -1217,11 +1219,11 @@ export type Routes3 = {
1217
1219
 
1218
1220
  export const RoutesHandle = {
1219
1221
  Error: "error",
1222
+ Resource: "resource",
1220
1223
  Filesystem: "filesystem",
1221
1224
  Hit: "hit",
1222
1225
  Miss: "miss",
1223
1226
  Rewrite: "rewrite",
1224
- Resource: "resource",
1225
1227
  } as const;
1226
1228
  export type RoutesHandle = ClosedEnum<typeof RoutesHandle>;
1227
1229
 
@@ -1334,8 +1336,8 @@ export type CreateDeploymentGitRepoDeploymentsType = ClosedEnum<
1334
1336
  >;
1335
1337
 
1336
1338
  export const CreateDeploymentGitRepoOwnerType = {
1337
- Team: "team",
1338
1339
  User: "user",
1340
+ Team: "team",
1339
1341
  } as const;
1340
1342
  export type CreateDeploymentGitRepoOwnerType = ClosedEnum<
1341
1343
  typeof CreateDeploymentGitRepoOwnerType
@@ -1362,8 +1364,8 @@ export type CreateDeploymentGitRepoType = ClosedEnum<
1362
1364
  >;
1363
1365
 
1364
1366
  export const GitRepoOwnerType = {
1365
- Team: "team",
1366
1367
  User: "user",
1368
+ Team: "team",
1367
1369
  } as const;
1368
1370
  export type GitRepoOwnerType = ClosedEnum<typeof GitRepoOwnerType>;
1369
1371
 
@@ -1386,8 +1388,8 @@ export const GitRepoType = {
1386
1388
  export type GitRepoType = ClosedEnum<typeof GitRepoType>;
1387
1389
 
1388
1390
  export const OwnerType = {
1389
- Team: "team",
1390
1391
  User: "user",
1392
+ Team: "team",
1391
1393
  } as const;
1392
1394
  export type OwnerType = ClosedEnum<typeof OwnerType>;
1393
1395
 
@@ -3668,20 +3670,20 @@ export function createDeploymentOutputFromJSON(
3668
3670
  /** @internal */
3669
3671
  export const Lambdas$inboundSchema: z.ZodType<Lambdas, z.ZodTypeDef, unknown> =
3670
3672
  z.object({
3671
- id: z.string().optional(),
3672
3673
  createdAt: z.number().optional(),
3673
- entrypoint: z.nullable(z.string()).optional(),
3674
+ id: z.string().optional(),
3674
3675
  readyState: CreateDeploymentReadyState$inboundSchema.optional(),
3676
+ entrypoint: z.nullable(z.string()).optional(),
3675
3677
  readyStateAt: z.number().optional(),
3676
3678
  output: z.array(z.lazy(() => CreateDeploymentOutput$inboundSchema)),
3677
3679
  });
3678
3680
 
3679
3681
  /** @internal */
3680
3682
  export type Lambdas$Outbound = {
3681
- id?: string | undefined;
3682
3683
  createdAt?: number | undefined;
3683
- entrypoint?: string | null | undefined;
3684
+ id?: string | undefined;
3684
3685
  readyState?: string | undefined;
3686
+ entrypoint?: string | null | undefined;
3685
3687
  readyStateAt?: number | undefined;
3686
3688
  output: Array<CreateDeploymentOutput$Outbound>;
3687
3689
  };
@@ -3692,10 +3694,10 @@ export const Lambdas$outboundSchema: z.ZodType<
3692
3694
  z.ZodTypeDef,
3693
3695
  Lambdas
3694
3696
  > = z.object({
3695
- id: z.string().optional(),
3696
3697
  createdAt: z.number().optional(),
3697
- entrypoint: z.nullable(z.string()).optional(),
3698
+ id: z.string().optional(),
3698
3699
  readyState: CreateDeploymentReadyState$outboundSchema.optional(),
3700
+ entrypoint: z.nullable(z.string()).optional(),
3699
3701
  readyStateAt: z.number().optional(),
3700
3702
  output: z.array(z.lazy(() => CreateDeploymentOutput$outboundSchema)),
3701
3703
  });
@@ -6084,58 +6086,72 @@ export namespace CreateDeploymentPlan$ {
6084
6086
  }
6085
6087
 
6086
6088
  /** @internal */
6087
- export const Applications$inboundSchema: z.ZodType<
6088
- Applications,
6089
- z.ZodTypeDef,
6090
- unknown
6091
- > = z.object({
6092
- productionHost: z.string(),
6093
- deploymentAlias: z.string().optional(),
6094
- deploymentHost: z.string().optional(),
6095
- });
6089
+ export const CreateDeploymentMicrofrontendsApplications$inboundSchema:
6090
+ z.ZodType<CreateDeploymentMicrofrontendsApplications, z.ZodTypeDef, unknown> =
6091
+ z.object({
6092
+ productionHost: z.string(),
6093
+ deploymentAlias: z.string().optional(),
6094
+ deploymentHost: z.string().optional(),
6095
+ });
6096
6096
 
6097
6097
  /** @internal */
6098
- export type Applications$Outbound = {
6098
+ export type CreateDeploymentMicrofrontendsApplications$Outbound = {
6099
6099
  productionHost: string;
6100
6100
  deploymentAlias?: string | undefined;
6101
6101
  deploymentHost?: string | undefined;
6102
6102
  };
6103
6103
 
6104
6104
  /** @internal */
6105
- export const Applications$outboundSchema: z.ZodType<
6106
- Applications$Outbound,
6107
- z.ZodTypeDef,
6108
- Applications
6109
- > = z.object({
6110
- productionHost: z.string(),
6111
- deploymentAlias: z.string().optional(),
6112
- deploymentHost: z.string().optional(),
6113
- });
6105
+ export const CreateDeploymentMicrofrontendsApplications$outboundSchema:
6106
+ z.ZodType<
6107
+ CreateDeploymentMicrofrontendsApplications$Outbound,
6108
+ z.ZodTypeDef,
6109
+ CreateDeploymentMicrofrontendsApplications
6110
+ > = z.object({
6111
+ productionHost: z.string(),
6112
+ deploymentAlias: z.string().optional(),
6113
+ deploymentHost: z.string().optional(),
6114
+ });
6114
6115
 
6115
6116
  /**
6116
6117
  * @internal
6117
6118
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6118
6119
  */
6119
- export namespace Applications$ {
6120
- /** @deprecated use `Applications$inboundSchema` instead. */
6121
- export const inboundSchema = Applications$inboundSchema;
6122
- /** @deprecated use `Applications$outboundSchema` instead. */
6123
- export const outboundSchema = Applications$outboundSchema;
6124
- /** @deprecated use `Applications$Outbound` instead. */
6125
- export type Outbound = Applications$Outbound;
6120
+ export namespace CreateDeploymentMicrofrontendsApplications$ {
6121
+ /** @deprecated use `CreateDeploymentMicrofrontendsApplications$inboundSchema` instead. */
6122
+ export const inboundSchema =
6123
+ CreateDeploymentMicrofrontendsApplications$inboundSchema;
6124
+ /** @deprecated use `CreateDeploymentMicrofrontendsApplications$outboundSchema` instead. */
6125
+ export const outboundSchema =
6126
+ CreateDeploymentMicrofrontendsApplications$outboundSchema;
6127
+ /** @deprecated use `CreateDeploymentMicrofrontendsApplications$Outbound` instead. */
6128
+ export type Outbound = CreateDeploymentMicrofrontendsApplications$Outbound;
6126
6129
  }
6127
6130
 
6128
- export function applicationsToJSON(applications: Applications): string {
6129
- return JSON.stringify(Applications$outboundSchema.parse(applications));
6131
+ export function createDeploymentMicrofrontendsApplicationsToJSON(
6132
+ createDeploymentMicrofrontendsApplications:
6133
+ CreateDeploymentMicrofrontendsApplications,
6134
+ ): string {
6135
+ return JSON.stringify(
6136
+ CreateDeploymentMicrofrontendsApplications$outboundSchema.parse(
6137
+ createDeploymentMicrofrontendsApplications,
6138
+ ),
6139
+ );
6130
6140
  }
6131
6141
 
6132
- export function applicationsFromJSON(
6142
+ export function createDeploymentMicrofrontendsApplicationsFromJSON(
6133
6143
  jsonString: string,
6134
- ): SafeParseResult<Applications, SDKValidationError> {
6144
+ ): SafeParseResult<
6145
+ CreateDeploymentMicrofrontendsApplications,
6146
+ SDKValidationError
6147
+ > {
6135
6148
  return safeParse(
6136
6149
  jsonString,
6137
- (x) => Applications$inboundSchema.parse(JSON.parse(x)),
6138
- `Failed to parse 'Applications' from JSON`,
6150
+ (x) =>
6151
+ CreateDeploymentMicrofrontendsApplications$inboundSchema.parse(
6152
+ JSON.parse(x),
6153
+ ),
6154
+ `Failed to parse 'CreateDeploymentMicrofrontendsApplications' from JSON`,
6139
6155
  );
6140
6156
  }
6141
6157
 
@@ -6145,7 +6161,9 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
6145
6161
  z.ZodTypeDef,
6146
6162
  unknown
6147
6163
  > = z.object({
6148
- applications: z.record(z.lazy(() => Applications$inboundSchema)).optional(),
6164
+ applications: z.record(
6165
+ z.lazy(() => CreateDeploymentMicrofrontendsApplications$inboundSchema),
6166
+ ).optional(),
6149
6167
  isDefaultApp: z.boolean(),
6150
6168
  defaultAppProjectName: z.string(),
6151
6169
  defaultRoute: z.string().optional(),
@@ -6154,7 +6172,9 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
6154
6172
 
6155
6173
  /** @internal */
6156
6174
  export type CreateDeploymentMicrofrontends2$Outbound = {
6157
- applications?: { [k: string]: Applications$Outbound } | undefined;
6175
+ applications?: {
6176
+ [k: string]: CreateDeploymentMicrofrontendsApplications$Outbound;
6177
+ } | undefined;
6158
6178
  isDefaultApp: boolean;
6159
6179
  defaultAppProjectName: string;
6160
6180
  defaultRoute?: string | undefined;
@@ -6167,7 +6187,9 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType<
6167
6187
  z.ZodTypeDef,
6168
6188
  CreateDeploymentMicrofrontends2
6169
6189
  > = z.object({
6170
- applications: z.record(z.lazy(() => Applications$outboundSchema)).optional(),
6190
+ applications: z.record(
6191
+ z.lazy(() => CreateDeploymentMicrofrontendsApplications$outboundSchema),
6192
+ ).optional(),
6171
6193
  isDefaultApp: z.boolean(),
6172
6194
  defaultAppProjectName: z.string(),
6173
6195
  defaultRoute: z.string().optional(),