@vercel/sdk 1.6.6 → 1.6.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 (45) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +22 -14
  3. package/bin/mcp-server.js.map +11 -11
  4. package/docs/sdks/projects/README.md +1 -1
  5. package/esm/__tests__/projects.test.js +15 -13
  6. package/esm/__tests__/projects.test.js.map +1 -1
  7. package/esm/funcs/projectsMoveProjectDomain.d.ts +1 -1
  8. package/esm/funcs/projectsMoveProjectDomain.js +1 -1
  9. package/esm/lib/config.d.ts +2 -2
  10. package/esm/lib/config.js +2 -2
  11. package/esm/mcp-server/mcp-server.js +1 -1
  12. package/esm/mcp-server/server.js +1 -1
  13. package/esm/mcp-server/tools/projectsMoveProjectDomain.js +1 -1
  14. package/esm/models/createprojectop.d.ts +5 -0
  15. package/esm/models/createprojectop.d.ts.map +1 -1
  16. package/esm/models/createprojectop.js +2 -0
  17. package/esm/models/createprojectop.js.map +1 -1
  18. package/esm/models/getprojectsop.d.ts +5 -0
  19. package/esm/models/getprojectsop.d.ts.map +1 -1
  20. package/esm/models/getprojectsop.js +2 -0
  21. package/esm/models/getprojectsop.js.map +1 -1
  22. package/esm/models/updateprojectdatacacheop.d.ts +5 -0
  23. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  24. package/esm/models/updateprojectdatacacheop.js +2 -0
  25. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  26. package/esm/models/updateprojectop.d.ts +5 -0
  27. package/esm/models/updateprojectop.d.ts.map +1 -1
  28. package/esm/models/updateprojectop.js +2 -0
  29. package/esm/models/updateprojectop.js.map +1 -1
  30. package/esm/sdk/projects.d.ts +1 -1
  31. package/esm/sdk/projects.js +1 -1
  32. package/jsr.json +1 -1
  33. package/package.json +1 -1
  34. package/src/__tests__/projects.test.ts +15 -13
  35. package/src/funcs/projectsMoveProjectDomain.ts +1 -1
  36. package/src/lib/config.ts +2 -2
  37. package/src/mcp-server/mcp-server.ts +1 -1
  38. package/src/mcp-server/server.ts +1 -1
  39. package/src/mcp-server/tools/projectsMoveProjectDomain.ts +1 -1
  40. package/src/models/createprojectop.ts +7 -0
  41. package/src/models/getprojectsop.ts +7 -0
  42. package/src/models/updateprojectdatacacheop.ts +7 -0
  43. package/src/models/updateprojectop.ts +7 -0
  44. package/src/sdk/projects.ts +1 -1
  45. package/vercel-spec.json +21 -1
@@ -95,7 +95,7 @@ export declare class Projects extends ClientSDK {
95
95
  */
96
96
  addProjectDomain(request: AddProjectDomainRequest, options?: RequestOptions): Promise<AddProjectDomainResponseBody>;
97
97
  /**
98
- * Update a project domain
98
+ * Move a project domain
99
99
  *
100
100
  * @remarks
101
101
  * Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.
@@ -119,7 +119,7 @@ export class Projects extends ClientSDK {
119
119
  return unwrapAsync(projectsAddProjectDomain(this, request, options));
120
120
  }
121
121
  /**
122
- * Update a project domain
122
+ * Move a project domain
123
123
  *
124
124
  * @remarks
125
125
  * Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@vercel/sdk",
5
- "version": "1.6.6",
5
+ "version": "1.6.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.6.6",
3
+ "version": "1.6.7",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -671,19 +671,21 @@ test("Projects Create Project Env", async () => {
671
671
  upsert: "true",
672
672
  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
673
673
  slug: "my-team-url-slug",
674
- requestBody: {
675
- key: "API_URL",
676
- value: "https://api.vercel.com",
677
- type: "plain",
678
- target: [
679
- "preview",
680
- ],
681
- gitBranch: "feature-1",
682
- comment: "database connection string for production",
683
- customEnvironmentIds: [
684
- "env_1234567890",
685
- ],
686
- },
674
+ requestBody: [
675
+ {
676
+ key: "API_URL",
677
+ value: "https://api.vercel.com",
678
+ type: "plain",
679
+ target: [
680
+ "preview",
681
+ ],
682
+ gitBranch: "feature-1",
683
+ comment: "database connection string for production",
684
+ customEnvironmentIds: [
685
+ "env_1234567890",
686
+ ],
687
+ },
688
+ ],
687
689
  });
688
690
  expect(result).toBeDefined();
689
691
  expect(result).toEqual({
@@ -37,7 +37,7 @@ import { APICall, APIPromise } from "../types/async.js";
37
37
  import { Result } from "../types/fp.js";
38
38
 
39
39
  /**
40
- * Update a project domain
40
+ * Move a project domain
41
41
  *
42
42
  * @remarks
43
43
  * Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.
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.6.6",
60
+ sdkVersion: "1.6.7",
61
61
  genVersion: "2.593.4",
62
- userAgent: "speakeasy-sdk/typescript 1.6.6 2.593.4 0.0.1 @vercel/sdk",
62
+ userAgent: "speakeasy-sdk/typescript 1.6.7 2.593.4 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.6.6",
22
+ currentVersion: "1.6.7",
23
23
  },
24
24
  });
25
25
 
@@ -185,7 +185,7 @@ export function createMCPServer(deps: {
185
185
  }) {
186
186
  const server = new McpServer({
187
187
  name: "Vercel",
188
- version: "1.6.6",
188
+ version: "1.6.7",
189
189
  });
190
190
 
191
191
  const client = new VercelCore({
@@ -12,7 +12,7 @@ const args = {
12
12
 
13
13
  export const tool$projectsMoveProjectDomain: ToolDefinition<typeof args> = {
14
14
  name: "projects-move-project-domain",
15
- description: `Update a project domain
15
+ description: `Move a project domain
16
16
 
17
17
  Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.`,
18
18
  args,
@@ -1106,6 +1106,10 @@ export type CreateProjectStages = {
1106
1106
  * Whether or not this stage requires approval to proceed.
1107
1107
  */
1108
1108
  requireApproval?: boolean | undefined;
1109
+ /**
1110
+ * duration is the total time to serve a stage, at the given targetPercentage.
1111
+ */
1112
+ duration?: number | undefined;
1109
1113
  };
