@vercel/sdk 1.10.2 → 1.10.4

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 (98) hide show
  1. package/bin/mcp-server.js +582 -281
  2. package/bin/mcp-server.js.map +21 -21
  3. package/docs/sdks/aliases/README.md +1 -1
  4. package/esm/__tests__/aliases.test.js +1 -20
  5. package/esm/__tests__/aliases.test.js.map +1 -1
  6. package/esm/__tests__/teams.test.js +0 -2
  7. package/esm/__tests__/teams.test.js.map +1 -1
  8. package/esm/funcs/aliasesGetAlias.d.ts +2 -2
  9. package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
  10. package/esm/funcs/aliasesGetAlias.js +2 -2
  11. package/esm/funcs/aliasesGetAlias.js.map +1 -1
  12. package/esm/funcs/domainsGetDomainConfig.js +1 -0
  13. package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
  14. package/esm/lib/config.d.ts +3 -3
  15. package/esm/lib/config.js +3 -3
  16. package/esm/mcp-server/mcp-server.js +1 -1
  17. package/esm/mcp-server/server.js +1 -1
  18. package/esm/models/createdeploymentop.d.ts +50 -50
  19. package/esm/models/createdeploymentop.d.ts.map +1 -1
  20. package/esm/models/createdeploymentop.js +28 -28
  21. package/esm/models/createdeploymentop.js.map +1 -1
  22. package/esm/models/createprojectenvop.d.ts +6 -6
  23. package/esm/models/createprojectenvop.js +2 -2
  24. package/esm/models/createprojectenvop.js.map +1 -1
  25. package/esm/models/createprojectop.d.ts +156 -156
  26. package/esm/models/createprojectop.d.ts.map +1 -1
  27. package/esm/models/createprojectop.js +148 -148
  28. package/esm/models/createprojectop.js.map +1 -1
  29. package/esm/models/editprojectenvop.d.ts +3 -3
  30. package/esm/models/editprojectenvop.js +1 -1
  31. package/esm/models/editprojectenvop.js.map +1 -1
  32. package/esm/models/filterprojectenvsop.d.ts +9 -9
  33. package/esm/models/filterprojectenvsop.js +3 -3
  34. package/esm/models/filterprojectenvsop.js.map +1 -1
  35. package/esm/models/getaliasop.d.ts +654 -0
  36. package/esm/models/getaliasop.d.ts.map +1 -1
  37. package/esm/models/getaliasop.js +546 -0
  38. package/esm/models/getaliasop.js.map +1 -1
  39. package/esm/models/getdomainconfigop.d.ts +63 -0
  40. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  41. package/esm/models/getdomainconfigop.js +52 -0
  42. package/esm/models/getdomainconfigop.js.map +1 -1
  43. package/esm/models/getfirewallconfigop.d.ts +0 -3
  44. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  45. package/esm/models/getfirewallconfigop.js +0 -1
  46. package/esm/models/getfirewallconfigop.js.map +1 -1
  47. package/esm/models/listaliasesop.d.ts +66 -66
  48. package/esm/models/listaliasesop.d.ts.map +1 -1
  49. package/esm/models/listaliasesop.js +78 -78
  50. package/esm/models/listaliasesop.js.map +1 -1
  51. package/esm/models/listdeploymentaliasesop.d.ts +30 -30
  52. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  53. package/esm/models/listdeploymentaliasesop.js +34 -34
  54. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  55. package/esm/models/putfirewallconfigop.d.ts +0 -3
  56. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  57. package/esm/models/putfirewallconfigop.js +0 -1
  58. package/esm/models/putfirewallconfigop.js.map +1 -1
  59. package/esm/models/removeprojectenvop.d.ts +9 -9
  60. package/esm/models/removeprojectenvop.js +3 -3
  61. package/esm/models/removeprojectenvop.js.map +1 -1
  62. package/esm/models/team.d.ts +0 -2
  63. package/esm/models/team.d.ts.map +1 -1
  64. package/esm/models/team.js +0 -2
  65. package/esm/models/team.js.map +1 -1
  66. package/esm/models/teamlimited.d.ts +0 -2
  67. package/esm/models/teamlimited.d.ts.map +1 -1
  68. package/esm/models/teamlimited.js +0 -2
  69. package/esm/models/teamlimited.js.map +1 -1
  70. package/esm/sdk/aliases.d.ts +2 -2
  71. package/esm/sdk/aliases.d.ts.map +1 -1
  72. package/examples/package-lock.json +1 -1
  73. package/examples/projectsUpdateProject.example.ts +1 -1
  74. package/jsr.json +1 -1
  75. package/package.json +1 -1
  76. package/src/__tests__/aliases.test.ts +1 -20
  77. package/src/__tests__/teams.test.ts +0 -2
  78. package/src/funcs/aliasesGetAlias.ts +6 -4
  79. package/src/funcs/domainsGetDomainConfig.ts +1 -0
  80. package/src/lib/config.ts +3 -3
  81. package/src/mcp-server/mcp-server.ts +1 -1
  82. package/src/mcp-server/server.ts +1 -1
  83. package/src/models/createdeploymentop.ts +76 -54
  84. package/src/models/createprojectenvop.ts +2 -2
  85. package/src/models/createprojectop.ts +286 -286
  86. package/src/models/editprojectenvop.ts +1 -1
  87. package/src/models/filterprojectenvsop.ts +3 -3
  88. package/src/models/getaliasop.ts +1262 -0
  89. package/src/models/getdomainconfigop.ts +129 -0
  90. package/src/models/getfirewallconfigop.ts +0 -1
  91. package/src/models/listaliasesop.ts +143 -124
  92. package/src/models/listdeploymentaliasesop.ts +70 -58
  93. package/src/models/putfirewallconfigop.ts +0 -1
  94. package/src/models/removeprojectenvop.ts +3 -3
  95. package/src/models/team.ts +0 -4
  96. package/src/models/teamlimited.ts +0 -4
  97. package/src/sdk/aliases.ts +2 -2
  98. package/vercel-spec.json +874 -509
