@vercel/sdk 1.7.5 → 1.7.6

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 (44) hide show
  1. package/bin/mcp-server.js +37 -83
  2. package/bin/mcp-server.js.map +13 -13
  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 +2 -2
  6. package/esm/lib/config.js +2 -2
  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/createprojectop.d.ts +9 -9
  18. package/esm/models/createprojectop.js +3 -3
  19. package/esm/models/createprojectop.js.map +1 -1
  20. package/esm/models/importresourceop.d.ts +1 -1
  21. package/esm/models/updateprojectop.d.ts +9 -9
  22. package/esm/models/updateprojectop.js +3 -3
  23. package/esm/models/updateprojectop.js.map +1 -1
  24. package/esm/models/updateresourcesecretsbyidop.d.ts +2 -2
  25. package/esm/models/updateresourcesecretsop.d.ts +1 -1
  26. package/esm/models/userevent.d.ts +23 -23
  27. package/esm/models/userevent.d.ts.map +1 -1
  28. package/esm/models/userevent.js +28 -28
  29. package/esm/models/userevent.js.map +1 -1
  30. package/jsr.json +1 -1
  31. package/package.json +1 -1
  32. package/src/__tests__/projects.test.ts +15 -13
  33. package/src/lib/config.ts +2 -2
  34. package/src/mcp-server/mcp-server.ts +1 -1
  35. package/src/mcp-server/server.ts +1 -1
  36. package/src/models/authuser.ts +0 -145
  37. package/src/models/authuserlimited.ts +0 -40
  38. package/src/models/createprojectop.ts +3 -3
  39. package/src/models/importresourceop.ts +1 -1
  40. package/src/models/updateprojectop.ts +3 -3
  41. package/src/models/updateresourcesecretsbyidop.ts +2 -2
  42. package/src/models/updateresourcesecretsop.ts +1 -1
  43. package/src/models/userevent.ts +39 -42
  44. package/vercel-spec.json +14 -72
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.6",
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.6",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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",
60
+ sdkVersion: "1.7.6",
61
61
  genVersion: "2.605.6",
62
- userAgent: "speakeasy-sdk/typescript 1.7.5 2.605.6 0.0.1 @vercel/sdk",
62
+ userAgent: "speakeasy-sdk/typescript 1.7.6 2.605.6 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.6",
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.6",
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
  /**
@@ -414,10 +414,10 @@ export type CreateProjectProjectsTarget =
414
414
 
415
415
  export const CreateProjectProjectsResponseType = {
416
416
  System: "system",
417
+ Secret: "secret",
417
418
  Encrypted: "encrypted",
418
419
  Plain: "plain",
419
420
  Sensitive: "sensitive",
420
- Secret: "secret",
421
421
  } as const;
422
422
  export type CreateProjectProjectsResponseType = ClosedEnum<
423
423
  typeof CreateProjectProjectsResponseType
@@ -1889,8 +1889,8 @@ export type CreateProjectSrc = CreateProjectSrc2 | string;
1889
1889
 
1890
1890
  export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
1891
1891
  {
1892
- Path: "path",
1893
1892
  Host: "host",
1893
+ Path: "path",
1894
1894
  Method: "method",
1895
1895
  Header: "header",
1896
1896
  Cookie: "cookie",
@@ -1931,8 +1931,8 @@ export type CreateProjectHas = {
1931
1931
 
1932
1932
  export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
1933
1933
  {
1934
- Path: "path",
1935
1934
  Host: "host",
1935
+ Path: "path",
1936
1936
  Method: "method",
1937
1937
  Header: "header",
1938
1938
  Cookie: "cookie",
@@ -70,7 +70,7 @@ export type ImportResourceSecrets = {
70
70
  value: string;
71
71
  prefix?: string | undefined;
72
72
  /**
73
- * @hidden
73
+ * A map of environments to override values for the secret, used for setting different values across deployments in production, preview, and development environments. Note: the same value will be used for all deployments in the given environment.
74
74
  */
75
75
  environmentOverrides?: { [k: string]: string } | undefined;
76
76
  };
@@ -530,10 +530,10 @@ export type UpdateProjectTarget = Array<string> | UpdateProjectTarget2;
530
530
 
