@avallon-labs/mcp 36.2.0-staging.903 → 36.3.0-staging.904
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/dist/index.js
CHANGED
|
@@ -2185,6 +2185,54 @@ var inviteTeamMember = async (inviteTeamMemberBody, options) => {
|
|
|
2185
2185
|
headers: res.headers
|
|
2186
2186
|
};
|
|
2187
2187
|
};
|
|
2188
|
+
var getListTeamInvitationsUrl = () => {
|
|
2189
|
+
return `/v1/team/invitations`;
|
|
2190
|
+
};
|
|
2191
|
+
var listTeamInvitations = async (options) => {
|
|
2192
|
+
const res = await fetch(getListTeamInvitationsUrl(), {
|
|
2193
|
+
...options,
|
|
2194
|
+
method: "GET"
|
|
2195
|
+
});
|
|
2196
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2197
|
+
const data = body ? JSON.parse(body) : {};
|
|
2198
|
+
return {
|
|
2199
|
+
data,
|
|
2200
|
+
status: res.status,
|
|
2201
|
+
headers: res.headers
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
var getRevokeTeamInvitationUrl = (invitationId) => {
|
|
2205
|
+
return `/v1/team/invitations/${invitationId}`;
|
|
2206
|
+
};
|
|
2207
|
+
var revokeTeamInvitation = async (invitationId, options) => {
|
|
2208
|
+
const res = await fetch(getRevokeTeamInvitationUrl(invitationId), {
|
|
2209
|
+
...options,
|
|
2210
|
+
method: "DELETE"
|
|
2211
|
+
});
|
|
2212
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2213
|
+
const data = body ? JSON.parse(body) : {};
|
|
2214
|
+
return {
|
|
2215
|
+
data,
|
|
2216
|
+
status: res.status,
|
|
2217
|
+
headers: res.headers
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
var getResendTeamInvitationUrl = (invitationId) => {
|
|
2221
|
+
return `/v1/team/invitations/${invitationId}/resend`;
|
|
2222
|
+
};
|
|
2223
|
+
var resendTeamInvitation = async (invitationId, options) => {
|
|
2224
|
+
const res = await fetch(getResendTeamInvitationUrl(invitationId), {
|
|
2225
|
+
...options,
|
|
2226
|
+
method: "POST"
|
|
2227
|
+
});
|
|
2228
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2229
|
+
const data = body ? JSON.parse(body) : {};
|
|
2230
|
+
return {
|
|
2231
|
+
data,
|
|
2232
|
+
status: res.status,
|
|
2233
|
+
headers: res.headers
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2188
2236
|
var getUpdateMemberRoleUrl = (id) => {
|
|
2189
2237
|
return `/v1/team/members/${id}`;
|
|
2190
2238
|
};
|
|
@@ -3923,6 +3971,39 @@ var inviteTeamMemberHandler = async (args) => {
|
|
|
3923
3971
|
]
|
|
3924
3972
|
};
|
|
3925
3973
|
};
|
|
3974
|
+
var listTeamInvitationsHandler = async () => {
|
|
3975
|
+
const res = await listTeamInvitations();
|
|
3976
|
+
return {
|
|
3977
|
+
content: [
|
|
3978
|
+
{
|
|
3979
|
+
type: "text",
|
|
3980
|
+
text: JSON.stringify(res)
|
|
3981
|
+
}
|
|
3982
|
+
]
|
|
3983
|
+
};
|
|
3984
|
+
};
|
|
3985
|
+
var revokeTeamInvitationHandler = async (args) => {
|
|
3986
|
+
const res = await revokeTeamInvitation(args.pathParams.invitationId);
|
|
3987
|
+
return {
|
|
3988
|
+
content: [
|
|
3989
|
+
{
|
|
3990
|
+
type: "text",
|
|
3991
|
+
text: JSON.stringify(res)
|
|
3992
|
+
}
|
|
3993
|
+
]
|
|
3994
|
+
};
|
|
3995
|
+
};
|
|
3996
|
+
var resendTeamInvitationHandler = async (args) => {
|
|
3997
|
+
const res = await resendTeamInvitation(args.pathParams.invitationId);
|
|
3998
|
+
return {
|
|
3999
|
+
content: [
|
|
4000
|
+
{
|
|
4001
|
+
type: "text",
|
|
4002
|
+
text: JSON.stringify(res)
|
|
4003
|
+
}
|
|
4004
|
+
]
|
|
4005
|
+
};
|
|
4006
|
+
};
|
|
3926
4007
|
var updateMemberRoleHandler = async (args) => {
|
|
3927
4008
|
const res = await updateMemberRole(args.pathParams.id, args.bodyParams);
|
|
3928
4009
|
return {
|
|
@@ -7444,6 +7525,29 @@ var ListTeamMembersResponse = zod.array(ListTeamMembersResponseItem);
|
|
|
7444
7525
|
var InviteTeamMemberBody = zod.object({
|
|
7445
7526
|
email: zod.string().email()
|
|
7446
7527
|
});
|
|
7528
|
+
var ListTeamInvitationsResponseItem = zod.object({
|
|
7529
|
+
id: zod.string().describe("Unique identifier for the invitation"),
|
|
7530
|
+
email: zod.string(),
|
|
7531
|
+
state: zod.enum(["pending", "accepted", "expired", "revoked"]),
|
|
7532
|
+
expires_at: zod.string().datetime({}).describe("When the invitation stops being redeemable"),
|
|
7533
|
+
created_at: zod.string().datetime({}).describe("Creation timestamp")
|
|
7534
|
+
});
|
|
7535
|
+
var ListTeamInvitationsResponse = zod.array(
|
|
7536
|
+
ListTeamInvitationsResponseItem
|
|
7537
|
+
);
|
|
7538
|
+
var RevokeTeamInvitationParams = zod.object({
|
|
7539
|
+
invitationId: zod.string().min(1)
|
|
7540
|
+
});
|
|
7541
|
+
var ResendTeamInvitationParams = zod.object({
|
|
7542
|
+
invitationId: zod.string().min(1)
|
|
7543
|
+
});
|
|
7544
|
+
var ResendTeamInvitationResponse = zod.object({
|
|
7545
|
+
id: zod.string().describe("Unique identifier for the invitation"),
|
|
7546
|
+
email: zod.string(),
|
|
7547
|
+
state: zod.enum(["pending", "accepted", "expired", "revoked"]),
|
|
7548
|
+
expires_at: zod.string().datetime({}).describe("When the invitation stops being redeemable"),
|
|
7549
|
+
created_at: zod.string().datetime({}).describe("Creation timestamp")
|
|
7550
|
+
});
|
|
7447
7551
|
var UpdateMemberRoleParams = zod.object({
|
|
7448
7552
|
id: zod.string().uuid()
|
|
7449
7553
|
});
|
|
@@ -8835,6 +8939,27 @@ server.tool(
|
|
|
8835
8939
|
},
|
|
8836
8940
|
inviteTeamMemberHandler
|
|
8837
8941
|
);
|
|
8942
|
+
server.tool(
|
|
8943
|
+
"listTeamInvitations",
|
|
8944
|
+
"List pending team invitations",
|
|
8945
|
+
listTeamInvitationsHandler
|
|
8946
|
+
);
|
|
8947
|
+
server.tool(
|
|
8948
|
+
"revokeTeamInvitation",
|
|
8949
|
+
"Revoke a team invitation",
|
|
8950
|
+
{
|
|
8951
|
+
pathParams: RevokeTeamInvitationParams
|
|
8952
|
+
},
|
|
8953
|
+
revokeTeamInvitationHandler
|
|
8954
|
+
);
|
|
8955
|
+
server.tool(
|
|
8956
|
+
"resendTeamInvitation",
|
|
8957
|
+
"Resend a team invitation",
|
|
8958
|
+
{
|
|
8959
|
+
pathParams: ResendTeamInvitationParams
|
|
8960
|
+
},
|
|
8961
|
+
resendTeamInvitationHandler
|
|
8962
|
+
);
|
|
8838
8963
|
server.tool(
|
|
8839
8964
|
"updateMemberRole",
|
|
8840
8965
|
"Update member role",
|
|
@@ -9057,4 +9182,4 @@ var transport = new StdioServerTransport();
|
|
|
9057
9182
|
server.connect(transport).then(() => {
|
|
9058
9183
|
console.error("MCP server running on stdio");
|
|
9059
9184
|
}).catch(console.error);
|
|
9060
|
-
//# sourceMappingURL=server-
|
|
9185
|
+
//# sourceMappingURL=server-JOELDFW5.js.map
|