@vercel/sdk 1.6.10 → 1.6.12
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 +31 -17
- package/bin/mcp-server.js +1679 -1309
- package/bin/mcp-server.js.map +25 -25
- package/docs/sdks/aliases/README.md +84 -0
- package/docs/sdks/deployments/README.md +6 -4
- package/docs/sdks/vercel/README.md +0 -77
- package/esm/__tests__/aliases.test.js +17 -0
- package/esm/__tests__/aliases.test.js.map +1 -1
- package/esm/__tests__/deployments.test.js +2 -1
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +3 -16
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/{patchAliasesIdProtectionBypass.d.ts → aliasesPatchUrlProtectionBypass.d.ts} +7 -4
- package/esm/funcs/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
- package/esm/funcs/{patchAliasesIdProtectionBypass.js → aliasesPatchUrlProtectionBypass.js} +22 -9
- package/esm/funcs/aliasesPatchUrlProtectionBypass.js.map +1 -0
- package/esm/funcs/deploymentsGetDeploymentEvents.d.ts +2 -2
- package/esm/funcs/deploymentsGetDeploymentEvents.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentEvents.js +2 -2
- package/esm/funcs/deploymentsGetDeploymentEvents.js.map +1 -1
- 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 +3 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts +7 -0
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.d.ts.map +1 -0
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js +28 -0
- package/esm/mcp-server/tools/aliasesPatchUrlProtectionBypass.js.map +1 -0
- package/esm/mcp-server/tools/deploymentsGetDeploymentEvents.d.ts.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentEvents.js +2 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentEvents.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +28 -28
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +12 -12
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +215 -37
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +198 -34
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createrecordop.d.ts +43 -43
- package/esm/models/createrecordop.d.ts.map +1 -1
- package/esm/models/createrecordop.js +51 -51
- package/esm/models/createrecordop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +9 -9
- package/esm/models/filterprojectenvsop.js +3 -3
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +62 -62
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +84 -83
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getdeploymenteventsop.d.ts +129 -0
- package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
- package/esm/models/getdeploymenteventsop.js +91 -0
- package/esm/models/getdeploymenteventsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +87 -13
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +99 -16
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/listdeploymentaliasesop.d.ts +32 -32
- package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
- package/esm/models/listdeploymentaliasesop.js +50 -50
- package/esm/models/listdeploymentaliasesop.js.map +1 -1
- package/esm/models/{patchaliasesidprotectionbypassop.d.ts → patchurlprotectionbypassop.d.ts} +86 -76
- package/esm/models/patchurlprotectionbypassop.d.ts.map +1 -0
- package/esm/models/{patchaliasesidprotectionbypassop.js → patchurlprotectionbypassop.js} +95 -91
- package/esm/models/patchurlprotectionbypassop.js.map +1 -0
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +103 -29
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +126 -42
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +247 -69
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +251 -83
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.d.ts +88 -14
- package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.js +100 -17
- package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
- package/esm/sdk/aliases.d.ts +10 -0
- package/esm/sdk/aliases.d.ts.map +1 -1
- package/esm/sdk/aliases.js +10 -0
- package/esm/sdk/aliases.js.map +1 -1
- package/esm/sdk/deployments.d.ts +2 -2
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/sdk.d.ts +1 -8
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -8
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/aliases.test.ts +20 -0
- package/src/__tests__/deployments.test.ts +2 -1
- package/src/__tests__/vercel.test.ts +4 -19
- package/src/funcs/{patchAliasesIdProtectionBypass.ts → aliasesPatchUrlProtectionBypass.ts} +27 -13
- package/src/funcs/deploymentsGetDeploymentEvents.ts +6 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/aliasesPatchUrlProtectionBypass.ts +38 -0
- package/src/mcp-server/tools/deploymentsGetDeploymentEvents.ts +3 -1
- package/src/models/createdeploymentop.ts +16 -16
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +404 -58
- package/src/models/createrecordop.ts +84 -96
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/filterprojectenvsop.ts +3 -3
- package/src/models/getaliasop.ts +130 -126
- package/src/models/getdeploymenteventsop.ts +209 -0
- package/src/models/getprojectsop.ts +205 -29
- package/src/models/listdeploymentaliasesop.ts +78 -78
- package/src/models/{patchaliasesidprotectionbypassop.ts → patchurlprotectionbypassop.ts} +191 -156
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/updateprojectdatacacheop.ts +247 -65
- package/src/models/updateprojectop.ts +489 -128
- package/src/models/updateprojectprotectionbypassop.ts +239 -31
- package/src/sdk/aliases.ts +19 -0
- package/src/sdk/deployments.ts +5 -2
- package/src/sdk/sdk.ts +1 -18
- package/vercel-spec.json +536 -157
- package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +0 -1
- package/esm/funcs/patchAliasesIdProtectionBypass.js.map +0 -1
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +0 -7
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +0 -1
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +0 -26
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +0 -1
- package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +0 -1
- package/esm/models/patchaliasesidprotectionbypassop.js.map +0 -1
- package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +0 -37
|
@@ -15,7 +15,7 @@ test("Deployments Get Deployment Events", async () => {
|
|
|
15
15
|
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
await vercel.deployments.getDeploymentEvents({
|
|
18
|
+
const result = await vercel.deployments.getDeploymentEvents({
|
|
19
19
|
idOrUrl: "dpl_5WJWYSyB7BpgTj3EuwF37WMRBXBtPQ2iTMJHJBJyRfd",
|
|
20
20
|
follow: 1,
|
|
21
21
|
limit: 100,
|
|
@@ -28,6 +28,7 @@ test("Deployments Get Deployment Events", async () => {
|
|
|
28
28
|
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
29
29
|
slug: "my-team-url-slug",
|
|
30
30
|
});
|
|
31
|
+
expect(result).toBeDefined();
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
test("Deployments Update Integration Deployment Action", async () => {
|
|
@@ -2,25 +2,10 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { Vercel } from "../index.js";
|
|
7
|
-
import { createTestHTTPClient } from "./testclient.js";
|
|
5
|
+
import { assert, it } from "vitest";
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"patch_/aliases/{id}/protection-bypass",
|
|
7
|
+
it.skip("Vercel Patch /Aliases/{id}/protection Bypass", async () => {
|
|
8
|
+
assert.fail(
|
|
9
|
+
"incomplete test found please make sure to address the following errors: [`workflow step patch_/aliases/{id}/protection-bypass.test referencing operation patch_/aliases/{id}/protection-bypass not found in document`]",
|
|
12
10
|
);
|
|
13
|
-
|
|
14
|
-
const vercel = new Vercel({
|
|
15
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
16
|
-
httpClient: testHttpClient,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const result = await vercel.patchAliasesIdProtectionBypass({
|
|
20
|
-
id: "<id>",
|
|
21
|
-
});
|
|
22
|
-
expect(result).toBeDefined();
|
|
23
|
-
expect(result).toEqual({
|
|
24
|
-
"key": "<value>",
|
|
25
|
-
});
|
|
26
11
|
});
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { VercelCore } from "../core.js";
|
|
7
|
-
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
10
10
|
import { safeParse } from "../lib/schemas.js";
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
13
|
import { pathToFunc } from "../lib/url.js";
|
|
13
14
|
import {
|
|
14
15
|
ConnectionError,
|
|
@@ -18,9 +19,9 @@ import {
|
|
|
18
19
|
UnexpectedClientError,
|
|
19
20
|
} from "../models/httpclienterrors.js";
|
|
20
21
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "../models/
|
|
22
|
+
PatchUrlProtectionBypassRequest,
|
|
23
|
+
PatchUrlProtectionBypassRequest$outboundSchema,
|
|
24
|
+
} from "../models/patchurlprotectionbypassop.js";
|
|
24
25
|
import { SDKError } from "../models/sdkerror.js";
|
|
25
26
|
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
26
27
|
import {
|
|
@@ -39,11 +40,14 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
39
40
|
import { Result } from "../types/fp.js";
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
|
-
* Update the protection bypass for
|
|
43
|
+
* Update the protection bypass for a URL
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Update the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). Used as shareable links and user scoped access for Vercel Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode).
|
|
43
47
|
*/
|
|
44
|
-
export function
|
|
48
|
+
export function aliasesPatchUrlProtectionBypass(
|
|
45
49
|
client: VercelCore,
|
|
46
|
-
request:
|
|
50
|
+
request: PatchUrlProtectionBypassRequest,
|
|
47
51
|
options?: RequestOptions,
|
|
48
52
|
): APIPromise<
|
|
49
53
|
Result<
|
|
@@ -69,7 +73,7 @@ export function patchAliasesIdProtectionBypass(
|
|
|
69
73
|
|
|
70
74
|
async function $do(
|
|
71
75
|
client: VercelCore,
|
|
72
|
-
request:
|
|
76
|
+
request: PatchUrlProtectionBypassRequest,
|
|
73
77
|
options?: RequestOptions,
|
|
74
78
|
): Promise<
|
|
75
79
|
[
|
|
@@ -91,8 +95,7 @@ async function $do(
|
|
|
91
95
|
> {
|
|
92
96
|
const parsed = safeParse(
|
|
93
97
|
request,
|
|
94
|
-
(value) =>
|
|
95
|
-
PatchAliasesIdProtectionBypassRequest$outboundSchema.parse(value),
|
|
98
|
+
(value) => PatchUrlProtectionBypassRequest$outboundSchema.parse(value),
|
|
96
99
|
"Input validation failed",
|
|
97
100
|
);
|
|
98
101
|
if (!parsed.ok) {
|
|
@@ -110,19 +113,28 @@ async function $do(
|
|
|
110
113
|
|
|
111
114
|
const path = pathToFunc("/aliases/{id}/protection-bypass")(pathParams);
|
|
112
115
|
|
|
116
|
+
const query = encodeFormQuery({
|
|
117
|
+
"slug": payload.slug,
|
|
118
|
+
"teamId": payload.teamId,
|
|
119
|
+
});
|
|
120
|
+
|
|
113
121
|
const headers = new Headers(compactMap({
|
|
114
122
|
"Content-Type": "application/json",
|
|
115
123
|
Accept: "application/json",
|
|
116
124
|
}));
|
|
117
125
|
|
|
126
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
127
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
128
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
129
|
+
|
|
118
130
|
const context = {
|
|
119
131
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
-
operationID: "
|
|
132
|
+
operationID: "patchUrlProtectionBypass",
|
|
121
133
|
oAuth2Scopes: [],
|
|
122
134
|
|
|
123
|
-
resolvedSecurity:
|
|
135
|
+
resolvedSecurity: requestSecurity,
|
|
124
136
|
|
|
125
|
-
securitySource:
|
|
137
|
+
securitySource: client._options.bearerToken,
|
|
126
138
|
retryConfig: options?.retries
|
|
127
139
|
|| client._options.retryConfig
|
|
128
140
|
|| { strategy: "none" },
|
|
@@ -130,10 +142,12 @@ async function $do(
|
|
|
130
142
|
};
|
|
131
143
|
|
|
132
144
|
const requestRes = client._createRequest(context, {
|
|
145
|
+
security: requestSecurity,
|
|
133
146
|
method: "PATCH",
|
|
134
147
|
baseURL: options?.serverURL,
|
|
135
148
|
path: path,
|
|
136
149
|
headers: headers,
|
|
150
|
+
query: query,
|
|
137
151
|
body: body,
|
|
138
152
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
153
|
}, options);
|
|
@@ -14,6 +14,8 @@ import { pathToFunc } from "../lib/url.js";
|
|
|
14
14
|
import {
|
|
15
15
|
GetDeploymentEventsRequest,
|
|
16
16
|
GetDeploymentEventsRequest$outboundSchema,
|
|
17
|
+
GetDeploymentEventsResponseBody,
|
|
18
|
+
GetDeploymentEventsResponseBody$inboundSchema,
|
|
17
19
|
} from "../models/getdeploymenteventsop.js";
|
|
18
20
|
import {
|
|
19
21
|
ConnectionError,
|
|
@@ -47,7 +49,7 @@ export function deploymentsGetDeploymentEvents(
|
|
|
47
49
|
options?: RequestOptions,
|
|
48
50
|
): APIPromise<
|
|
49
51
|
Result<
|
|
50
|
-
|
|
52
|
+
Array<GetDeploymentEventsResponseBody>,
|
|
51
53
|
| VercelBadRequestError
|
|
52
54
|
| VercelForbiddenError
|
|
53
55
|
| SDKError
|
|
@@ -73,7 +75,7 @@ async function $do(
|
|
|
73
75
|
): Promise<
|
|
74
76
|
[
|
|
75
77
|
Result<
|
|
76
|
-
|
|
78
|
+
Array<GetDeploymentEventsResponseBody>,
|
|
77
79
|
| VercelBadRequestError
|
|
78
80
|
| VercelForbiddenError
|
|
79
81
|
| SDKError
|
|
@@ -174,7 +176,7 @@ async function $do(
|
|
|
174
176
|
};
|
|
175
177
|
|
|
176
178
|
const [result] = await M.match<
|
|
177
|
-
|
|
179
|
+
Array<GetDeploymentEventsResponseBody>,
|
|
178
180
|
| VercelBadRequestError
|
|
179
181
|
| VercelForbiddenError
|
|
180
182
|
| SDKError
|
|
@@ -185,9 +187,9 @@ async function $do(
|
|
|
185
187
|
| RequestTimeoutError
|
|
186
188
|
| ConnectionError
|
|
187
189
|
>(
|
|
190
|
+
M.json(200, z.array(GetDeploymentEventsResponseBody$inboundSchema)),
|
|
188
191
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
189
192
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
190
|
-
M.nil("2XX", z.void()),
|
|
191
193
|
M.fail([403, "4XX"]),
|
|
192
194
|
M.fail([500, "5XX"]),
|
|
193
195
|
)(response, { extraFields: responseFields });
|
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.
|
|
60
|
+
sdkVersion: "1.6.12",
|
|
61
61
|
genVersion: "2.597.9",
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 1.6.
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 1.6.12 2.597.9 0.0.1 @vercel/sdk",
|
|
63
63
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { tool$aliasesDeleteAlias } from "./tools/aliasesDeleteAlias.js";
|
|
|
29
29
|
import { tool$aliasesGetAlias } from "./tools/aliasesGetAlias.js";
|
|
30
30
|
import { tool$aliasesListAliases } from "./tools/aliasesListAliases.js";
|
|
31
31
|
import { tool$aliasesListDeploymentAliases } from "./tools/aliasesListDeploymentAliases.js";
|
|
32
|
+
import { tool$aliasesPatchUrlProtectionBypass } from "./tools/aliasesPatchUrlProtectionBypass.js";
|
|
32
33
|
import { tool$artifactsArtifactExists } from "./tools/artifactsArtifactExists.js";
|
|
33
34
|
import { tool$artifactsArtifactQuery } from "./tools/artifactsArtifactQuery.js";
|
|
34
35
|
import { tool$artifactsDownloadArtifact } from "./tools/artifactsDownloadArtifact.js";
|
|
@@ -119,7 +120,6 @@ import { tool$marketplaceUpdateInstallationIntegrationEdgeConfig } from "./tools
|
|
|
119
120
|
import { tool$marketplaceUpdateInvoice } from "./tools/marketplaceUpdateInvoice.js";
|
|
120
121
|
import { tool$marketplaceUpdateResourceSecrets } from "./tools/marketplaceUpdateResourceSecrets.js";
|
|
121
122
|
import { tool$marketplaceUpdateResourceSecretsById } from "./tools/marketplaceUpdateResourceSecretsById.js";
|
|
122
|
-
import { tool$patchAliasesIdProtectionBypass } from "./tools/patchAliasesIdProtectionBypass.js";
|
|
123
123
|
import { tool$projectMembersAddProjectMember } from "./tools/projectMembersAddProjectMember.js";
|
|
124
124
|
import { tool$projectMembersGetProjectMembers } from "./tools/projectMembersGetProjectMembers.js";
|
|
125
125
|
import { tool$projectMembersRemoveProjectMember } from "./tools/projectMembersRemoveProjectMember.js";
|
|
@@ -186,7 +186,7 @@ export function createMCPServer(deps: {
|
|
|
186
186
|
}) {
|
|
187
187
|
const server = new McpServer({
|
|
188
188
|
name: "Vercel",
|
|
189
|
-
version: "1.6.
|
|
189
|
+
version: "1.6.12",
|
|
190
190
|
});
|
|
191
191
|
|
|
192
192
|
const client = new VercelCore({
|
|
@@ -216,7 +216,6 @@ export function createMCPServer(deps: {
|
|
|
216
216
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
217
217
|
void register; // suppress unused warnings
|
|
218
218
|
|
|
219
|
-
tool(tool$patchAliasesIdProtectionBypass);
|
|
220
219
|
tool(tool$accessGroupsReadAccessGroup);
|
|
221
220
|
tool(tool$accessGroupsUpdateAccessGroup);
|
|
222
221
|
tool(tool$accessGroupsDeleteAccessGroup);
|
|
@@ -374,6 +373,7 @@ export function createMCPServer(deps: {
|
|
|
374
373
|
tool(tool$aliasesListAliases);
|
|
375
374
|
tool(tool$aliasesGetAlias);
|
|
376
375
|
tool(tool$aliasesDeleteAlias);
|
|
376
|
+
tool(tool$aliasesPatchUrlProtectionBypass);
|
|
377
377
|
tool(tool$certsGetCertById);
|
|
378
378
|
tool(tool$certsRemoveCert);
|
|
379
379
|
tool(tool$certsIssueCert);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { aliasesPatchUrlProtectionBypass } from "../../funcs/aliasesPatchUrlProtectionBypass.js";
|
|
6
|
+
import { PatchUrlProtectionBypassRequest$inboundSchema } from "../../models/patchurlprotectionbypassop.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: PatchUrlProtectionBypassRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$aliasesPatchUrlProtectionBypass: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "aliases-patch-url-protection-bypass",
|
|
16
|
+
description: `Update the protection bypass for a URL
|
|
17
|
+
|
|
18
|
+
Update the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). Used as shareable links and user scoped access for Vercel Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode).`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await aliasesPatchUrlProtectionBypass(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -613,8 +613,8 @@ export type Creator = {
|
|
|
613
613
|
};
|
|
614
614
|
|
|
615
615
|
export const CreateDeploymentReadyState = {
|
|
616
|
-
Building: "BUILDING",
|
|
617
616
|
Error: "ERROR",
|
|
617
|
+
Building: "BUILDING",
|
|
618
618
|
Initializing: "INITIALIZING",
|
|
619
619
|
Ready: "READY",
|
|
620
620
|
} as const;
|
|
@@ -631,10 +631,10 @@ export type CreateDeploymentOutput = {
|
|
|
631
631
|
* A partial representation of a Build used by the deployment endpoint.
|
|
632
632
|
*/
|
|
633
633
|
export type Lambdas = {
|
|
634
|
-
id?: string | undefined;
|
|
635
634
|
createdAt?: number | undefined;
|
|
636
|
-
|
|
635
|
+
id?: string | undefined;
|
|
637
636
|
readyState?: CreateDeploymentReadyState | undefined;
|
|
637
|
+
entrypoint?: string | null | undefined;
|
|
638
638
|
readyStateAt?: number | undefined;
|
|
639
639
|
output: Array<CreateDeploymentOutput>;
|
|
640
640
|
};
|
|
@@ -677,9 +677,9 @@ export type CustomEnvironmentType = ClosedEnum<typeof CustomEnvironmentType>;
|
|
|
677
677
|
* The type of matching to perform
|
|
678
678
|
*/
|
|
679
679
|
export const CreateDeploymentCustomEnvironmentType = {
|
|
680
|
+
EndsWith: "endsWith",
|
|
680
681
|
StartsWith: "startsWith",
|
|
681
682
|
Equals: "equals",
|
|
682
|
-
EndsWith: "endsWith",
|
|
683
683
|
} as const;
|
|
684
684
|
/**
|
|
685
685
|
* The type of matching to perform
|
|
@@ -1169,14 +1169,14 @@ export type CreateDeploymentMicrofrontends =
|
|
|
1169
1169
|
| CreateDeploymentMicrofrontends2;
|
|
1170
1170
|
|
|
1171
1171
|
export const FunctionType = {
|
|
1172
|
-
Fluid: "fluid",
|
|
1173
1172
|
Standard: "standard",
|
|
1173
|
+
Fluid: "fluid",
|
|
1174
1174
|
} as const;
|
|
1175
1175
|
export type FunctionType = ClosedEnum<typeof FunctionType>;
|
|
1176
1176
|
|
|
1177
1177
|
export const FunctionMemoryType = {
|
|
1178
|
-
Standard: "standard",
|
|
1179
1178
|
StandardLegacy: "standard_legacy",
|
|
1179
|
+
Standard: "standard",
|
|
1180
1180
|
Performance: "performance",
|
|
1181
1181
|
} as const;
|
|
1182
1182
|
export type FunctionMemoryType = ClosedEnum<typeof FunctionMemoryType>;
|
|
@@ -1209,11 +1209,11 @@ export type Routes3 = {
|
|
|
1209
1209
|
|
|
1210
1210
|
export const RoutesHandle = {
|
|
1211
1211
|
Error: "error",
|
|
1212
|
+
Resource: "resource",
|
|
1212
1213
|
Filesystem: "filesystem",
|
|
1213
1214
|
Hit: "hit",
|
|
1214
1215
|
Miss: "miss",
|
|
1215
1216
|
Rewrite: "rewrite",
|
|
1216
|
-
Resource: "resource",
|
|
1217
1217
|
} as const;
|
|
1218
1218
|
export type RoutesHandle = ClosedEnum<typeof RoutesHandle>;
|
|
1219
1219
|
|
|
@@ -1326,8 +1326,8 @@ export type CreateDeploymentGitRepoDeploymentsType = ClosedEnum<
|
|
|
1326
1326
|
>;
|
|
1327
1327
|
|
|
1328
1328
|
export const CreateDeploymentGitRepoOwnerType = {
|
|
1329
|
-
Team: "team",
|
|
1330
1329
|
User: "user",
|
|
1330
|
+
Team: "team",
|
|
1331
1331
|
} as const;
|
|
1332
1332
|
export type CreateDeploymentGitRepoOwnerType = ClosedEnum<
|
|
1333
1333
|
typeof CreateDeploymentGitRepoOwnerType
|
|
@@ -1354,8 +1354,8 @@ export type CreateDeploymentGitRepoType = ClosedEnum<
|
|
|
1354
1354
|
>;
|
|
1355
1355
|
|
|
1356
1356
|
export const GitRepoOwnerType = {
|
|
1357
|
-
Team: "team",
|
|
1358
1357
|
User: "user",
|
|
1358
|
+
Team: "team",
|
|
1359
1359
|
} as const;
|
|
1360
1360
|
export type GitRepoOwnerType = ClosedEnum<typeof GitRepoOwnerType>;
|
|
1361
1361
|
|
|
@@ -1378,8 +1378,8 @@ export const GitRepoType = {
|
|
|
1378
1378
|
export type GitRepoType = ClosedEnum<typeof GitRepoType>;
|
|
1379
1379
|
|
|
1380
1380
|
export const OwnerType = {
|
|
1381
|
-
Team: "team",
|
|
1382
1381
|
User: "user",
|
|
1382
|
+
Team: "team",
|
|
1383
1383
|
} as const;
|
|
1384
1384
|
export type OwnerType = ClosedEnum<typeof OwnerType>;
|
|
1385
1385
|
|
|
@@ -3660,20 +3660,20 @@ export function createDeploymentOutputFromJSON(
|
|
|
3660
3660
|
/** @internal */
|
|
3661
3661
|
export const Lambdas$inboundSchema: z.ZodType<Lambdas, z.ZodTypeDef, unknown> =
|
|
3662
3662
|
z.object({
|
|
3663
|
-
id: z.string().optional(),
|
|
3664
3663
|
createdAt: z.number().optional(),
|
|
3665
|
-
|
|
3664
|
+
id: z.string().optional(),
|
|
3666
3665
|
readyState: CreateDeploymentReadyState$inboundSchema.optional(),
|
|
3666
|
+
entrypoint: z.nullable(z.string()).optional(),
|
|
3667
3667
|
readyStateAt: z.number().optional(),
|
|
3668
3668
|
output: z.array(z.lazy(() => CreateDeploymentOutput$inboundSchema)),
|
|
3669
3669
|
});
|
|
3670
3670
|
|
|
3671
3671
|
/** @internal */
|
|
3672
3672
|
export type Lambdas$Outbound = {
|
|
3673
|
-
id?: string | undefined;
|
|
3674
3673
|
createdAt?: number | undefined;
|
|
3675
|
-
|
|
3674
|
+
id?: string | undefined;
|
|
3676
3675
|
readyState?: string | undefined;
|
|
3676
|
+
entrypoint?: string | null | undefined;
|
|
3677
3677
|
readyStateAt?: number | undefined;
|
|
3678
3678
|
output: Array<CreateDeploymentOutput$Outbound>;
|
|
3679
3679
|
};
|
|
@@ -3684,10 +3684,10 @@ export const Lambdas$outboundSchema: z.ZodType<
|
|
|
3684
3684
|
z.ZodTypeDef,
|
|
3685
3685
|
Lambdas
|
|
3686
3686
|
> = z.object({
|
|
3687
|
-
id: z.string().optional(),
|
|
3688
3687
|
createdAt: z.number().optional(),
|
|
3689
|
-
|
|
3688
|
+
id: z.string().optional(),
|
|
3690
3689
|
readyState: CreateDeploymentReadyState$outboundSchema.optional(),
|
|
3690
|
+
entrypoint: z.nullable(z.string()).optional(),
|
|
3691
3691
|
readyStateAt: z.number().optional(),
|
|
3692
3692
|
output: z.array(z.lazy(() => CreateDeploymentOutput$outboundSchema)),
|
|
3693
3693
|
});
|
|
@@ -271,10 +271,10 @@ export type CreateProjectEnvCreatedTarget =
|
|
|
271
271
|
|
|
272
272
|
export const CreateProjectEnvCreatedType = {
|
|
273
273
|
System: "system",
|
|
274
|
+
Secret: "secret",
|
|
274
275
|
Encrypted: "encrypted",
|
|
275
276
|
Plain: "plain",
|
|
276
277
|
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",
|
|
620
621
|
Encrypted: "encrypted",
|
|
621
622
|
Plain: "plain",
|
|
622
623
|
Sensitive: "sensitive",
|
|
623
|
-
Secret: "secret",
|
|
624
624
|
} as const;
|
|
625
625
|
export type CreatedType = ClosedEnum<typeof CreatedType>;
|
|
626
626
|
|