@@ -522,11 +522,11 @@ export type CreateDeploymentProjectSettings = {
522
522
  };
523
523
 
524
524
  export const CreateDeploymentDeploymentsStatus = {
525
- Error: "error",
526
- Timeout: "timeout",
527
525
  Skipped: "skipped",
528
526
  Pending: "pending",
529
527
  Ready: "ready",
528
+ Error: "error",
529
+ Timeout: "timeout",
530
530
  } as const;
531
531
  export type CreateDeploymentDeploymentsStatus = ClosedEnum<
532
532
  typeof CreateDeploymentDeploymentsStatus
@@ -618,8 +618,8 @@ export type Creator = {
618
618
  };
619
619
 
620
620
  export const CreateDeploymentReadyState = {
621
- Error: "ERROR",
622
621
  Building: "BUILDING",
622
+ Error: "ERROR",
623
623
  Initializing: "INITIALIZING",
624
624
  Ready: "READY",
625
625
  } as const;
@@ -638,8 +638,8 @@ export type CreateDeploymentOutput = {
638
638
  export type Lambdas = {
639
639
  id?: string | undefined;
640
640
  createdAt?: number | undefined;
641
- readyState?: CreateDeploymentReadyState | undefined;
642
641
  entrypoint?: string | null | undefined;
642
+ readyState?: CreateDeploymentReadyState | undefined;
643
643
  readyStateAt?: number | undefined;
644
644
  output: Array<CreateDeploymentOutput>;
645
645
  };
@@ -1210,14 +1210,14 @@ export const CreateDeploymentPlan = {
1210
1210
  export type CreateDeploymentPlan = ClosedEnum<typeof CreateDeploymentPlan>;
1211
1211
 
1212
1212
  export const FunctionType = {
1213
- Standard: "standard",
1214
1213
  Fluid: "fluid",
1214
+ Standard: "standard",
1215
1215
  } as const;
1216
1216
  export type FunctionType = ClosedEnum<typeof FunctionType>;
1217
1217
 
1218
1218
  export const FunctionMemoryType = {
1219
- StandardLegacy: "standard_legacy",
1220
1219
  Standard: "standard",
1220
+ StandardLegacy: "standard_legacy",
1221
1221
  Performance: "performance",
1222
1222
  } as const;
1223
1223
  export type FunctionMemoryType = ClosedEnum<typeof FunctionMemoryType>;
@@ -1301,12 +1301,12 @@ export type Routes3 = {
1301
1301
  };
1302
1302
 
1303
1303
  export const Handle = {
1304
- Filesystem: "filesystem",
1305
1304
  Error: "error",
1305
+ Filesystem: "filesystem",
1306
1306
  Hit: "hit",
1307
1307
  Miss: "miss",
1308
- Resource: "resource",
1309
1308
  Rewrite: "rewrite",
1309
+ Resource: "resource",
1310
1310
  } as const;
1311
1311
  export type Handle = ClosedEnum<typeof Handle>;
1312
1312
 
@@ -1465,8 +1465,8 @@ export const RoutesType = {
1465
1465
  export type RoutesType = ClosedEnum<typeof RoutesType>;
1466
1466
 
1467
1467
  export const CreateDeploymentRoutesOp = {
1468
- Set: "set",
1469
1468
  Append: "append",
1469
+ Set: "set",
1470
1470
  Delete: "delete",
1471
1471
  } as const;
1472
1472
  export type CreateDeploymentRoutesOp = ClosedEnum<
@@ -1571,7 +1571,7 @@ export type CreateDeploymentChecks = {
1571
1571
  /**
1572
1572
  * 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.
1573
1573
  */
1574
- export type Applications = {
1574
+ export type CreateDeploymentMicrofrontendsApplications = {
1575
1575
  isDefaultApp?: boolean | undefined;
1576
1576
  /**
1577
1577
  * This is the production alias, it will always show the most up to date of each application.
@@ -1588,7 +1588,9 @@ export type CreateDeploymentMicrofrontends2 = {
1588
1588
  /**
1589
1589
  * 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.
1590
1590
  */
1591
- applications?: { [k: string]: Applications } | undefined;
1591
+ applications?:
1592
+ | { [k: string]: CreateDeploymentMicrofrontendsApplications }
1593
+ | undefined;
1592
1594
  isDefaultApp: boolean;
1593
1595
  /**
1594
1596
  * The project name of the default app of this deployment's microfrontends group.
@@ -1643,8 +1645,8 @@ export type CreateDeploymentGitRepoDeploymentsType = ClosedEnum<
1643
1645
  >;
1644
1646
 
1645
1647
  export const CreateDeploymentGitRepoOwnerType = {
1646
- User: "user",
1647
1648
  Team: "team",
1649
+ User: "user",
1648
1650
  } as const;
1649
1651
  export type CreateDeploymentGitRepoOwnerType = ClosedEnum<
1650
1652
  typeof CreateDeploymentGitRepoOwnerType
@@ -1671,8 +1673,8 @@ export type CreateDeploymentGitRepoType = ClosedEnum<
1671
1673
  >;
1672
1674
 
1673
1675
  export const GitRepoOwnerType = {
1674
- User: "user",
1675
1676
  Team: "team",
1677
+ User: "user",
1676
1678
  } as const;
1677
1679
  export type GitRepoOwnerType = ClosedEnum<typeof GitRepoOwnerType>;
1678
1680
 
@@ -1695,8 +1697,8 @@ export const GitRepoType = {
1695
1697
  export type GitRepoType = ClosedEnum<typeof GitRepoType>;
1696
1698
 
1697
1699
  export const OwnerType = {
1698
- User: "user",
1699
1700
  Team: "team",
1701
+ User: "user",
1700
1702
  } as const;
1701
1703
  export type OwnerType = ClosedEnum<typeof OwnerType>;
1702
1704
 
@@ -3905,8 +3907,8 @@ export const Lambdas$inboundSchema: z.ZodType<Lambdas, z.ZodTypeDef, unknown> =
3905
3907
  z.object({
3906
3908
  id: z.string().optional(),
3907
3909
  createdAt: z.number().optional(),
3908
- readyState: CreateDeploymentReadyState$inboundSchema.optional(),
3909
3910
  entrypoint: z.nullable(z.string()).optional(),
3911
+ readyState: CreateDeploymentReadyState$inboundSchema.optional(),
3910
3912
  readyStateAt: z.number().optional(),
3911
3913
  output: z.array(z.lazy(() => CreateDeploymentOutput$inboundSchema)),
3912
3914
  });
@@ -3915,8 +3917,8 @@ export const Lambdas$inboundSchema: z.ZodType<Lambdas, z.ZodTypeDef, unknown> =
3915
3917
  export type Lambdas$Outbound = {
3916
3918
  id?: string | undefined;
3917
3919
  createdAt?: number | undefined;
3918
- readyState?: string | undefined;
3919
3920
  entrypoint?: string | null | undefined;
3921
+ readyState?: string | undefined;
3920
3922
  readyStateAt?: number | undefined;
3921
3923
  output: Array<CreateDeploymentOutput$Outbound>;
3922
3924
  };
@@ -3929,8 +3931,8 @@ export const Lambdas$outboundSchema: z.ZodType<
3929
3931
  > = z.object({
3930
3932
  id: z.string().optional(),
3931
3933
  createdAt: z.number().optional(),
3932
- readyState: CreateDeploymentReadyState$outboundSchema.optional(),
3933
3934
  entrypoint: z.nullable(z.string()).optional(),
3935
+ readyState: CreateDeploymentReadyState$outboundSchema.optional(),
3934
3936
  readyStateAt: z.number().optional(),
3935
3937
  output: z.array(z.lazy(() => CreateDeploymentOutput$outboundSchema)),
3936
3938
  });
@@ -9132,19 +9134,17 @@ export function createDeploymentChecksFromJSON(
9132
9134
  }
9133
9135
 
9134
9136
  /** @internal */
9135
- export const Applications$inboundSchema: z.ZodType<
9136
- Applications,
9137
- z.ZodTypeDef,
9138
- unknown
9139
- > = z.object({
9140
- isDefaultApp: z.boolean().optional(),
9141
- productionHost: z.string(),
9142
- deploymentAlias: z.string().optional(),
9143
- deploymentHost: z.string().optional(),
9144
- });
9137
+ export const CreateDeploymentMicrofrontendsApplications$inboundSchema:
9138
+ z.ZodType<CreateDeploymentMicrofrontendsApplications, z.ZodTypeDef, unknown> =
9139
+ z.object({
9140
+ isDefaultApp: z.boolean().optional(),
9141
+ productionHost: z.string(),
9142
+ deploymentAlias: z.string().optional(),
9143
+ deploymentHost: z.string().optional(),
9144
+ });
9145
9145
 
9146
9146
  /** @internal */
9147
- export type Applications$Outbound = {
9147
+ export type CreateDeploymentMicrofrontendsApplications$Outbound = {
9148
9148
  isDefaultApp?: boolean | undefined;
9149
9149
  productionHost: string;
9150
9150
  deploymentAlias?: string | undefined;
@@ -9152,41 +9152,57 @@ export type Applications$Outbound = {
9152
9152
  };
9153
9153
 
9154
9154
  /** @internal */
9155
- export const Applications$outboundSchema: z.ZodType<
9156
- Applications$Outbound,
9157
- z.ZodTypeDef,
9158
- Applications
9159
- > = z.object({
9160
- isDefaultApp: z.boolean().optional(),
9161
- productionHost: z.string(),
9162
- deploymentAlias: z.string().optional(),
9163
- deploymentHost: z.string().optional(),
9164
- });
9155
+ export const CreateDeploymentMicrofrontendsApplications$outboundSchema:
9156
+ z.ZodType<
9157
+ CreateDeploymentMicrofrontendsApplications$Outbound,
9158
+ z.ZodTypeDef,
9159
+ CreateDeploymentMicrofrontendsApplications
9160
+ > = z.object({
9161
+ isDefaultApp: z.boolean().optional(),
9162
+ productionHost: z.string(),
9163
+ deploymentAlias: z.string().optional(),
9164
+ deploymentHost: z.string().optional(),
9165
+ });
9165
9166
 
9166
9167
  /**
9167
9168
  * @internal
9168
9169
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9169
9170
  */
9170
- export namespace Applications$ {
9171
- /** @deprecated use `Applications$inboundSchema` instead. */
9172
- export const inboundSchema = Applications$inboundSchema;
9173
- /** @deprecated use `Applications$outboundSchema` instead. */
9174
- export const outboundSchema = Applications$outboundSchema;
9175
- /** @deprecated use `Applications$Outbound` instead. */
9176
- export type Outbound = Applications$Outbound;
9171
+ export namespace CreateDeploymentMicrofrontendsApplications$ {
9172
+ /** @deprecated use `CreateDeploymentMicrofrontendsApplications$inboundSchema` instead. */
9173
+ export const inboundSchema =
9174
+ CreateDeploymentMicrofrontendsApplications$inboundSchema;
9175
+ /** @deprecated use `CreateDeploymentMicrofrontendsApplications$outboundSchema` instead. */
9176
+ export const outboundSchema =
9177
+ CreateDeploymentMicrofrontendsApplications$outboundSchema;
9178
+ /** @deprecated use `CreateDeploymentMicrofrontendsApplications$Outbound` instead. */
9179
+ export type Outbound = CreateDeploymentMicrofrontendsApplications$Outbound;
9177
9180
  }
9178
9181
 
9179
- export function applicationsToJSON(applications: Applications): string {
9180
- return JSON.stringify(Applications$outboundSchema.parse(applications));
9182
+ export function createDeploymentMicrofrontendsApplicationsToJSON(
9183
+ createDeploymentMicrofrontendsApplications:
9184
+ CreateDeploymentMicrofrontendsApplications,
9185
+ ): string {
9186
+ return JSON.stringify(
9187
+ CreateDeploymentMicrofrontendsApplications$outboundSchema.parse(
9188
+ createDeploymentMicrofrontendsApplications,
9189
+ ),
9190
+ );
9181
9191
  }
9182
9192
 
9183
- export function applicationsFromJSON(
9193
+ export function createDeploymentMicrofrontendsApplicationsFromJSON(
9184
9194
  jsonString: string,
9185
- ): SafeParseResult<Applications, SDKValidationError> {
9195
+ ): SafeParseResult<
9196
+ CreateDeploymentMicrofrontendsApplications,
9197
+ SDKValidationError
9198
+ > {
9186
9199
  return safeParse(
9187
9200
  jsonString,
9188
- (x) => Applications$inboundSchema.parse(JSON.parse(x)),
9189
- `Failed to parse 'Applications' from JSON`,
9201
+ (x) =>
9202
+ CreateDeploymentMicrofrontendsApplications$inboundSchema.parse(
9203
+ JSON.parse(x),
9204
+ ),
9205
+ `Failed to parse 'CreateDeploymentMicrofrontendsApplications' from JSON`,
9190
9206
  );
9191
9207
  }
9192
9208
 
@@ -9196,7 +9212,9 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
9196
9212
  z.ZodTypeDef,
9197
9213
  unknown
9198
9214
  > = z.object({
9199
- applications: z.record(z.lazy(() => Applications$inboundSchema)).optional(),
9215
+ applications: z.record(
9216
+ z.lazy(() => CreateDeploymentMicrofrontendsApplications$inboundSchema),
9217
+ ).optional(),
9200
9218
  isDefaultApp: z.boolean(),
9201
9219
  defaultAppProjectName: z.string(),
9202
9220
  defaultRoute: z.string().optional(),
@@ -9206,7 +9224,9 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
9206
9224
 
9207
9225
  /** @internal */
9208
9226
  export type CreateDeploymentMicrofrontends2$Outbound = {
9209
- applications?: { [k: string]: Applications$Outbound } | undefined;
9227
+ applications?: {
9228
+ [k: string]: CreateDeploymentMicrofrontendsApplications$Outbound;
9229
+ } | undefined;
9210
9230
  isDefaultApp: boolean;
9211
9231
  defaultAppProjectName: string;
9212
9232
  defaultRoute?: string | undefined;
@@ -9220,7 +9240,9 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType<
9220
9240
  z.ZodTypeDef,
9221
9241
  CreateDeploymentMicrofrontends2
9222
9242
  > = z.object({
9223
- applications: z.record(z.lazy(() => Applications$outboundSchema)).optional(),
9243
+ applications: z.record(
9244
+ z.lazy(() => CreateDeploymentMicrofrontendsApplications$outboundSchema),
9245
+ ).optional(),
9224
9246
  isDefaultApp: z.boolean(),
9225
9247
  defaultAppProjectName: z.string(),
9226
9248
  defaultRoute: z.string().optional(),
@@ -271,10 +271,10 @@ export type CreateProjectEnvCreatedTarget =
271
271
 
272
272
  export const CreateProjectEnvCreatedType = {
273
273
  System: "system",
274
- Secret: "secret",
275
274
  Encrypted: "encrypted",
276
275
  Plain: "plain",
277
276
  Sensitive: "sensitive",
277
+ Secret: "secret",
278
278
  } as const;
279
279
  export type CreateProjectEnvCreatedType = ClosedEnum<
280
280
  typeof CreateProjectEnvCreatedType
@@ -617,10 +617,10 @@ export type CreatedTarget =
617
617
 
618
618
  export const CreatedType = {
619
619
  System: "system",
620
- Secret: "secret",
621
620
  Encrypted: "encrypted",
622
621
  Plain: "plain",
623
622
  Sensitive: "sensitive",
623
+ Secret: "secret",
624
624
  } as const;
625
625
  export type CreatedType = ClosedEnum<typeof CreatedType>;
626
626