@vercel/sdk 1.7.0 → 1.7.1
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/bin/mcp-server.js +258 -248
- package/bin/mcp-server.js.map +12 -12
- package/docs/sdks/deployments/README.md +6 -4
- package/docs/sdks/teams/README.md +2 -2
- package/esm/__tests__/deployments.test.js +2 -1
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +15 -13
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +34 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts +2 -2
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.js +2 -3
- package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/funcs/teamsGetTeam.d.ts +2 -3
- package/esm/funcs/teamsGetTeam.d.ts.map +1 -1
- package/esm/funcs/teamsGetTeam.js +2 -2
- package/esm/funcs/teamsGetTeam.js.map +1 -1
- package/esm/funcs/teamsPatchTeam.d.ts +2 -3
- package/esm/funcs/teamsPatchTeam.d.ts.map +1 -1
- package/esm/funcs/teamsPatchTeam.js +2 -2
- package/esm/funcs/teamsPatchTeam.js.map +1 -1
- 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.js +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +2 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.d.ts +31 -0
- package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.js +25 -0
- package/esm/models/getdeploymentfilecontentsop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +14 -14
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +6 -6
- package/esm/models/teamlimited.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/teams.d.ts +3 -6
- package/esm/sdk/teams.d.ts.map +1 -1
- package/esm/sdk/teams.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/deployments.test.ts +2 -1
- package/src/__tests__/projects.test.ts +15 -13
- package/src/__tests__/teams.test.ts +34 -2
- package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -5
- package/src/funcs/teamsGetTeam.ts +8 -5
- package/src/funcs/teamsPatchTeam.ts +8 -5
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +3 -1
- package/src/models/getdeploymentfilecontentsop.ts +69 -0
- package/src/models/teamlimited.ts +8 -8
- package/src/sdk/deployments.ts +5 -2
- package/src/sdk/teams.ts +3 -2
- package/vercel-spec.json +37 -14
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.7.
|
|
34194
|
-
genVersion: "2.598.
|
|
34195
|
-
userAgent: "speakeasy-sdk/typescript 1.7.
|
|
34193
|
+
sdkVersion: "1.7.1",
|
|
34194
|
+
genVersion: "2.598.22",
|
|
34195
|
+
userAgent: "speakeasy-sdk/typescript 1.7.1 2.598.22 0.0.1 @vercel/sdk"
|
|
34196
34196
|
};
|
|
34197
34197
|
});
|
|
34198
34198
|
|
|
@@ -51928,7 +51928,7 @@ Get the build logs of a deployment by deployment ID and build ID. It can work as
|
|
|
51928
51928
|
});
|
|
51929
51929
|
|
|
51930
51930
|
// src/models/getdeploymentfilecontentsop.ts
|
|
51931
|
-
var GetDeploymentFileContentsRequest$inboundSchema, GetDeploymentFileContentsRequest$outboundSchema, GetDeploymentFileContentsRequest$;
|
|
51931
|
+
var GetDeploymentFileContentsRequest$inboundSchema, GetDeploymentFileContentsRequest$outboundSchema, GetDeploymentFileContentsRequest$, GetDeploymentFileContentsResponseBody$inboundSchema, GetDeploymentFileContentsResponseBody$outboundSchema, GetDeploymentFileContentsResponseBody$;
|
|
51932
51932
|
var init_getdeploymentfilecontentsop = __esm(() => {
|
|
51933
51933
|
init_lib();
|
|
51934
51934
|
GetDeploymentFileContentsRequest$inboundSchema = objectType({
|
|
@@ -51949,6 +51949,16 @@ var init_getdeploymentfilecontentsop = __esm(() => {
|
|
|
51949
51949
|
GetDeploymentFileContentsRequest$.inboundSchema = GetDeploymentFileContentsRequest$inboundSchema;
|
|
51950
51950
|
GetDeploymentFileContentsRequest$.outboundSchema = GetDeploymentFileContentsRequest$outboundSchema;
|
|
51951
51951
|
})(GetDeploymentFileContentsRequest$ ||= {});
|
|
51952
|
+
GetDeploymentFileContentsResponseBody$inboundSchema = objectType({
|
|
51953
|
+
data: stringType()
|
|
51954
|
+
});
|
|
51955
|
+
GetDeploymentFileContentsResponseBody$outboundSchema = objectType({
|
|
51956
|
+
data: stringType()
|
|
51957
|
+
});
|
|
51958
|
+
((GetDeploymentFileContentsResponseBody$) => {
|
|
51959
|
+
GetDeploymentFileContentsResponseBody$.inboundSchema = GetDeploymentFileContentsResponseBody$inboundSchema;
|
|
51960
|
+
GetDeploymentFileContentsResponseBody$.outboundSchema = GetDeploymentFileContentsResponseBody$outboundSchema;
|
|
51961
|
+
})(GetDeploymentFileContentsResponseBody$ ||= {});
|
|
51952
51962
|
});
|
|
51953
51963
|
|
|
51954
51964
|
// src/funcs/deploymentsGetDeploymentFileContents.ts
|
|
@@ -52020,14 +52030,13 @@ async function $do43(client, request, options) {
|
|
|
52020
52030
|
const responseFields = {
|
|
52021
52031
|
HttpMeta: { Response: response, Request: req }
|
|
52022
52032
|
};
|
|
52023
|
-
const [result] = await match(jsonErr(400, VercelBadRequestError$inboundSchema), jsonErr(401, VercelForbiddenError$inboundSchema), jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
52033
|
+
const [result] = await match(json(200, GetDeploymentFileContentsResponseBody$inboundSchema), jsonErr(400, VercelBadRequestError$inboundSchema), jsonErr(401, VercelForbiddenError$inboundSchema), jsonErr(404, VercelNotFoundError$inboundSchema), fail([403, 410, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
52024
52034
|
if (!result.ok) {
|
|
52025
52035
|
return [result, { status: "complete", request: req, response }];
|
|
52026
52036
|
}
|
|
52027
52037
|
return [result, { status: "complete", request: req, response }];
|
|
52028
52038
|
}
|
|
52029
52039
|
var init_deploymentsGetDeploymentFileContents = __esm(() => {
|
|
52030
|
-
init_lib();
|
|
52031
52040
|
init_encodings();
|
|
52032
52041
|
init_matchers();
|
|
52033
52042
|
init_primitives();
|
|
@@ -52064,7 +52073,8 @@ Allows to retrieve the content of a file by supplying the file identifier and th
|
|
|
52064
52073
|
isError: true
|
|
52065
52074
|
};
|
|
52066
52075
|
}
|
|
52067
|
-
|
|
52076
|
+
const value = result.value;
|
|
52077
|
+
return formatResult(value, apiCall);
|
|
52068
52078
|
}
|
|
52069
52079
|
};
|
|
52070
52080
|
});
|
|
@@ -94894,6 +94904,240 @@ var init_getteamop = __esm(() => {
|
|
|
94894
94904
|
})(GetTeamRequest$ ||= {});
|
|
94895
94905
|
});
|
|
94896
94906
|
|
|
94907
|
+
// src/models/teamlimited.ts
|
|
94908
|
+
var LimitedBy, Role, TeamRoles, TeamPermissions, Origin, LimitedBy$inboundSchema, LimitedBy$outboundSchema, LimitedBy$, Connection$inboundSchema, Connection$outboundSchema, Connection$, Directory$inboundSchema, Directory$outboundSchema, Directory$, Saml$inboundSchema, Saml$outboundSchema, Saml$, Entitlements$inboundSchema, Entitlements$outboundSchema, Entitlements$, Role$inboundSchema, Role$outboundSchema, Role$, TeamRoles$inboundSchema, TeamRoles$outboundSchema, TeamRoles$, TeamPermissions$inboundSchema, TeamPermissions$outboundSchema, TeamPermissions$, Origin$inboundSchema, Origin$outboundSchema, Origin$, GitUserId$inboundSchema, GitUserId$outboundSchema, GitUserId$, JoinedFrom$inboundSchema, JoinedFrom$outboundSchema, JoinedFrom$, Membership$inboundSchema, Membership$outboundSchema, Membership$, TeamLimited$inboundSchema, TeamLimited$outboundSchema, TeamLimited$;
|
|
94909
|
+
var init_teamlimited = __esm(() => {
|
|
94910
|
+
init_lib();
|
|
94911
|
+
LimitedBy = {
|
|
94912
|
+
Scope: "scope",
|
|
94913
|
+
Mfa: "mfa"
|
|
94914
|
+
};
|
|
94915
|
+
Role = {
|
|
94916
|
+
Owner: "OWNER",
|
|
94917
|
+
Member: "MEMBER",
|
|
94918
|
+
Developer: "DEVELOPER",
|
|
94919
|
+
Security: "SECURITY",
|
|
94920
|
+
Billing: "BILLING",
|
|
94921
|
+
Viewer: "VIEWER",
|
|
94922
|
+
Contributor: "CONTRIBUTOR"
|
|
94923
|
+
};
|
|
94924
|
+
TeamRoles = {
|
|
94925
|
+
Owner: "OWNER",
|
|
94926
|
+
Member: "MEMBER",
|
|
94927
|
+
Developer: "DEVELOPER",
|
|
94928
|
+
Security: "SECURITY",
|
|
94929
|
+
Billing: "BILLING",
|
|
94930
|
+
Viewer: "VIEWER",
|
|
94931
|
+
Contributor: "CONTRIBUTOR"
|
|
94932
|
+
};
|
|
94933
|
+
TeamPermissions = {
|
|
94934
|
+
CreateProject: "CreateProject",
|
|
94935
|
+
FullProductionDeployment: "FullProductionDeployment",
|
|
94936
|
+
UsageViewer: "UsageViewer",
|
|
94937
|
+
EnvVariableManager: "EnvVariableManager",
|
|
94938
|
+
EnvironmentManager: "EnvironmentManager"
|
|
94939
|
+
};
|
|
94940
|
+
Origin = {
|
|
94941
|
+
Mail: "mail",
|
|
94942
|
+
Link: "link",
|
|
94943
|
+
Import: "import",
|
|
94944
|
+
Teams: "teams",
|
|
94945
|
+
Github: "github",
|
|
94946
|
+
Gitlab: "gitlab",
|
|
94947
|
+
Bitbucket: "bitbucket",
|
|
94948
|
+
Saml: "saml",
|
|
94949
|
+
Dsync: "dsync",
|
|
94950
|
+
Feedback: "feedback",
|
|
94951
|
+
OrganizationTeams: "organization-teams"
|
|
94952
|
+
};
|
|
94953
|
+
LimitedBy$inboundSchema = nativeEnumType(LimitedBy);
|
|
94954
|
+
LimitedBy$outboundSchema = LimitedBy$inboundSchema;
|
|
94955
|
+
((LimitedBy$) => {
|
|
94956
|
+
LimitedBy$.inboundSchema = LimitedBy$inboundSchema;
|
|
94957
|
+
LimitedBy$.outboundSchema = LimitedBy$outboundSchema;
|
|
94958
|
+
})(LimitedBy$ ||= {});
|
|
94959
|
+
Connection$inboundSchema = objectType({
|
|
94960
|
+
type: stringType(),
|
|
94961
|
+
status: stringType(),
|
|
94962
|
+
state: stringType(),
|
|
94963
|
+
connectedAt: numberType(),
|
|
94964
|
+
lastReceivedWebhookEvent: numberType().optional()
|
|
94965
|
+
});
|
|
94966
|
+
Connection$outboundSchema = objectType({
|
|
94967
|
+
type: stringType(),
|
|
94968
|
+
status: stringType(),
|
|
94969
|
+
state: stringType(),
|
|
94970
|
+
connectedAt: numberType(),
|
|
94971
|
+
lastReceivedWebhookEvent: numberType().optional()
|
|
94972
|
+
});
|
|
94973
|
+
((Connection$) => {
|
|
94974
|
+
Connection$.inboundSchema = Connection$inboundSchema;
|
|
94975
|
+
Connection$.outboundSchema = Connection$outboundSchema;
|
|
94976
|
+
})(Connection$ ||= {});
|
|
94977
|
+
Directory$inboundSchema = objectType({
|
|
94978
|
+
type: stringType(),
|
|
94979
|
+
state: stringType(),
|
|
94980
|
+
connectedAt: numberType(),
|
|
94981
|
+
lastReceivedWebhookEvent: numberType().optional()
|
|
94982
|
+
});
|
|
94983
|
+
Directory$outboundSchema = objectType({
|
|
94984
|
+
type: stringType(),
|
|
94985
|
+
state: stringType(),
|
|
94986
|
+
connectedAt: numberType(),
|
|
94987
|
+
lastReceivedWebhookEvent: numberType().optional()
|
|
94988
|
+
});
|
|
94989
|
+
((Directory$) => {
|
|
94990
|
+
Directory$.inboundSchema = Directory$inboundSchema;
|
|
94991
|
+
Directory$.outboundSchema = Directory$outboundSchema;
|
|
94992
|
+
})(Directory$ ||= {});
|
|
94993
|
+
Saml$inboundSchema = objectType({
|
|
94994
|
+
connection: lazyType(() => Connection$inboundSchema).optional(),
|
|
94995
|
+
directory: lazyType(() => Directory$inboundSchema).optional(),
|
|
94996
|
+
enforced: booleanType()
|
|
94997
|
+
});
|
|
94998
|
+
Saml$outboundSchema = objectType({
|
|
94999
|
+
connection: lazyType(() => Connection$outboundSchema).optional(),
|
|
95000
|
+
directory: lazyType(() => Directory$outboundSchema).optional(),
|
|
95001
|
+
enforced: booleanType()
|
|
95002
|
+
});
|
|
95003
|
+
((Saml$) => {
|
|
95004
|
+
Saml$.inboundSchema = Saml$inboundSchema;
|
|
95005
|
+
Saml$.outboundSchema = Saml$outboundSchema;
|
|
95006
|
+
})(Saml$ ||= {});
|
|
95007
|
+
Entitlements$inboundSchema = objectType({
|
|
95008
|
+
entitlement: stringType()
|
|
95009
|
+
});
|
|
95010
|
+
Entitlements$outboundSchema = objectType({
|
|
95011
|
+
entitlement: stringType()
|
|
95012
|
+
});
|
|
95013
|
+
((Entitlements$) => {
|
|
95014
|
+
Entitlements$.inboundSchema = Entitlements$inboundSchema;
|
|
95015
|
+
Entitlements$.outboundSchema = Entitlements$outboundSchema;
|
|
95016
|
+
})(Entitlements$ ||= {});
|
|
95017
|
+
Role$inboundSchema = nativeEnumType(Role);
|
|
95018
|
+
Role$outboundSchema = Role$inboundSchema;
|
|
95019
|
+
((Role$) => {
|
|
95020
|
+
Role$.inboundSchema = Role$inboundSchema;
|
|
95021
|
+
Role$.outboundSchema = Role$outboundSchema;
|
|
95022
|
+
})(Role$ ||= {});
|
|
95023
|
+
TeamRoles$inboundSchema = nativeEnumType(TeamRoles);
|
|
95024
|
+
TeamRoles$outboundSchema = TeamRoles$inboundSchema;
|
|
95025
|
+
((TeamRoles$) => {
|
|
95026
|
+
TeamRoles$.inboundSchema = TeamRoles$inboundSchema;
|
|
95027
|
+
TeamRoles$.outboundSchema = TeamRoles$outboundSchema;
|
|
95028
|
+
})(TeamRoles$ ||= {});
|
|
95029
|
+
TeamPermissions$inboundSchema = nativeEnumType(TeamPermissions);
|
|
95030
|
+
TeamPermissions$outboundSchema = TeamPermissions$inboundSchema;
|
|
95031
|
+
((TeamPermissions$) => {
|
|
95032
|
+
TeamPermissions$.inboundSchema = TeamPermissions$inboundSchema;
|
|
95033
|
+
TeamPermissions$.outboundSchema = TeamPermissions$outboundSchema;
|
|
95034
|
+
})(TeamPermissions$ ||= {});
|
|
95035
|
+
Origin$inboundSchema = nativeEnumType(Origin);
|
|
95036
|
+
Origin$outboundSchema = Origin$inboundSchema;
|
|
95037
|
+
((Origin$) => {
|
|
95038
|
+
Origin$.inboundSchema = Origin$inboundSchema;
|
|
95039
|
+
Origin$.outboundSchema = Origin$outboundSchema;
|
|
95040
|
+
})(Origin$ ||= {});
|
|
95041
|
+
GitUserId$inboundSchema = unionType([stringType(), numberType()]);
|
|
95042
|
+
GitUserId$outboundSchema = unionType([stringType(), numberType()]);
|
|
95043
|
+
((GitUserId$) => {
|
|
95044
|
+
GitUserId$.inboundSchema = GitUserId$inboundSchema;
|
|
95045
|
+
GitUserId$.outboundSchema = GitUserId$outboundSchema;
|
|
95046
|
+
})(GitUserId$ ||= {});
|
|
95047
|
+
JoinedFrom$inboundSchema = objectType({
|
|
95048
|
+
origin: Origin$inboundSchema,
|
|
95049
|
+
commitId: stringType().optional(),
|
|
95050
|
+
repoId: stringType().optional(),
|
|
95051
|
+
repoPath: stringType().optional(),
|
|
95052
|
+
gitUserId: unionType([stringType(), numberType()]).optional(),
|
|
95053
|
+
gitUserLogin: stringType().optional(),
|
|
95054
|
+
ssoUserId: stringType().optional(),
|
|
95055
|
+
ssoConnectedAt: numberType().optional(),
|
|
95056
|
+
idpUserId: stringType().optional(),
|
|
95057
|
+
dsyncUserId: stringType().optional(),
|
|
95058
|
+
dsyncConnectedAt: numberType().optional()
|
|
95059
|
+
});
|
|
95060
|
+
JoinedFrom$outboundSchema = objectType({
|
|
95061
|
+
origin: Origin$outboundSchema,
|
|
95062
|
+
commitId: stringType().optional(),
|
|
95063
|
+
repoId: stringType().optional(),
|
|
95064
|
+
repoPath: stringType().optional(),
|
|
95065
|
+
gitUserId: unionType([stringType(), numberType()]).optional(),
|
|
95066
|
+
gitUserLogin: stringType().optional(),
|
|
95067
|
+
ssoUserId: stringType().optional(),
|
|
95068
|
+
ssoConnectedAt: numberType().optional(),
|
|
95069
|
+
idpUserId: stringType().optional(),
|
|
95070
|
+
dsyncUserId: stringType().optional(),
|
|
95071
|
+
dsyncConnectedAt: numberType().optional()
|
|
95072
|
+
});
|
|
95073
|
+
((JoinedFrom$) => {
|
|
95074
|
+
JoinedFrom$.inboundSchema = JoinedFrom$inboundSchema;
|
|
95075
|
+
JoinedFrom$.outboundSchema = JoinedFrom$outboundSchema;
|
|
95076
|
+
})(JoinedFrom$ ||= {});
|
|
95077
|
+
Membership$inboundSchema = objectType({
|
|
95078
|
+
uid: stringType().optional(),
|
|
95079
|
+
entitlements: arrayType(lazyType(() => Entitlements$inboundSchema)).optional(),
|
|
95080
|
+
teamId: stringType().optional(),
|
|
95081
|
+
confirmed: booleanType(),
|
|
95082
|
+
confirmedAt: numberType(),
|
|
95083
|
+
accessRequestedAt: numberType().optional(),
|
|
95084
|
+
role: Role$inboundSchema,
|
|
95085
|
+
teamRoles: arrayType(TeamRoles$inboundSchema).optional(),
|
|
95086
|
+
teamPermissions: arrayType(TeamPermissions$inboundSchema).optional(),
|
|
95087
|
+
createdAt: numberType(),
|
|
95088
|
+
created: numberType(),
|
|
95089
|
+
joinedFrom: lazyType(() => JoinedFrom$inboundSchema).optional()
|
|
95090
|
+
});
|
|
95091
|
+
Membership$outboundSchema = objectType({
|
|
95092
|
+
uid: stringType().optional(),
|
|
95093
|
+
entitlements: arrayType(lazyType(() => Entitlements$outboundSchema)).optional(),
|
|
95094
|
+
teamId: stringType().optional(),
|
|
95095
|
+
confirmed: booleanType(),
|
|
95096
|
+
confirmedAt: numberType(),
|
|
95097
|
+
accessRequestedAt: numberType().optional(),
|
|
95098
|
+
role: Role$outboundSchema,
|
|
95099
|
+
teamRoles: arrayType(TeamRoles$outboundSchema).optional(),
|
|
95100
|
+
teamPermissions: arrayType(TeamPermissions$outboundSchema).optional(),
|
|
95101
|
+
createdAt: numberType(),
|
|
95102
|
+
created: numberType(),
|
|
95103
|
+
joinedFrom: lazyType(() => JoinedFrom$outboundSchema).optional()
|
|
95104
|
+
});
|
|
95105
|
+
((Membership$) => {
|
|
95106
|
+
Membership$.inboundSchema = Membership$inboundSchema;
|
|
95107
|
+
Membership$.outboundSchema = Membership$outboundSchema;
|
|
95108
|
+
})(Membership$ ||= {});
|
|
95109
|
+
TeamLimited$inboundSchema = objectType({
|
|
95110
|
+
limited: booleanType(),
|
|
95111
|
+
limitedBy: arrayType(LimitedBy$inboundSchema),
|
|
95112
|
+
saml: lazyType(() => Saml$inboundSchema).optional(),
|
|
95113
|
+
mfaEnforced: booleanType().optional(),
|
|
95114
|
+
id: stringType(),
|
|
95115
|
+
slug: stringType(),
|
|
95116
|
+
name: nullableType(stringType()),
|
|
95117
|
+
avatar: nullableType(stringType()),
|
|
95118
|
+
membership: lazyType(() => Membership$inboundSchema),
|
|
95119
|
+
created: stringType(),
|
|
95120
|
+
createdAt: numberType()
|
|
95121
|
+
});
|
|
95122
|
+
TeamLimited$outboundSchema = objectType({
|
|
95123
|
+
limited: booleanType(),
|
|
95124
|
+
limitedBy: arrayType(LimitedBy$outboundSchema),
|
|
95125
|
+
saml: lazyType(() => Saml$outboundSchema).optional(),
|
|
95126
|
+
mfaEnforced: booleanType().optional(),
|
|
95127
|
+
id: stringType(),
|
|
95128
|
+
slug: stringType(),
|
|
95129
|
+
name: nullableType(stringType()),
|
|
95130
|
+
avatar: nullableType(stringType()),
|
|
95131
|
+
membership: lazyType(() => Membership$outboundSchema),
|
|
95132
|
+
created: stringType(),
|
|
95133
|
+
createdAt: numberType()
|
|
95134
|
+
});
|
|
95135
|
+
((TeamLimited$) => {
|
|
95136
|
+
TeamLimited$.inboundSchema = TeamLimited$inboundSchema;
|
|
95137
|
+
TeamLimited$.outboundSchema = TeamLimited$outboundSchema;
|
|
95138
|
+
})(TeamLimited$ ||= {});
|
|
95139
|
+
});
|
|
95140
|
+
|
|
94897
95141
|
// src/funcs/teamsGetTeam.ts
|
|
94898
95142
|
function teamsGetTeam(client, request, options) {
|
|
94899
95143
|
return new APIPromise($do146(client, request, options));
|
|
@@ -94957,14 +95201,13 @@ async function $do146(client, request, options) {
|
|
|
94957
95201
|
const responseFields = {
|
|
94958
95202
|
HttpMeta: { Response: response, Request: req }
|
|
94959
95203
|
};
|
|
94960
|
-
const [result] = await match(json(200,
|
|
95204
|
+
const [result] = await match(json(200, TeamLimited$inboundSchema), jsonErr(400, VercelBadRequestError$inboundSchema), jsonErr(401, VercelForbiddenError$inboundSchema), jsonErr(404, VercelNotFoundError$inboundSchema), fail([403, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
94961
95205
|
if (!result.ok) {
|
|
94962
95206
|
return [result, { status: "complete", request: req, response }];
|
|
94963
95207
|
}
|
|
94964
95208
|
return [result, { status: "complete", request: req, response }];
|
|
94965
95209
|
}
|
|
94966
95210
|
var init_teamsGetTeam = __esm(() => {
|
|
94967
|
-
init_lib();
|
|
94968
95211
|
init_encodings();
|
|
94969
95212
|
init_matchers();
|
|
94970
95213
|
init_primitives();
|
|
@@ -94972,6 +95215,7 @@ var init_teamsGetTeam = __esm(() => {
|
|
|
94972
95215
|
init_security();
|
|
94973
95216
|
init_url();
|
|
94974
95217
|
init_getteamop();
|
|
95218
|
+
init_teamlimited();
|
|
94975
95219
|
init_vercelbadrequesterror();
|
|
94976
95220
|
init_vercelforbiddenerror();
|
|
94977
95221
|
init_vercelnotfounderror();
|
|
@@ -95643,240 +95887,6 @@ Get a paginated list of team members for the provided team.`,
|
|
|
95643
95887
|
};
|
|
95644
95888
|
});
|
|
95645
95889
|
|
|
95646
|
-
// src/models/teamlimited.ts
|
|
95647
|
-
var LimitedBy, Role, TeamRoles, TeamPermissions, Origin, LimitedBy$inboundSchema, LimitedBy$outboundSchema, LimitedBy$, Connection$inboundSchema, Connection$outboundSchema, Connection$, Directory$inboundSchema, Directory$outboundSchema, Directory$, Saml$inboundSchema, Saml$outboundSchema, Saml$, Entitlements$inboundSchema, Entitlements$outboundSchema, Entitlements$, Role$inboundSchema, Role$outboundSchema, Role$, TeamRoles$inboundSchema, TeamRoles$outboundSchema, TeamRoles$, TeamPermissions$inboundSchema, TeamPermissions$outboundSchema, TeamPermissions$, Origin$inboundSchema, Origin$outboundSchema, Origin$, GitUserId$inboundSchema, GitUserId$outboundSchema, GitUserId$, JoinedFrom$inboundSchema, JoinedFrom$outboundSchema, JoinedFrom$, Membership$inboundSchema, Membership$outboundSchema, Membership$, TeamLimited$inboundSchema, TeamLimited$outboundSchema, TeamLimited$;
|
|
95648
|
-
var init_teamlimited = __esm(() => {
|
|
95649
|
-
init_lib();
|
|
95650
|
-
LimitedBy = {
|
|
95651
|
-
Scope: "scope",
|
|
95652
|
-
Mfa: "mfa"
|
|
95653
|
-
};
|
|
95654
|
-
Role = {
|
|
95655
|
-
Owner: "OWNER",
|
|
95656
|
-
Member: "MEMBER",
|
|
95657
|
-
Developer: "DEVELOPER",
|
|
95658
|
-
Security: "SECURITY",
|
|
95659
|
-
Billing: "BILLING",
|
|
95660
|
-
Viewer: "VIEWER",
|
|
95661
|
-
Contributor: "CONTRIBUTOR"
|
|
95662
|
-
};
|
|
95663
|
-
TeamRoles = {
|
|
95664
|
-
Owner: "OWNER",
|
|
95665
|
-
Member: "MEMBER",
|
|
95666
|
-
Developer: "DEVELOPER",
|
|
95667
|
-
Security: "SECURITY",
|
|
95668
|
-
Billing: "BILLING",
|
|
95669
|
-
Viewer: "VIEWER",
|
|
95670
|
-
Contributor: "CONTRIBUTOR"
|
|
95671
|
-
};
|
|
95672
|
-
TeamPermissions = {
|
|
95673
|
-
CreateProject: "CreateProject",
|
|
95674
|
-
FullProductionDeployment: "FullProductionDeployment",
|
|
95675
|
-
UsageViewer: "UsageViewer",
|
|
95676
|
-
EnvVariableManager: "EnvVariableManager",
|
|
95677
|
-
EnvironmentManager: "EnvironmentManager"
|
|
95678
|
-
};
|
|
95679
|
-
Origin = {
|
|
95680
|
-
Link: "link",
|
|
95681
|
-
Saml: "saml",
|
|
95682
|
-
Github: "github",
|
|
95683
|
-
Gitlab: "gitlab",
|
|
95684
|
-
Bitbucket: "bitbucket",
|
|
95685
|
-
Mail: "mail",
|
|
95686
|
-
Import: "import",
|
|
95687
|
-
Teams: "teams",
|
|
95688
|
-
Dsync: "dsync",
|
|
95689
|
-
Feedback: "feedback",
|
|
95690
|
-
OrganizationTeams: "organization-teams"
|
|
95691
|
-
};
|
|
95692
|
-
LimitedBy$inboundSchema = nativeEnumType(LimitedBy);
|
|
95693
|
-
LimitedBy$outboundSchema = LimitedBy$inboundSchema;
|
|
95694
|
-
((LimitedBy$) => {
|
|
95695
|
-
LimitedBy$.inboundSchema = LimitedBy$inboundSchema;
|
|
95696
|
-
LimitedBy$.outboundSchema = LimitedBy$outboundSchema;
|
|
95697
|
-
})(LimitedBy$ ||= {});
|
|
95698
|
-
Connection$inboundSchema = objectType({
|
|
95699
|
-
type: stringType(),
|
|
95700
|
-
status: stringType(),
|
|
95701
|
-
state: stringType(),
|
|
95702
|
-
connectedAt: numberType(),
|
|
95703
|
-
lastReceivedWebhookEvent: numberType().optional()
|
|
95704
|
-
});
|
|
95705
|
-
Connection$outboundSchema = objectType({
|
|
95706
|
-
type: stringType(),
|
|
95707
|
-
status: stringType(),
|
|
95708
|
-
state: stringType(),
|
|
95709
|
-
connectedAt: numberType(),
|
|
95710
|
-
lastReceivedWebhookEvent: numberType().optional()
|
|
95711
|
-
});
|
|
95712
|
-
((Connection$) => {
|
|
95713
|
-
Connection$.inboundSchema = Connection$inboundSchema;
|
|
95714
|
-
Connection$.outboundSchema = Connection$outboundSchema;
|
|
95715
|
-
})(Connection$ ||= {});
|
|
95716
|
-
Directory$inboundSchema = objectType({
|
|
95717
|
-
type: stringType(),
|
|
95718
|
-
state: stringType(),
|
|
95719
|
-
connectedAt: numberType(),
|
|
95720
|
-
lastReceivedWebhookEvent: numberType().optional()
|
|
95721
|
-
});
|
|
95722
|
-
Directory$outboundSchema = objectType({
|
|
95723
|
-
type: stringType(),
|
|
95724
|
-
state: stringType(),
|
|
95725
|
-
connectedAt: numberType(),
|
|
95726
|
-
lastReceivedWebhookEvent: numberType().optional()
|
|
95727
|
-
});
|
|
95728
|
-
((Directory$) => {
|
|
95729
|
-
Directory$.inboundSchema = Directory$inboundSchema;
|
|
95730
|
-
Directory$.outboundSchema = Directory$outboundSchema;
|
|
95731
|
-
})(Directory$ ||= {});
|
|
95732
|
-
Saml$inboundSchema = objectType({
|
|
95733
|
-
connection: lazyType(() => Connection$inboundSchema).optional(),
|
|
95734
|
-
directory: lazyType(() => Directory$inboundSchema).optional(),
|
|
95735
|
-
enforced: booleanType()
|
|
95736
|
-
});
|
|
95737
|
-
Saml$outboundSchema = objectType({
|
|
95738
|
-
connection: lazyType(() => Connection$outboundSchema).optional(),
|
|
95739
|
-
directory: lazyType(() => Directory$outboundSchema).optional(),
|
|
95740
|
-
enforced: booleanType()
|
|
95741
|
-
});
|
|
95742
|
-
((Saml$) => {
|
|
95743
|
-
Saml$.inboundSchema = Saml$inboundSchema;
|
|
95744
|
-
Saml$.outboundSchema = Saml$outboundSchema;
|
|
95745
|
-
})(Saml$ ||= {});
|
|
95746
|
-
Entitlements$inboundSchema = objectType({
|
|
95747
|
-
entitlement: stringType()
|
|
95748
|
-
});
|
|
95749
|
-
Entitlements$outboundSchema = objectType({
|
|
95750
|
-
entitlement: stringType()
|
|
95751
|
-
});
|
|
95752
|
-
((Entitlements$) => {
|
|
95753
|
-
Entitlements$.inboundSchema = Entitlements$inboundSchema;
|
|
95754
|
-
Entitlements$.outboundSchema = Entitlements$outboundSchema;
|
|
95755
|
-
})(Entitlements$ ||= {});
|
|
95756
|
-
Role$inboundSchema = nativeEnumType(Role);
|
|
95757
|
-
Role$outboundSchema = Role$inboundSchema;
|
|
95758
|
-
((Role$) => {
|
|
95759
|
-
Role$.inboundSchema = Role$inboundSchema;
|
|
95760
|
-
Role$.outboundSchema = Role$outboundSchema;
|
|
95761
|
-
})(Role$ ||= {});
|
|
95762
|
-
TeamRoles$inboundSchema = nativeEnumType(TeamRoles);
|
|
95763
|
-
TeamRoles$outboundSchema = TeamRoles$inboundSchema;
|
|
95764
|
-
((TeamRoles$) => {
|
|
95765
|
-
TeamRoles$.inboundSchema = TeamRoles$inboundSchema;
|
|
95766
|
-
TeamRoles$.outboundSchema = TeamRoles$outboundSchema;
|
|
95767
|
-
})(TeamRoles$ ||= {});
|
|
95768
|
-
TeamPermissions$inboundSchema = nativeEnumType(TeamPermissions);
|
|
95769
|
-
TeamPermissions$outboundSchema = TeamPermissions$inboundSchema;
|
|
95770
|
-
((TeamPermissions$) => {
|
|
95771
|
-
TeamPermissions$.inboundSchema = TeamPermissions$inboundSchema;
|
|
95772
|
-
TeamPermissions$.outboundSchema = TeamPermissions$outboundSchema;
|
|
95773
|
-
})(TeamPermissions$ ||= {});
|
|
95774
|
-
Origin$inboundSchema = nativeEnumType(Origin);
|
|
95775
|
-
Origin$outboundSchema = Origin$inboundSchema;
|
|
95776
|
-
((Origin$) => {
|
|
95777
|
-
Origin$.inboundSchema = Origin$inboundSchema;
|
|
95778
|
-
Origin$.outboundSchema = Origin$outboundSchema;
|
|
95779
|
-
})(Origin$ ||= {});
|
|
95780
|
-
GitUserId$inboundSchema = unionType([stringType(), numberType()]);
|
|
95781
|
-
GitUserId$outboundSchema = unionType([stringType(), numberType()]);
|
|
95782
|
-
((GitUserId$) => {
|
|
95783
|
-
GitUserId$.inboundSchema = GitUserId$inboundSchema;
|
|
95784
|
-
GitUserId$.outboundSchema = GitUserId$outboundSchema;
|
|
95785
|
-
})(GitUserId$ ||= {});
|
|
95786
|
-
JoinedFrom$inboundSchema = objectType({
|
|
95787
|
-
origin: Origin$inboundSchema,
|
|
95788
|
-
commitId: stringType().optional(),
|
|
95789
|
-
repoId: stringType().optional(),
|
|
95790
|
-
repoPath: stringType().optional(),
|
|
95791
|
-
gitUserId: unionType([stringType(), numberType()]).optional(),
|
|
95792
|
-
gitUserLogin: stringType().optional(),
|
|
95793
|
-
ssoUserId: stringType().optional(),
|
|
95794
|
-
ssoConnectedAt: numberType().optional(),
|
|
95795
|
-
idpUserId: stringType().optional(),
|
|
95796
|
-
dsyncUserId: stringType().optional(),
|
|
95797
|
-
dsyncConnectedAt: numberType().optional()
|
|
95798
|
-
});
|
|
95799
|
-
JoinedFrom$outboundSchema = objectType({
|
|
95800
|
-
origin: Origin$outboundSchema,
|
|
95801
|
-
commitId: stringType().optional(),
|
|
95802
|
-
repoId: stringType().optional(),
|
|
95803
|
-
repoPath: stringType().optional(),
|
|
95804
|
-
gitUserId: unionType([stringType(), numberType()]).optional(),
|
|
95805
|
-
gitUserLogin: stringType().optional(),
|
|
95806
|
-
ssoUserId: stringType().optional(),
|
|
95807
|
-
ssoConnectedAt: numberType().optional(),
|
|
95808
|
-
idpUserId: stringType().optional(),
|
|
95809
|
-
dsyncUserId: stringType().optional(),
|
|
95810
|
-
dsyncConnectedAt: numberType().optional()
|
|
95811
|
-
});
|
|
95812
|
-
((JoinedFrom$) => {
|
|
95813
|
-
JoinedFrom$.inboundSchema = JoinedFrom$inboundSchema;
|
|
95814
|
-
JoinedFrom$.outboundSchema = JoinedFrom$outboundSchema;
|
|
95815
|
-
})(JoinedFrom$ ||= {});
|
|
95816
|
-
Membership$inboundSchema = objectType({
|
|
95817
|
-
uid: stringType().optional(),
|
|
95818
|
-
entitlements: arrayType(lazyType(() => Entitlements$inboundSchema)).optional(),
|
|
95819
|
-
confirmed: booleanType(),
|
|
95820
|
-
confirmedAt: numberType(),
|
|
95821
|
-
accessRequestedAt: numberType().optional(),
|
|
95822
|
-
role: Role$inboundSchema,
|
|
95823
|
-
teamRoles: arrayType(TeamRoles$inboundSchema).optional(),
|
|
95824
|
-
teamPermissions: arrayType(TeamPermissions$inboundSchema).optional(),
|
|
95825
|
-
teamId: stringType().optional(),
|
|
95826
|
-
createdAt: numberType(),
|
|
95827
|
-
created: numberType(),
|
|
95828
|
-
joinedFrom: lazyType(() => JoinedFrom$inboundSchema).optional()
|
|
95829
|
-
});
|
|
95830
|
-
Membership$outboundSchema = objectType({
|
|
95831
|
-
uid: stringType().optional(),
|
|
95832
|
-
entitlements: arrayType(lazyType(() => Entitlements$outboundSchema)).optional(),
|
|
95833
|
-
confirmed: booleanType(),
|
|
95834
|
-
confirmedAt: numberType(),
|
|
95835
|
-
accessRequestedAt: numberType().optional(),
|
|
95836
|
-
role: Role$outboundSchema,
|
|
95837
|
-
teamRoles: arrayType(TeamRoles$outboundSchema).optional(),
|
|
95838
|
-
teamPermissions: arrayType(TeamPermissions$outboundSchema).optional(),
|
|
95839
|
-
teamId: stringType().optional(),
|
|
95840
|
-
createdAt: numberType(),
|
|
95841
|
-
created: numberType(),
|
|
95842
|
-
joinedFrom: lazyType(() => JoinedFrom$outboundSchema).optional()
|
|
95843
|
-
});
|
|
95844
|
-
((Membership$) => {
|
|
95845
|
-
Membership$.inboundSchema = Membership$inboundSchema;
|
|
95846
|
-
Membership$.outboundSchema = Membership$outboundSchema;
|
|
95847
|
-
})(Membership$ ||= {});
|
|
95848
|
-
TeamLimited$inboundSchema = objectType({
|
|
95849
|
-
limited: booleanType(),
|
|
95850
|
-
limitedBy: arrayType(LimitedBy$inboundSchema),
|
|
95851
|
-
saml: lazyType(() => Saml$inboundSchema).optional(),
|
|
95852
|
-
mfaEnforced: booleanType().optional(),
|
|
95853
|
-
id: stringType(),
|
|
95854
|
-
slug: stringType(),
|
|
95855
|
-
name: nullableType(stringType()),
|
|
95856
|
-
avatar: nullableType(stringType()),
|
|
95857
|
-
membership: lazyType(() => Membership$inboundSchema),
|
|
95858
|
-
created: stringType(),
|
|
95859
|
-
createdAt: numberType()
|
|
95860
|
-
});
|
|
95861
|
-
TeamLimited$outboundSchema = objectType({
|
|
95862
|
-
limited: booleanType(),
|
|
95863
|
-
limitedBy: arrayType(LimitedBy$outboundSchema),
|
|
95864
|
-
saml: lazyType(() => Saml$outboundSchema).optional(),
|
|
95865
|
-
mfaEnforced: booleanType().optional(),
|
|
95866
|
-
id: stringType(),
|
|
95867
|
-
slug: stringType(),
|
|
95868
|
-
name: nullableType(stringType()),
|
|
95869
|
-
avatar: nullableType(stringType()),
|
|
95870
|
-
membership: lazyType(() => Membership$outboundSchema),
|
|
95871
|
-
created: stringType(),
|
|
95872
|
-
createdAt: numberType()
|
|
95873
|
-
});
|
|
95874
|
-
((TeamLimited$) => {
|
|
95875
|
-
TeamLimited$.inboundSchema = TeamLimited$inboundSchema;
|
|
95876
|
-
TeamLimited$.outboundSchema = TeamLimited$outboundSchema;
|
|
95877
|
-
})(TeamLimited$ ||= {});
|
|
95878
|
-
});
|
|
95879
|
-
|
|
95880
95890
|
// src/models/getteamsop.ts
|
|
95881
95891
|
var GetTeamsRequest$inboundSchema, GetTeamsRequest$outboundSchema, GetTeamsRequest$, GetTeamsTeams$inboundSchema, GetTeamsTeams$outboundSchema, GetTeamsTeams$, GetTeamsResponseBody$inboundSchema, GetTeamsResponseBody$outboundSchema, GetTeamsResponseBody$;
|
|
95882
95892
|
var init_getteamsop = __esm(() => {
|
|
@@ -96694,14 +96704,13 @@ async function $do152(client, request, options) {
|
|
|
96694
96704
|
const responseFields = {
|
|
96695
96705
|
HttpMeta: { Response: response, Request: req }
|
|
96696
96706
|
};
|
|
96697
|
-
const [result] = await match(json(200,
|
|
96707
|
+
const [result] = await match(json(200, TeamLimited$inboundSchema), jsonErr(400, VercelBadRequestError$inboundSchema), jsonErr(401, VercelForbiddenError$inboundSchema), jsonErr(404, VercelNotFoundError$inboundSchema), fail([402, 403, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
|
|
96698
96708
|
if (!result.ok) {
|
|
96699
96709
|
return [result, { status: "complete", request: req, response }];
|
|
96700
96710
|
}
|
|
96701
96711
|
return [result, { status: "complete", request: req, response }];
|
|
96702
96712
|
}
|
|
96703
96713
|
var init_teamsPatchTeam = __esm(() => {
|
|
96704
|
-
init_lib();
|
|
96705
96714
|
init_encodings();
|
|
96706
96715
|
init_matchers();
|
|
96707
96716
|
init_primitives();
|
|
@@ -96709,6 +96718,7 @@ var init_teamsPatchTeam = __esm(() => {
|
|
|
96709
96718
|
init_security();
|
|
96710
96719
|
init_url();
|
|
96711
96720
|
init_patchteamop();
|
|
96721
|
+
init_teamlimited();
|
|
96712
96722
|
init_vercelbadrequesterror();
|
|
96713
96723
|
init_vercelforbiddenerror();
|
|
96714
96724
|
init_vercelnotfounderror();
|
|
@@ -106535,7 +106545,7 @@ Get a list of webhooks`,
|
|
|
106535
106545
|
function createMCPServer(deps) {
|
|
106536
106546
|
const server = new McpServer({
|
|
106537
106547
|
name: "Vercel",
|
|
106538
|
-
version: "1.7.
|
|
106548
|
+
version: "1.7.1"
|
|
106539
106549
|
});
|
|
106540
106550
|
const client = new VercelCore({
|
|
106541
106551
|
bearerToken: deps.bearerToken,
|
|
@@ -108070,7 +108080,7 @@ var routes = an({
|
|
|
108070
108080
|
var app = He(routes, {
|
|
108071
108081
|
name: "mcp",
|
|
108072
108082
|
versionInfo: {
|
|
108073
|
-
currentVersion: "1.7.
|
|
108083
|
+
currentVersion: "1.7.1"
|
|
108074
108084
|
}
|
|
108075
108085
|
});
|
|
108076
108086
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -108078,5 +108088,5 @@ export {
|
|
|
108078
108088
|
app
|
|
108079
108089
|
};
|
|
108080
108090
|
|
|
108081
|
-
//# debugId=
|
|
108091
|
+
//# debugId=1E0D868DBB0D226064756E2164756E21
|
|
108082
108092
|
//# sourceMappingURL=mcp-server.js.map
|