@vercel/sdk 1.17.4 → 1.17.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 (87) hide show
  1. package/bin/mcp-server.js +331 -369
  2. package/bin/mcp-server.js.map +14 -14
  3. package/esm/__tests__/accessgroups.test.js +2 -6
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/checks.test.js +1 -1
  6. package/esm/__tests__/checks.test.js.map +1 -1
  7. package/esm/__tests__/domains.test.js +1 -1
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/integrations.test.js +1 -1
  10. package/esm/__tests__/logdrains.test.js +1 -3
  11. package/esm/__tests__/logdrains.test.js.map +1 -1
  12. package/esm/__tests__/rollingrelease.test.js +2 -2
  13. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +4 -4
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/__tests__/teams.test.js +2 -2
  17. package/esm/__tests__/teams.test.js.map +1 -1
  18. package/esm/lib/config.d.ts +3 -3
  19. package/esm/lib/config.js +3 -3
  20. package/esm/mcp-server/mcp-server.js +1 -1
  21. package/esm/mcp-server/server.js +1 -1
  22. package/esm/models/canceldeploymentop.d.ts +0 -37
  23. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  24. package/esm/models/canceldeploymentop.js +0 -23
  25. package/esm/models/canceldeploymentop.js.map +1 -1
  26. package/esm/models/createdeploymentop.d.ts +0 -37
  27. package/esm/models/createdeploymentop.d.ts.map +1 -1
  28. package/esm/models/createdeploymentop.js +0 -22
  29. package/esm/models/createdeploymentop.js.map +1 -1
  30. package/esm/models/createintegrationstoredirectop.d.ts +152 -152
  31. package/esm/models/createintegrationstoredirectop.js +218 -218
  32. package/esm/models/createprojectop.d.ts +18 -18
  33. package/esm/models/createprojectop.d.ts.map +1 -1
  34. package/esm/models/createprojectop.js +18 -18
  35. package/esm/models/createprojectop.js.map +1 -1
  36. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  37. package/esm/models/getconfigurationproductsop.js +290 -290
  38. package/esm/models/getdeploymentop.d.ts +0 -37
  39. package/esm/models/getdeploymentop.d.ts.map +1 -1
  40. package/esm/models/getdeploymentop.js +0 -22
  41. package/esm/models/getdeploymentop.js.map +1 -1
  42. package/esm/models/getmemberop.d.ts +4 -0
  43. package/esm/models/getmemberop.d.ts.map +1 -1
  44. package/esm/models/getmemberop.js +4 -0
  45. package/esm/models/getmemberop.js.map +1 -1
  46. package/esm/models/team.d.ts +11 -11
  47. package/esm/models/team.d.ts.map +1 -1
  48. package/esm/models/team.js +8 -8
  49. package/esm/models/team.js.map +1 -1
  50. package/esm/models/updateprojectop.d.ts +18 -18
  51. package/esm/models/updateprojectop.d.ts.map +1 -1
  52. package/esm/models/updateprojectop.js +18 -18
  53. package/esm/models/updateprojectop.js.map +1 -1
  54. package/esm/types/enums.d.ts +1 -8
  55. package/esm/types/enums.d.ts.map +1 -1
  56. package/esm/types/enums.js +1 -18
  57. package/esm/types/enums.js.map +1 -1
  58. package/esm/types/unrecognized.d.ts +10 -0
  59. package/esm/types/unrecognized.d.ts.map +1 -0
  60. package/esm/types/unrecognized.js +23 -0
  61. package/esm/types/unrecognized.js.map +1 -0
  62. package/examples/package-lock.json +1 -1
  63. package/jsr.json +1 -1
  64. package/package.json +1 -1
  65. package/src/__tests__/accessgroups.test.ts +2 -6
  66. package/src/__tests__/checks.test.ts +1 -1
  67. package/src/__tests__/domains.test.ts +1 -1
  68. package/src/__tests__/integrations.test.ts +1 -1
  69. package/src/__tests__/logdrains.test.ts +1 -3
  70. package/src/__tests__/rollingrelease.test.ts +2 -2
  71. package/src/__tests__/security.test.ts +4 -4
  72. package/src/__tests__/teams.test.ts +2 -2
  73. package/src/lib/config.ts +3 -3
  74. package/src/mcp-server/mcp-server.ts +1 -1
  75. package/src/mcp-server/server.ts +1 -1
  76. package/src/models/canceldeploymentop.ts +0 -76
  77. package/src/models/createdeploymentop.ts +0 -87
  78. package/src/models/createintegrationstoredirectop.ts +471 -471
  79. package/src/models/createprojectop.ts +30 -30
  80. package/src/models/getconfigurationproductsop.ts +627 -627
  81. package/src/models/getdeploymentop.ts +0 -88
  82. package/src/models/getmemberop.ts +8 -0
  83. package/src/models/team.ts +15 -15
  84. package/src/models/updateprojectop.ts +30 -30
  85. package/src/types/enums.ts +1 -21
  86. package/src/types/unrecognized.ts +27 -0
  87. package/vercel-spec.json +155 -230
