@avallon-labs/mcp 58.0.0 → 59.0.0-staging.1311
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
|
@@ -11261,50 +11261,50 @@ var UpdateWorkerMcpsResponse = zod.object({
|
|
|
11261
11261
|
"message": zod.string()
|
|
11262
11262
|
});
|
|
11263
11263
|
var GetAccessParams = zod.object({
|
|
11264
|
-
"entityType": zod.enum(["worker"]),
|
|
11265
|
-
"entityId": zod.string().
|
|
11264
|
+
"entityType": zod.enum(["worker", "case_type"]),
|
|
11265
|
+
"entityId": zod.string().describe("The worker's id or the case type's slug.")
|
|
11266
11266
|
});
|
|
11267
11267
|
var GetAccessResponse = zod.object({
|
|
11268
11268
|
"data": zod.object({
|
|
11269
11269
|
"grants": zod.array(zod.object({
|
|
11270
|
-
"principal_type": zod.enum(["profile", "worker"]).describe("Who holds the grant: a team member's `profile`,
|
|
11270
|
+
"principal_type": zod.enum(["profile", "worker", "tenant"]).describe("Who holds the grant: a team member's `profile`, a `worker`, whose runs act with it, or the whole `tenant`. `tenant` is not supported yet."),
|
|
11271
11271
|
"principal_id": zod.string().uuid(),
|
|
11272
|
-
"level": zod.enum(["viewer", "editor"]).describe("`viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission."),
|
|
11272
|
+
"level": zod.enum(["viewer", "editor"]).describe("`viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it."),
|
|
11273
11273
|
"created_at": zod.string().datetime({ "offset": true })
|
|
11274
11274
|
}))
|
|
11275
11275
|
}),
|
|
11276
11276
|
"message": zod.string()
|
|
11277
11277
|
});
|
|
11278
11278
|
var UpdateAccessParams = zod.object({
|
|
11279
|
-
"entityType": zod.enum(["worker"]),
|
|
11280
|
-
"entityId": zod.string().
|
|
11279
|
+
"entityType": zod.enum(["worker", "case_type"]),
|
|
11280
|
+
"entityId": zod.string().describe("The worker's id or the case type's slug.")
|
|
11281
11281
|
});
|
|
11282
11282
|
var updateAccessBodyGrantsMax = 1e3;
|
|
11283
11283
|
var UpdateAccessBody = zod.object({
|
|
11284
11284
|
"grants": zod.array(zod.object({
|
|
11285
|
-
"principal_type": zod.enum(["profile", "worker"]).describe("Who holds the grant: a team member's `profile`,
|
|
11285
|
+
"principal_type": zod.enum(["profile", "worker", "tenant"]).describe("Who holds the grant: a team member's `profile`, a `worker`, whose runs act with it, or the whole `tenant`. `tenant` is not supported yet."),
|
|
11286
11286
|
"principal_id": zod.string().uuid(),
|
|
11287
|
-
"level": zod.enum(["viewer", "editor"]).describe("`viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission.")
|
|
11287
|
+
"level": zod.enum(["viewer", "editor"]).describe("`viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it.")
|
|
11288
11288
|
})).max(updateAccessBodyGrantsMax).describe("Everyone the entity is shared with, replacing the current set. Pass an empty array to share it with no one.")
|
|
11289
11289
|
});
|
|
11290
11290
|
var UpdateAccessResponse = zod.object({
|
|
11291
11291
|
"data": zod.object({
|
|
11292
11292
|
"grants": zod.array(zod.object({
|
|
11293
|
-
"principal_type": zod.enum(["profile", "worker"]).describe("Who holds the grant: a team member's `profile`,
|
|
11293
|
+
"principal_type": zod.enum(["profile", "worker", "tenant"]).describe("Who holds the grant: a team member's `profile`, a `worker`, whose runs act with it, or the whole `tenant`. `tenant` is not supported yet."),
|
|
11294
11294
|
"principal_id": zod.string().uuid(),
|
|
11295
|
-
"level": zod.enum(["viewer", "editor"]).describe("`viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission."),
|
|
11295
|
+
"level": zod.enum(["viewer", "editor"]).describe("`viewer` can see and use the entity. `editor` can also change and share it. On a `worker`, `viewer` sees the worker, its prompt and everything it owns, and can start it; `editor` can also edit, promote, delete and share it. Attaching secrets and managing schedules still need the matching role permission. On a `case_type`, `editor` can also edit, promote and share it."),
|
|
11296
11296
|
"created_at": zod.string().datetime({ "offset": true })
|
|
11297
11297
|
}))
|
|
11298
11298
|
}),
|
|
11299
11299
|
"message": zod.string()
|
|
11300
11300
|
});
|
|
11301
11301
|
var GetMyAccessParams = zod.object({
|
|
11302
|
-
"entityType": zod.enum(["worker"]),
|
|
11303
|
-
"entityId": zod.string().
|
|
11302
|
+
"entityType": zod.enum(["worker", "case_type"]),
|
|
11303
|
+
"entityId": zod.string().describe("The worker's id or the case type's slug.")
|
|
11304
11304
|
});
|
|
11305
11305
|
var GetMyAccessResponse = zod.object({
|
|
11306
11306
|
"data": zod.object({
|
|
11307
|
-
"permissions": zod.array(zod.enum(["workers:read", "workers:run", "workers:write", "workers:promote"])).describe("What the caller may do with the entity, through their role or a grant on it.
|
|
11307
|
+
"permissions": zod.array(zod.enum(["workers:read", "workers:run", "workers:write", "workers:promote", "case-types:read", "case-types:write"])).describe("What the caller may do with the entity, through their role or a grant on it. `workers:write` on a worker and `case-types:write` on a case type also let the caller share it.")
|
|
11308
11308
|
}),
|
|
11309
11309
|
"message": zod.string()
|
|
11310
11310
|
});
|
|
@@ -12033,7 +12033,7 @@ var GetProfileResponse = zod.object({
|
|
|
12033
12033
|
"last_name": zod.union([zod.string(), zod.null()]),
|
|
12034
12034
|
"email": zod.string(),
|
|
12035
12035
|
"role": zod.enum(["admin", "avallon_admin", "member"]),
|
|
12036
|
-
"permissions": zod.array(zod.enum(["voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "extractors:write", "inboxes:write", "inboxes:send", "artifacts:write", "api-keys:write", "teams:write", "cases:write", "cases:delete", "case-types:write", "information-requests:write", "information-requests:resolve", "information-requests:delete", "feedback:write", "outbound-jobs:write", "outbound-jobs:schedule", "calls:monitor", "workers:read", "workers:create", "workers:write", "workers:execute", "workers:write-mcp", "workers:run", "workers:promote", "chat-agents:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "schedules:read", "schedules:write", "tenants:write", "analytics:view-cost"])),
|
|
12036
|
+
"permissions": zod.array(zod.enum(["voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "extractors:write", "inboxes:write", "inboxes:send", "artifacts:write", "api-keys:write", "teams:write", "cases:write", "cases:delete", "case-types:read", "case-types:create", "case-types:write", "information-requests:write", "information-requests:resolve", "information-requests:delete", "feedback:write", "outbound-jobs:write", "outbound-jobs:schedule", "calls:monitor", "workers:read", "workers:create", "workers:write", "workers:execute", "workers:write-mcp", "workers:run", "workers:promote", "chat-agents:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "schedules:read", "schedules:write", "tenants:write", "analytics:view-cost"])),
|
|
12037
12037
|
"tenants": zod.object({
|
|
12038
12038
|
"active": zod.object({
|
|
12039
12039
|
"id": zod.string(),
|
|
@@ -15491,7 +15491,7 @@ var createMcpServer = (options) => {
|
|
|
15491
15491
|
"getAccess",
|
|
15492
15492
|
{
|
|
15493
15493
|
title: "Get access",
|
|
15494
|
-
description: "List who an entity is shared with. Admins see every entity through their role, whether or not they are listed. Requires `workers:write` on a worker.",
|
|
15494
|
+
description: "List who an entity is shared with. Admins see every entity through their role, whether or not they are listed. Requires `workers:write` on a worker and `case-types:write` on a case type.",
|
|
15495
15495
|
inputSchema: {
|
|
15496
15496
|
pathParams: GetAccessParams
|
|
15497
15497
|
},
|
|
@@ -15507,7 +15507,7 @@ var createMcpServer = (options) => {
|
|
|
15507
15507
|
"updateAccess",
|
|
15508
15508
|
{
|
|
15509
15509
|
title: "Update access",
|
|
15510
|
-
description: "Replace who an entity is shared with. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker. An editor who leaves their own grant out loses access, unless their role gives it.",
|
|
15510
|
+
description: "Replace who an entity is shared with. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker and `case-types:write` on a case type. An editor who leaves their own grant out loses access, unless their role gives it.",
|
|
15511
15511
|
inputSchema: {
|
|
15512
15512
|
pathParams: UpdateAccessParams,
|
|
15513
15513
|
bodyParams: UpdateAccessBody.optional()
|
|
@@ -17150,4 +17150,4 @@ var transport = new StdioServerTransport();
|
|
|
17150
17150
|
server.connect(transport).then(() => {
|
|
17151
17151
|
console.error("MCP server running on stdio");
|
|
17152
17152
|
}).catch(console.error);
|
|
17153
|
-
//# sourceMappingURL=server-
|
|
17153
|
+
//# sourceMappingURL=server-6PRFOUD5.js.map
|