531
531
  export const UpdateProjectType = {
532
532
  System: "system",
533
+ Secret: "secret",
533
534
  Encrypted: "encrypted",
534
535
  Plain: "plain",
535
536
  Sensitive: "sensitive",
536
- Secret: "secret",
537
537
  } as const;
538
538
  export type UpdateProjectType = ClosedEnum<typeof UpdateProjectType>;
539
539
 
@@ -1998,8 +1998,8 @@ export type UpdateProjectSrc = UpdateProjectSrc2 | string;
1998
1998
 
1999
1999
  export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
2000
2000
  {
2001
- Path: "path",
2002
2001
  Host: "host",
2002
+ Path: "path",
2003
2003
  Method: "method",
2004
2004
  Header: "header",
2005
2005
  Cookie: "cookie",
@@ -2040,8 +2040,8 @@ export type UpdateProjectHas = {
2040
2040
 
2041
2041
  export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
2042
2042
  {
2043
- Path: "path",
2044
2043
  Host: "host",
2044
+ Path: "path",
2045
2045
  Method: "method",
2046
2046
  Header: "header",
2047
2047
  Cookie: "cookie",
@@ -13,7 +13,7 @@ export type UpdateResourceSecretsByIdSecrets = {
13
13
  value: string;
14
14
  prefix?: string | undefined;
15
15
  /**
16
- * @hidden
16
+ * A map of environments to override values for the secret, used for setting different values across deployments in production, preview, and development environments. Note: the same value will be used for all deployments in the given environment.
17
17
  */
18
18
  environmentOverrides?: { [k: string]: string } | undefined;
19
19
  };
@@ -21,7 +21,7 @@ export type UpdateResourceSecretsByIdSecrets = {
21
21
  export type UpdateResourceSecretsByIdRequestBody = {
22
22
  secrets: Array<UpdateResourceSecretsByIdSecrets>;
23
23
  /**
24
- * If true, will only update the provided secrets
24
+ * If true, will only overwrite the provided secrets instead of replacing all secrets.
25
25
  */
26
26
  partial?: boolean | undefined;
27
27
  };
@@ -13,7 +13,7 @@ export type UpdateResourceSecretsSecrets = {
13
13
  value: string;
14
14
  prefix?: string | undefined;
15
15
  /**
16
- * @hidden
16
+ * A map of environments to override values for the secret, used for setting different values across deployments in production, preview, and development environments. Note: the same value will be used for all deployments in the given environment.
17
17
  */
18
18
  environmentOverrides?: { [k: string]: string } | undefined;
19
19
  };
@@ -2937,15 +2937,15 @@ export type PayloadFeatureBlocks = {
2937
2937
  redis?: Redis | undefined;
2938
2938
  };
2939
2939
 
2940
- export const PayloadVersion = {
2940
+ export const Version = {
2941
2941
  Northstar: "northstar",
2942
2942
  } as const;
2943
- export type PayloadVersion = ClosedEnum<typeof PayloadVersion>;
2943
+ export type Version = ClosedEnum<typeof Version>;
2944
2944
 
2945
2945
  /**
2946
2946
  * An archive of information about the Northstar migration, derived from the old (deprecated) property, `northstarMigrationEvents`.
2947
2947
  */
2948
- export type PayloadNorthstarMigration = {
2948
+ export type NorthstarMigration = {
2949
2949
  /**
2950
2950
  * The ID of the team we created for this user.
2951
2951
  */
@@ -3097,11 +3097,11 @@ export type NewOwner = {
3097
3097
  */
3098
3098
  featureBlocks?: PayloadFeatureBlocks | undefined;
3099
3099
  defaultTeamId?: string | undefined;
3100
- version: PayloadVersion;
3100
+ version: Version;
3101
3101
  /**
3102
3102
  * An archive of information about the Northstar migration, derived from the old (deprecated) property, `northstarMigrationEvents`.
3103
3103
  */
3104
- northstarMigration?: PayloadNorthstarMigration | undefined;
3104
+ northstarMigration?: NorthstarMigration | undefined;
3105
3105
  /**
3106
3106
  * The salesforce opportunity ID that this user is linked to. This is used to automatically associate a team of the user's choosing with the opportunity.
3107
3107
  */
@@ -22115,29 +22115,27 @@ export function payloadFeatureBlocksFromJSON(
22115
22115
  }
22116
22116
 
22117
22117
  /** @internal */
22118
- export const PayloadVersion$inboundSchema: z.ZodNativeEnum<
22119
- typeof PayloadVersion
22120
- > = z.nativeEnum(PayloadVersion);
22118
+ export const Version$inboundSchema: z.ZodNativeEnum<typeof Version> = z
22119
+ .nativeEnum(Version);
22121
22120
 
22122
22121
  /** @internal */
22123
- export const PayloadVersion$outboundSchema: z.ZodNativeEnum<
22124
- typeof PayloadVersion
22125
- > = PayloadVersion$inboundSchema;
22122
+ export const Version$outboundSchema: z.ZodNativeEnum<typeof Version> =
22123
+ Version$inboundSchema;
22126
22124
 
22127
22125
  /**
22128
22126
  * @internal
22129
22127
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22130
22128
  */
22131
- export namespace PayloadVersion$ {
22132
- /** @deprecated use `PayloadVersion$inboundSchema` instead. */
22133
- export const inboundSchema = PayloadVersion$inboundSchema;
22134
- /** @deprecated use `PayloadVersion$outboundSchema` instead. */
22135
- export const outboundSchema = PayloadVersion$outboundSchema;
22129
+ export namespace Version$ {
22130
+ /** @deprecated use `Version$inboundSchema` instead. */
22131
+ export const inboundSchema = Version$inboundSchema;
22132
+ /** @deprecated use `Version$outboundSchema` instead. */
22133
+ export const outboundSchema = Version$outboundSchema;
22136
22134
  }
22137
22135
 
22138
22136
  /** @internal */
22139
- export const PayloadNorthstarMigration$inboundSchema: z.ZodType<
22140
- PayloadNorthstarMigration,
22137
+ export const NorthstarMigration$inboundSchema: z.ZodType<
22138
+ NorthstarMigration,
22141
22139
  z.ZodTypeDef,
22142
22140
  unknown
22143
22141
  > = z.object({
@@ -22151,7 +22149,7 @@ export const PayloadNorthstarMigration$inboundSchema: z.ZodType<
22151
22149
  });
22152
22150
 
22153
22151
  /** @internal */
22154
- export type PayloadNorthstarMigration$Outbound = {
22152
+ export type NorthstarMigration$Outbound = {
22155
22153
  teamId: string;
22156
22154
  projects: number;
22157
22155
  stores: number;
@@ -22162,10 +22160,10 @@ export type PayloadNorthstarMigration$Outbound = {
22162
22160
  };
22163
22161
 
22164
22162
  /** @internal */
22165
- export const PayloadNorthstarMigration$outboundSchema: z.ZodType<
22166
- PayloadNorthstarMigration$Outbound,
22163
+ export const NorthstarMigration$outboundSchema: z.ZodType<
22164
+ NorthstarMigration$Outbound,
22167
22165
  z.ZodTypeDef,
22168
- PayloadNorthstarMigration
22166
+ NorthstarMigration
22169
22167
  > = z.object({
22170
22168
  teamId: z.string(),
22171
22169
  projects: z.number(),
@@ -22180,30 +22178,30 @@ export const PayloadNorthstarMigration$outboundSchema: z.ZodType<
22180
22178
  * @internal
22181
22179
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22182
22180
  */
22183
- export namespace PayloadNorthstarMigration$ {
22184
- /** @deprecated use `PayloadNorthstarMigration$inboundSchema` instead. */
22185
- export const inboundSchema = PayloadNorthstarMigration$inboundSchema;
22186
- /** @deprecated use `PayloadNorthstarMigration$outboundSchema` instead. */
22187
- export const outboundSchema = PayloadNorthstarMigration$outboundSchema;
22188
- /** @deprecated use `PayloadNorthstarMigration$Outbound` instead. */
22189
- export type Outbound = PayloadNorthstarMigration$Outbound;
22181
+ export namespace NorthstarMigration$ {
22182
+ /** @deprecated use `NorthstarMigration$inboundSchema` instead. */
22183
+ export const inboundSchema = NorthstarMigration$inboundSchema;
22184
+ /** @deprecated use `NorthstarMigration$outboundSchema` instead. */
22185
+ export const outboundSchema = NorthstarMigration$outboundSchema;
22186
+ /** @deprecated use `NorthstarMigration$Outbound` instead. */
22187
+ export type Outbound = NorthstarMigration$Outbound;
22190
22188
  }
22191
22189
 
22192
- export function payloadNorthstarMigrationToJSON(
22193
- payloadNorthstarMigration: PayloadNorthstarMigration,
22190
+ export function northstarMigrationToJSON(
22191
+ northstarMigration: NorthstarMigration,
22194
22192
  ): string {
22195
22193
  return JSON.stringify(
22196
- PayloadNorthstarMigration$outboundSchema.parse(payloadNorthstarMigration),
22194
+ NorthstarMigration$outboundSchema.parse(northstarMigration),
22197
22195
  );
22198
22196
  }
22199
22197
 
22200
- export function payloadNorthstarMigrationFromJSON(
22198
+ export function northstarMigrationFromJSON(
22201
22199
  jsonString: string,
22202
- ): SafeParseResult<PayloadNorthstarMigration, SDKValidationError> {
22200
+ ): SafeParseResult<NorthstarMigration, SDKValidationError> {
22203
22201
  return safeParse(
22204
22202
  jsonString,
22205
- (x) => PayloadNorthstarMigration$inboundSchema.parse(JSON.parse(x)),
22206
- `Failed to parse 'PayloadNorthstarMigration' from JSON`,
22203
+ (x) => NorthstarMigration$inboundSchema.parse(JSON.parse(x)),
22204
+ `Failed to parse 'NorthstarMigration' from JSON`,
22207
22205
  );
22208
22206
  }
22209
22207
 
@@ -22410,9 +22408,8 @@ export const NewOwner$inboundSchema: z.ZodType<
22410
22408
  enablePreviewFeedback: EnablePreviewFeedback$inboundSchema.optional(),
22411
22409
  featureBlocks: z.lazy(() => PayloadFeatureBlocks$inboundSchema).optional(),
22412
22410
  defaultTeamId: z.string().optional(),
22413
- version: PayloadVersion$inboundSchema,
22414
- northstarMigration: z.lazy(() => PayloadNorthstarMigration$inboundSchema)
22415
- .optional(),
22411
+ version: Version$inboundSchema,
22412
+ northstarMigration: z.lazy(() => NorthstarMigration$inboundSchema).optional(),
22416
22413
  opportunityId: z.string().optional(),
22417
22414
  mfaConfiguration: z.lazy(() => MfaConfiguration$inboundSchema).optional(),
22418
22415
  });
@@ -22496,7 +22493,7 @@ export type NewOwner$Outbound = {
22496
22493
  featureBlocks?: PayloadFeatureBlocks$Outbound | undefined;
22497
22494
  defaultTeamId?: string | undefined;
22498
22495
  version: string;
22499
- northstarMigration?: PayloadNorthstarMigration$Outbound | undefined;
22496
+ northstarMigration?: NorthstarMigration$Outbound | undefined;
22500
22497
  opportunityId?: string | undefined;
22501
22498
  mfaConfiguration?: MfaConfiguration$Outbound | undefined;
22502
22499
  };
@@ -22596,8 +22593,8 @@ export const NewOwner$outboundSchema: z.ZodType<
22596
22593
  enablePreviewFeedback: EnablePreviewFeedback$outboundSchema.optional(),
22597
22594
  featureBlocks: z.lazy(() => PayloadFeatureBlocks$outboundSchema).optional(),
22598
22595
  defaultTeamId: z.string().optional(),
22599
- version: PayloadVersion$outboundSchema,
22600
- northstarMigration: z.lazy(() => PayloadNorthstarMigration$outboundSchema)
22596
+ version: Version$outboundSchema,
22597
+ northstarMigration: z.lazy(() => NorthstarMigration$outboundSchema)
22601
22598
  .optional(),
22602
22599
  opportunityId: z.string().optional(),
22603
22600
  mfaConfiguration: z.lazy(() => MfaConfiguration$outboundSchema).optional(),