1110
1114
 
1111
1115
  export type CreateProjectRollingRelease = {
@@ -6765,6 +6769,7 @@ export const CreateProjectStages$inboundSchema: z.ZodType<
6765
6769
  targetPercentage: z.number(),
6766
6770
  minutesToRelease: z.number().optional(),
6767
6771
  requireApproval: z.boolean().optional(),
6772
+ duration: z.number().optional(),
6768
6773
  });
6769
6774
 
6770
6775
  /** @internal */
@@ -6772,6 +6777,7 @@ export type CreateProjectStages$Outbound = {
6772
6777
  targetPercentage: number;
6773
6778
  minutesToRelease?: number | undefined;
6774
6779
  requireApproval?: boolean | undefined;
6780
+ duration?: number | undefined;
6775
6781
  };
6776
6782
 
6777
6783
  /** @internal */
@@ -6783,6 +6789,7 @@ export const CreateProjectStages$outboundSchema: z.ZodType<
6783
6789
  targetPercentage: z.number(),
6784
6790
  minutesToRelease: z.number().optional(),
6785
6791
  requireApproval: z.boolean().optional(),
6792
+ duration: z.number().optional(),
6786
6793
  });
6787
6794
 
6788
6795
  /**
@@ -914,6 +914,10 @@ export type GetProjectsStages = {
914
914
  * Whether or not this stage requires approval to proceed.
915
915
  */
916
916
  requireApproval?: boolean | undefined;
917
+ /**
918
+ * duration is the total time to serve a stage, at the given targetPercentage.
919
+ */
920
+ duration?: number | undefined;
917
921
  };
918
922
 
919
923
  export type GetProjectsRollingRelease = {
@@ -6137,6 +6141,7 @@ export const GetProjectsStages$inboundSchema: z.ZodType<
6137
6141
  targetPercentage: z.number(),
6138
6142
  minutesToRelease: z.number().optional(),
6139
6143
  requireApproval: z.boolean().optional(),
6144
+ duration: z.number().optional(),
6140
6145
  });
6141
6146
 
6142
6147
  /** @internal */
@@ -6144,6 +6149,7 @@ export type GetProjectsStages$Outbound = {
6144
6149
  targetPercentage: number;
6145
6150
  minutesToRelease?: number | undefined;
6146
6151
  requireApproval?: boolean | undefined;
6152
+ duration?: number | undefined;
6147
6153
  };
6148
6154
 
6149
6155
  /** @internal */
@@ -6155,6 +6161,7 @@ export const GetProjectsStages$outboundSchema: z.ZodType<
6155
6161
  targetPercentage: z.number(),
6156
6162
  minutesToRelease: z.number().optional(),
6157
6163
  requireApproval: z.boolean().optional(),
6164
+ duration: z.number().optional(),
6158
6165
  });
6159
6166
 
6160
6167
  /**
@@ -878,6 +878,10 @@ export type Stages = {
878
878
  * Whether or not this stage requires approval to proceed.
879
879
  */
880
880
  requireApproval?: boolean | undefined;
881
+ /**
882
+ * duration is the total time to serve a stage, at the given targetPercentage.
883
+ */
884
+ duration?: number | undefined;
881
885
  };
882
886
 
883
887
  export type RollingRelease = {
@@ -6069,6 +6073,7 @@ export const Stages$inboundSchema: z.ZodType<Stages, z.ZodTypeDef, unknown> = z
6069
6073
  targetPercentage: z.number(),
6070
6074
  minutesToRelease: z.number().optional(),
6071
6075
  requireApproval: z.boolean().optional(),
6076
+ duration: z.number().optional(),
6072
6077
  });
6073
6078
 
6074
6079
  /** @internal */
