@avallon-labs/mcp 61.1.0 → 62.0.0-staging.1333

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
@@ -56,5 +56,5 @@ function describeErrors(body) {
56
56
 
57
57
  // src/index.ts
58
58
  setupFetch();
59
- await import("./server-GLJAJBOR.js");
59
+ await import("./server-G3CQ3BV3.js");
60
60
  //# sourceMappingURL=index.js.map
@@ -11816,30 +11816,30 @@ var UpdateWorkerMcpsResponse = zod.object({
11816
11816
  "message": zod.string()
11817
11817
  });
11818
11818
  var GetAccessParams = zod.object({
11819
- "entityType": zod.enum(["worker", "case_type", "form"]),
11820
- "entityId": zod.string().describe("The worker's or form's id, or the case type's slug.")
11819
+ "entityType": zod.enum(["worker", "case_type", "form", "voice_agent"]),
11820
+ "entityId": zod.string().describe("The worker's, form's or voice agent's id, or the case type's slug.")
11821
11821
  });
11822
11822
  var GetAccessResponse = zod.object({
11823
11823
  "data": zod.object({
11824
11824
  "grants": zod.array(zod.object({
11825
11825
  "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."),
11826
11826
  "principal_id": zod.string().uuid(),
11827
- "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it."),
11827
+ "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks; changing its prompt or greeting still needs `prompts:write`."),
11828
11828
  "created_at": zod.string().datetime({ "offset": true })
11829
11829
  }))
11830
11830
  }),
11831
11831
  "message": zod.string()
11832
11832
  });
11833
11833
  var UpdateAccessParams = zod.object({
11834
- "entityType": zod.enum(["worker", "case_type", "form"]),
11835
- "entityId": zod.string().describe("The worker's or form's id, or the case type's slug.")
11834
+ "entityType": zod.enum(["worker", "case_type", "form", "voice_agent"]),
11835
+ "entityId": zod.string().describe("The worker's, form's or voice agent's id, or the case type's slug.")
11836
11836
  });
11837
11837
  var updateAccessBodyGrantsMax = 1e3;
11838
11838
  var UpdateAccessBody = zod.object({
11839
11839
  "grants": zod.array(zod.object({
11840
11840
  "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."),
11841
11841
  "principal_id": zod.string().uuid(),
11842
- "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it.")
11842
+ "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks; changing its prompt or greeting still needs `prompts:write`.")
11843
11843
  })).max(updateAccessBodyGrantsMax).describe("Everyone the entity is shared with, replacing the current set. Pass an empty array to share it with no one.")
11844
11844
  });
11845
11845
  var UpdateAccessResponse = zod.object({
@@ -11847,15 +11847,15 @@ var UpdateAccessResponse = zod.object({
11847
11847
  "grants": zod.array(zod.object({
11848
11848
  "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."),
11849
11849
  "principal_id": zod.string().uuid(),
11850
- "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it."),
11850
+ "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks; changing its prompt or greeting still needs `prompts:write`."),
11851
11851
  "created_at": zod.string().datetime({ "offset": true })
11852
11852
  }))
11853
11853
  }),
11854
11854
  "message": zod.string()
11855
11855
  });
11856
11856
  var ChangeAccessParams = zod.object({
11857
- "entityType": zod.enum(["worker", "case_type", "form"]),
11858
- "entityId": zod.string().describe("The worker's or form's id, or the case type's slug.")
11857
+ "entityType": zod.enum(["worker", "case_type", "form", "voice_agent"]),
11858
+ "entityId": zod.string().describe("The worker's, form's or voice agent's id, or the case type's slug.")
11859
11859
  });
11860
11860
  var changeAccessBodyGrantsDefault = [];
11861
11861
  var changeAccessBodyGrantsMax = 1e3;
@@ -11865,7 +11865,7 @@ var ChangeAccessBody = zod.object({
11865
11865
  "grants": zod.array(zod.object({
11866
11866
  "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."),
11867
11867
  "principal_id": zod.string().uuid(),
11868
- "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it.")
11868
+ "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks; changing its prompt or greeting still needs `prompts:write`.")
11869
11869
  })).max(changeAccessBodyGrantsMax).default(changeAccessBodyGrantsDefault).describe("Grants to create, or whose level to change."),
11870
11870
  "revocations": zod.array(zod.object({
11871
11871
  "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."),
@@ -11877,19 +11877,19 @@ var ChangeAccessResponse = zod.object({
11877
11877
  "grants": zod.array(zod.object({
11878
11878
  "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."),
11879
11879
  "principal_id": zod.string().uuid(),
11880
- "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it."),
11880
+ "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. On a `form`, `viewer` can see it and open form submissions; `editor` can also edit and share it. On a `voice_agent`, `editor` can also edit, promote, delete and share it and manage its webhooks; changing its prompt or greeting still needs `prompts:write`."),
11881
11881
  "created_at": zod.string().datetime({ "offset": true })
11882
11882
  }))
11883
11883
  }),