@@ -2151,22 +2151,6 @@ export type ResponseBodyFlags =
2151
2151
  | GetDeploymentFlags1
2152
2152
  | Array<GetDeploymentFlags2>;
2153
2153
 
2154
- /**
2155
- * 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. Note: this field will be removed when MFE alias routing is fully rolled out.
2156
- */
2157
- export type GetDeploymentMicrofrontendsApplications = {
2158
- isDefaultApp?: boolean | undefined;
2159
- /**
2160
- * This is the production alias, it will always show the most up to date of each application.
2161
- */
2162
- productionHost: string;
2163
- /**
2164
- * Use the fixed deploymentAlias and deploymentHost so that the microfrontend preview stays in sync with the deployment. These are only present for mono-repos when a single commit creates multiple deployments. If they are not present, productionHost will be used.
2165
- */
2166
- deploymentAlias?: string | undefined;
2167
- deploymentHost?: string | undefined;
2168
- };
2169
-
2170
2154
  /**
2171
2155
  * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
2172
2156
  */
@@ -2184,12 +2168,6 @@ export type GetDeploymentMicrofrontendsMfeConfigUploadState = ClosedEnum<
2184
2168
 
2185
2169
  export type GetDeploymentMicrofrontends2 = {
2186
2170
  isDefaultApp: boolean;
2187
- /**
2188
- * 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. Note: this field will be removed when MFE alias routing is fully rolled out.
2189
- */
2190
- applications?:
2191
- | { [k: string]: GetDeploymentMicrofrontendsApplications }
2192
- | undefined;
2193
2171
  /**
2194
2172
  * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
2195
2173
  */
@@ -10019,63 +9997,6 @@ export function responseBodyFlagsFromJSON(
10019
9997
  );
10020
9998
  }
10021
9999
 
10022
- /** @internal */
10023
- export const GetDeploymentMicrofrontendsApplications$inboundSchema: z.ZodType<
10024
- GetDeploymentMicrofrontendsApplications,
10025
- z.ZodTypeDef,
10026
- unknown
10027
- > = z.object({
10028
- isDefaultApp: z.boolean().optional(),
10029
- productionHost: z.string(),
10030
- deploymentAlias: z.string().optional(),
10031
- deploymentHost: z.string().optional(),
10032
- });
10033
- /** @internal */
10034
- export type GetDeploymentMicrofrontendsApplications$Outbound = {
10035
- isDefaultApp?: boolean | undefined;
10036
- productionHost: string;
10037
- deploymentAlias?: string | undefined;
10038
- deploymentHost?: string | undefined;
10039
- };
10040
-
10041
- /** @internal */
10042
- export const GetDeploymentMicrofrontendsApplications$outboundSchema: z.ZodType<
10043
- GetDeploymentMicrofrontendsApplications$Outbound,
10044
- z.ZodTypeDef,
10045
- GetDeploymentMicrofrontendsApplications
10046
- > = z.object({
10047
- isDefaultApp: z.boolean().optional(),
10048
- productionHost: z.string(),
10049
- deploymentAlias: z.string().optional(),
10050
- deploymentHost: z.string().optional(),
10051
- });
10052
-
10053
- export function getDeploymentMicrofrontendsApplicationsToJSON(
10054
- getDeploymentMicrofrontendsApplications:
10055
- GetDeploymentMicrofrontendsApplications,
10056
- ): string {
10057
- return JSON.stringify(
10058
- GetDeploymentMicrofrontendsApplications$outboundSchema.parse(
10059
- getDeploymentMicrofrontendsApplications,
10060
- ),
10061
- );
10062
- }
10063
- export function getDeploymentMicrofrontendsApplicationsFromJSON(
10064
- jsonString: string,
10065
- ): SafeParseResult<
10066
- GetDeploymentMicrofrontendsApplications,
10067
- SDKValidationError
10068
- > {
10069
- return safeParse(
10070
- jsonString,
10071
- (x) =>
10072
- GetDeploymentMicrofrontendsApplications$inboundSchema.parse(
10073
- JSON.parse(x),
10074
- ),
10075
- `Failed to parse 'GetDeploymentMicrofrontendsApplications' from JSON`,
10076
- );
10077
- }
10078
-
10079
10000
  /** @internal */