@@ -6076,6 +6081,7 @@ export type Stages$Outbound = {
6076
6081
  targetPercentage: number;
6077
6082
  minutesToRelease?: number | undefined;
6078
6083
  requireApproval?: boolean | undefined;
6084
+ duration?: number | undefined;
6079
6085
  };
6080
6086
 
6081
6087
  /** @internal */
@@ -6087,6 +6093,7 @@ export const Stages$outboundSchema: z.ZodType<
6087
6093
  targetPercentage: z.number(),
6088
6094
  minutesToRelease: z.number().optional(),
6089
6095
  requireApproval: z.boolean().optional(),
6096
+ duration: z.number().optional(),
6090
6097
  });
6091
6098
 
6092
6099
  /**
@@ -1197,6 +1197,10 @@ export type UpdateProjectStages = {
1197
1197
  * Whether or not this stage requires approval to proceed.
1198
1198
  */
1199
1199
  requireApproval?: boolean | undefined;
1200
+ /**
1201
+ * duration is the total time to serve a stage, at the given targetPercentage.
1202
+ */
1203
+ duration?: number | undefined;
1200
1204
  };
1201
1205
 
1202
1206
  export type UpdateProjectRollingRelease = {
@@ -7105,6 +7109,7 @@ export const UpdateProjectStages$inboundSchema: z.ZodType<
7105
7109
  targetPercentage: z.number(),
7106
7110
  minutesToRelease: z.number().optional(),
7107
7111
  requireApproval: z.boolean().optional(),
7112
+ duration: z.number().optional(),
7108
7113
  });
7109
7114
 
7110
7115
  /** @internal */
@@ -7112,6 +7117,7 @@ export type UpdateProjectStages$Outbound = {
7112
7117
  targetPercentage: number;
7113
7118
  minutesToRelease?: number | undefined;
7114
7119
  requireApproval?: boolean | undefined;
7120
+ duration?: number | undefined;
7115
7121
  };
7116
7122
 
7117
7123
  /** @internal */
@@ -7123,6 +7129,7 @@ export const UpdateProjectStages$outboundSchema: z.ZodType<
7123
7129
  targetPercentage: z.number(),
7124
7130
  minutesToRelease: z.number().optional(),
7125
7131
  requireApproval: z.boolean().optional(),
7132
+ duration: z.number().optional(),
7126
7133
  });
7127
7134
 
7128
7135
  /**
@@ -285,7 +285,7 @@ export class Projects extends ClientSDK {
285
285
  }
286
286
 
287
287
  /**
288
- * Update a project domain
288
+ * Move a project domain
289
289
  *
290
290
  * @remarks
291
291
  * Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.
package/vercel-spec.json CHANGED
@@ -5688,6 +5688,10 @@
5688
5688
  "requireApproval": {
5689
5689
  "type": "boolean",
5690
5690
  "description": "Whether or not this stage requires approval to proceed."
5691
+ },
5692
+ "duration": {
5693
+ "type": "number",
5694
+ "description": "duration is the total time to serve a stage, at the given targetPercentage."
5691
5695
  }
5692
5696
  },
5693
5697
  "required": [
@@ -27371,6 +27375,10 @@
27371
27375
  "requireApproval": {
27372
27376
  "type": "boolean",
27373
27377
  "description": "Whether or not this stage requires approval to proceed."
27378
+ },
27379
+ "duration": {
27380
+ "type": "number",
27381
+ "description": "duration is the total time to serve a stage, at the given targetPercentage."
27374
27382
  }
27375
27383
  },
27376
27384
  "required": [
@@ -31239,6 +31247,10 @@
31239
31247
  "requireApproval": {
31240
31248
  "type": "boolean",
31241
31249
  "description": "Whether or not this stage requires approval to proceed."
31250
+ },
31251
+ "duration": {
31252
+ "type": "number",
31253
+ "description": "duration is the total time to serve a stage, at the given targetPercentage."
31242
31254
  }
31243
31255
  },
31244
31256
  "required": [
@@ -35234,6 +35246,10 @@
35234
35246
  "requireApproval": {
35235
35247
  "type": "boolean",
35236
35248
  "description": "Whether or not this stage requires approval to proceed."
35249
+ },
35250
+ "duration": {
35251
+ "type": "number",
35252
+ "description": "duration is the total time to serve a stage, at the given targetPercentage."
35237
35253
  }
35238
35254
  },
35239
35255
  "required": [
@@ -38992,6 +39008,10 @@
38992
39008
  "requireApproval": {
38993
39009
  "type": "boolean",
38994
39010
  "description": "Whether or not this stage requires approval to proceed."
39011
+ },
39012
+ "duration": {
39013
+ "type": "number",
39014
+ "description": "duration is the total time to serve a stage, at the given targetPercentage."
38995
39015
  }
38996
39016
  },
38997
39017
  "required": [
@@ -43407,7 +43427,7 @@
43407
43427
  "bearerToken": []
43408
43428
  }
43409
43429
  ],
43410
- "summary": "Update a project domain",
43430
+ "summary": "Move a project domain",
43411
43431
  "tags": [
43412
43432
  "projects"
43413
43433
  ],