11884
11884
  "message": zod.string()
11885
11885
  });
11886
11886
  var GetMyAccessParams = zod.object({
11887
- "entityType": zod.enum(["worker", "case_type", "form"]),
11888
- "entityId": zod.string().describe("The worker's or form's id, or the case type's slug.")
11887
+ "entityType": zod.enum(["worker", "case_type", "form", "voice_agent"]),
11888
+ "entityId": zod.string().describe("The worker's, form's or voice agent's id, or the case type's slug.")
11889
11889
  });
11890
11890
  var GetMyAccessResponse = zod.object({
11891
11891
  "data": zod.object({
11892
- "permissions": zod.array(zod.enum(["workers:read", "workers:run", "workers:write", "workers:promote", "case-types:read", "case-types:write", "forms:read", "forms:request", "forms: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.")
11892
+ "permissions": zod.array(zod.enum(["workers:read", "workers:run", "workers:write", "workers:promote", "case-types:read", "case-types:write", "forms:read", "forms:request", "forms:write", "voice-agents:read", "voice-agents:write", "voice-agents:promote"])).describe("What the caller may do with the entity, through their role or a grant on it. `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent also let the caller share it.")
11893
11893
  }),
11894
11894
  "message": zod.string()
11895
11895
  });
@@ -12694,7 +12694,7 @@ var GetProfileResponse = zod.object({
12694
12694
  "last_name": zod.union([zod.string(), zod.null()]),
12695
12695
  "email": zod.string(),
12696
12696
  "role": zod.enum(["admin", "avallon_admin", "member"]),
12697
- "permissions": zod.array(zod.enum(["voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "tool-calls:read", "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", "forms:read", "forms:create", "forms:write", "forms:request", "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"])),
12697
+ "permissions": zod.array(zod.enum(["voice-agents:read", "voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "tool-calls:read", "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", "forms:read", "forms:create", "forms:write", "forms:request", "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"])),
12698
12698
  "tenants": zod.object({
12699
12699
  "active": zod.object({
12700
12700
  "id": zod.string(),
@@ -14332,7 +14332,7 @@ var UploadFileResponse = zod.object({
14332
14332
  "message": zod.string()
14333
14333
  });
14334
14334
  var CreateAgentWebhookParams = zod.object({
14335
- "voiceAgentId": zod.string().min(1)
14335
+ "voiceAgentId": zod.string().uuid()
14336
14336
  });
14337
14337
  var createAgentWebhookBodyNameMax = 256;
14338
14338
  var createAgentWebhookBodyUrlMax = 2048;
@@ -16223,7 +16223,7 @@ var createMcpServer = (options) => {
16223
16223
  "getAccess",
16224
16224
  {
16225
16225
  title: "Get access",
16226
- 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.",
16226
+ 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, `case-types:write` on a case type and `voice-agents:write` on a voice agent.",
16227
16227
  inputSchema: {
16228
16228
  pathParams: GetAccessParams
16229
16229
  },
@@ -16239,7 +16239,7 @@ var createMcpServer = (options) => {
16239
16239
  "updateAccess",
16240
16240
  {
16241
16241
  title: "Update access (deprecated)",
16242
- 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.\n\n**Deprecated:** Use `PATCH /v1/access/{entityType}/{entityId}` instead.",
16242
+ 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, `case-types:write` on a case type and `voice-agents:write` on a voice agent. An editor who leaves their own grant out loses access, unless their role gives it.\n\n**Deprecated:** Use `PATCH /v1/access/{entityType}/{entityId}` instead.",
16243
16243
  inputSchema: {
16244
16244
  pathParams: UpdateAccessParams,
16245
16245
  bodyParams: UpdateAccessBody.optional()
@@ -16256,7 +16256,7 @@ var createMcpServer = (options) => {
16256
16256
  "changeAccess",
16257
16257
  {
16258
16258
  title: "Change access",
16259
- description: "Grant, change or revoke access for specific team members and workers. Everyone not named keeps their access. 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 revokes their own grant loses access, and one who downgrades it can no longer change or share the entity, unless their role gives it.",
16259
+ description: "Grant, change or revoke access for specific team members and workers. Everyone not named keeps their access. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent. An editor who revokes their own grant loses access, and one who downgrades it can no longer change or share the entity, unless their role gives it.",
16260
16260
  inputSchema: {
16261
16261
  pathParams: ChangeAccessParams,
16262
16262
  bodyParams: ChangeAccessBody.optional()
@@ -18012,4 +18012,4 @@ var transport = new StdioServerTransport();
18012
18012
  server.connect(transport).then(() => {
18013
18013
  console.error("MCP server running on stdio");
18014
18014
  }).catch(console.error);
18015
- //# sourceMappingURL=server-GLJAJBOR.js.map
18015
+ //# sourceMappingURL=server-G3CQ3BV3.js.map