10080
10001
  export const GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema:
10081
10002
  z.ZodNativeEnum<typeof GetDeploymentMicrofrontendsMfeConfigUploadState> = z
@@ -10092,9 +10013,6 @@ export const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType<
10092
10013
  unknown
10093
10014
  > = z.object({
10094
10015
  isDefaultApp: z.boolean(),
10095
- applications: z.record(
10096
- z.lazy(() => GetDeploymentMicrofrontendsApplications$inboundSchema),
10097
- ).optional(),
10098
10016
  mfeConfigUploadState:
10099
10017
  GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema.optional(),
10100
10018
  defaultAppProjectName: z.string(),
@@ -10104,9 +10022,6 @@ export const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType<
10104
10022
  /** @internal */
10105
10023
  export type GetDeploymentMicrofrontends2$Outbound = {
10106
10024
  isDefaultApp: boolean;
10107
- applications?: {
10108
- [k: string]: GetDeploymentMicrofrontendsApplications$Outbound;
10109
- } | undefined;
10110
10025
  mfeConfigUploadState?: string | undefined;
10111
10026
  defaultAppProjectName: string;
10112
10027
  defaultRoute?: string | undefined;
@@ -10120,9 +10035,6 @@ export const GetDeploymentMicrofrontends2$outboundSchema: z.ZodType<
10120
10035
  GetDeploymentMicrofrontends2
10121
10036
  > = z.object({
10122
10037
  isDefaultApp: z.boolean(),
10123
- applications: z.record(
10124
- z.lazy(() => GetDeploymentMicrofrontendsApplications$outboundSchema),
10125
- ).optional(),
10126
10038
  mfeConfigUploadState:
10127
10039
  GetDeploymentMicrofrontendsMfeConfigUploadState$outboundSchema.optional(),
10128
10040
  defaultAppProjectName: z.string(),
@@ -31,6 +31,8 @@ export type GetMemberResponseBody = {
31
31
  * "The `ADMIN` role, by default, is provided to users capable of installing integrations, while the `USER` role can be granted to Vercel users with the Vercel `Billing` or Vercel `Viewer` role, which are considered to be Read-Only roles."
32
32
  */
33
33
  role: GetMemberRole;
34
+ globalUserId?: string | undefined;
35
+ userEmail?: string | undefined;
34
36
  };
35
37
 
36
38
  /** @internal */
@@ -92,11 +94,15 @@ export const GetMemberResponseBody$inboundSchema: z.ZodType<
92
94
  > = z.object({
93
95
  id: z.string(),
94
96
  role: GetMemberRole$inboundSchema,
97
+ globalUserId: z.string().optional(),
98
+ userEmail: z.string().optional(),
95
99
  });
96
100
  /** @internal */
97
101
  export type GetMemberResponseBody$Outbound = {
98
102
  id: string;
99
103
  role: string;
104
+ globalUserId?: string | undefined;
105
+ userEmail?: string | undefined;
100
106
  };
101
107
 
102
108
  /** @internal */
@@ -107,6 +113,8 @@ export const GetMemberResponseBody$outboundSchema: z.ZodType<
107
113
  > = z.object({
108
114
  id: z.string(),
109
115
  role: GetMemberRole$outboundSchema,
116
+ globalUserId: z.string().optional(),
117
+ userEmail: z.string().optional(),
110
118
  });
111
119
 
112
120
  export function getMemberResponseBodyToJSON(
@@ -20,14 +20,14 @@ export type Connect = {
20
20
  * Information for the SAML Single Sign-On configuration.
21
21
  */
22
22
  export type Connection = {
23
- /**
24
- * Current status of the connection.
25
- */
26
- status: string;
27
23
  /**
28
24
  * The Identity Provider "type", for example Okta.
29
25
  */
30
26
  type: string;
27
+ /**
28
+ * Current status of the connection.
29
+ */
30
+ status: string;
31
31
  /**
32
32
  * Current state of the connection.
33
33
  */
@@ -344,14 +344,14 @@ export type TeamMembershipTeamPermissions = ClosedEnum<
344
344
  >;
345
345
 
346
346
  export const Origin = {
347
- Saml: "saml",
348
- Gitlab: "gitlab",
349
- Bitbucket: "bitbucket",
350
- Github: "github",
351
347
  Link: "link",
348
+ Saml: "saml",
352
349
  Mail: "mail",
353
350
  Import: "import",
354
351
  Teams: "teams",
352
+ Github: "github",
353
+ Gitlab: "gitlab",
354
+ Bitbucket: "bitbucket",
355
355
  Dsync: "dsync",
356
356
  Feedback: "feedback",
357
357
  OrganizationTeams: "organization-teams",
@@ -380,12 +380,12 @@ export type JoinedFrom = {
380
380
  export type Membership = {
381
381
  uid?: string | undefined;
382
382
  entitlements?: Array<Entitlements> | undefined;
383
+ teamId?: string | undefined;
383
384
  confirmed: boolean;
384
385
  accessRequestedAt?: number | undefined;
385
386
  role: TeamRole;
386
387
  teamRoles?: Array<TeamMembershipTeamRoles> | undefined;
387
388
  teamPermissions?: Array<TeamMembershipTeamPermissions> | undefined;
388
- teamId?: string | undefined;
389
389
  createdAt: number;
390
390
  created: number;
391
391
  joinedFrom?: JoinedFrom | undefined;
@@ -539,16 +539,16 @@ export const Connection$inboundSchema: z.ZodType<
539
539
  z.ZodTypeDef,
540
540
  unknown
541
541
  > = z.object({
542
- status: z.string(),
543
542
  type: z.string(),
543
+ status: z.string(),
544
544
  state: z.string(),
545
545
  connectedAt: z.number(),
546
546
  lastReceivedWebhookEvent: z.number().optional(),
547
547
  });
548
548
  /** @internal */
549
549
  export type Connection$Outbound = {
550
- status: string;
551
550
  type: string;
551
+ status: string;
552
552
  state: string;
553
553
  connectedAt: number;
554
554
  lastReceivedWebhookEvent?: number | undefined;
@@ -560,8 +560,8 @@ export const Connection$outboundSchema: z.ZodType<
560
560
  z.ZodTypeDef,
561
561
  Connection
562
562
  > = z.object({
563
- status: z.string(),
564
563
  type: z.string(),
564
+ status: z.string(),
565
565
  state: z.string(),
566
566
  connectedAt: z.number(),
567
567
  lastReceivedWebhookEvent: z.number().optional(),
@@ -1366,13 +1366,13 @@ export const Membership$inboundSchema: z.ZodType<
1366
1366
  > = z.object({
1367
1367
  uid: z.string().optional(),
1368
1368
  entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
1369
+ teamId: z.string().optional(),
1369
1370
  confirmed: z.boolean(),
1370
1371
  accessRequestedAt: z.number().optional(),
1371
1372
  role: TeamRole$inboundSchema,
1372
1373
  teamRoles: z.array(TeamMembershipTeamRoles$inboundSchema).optional(),
1373
1374
  teamPermissions: z.array(TeamMembershipTeamPermissions$inboundSchema)
1374
1375
  .optional(),
1375
- teamId: z.string().optional(),
1376
1376
  createdAt: z.number(),
1377
1377
  created: z.number(),
1378
1378
  joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
@@ -1381,12 +1381,12 @@ export const Membership$inboundSchema: z.ZodType<
1381
1381
  export type Membership$Outbound = {
1382
1382
  uid?: string | undefined;
1383
1383
  entitlements?: Array<Entitlements$Outbound> | undefined;
1384
+ teamId?: string | undefined;
1384
1385
  confirmed: boolean;
1385
1386
  accessRequestedAt?: number | undefined;
1386
1387
  role: string;
1387
1388
  teamRoles?: Array<string> | undefined;
1388
1389
  teamPermissions?: Array<string> | undefined;
1389
- teamId?: string | undefined;
1390
1390
  createdAt: number;
1391
1391
  created: number;
1392
1392
  joinedFrom?: JoinedFrom$Outbound | undefined;
@@ -1400,13 +1400,13 @@ export const Membership$outboundSchema: z.ZodType<
1400
1400
  > = z.object({
1401
1401
  uid: z.string().optional(),
1402
1402
  entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
1403
+ teamId: z.string().optional(),
1403
1404
  confirmed: z.boolean(),
1404
1405
  accessRequestedAt: z.number().optional(),
1405
1406
  role: TeamRole$outboundSchema,
1406
1407
  teamRoles: z.array(TeamMembershipTeamRoles$outboundSchema).optional(),
1407
1408
  teamPermissions: z.array(TeamMembershipTeamPermissions$outboundSchema)
1408
1409
  .optional(),
1409
- teamId: z.string().optional(),
1410
1410
  createdAt: z.number(),
1411
1411
  created: z.number(),
1412
1412
  joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
@@ -627,10 +627,10 @@ export type UpdateProjectTarget = Array<string> | UpdateProjectTarget2;
627
627
 
628
628
  export const UpdateProjectType = {
629
629
  System: "system",
630
- Secret: "secret",
631
630
  Encrypted: "encrypted",
632
631
  Plain: "plain",
633
632
  Sensitive: "sensitive",
633
+ Secret: "secret",
634
634
  } as const;
635
635
  export type UpdateProjectType = ClosedEnum<typeof UpdateProjectType>;
636
636
 
@@ -1394,18 +1394,18 @@ export type UpdateProjectLinkProjectsDeployHooks = {
1394
1394
 
1395
1395
  export type UpdateProjectLink2 = {
1396
1396
  type: UpdateProjectLinkProjectsType;
1397
- updatedAt?: number | undefined;
1398
- createdAt?: number | undefined;
1399
1397
  repo?: string | undefined;
1400
- sourceless?: boolean | undefined;
1398
+ repoId?: number | undefined;
1399
+ createdAt?: number | undefined;
1400
+ updatedAt?: number | undefined;
1401
1401
  org: string;
1402
1402
  /**
1403
1403
  * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
1404
1404
  */
1405
1405
  repoOwnerId?: number | undefined;
1406
- repoId?: number | undefined;
1407
1406
  deployHooks: Array<UpdateProjectLinkProjectsDeployHooks>;
1408
1407
  gitCredentialId: string;
1408
+ sourceless?: boolean | undefined;
1409
1409
  productionBranch: string;
1410
1410
  };
1411
1411
 
@@ -1557,6 +1557,7 @@ export type UpdateProjectProjectsBuildMachineType = ClosedEnum<
1557
1557
  >;
1558
1558
 
1559
1559
  export type UpdateProjectProjectsResourceConfig = {
1560
+ elasticConcurrencyEnabled?: boolean | undefined;
1560
1561
  fluid?: boolean | undefined;
1561
1562
  functionDefaultRegions: Array<string>;
1562
1563
  functionDefaultTimeout?: number | undefined;
@@ -1564,7 +1565,6 @@ export type UpdateProjectProjectsResourceConfig = {
1564
1565
  | UpdateProjectProjectsFunctionDefaultMemoryType
1565
1566
  | undefined;
1566
1567
  functionZeroConfigFailover?: boolean | undefined;
1567
- elasticConcurrencyEnabled?: boolean | undefined;
1568
1568
  buildMachineType?: UpdateProjectProjectsBuildMachineType | undefined;
1569
1569
  isNSNBDisabled?: boolean | undefined;
1570
1570
  };
@@ -1649,6 +1649,7 @@ export type UpdateProjectProjectsResponseBuildMachineType = ClosedEnum<
1649
1649
  >;
1650
1650
 
1651
1651
  export type UpdateProjectDefaultResourceConfig = {
1652
+ elasticConcurrencyEnabled?: boolean | undefined;
1652
1653
  fluid?: boolean | undefined;
1653
1654
  functionDefaultRegions: Array<string>;
1654
1655
  functionDefaultTimeout?: number | undefined;
@@ -1656,7 +1657,6 @@ export type UpdateProjectDefaultResourceConfig = {
1656
1657
  | UpdateProjectProjectsResponseFunctionDefaultMemoryType
1657
1658
  | undefined;
1658
1659
  functionZeroConfigFailover?: boolean | undefined;
1659
- elasticConcurrencyEnabled?: boolean | undefined;
1660
1660
  buildMachineType?: UpdateProjectProjectsResponseBuildMachineType | undefined;
1661
1661
  isNSNBDisabled?: boolean | undefined;
1662
1662
  };
@@ -1668,8 +1668,8 @@ export type UpdateProjectProjectsStaticIps = {
1668
1668
  };
1669
1669
 
1670
1670
  export const UpdateProjectProjectsResponseDeploymentType = {
1671
- All: "all",
1672
1671
  Preview: "preview",
1672
+ All: "all",
1673
1673
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1674
1674
  AllExceptCustomDomains: "all_except_custom_domains",
1675
1675
  } as const;
@@ -2127,11 +2127,11 @@ export type UpdateProjectProtectionBypass =
2127
2127
  | UpdateProjectProtectionBypass2;
2128
2128
 
2129
2129
  export const UpdateProjectTrustedIpsProjectsDeploymentType = {
2130
- All: "all",
2131
2130
  Preview: "preview",
2131
+ Production: "production",
2132
+ All: "all",
2132
2133
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
2133
2134
  AllExceptCustomDomains: "all_except_custom_domains",
2134
- Production: "production",
2135
2135
  } as const;
2136
2136
  export type UpdateProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
2137
2137
  typeof UpdateProjectTrustedIpsProjectsDeploymentType
@@ -2142,11 +2142,11 @@ export type UpdateProjectTrustedIps2 = {
2142
2142
  };
2143
2143
 
2144
2144
  export const UpdateProjectTrustedIpsDeploymentType = {
2145
- All: "all",
2146
2145
  Preview: "preview",
2146
+ Production: "production",
2147
+ All: "all",
2147
2148
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
2148
2149
  AllExceptCustomDomains: "all_except_custom_domains",
2149
- Production: "production",
2150
2150
  } as const;
2151
2151
  export type UpdateProjectTrustedIpsDeploymentType = ClosedEnum<
2152
2152
  typeof UpdateProjectTrustedIpsDeploymentType
@@ -6751,31 +6751,31 @@ export const UpdateProjectLink2$inboundSchema: z.ZodType<
6751
6751
  unknown
6752
6752
  > = z.object({
6753
6753
  type: UpdateProjectLinkProjectsType$inboundSchema,
6754
- updatedAt: z.number().optional(),
6755
- createdAt: z.number().optional(),
6756
6754
  repo: z.string().optional(),
6757
- sourceless: z.boolean().optional(),
6755
+ repoId: z.number().optional(),
6756
+ createdAt: z.number().optional(),
6757
+ updatedAt: z.number().optional(),
6758
6758
  org: z.string(),
6759
6759
  repoOwnerId: z.number().optional(),
6760
- repoId: z.number().optional(),
6761
6760
  deployHooks: z.array(
6762
6761
  z.lazy(() => UpdateProjectLinkProjectsDeployHooks$inboundSchema),
6763
6762
  ),
6764
6763
  gitCredentialId: z.string(),
6764
+ sourceless: z.boolean().optional(),
6765
6765
  productionBranch: z.string(),
6766
6766
  });
6767
6767
  /** @internal */
6768
6768
  export type UpdateProjectLink2$Outbound = {
6769
6769
  type: string;
6770
- updatedAt?: number | undefined;
6771
- createdAt?: number | undefined;
6772
6770
  repo?: string | undefined;
6773
- sourceless?: boolean | undefined;
6771
+ repoId?: number | undefined;
6772
+ createdAt?: number | undefined;
6773
+ updatedAt?: number | undefined;
6774
6774
  org: string;
6775
6775
  repoOwnerId?: number | undefined;
6776
- repoId?: number | undefined;
6777
6776
  deployHooks: Array<UpdateProjectLinkProjectsDeployHooks$Outbound>;
6778
6777
  gitCredentialId: string;
6778
+ sourceless?: boolean | undefined;
6779
6779
  productionBranch: string;
6780
6780
  };
6781
6781
 
@@ -6786,17 +6786,17 @@ export const UpdateProjectLink2$outboundSchema: z.ZodType<
6786
6786
  UpdateProjectLink2
6787
6787
  > = z.object({
6788
6788
  type: UpdateProjectLinkProjectsType$outboundSchema,
6789
- updatedAt: z.number().optional(),
6790
- createdAt: z.number().optional(),
6791
6789
  repo: z.string().optional(),
6792
- sourceless: z.boolean().optional(),
6790
+ repoId: z.number().optional(),
6791
+ createdAt: z.number().optional(),
6792
+ updatedAt: z.number().optional(),
6793
6793
  org: z.string(),
6794
6794
  repoOwnerId: z.number().optional(),
6795
- repoId: z.number().optional(),
6796
6795
  deployHooks: z.array(
6797
6796
  z.lazy(() => UpdateProjectLinkProjectsDeployHooks$outboundSchema),
6798
6797
  ),
6799
6798
  gitCredentialId: z.string(),
6799
+ sourceless: z.boolean().optional(),
6800
6800
  productionBranch: z.string(),
6801
6801
  });
6802
6802
 
@@ -7373,25 +7373,25 @@ export const UpdateProjectProjectsResourceConfig$inboundSchema: z.ZodType<
7373
7373
  z.ZodTypeDef,
7374
7374
  unknown
7375
7375
  > = z.object({
7376
+ elasticConcurrencyEnabled: z.boolean().optional(),
7376
7377
  fluid: z.boolean().optional(),
7377
7378
  functionDefaultRegions: z.array(z.string()),
7378
7379
  functionDefaultTimeout: z.number().optional(),
7379
7380
  functionDefaultMemoryType:
7380
7381
  UpdateProjectProjectsFunctionDefaultMemoryType$inboundSchema.optional(),
7381
7382
  functionZeroConfigFailover: z.boolean().optional(),
7382
- elasticConcurrencyEnabled: z.boolean().optional(),
7383
7383
  buildMachineType: UpdateProjectProjectsBuildMachineType$inboundSchema
7384
7384
  .optional(),
7385
7385
  isNSNBDisabled: z.boolean().optional(),
7386
7386
  });
7387
7387
  /** @internal */
7388
7388
  export type UpdateProjectProjectsResourceConfig$Outbound = {
7389
+ elasticConcurrencyEnabled?: boolean | undefined;
7389
7390
  fluid?: boolean | undefined;
7390
7391
  functionDefaultRegions: Array<string>;
7391
7392
  functionDefaultTimeout?: number | undefined;
7392
7393
  functionDefaultMemoryType?: string | undefined;
7393
7394
  functionZeroConfigFailover?: boolean | undefined;
7394
- elasticConcurrencyEnabled?: boolean | undefined;
7395
7395
  buildMachineType?: string | undefined;
7396
7396
  isNSNBDisabled?: boolean | undefined;
7397
7397
  };
@@ -7402,13 +7402,13 @@ export const UpdateProjectProjectsResourceConfig$outboundSchema: z.ZodType<
7402
7402
  z.ZodTypeDef,
7403
7403
  UpdateProjectProjectsResourceConfig
7404
7404
  > = z.object({
7405
+ elasticConcurrencyEnabled: z.boolean().optional(),
7405
7406
  fluid: z.boolean().optional(),
7406
7407
  functionDefaultRegions: z.array(z.string()),
7407
7408
  functionDefaultTimeout: z.number().optional(),
7408
7409
  functionDefaultMemoryType:
7409
7410
  UpdateProjectProjectsFunctionDefaultMemoryType$outboundSchema.optional(),
7410
7411
  functionZeroConfigFailover: z.boolean().optional(),
7411
- elasticConcurrencyEnabled: z.boolean().optional(),
7412
7412
  buildMachineType: UpdateProjectProjectsBuildMachineType$outboundSchema
7413
7413
  .optional(),
7414
7414
  isNSNBDisabled: z.boolean().optional(),
@@ -7607,6 +7607,7 @@ export const UpdateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
7607
7607
  z.ZodTypeDef,
7608
7608
  unknown
7609
7609
  > = z.object({
7610
+ elasticConcurrencyEnabled: z.boolean().optional(),
7610
7611
  fluid: z.boolean().optional(),
7611
7612
  functionDefaultRegions: z.array(z.string()),
7612
7613
  functionDefaultTimeout: z.number().optional(),
@@ -7614,19 +7615,18 @@ export const UpdateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
7614
7615
  UpdateProjectProjectsResponseFunctionDefaultMemoryType$inboundSchema
7615
7616
  .optional(),
7616
7617
  functionZeroConfigFailover: z.boolean().optional(),
7617
- elasticConcurrencyEnabled: z.boolean().optional(),
7618
7618
  buildMachineType: UpdateProjectProjectsResponseBuildMachineType$inboundSchema
7619
7619
  .optional(),
7620
7620
  isNSNBDisabled: z.boolean().optional(),
7621
7621
  });
7622
7622
  /** @internal */
7623
7623
  export type UpdateProjectDefaultResourceConfig$Outbound = {
7624
+ elasticConcurrencyEnabled?: boolean | undefined;
7624
7625
  fluid?: boolean | undefined;
7625
7626
  functionDefaultRegions: Array<string>;
7626
7627
  functionDefaultTimeout?: number | undefined;
7627
7628
  functionDefaultMemoryType?: string | undefined;
7628
7629
  functionZeroConfigFailover?: boolean | undefined;
7629
- elasticConcurrencyEnabled?: boolean | undefined;
7630
7630
  buildMachineType?: string | undefined;
7631
7631
  isNSNBDisabled?: boolean | undefined;
7632
7632
  };
@@ -7637,6 +7637,7 @@ export const UpdateProjectDefaultResourceConfig$outboundSchema: z.ZodType<
7637
7637
  z.ZodTypeDef,
7638
7638
  UpdateProjectDefaultResourceConfig
7639
7639
  > = z.object({
7640
+ elasticConcurrencyEnabled: z.boolean().optional(),
7640
7641
  fluid: z.boolean().optional(),
7641
7642
  functionDefaultRegions: z.array(z.string()),
7642
7643
  functionDefaultTimeout: z.number().optional(),
@@ -7644,7 +7645,6 @@ export const UpdateProjectDefaultResourceConfig$outboundSchema: z.ZodType<
7644
7645
  UpdateProjectProjectsResponseFunctionDefaultMemoryType$outboundSchema
7645
7646
  .optional(),
7646
7647
  functionZeroConfigFailover: z.boolean().optional(),
7647
- elasticConcurrencyEnabled: z.boolean().optional(),
7648
7648
  buildMachineType: UpdateProjectProjectsResponseBuildMachineType$outboundSchema
7649
7649
  .optional(),
7650
7650
  isNSNBDisabled: z.boolean().optional(),
@@ -3,34 +3,14 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { Unrecognized, unrecognized } from "./unrecognized.js";
6
7
 
7
- declare const __brand: unique symbol;
8
- export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
9
8
  export type ClosedEnum<T extends Readonly<Record<string, string | number>>> =
10
9
  T[keyof T];
11
10
  export type OpenEnum<T extends Readonly<Record<string, string | number>>> =
12
11
  | T[keyof T]
13
12
  | Unrecognized<T[keyof T] extends number ? number : string>;
14
13
 
15
- function unrecognized<T>(value: T): Unrecognized<T> {
16
- unrecognizedCount++;
17
- return value as Unrecognized<T>;
18
- }
19
-
20
- let unrecognizedCount = 0;
21
- let refCount = 0;
22
- export function unrecognizedCounter() {
23
- refCount++;
24
- const start = unrecognizedCount;
25
- return {
26
- count: () => {
27
- const count = unrecognizedCount - start;
28
- if (--refCount === 0) unrecognizedCount = 0;
29
- return count;
30
- },
31
- };
32
- }
33
-
34
14
  export function inboundSchema<T extends Record<string, string>>(
35
15
  enumObj: T,
36
16
  ): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown> {
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ declare const __brand: unique symbol;
6
+ export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
7
+
8
+ function unrecognized<T>(value: T): Unrecognized<T> {
9
+ globalCount++;
10
+ return value as Unrecognized<T>;
11
+ }
12
+
13
+ let globalCount = 0;
14
+ let refCount = 0;
15
+ export function startCountingUnrecognized() {
16
+ refCount++;
17
+ const start = globalCount;
18
+ return {
19
+ end: () => {
20
+ const count = globalCount - start;
21
+ if (--refCount === 0) globalCount = 0;
22
+ return count;
23
+ },
24
+ };
25
+ }
26
+
27
+ export { unrecognized };