@vercel/sdk 1.6.1 → 1.6.2
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 +4 -0
- package/bin/mcp-server.js +514 -246
- package/bin/mcp-server.js.map +12 -6
- package/docs/sdks/projects/README.md +162 -0
- package/esm/__tests__/projects.test.js +41 -13
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/security.test.js +14 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/projectsPauseProject.d.ts +18 -0
- package/esm/funcs/projectsPauseProject.d.ts.map +1 -0
- package/esm/funcs/projectsPauseProject.js +92 -0
- package/esm/funcs/projectsPauseProject.js.map +1 -0
- package/esm/funcs/projectsUnpauseProject.d.ts +18 -0
- package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -0
- package/esm/funcs/projectsUnpauseProject.js +92 -0
- package/esm/funcs/projectsUnpauseProject.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/projectsPauseProject.d.ts +7 -0
- package/esm/mcp-server/tools/projectsPauseProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsPauseProject.js +27 -0
- package/esm/mcp-server/tools/projectsPauseProject.js.map +1 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.d.ts +7 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.js +27 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.js.map +1 -0
- package/esm/models/pauseprojectop.d.ts +42 -0
- package/esm/models/pauseprojectop.d.ts.map +1 -0
- package/esm/models/pauseprojectop.js +35 -0
- package/esm/models/pauseprojectop.js.map +1 -0
- package/esm/models/unpauseprojectop.d.ts +42 -0
- package/esm/models/unpauseprojectop.d.ts.map +1 -0
- package/esm/models/unpauseprojectop.js +35 -0
- package/esm/models/unpauseprojectop.js.map +1 -0
- package/esm/sdk/projects.d.ts +16 -0
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +20 -0
- package/esm/sdk/projects.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/projects.test.ts +47 -13
- package/src/__tests__/security.test.ts +14 -1
- package/src/funcs/projectsPauseProject.ts +190 -0
- package/src/funcs/projectsUnpauseProject.ts +190 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/projectsPauseProject.ts +35 -0
- package/src/mcp-server/tools/projectsUnpauseProject.ts +35 -0
- package/src/models/pauseprojectop.ts +83 -0
- package/src/models/unpauseprojectop.ts +83 -0
- package/src/sdk/projects.ts +38 -0
- package/vercel-spec.json +155 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34190,9 +34190,9 @@ var init_config = __esm(() => {
|
|
|
34190
34190
|
SDK_METADATA = {
|
|
34191
34191
|
language: "typescript",
|
|
34192
34192
|
openapiDocVersion: "0.0.1",
|
|
34193
|
-
sdkVersion: "1.6.
|
|
34194
|
-
genVersion: "2.570.
|
|
34195
|
-
userAgent: "speakeasy-sdk/typescript 1.6.
|
|
34193
|
+
sdkVersion: "1.6.2",
|
|
34194
|
+
genVersion: "2.570.4",
|
|
34195
|
+
userAgent: "speakeasy-sdk/typescript 1.6.2 2.570.4 0.0.1 @vercel/sdk"
|
|
34196
34196
|
};
|
|
34197
34197
|
});
|
|
34198
34198
|
|
|
@@ -78702,6 +78702,138 @@ Get a list of aliases related to the last promote request with their mapping sta
|
|
|
78702
78702
|
};
|
|
78703
78703
|
});
|
|
78704
78704
|
|
|
78705
|
+
// src/models/pauseprojectop.ts
|
|
78706
|
+
var PauseProjectRequest$inboundSchema, PauseProjectRequest$outboundSchema, PauseProjectRequest$;
|
|
78707
|
+
var init_pauseprojectop = __esm(() => {
|
|
78708
|
+
init_lib();
|
|
78709
|
+
PauseProjectRequest$inboundSchema = objectType({
|
|
78710
|
+
projectId: stringType(),
|
|
78711
|
+
teamId: stringType().optional(),
|
|
78712
|
+
slug: stringType().optional()
|
|
78713
|
+
});
|
|
78714
|
+
PauseProjectRequest$outboundSchema = objectType({
|
|
78715
|
+
projectId: stringType(),
|
|
78716
|
+
teamId: stringType().optional(),
|
|
78717
|
+
slug: stringType().optional()
|
|
78718
|
+
});
|
|
78719
|
+
((PauseProjectRequest$) => {
|
|
78720
|
+
PauseProjectRequest$.inboundSchema = PauseProjectRequest$inboundSchema;
|
|
78721
|
+
PauseProjectRequest$.outboundSchema = PauseProjectRequest$outboundSchema;
|
|
78722
|
+
})(PauseProjectRequest$ ||= {});
|
|
78723
|
+
});
|
|
78724
|
+
|
|
78725
|
+
// src/funcs/projectsPauseProject.ts
|
|
78726
|
+
function projectsPauseProject(client, request, options) {
|
|
78727
|
+
return new APIPromise($do128(client, request, options));
|
|
78728
|
+
}
|
|
78729
|
+
async function $do128(client, request, options) {
|
|
78730
|
+
const parsed = safeParse(request, (value) => PauseProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78731
|
+
if (!parsed.ok) {
|
|
78732
|
+
return [parsed, { status: "invalid" }];
|
|
78733
|
+
}
|
|
78734
|
+
const payload = parsed.value;
|
|
78735
|
+
const body = null;
|
|
78736
|
+
const pathParams = {
|
|
78737
|
+
projectId: encodeSimple("projectId", payload.projectId, {
|
|
78738
|
+
explode: false,
|
|
78739
|
+
charEncoding: "percent"
|
|
78740
|
+
})
|
|
78741
|
+
};
|
|
78742
|
+
const path = pathToFunc("/v1/projects/{projectId}/pause")(pathParams);
|
|
78743
|
+
const query = encodeFormQuery({
|
|
78744
|
+
slug: payload.slug,
|
|
78745
|
+
teamId: payload.teamId
|
|
78746
|
+
});
|
|
78747
|
+
const headers = new Headers(compactMap({
|
|
78748
|
+
Accept: "application/json"
|
|
78749
|
+
}));
|
|
78750
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
78751
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
78752
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78753
|
+
const context = {
|
|
78754
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78755
|
+
operationID: "pauseProject",
|
|
78756
|
+
oAuth2Scopes: [],
|
|
78757
|
+
resolvedSecurity: requestSecurity,
|
|
78758
|
+
securitySource: client._options.bearerToken,
|
|
78759
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
78760
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
78761
|
+
};
|
|
78762
|
+
const requestRes = client._createRequest(context, {
|
|
78763
|
+
security: requestSecurity,
|
|
78764
|
+
method: "POST",
|
|
78765
|
+
baseURL: options?.serverURL,
|
|
78766
|
+
path,
|
|
78767
|
+
headers,
|
|
78768
|
+
query,
|
|
78769
|
+
body,
|
|
78770
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
78771
|
+
}, options);
|
|
78772
|
+
if (!requestRes.ok) {
|
|
78773
|
+
return [requestRes, { status: "invalid" }];
|
|
78774
|
+
}
|
|
78775
|
+
const req = requestRes.value;
|
|
78776
|
+
const doResult = await client._do(req, {
|
|
78777
|
+
context,
|
|
78778
|
+
errorCodes: ["400", "401", "402", "403", "4XX", "500", "5XX"],
|
|
78779
|
+
retryConfig: context.retryConfig,
|
|
78780
|
+
retryCodes: context.retryCodes
|
|
78781
|
+
});
|
|
78782
|
+
if (!doResult.ok) {
|
|
78783
|
+
return [doResult, { status: "request-error", request: req }];
|
|
78784
|
+
}
|
|
78785
|
+
const response = doResult.value;
|
|
78786
|
+
const responseFields = {
|
|
78787
|
+
HttpMeta: { Response: response, Request: req }
|
|
78788
|
+
};
|
|
78789
|
+
const [result] = await match(nil(200, voidType()), jsonErr(400, VercelBadRequestError$inboundSchema), jsonErr(401, VercelForbiddenError$inboundSchema), fail([402, 403, "4XX"]), fail([500, "5XX"]))(response, { extraFields: responseFields });
|
|
78790
|
+
if (!result.ok) {
|
|
78791
|
+
return [result, { status: "complete", request: req, response }];
|
|
78792
|
+
}
|
|
78793
|
+
return [result, { status: "complete", request: req, response }];
|
|
78794
|
+
}
|
|
78795
|
+
var init_projectsPauseProject = __esm(() => {
|
|
78796
|
+
init_lib();
|
|
78797
|
+
init_encodings();
|
|
78798
|
+
init_matchers();
|
|
78799
|
+
init_primitives();
|
|
78800
|
+
init_schemas();
|
|
78801
|
+
init_security();
|
|
78802
|
+
init_url();
|
|
78803
|
+
init_pauseprojectop();
|
|
78804
|
+
init_vercelbadrequesterror();
|
|
78805
|
+
init_vercelforbiddenerror();
|
|
78806
|
+
init_async();
|
|
78807
|
+
});
|
|
78808
|
+
|
|
78809
|
+
// src/mcp-server/tools/projectsPauseProject.ts
|
|
78810
|
+
var args127, tool$projectsPauseProject;
|
|
78811
|
+
var init_projectsPauseProject2 = __esm(() => {
|
|
78812
|
+
init_projectsPauseProject();
|
|
78813
|
+
init_pauseprojectop();
|
|
78814
|
+
init_tools();
|
|
78815
|
+
args127 = {
|
|
78816
|
+
request: PauseProjectRequest$inboundSchema
|
|
78817
|
+
};
|
|
78818
|
+
tool$projectsPauseProject = {
|
|
78819
|
+
name: "projects-pause-project",
|
|
78820
|
+
description: `Pause a project
|
|
78821
|
+
|
|
78822
|
+
Pause a project by passing its project \`id\` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project disables auto assigning custom production domains and blocks the active Production Deployment then the request will return with 200 status code.`,
|
|
78823
|
+
args: args127,
|
|
78824
|
+
tool: async (client, args128, ctx) => {
|
|
78825
|
+
const [result, apiCall] = await projectsPauseProject(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78826
|
+
if (!result.ok) {
|
|
78827
|
+
return {
|
|
78828
|
+
content: [{ type: "text", text: result.error.message }],
|
|
78829
|
+
isError: true
|
|
78830
|
+
};
|
|
78831
|
+
}
|
|
78832
|
+
return formatResult(undefined, apiCall);
|
|
78833
|
+
}
|
|
78834
|
+
};
|
|
78835
|
+
});
|
|
78836
|
+
|
|
78705
78837
|
// src/models/removeprojectdomainop.ts
|
|
78706
78838
|
var RemoveProjectDomainRequest$inboundSchema, RemoveProjectDomainRequest$outboundSchema, RemoveProjectDomainRequest$, RemoveProjectDomainResponseBody$inboundSchema, RemoveProjectDomainResponseBody$outboundSchema, RemoveProjectDomainResponseBody$;
|
|
78707
78839
|
var init_removeprojectdomainop = __esm(() => {
|
|
@@ -78732,9 +78864,9 @@ var init_removeprojectdomainop = __esm(() => {
|
|
|
78732
78864
|
|
|
78733
78865
|
// src/funcs/projectsRemoveProjectDomain.ts
|
|
78734
78866
|
function projectsRemoveProjectDomain(client, request, options) {
|
|
78735
|
-
return new APIPromise($
|
|
78867
|
+
return new APIPromise($do129(client, request, options));
|
|
78736
78868
|
}
|
|
78737
|
-
async function $
|
|
78869
|
+
async function $do129(client, request, options) {
|
|
78738
78870
|
const parsed = safeParse(request, (value) => RemoveProjectDomainRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78739
78871
|
if (!parsed.ok) {
|
|
78740
78872
|
return [parsed, { status: "invalid" }];
|
|
@@ -78819,12 +78951,12 @@ var init_projectsRemoveProjectDomain = __esm(() => {
|
|
|
78819
78951
|
});
|
|
78820
78952
|
|
|
78821
78953
|
// src/mcp-server/tools/projectsRemoveProjectDomain.ts
|
|
78822
|
-
var
|
|
78954
|
+
var args128, tool$projectsRemoveProjectDomain;
|
|
78823
78955
|
var init_projectsRemoveProjectDomain2 = __esm(() => {
|
|
78824
78956
|
init_projectsRemoveProjectDomain();
|
|
78825
78957
|
init_removeprojectdomainop();
|
|
78826
78958
|
init_tools();
|
|
78827
|
-
|
|
78959
|
+
args128 = {
|
|
78828
78960
|
request: RemoveProjectDomainRequest$inboundSchema
|
|
78829
78961
|
};
|
|
78830
78962
|
tool$projectsRemoveProjectDomain = {
|
|
@@ -78832,9 +78964,9 @@ var init_projectsRemoveProjectDomain2 = __esm(() => {
|
|
|
78832
78964
|
description: `Remove a domain from a project
|
|
78833
78965
|
|
|
78834
78966
|
Remove a domain from a project by passing the domain name and by specifying the project by either passing the project \`id\` or \`name\` in the URL.`,
|
|
78835
|
-
args:
|
|
78836
|
-
tool: async (client,
|
|
78837
|
-
const [result, apiCall] = await projectsRemoveProjectDomain(client,
|
|
78967
|
+
args: args128,
|
|
78968
|
+
tool: async (client, args129, ctx) => {
|
|
78969
|
+
const [result, apiCall] = await projectsRemoveProjectDomain(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78838
78970
|
if (!result.ok) {
|
|
78839
78971
|
return {
|
|
78840
78972
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80428,9 +80560,9 @@ var init_removeprojectenvop = __esm(() => {
|
|
|
80428
80560
|
|
|
80429
80561
|
// src/funcs/projectsRemoveProjectEnv.ts
|
|
80430
80562
|
function projectsRemoveProjectEnv(client, request, options) {
|
|
80431
|
-
return new APIPromise($
|
|
80563
|
+
return new APIPromise($do130(client, request, options));
|
|
80432
80564
|
}
|
|
80433
|
-
async function $
|
|
80565
|
+
async function $do130(client, request, options) {
|
|
80434
80566
|
const parsed = safeParse(request, (value) => RemoveProjectEnvRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80435
80567
|
if (!parsed.ok) {
|
|
80436
80568
|
return [parsed, { status: "invalid" }];
|
|
@@ -80516,12 +80648,12 @@ var init_projectsRemoveProjectEnv = __esm(() => {
|
|
|
80516
80648
|
});
|
|
80517
80649
|
|
|
80518
80650
|
// src/mcp-server/tools/projectsRemoveProjectEnv.ts
|
|
80519
|
-
var
|
|
80651
|
+
var args129, tool$projectsRemoveProjectEnv;
|
|
80520
80652
|
var init_projectsRemoveProjectEnv2 = __esm(() => {
|
|
80521
80653
|
init_projectsRemoveProjectEnv();
|
|
80522
80654
|
init_removeprojectenvop();
|
|
80523
80655
|
init_tools();
|
|
80524
|
-
|
|
80656
|
+
args129 = {
|
|
80525
80657
|
request: RemoveProjectEnvRequest$inboundSchema
|
|
80526
80658
|
};
|
|
80527
80659
|
tool$projectsRemoveProjectEnv = {
|
|
@@ -80529,9 +80661,9 @@ var init_projectsRemoveProjectEnv2 = __esm(() => {
|
|
|
80529
80661
|
description: `Remove an environment variable
|
|
80530
80662
|
|
|
80531
80663
|
Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project \`id\` or \`name\` in the URL.`,
|
|
80532
|
-
args:
|
|
80533
|
-
tool: async (client,
|
|
80534
|
-
const [result, apiCall] = await projectsRemoveProjectEnv(client,
|
|
80664
|
+
args: args129,
|
|
80665
|
+
tool: async (client, args130, ctx) => {
|
|
80666
|
+
const [result, apiCall] = await projectsRemoveProjectEnv(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80535
80667
|
if (!result.ok) {
|
|
80536
80668
|
return {
|
|
80537
80669
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80568,9 +80700,9 @@ var init_requestpromoteop = __esm(() => {
|
|
|
80568
80700
|
|
|
80569
80701
|
// src/funcs/projectsRequestPromote.ts
|
|
80570
80702
|
function projectsRequestPromote(client, request, options) {
|
|
80571
|
-
return new APIPromise($
|
|
80703
|
+
return new APIPromise($do131(client, request, options));
|
|
80572
80704
|
}
|
|
80573
|
-
async function $
|
|
80705
|
+
async function $do131(client, request, options) {
|
|
80574
80706
|
const parsed = safeParse(request, (value) => RequestPromoteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80575
80707
|
if (!parsed.ok) {
|
|
80576
80708
|
return [parsed, { status: "invalid" }];
|
|
@@ -80655,12 +80787,12 @@ var init_projectsRequestPromote = __esm(() => {
|
|
|
80655
80787
|
});
|
|
80656
80788
|
|
|
80657
80789
|
// src/mcp-server/tools/projectsRequestPromote.ts
|
|
80658
|
-
var
|
|
80790
|
+
var args130, tool$projectsRequestPromote;
|
|
80659
80791
|
var init_projectsRequestPromote2 = __esm(() => {
|
|
80660
80792
|
init_projectsRequestPromote();
|
|
80661
80793
|
init_requestpromoteop();
|
|
80662
80794
|
init_tools();
|
|
80663
|
-
|
|
80795
|
+
args130 = {
|
|
80664
80796
|
request: RequestPromoteRequest$inboundSchema
|
|
80665
80797
|
};
|
|
80666
80798
|
tool$projectsRequestPromote = {
|
|
@@ -80668,9 +80800,141 @@ var init_projectsRequestPromote2 = __esm(() => {
|
|
|
80668
80800
|
description: `Points all production domains for a project to the given deploy
|
|
80669
80801
|
|
|
80670
80802
|
Allows users to promote a deployment to production. Note: This does NOT rebuild the deployment. If you need that, then call create-deployments endpoint.`,
|
|
80671
|
-
args:
|
|
80672
|
-
tool: async (client,
|
|
80673
|
-
const [result, apiCall] = await projectsRequestPromote(client,
|
|
80803
|
+
args: args130,
|
|
80804
|
+
tool: async (client, args131, ctx) => {
|
|
80805
|
+
const [result, apiCall] = await projectsRequestPromote(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80806
|
+
if (!result.ok) {
|
|
80807
|
+
return {
|
|
80808
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80809
|
+
isError: true
|
|
80810
|
+
};
|
|
80811
|
+
}
|
|
80812
|
+
return formatResult(undefined, apiCall);
|
|
80813
|
+
}
|
|
80814
|
+
};
|
|
80815
|
+
});
|
|
80816
|
+
|
|
80817
|
+
// src/models/unpauseprojectop.ts
|
|
80818
|
+
var UnpauseProjectRequest$inboundSchema, UnpauseProjectRequest$outboundSchema, UnpauseProjectRequest$;
|
|
80819
|
+
var init_unpauseprojectop = __esm(() => {
|
|
80820
|
+
init_lib();
|
|
80821
|
+
UnpauseProjectRequest$inboundSchema = objectType({
|
|
80822
|
+
projectId: stringType(),
|
|
80823
|
+
teamId: stringType().optional(),
|
|
80824
|
+
slug: stringType().optional()
|
|
80825
|
+
});
|
|
80826
|
+
UnpauseProjectRequest$outboundSchema = objectType({
|
|
80827
|
+
projectId: stringType(),
|
|
80828
|
+
teamId: stringType().optional(),
|
|
80829
|
+
slug: stringType().optional()
|
|
80830
|
+
});
|
|
80831
|
+
((UnpauseProjectRequest$) => {
|
|
80832
|
+
UnpauseProjectRequest$.inboundSchema = UnpauseProjectRequest$inboundSchema;
|
|
80833
|
+
UnpauseProjectRequest$.outboundSchema = UnpauseProjectRequest$outboundSchema;
|
|
80834
|
+
})(UnpauseProjectRequest$ ||= {});
|
|
80835
|
+
});
|
|
80836
|
+
|
|
80837
|
+
// src/funcs/projectsUnpauseProject.ts
|
|
80838
|
+
function projectsUnpauseProject(client, request, options) {
|
|
80839
|
+
return new APIPromise($do132(client, request, options));
|
|
80840
|
+
}
|
|
80841
|
+
async function $do132(client, request, options) {
|
|
80842
|
+
const parsed = safeParse(request, (value) => UnpauseProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80843
|
+
if (!parsed.ok) {
|
|
80844
|
+
return [parsed, { status: "invalid" }];
|
|
80845
|
+
}
|
|
80846
|
+
const payload = parsed.value;
|
|
80847
|
+
const body = null;
|
|
80848
|
+
const pathParams = {
|
|
80849
|
+
projectId: encodeSimple("projectId", payload.projectId, {
|
|
80850
|
+
explode: false,
|
|
80851
|
+
charEncoding: "percent"
|
|
80852
|
+
})
|
|
80853
|
+
};
|
|
80854
|
+
const path = pathToFunc("/v1/projects/{projectId}/unpause")(pathParams);
|
|
80855
|
+
const query = encodeFormQuery({
|
|
80856
|
+
slug: payload.slug,
|
|
80857
|
+
teamId: payload.teamId
|
|
80858
|
+
});
|
|
80859
|
+
const headers = new Headers(compactMap({
|
|
80860
|
+
Accept: "application/json"
|
|
80861
|
+
}));
|
|
80862
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
80863
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
80864
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80865
|
+
const context = {
|
|
80866
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80867
|
+
operationID: "unpauseProject",
|
|
80868
|
+
oAuth2Scopes: [],
|
|
80869
|
+
resolvedSecurity: requestSecurity,
|
|
80870
|
+
securitySource: client._options.bearerToken,
|
|
80871
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80872
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80873
|
+
};
|
|
80874
|
+
const requestRes = client._createRequest(context, {
|
|
80875
|
+
security: requestSecurity,
|
|
80876
|
+
method: "POST",
|
|
80877
|
+
baseURL: options?.serverURL,
|
|
80878
|
+
path,
|
|
80879
|
+
headers,
|
|
80880
|
+
query,
|
|
80881
|
+
body,
|
|
80882
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80883
|
+
}, options);
|
|
80884
|
+
if (!requestRes.ok) {
|
|
80885
|
+
return [requestRes, { status: "invalid" }];
|
|
80886
|
+
}
|
|
80887
|
+
const req = requestRes.value;
|
|
80888
|
+
const doResult = await client._do(req, {
|
|
80889
|
+
context,
|
|
80890
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
80891
|
+
retryConfig: context.retryConfig,
|
|
80892
|
+
retryCodes: context.retryCodes
|
|
80893
|
+
});
|
|
80894
|
+
if (!doResult.ok) {
|
|
80895
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80896
|
+
}
|
|
80897
|
+
const response = doResult.value;
|
|
80898
|
+
const responseFields = {
|
|
80899
|
+
HttpMeta: { Response: response, Request: req }
|
|
80900
|
+
};
|
|
80901
|
+
const [result] = await match(nil(200, voidType()), jsonErr(400, VercelBadRequestError$inboundSchema), jsonErr(401, VercelForbiddenError$inboundSchema), fail([403, "4XX"]), fail([500, "5XX"]))(response, { extraFields: responseFields });
|
|
80902
|
+
if (!result.ok) {
|
|
80903
|
+
return [result, { status: "complete", request: req, response }];
|
|
80904
|
+
}
|
|
80905
|
+
return [result, { status: "complete", request: req, response }];
|
|
80906
|
+
}
|
|
80907
|
+
var init_projectsUnpauseProject = __esm(() => {
|
|
80908
|
+
init_lib();
|
|
80909
|
+
init_encodings();
|
|
80910
|
+
init_matchers();
|
|
80911
|
+
init_primitives();
|
|
80912
|
+
init_schemas();
|
|
80913
|
+
init_security();
|
|
80914
|
+
init_url();
|
|
80915
|
+
init_unpauseprojectop();
|
|
80916
|
+
init_vercelbadrequesterror();
|
|
80917
|
+
init_vercelforbiddenerror();
|
|
80918
|
+
init_async();
|
|
80919
|
+
});
|
|
80920
|
+
|
|
80921
|
+
// src/mcp-server/tools/projectsUnpauseProject.ts
|
|
80922
|
+
var args131, tool$projectsUnpauseProject;
|
|
80923
|
+
var init_projectsUnpauseProject2 = __esm(() => {
|
|
80924
|
+
init_projectsUnpauseProject();
|
|
80925
|
+
init_unpauseprojectop();
|
|
80926
|
+
init_tools();
|
|
80927
|
+
args131 = {
|
|
80928
|
+
request: UnpauseProjectRequest$inboundSchema
|
|
80929
|
+
};
|
|
80930
|
+
tool$projectsUnpauseProject = {
|
|
80931
|
+
name: "projects-unpause-project",
|
|
80932
|
+
description: `Unpause a project
|
|
80933
|
+
|
|
80934
|
+
Unpause a project by passing its project \`id\` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project enables auto assigning custom production domains and unblocks the active Production Deployment then the request will return with 200 status code.`,
|
|
80935
|
+
args: args131,
|
|
80936
|
+
tool: async (client, args132, ctx) => {
|
|
80937
|
+
const [result, apiCall] = await projectsUnpauseProject(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80674
80938
|
if (!result.ok) {
|
|
80675
80939
|
return {
|
|
80676
80940
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -83703,9 +83967,9 @@ var init_updateprojectop = __esm(() => {
|
|
|
83703
83967
|
|
|
83704
83968
|
// src/funcs/projectsUpdateProject.ts
|
|
83705
83969
|
function projectsUpdateProject(client, request, options) {
|
|
83706
|
-
return new APIPromise($
|
|
83970
|
+
return new APIPromise($do133(client, request, options));
|
|
83707
83971
|
}
|
|
83708
|
-
async function $
|
|
83972
|
+
async function $do133(client, request, options) {
|
|
83709
83973
|
const parsed = safeParse(request, (value) => UpdateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
83710
83974
|
if (!parsed.ok) {
|
|
83711
83975
|
return [parsed, { status: "invalid" }];
|
|
@@ -83787,12 +84051,12 @@ var init_projectsUpdateProject = __esm(() => {
|
|
|
83787
84051
|
});
|
|
83788
84052
|
|
|
83789
84053
|
// src/mcp-server/tools/projectsUpdateProject.ts
|
|
83790
|
-
var
|
|
84054
|
+
var args132, tool$projectsUpdateProject;
|
|
83791
84055
|
var init_projectsUpdateProject2 = __esm(() => {
|
|
83792
84056
|
init_projectsUpdateProject();
|
|
83793
84057
|
init_updateprojectop();
|
|
83794
84058
|
init_tools();
|
|
83795
|
-
|
|
84059
|
+
args132 = {
|
|
83796
84060
|
request: UpdateProjectRequest$inboundSchema
|
|
83797
84061
|
};
|
|
83798
84062
|
tool$projectsUpdateProject = {
|
|
@@ -83800,9 +84064,9 @@ var init_projectsUpdateProject2 = __esm(() => {
|
|
|
83800
84064
|
description: `Update an existing project
|
|
83801
84065
|
|
|
83802
84066
|
Update the fields of a project using either its \`name\` or \`id\`.`,
|
|
83803
|
-
args:
|
|
83804
|
-
tool: async (client,
|
|
83805
|
-
const [result, apiCall] = await projectsUpdateProject(client,
|
|
84067
|
+
args: args132,
|
|
84068
|
+
tool: async (client, args133, ctx) => {
|
|
84069
|
+
const [result, apiCall] = await projectsUpdateProject(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
83806
84070
|
if (!result.ok) {
|
|
83807
84071
|
return {
|
|
83808
84072
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -86606,9 +86870,9 @@ var init_updateprojectdatacacheop = __esm(() => {
|
|
|
86606
86870
|
|
|
86607
86871
|
// src/funcs/projectsUpdateProjectDataCache.ts
|
|
86608
86872
|
function projectsUpdateProjectDataCache(client, request, options) {
|
|
86609
|
-
return new APIPromise($
|
|
86873
|
+
return new APIPromise($do134(client, request, options));
|
|
86610
86874
|
}
|
|
86611
|
-
async function $
|
|
86875
|
+
async function $do134(client, request, options) {
|
|
86612
86876
|
const parsed = safeParse(request, (value) => UpdateProjectDataCacheRequest$outboundSchema.parse(value), "Input validation failed");
|
|
86613
86877
|
if (!parsed.ok) {
|
|
86614
86878
|
return [parsed, { status: "invalid" }];
|
|
@@ -86690,12 +86954,12 @@ var init_projectsUpdateProjectDataCache = __esm(() => {
|
|
|
86690
86954
|
});
|
|
86691
86955
|
|
|
86692
86956
|
// src/mcp-server/tools/projectsUpdateProjectDataCache.ts
|
|
86693
|
-
var
|
|
86957
|
+
var args133, tool$projectsUpdateProjectDataCache;
|
|
86694
86958
|
var init_projectsUpdateProjectDataCache2 = __esm(() => {
|
|
86695
86959
|
init_projectsUpdateProjectDataCache();
|
|
86696
86960
|
init_updateprojectdatacacheop();
|
|
86697
86961
|
init_tools();
|
|
86698
|
-
|
|
86962
|
+
args133 = {
|
|
86699
86963
|
request: UpdateProjectDataCacheRequest$inboundSchema
|
|
86700
86964
|
};
|
|
86701
86965
|
tool$projectsUpdateProjectDataCache = {
|
|
@@ -86703,9 +86967,9 @@ var init_projectsUpdateProjectDataCache2 = __esm(() => {
|
|
|
86703
86967
|
description: `Update the data cache feature
|
|
86704
86968
|
|
|
86705
86969
|
Update the data cache feature on a project.`,
|
|
86706
|
-
args:
|
|
86707
|
-
tool: async (client,
|
|
86708
|
-
const [result, apiCall] = await projectsUpdateProjectDataCache(client,
|
|
86970
|
+
args: args133,
|
|
86971
|
+
tool: async (client, args134, ctx) => {
|
|
86972
|
+
const [result, apiCall] = await projectsUpdateProjectDataCache(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
86709
86973
|
if (!result.ok) {
|
|
86710
86974
|
return {
|
|
86711
86975
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -86825,9 +87089,9 @@ var init_updateprojectdomainop = __esm(() => {
|
|
|
86825
87089
|
|
|
86826
87090
|
// src/funcs/projectsUpdateProjectDomain.ts
|
|
86827
87091
|
function projectsUpdateProjectDomain(client, request, options) {
|
|
86828
|
-
return new APIPromise($
|
|
87092
|
+
return new APIPromise($do135(client, request, options));
|
|
86829
87093
|
}
|
|
86830
|
-
async function $
|
|
87094
|
+
async function $do135(client, request, options) {
|
|
86831
87095
|
const parsed = safeParse(request, (value) => UpdateProjectDomainRequest$outboundSchema.parse(value), "Input validation failed");
|
|
86832
87096
|
if (!parsed.ok) {
|
|
86833
87097
|
return [parsed, { status: "invalid" }];
|
|
@@ -86912,12 +87176,12 @@ var init_projectsUpdateProjectDomain = __esm(() => {
|
|
|
86912
87176
|
});
|
|
86913
87177
|
|
|
86914
87178
|
// src/mcp-server/tools/projectsUpdateProjectDomain.ts
|
|
86915
|
-
var
|
|
87179
|
+
var args134, tool$projectsUpdateProjectDomain;
|
|
86916
87180
|
var init_projectsUpdateProjectDomain2 = __esm(() => {
|
|
86917
87181
|
init_projectsUpdateProjectDomain();
|
|
86918
87182
|
init_updateprojectdomainop();
|
|
86919
87183
|
init_tools();
|
|
86920
|
-
|
|
87184
|
+
args134 = {
|
|
86921
87185
|
request: UpdateProjectDomainRequest$inboundSchema
|
|
86922
87186
|
};
|
|
86923
87187
|
tool$projectsUpdateProjectDomain = {
|
|
@@ -86925,9 +87189,9 @@ var init_projectsUpdateProjectDomain2 = __esm(() => {
|
|
|
86925
87189
|
description: `Update a project domain
|
|
86926
87190
|
|
|
86927
87191
|
Update a project domain's configuration, including the name, git branch and redirect of the domain.`,
|
|
86928
|
-
args:
|
|
86929
|
-
tool: async (client,
|
|
86930
|
-
const [result, apiCall] = await projectsUpdateProjectDomain(client,
|
|
87192
|
+
args: args134,
|
|
87193
|
+
tool: async (client, args135, ctx) => {
|
|
87194
|
+
const [result, apiCall] = await projectsUpdateProjectDomain(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
86931
87195
|
if (!result.ok) {
|
|
86932
87196
|
return {
|
|
86933
87197
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -87040,9 +87304,9 @@ var init_updateprojectprotectionbypassop = __esm(() => {
|
|
|
87040
87304
|
|
|
87041
87305
|
// src/funcs/projectsUpdateProjectProtectionBypass.ts
|
|
87042
87306
|
function projectsUpdateProjectProtectionBypass(client, request, options) {
|
|
87043
|
-
return new APIPromise($
|
|
87307
|
+
return new APIPromise($do136(client, request, options));
|
|
87044
87308
|
}
|
|
87045
|
-
async function $
|
|
87309
|
+
async function $do136(client, request, options) {
|
|
87046
87310
|
const parsed = safeParse(request, (value) => UpdateProjectProtectionBypassRequest$outboundSchema.parse(value), "Input validation failed");
|
|
87047
87311
|
if (!parsed.ok) {
|
|
87048
87312
|
return [parsed, { status: "invalid" }];
|
|
@@ -87124,12 +87388,12 @@ var init_projectsUpdateProjectProtectionBypass = __esm(() => {
|
|
|
87124
87388
|
});
|
|
87125
87389
|
|
|
87126
87390
|
// src/mcp-server/tools/projectsUpdateProjectProtectionBypass.ts
|
|
87127
|
-
var
|
|
87391
|
+
var args135, tool$projectsUpdateProjectProtectionBypass;
|
|
87128
87392
|
var init_projectsUpdateProjectProtectionBypass2 = __esm(() => {
|
|
87129
87393
|
init_projectsUpdateProjectProtectionBypass();
|
|
87130
87394
|
init_updateprojectprotectionbypassop();
|
|
87131
87395
|
init_tools();
|
|
87132
|
-
|
|
87396
|
+
args135 = {
|
|
87133
87397
|
request: UpdateProjectProtectionBypassRequest$inboundSchema
|
|
87134
87398
|
};
|
|
87135
87399
|
tool$projectsUpdateProjectProtectionBypass = {
|
|
@@ -87137,9 +87401,9 @@ var init_projectsUpdateProjectProtectionBypass2 = __esm(() => {
|
|
|
87137
87401
|
description: `Update Protection Bypass for Automation
|
|
87138
87402
|
|
|
87139
87403
|
Update the deployment protection automation bypass for a project`,
|
|
87140
|
-
args:
|
|
87141
|
-
tool: async (client,
|
|
87142
|
-
const [result, apiCall] = await projectsUpdateProjectProtectionBypass(client,
|
|
87404
|
+
args: args135,
|
|
87405
|
+
tool: async (client, args136, ctx) => {
|
|
87406
|
+
const [result, apiCall] = await projectsUpdateProjectProtectionBypass(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
87143
87407
|
if (!result.ok) {
|
|
87144
87408
|
return {
|
|
87145
87409
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -87204,9 +87468,9 @@ var init_verifyprojectdomainop = __esm(() => {
|
|
|
87204
87468
|
|
|
87205
87469
|
// src/funcs/projectsVerifyProjectDomain.ts
|
|
87206
87470
|
function projectsVerifyProjectDomain(client, request, options) {
|
|
87207
|
-
return new APIPromise($
|
|
87471
|
+
return new APIPromise($do137(client, request, options));
|
|
87208
87472
|
}
|
|
87209
|
-
async function $
|
|
87473
|
+
async function $do137(client, request, options) {
|
|
87210
87474
|
const parsed = safeParse(request, (value) => VerifyProjectDomainRequest$outboundSchema.parse(value), "Input validation failed");
|
|
87211
87475
|
if (!parsed.ok) {
|
|
87212
87476
|
return [parsed, { status: "invalid" }];
|
|
@@ -87290,12 +87554,12 @@ var init_projectsVerifyProjectDomain = __esm(() => {
|
|
|
87290
87554
|
});
|
|
87291
87555
|
|
|
87292
87556
|
// src/mcp-server/tools/projectsVerifyProjectDomain.ts
|
|
87293
|
-
var
|
|
87557
|
+
var args136, tool$projectsVerifyProjectDomain;
|
|
87294
87558
|
var init_projectsVerifyProjectDomain2 = __esm(() => {
|
|
87295
87559
|
init_projectsVerifyProjectDomain();
|
|
87296
87560
|
init_verifyprojectdomainop();
|
|
87297
87561
|
init_tools();
|
|
87298
|
-
|
|
87562
|
+
args136 = {
|
|
87299
87563
|
request: VerifyProjectDomainRequest$inboundSchema
|
|
87300
87564
|
};
|
|
87301
87565
|
tool$projectsVerifyProjectDomain = {
|
|
@@ -87303,9 +87567,9 @@ var init_projectsVerifyProjectDomain2 = __esm(() => {
|
|
|
87303
87567
|
description: `Verify project domain
|
|
87304
87568
|
|
|
87305
87569
|
Attempts to verify a project domain with \`verified = false\` by checking the correctness of the project domain's \`verification\` challenge.`,
|
|
87306
|
-
args:
|
|
87307
|
-
tool: async (client,
|
|
87308
|
-
const [result, apiCall] = await projectsVerifyProjectDomain(client,
|
|
87570
|
+
args: args136,
|
|
87571
|
+
tool: async (client, args137, ctx) => {
|
|
87572
|
+
const [result, apiCall] = await projectsVerifyProjectDomain(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
87309
87573
|
if (!result.ok) {
|
|
87310
87574
|
return {
|
|
87311
87575
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -87569,9 +87833,9 @@ var init_addbypassipop = __esm(() => {
|
|
|
87569
87833
|
|
|
87570
87834
|
// src/funcs/securityAddBypassIp.ts
|
|
87571
87835
|
function securityAddBypassIp(client, request, options) {
|
|
87572
|
-
return new APIPromise($
|
|
87836
|
+
return new APIPromise($do138(client, request, options));
|
|
87573
87837
|
}
|
|
87574
|
-
async function $
|
|
87838
|
+
async function $do138(client, request, options) {
|
|
87575
87839
|
const parsed = safeParse(request, (value) => AddBypassIpRequest$outboundSchema.parse(value), "Input validation failed");
|
|
87576
87840
|
if (!parsed.ok) {
|
|
87577
87841
|
return [parsed, { status: "invalid" }];
|
|
@@ -87648,12 +87912,12 @@ var init_securityAddBypassIp = __esm(() => {
|
|
|
87648
87912
|
});
|
|
87649
87913
|
|
|
87650
87914
|
// src/mcp-server/tools/securityAddBypassIp.ts
|
|
87651
|
-
var
|
|
87915
|
+
var args137, tool$securityAddBypassIp;
|
|
87652
87916
|
var init_securityAddBypassIp2 = __esm(() => {
|
|
87653
87917
|
init_securityAddBypassIp();
|
|
87654
87918
|
init_addbypassipop();
|
|
87655
87919
|
init_tools();
|
|
87656
|
-
|
|
87920
|
+
args137 = {
|
|
87657
87921
|
request: AddBypassIpRequest$inboundSchema
|
|
87658
87922
|
};
|
|
87659
87923
|
tool$securityAddBypassIp = {
|
|
@@ -87661,9 +87925,9 @@ var init_securityAddBypassIp2 = __esm(() => {
|
|
|
87661
87925
|
description: `Create System Bypass Rule
|
|
87662
87926
|
|
|
87663
87927
|
Create new system bypass rules`,
|
|
87664
|
-
args:
|
|
87665
|
-
tool: async (client,
|
|
87666
|
-
const [result, apiCall] = await securityAddBypassIp(client,
|
|
87928
|
+
args: args137,
|
|
87929
|
+
tool: async (client, args138, ctx) => {
|
|
87930
|
+
const [result, apiCall] = await securityAddBypassIp(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
87667
87931
|
if (!result.ok) {
|
|
87668
87932
|
return {
|
|
87669
87933
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -87805,9 +88069,9 @@ var init_getactiveattackstatusop = __esm(() => {
|
|
|
87805
88069
|
|
|
87806
88070
|
// src/funcs/securityGetActiveAttackStatus.ts
|
|
87807
88071
|
function securityGetActiveAttackStatus(client, request, options) {
|
|
87808
|
-
return new APIPromise($
|
|
88072
|
+
return new APIPromise($do139(client, request, options));
|
|
87809
88073
|
}
|
|
87810
|
-
async function $
|
|
88074
|
+
async function $do139(client, request, options) {
|
|
87811
88075
|
const parsed = safeParse(request, (value) => GetActiveAttackStatusRequest$outboundSchema.parse(value), "Input validation failed");
|
|
87812
88076
|
if (!parsed.ok) {
|
|
87813
88077
|
return [parsed, { status: "invalid" }];
|
|
@@ -87883,12 +88147,12 @@ var init_securityGetActiveAttackStatus = __esm(() => {
|
|
|
87883
88147
|
});
|
|
87884
88148
|
|
|
87885
88149
|
// src/mcp-server/tools/securityGetActiveAttackStatus.ts
|
|
87886
|
-
var
|
|
88150
|
+
var args138, tool$securityGetActiveAttackStatus;
|
|
87887
88151
|
var init_securityGetActiveAttackStatus2 = __esm(() => {
|
|
87888
88152
|
init_securityGetActiveAttackStatus();
|
|
87889
88153
|
init_getactiveattackstatusop();
|
|
87890
88154
|
init_tools();
|
|
87891
|
-
|
|
88155
|
+
args138 = {
|
|
87892
88156
|
request: GetActiveAttackStatusRequest$inboundSchema
|
|
87893
88157
|
};
|
|
87894
88158
|
tool$securityGetActiveAttackStatus = {
|
|
@@ -87896,9 +88160,9 @@ var init_securityGetActiveAttackStatus2 = __esm(() => {
|
|
|
87896
88160
|
description: `Read active attack data
|
|
87897
88161
|
|
|
87898
88162
|
Retrieve active attack data within the last 24h window`,
|
|
87899
|
-
args:
|
|
87900
|
-
tool: async (client,
|
|
87901
|
-
const [result, apiCall] = await securityGetActiveAttackStatus(client,
|
|
88163
|
+
args: args138,
|
|
88164
|
+
tool: async (client, args139, ctx) => {
|
|
88165
|
+
const [result, apiCall] = await securityGetActiveAttackStatus(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
87902
88166
|
if (!result.ok) {
|
|
87903
88167
|
return {
|
|
87904
88168
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -88162,9 +88426,9 @@ var init_getbypassipop = __esm(() => {
|
|
|
88162
88426
|
|
|
88163
88427
|
// src/funcs/securityGetBypassIp.ts
|
|
88164
88428
|
function securityGetBypassIp(client, request, options) {
|
|
88165
|
-
return new APIPromise($
|
|
88429
|
+
return new APIPromise($do140(client, request, options));
|
|
88166
88430
|
}
|
|
88167
|
-
async function $
|
|
88431
|
+
async function $do140(client, request, options) {
|
|
88168
88432
|
const parsed = safeParse(request, (value) => GetBypassIpRequest$outboundSchema.parse(value), "Input validation failed");
|
|
88169
88433
|
if (!parsed.ok) {
|
|
88170
88434
|
return [parsed, { status: "invalid" }];
|
|
@@ -88245,12 +88509,12 @@ var init_securityGetBypassIp = __esm(() => {
|
|
|
88245
88509
|
});
|
|
88246
88510
|
|
|
88247
88511
|
// src/mcp-server/tools/securityGetBypassIp.ts
|
|
88248
|
-
var
|
|
88512
|
+
var args139, tool$securityGetBypassIp;
|
|
88249
88513
|
var init_securityGetBypassIp2 = __esm(() => {
|
|
88250
88514
|
init_securityGetBypassIp();
|
|
88251
88515
|
init_getbypassipop();
|
|
88252
88516
|
init_tools();
|
|
88253
|
-
|
|
88517
|
+
args139 = {
|
|
88254
88518
|
request: GetBypassIpRequest$inboundSchema
|
|
88255
88519
|
};
|
|
88256
88520
|
tool$securityGetBypassIp = {
|
|
@@ -88258,9 +88522,9 @@ var init_securityGetBypassIp2 = __esm(() => {
|
|
|
88258
88522
|
description: `Read System Bypass
|
|
88259
88523
|
|
|
88260
88524
|
Retrieve the system bypass rules configured for the specified project`,
|
|
88261
|
-
args:
|
|
88262
|
-
tool: async (client,
|
|
88263
|
-
const [result, apiCall] = await securityGetBypassIp(client,
|
|
88525
|
+
args: args139,
|
|
88526
|
+
tool: async (client, args140, ctx) => {
|
|
88527
|
+
const [result, apiCall] = await securityGetBypassIp(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
88264
88528
|
if (!result.ok) {
|
|
88265
88529
|
return {
|
|
88266
88530
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -88864,9 +89128,9 @@ var init_getfirewallconfigop = __esm(() => {
|
|
|
88864
89128
|
|
|
88865
89129
|
// src/funcs/securityGetFirewallConfig.ts
|
|
88866
89130
|
function securityGetFirewallConfig(client, request, options) {
|
|
88867
|
-
return new APIPromise($
|
|
89131
|
+
return new APIPromise($do141(client, request, options));
|
|
88868
89132
|
}
|
|
88869
|
-
async function $
|
|
89133
|
+
async function $do141(client, request, options) {
|
|
88870
89134
|
const parsed = safeParse(request, (value) => GetFirewallConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
88871
89135
|
if (!parsed.ok) {
|
|
88872
89136
|
return [parsed, { status: "invalid" }];
|
|
@@ -88948,12 +89212,12 @@ var init_securityGetFirewallConfig = __esm(() => {
|
|
|
88948
89212
|
});
|
|
88949
89213
|
|
|
88950
89214
|
// src/mcp-server/tools/securityGetFirewallConfig.ts
|
|
88951
|
-
var
|
|
89215
|
+
var args140, tool$securityGetFirewallConfig;
|
|
88952
89216
|
var init_securityGetFirewallConfig2 = __esm(() => {
|
|
88953
89217
|
init_securityGetFirewallConfig();
|
|
88954
89218
|
init_getfirewallconfigop();
|
|
88955
89219
|
init_tools();
|
|
88956
|
-
|
|
89220
|
+
args140 = {
|
|
88957
89221
|
request: GetFirewallConfigRequest$inboundSchema
|
|
88958
89222
|
};
|
|
88959
89223
|
tool$securityGetFirewallConfig = {
|
|
@@ -88961,9 +89225,9 @@ var init_securityGetFirewallConfig2 = __esm(() => {
|
|
|
88961
89225
|
description: `Read Firewall Configuration
|
|
88962
89226
|
|
|
88963
89227
|
Retrieve the specified firewall configuration for a project. The deployed configVersion will be \`active\``,
|
|
88964
|
-
args:
|
|
88965
|
-
tool: async (client,
|
|
88966
|
-
const [result, apiCall] = await securityGetFirewallConfig(client,
|
|
89228
|
+
args: args140,
|
|
89229
|
+
tool: async (client, args141, ctx) => {
|
|
89230
|
+
const [result, apiCall] = await securityGetFirewallConfig(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
88967
89231
|
if (!result.ok) {
|
|
88968
89232
|
return {
|
|
88969
89233
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -89073,9 +89337,9 @@ var init_removebypassipop = __esm(() => {
|
|
|
89073
89337
|
|
|
89074
89338
|
// src/funcs/securityRemoveBypassIp.ts
|
|
89075
89339
|
function securityRemoveBypassIp(client, request, options) {
|
|
89076
|
-
return new APIPromise($
|
|
89340
|
+
return new APIPromise($do142(client, request, options));
|
|
89077
89341
|
}
|
|
89078
|
-
async function $
|
|
89342
|
+
async function $do142(client, request, options) {
|
|
89079
89343
|
const parsed = safeParse(request, (value) => RemoveBypassIpRequest$outboundSchema.parse(value), "Input validation failed");
|
|
89080
89344
|
if (!parsed.ok) {
|
|
89081
89345
|
return [parsed, { status: "invalid" }];
|
|
@@ -89152,12 +89416,12 @@ var init_securityRemoveBypassIp = __esm(() => {
|
|
|
89152
89416
|
});
|
|
89153
89417
|
|
|
89154
89418
|
// src/mcp-server/tools/securityRemoveBypassIp.ts
|
|
89155
|
-
var
|
|
89419
|
+
var args141, tool$securityRemoveBypassIp;
|
|
89156
89420
|
var init_securityRemoveBypassIp2 = __esm(() => {
|
|
89157
89421
|
init_securityRemoveBypassIp();
|
|
89158
89422
|
init_removebypassipop();
|
|
89159
89423
|
init_tools();
|
|
89160
|
-
|
|
89424
|
+
args141 = {
|
|
89161
89425
|
request: RemoveBypassIpRequest$inboundSchema
|
|
89162
89426
|
};
|
|
89163
89427
|
tool$securityRemoveBypassIp = {
|
|
@@ -89165,9 +89429,9 @@ var init_securityRemoveBypassIp2 = __esm(() => {
|
|
|
89165
89429
|
description: `Remove System Bypass Rule
|
|
89166
89430
|
|
|
89167
89431
|
Remove system bypass rules`,
|
|
89168
|
-
args:
|
|
89169
|
-
tool: async (client,
|
|
89170
|
-
const [result, apiCall] = await securityRemoveBypassIp(client,
|
|
89432
|
+
args: args141,
|
|
89433
|
+
tool: async (client, args142, ctx) => {
|
|
89434
|
+
const [result, apiCall] = await securityRemoveBypassIp(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
89171
89435
|
if (!result.ok) {
|
|
89172
89436
|
return {
|
|
89173
89437
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -89237,9 +89501,9 @@ var init_updateattackchallengemodeop = __esm(() => {
|
|
|
89237
89501
|
|
|
89238
89502
|
// src/funcs/securityUpdateAttackChallengeMode.ts
|
|
89239
89503
|
function securityUpdateAttackChallengeMode(client, request, options) {
|
|
89240
|
-
return new APIPromise($
|
|
89504
|
+
return new APIPromise($do143(client, request, options));
|
|
89241
89505
|
}
|
|
89242
|
-
async function $
|
|
89506
|
+
async function $do143(client, request, options) {
|
|
89243
89507
|
const parsed = safeParse(request, (value) => UpdateAttackChallengeModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
89244
89508
|
if (!parsed.ok) {
|
|
89245
89509
|
return [parsed, { status: "invalid" }];
|
|
@@ -89315,12 +89579,12 @@ var init_securityUpdateAttackChallengeMode = __esm(() => {
|
|
|
89315
89579
|
});
|
|
89316
89580
|
|
|
89317
89581
|
// src/mcp-server/tools/securityUpdateAttackChallengeMode.ts
|
|
89318
|
-
var
|
|
89582
|
+
var args142, tool$securityUpdateAttackChallengeMode;
|
|
89319
89583
|
var init_securityUpdateAttackChallengeMode2 = __esm(() => {
|
|
89320
89584
|
init_securityUpdateAttackChallengeMode();
|
|
89321
89585
|
init_updateattackchallengemodeop();
|
|
89322
89586
|
init_tools();
|
|
89323
|
-
|
|
89587
|
+
args142 = {
|
|
89324
89588
|
request: UpdateAttackChallengeModeRequest$inboundSchema
|
|
89325
89589
|
};
|
|
89326
89590
|
tool$securityUpdateAttackChallengeMode = {
|
|
@@ -89328,9 +89592,9 @@ var init_securityUpdateAttackChallengeMode2 = __esm(() => {
|
|
|
89328
89592
|
description: `Update Attack Challenge mode
|
|
89329
89593
|
|
|
89330
89594
|
Update the setting for determining if the project has Attack Challenge mode enabled.`,
|
|
89331
|
-
args:
|
|
89332
|
-
tool: async (client,
|
|
89333
|
-
const [result, apiCall] = await securityUpdateAttackChallengeMode(client,
|
|
89595
|
+
args: args142,
|
|
89596
|
+
tool: async (client, args143, ctx) => {
|
|
89597
|
+
const [result, apiCall] = await securityUpdateAttackChallengeMode(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
89334
89598
|
if (!result.ok) {
|
|
89335
89599
|
return {
|
|
89336
89600
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -90306,9 +90570,9 @@ var init_updatefirewallconfigop = __esm(() => {
|
|
|
90306
90570
|
|
|
90307
90571
|
// src/funcs/securityUpdateFirewallConfig.ts
|
|
90308
90572
|
function securityUpdateFirewallConfig(client, request, options) {
|
|
90309
|
-
return new APIPromise($
|
|
90573
|
+
return new APIPromise($do144(client, request, options));
|
|
90310
90574
|
}
|
|
90311
|
-
async function $
|
|
90575
|
+
async function $do144(client, request, options) {
|
|
90312
90576
|
const parsed = safeParse(request, (value) => UpdateFirewallConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
90313
90577
|
if (!parsed.ok) {
|
|
90314
90578
|
return [parsed, { status: "invalid" }];
|
|
@@ -90385,12 +90649,12 @@ var init_securityUpdateFirewallConfig = __esm(() => {
|
|
|
90385
90649
|
});
|
|
90386
90650
|
|
|
90387
90651
|
// src/mcp-server/tools/securityUpdateFirewallConfig.ts
|
|
90388
|
-
var
|
|
90652
|
+
var args143, tool$securityUpdateFirewallConfig;
|
|
90389
90653
|
var init_securityUpdateFirewallConfig2 = __esm(() => {
|
|
90390
90654
|
init_securityUpdateFirewallConfig();
|
|
90391
90655
|
init_updatefirewallconfigop();
|
|
90392
90656
|
init_tools();
|
|
90393
|
-
|
|
90657
|
+
args143 = {
|
|
90394
90658
|
request: UpdateFirewallConfigRequest$inboundSchema
|
|
90395
90659
|
};
|
|
90396
90660
|
tool$securityUpdateFirewallConfig = {
|
|
@@ -90398,9 +90662,9 @@ var init_securityUpdateFirewallConfig2 = __esm(() => {
|
|
|
90398
90662
|
description: `Update Firewall Configuration
|
|
90399
90663
|
|
|
90400
90664
|
Process updates to modify the existing firewall config for a project`,
|
|
90401
|
-
args:
|
|
90402
|
-
tool: async (client,
|
|
90403
|
-
const [result, apiCall] = await securityUpdateFirewallConfig(client,
|
|
90665
|
+
args: args143,
|
|
90666
|
+
tool: async (client, args144, ctx) => {
|
|
90667
|
+
const [result, apiCall] = await securityUpdateFirewallConfig(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
90404
90668
|
if (!result.ok) {
|
|
90405
90669
|
return {
|
|
90406
90670
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -90487,9 +90751,9 @@ var init_createteamop = __esm(() => {
|
|
|
90487
90751
|
|
|
90488
90752
|
// src/funcs/teamsCreateTeam.ts
|
|
90489
90753
|
function teamsCreateTeam(client, request, options) {
|
|
90490
|
-
return new APIPromise($
|
|
90754
|
+
return new APIPromise($do145(client, request, options));
|
|
90491
90755
|
}
|
|
90492
|
-
async function $
|
|
90756
|
+
async function $do145(client, request, options) {
|
|
90493
90757
|
const parsed = safeParse(request, (value) => CreateTeamRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
90494
90758
|
if (!parsed.ok) {
|
|
90495
90759
|
return [parsed, { status: "invalid" }];
|
|
@@ -90559,12 +90823,12 @@ var init_teamsCreateTeam = __esm(() => {
|
|
|
90559
90823
|
});
|
|
90560
90824
|
|
|
90561
90825
|
// src/mcp-server/tools/teamsCreateTeam.ts
|
|
90562
|
-
var
|
|
90826
|
+
var args144, tool$teamsCreateTeam;
|
|
90563
90827
|
var init_teamsCreateTeam2 = __esm(() => {
|
|
90564
90828
|
init_teamsCreateTeam();
|
|
90565
90829
|
init_createteamop();
|
|
90566
90830
|
init_tools();
|
|
90567
|
-
|
|
90831
|
+
args144 = {
|
|
90568
90832
|
request: CreateTeamRequestBody$inboundSchema
|
|
90569
90833
|
};
|
|
90570
90834
|
tool$teamsCreateTeam = {
|
|
@@ -90572,9 +90836,9 @@ var init_teamsCreateTeam2 = __esm(() => {
|
|
|
90572
90836
|
description: `Create a Team
|
|
90573
90837
|
|
|
90574
90838
|
Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name.`,
|
|
90575
|
-
args:
|
|
90576
|
-
tool: async (client,
|
|
90577
|
-
const [result, apiCall] = await teamsCreateTeam(client,
|
|
90839
|
+
args: args144,
|
|
90840
|
+
tool: async (client, args145, ctx) => {
|
|
90841
|
+
const [result, apiCall] = await teamsCreateTeam(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
90578
90842
|
if (!result.ok) {
|
|
90579
90843
|
return {
|
|
90580
90844
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -90654,9 +90918,9 @@ var init_deleteteamop = __esm(() => {
|
|
|
90654
90918
|
|
|
90655
90919
|
// src/funcs/teamsDeleteTeam.ts
|
|
90656
90920
|
function teamsDeleteTeam(client, request, options) {
|
|
90657
|
-
return new APIPromise($
|
|
90921
|
+
return new APIPromise($do146(client, request, options));
|
|
90658
90922
|
}
|
|
90659
|
-
async function $
|
|
90923
|
+
async function $do146(client, request, options) {
|
|
90660
90924
|
const parsed = safeParse(request, (value) => DeleteTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
90661
90925
|
if (!parsed.ok) {
|
|
90662
90926
|
return [parsed, { status: "invalid" }];
|
|
@@ -90738,12 +91002,12 @@ var init_teamsDeleteTeam = __esm(() => {
|
|
|
90738
91002
|
});
|
|
90739
91003
|
|
|
90740
91004
|
// src/mcp-server/tools/teamsDeleteTeam.ts
|
|
90741
|
-
var
|
|
91005
|
+
var args145, tool$teamsDeleteTeam;
|
|
90742
91006
|
var init_teamsDeleteTeam2 = __esm(() => {
|
|
90743
91007
|
init_teamsDeleteTeam();
|
|
90744
91008
|
init_deleteteamop();
|
|
90745
91009
|
init_tools();
|
|
90746
|
-
|
|
91010
|
+
args145 = {
|
|
90747
91011
|
request: DeleteTeamRequest$inboundSchema
|
|
90748
91012
|
};
|
|
90749
91013
|
tool$teamsDeleteTeam = {
|
|
@@ -90751,9 +91015,9 @@ var init_teamsDeleteTeam2 = __esm(() => {
|
|
|
90751
91015
|
description: `Delete a Team
|
|
90752
91016
|
|
|
90753
91017
|
Delete a team under your account. You need to send a \`DELETE\` request with the desired team \`id\`. An optional array of reasons for deletion may also be sent.`,
|
|
90754
|
-
args:
|
|
90755
|
-
tool: async (client,
|
|
90756
|
-
const [result, apiCall] = await teamsDeleteTeam(client,
|
|
91018
|
+
args: args145,
|
|
91019
|
+
tool: async (client, args146, ctx) => {
|
|
91020
|
+
const [result, apiCall] = await teamsDeleteTeam(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
90757
91021
|
if (!result.ok) {
|
|
90758
91022
|
return {
|
|
90759
91023
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -90796,9 +91060,9 @@ var init_deleteteaminvitecodeop = __esm(() => {
|
|
|
90796
91060
|
|
|
90797
91061
|
// src/funcs/teamsDeleteTeamInviteCode.ts
|
|
90798
91062
|
function teamsDeleteTeamInviteCode(client, request, options) {
|
|
90799
|
-
return new APIPromise($
|
|
91063
|
+
return new APIPromise($do147(client, request, options));
|
|
90800
91064
|
}
|
|
90801
|
-
async function $
|
|
91065
|
+
async function $do147(client, request, options) {
|
|
90802
91066
|
const parsed = safeParse(request, (value) => DeleteTeamInviteCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
90803
91067
|
if (!parsed.ok) {
|
|
90804
91068
|
return [parsed, { status: "invalid" }];
|
|
@@ -90878,12 +91142,12 @@ var init_teamsDeleteTeamInviteCode = __esm(() => {
|
|
|
90878
91142
|
});
|
|
90879
91143
|
|
|
90880
91144
|
// src/mcp-server/tools/teamsDeleteTeamInviteCode.ts
|
|
90881
|
-
var
|
|
91145
|
+
var args146, tool$teamsDeleteTeamInviteCode;
|
|
90882
91146
|
var init_teamsDeleteTeamInviteCode2 = __esm(() => {
|
|
90883
91147
|
init_teamsDeleteTeamInviteCode();
|
|
90884
91148
|
init_deleteteaminvitecodeop();
|
|
90885
91149
|
init_tools();
|
|
90886
|
-
|
|
91150
|
+
args146 = {
|
|
90887
91151
|
request: DeleteTeamInviteCodeRequest$inboundSchema
|
|
90888
91152
|
};
|
|
90889
91153
|
tool$teamsDeleteTeamInviteCode = {
|
|
@@ -90891,9 +91155,9 @@ var init_teamsDeleteTeamInviteCode2 = __esm(() => {
|
|
|
90891
91155
|
description: `Delete a Team invite code
|
|
90892
91156
|
|
|
90893
91157
|
Delete an active Team invite code.`,
|
|
90894
|
-
args:
|
|
90895
|
-
tool: async (client,
|
|
90896
|
-
const [result, apiCall] = await teamsDeleteTeamInviteCode(client,
|
|
91158
|
+
args: args146,
|
|
91159
|
+
tool: async (client, args147, ctx) => {
|
|
91160
|
+
const [result, apiCall] = await teamsDeleteTeamInviteCode(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
90897
91161
|
if (!result.ok) {
|
|
90898
91162
|
return {
|
|
90899
91163
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -90926,9 +91190,9 @@ var init_getteamop = __esm(() => {
|
|
|
90926
91190
|
|
|
90927
91191
|
// src/funcs/teamsGetTeam.ts
|
|
90928
91192
|
function teamsGetTeam(client, request, options) {
|
|
90929
|
-
return new APIPromise($
|
|
91193
|
+
return new APIPromise($do148(client, request, options));
|
|
90930
91194
|
}
|
|
90931
|
-
async function $
|
|
91195
|
+
async function $do148(client, request, options) {
|
|
90932
91196
|
const parsed = safeParse(request, (value) => GetTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
90933
91197
|
if (!parsed.ok) {
|
|
90934
91198
|
return [parsed, { status: "invalid" }];
|
|
@@ -91009,12 +91273,12 @@ var init_teamsGetTeam = __esm(() => {
|
|
|
91009
91273
|
});
|
|
91010
91274
|
|
|
91011
91275
|
// src/mcp-server/tools/teamsGetTeam.ts
|
|
91012
|
-
var
|
|
91276
|
+
var args147, tool$teamsGetTeam;
|
|
91013
91277
|
var init_teamsGetTeam2 = __esm(() => {
|
|
91014
91278
|
init_teamsGetTeam();
|
|
91015
91279
|
init_getteamop();
|
|
91016
91280
|
init_tools();
|
|
91017
|
-
|
|
91281
|
+
args147 = {
|
|
91018
91282
|
request: GetTeamRequest$inboundSchema
|
|
91019
91283
|
};
|
|
91020
91284
|
tool$teamsGetTeam = {
|
|
@@ -91022,9 +91286,9 @@ var init_teamsGetTeam2 = __esm(() => {
|
|
|
91022
91286
|
description: `Get a Team
|
|
91023
91287
|
|
|
91024
91288
|
Get information for the Team specified by the \`teamId\` parameter.`,
|
|
91025
|
-
args:
|
|
91026
|
-
tool: async (client,
|
|
91027
|
-
const [result, apiCall] = await teamsGetTeam(client,
|
|
91289
|
+
args: args147,
|
|
91290
|
+
tool: async (client, args148, ctx) => {
|
|
91291
|
+
const [result, apiCall] = await teamsGetTeam(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
91028
91292
|
if (!result.ok) {
|
|
91029
91293
|
return {
|
|
91030
91294
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -91166,9 +91430,9 @@ var init_getteamaccessrequestop = __esm(() => {
|
|
|
91166
91430
|
|
|
91167
91431
|
// src/funcs/teamsGetTeamAccessRequest.ts
|
|
91168
91432
|
function teamsGetTeamAccessRequest(client, request, options) {
|
|
91169
|
-
return new APIPromise($
|
|
91433
|
+
return new APIPromise($do149(client, request, options));
|
|
91170
91434
|
}
|
|
91171
|
-
async function $
|
|
91435
|
+
async function $do149(client, request, options) {
|
|
91172
91436
|
const parsed = safeParse(request, (value) => GetTeamAccessRequestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
91173
91437
|
if (!parsed.ok) {
|
|
91174
91438
|
return [parsed, { status: "invalid" }];
|
|
@@ -91248,12 +91512,12 @@ var init_teamsGetTeamAccessRequest = __esm(() => {
|
|
|
91248
91512
|
});
|
|
91249
91513
|
|
|
91250
91514
|
// src/mcp-server/tools/teamsGetTeamAccessRequest.ts
|
|
91251
|
-
var
|
|
91515
|
+
var args148, tool$teamsGetTeamAccessRequest;
|
|
91252
91516
|
var init_teamsGetTeamAccessRequest2 = __esm(() => {
|
|
91253
91517
|
init_teamsGetTeamAccessRequest();
|
|
91254
91518
|
init_getteamaccessrequestop();
|
|
91255
91519
|
init_tools();
|
|
91256
|
-
|
|
91520
|
+
args148 = {
|
|
91257
91521
|
request: GetTeamAccessRequestRequest$inboundSchema
|
|
91258
91522
|
};
|
|
91259
91523
|
tool$teamsGetTeamAccessRequest = {
|
|
@@ -91261,9 +91525,9 @@ var init_teamsGetTeamAccessRequest2 = __esm(() => {
|
|
|
91261
91525
|
description: `Get access request status
|
|
91262
91526
|
|
|
91263
91527
|
Check the status of a join request. It'll respond with a 404 if the request has been declined. If no \`userId\` path segment was provided, this endpoint will instead return the status of the authenticated user.`,
|
|
91264
|
-
args:
|
|
91265
|
-
tool: async (client,
|
|
91266
|
-
const [result, apiCall] = await teamsGetTeamAccessRequest(client,
|
|
91528
|
+
args: args148,
|
|
91529
|
+
tool: async (client, args149, ctx) => {
|
|
91530
|
+
const [result, apiCall] = await teamsGetTeamAccessRequest(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
91267
91531
|
if (!result.ok) {
|
|
91268
91532
|
return {
|
|
91269
91533
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -91563,9 +91827,9 @@ var init_getteammembersop = __esm(() => {
|
|
|
91563
91827
|
|
|
91564
91828
|
// src/funcs/teamsGetTeamMembers.ts
|
|
91565
91829
|
function teamsGetTeamMembers(client, request, options) {
|
|
91566
|
-
return new APIPromise($
|
|
91830
|
+
return new APIPromise($do150(client, request, options));
|
|
91567
91831
|
}
|
|
91568
|
-
async function $
|
|
91832
|
+
async function $do150(client, request, options) {
|
|
91569
91833
|
const parsed = safeParse(request, (value) => GetTeamMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
91570
91834
|
if (!parsed.ok) {
|
|
91571
91835
|
return [parsed, { status: "invalid" }];
|
|
@@ -91645,12 +91909,12 @@ var init_teamsGetTeamMembers = __esm(() => {
|
|
|
91645
91909
|
});
|
|
91646
91910
|
|
|
91647
91911
|
// src/mcp-server/tools/teamsGetTeamMembers.ts
|
|
91648
|
-
var
|
|
91912
|
+
var args149, tool$teamsGetTeamMembers;
|
|
91649
91913
|
var init_teamsGetTeamMembers2 = __esm(() => {
|
|
91650
91914
|
init_teamsGetTeamMembers();
|
|
91651
91915
|
init_getteammembersop();
|
|
91652
91916
|
init_tools();
|
|
91653
|
-
|
|
91917
|
+
args149 = {
|
|
91654
91918
|
request: GetTeamMembersRequest$inboundSchema
|
|
91655
91919
|
};
|
|
91656
91920
|
tool$teamsGetTeamMembers = {
|
|
@@ -91658,9 +91922,9 @@ var init_teamsGetTeamMembers2 = __esm(() => {
|
|
|
91658
91922
|
description: `List team members
|
|
91659
91923
|
|
|
91660
91924
|
Get a paginated list of team members for the provided team.`,
|
|
91661
|
-
args:
|
|
91662
|
-
tool: async (client,
|
|
91663
|
-
const [result, apiCall] = await teamsGetTeamMembers(client,
|
|
91925
|
+
args: args149,
|
|
91926
|
+
tool: async (client, args150, ctx) => {
|
|
91927
|
+
const [result, apiCall] = await teamsGetTeamMembers(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
91664
91928
|
if (!result.ok) {
|
|
91665
91929
|
return {
|
|
91666
91930
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -91935,9 +92199,9 @@ var init_getteamsop = __esm(() => {
|
|
|
91935
92199
|
|
|
91936
92200
|
// src/funcs/teamsGetTeams.ts
|
|
91937
92201
|
function teamsGetTeams(client, request, options) {
|
|
91938
|
-
return new APIPromise($
|
|
92202
|
+
return new APIPromise($do151(client, request, options));
|
|
91939
92203
|
}
|
|
91940
|
-
async function $
|
|
92204
|
+
async function $do151(client, request, options) {
|
|
91941
92205
|
const parsed = safeParse(request, (value) => GetTeamsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
91942
92206
|
if (!parsed.ok) {
|
|
91943
92207
|
return [parsed, { status: "invalid" }];
|
|
@@ -92012,12 +92276,12 @@ var init_teamsGetTeams = __esm(() => {
|
|
|
92012
92276
|
});
|
|
92013
92277
|
|
|
92014
92278
|
// src/mcp-server/tools/teamsGetTeams.ts
|
|
92015
|
-
var
|
|
92279
|
+
var args150, tool$teamsGetTeams;
|
|
92016
92280
|
var init_teamsGetTeams2 = __esm(() => {
|
|
92017
92281
|
init_teamsGetTeams();
|
|
92018
92282
|
init_getteamsop();
|
|
92019
92283
|
init_tools();
|
|
92020
|
-
|
|
92284
|
+
args150 = {
|
|
92021
92285
|
request: GetTeamsRequest$inboundSchema
|
|
92022
92286
|
};
|
|
92023
92287
|
tool$teamsGetTeams = {
|
|
@@ -92025,9 +92289,9 @@ var init_teamsGetTeams2 = __esm(() => {
|
|
|
92025
92289
|
description: `List all teams
|
|
92026
92290
|
|
|
92027
92291
|
Get a paginated list of all the Teams the authenticated User is a member of.`,
|
|
92028
|
-
args:
|
|
92029
|
-
tool: async (client,
|
|
92030
|
-
const [result, apiCall] = await teamsGetTeams(client,
|
|
92292
|
+
args: args150,
|
|
92293
|
+
tool: async (client, args151, ctx) => {
|
|
92294
|
+
const [result, apiCall] = await teamsGetTeams(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
92031
92295
|
if (!result.ok) {
|
|
92032
92296
|
return {
|
|
92033
92297
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -92259,9 +92523,9 @@ var init_inviteusertoteamop = __esm(() => {
|
|
|
92259
92523
|
|
|
92260
92524
|
// src/funcs/teamsInviteUserToTeam.ts
|
|
92261
92525
|
function teamsInviteUserToTeam(client, request, options) {
|
|
92262
|
-
return new APIPromise($
|
|
92526
|
+
return new APIPromise($do152(client, request, options));
|
|
92263
92527
|
}
|
|
92264
|
-
async function $
|
|
92528
|
+
async function $do152(client, request, options) {
|
|
92265
92529
|
const parsed = safeParse(request, (value) => InviteUserToTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
92266
92530
|
if (!parsed.ok) {
|
|
92267
92531
|
return [parsed, { status: "invalid" }];
|
|
@@ -92338,12 +92602,12 @@ var init_teamsInviteUserToTeam = __esm(() => {
|
|
|
92338
92602
|
});
|
|
92339
92603
|
|
|
92340
92604
|
// src/mcp-server/tools/teamsInviteUserToTeam.ts
|
|
92341
|
-
var
|
|
92605
|
+
var args151, tool$teamsInviteUserToTeam;
|
|
92342
92606
|
var init_teamsInviteUserToTeam2 = __esm(() => {
|
|
92343
92607
|
init_teamsInviteUserToTeam();
|
|
92344
92608
|
init_inviteusertoteamop();
|
|
92345
92609
|
init_tools();
|
|
92346
|
-
|
|
92610
|
+
args151 = {
|
|
92347
92611
|
request: InviteUserToTeamRequest$inboundSchema
|
|
92348
92612
|
};
|
|
92349
92613
|
tool$teamsInviteUserToTeam = {
|
|
@@ -92351,9 +92615,9 @@ var init_teamsInviteUserToTeam2 = __esm(() => {
|
|
|
92351
92615
|
description: `Invite a user
|
|
92352
92616
|
|
|
92353
92617
|
Invite a user to join the team specified in the URL. The authenticated user needs to be an \`OWNER\` in order to successfully invoke this endpoint. The user can be specified with an email or an ID. If both email and ID are provided, ID will take priority.`,
|
|
92354
|
-
args:
|
|
92355
|
-
tool: async (client,
|
|
92356
|
-
const [result, apiCall] = await teamsInviteUserToTeam(client,
|
|
92618
|
+
args: args151,
|
|
92619
|
+
tool: async (client, args152, ctx) => {
|
|
92620
|
+
const [result, apiCall] = await teamsInviteUserToTeam(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
92357
92621
|
if (!result.ok) {
|
|
92358
92622
|
return {
|
|
92359
92623
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -92421,9 +92685,9 @@ var init_jointeamop = __esm(() => {
|
|
|
92421
92685
|
|
|
92422
92686
|
// src/funcs/teamsJoinTeam.ts
|
|
92423
92687
|
function teamsJoinTeam(client, request, options) {
|
|
92424
|
-
return new APIPromise($
|
|
92688
|
+
return new APIPromise($do153(client, request, options));
|
|
92425
92689
|
}
|
|
92426
|
-
async function $
|
|
92690
|
+
async function $do153(client, request, options) {
|
|
92427
92691
|
const parsed = safeParse(request, (value) => JoinTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
92428
92692
|
if (!parsed.ok) {
|
|
92429
92693
|
return [parsed, { status: "invalid" }];
|
|
@@ -92500,12 +92764,12 @@ var init_teamsJoinTeam = __esm(() => {
|
|
|
92500
92764
|
});
|
|
92501
92765
|
|
|
92502
92766
|
// src/mcp-server/tools/teamsJoinTeam.ts
|
|
92503
|
-
var
|
|
92767
|
+
var args152, tool$teamsJoinTeam;
|
|
92504
92768
|
var init_teamsJoinTeam2 = __esm(() => {
|
|
92505
92769
|
init_teamsJoinTeam();
|
|
92506
92770
|
init_jointeamop();
|
|
92507
92771
|
init_tools();
|
|
92508
|
-
|
|
92772
|
+
args152 = {
|
|
92509
92773
|
request: JoinTeamRequest$inboundSchema
|
|
92510
92774
|
};
|
|
92511
92775
|
tool$teamsJoinTeam = {
|
|
@@ -92513,9 +92777,9 @@ var init_teamsJoinTeam2 = __esm(() => {
|
|
|
92513
92777
|
description: `Join a team
|
|
92514
92778
|
|
|
92515
92779
|
Join a team with a provided invite code or team ID.`,
|
|
92516
|
-
args:
|
|
92517
|
-
tool: async (client,
|
|
92518
|
-
const [result, apiCall] = await teamsJoinTeam(client,
|
|
92780
|
+
args: args152,
|
|
92781
|
+
tool: async (client, args153, ctx) => {
|
|
92782
|
+
const [result, apiCall] = await teamsJoinTeam(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
92519
92783
|
if (!result.ok) {
|
|
92520
92784
|
return {
|
|
92521
92785
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -92648,9 +92912,9 @@ var init_patchteamop = __esm(() => {
|
|
|
92648
92912
|
|
|
92649
92913
|
// src/funcs/teamsPatchTeam.ts
|
|
92650
92914
|
function teamsPatchTeam(client, request, options) {
|
|
92651
|
-
return new APIPromise($
|
|
92915
|
+
return new APIPromise($do154(client, request, options));
|
|
92652
92916
|
}
|
|
92653
|
-
async function $
|
|
92917
|
+
async function $do154(client, request, options) {
|
|
92654
92918
|
const parsed = safeParse(request, (value) => PatchTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
92655
92919
|
if (!parsed.ok) {
|
|
92656
92920
|
return [parsed, { status: "invalid" }];
|
|
@@ -92732,12 +92996,12 @@ var init_teamsPatchTeam = __esm(() => {
|
|
|
92732
92996
|
});
|
|
92733
92997
|
|
|
92734
92998
|
// src/mcp-server/tools/teamsPatchTeam.ts
|
|
92735
|
-
var
|
|
92999
|
+
var args153, tool$teamsPatchTeam;
|
|
92736
93000
|
var init_teamsPatchTeam2 = __esm(() => {
|
|
92737
93001
|
init_teamsPatchTeam();
|
|
92738
93002
|
init_patchteamop();
|
|
92739
93003
|
init_tools();
|
|
92740
|
-
|
|
93004
|
+
args153 = {
|
|
92741
93005
|
request: PatchTeamRequest$inboundSchema
|
|
92742
93006
|
};
|
|
92743
93007
|
tool$teamsPatchTeam = {
|
|
@@ -92745,9 +93009,9 @@ var init_teamsPatchTeam2 = __esm(() => {
|
|
|
92745
93009
|
description: `Update a Team
|
|
92746
93010
|
|
|
92747
93011
|
Update the information of a Team specified by the \`teamId\` parameter. The request body should contain the information that will be updated on the Team.`,
|
|
92748
|
-
args:
|
|
92749
|
-
tool: async (client,
|
|
92750
|
-
const [result, apiCall] = await teamsPatchTeam(client,
|
|
93012
|
+
args: args153,
|
|
93013
|
+
tool: async (client, args154, ctx) => {
|
|
93014
|
+
const [result, apiCall] = await teamsPatchTeam(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
92751
93015
|
if (!result.ok) {
|
|
92752
93016
|
return {
|
|
92753
93017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -92792,9 +93056,9 @@ var init_removeteammemberop = __esm(() => {
|
|
|
92792
93056
|
|
|
92793
93057
|
// src/funcs/teamsRemoveTeamMember.ts
|
|
92794
93058
|
function teamsRemoveTeamMember(client, request, options) {
|
|
92795
|
-
return new APIPromise($
|
|
93059
|
+
return new APIPromise($do155(client, request, options));
|
|
92796
93060
|
}
|
|
92797
|
-
async function $
|
|
93061
|
+
async function $do155(client, request, options) {
|
|
92798
93062
|
const parsed = safeParse(request, (value) => RemoveTeamMemberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
92799
93063
|
if (!parsed.ok) {
|
|
92800
93064
|
return [parsed, { status: "invalid" }];
|
|
@@ -92878,12 +93142,12 @@ var init_teamsRemoveTeamMember = __esm(() => {
|
|
|
92878
93142
|
});
|
|
92879
93143
|
|
|
92880
93144
|
// src/mcp-server/tools/teamsRemoveTeamMember.ts
|
|
92881
|
-
var
|
|
93145
|
+
var args154, tool$teamsRemoveTeamMember;
|
|
92882
93146
|
var init_teamsRemoveTeamMember2 = __esm(() => {
|
|
92883
93147
|
init_teamsRemoveTeamMember();
|
|
92884
93148
|
init_removeteammemberop();
|
|
92885
93149
|
init_tools();
|
|
92886
|
-
|
|
93150
|
+
args154 = {
|
|
92887
93151
|
request: RemoveTeamMemberRequest$inboundSchema
|
|
92888
93152
|
};
|
|
92889
93153
|
tool$teamsRemoveTeamMember = {
|
|
@@ -92891,9 +93155,9 @@ var init_teamsRemoveTeamMember2 = __esm(() => {
|
|
|
92891
93155
|
description: `Remove a Team Member
|
|
92892
93156
|
|
|
92893
93157
|
Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.`,
|
|
92894
|
-
args:
|
|
92895
|
-
tool: async (client,
|
|
92896
|
-
const [result, apiCall] = await teamsRemoveTeamMember(client,
|
|
93158
|
+
args: args154,
|
|
93159
|
+
tool: async (client, args155, ctx) => {
|
|
93160
|
+
const [result, apiCall] = await teamsRemoveTeamMember(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
92897
93161
|
if (!result.ok) {
|
|
92898
93162
|
return {
|
|
92899
93163
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -93095,9 +93359,9 @@ var init_requestaccesstoteamop = __esm(() => {
|
|
|
93095
93359
|
|
|
93096
93360
|
// src/funcs/teamsRequestAccessToTeam.ts
|
|
93097
93361
|
function teamsRequestAccessToTeam(client, request, options) {
|
|
93098
|
-
return new APIPromise($
|
|
93362
|
+
return new APIPromise($do156(client, request, options));
|
|
93099
93363
|
}
|
|
93100
|
-
async function $
|
|
93364
|
+
async function $do156(client, request, options) {
|
|
93101
93365
|
const parsed = safeParse(request, (value) => RequestAccessToTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
93102
93366
|
if (!parsed.ok) {
|
|
93103
93367
|
return [parsed, { status: "invalid" }];
|
|
@@ -93174,12 +93438,12 @@ var init_teamsRequestAccessToTeam = __esm(() => {
|
|
|
93174
93438
|
});
|
|
93175
93439
|
|
|
93176
93440
|
// src/mcp-server/tools/teamsRequestAccessToTeam.ts
|
|
93177
|
-
var
|
|
93441
|
+
var args155, tool$teamsRequestAccessToTeam;
|
|
93178
93442
|
var init_teamsRequestAccessToTeam2 = __esm(() => {
|
|
93179
93443
|
init_teamsRequestAccessToTeam();
|
|
93180
93444
|
init_requestaccesstoteamop();
|
|
93181
93445
|
init_tools();
|
|
93182
|
-
|
|
93446
|
+
args155 = {
|
|
93183
93447
|
request: RequestAccessToTeamRequest$inboundSchema
|
|
93184
93448
|
};
|
|
93185
93449
|
tool$teamsRequestAccessToTeam = {
|
|
@@ -93187,9 +93451,9 @@ var init_teamsRequestAccessToTeam2 = __esm(() => {
|
|
|
93187
93451
|
description: `Request access to a team
|
|
93188
93452
|
|
|
93189
93453
|
Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.`,
|
|
93190
|
-
args:
|
|
93191
|
-
tool: async (client,
|
|
93192
|
-
const [result, apiCall] = await teamsRequestAccessToTeam(client,
|
|
93454
|
+
args: args155,
|
|
93455
|
+
tool: async (client, args156, ctx) => {
|
|
93456
|
+
const [result, apiCall] = await teamsRequestAccessToTeam(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
93193
93457
|
if (!result.ok) {
|
|
93194
93458
|
return {
|
|
93195
93459
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -93292,9 +93556,9 @@ var init_updateteammemberop = __esm(() => {
|
|
|
93292
93556
|
|
|
93293
93557
|
// src/funcs/teamsUpdateTeamMember.ts
|
|
93294
93558
|
function teamsUpdateTeamMember(client, request, options) {
|
|
93295
|
-
return new APIPromise($
|
|
93559
|
+
return new APIPromise($do157(client, request, options));
|
|
93296
93560
|
}
|
|
93297
|
-
async function $
|
|
93561
|
+
async function $do157(client, request, options) {
|
|
93298
93562
|
const parsed = safeParse(request, (value) => UpdateTeamMemberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
93299
93563
|
if (!parsed.ok) {
|
|
93300
93564
|
return [parsed, { status: "invalid" }];
|
|
@@ -93375,12 +93639,12 @@ var init_teamsUpdateTeamMember = __esm(() => {
|
|
|
93375
93639
|
});
|
|
93376
93640
|
|
|
93377
93641
|
// src/mcp-server/tools/teamsUpdateTeamMember.ts
|
|
93378
|
-
var
|
|
93642
|
+
var args156, tool$teamsUpdateTeamMember;
|
|
93379
93643
|
var init_teamsUpdateTeamMember2 = __esm(() => {
|
|
93380
93644
|
init_teamsUpdateTeamMember();
|
|
93381
93645
|
init_updateteammemberop();
|
|
93382
93646
|
init_tools();
|
|
93383
|
-
|
|
93647
|
+
args156 = {
|
|
93384
93648
|
request: UpdateTeamMemberRequest$inboundSchema
|
|
93385
93649
|
};
|
|
93386
93650
|
tool$teamsUpdateTeamMember = {
|
|
@@ -93388,9 +93652,9 @@ var init_teamsUpdateTeamMember2 = __esm(() => {
|
|
|
93388
93652
|
description: `Update a Team Member
|
|
93389
93653
|
|
|
93390
93654
|
Update the membership of a Team Member on the Team specified by \`teamId\`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an \`OWNER\` of the Team.`,
|
|
93391
|
-
args:
|
|
93392
|
-
tool: async (client,
|
|
93393
|
-
const [result, apiCall] = await teamsUpdateTeamMember(client,
|
|
93655
|
+
args: args156,
|
|
93656
|
+
tool: async (client, args157, ctx) => {
|
|
93657
|
+
const [result, apiCall] = await teamsUpdateTeamMember(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
93394
93658
|
if (!result.ok) {
|
|
93395
93659
|
return {
|
|
93396
93660
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -93877,9 +94141,9 @@ var init_getauthuserop = __esm(() => {
|
|
|
93877
94141
|
|
|
93878
94142
|
// src/funcs/userGetAuthUser.ts
|
|
93879
94143
|
function userGetAuthUser(client, options) {
|
|
93880
|
-
return new APIPromise($
|
|
94144
|
+
return new APIPromise($do158(client, options));
|
|
93881
94145
|
}
|
|
93882
|
-
async function $
|
|
94146
|
+
async function $do158(client, options) {
|
|
93883
94147
|
const path = pathToFunc("/v2/user")();
|
|
93884
94148
|
const headers = new Headers(compactMap({
|
|
93885
94149
|
Accept: "application/json"
|
|
@@ -101027,9 +101291,9 @@ var init_listusereventsop = __esm(() => {
|
|
|
101027
101291
|
|
|
101028
101292
|
// src/funcs/userListUserEvents.ts
|
|
101029
101293
|
function userListUserEvents(client, request, options) {
|
|
101030
|
-
return new APIPromise($
|
|
101294
|
+
return new APIPromise($do159(client, request, options));
|
|
101031
101295
|
}
|
|
101032
|
-
async function $
|
|
101296
|
+
async function $do159(client, request, options) {
|
|
101033
101297
|
const parsed = safeParse(request, (value) => ListUserEventsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101034
101298
|
if (!parsed.ok) {
|
|
101035
101299
|
return [parsed, { status: "invalid" }];
|
|
@@ -101109,12 +101373,12 @@ var init_userListUserEvents = __esm(() => {
|
|
|
101109
101373
|
});
|
|
101110
101374
|
|
|
101111
101375
|
// src/mcp-server/tools/userListUserEvents.ts
|
|
101112
|
-
var
|
|
101376
|
+
var args157, tool$userListUserEvents;
|
|
101113
101377
|
var init_userListUserEvents2 = __esm(() => {
|
|
101114
101378
|
init_userListUserEvents();
|
|
101115
101379
|
init_listusereventsop();
|
|
101116
101380
|
init_tools();
|
|
101117
|
-
|
|
101381
|
+
args157 = {
|
|
101118
101382
|
request: ListUserEventsRequest$inboundSchema
|
|
101119
101383
|
};
|
|
101120
101384
|
tool$userListUserEvents = {
|
|
@@ -101122,9 +101386,9 @@ var init_userListUserEvents2 = __esm(() => {
|
|
|
101122
101386
|
description: `List User Events
|
|
101123
101387
|
|
|
101124
101388
|
Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the \`teamId\` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.`,
|
|
101125
|
-
args:
|
|
101126
|
-
tool: async (client,
|
|
101127
|
-
const [result, apiCall] = await userListUserEvents(client,
|
|
101389
|
+
args: args157,
|
|
101390
|
+
tool: async (client, args158, ctx) => {
|
|
101391
|
+
const [result, apiCall] = await userListUserEvents(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101128
101392
|
if (!result.ok) {
|
|
101129
101393
|
return {
|
|
101130
101394
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101181,9 +101445,9 @@ var init_requestdeleteop = __esm(() => {
|
|
|
101181
101445
|
|
|
101182
101446
|
// src/funcs/userRequestDelete.ts
|
|
101183
101447
|
function userRequestDelete(client, request, options) {
|
|
101184
|
-
return new APIPromise($
|
|
101448
|
+
return new APIPromise($do160(client, request, options));
|
|
101185
101449
|
}
|
|
101186
|
-
async function $
|
|
101450
|
+
async function $do160(client, request, options) {
|
|
101187
101451
|
const parsed = safeParse(request, (value) => RequestDeleteRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
101188
101452
|
if (!parsed.ok) {
|
|
101189
101453
|
return [parsed, { status: "invalid" }];
|
|
@@ -101253,12 +101517,12 @@ var init_userRequestDelete = __esm(() => {
|
|
|
101253
101517
|
});
|
|
101254
101518
|
|
|
101255
101519
|
// src/mcp-server/tools/userRequestDelete.ts
|
|
101256
|
-
var
|
|
101520
|
+
var args158, tool$userRequestDelete;
|
|
101257
101521
|
var init_userRequestDelete2 = __esm(() => {
|
|
101258
101522
|
init_userRequestDelete();
|
|
101259
101523
|
init_requestdeleteop();
|
|
101260
101524
|
init_tools();
|
|
101261
|
-
|
|
101525
|
+
args158 = {
|
|
101262
101526
|
request: RequestDeleteRequestBody$inboundSchema
|
|
101263
101527
|
};
|
|
101264
101528
|
tool$userRequestDelete = {
|
|
@@ -101266,9 +101530,9 @@ var init_userRequestDelete2 = __esm(() => {
|
|
|
101266
101530
|
description: `Delete User Account
|
|
101267
101531
|
|
|
101268
101532
|
Initiates the deletion process for the currently authenticated User, by sending a deletion confirmation email. The email contains a link that the user needs to visit in order to proceed with the deletion process.`,
|
|
101269
|
-
args:
|
|
101270
|
-
tool: async (client,
|
|
101271
|
-
const [result, apiCall] = await userRequestDelete(client,
|
|
101533
|
+
args: args158,
|
|
101534
|
+
tool: async (client, args159, ctx) => {
|
|
101535
|
+
const [result, apiCall] = await userRequestDelete(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101272
101536
|
if (!result.ok) {
|
|
101273
101537
|
return {
|
|
101274
101538
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101452,9 +101716,9 @@ var init_createwebhookop = __esm(() => {
|
|
|
101452
101716
|
|
|
101453
101717
|
// src/funcs/webhooksCreateWebhook.ts
|
|
101454
101718
|
function webhooksCreateWebhook(client, request, options) {
|
|
101455
|
-
return new APIPromise($
|
|
101719
|
+
return new APIPromise($do161(client, request, options));
|
|
101456
101720
|
}
|
|
101457
|
-
async function $
|
|
101721
|
+
async function $do161(client, request, options) {
|
|
101458
101722
|
const parsed = safeParse(request, (value) => CreateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101459
101723
|
if (!parsed.ok) {
|
|
101460
101724
|
return [parsed, { status: "invalid" }];
|
|
@@ -101529,12 +101793,12 @@ var init_webhooksCreateWebhook = __esm(() => {
|
|
|
101529
101793
|
});
|
|
101530
101794
|
|
|
101531
101795
|
// src/mcp-server/tools/webhooksCreateWebhook.ts
|
|
101532
|
-
var
|
|
101796
|
+
var args159, tool$webhooksCreateWebhook;
|
|
101533
101797
|
var init_webhooksCreateWebhook2 = __esm(() => {
|
|
101534
101798
|
init_webhooksCreateWebhook();
|
|
101535
101799
|
init_createwebhookop();
|
|
101536
101800
|
init_tools();
|
|
101537
|
-
|
|
101801
|
+
args159 = {
|
|
101538
101802
|
request: CreateWebhookRequest$inboundSchema
|
|
101539
101803
|
};
|
|
101540
101804
|
tool$webhooksCreateWebhook = {
|
|
@@ -101542,9 +101806,9 @@ var init_webhooksCreateWebhook2 = __esm(() => {
|
|
|
101542
101806
|
description: `Creates a webhook
|
|
101543
101807
|
|
|
101544
101808
|
Creates a webhook`,
|
|
101545
|
-
args:
|
|
101546
|
-
tool: async (client,
|
|
101547
|
-
const [result, apiCall] = await webhooksCreateWebhook(client,
|
|
101809
|
+
args: args159,
|
|
101810
|
+
tool: async (client, args160, ctx) => {
|
|
101811
|
+
const [result, apiCall] = await webhooksCreateWebhook(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101548
101812
|
if (!result.ok) {
|
|
101549
101813
|
return {
|
|
101550
101814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101579,9 +101843,9 @@ var init_deletewebhookop = __esm(() => {
|
|
|
101579
101843
|
|
|
101580
101844
|
// src/funcs/webhooksDeleteWebhook.ts
|
|
101581
101845
|
function webhooksDeleteWebhook(client, request, options) {
|
|
101582
|
-
return new APIPromise($
|
|
101846
|
+
return new APIPromise($do162(client, request, options));
|
|
101583
101847
|
}
|
|
101584
|
-
async function $
|
|
101848
|
+
async function $do162(client, request, options) {
|
|
101585
101849
|
const parsed = safeParse(request, (value) => DeleteWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101586
101850
|
if (!parsed.ok) {
|
|
101587
101851
|
return [parsed, { status: "invalid" }];
|
|
@@ -101662,12 +101926,12 @@ var init_webhooksDeleteWebhook = __esm(() => {
|
|
|
101662
101926
|
});
|
|
101663
101927
|
|
|
101664
101928
|
// src/mcp-server/tools/webhooksDeleteWebhook.ts
|
|
101665
|
-
var
|
|
101929
|
+
var args160, tool$webhooksDeleteWebhook;
|
|
101666
101930
|
var init_webhooksDeleteWebhook2 = __esm(() => {
|
|
101667
101931
|
init_webhooksDeleteWebhook();
|
|
101668
101932
|
init_deletewebhookop();
|
|
101669
101933
|
init_tools();
|
|
101670
|
-
|
|
101934
|
+
args160 = {
|
|
101671
101935
|
request: DeleteWebhookRequest$inboundSchema
|
|
101672
101936
|
};
|
|
101673
101937
|
tool$webhooksDeleteWebhook = {
|
|
@@ -101675,9 +101939,9 @@ var init_webhooksDeleteWebhook2 = __esm(() => {
|
|
|
101675
101939
|
description: `Deletes a webhook
|
|
101676
101940
|
|
|
101677
101941
|
Deletes a webhook`,
|
|
101678
|
-
args:
|
|
101679
|
-
tool: async (client,
|
|
101680
|
-
const [result, apiCall] = await webhooksDeleteWebhook(client,
|
|
101942
|
+
args: args160,
|
|
101943
|
+
tool: async (client, args161, ctx) => {
|
|
101944
|
+
const [result, apiCall] = await webhooksDeleteWebhook(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101681
101945
|
if (!result.ok) {
|
|
101682
101946
|
return {
|
|
101683
101947
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101784,9 +102048,9 @@ var init_getwebhookop = __esm(() => {
|
|
|
101784
102048
|
|
|
101785
102049
|
// src/funcs/webhooksGetWebhook.ts
|
|
101786
102050
|
function webhooksGetWebhook(client, request, options) {
|
|
101787
|
-
return new APIPromise($
|
|
102051
|
+
return new APIPromise($do163(client, request, options));
|
|
101788
102052
|
}
|
|
101789
|
-
async function $
|
|
102053
|
+
async function $do163(client, request, options) {
|
|
101790
102054
|
const parsed = safeParse(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101791
102055
|
if (!parsed.ok) {
|
|
101792
102056
|
return [parsed, { status: "invalid" }];
|
|
@@ -101866,12 +102130,12 @@ var init_webhooksGetWebhook = __esm(() => {
|
|
|
101866
102130
|
});
|
|
101867
102131
|
|
|
101868
102132
|
// src/mcp-server/tools/webhooksGetWebhook.ts
|
|
101869
|
-
var
|
|
102133
|
+
var args161, tool$webhooksGetWebhook;
|
|
101870
102134
|
var init_webhooksGetWebhook2 = __esm(() => {
|
|
101871
102135
|
init_webhooksGetWebhook();
|
|
101872
102136
|
init_getwebhookop();
|
|
101873
102137
|
init_tools();
|
|
101874
|
-
|
|
102138
|
+
args161 = {
|
|
101875
102139
|
request: GetWebhookRequest$inboundSchema
|
|
101876
102140
|
};
|
|
101877
102141
|
tool$webhooksGetWebhook = {
|
|
@@ -101879,9 +102143,9 @@ var init_webhooksGetWebhook2 = __esm(() => {
|
|
|
101879
102143
|
description: `Get a webhook
|
|
101880
102144
|
|
|
101881
102145
|
Get a webhook`,
|
|
101882
|
-
args:
|
|
101883
|
-
tool: async (client,
|
|
101884
|
-
const [result, apiCall] = await webhooksGetWebhook(client,
|
|
102146
|
+
args: args161,
|
|
102147
|
+
tool: async (client, args162, ctx) => {
|
|
102148
|
+
const [result, apiCall] = await webhooksGetWebhook(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101885
102149
|
if (!result.ok) {
|
|
101886
102150
|
return {
|
|
101887
102151
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102146,9 +102410,9 @@ var init_getwebhooksop = __esm(() => {
|
|
|
102146
102410
|
|
|
102147
102411
|
// src/funcs/webhooksGetWebhooks.ts
|
|
102148
102412
|
function webhooksGetWebhooks(client, request, options) {
|
|
102149
|
-
return new APIPromise($
|
|
102413
|
+
return new APIPromise($do164(client, request, options));
|
|
102150
102414
|
}
|
|
102151
|
-
async function $
|
|
102415
|
+
async function $do164(client, request, options) {
|
|
102152
102416
|
const parsed = safeParse(request, (value) => GetWebhooksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102153
102417
|
if (!parsed.ok) {
|
|
102154
102418
|
return [parsed, { status: "invalid" }];
|
|
@@ -102223,12 +102487,12 @@ var init_webhooksGetWebhooks = __esm(() => {
|
|
|
102223
102487
|
});
|
|
102224
102488
|
|
|
102225
102489
|
// src/mcp-server/tools/webhooksGetWebhooks.ts
|
|
102226
|
-
var
|
|
102490
|
+
var args162, tool$webhooksGetWebhooks;
|
|
102227
102491
|
var init_webhooksGetWebhooks2 = __esm(() => {
|
|
102228
102492
|
init_webhooksGetWebhooks();
|
|
102229
102493
|
init_getwebhooksop();
|
|
102230
102494
|
init_tools();
|
|
102231
|
-
|
|
102495
|
+
args162 = {
|
|
102232
102496
|
request: GetWebhooksRequest$inboundSchema
|
|
102233
102497
|
};
|
|
102234
102498
|
tool$webhooksGetWebhooks = {
|
|
@@ -102236,9 +102500,9 @@ var init_webhooksGetWebhooks2 = __esm(() => {
|
|
|
102236
102500
|
description: `Get a list of webhooks
|
|
102237
102501
|
|
|
102238
102502
|
Get a list of webhooks`,
|
|
102239
|
-
args:
|
|
102240
|
-
tool: async (client,
|
|
102241
|
-
const [result, apiCall] = await webhooksGetWebhooks(client,
|
|
102503
|
+
args: args162,
|
|
102504
|
+
tool: async (client, args163, ctx) => {
|
|
102505
|
+
const [result, apiCall] = await webhooksGetWebhooks(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102242
102506
|
if (!result.ok) {
|
|
102243
102507
|
return {
|
|
102244
102508
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102255,7 +102519,7 @@ Get a list of webhooks`,
|
|
|
102255
102519
|
function createMCPServer(deps) {
|
|
102256
102520
|
const server = new McpServer({
|
|
102257
102521
|
name: "Vercel",
|
|
102258
|
-
version: "1.6.
|
|
102522
|
+
version: "1.6.2"
|
|
102259
102523
|
});
|
|
102260
102524
|
const client = new VercelCore({
|
|
102261
102525
|
bearerToken: deps.bearerToken,
|
|
@@ -102312,6 +102576,8 @@ function createMCPServer(deps) {
|
|
|
102312
102576
|
tool(tool$projectsUpdateProjectProtectionBypass);
|
|
102313
102577
|
tool(tool$projectsRequestPromote);
|
|
102314
102578
|
tool(tool$projectsListPromoteAliases);
|
|
102579
|
+
tool(tool$projectsPauseProject);
|
|
102580
|
+
tool(tool$projectsUnpauseProject);
|
|
102315
102581
|
tool(tool$deploymentsGetDeploymentEvents);
|
|
102316
102582
|
tool(tool$deploymentsUpdateIntegrationDeploymentAction);
|
|
102317
102583
|
tool(tool$deploymentsGetDeployment);
|
|
@@ -102565,9 +102831,11 @@ var init_server2 = __esm(() => {
|
|
|
102565
102831
|
init_projectsGetProjectEnv2();
|
|
102566
102832
|
init_projectsGetProjects2();
|
|
102567
102833
|
init_projectsListPromoteAliases2();
|
|
102834
|
+
init_projectsPauseProject2();
|
|
102568
102835
|
init_projectsRemoveProjectDomain2();
|
|
102569
102836
|
init_projectsRemoveProjectEnv2();
|
|
102570
102837
|
init_projectsRequestPromote2();
|
|
102838
|
+
init_projectsUnpauseProject2();
|
|
102571
102839
|
init_projectsUpdateProject2();
|
|
102572
102840
|
init_projectsUpdateProjectDataCache2();
|
|
102573
102841
|
init_projectsUpdateProjectDomain2();
|
|
@@ -103790,7 +104058,7 @@ var routes = an({
|
|
|
103790
104058
|
var app = He(routes, {
|
|
103791
104059
|
name: "mcp",
|
|
103792
104060
|
versionInfo: {
|
|
103793
|
-
currentVersion: "1.6.
|
|
104061
|
+
currentVersion: "1.6.2"
|
|
103794
104062
|
}
|
|
103795
104063
|
});
|
|
103796
104064
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -103798,5 +104066,5 @@ export {
|
|
|
103798
104066
|
app
|
|
103799
104067
|
};
|
|
103800
104068
|
|
|
103801
|
-
//# debugId=
|
|
104069
|
+
//# debugId=1C0D709848679D0B64756E2164756E21
|
|
103802
104070
|
//# sourceMappingURL=mcp-server.js.map
|