@vercel/sdk 1.18.3 → 1.18.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.
- package/README.md +42 -22
- package/bin/mcp-server.js +2709 -2592
- package/bin/mcp-server.js.map +32 -32
- package/esm/__tests__/accessgroups.test.js +1 -3
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/bulkredirects.test.d.ts +2 -0
- package/esm/__tests__/bulkredirects.test.d.ts.map +1 -0
- package/esm/__tests__/bulkredirects.test.js +171 -0
- package/esm/__tests__/bulkredirects.test.js.map +1 -0
- package/esm/__tests__/domains.test.js +9 -6
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/security.test.js +23 -14
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +15 -143
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/{deleteV1BulkRedirects.d.ts → bulkRedirectsDeleteRedirects.d.ts} +6 -3
- package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
- package/esm/funcs/{deleteV1BulkRedirects.js → bulkRedirectsDeleteRedirects.js} +19 -9
- package/esm/funcs/bulkRedirectsDeleteRedirects.js.map +1 -0
- package/esm/funcs/{patchV1BulkRedirects.d.ts → bulkRedirectsEditRedirect.d.ts} +6 -3
- package/esm/funcs/bulkRedirectsEditRedirect.d.ts.map +1 -0
- package/esm/funcs/{patchV1BulkRedirects.js → bulkRedirectsEditRedirect.js} +19 -9
- package/esm/funcs/bulkRedirectsEditRedirect.js.map +1 -0
- package/esm/funcs/{getV1BulkRedirects.d.ts → bulkRedirectsGetRedirects.d.ts} +6 -3
- package/esm/funcs/bulkRedirectsGetRedirects.d.ts.map +1 -0
- package/esm/funcs/{getV1BulkRedirects.js → bulkRedirectsGetRedirects.js} +19 -9
- package/esm/funcs/bulkRedirectsGetRedirects.js.map +1 -0
- package/esm/funcs/{getV1BulkRedirectsVersions.d.ts → bulkRedirectsGetVersions.d.ts} +6 -3
- package/esm/funcs/bulkRedirectsGetVersions.d.ts.map +1 -0
- package/esm/funcs/{getV1BulkRedirectsVersions.js → bulkRedirectsGetVersions.js} +19 -9
- package/esm/funcs/bulkRedirectsGetVersions.js.map +1 -0
- package/esm/funcs/{postV1BulkRedirectsRestore.d.ts → bulkRedirectsRestoreRedirects.d.ts} +6 -3
- package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
- package/esm/funcs/{postV1BulkRedirectsRestore.js → bulkRedirectsRestoreRedirects.js} +19 -9
- package/esm/funcs/bulkRedirectsRestoreRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsStageRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsStageRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsStageRedirects.js +83 -0
- package/esm/funcs/bulkRedirectsStageRedirects.js.map +1 -0
- package/esm/funcs/{postV1BulkRedirectsVersions.d.ts → bulkRedirectsUpdateVersion.d.ts} +6 -3
- package/esm/funcs/bulkRedirectsUpdateVersion.d.ts.map +1 -0
- package/esm/funcs/{postV1BulkRedirectsVersions.js → bulkRedirectsUpdateVersion.js} +19 -9
- package/esm/funcs/bulkRedirectsUpdateVersion.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +15 -15
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js.map +1 -0
- package/esm/models/artifactqueryop.d.ts +8 -8
- package/esm/models/artifactqueryop.d.ts.map +1 -1
- package/esm/models/artifactqueryop.js +8 -8
- package/esm/models/artifactqueryop.js.map +1 -1
- package/esm/models/deleteredirectsop.d.ts +112 -0
- package/esm/models/deleteredirectsop.d.ts.map +1 -0
- package/esm/models/deleteredirectsop.js +99 -0
- package/esm/models/deleteredirectsop.js.map +1 -0
- package/esm/models/{patchv1bulkredirectsop.d.ts → editredirectop.d.ts} +39 -29
- package/esm/models/editredirectop.d.ts.map +1 -0
- package/esm/models/editredirectop.js +123 -0
- package/esm/models/editredirectop.js.map +1 -0
- package/esm/models/getfirewallconfigop.d.ts +8 -8
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +10 -8
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/{getv1bulkredirectsop.d.ts → getredirectsop.d.ts} +37 -27
- package/esm/models/getredirectsop.d.ts.map +1 -0
- package/esm/models/{getv1bulkredirectsop.js → getredirectsop.js} +38 -28
- package/esm/models/getredirectsop.js.map +1 -0
- package/esm/models/{getv1bulkredirectsversionsop.d.ts → getversionsop.d.ts} +23 -13
- package/esm/models/getversionsop.d.ts.map +1 -0
- package/esm/models/{getv1bulkredirectsversionsop.js → getversionsop.js} +17 -13
- package/esm/models/getversionsop.js.map +1 -0
- package/esm/models/listaccessgroupsop.d.ts +8 -8
- package/esm/models/listaccessgroupsop.d.ts.map +1 -1
- package/esm/models/listaccessgroupsop.js +8 -8
- package/esm/models/listaccessgroupsop.js.map +1 -1
- package/esm/models/putfirewallconfigop.d.ts +11 -6
- package/esm/models/putfirewallconfigop.d.ts.map +1 -1
- package/esm/models/putfirewallconfigop.js +12 -2
- package/esm/models/putfirewallconfigop.js.map +1 -1
- package/esm/models/restoreredirectsop.d.ts +114 -0
- package/esm/models/restoreredirectsop.d.ts.map +1 -0
- package/esm/models/restoreredirectsop.js +101 -0
- package/esm/models/restoreredirectsop.js.map +1 -0
- package/esm/models/{putv1bulkredirectsop.d.ts → stageredirectsop.d.ts} +44 -21
- package/esm/models/stageredirectsop.d.ts.map +1 -0
- package/esm/models/stageredirectsop.js +136 -0
- package/esm/models/stageredirectsop.js.map +1 -0
- package/esm/models/team.d.ts +6 -6
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +6 -4
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateversionop.d.ts +120 -0
- package/esm/models/updateversionop.d.ts.map +1 -0
- package/esm/models/updateversionop.js +106 -0
- package/esm/models/updateversionop.js.map +1 -0
- package/esm/sdk/bulkredirects.d.ts +60 -0
- package/esm/sdk/bulkredirects.d.ts.map +1 -0
- package/esm/sdk/bulkredirects.js +78 -0
- package/esm/sdk/bulkredirects.js.map +1 -0
- package/esm/sdk/sdk.d.ts +4 -33
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -47
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +1 -3
- package/src/__tests__/bulkredirects.test.ts +192 -0
- package/src/__tests__/domains.test.ts +9 -6
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/security.test.ts +23 -14
- package/src/__tests__/vercel.test.ts +26 -160
- package/src/funcs/{deleteV1BulkRedirects.ts → bulkRedirectsDeleteRedirects.ts} +28 -17
- package/src/funcs/{patchV1BulkRedirects.ts → bulkRedirectsEditRedirect.ts} +29 -18
- package/src/funcs/{getV1BulkRedirects.ts → bulkRedirectsGetRedirects.ts} +28 -17
- package/src/funcs/{getV1BulkRedirectsVersions.ts → bulkRedirectsGetVersions.ts} +28 -17
- package/src/funcs/{postV1BulkRedirectsRestore.ts → bulkRedirectsRestoreRedirects.ts} +29 -18
- package/src/funcs/bulkRedirectsStageRedirects.ts +171 -0
- package/src/funcs/{postV1BulkRedirectsVersions.ts → bulkRedirectsUpdateVersion.ts} +29 -18
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +15 -15
- package/src/mcp-server/tools/bulkRedirectsDeleteRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsEditRedirect.ts +37 -0
- package/src/mcp-server/tools/{getV1BulkRedirects.ts → bulkRedirectsGetRedirects.ts} +9 -7
- package/src/mcp-server/tools/{putV1BulkRedirects.ts → bulkRedirectsGetVersions.ts} +9 -7
- package/src/mcp-server/tools/bulkRedirectsRestoreRedirects.ts +38 -0
- package/src/mcp-server/tools/bulkRedirectsStageRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsUpdateVersion.ts +38 -0
- package/src/models/artifactqueryop.ts +17 -21
- package/src/models/deleteredirectsop.ts +275 -0
- package/src/models/{patchv1bulkredirectsop.ts → editredirectop.ts} +78 -74
- package/src/models/getfirewallconfigop.ts +25 -17
- package/src/models/{getv1bulkredirectsop.ts → getredirectsop.ts} +91 -66
- package/src/models/{getv1bulkredirectsversionsop.ts → getversionsop.ts} +42 -34
- package/src/models/listaccessgroupsop.ts +18 -26
- package/src/models/putfirewallconfigop.ts +35 -4
- package/src/models/restoreredirectsop.ts +281 -0
- package/src/models/{putv1bulkredirectsop.ts → stageredirectsop.ts} +113 -50
- package/src/models/team.ts +14 -10
- package/src/models/updateversionop.ts +285 -0
- package/src/sdk/bulkredirects.ts +162 -0
- package/src/sdk/sdk.ts +7 -132
- package/vercel-spec.json +212 -36
- package/esm/funcs/deleteV1BulkRedirects.d.ts.map +0 -1
- package/esm/funcs/deleteV1BulkRedirects.js.map +0 -1
- package/esm/funcs/getV1BulkRedirects.d.ts.map +0 -1
- package/esm/funcs/getV1BulkRedirects.js.map +0 -1
- package/esm/funcs/getV1BulkRedirectsVersions.d.ts.map +0 -1
- package/esm/funcs/getV1BulkRedirectsVersions.js.map +0 -1
- package/esm/funcs/patchV1BulkRedirects.d.ts.map +0 -1
- package/esm/funcs/patchV1BulkRedirects.js.map +0 -1
- package/esm/funcs/postV1BulkRedirectsRestore.d.ts.map +0 -1
- package/esm/funcs/postV1BulkRedirectsRestore.js.map +0 -1
- package/esm/funcs/postV1BulkRedirectsVersions.d.ts.map +0 -1
- package/esm/funcs/postV1BulkRedirectsVersions.js.map +0 -1
- package/esm/funcs/putV1BulkRedirects.d.ts +0 -11
- package/esm/funcs/putV1BulkRedirects.d.ts.map +0 -1
- package/esm/funcs/putV1BulkRedirects.js +0 -69
- package/esm/funcs/putV1BulkRedirects.js.map +0 -1
- package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts +0 -7
- package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts.map +0 -1
- package/esm/mcp-server/tools/deleteV1BulkRedirects.js +0 -26
- package/esm/mcp-server/tools/deleteV1BulkRedirects.js.map +0 -1
- package/esm/mcp-server/tools/getV1BulkRedirects.d.ts +0 -7
- package/esm/mcp-server/tools/getV1BulkRedirects.d.ts.map +0 -1
- package/esm/mcp-server/tools/getV1BulkRedirects.js +0 -26
- package/esm/mcp-server/tools/getV1BulkRedirects.js.map +0 -1
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts +0 -7
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts.map +0 -1
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js +0 -26
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js.map +0 -1
- package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts +0 -7
- package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts.map +0 -1
- package/esm/mcp-server/tools/patchV1BulkRedirects.js +0 -26
- package/esm/mcp-server/tools/patchV1BulkRedirects.js.map +0 -1
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts +0 -7
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts.map +0 -1
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js +0 -26
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js.map +0 -1
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts +0 -7
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts.map +0 -1
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js +0 -26
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js.map +0 -1
- package/esm/mcp-server/tools/putV1BulkRedirects.d.ts +0 -7
- package/esm/mcp-server/tools/putV1BulkRedirects.d.ts.map +0 -1
- package/esm/mcp-server/tools/putV1BulkRedirects.js +0 -26
- package/esm/mcp-server/tools/putV1BulkRedirects.js.map +0 -1
- package/esm/models/deletev1bulkredirectsop.d.ts +0 -102
- package/esm/models/deletev1bulkredirectsop.d.ts.map +0 -1
- package/esm/models/deletev1bulkredirectsop.js +0 -95
- package/esm/models/deletev1bulkredirectsop.js.map +0 -1
- package/esm/models/getv1bulkredirectsop.d.ts.map +0 -1
- package/esm/models/getv1bulkredirectsop.js.map +0 -1
- package/esm/models/getv1bulkredirectsversionsop.d.ts.map +0 -1
- package/esm/models/getv1bulkredirectsversionsop.js.map +0 -1
- package/esm/models/patchv1bulkredirectsop.d.ts.map +0 -1
- package/esm/models/patchv1bulkredirectsop.js +0 -121
- package/esm/models/patchv1bulkredirectsop.js.map +0 -1
- package/esm/models/postv1bulkredirectsrestoreop.d.ts +0 -104
- package/esm/models/postv1bulkredirectsrestoreop.d.ts.map +0 -1
- package/esm/models/postv1bulkredirectsrestoreop.js +0 -96
- package/esm/models/postv1bulkredirectsrestoreop.js.map +0 -1
- package/esm/models/postv1bulkredirectsversionsop.d.ts +0 -110
- package/esm/models/postv1bulkredirectsversionsop.d.ts.map +0 -1
- package/esm/models/postv1bulkredirectsversionsop.js +0 -102
- package/esm/models/postv1bulkredirectsversionsop.js.map +0 -1
- package/esm/models/putv1bulkredirectsop.d.ts.map +0 -1
- package/esm/models/putv1bulkredirectsop.js +0 -108
- package/esm/models/putv1bulkredirectsop.js.map +0 -1
- package/src/funcs/putV1BulkRedirects.ts +0 -156
- package/src/mcp-server/tools/deleteV1BulkRedirects.ts +0 -36
- package/src/mcp-server/tools/getV1BulkRedirectsVersions.ts +0 -35
- package/src/mcp-server/tools/patchV1BulkRedirects.ts +0 -36
- package/src/mcp-server/tools/postV1BulkRedirectsRestore.ts +0 -36
- package/src/mcp-server/tools/postV1BulkRedirectsVersions.ts +0 -36
- package/src/models/deletev1bulkredirectsop.ts +0 -267
- package/src/models/postv1bulkredirectsrestoreop.ts +0 -275
- package/src/models/postv1bulkredirectsversionsop.ts +0 -296
|
@@ -8,13 +8,14 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "../models/
|
|
14
|
+
GetVersionsRequest,
|
|
15
|
+
GetVersionsRequest$outboundSchema,
|
|
16
|
+
GetVersionsResponseBody,
|
|
17
|
+
GetVersionsResponseBody$inboundSchema,
|
|
18
|
+
} from "../models/getversionsop.js";
|
|
18
19
|
import {
|
|
19
20
|
ConnectionError,
|
|
20
21
|
InvalidRequestError,
|
|
@@ -29,15 +30,18 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
29
30
|
import { Result } from "../types/fp.js";
|
|
30
31
|
|
|
31
32
|
/**
|
|
33
|
+
* Get the version history for a project's redirects.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
32
36
|
* Get the version history for a project's bulk redirects
|
|
33
37
|
*/
|
|
34
|
-
export function
|
|
38
|
+
export function bulkRedirectsGetVersions(
|
|
35
39
|
client: VercelCore,
|
|
36
|
-
request:
|
|
40
|
+
request: GetVersionsRequest,
|
|
37
41
|
options?: RequestOptions,
|
|
38
42
|
): APIPromise<
|
|
39
43
|
Result<
|
|
40
|
-
|
|
44
|
+
GetVersionsResponseBody,
|
|
41
45
|
| VercelError
|
|
42
46
|
| ResponseValidationError
|
|
43
47
|
| ConnectionError
|
|
@@ -57,12 +61,12 @@ export function getV1BulkRedirectsVersions(
|
|
|
57
61
|
|
|
58
62
|
async function $do(
|
|
59
63
|
client: VercelCore,
|
|
60
|
-
request:
|
|
64
|
+
request: GetVersionsRequest,
|
|
61
65
|
options?: RequestOptions,
|
|
62
66
|
): Promise<
|
|
63
67
|
[
|
|
64
68
|
Result<
|
|
65
|
-
|
|
69
|
+
GetVersionsResponseBody,
|
|
66
70
|
| VercelError
|
|
67
71
|
| ResponseValidationError
|
|
68
72
|
| ConnectionError
|
|
@@ -77,7 +81,7 @@ async function $do(
|
|
|
77
81
|
> {
|
|
78
82
|
const parsed = safeParse(
|
|
79
83
|
request,
|
|
80
|
-
(value) =>
|
|
84
|
+
(value) => GetVersionsRequest$outboundSchema.parse(value),
|
|
81
85
|
"Input validation failed",
|
|
82
86
|
);
|
|
83
87
|
if (!parsed.ok) {
|
|
@@ -86,25 +90,31 @@ async function $do(
|
|
|
86
90
|
const payload = parsed.value;
|
|
87
91
|
const body = null;
|
|
88
92
|
|
|
89
|
-
const path = pathToFunc("/v1/bulk-redirects/versions")();
|
|
93
|
+
const path = pathToFunc("/v1/v1/bulk-redirects/versions")();
|
|
90
94
|
|
|
91
95
|
const query = encodeFormQuery({
|
|
92
96
|
"projectId": payload.projectId,
|
|
97
|
+
"slug": payload.slug,
|
|
98
|
+
"teamId": payload.teamId,
|
|
93
99
|
});
|
|
94
100
|
|
|
95
101
|
const headers = new Headers(compactMap({
|
|
96
102
|
Accept: "application/json",
|
|
97
103
|
}));
|
|
98
104
|
|
|
105
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
99
109
|
const context = {
|
|
100
110
|
options: client._options,
|
|
101
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
|
-
operationID: "
|
|
112
|
+
operationID: "getVersions",
|
|
103
113
|
oAuth2Scopes: null,
|
|
104
114
|
|
|
105
|
-
resolvedSecurity:
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
106
116
|
|
|
107
|
-
securitySource:
|
|
117
|
+
securitySource: client._options.bearerToken,
|
|
108
118
|
retryConfig: options?.retries
|
|
109
119
|
|| client._options.retryConfig
|
|
110
120
|
|| { strategy: "none" },
|
|
@@ -112,6 +122,7 @@ async function $do(
|
|
|
112
122
|
};
|
|
113
123
|
|
|
114
124
|
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
115
126
|
method: "GET",
|
|
116
127
|
baseURL: options?.serverURL,
|
|
117
128
|
path: path,
|
|
@@ -138,7 +149,7 @@ async function $do(
|
|
|
138
149
|
const response = doResult.value;
|
|
139
150
|
|
|
140
151
|
const [result] = await M.match<
|
|
141
|
-
|
|
152
|
+
GetVersionsResponseBody,
|
|
142
153
|
| VercelError
|
|
143
154
|
| ResponseValidationError
|
|
144
155
|
| ConnectionError
|
|
@@ -148,7 +159,7 @@ async function $do(
|
|
|
148
159
|
| UnexpectedClientError
|
|
149
160
|
| SDKValidationError
|
|
150
161
|
>(
|
|
151
|
-
M.json(200,
|
|
162
|
+
M.json(200, GetVersionsResponseBody$inboundSchema),
|
|
152
163
|
M.fail([400, 401, 403, "4XX"]),
|
|
153
164
|
M.fail([500, "5XX"]),
|
|
154
165
|
)(response, req);
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
ConnectionError,
|
|
@@ -16,28 +17,31 @@ import {
|
|
|
16
17
|
RequestTimeoutError,
|
|
17
18
|
UnexpectedClientError,
|
|
18
19
|
} from "../models/httpclienterrors.js";
|
|
19
|
-
import {
|
|
20
|
-
PostV1BulkRedirectsRestoreRequest,
|
|
21
|
-
PostV1BulkRedirectsRestoreRequest$outboundSchema,
|
|
22
|
-
PostV1BulkRedirectsRestoreResponseBody,
|
|
23
|
-
PostV1BulkRedirectsRestoreResponseBody$inboundSchema,
|
|
24
|
-
} from "../models/postv1bulkredirectsrestoreop.js";
|
|
25
20
|
import { ResponseValidationError } from "../models/responsevalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
RestoreRedirectsRequest,
|
|
23
|
+
RestoreRedirectsRequest$outboundSchema,
|
|
24
|
+
RestoreRedirectsResponseBody,
|
|
25
|
+
RestoreRedirectsResponseBody$inboundSchema,
|
|
26
|
+
} from "../models/restoreredirectsop.js";
|
|
26
27
|
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
27
28
|
import { VercelError } from "../models/vercelerror.js";
|
|
28
29
|
import { APICall, APIPromise } from "../types/async.js";
|
|
29
30
|
import { Result } from "../types/fp.js";
|
|
30
31
|
|
|
31
32
|
/**
|
|
33
|
+
* Restore staged project-level redirects to their production version.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
32
36
|
* Restores the provided redirects in the staging version to the value in the production version. If no production version exists, removes the redirects from staging.
|
|
33
37
|
*/
|
|
34
|
-
export function
|
|
38
|
+
export function bulkRedirectsRestoreRedirects(
|
|
35
39
|
client: VercelCore,
|
|
36
|
-
request:
|
|
40
|
+
request: RestoreRedirectsRequest,
|
|
37
41
|
options?: RequestOptions,
|
|
38
42
|
): APIPromise<
|
|
39
43
|
Result<
|
|
40
|
-
|
|
44
|
+
RestoreRedirectsResponseBody,
|
|
41
45
|
| VercelError
|
|
42
46
|
| ResponseValidationError
|
|
43
47
|
| ConnectionError
|
|
@@ -57,12 +61,12 @@ export function postV1BulkRedirectsRestore(
|
|
|
57
61
|
|
|
58
62
|
async function $do(
|
|
59
63
|
client: VercelCore,
|
|
60
|
-
request:
|
|
64
|
+
request: RestoreRedirectsRequest,
|
|
61
65
|
options?: RequestOptions,
|
|
62
66
|
): Promise<
|
|
63
67
|
[
|
|
64
68
|
Result<
|
|
65
|
-
|
|
69
|
+
RestoreRedirectsResponseBody,
|
|
66
70
|
| VercelError
|
|
67
71
|
| ResponseValidationError
|
|
68
72
|
| ConnectionError
|
|
@@ -77,7 +81,7 @@ async function $do(
|
|
|
77
81
|
> {
|
|
78
82
|
const parsed = safeParse(
|
|
79
83
|
request,
|
|
80
|
-
(value) =>
|
|
84
|
+
(value) => RestoreRedirectsRequest$outboundSchema.parse(value),
|
|
81
85
|
"Input validation failed",
|
|
82
86
|
);
|
|
83
87
|
if (!parsed.ok) {
|
|
@@ -86,10 +90,12 @@ async function $do(
|
|
|
86
90
|
const payload = parsed.value;
|
|
87
91
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
88
92
|
|
|
89
|
-
const path = pathToFunc("/v1/bulk-redirects/restore")();
|
|
93
|
+
const path = pathToFunc("/v1/v1/bulk-redirects/restore")();
|
|
90
94
|
|
|
91
95
|
const query = encodeFormQuery({
|
|
92
96
|
"projectId": payload.projectId,
|
|
97
|
+
"slug": payload.slug,
|
|
98
|
+
"teamId": payload.teamId,
|
|
93
99
|
});
|
|
94
100
|
|
|
95
101
|
const headers = new Headers(compactMap({
|
|
@@ -97,15 +103,19 @@ async function $do(
|
|
|
97
103
|
Accept: "application/json",
|
|
98
104
|
}));
|
|
99
105
|
|
|
106
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
107
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
108
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
+
|
|
100
110
|
const context = {
|
|
101
111
|
options: client._options,
|
|
102
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "
|
|
113
|
+
operationID: "restoreRedirects",
|
|
104
114
|
oAuth2Scopes: null,
|
|
105
115
|
|
|
106
|
-
resolvedSecurity:
|
|
116
|
+
resolvedSecurity: requestSecurity,
|
|
107
117
|
|
|
108
|
-
securitySource:
|
|
118
|
+
securitySource: client._options.bearerToken,
|
|
109
119
|
retryConfig: options?.retries
|
|
110
120
|
|| client._options.retryConfig
|
|
111
121
|
|| { strategy: "none" },
|
|
@@ -113,6 +123,7 @@ async function $do(
|
|
|
113
123
|
};
|
|
114
124
|
|
|
115
125
|
const requestRes = client._createRequest(context, {
|
|
126
|
+
security: requestSecurity,
|
|
116
127
|
method: "POST",
|
|
117
128
|
baseURL: options?.serverURL,
|
|
118
129
|
path: path,
|
|
@@ -139,7 +150,7 @@ async function $do(
|
|
|
139
150
|
const response = doResult.value;
|
|
140
151
|
|
|
141
152
|
const [result] = await M.match<
|
|
142
|
-
|
|
153
|
+
RestoreRedirectsResponseBody,
|
|
143
154
|
| VercelError
|
|
144
155
|
| ResponseValidationError
|
|
145
156
|
| ConnectionError
|
|
@@ -149,7 +160,7 @@ async function $do(
|
|
|
149
160
|
| UnexpectedClientError
|
|
150
161
|
| SDKValidationError
|
|
151
162
|
>(
|
|
152
|
-
M.json(200,
|
|
163
|
+
M.json(200, RestoreRedirectsResponseBody$inboundSchema),
|
|
153
164
|
M.fail([400, 401, 403, 404, "4XX"]),
|
|
154
165
|
M.fail([500, "5XX"]),
|
|
155
166
|
)(response, req);
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { VercelCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/httpclienterrors.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/responsevalidationerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
StageRedirectsRequest,
|
|
24
|
+
StageRedirectsRequest$outboundSchema,
|
|
25
|
+
StageRedirectsResponseBody,
|
|
26
|
+
StageRedirectsResponseBody$inboundSchema,
|
|
27
|
+
} from "../models/stageredirectsop.js";
|
|
28
|
+
import { VercelError } from "../models/vercelerror.js";
|
|
29
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
30
|
+
import { Result } from "../types/fp.js";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Stages new redirects for a project.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Stages new redirects for a project and returns the new version.
|
|
37
|
+
*/
|
|
38
|
+
export function bulkRedirectsStageRedirects(
|
|
39
|
+
client: VercelCore,
|
|
40
|
+
request: StageRedirectsRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
StageRedirectsResponseBody,
|
|
45
|
+
| VercelError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: VercelCore,
|
|
64
|
+
request: StageRedirectsRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
StageRedirectsResponseBody,
|
|
70
|
+
| VercelError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) => StageRedirectsRequest$outboundSchema.parse(value),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/v1/v1/bulk-redirects")();
|
|
94
|
+
|
|
95
|
+
const query = encodeFormQuery({
|
|
96
|
+
"slug": payload.slug,
|
|
97
|
+
"teamId": payload.teamId,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "stageRedirects",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.bearerToken,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "PUT",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
query: query,
|
|
131
|
+
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
133
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
|
+
}, options);
|
|
135
|
+
if (!requestRes.ok) {
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
137
|
+
}
|
|
138
|
+
const req = requestRes.value;
|
|
139
|
+
|
|
140
|
+
const doResult = await client._do(req, {
|
|
141
|
+
context,
|
|
142
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const [result] = await M.match<
|
|
152
|
+
StageRedirectsResponseBody,
|
|
153
|
+
| VercelError
|
|
154
|
+
| ResponseValidationError
|
|
155
|
+
| ConnectionError
|
|
156
|
+
| RequestAbortedError
|
|
157
|
+
| RequestTimeoutError
|
|
158
|
+
| InvalidRequestError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| SDKValidationError
|
|
161
|
+
>(
|
|
162
|
+
M.json(200, StageRedirectsResponseBody$inboundSchema),
|
|
163
|
+
M.fail([400, 401, 403, "4XX"]),
|
|
164
|
+
M.fail([500, "5XX"]),
|
|
165
|
+
)(response, req);
|
|
166
|
+
if (!result.ok) {
|
|
167
|
+
return [result, { status: "complete", request: req, response }];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
ConnectionError,
|
|
@@ -16,28 +17,31 @@ import {
|
|
|
16
17
|
RequestTimeoutError,
|
|
17
18
|
UnexpectedClientError,
|
|
18
19
|
} from "../models/httpclienterrors.js";
|
|
19
|
-
import {
|
|
20
|
-
PostV1BulkRedirectsVersionsRequest,
|
|
21
|
-
PostV1BulkRedirectsVersionsRequest$outboundSchema,
|
|
22
|
-
PostV1BulkRedirectsVersionsResponseBody,
|
|
23
|
-
PostV1BulkRedirectsVersionsResponseBody$inboundSchema,
|
|
24
|
-
} from "../models/postv1bulkredirectsversionsop.js";
|
|
25
20
|
import { ResponseValidationError } from "../models/responsevalidationerror.js";
|
|
26
21
|
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
UpdateVersionRequest,
|
|
24
|
+
UpdateVersionRequest$outboundSchema,
|
|
25
|
+
UpdateVersionResponseBody,
|
|
26
|
+
UpdateVersionResponseBody$inboundSchema,
|
|
27
|
+
} from "../models/updateversionop.js";
|
|
27
28
|
import { VercelError } from "../models/vercelerror.js";
|
|
28
29
|
import { APICall, APIPromise } from "../types/async.js";
|
|
29
30
|
import { Result } from "../types/fp.js";
|
|
30
31
|
|
|
31
32
|
/**
|
|
33
|
+
* Promote a staging version to production or restore a previous production version.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
32
36
|
* Update a version by promoting staging to production or restoring a previous production version
|
|
33
37
|
*/
|
|
34
|
-
export function
|
|
38
|
+
export function bulkRedirectsUpdateVersion(
|
|
35
39
|
client: VercelCore,
|
|
36
|
-
request:
|
|
40
|
+
request: UpdateVersionRequest,
|
|
37
41
|
options?: RequestOptions,
|
|
38
42
|
): APIPromise<
|
|
39
43
|
Result<
|
|
40
|
-
|
|
44
|
+
UpdateVersionResponseBody,
|
|
41
45
|
| VercelError
|
|
42
46
|
| ResponseValidationError
|
|
43
47
|
| ConnectionError
|
|
@@ -57,12 +61,12 @@ export function postV1BulkRedirectsVersions(
|
|
|
57
61
|
|
|
58
62
|
async function $do(
|
|
59
63
|
client: VercelCore,
|
|
60
|
-
request:
|
|
64
|
+
request: UpdateVersionRequest,
|
|
61
65
|
options?: RequestOptions,
|
|
62
66
|
): Promise<
|
|
63
67
|
[
|
|
64
68
|
Result<
|
|
65
|
-
|
|
69
|
+
UpdateVersionResponseBody,
|
|
66
70
|
| VercelError
|
|
67
71
|
| ResponseValidationError
|
|
68
72
|
| ConnectionError
|
|
@@ -77,7 +81,7 @@ async function $do(
|
|
|
77
81
|
> {
|
|
78
82
|
const parsed = safeParse(
|
|
79
83
|
request,
|
|
80
|
-
(value) =>
|
|
84
|
+
(value) => UpdateVersionRequest$outboundSchema.parse(value),
|
|
81
85
|
"Input validation failed",
|
|
82
86
|
);
|
|
83
87
|
if (!parsed.ok) {
|
|
@@ -86,10 +90,12 @@ async function $do(
|
|
|
86
90
|
const payload = parsed.value;
|
|
87
91
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
88
92
|
|
|
89
|
-
const path = pathToFunc("/v1/bulk-redirects/versions")();
|
|
93
|
+
const path = pathToFunc("/v1/v1/bulk-redirects/versions")();
|
|
90
94
|
|
|
91
95
|
const query = encodeFormQuery({
|
|
92
96
|
"projectId": payload.projectId,
|
|
97
|
+
"slug": payload.slug,
|
|
98
|
+
"teamId": payload.teamId,
|
|
93
99
|
});
|
|
94
100
|
|
|
95
101
|
const headers = new Headers(compactMap({
|
|
@@ -97,15 +103,19 @@ async function $do(
|
|
|
97
103
|
Accept: "application/json",
|
|
98
104
|
}));
|
|
99
105
|
|
|
106
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
107
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
108
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
+
|
|
100
110
|
const context = {
|
|
101
111
|
options: client._options,
|
|
102
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "
|
|
113
|
+
operationID: "updateVersion",
|
|
104
114
|
oAuth2Scopes: null,
|
|
105
115
|
|
|
106
|
-
resolvedSecurity:
|
|
116
|
+
resolvedSecurity: requestSecurity,
|
|
107
117
|
|
|
108
|
-
securitySource:
|
|
118
|
+
securitySource: client._options.bearerToken,
|
|
109
119
|
retryConfig: options?.retries
|
|
110
120
|
|| client._options.retryConfig
|
|
111
121
|
|| { strategy: "none" },
|
|
@@ -113,6 +123,7 @@ async function $do(
|
|
|
113
123
|
};
|
|
114
124
|
|
|
115
125
|
const requestRes = client._createRequest(context, {
|
|
126
|
+
security: requestSecurity,
|
|
116
127
|
method: "POST",
|
|
117
128
|
baseURL: options?.serverURL,
|
|
118
129
|
path: path,
|
|
@@ -139,7 +150,7 @@ async function $do(
|
|
|
139
150
|
const response = doResult.value;
|
|
140
151
|
|
|
141
152
|
const [result] = await M.match<
|
|
142
|
-
|
|
153
|
+
UpdateVersionResponseBody,
|
|
143
154
|
| VercelError
|
|
144
155
|
| ResponseValidationError
|
|
145
156
|
| ConnectionError
|
|
@@ -149,7 +160,7 @@ async function $do(
|
|
|
149
160
|
| UnexpectedClientError
|
|
150
161
|
| SDKValidationError
|
|
151
162
|
>(
|
|
152
|
-
M.json(200,
|
|
163
|
+
M.json(200, UpdateVersionResponseBody$inboundSchema),
|
|
153
164
|
M.fail([400, 401, 403, 404, "4XX"]),
|
|
154
165
|
M.fail([500, "5XX"]),
|
|
155
166
|
)(response, req);
|
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "1.18.
|
|
64
|
+
sdkVersion: "1.18.4",
|
|
65
65
|
genVersion: "2.788.4",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.18.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.18.4 2.788.4 0.0.1 @vercel/sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -40,6 +40,13 @@ import { tool$authenticationCreateAuthToken } from "./tools/authenticationCreate
|
|
|
40
40
|
import { tool$authenticationDeleteAuthToken } from "./tools/authenticationDeleteAuthToken.js";
|
|
41
41
|
import { tool$authenticationGetAuthToken } from "./tools/authenticationGetAuthToken.js";
|
|
42
42
|
import { tool$authenticationListAuthTokens } from "./tools/authenticationListAuthTokens.js";
|
|
43
|
+
import { tool$bulkRedirectsDeleteRedirects } from "./tools/bulkRedirectsDeleteRedirects.js";
|
|
44
|
+
import { tool$bulkRedirectsEditRedirect } from "./tools/bulkRedirectsEditRedirect.js";
|
|
45
|
+
import { tool$bulkRedirectsGetRedirects } from "./tools/bulkRedirectsGetRedirects.js";
|
|
46
|
+
import { tool$bulkRedirectsGetVersions } from "./tools/bulkRedirectsGetVersions.js";
|
|
47
|
+
import { tool$bulkRedirectsRestoreRedirects } from "./tools/bulkRedirectsRestoreRedirects.js";
|
|
48
|
+
import { tool$bulkRedirectsStageRedirects } from "./tools/bulkRedirectsStageRedirects.js";
|
|
49
|
+
import { tool$bulkRedirectsUpdateVersion } from "./tools/bulkRedirectsUpdateVersion.js";
|
|
43
50
|
import { tool$certsGetCertById } from "./tools/certsGetCertById.js";
|
|
44
51
|
import { tool$certsIssueCert } from "./tools/certsIssueCert.js";
|
|
45
52
|
import { tool$certsRemoveCert } from "./tools/certsRemoveCert.js";
|
|
@@ -50,7 +57,6 @@ import { tool$checksGetCheck } from "./tools/checksGetCheck.js";
|
|
|
50
57
|
import { tool$checksRerequestCheck } from "./tools/checksRerequestCheck.js";
|
|
51
58
|
import { tool$checksUpdateCheck } from "./tools/checksUpdateCheck.js";
|
|
52
59
|
import { tool$connectUpdateStaticIps } from "./tools/connectUpdateStaticIps.js";
|
|
53
|
-
import { tool$deleteV1BulkRedirects } from "./tools/deleteV1BulkRedirects.js";
|
|
54
60
|
import { tool$deploymentsCancelDeployment } from "./tools/deploymentsCancelDeployment.js";
|
|
55
61
|
import { tool$deploymentsCreateDeployment } from "./tools/deploymentsCreateDeployment.js";
|
|
56
62
|
import { tool$deploymentsDeleteDeployment } from "./tools/deploymentsDeleteDeployment.js";
|
|
@@ -126,8 +132,6 @@ import { tool$environmentRemoveCustomEnvironment } from "./tools/environmentRemo
|
|
|
126
132
|
import { tool$environmentUnlinkSharedEnvVariable } from "./tools/environmentUnlinkSharedEnvVariable.js";
|
|
127
133
|
import { tool$environmentUpdateCustomEnvironment } from "./tools/environmentUpdateCustomEnvironment.js";
|
|
128
134
|
import { tool$environmentUpdateSharedEnvVariable } from "./tools/environmentUpdateSharedEnvVariable.js";
|
|
129
|
-
import { tool$getV1BulkRedirects } from "./tools/getV1BulkRedirects.js";
|
|
130
|
-
import { tool$getV1BulkRedirectsVersions } from "./tools/getV1BulkRedirectsVersions.js";
|
|
131
135
|
import { tool$integrationsConnectIntegrationResourceToProject } from "./tools/integrationsConnectIntegrationResourceToProject.js";
|
|
132
136
|
import { tool$integrationsCreateIntegrationStoreDirect } from "./tools/integrationsCreateIntegrationStoreDirect.js";
|
|
133
137
|
import { tool$integrationsDeleteConfiguration } from "./tools/integrationsDeleteConfiguration.js";
|
|
@@ -165,9 +169,6 @@ import { tool$marketplaceUpdateInvoice } from "./tools/marketplaceUpdateInvoice.
|
|
|
165
169
|
import { tool$marketplaceUpdateResource } from "./tools/marketplaceUpdateResource.js";
|
|
166
170
|
import { tool$marketplaceUpdateResourceSecrets } from "./tools/marketplaceUpdateResourceSecrets.js";
|
|
167
171
|
import { tool$marketplaceUpdateResourceSecretsById } from "./tools/marketplaceUpdateResourceSecretsById.js";
|
|
168
|
-
import { tool$patchV1BulkRedirects } from "./tools/patchV1BulkRedirects.js";
|
|
169
|
-
import { tool$postV1BulkRedirectsRestore } from "./tools/postV1BulkRedirectsRestore.js";
|
|
170
|
-
import { tool$postV1BulkRedirectsVersions } from "./tools/postV1BulkRedirectsVersions.js";
|
|
171
172
|
import { tool$projectMembersAddProjectMember } from "./tools/projectMembersAddProjectMember.js";
|
|
172
173
|
import { tool$projectMembersGetProjectMembers } from "./tools/projectMembersGetProjectMembers.js";
|
|
173
174
|
import { tool$projectMembersRemoveProjectMember } from "./tools/projectMembersRemoveProjectMember.js";
|
|
@@ -199,7 +200,6 @@ import { tool$projectsUpdateProjectDomain } from "./tools/projectsUpdateProjectD
|
|
|
199
200
|
import { tool$projectsUpdateProjectProtectionBypass } from "./tools/projectsUpdateProjectProtectionBypass.js";
|
|
200
201
|
import { tool$projectsUploadProjectClientCert } from "./tools/projectsUploadProjectClientCert.js";
|
|
201
202
|
import { tool$projectsVerifyProjectDomain } from "./tools/projectsVerifyProjectDomain.js";
|
|
202
|
-
import { tool$putV1BulkRedirects } from "./tools/putV1BulkRedirects.js";
|
|
203
203
|
import { tool$rollingReleaseApproveRollingReleaseStage } from "./tools/rollingReleaseApproveRollingReleaseStage.js";
|
|
204
204
|
import { tool$rollingReleaseCompleteRollingRelease } from "./tools/rollingReleaseCompleteRollingRelease.js";
|
|
205
205
|
import { tool$rollingReleaseDeleteRollingReleaseConfig } from "./tools/rollingReleaseDeleteRollingReleaseConfig.js";
|
|
@@ -248,7 +248,7 @@ export function createMCPServer(deps: {
|
|
|
248
248
|
}) {
|
|
249
249
|
const server = new McpServer({
|
|
250
250
|
name: "Vercel",
|
|
251
|
-
version: "1.18.
|
|
251
|
+
version: "1.18.4",
|
|
252
252
|
});
|
|
253
253
|
|
|
254
254
|
const client = new VercelCore({
|
|
@@ -278,13 +278,6 @@ export function createMCPServer(deps: {
|
|
|
278
278
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
279
279
|
void register; // suppress unused warnings
|
|
280
280
|
|
|
281
|
-
tool(tool$putV1BulkRedirects);
|
|
282
|
-
tool(tool$getV1BulkRedirects);
|
|
283
|
-
tool(tool$deleteV1BulkRedirects);
|
|
284
|
-
tool(tool$patchV1BulkRedirects);
|
|
285
|
-
tool(tool$postV1BulkRedirectsRestore);
|
|
286
|
-
tool(tool$getV1BulkRedirectsVersions);
|
|
287
|
-
tool(tool$postV1BulkRedirectsVersions);
|
|
288
281
|
tool(tool$accessGroupsReadAccessGroup);
|
|
289
282
|
tool(tool$accessGroupsUpdateAccessGroup);
|
|
290
283
|
tool(tool$accessGroupsDeleteAccessGroup);
|
|
@@ -302,6 +295,13 @@ export function createMCPServer(deps: {
|
|
|
302
295
|
tool(tool$artifactsDownloadArtifact);
|
|
303
296
|
tool(tool$artifactsArtifactExists);
|
|
304
297
|
tool(tool$artifactsArtifactQuery);
|
|
298
|
+
tool(tool$bulkRedirectsStageRedirects);
|
|
299
|
+
tool(tool$bulkRedirectsGetRedirects);
|
|
300
|
+
tool(tool$bulkRedirectsDeleteRedirects);
|
|
301
|
+
tool(tool$bulkRedirectsEditRedirect);
|
|
302
|
+
tool(tool$bulkRedirectsRestoreRedirects);
|
|
303
|
+
tool(tool$bulkRedirectsGetVersions);
|
|
304
|
+
tool(tool$bulkRedirectsUpdateVersion);
|
|
305
305
|
tool(tool$checksCreateCheck);
|
|
306
306
|
tool(tool$checksGetAllChecks);
|
|
307
307
|
tool(tool$checksGetCheck);
|