@avallon-labs/mcp 66.5.0 → 67.1.0-staging.1408

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-AKWIQJHV.js");
59
+ await import("./server-QZ2HL4AF.js");
60
60
  //# sourceMappingURL=index.js.map
@@ -12554,10 +12554,20 @@ var CreateCaseBody = zod.object({
12554
12554
  "id": zod.string().min(1).describe("Case id, e.g. a claim number. Normalized server-side (trimmed and lowercased) to match how case ids are stored."),
12555
12555
  "environment": zod.enum(["live", "test"]).optional(),
12556
12556
  "type_slug": zod.string().describe("Slug of a case type. List the case types to pick one, then get it to see its fields."),
12557
- "fields": zod.record(zod.string(), zod.union([zod.object({
12557
+ "fields": zod.record(zod.string(), zod.union([zod.union([zod.object({
12558
12558
  "value": zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]),
12559
12559
  "citations": zod.array(zod.string().uuid()).describe("Chunk IDs from the `[chunk_id=\u2026]` markers of the sources.")
12560
- }), zod.null()])).optional().describe("Initial field values."),
12560
+ }), zod.null()]), zod.object({
12561
+ "fields": zod.record(zod.string(), zod.union([zod.union([zod.object({
12562
+ "value": zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]),
12563
+ "citations": zod.array(zod.string().uuid()).describe("Chunk IDs from the `[chunk_id=\u2026]` markers of the sources.")
12564
+ }), zod.null()]), zod.object({
12565
+ "fields": zod.record(zod.string(), zod.union([zod.object({
12566
+ "value": zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]),
12567
+ "citations": zod.array(zod.string().uuid()).describe("Chunk IDs from the `[chunk_id=\u2026]` markers of the sources.")
12568
+ }), zod.null()]))
12569
+ })]))
12570
+ })])).optional().describe("Initial field values."),
12561
12571
  "subject": zod.union([zod.string().min(1), zod.null()]).optional().describe("Short description of what the case is about."),
12562
12572
  "reporter": zod.union([zod.string().min(1), zod.null()]).optional().describe("Name of the person or organization that reported the case.")
12563
12573
  });
@@ -12572,12 +12582,14 @@ var CreateCaseResponse = zod.object({
12572
12582
  "created_by": zod.string().describe('Actor that created the case, e.g. "worker:<workerId>" or "user:<profileId>".'),
12573
12583
  "created_at": zod.string().datetime({ "offset": true }),
12574
12584
  "updated_at": zod.string().datetime({ "offset": true }),
12575
- "fields": zod.record(zod.string(), zod.object({
12585
+ "fields": zod.record(zod.string(), zod.union([zod.object({
12576
12586
  "value": zod.union([zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]), zod.null()]),
12577
12587
  "set_by": zod.string().describe('Actor string, e.g. "worker:<workerId>" or "user:<profileId>".'),
12578
12588
  "set_at": zod.string().datetime({ "offset": true }),
12579
12589
  "citations": zod.array(zod.string().uuid())
12580
- }))
12590
+ }), zod.object({
12591
+ "fields": zod.unknown()
12592
+ })]))
12581
12593
  })
12582
12594
  }),
12583
12595
  "message": zod.string()
@@ -12624,12 +12636,14 @@ var GetCaseResponse = zod.object({
12624
12636
  "created_by": zod.string().describe('Actor that created the case, e.g. "worker:<workerId>" or "user:<profileId>".'),
12625
12637
  "created_at": zod.string().datetime({ "offset": true }),
12626
12638
  "updated_at": zod.string().datetime({ "offset": true }),
12627
- "fields": zod.record(zod.string(), zod.object({
12639
+ "fields": zod.record(zod.string(), zod.union([zod.object({
12628
12640
  "value": zod.union([zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]), zod.null()]),
12629
12641
  "set_by": zod.string().describe('Actor string, e.g. "worker:<workerId>" or "user:<profileId>".'),
12630
12642
  "set_at": zod.string().datetime({ "offset": true }),
12631
12643
  "citations": zod.array(zod.string().uuid())
12632
- }))
12644
+ }), zod.object({
12645
+ "fields": zod.unknown()
12646
+ })]))
12633
12647
  })
12634
12648
  }),
12635
12649
  "message": zod.string()
@@ -12651,10 +12665,20 @@ var UpdateCaseQueryParams = zod.object({
12651
12665
  "environment": zod.enum(["live", "test"]).optional().describe("Environment the case belongs to. A case reference is unique per environment, so the same reference can name a different case in each. Defaults to `live`. A worker run may omit this or pass its own run's environment; any other value is rejected.")
12652
12666
  });
12653
12667
  var UpdateCaseBody = zod.object({
12654
- "fields": zod.record(zod.string(), zod.union([zod.object({
12668
+ "fields": zod.record(zod.string(), zod.union([zod.union([zod.object({
12655
12669
  "value": zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]),
12656
12670
  "citations": zod.array(zod.string().uuid()).describe("Chunk IDs from the `[chunk_id=\u2026]` markers of the sources.")
12657
- }), zod.null()])).optional().describe('Values keyed by field key, validated against the case type. `null` clears a field whose `type` includes `"null"`.')
12671
+ }), zod.null()]), zod.object({
12672
+ "fields": zod.record(zod.string(), zod.union([zod.union([zod.object({
12673
+ "value": zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]),
12674
+ "citations": zod.array(zod.string().uuid()).describe("Chunk IDs from the `[chunk_id=\u2026]` markers of the sources.")
12675
+ }), zod.null()]), zod.object({
12676
+ "fields": zod.record(zod.string(), zod.union([zod.object({
12677
+ "value": zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]),
12678
+ "citations": zod.array(zod.string().uuid()).describe("Chunk IDs from the `[chunk_id=\u2026]` markers of the sources.")
12679
+ }), zod.null()]))
12680
+ })]))
12681
+ })])).optional().describe("Values keyed by field key, validated against the case type. An object's values go under its `fields`. `null` clears a nullable field.")
12658
12682
  });
12659
12683
  var UpdateCaseResponse = zod.object({
12660
12684
  "data": zod.object({
@@ -12667,12 +12691,14 @@ var UpdateCaseResponse = zod.object({
12667
12691
  "created_by": zod.string().describe('Actor that created the case, e.g. "worker:<workerId>" or "user:<profileId>".'),
12668
12692
  "created_at": zod.string().datetime({ "offset": true }),
12669
12693
  "updated_at": zod.string().datetime({ "offset": true }),
12670
- "fields": zod.record(zod.string(), zod.object({
12694
+ "fields": zod.record(zod.string(), zod.union([zod.object({
12671
12695
  "value": zod.union([zod.union([zod.union([zod.string(), zod.number(), zod.boolean()]), zod.array(zod.union([zod.string(), zod.number(), zod.boolean()]))]), zod.null()]),
12672
12696
  "set_by": zod.string().describe('Actor string, e.g. "worker:<workerId>" or "user:<profileId>".'),
12673
12697
  "set_at": zod.string().datetime({ "offset": true }),
12674
12698
  "citations": zod.array(zod.string().uuid())
12675
- }))
12699
+ }), zod.object({
12700
+ "fields": zod.unknown()
12701
+ })]))
12676
12702
  })
12677
12703
  }),
12678
12704
  "message": zod.string()
@@ -13376,7 +13402,7 @@ var GetProfileResponse = zod.object({
13376
13402
  "last_name": zod.union([zod.string(), zod.null()]),
13377
13403
  "email": zod.string(),
13378
13404
  "role": zod.enum(["admin", "avallon_admin", "member"]),
13379
- "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", "forms:promote", "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"])),
13405
+ "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", "forms:promote", "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", "evaluators:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "schedules:read", "schedules:write", "tenants:write", "analytics:view-cost"])),
13380
13406
  "tenants": zod.object({
13381
13407
  "active": zod.object({
13382
13408
  "id": zod.string(),
@@ -14164,7 +14190,7 @@ var CreateCaseTypeResponse = zod.object({
14164
14190
  "enum": zod.union([zod.array(zod.string()), zod.null()]),
14165
14191
  "sensitive": zod.boolean(),
14166
14192
  "created_at": zod.string().datetime({ "offset": true }),
14167
- "fields": zod.array(zod.unknown())
14193
+ "fields": zod.array(zod.unknown()).optional().describe("List of subfields on object fields.")
14168
14194
  }))
14169
14195
  }),
14170
14196
  "message": zod.string()
@@ -14224,7 +14250,7 @@ var GetCaseTypeResponse = zod.object({
14224
14250
  "enum": zod.union([zod.array(zod.string()), zod.null()]),
14225
14251
  "sensitive": zod.boolean(),
14226
14252
  "created_at": zod.string().datetime({ "offset": true }),
14227
- "fields": zod.array(zod.unknown())
14253
+ "fields": zod.array(zod.unknown()).optional().describe("List of subfields on object fields.")
14228
14254
  }))
14229
14255
  }),
14230
14256
  "message": zod.string()
@@ -14258,7 +14284,7 @@ var UpdateCaseTypeResponse = zod.object({
14258
14284
  "enum": zod.union([zod.array(zod.string()), zod.null()]),
14259
14285
  "sensitive": zod.boolean(),
14260
14286
  "created_at": zod.string().datetime({ "offset": true }),
14261
- "fields": zod.array(zod.unknown())
14287
+ "fields": zod.array(zod.unknown()).optional().describe("List of subfields on object fields.")
14262
14288
  }))
14263
14289
  }),
14264
14290
  "message": zod.string()
@@ -14316,7 +14342,7 @@ var GetCaseTypeVersionResponse = zod.object({
14316
14342
  "enum": zod.union([zod.array(zod.string()), zod.null()]),
14317
14343
  "sensitive": zod.boolean(),
14318
14344
  "created_at": zod.string().datetime({ "offset": true }),
14319
- "fields": zod.array(zod.unknown())
14345
+ "fields": zod.array(zod.unknown()).optional().describe("List of subfields on object fields.")
14320
14346
  }))
14321
14347
  }),
14322
14348
  "message": zod.string()
@@ -14386,7 +14412,7 @@ var CreateCaseTypeFieldResponse = zod.object({
14386
14412
  "enum": zod.union([zod.array(zod.string()), zod.null()]),
14387
14413
  "sensitive": zod.boolean(),
14388
14414
  "created_at": zod.string().datetime({ "offset": true }),
14389
- "fields": zod.array(zod.unknown())
14415
+ "fields": zod.array(zod.unknown()).optional().describe("List of subfields on object fields.")
14390
14416
  }),
14391
14417
  "message": zod.string()
14392
14418
  });
@@ -14413,7 +14439,7 @@ var UpdateCaseTypeFieldResponse = zod.object({
14413
14439
  "enum": zod.union([zod.array(zod.string()), zod.null()]),
14414
14440
  "sensitive": zod.boolean(),
14415
14441
  "created_at": zod.string().datetime({ "offset": true }),
14416
- "fields": zod.array(zod.unknown())
14442
+ "fields": zod.array(zod.unknown()).optional().describe("List of subfields on object fields.")
14417
14443
  }),
14418
14444
  "message": zod.string()
14419
14445
  });
@@ -17768,7 +17794,7 @@ var createMcpServer = (options) => {
17768
17794
  "createEvaluator",
17769
17795
  {
17770
17796
  title: "Create an evaluator",
17771
- description: "Create an evaluator: a named set of metrics that an LLM judge scores every call of the voice agents it is attached to.\n\nEvaluators can't be changed after creation, so past call scores keep their meaning. To change the criteria, create a new evaluator (e.g. `support-quality-v2`) and attach that instead. A slug that already exists returns 409.\n\nAttach it to a voice agent with `PATCH /v1/voice-agents/{voiceAgentId}` (`evaluator_slug`), then promote that version. Requires the `voice-agents:write` permission.",
17797
+ description: "Create an evaluator: a named set of metrics that an LLM judge scores every call of the voice agents it is attached to.\n\nEvaluators can't be changed after creation, so past call scores keep their meaning. To change the criteria, create a new evaluator (e.g. `support-quality-v2`) and attach that instead. A slug that already exists returns 409.\n\nAttach it to a voice agent with `PATCH /v1/voice-agents/{voiceAgentId}` (`evaluator_slug`), then promote that version. Requires the `evaluators:write` permission.",
17772
17798
  inputSchema: {
17773
17799
  bodyParams: CreateEvaluatorBody.optional()
17774
17800
  },
@@ -18685,4 +18711,4 @@ var transport = new StdioServerTransport();
18685
18711
  server.connect(transport).then(() => {
18686
18712
  console.error("MCP server running on stdio");
18687
18713
  }).catch(console.error);
18688
- //# sourceMappingURL=server-AKWIQJHV.js.map
18714
+ //# sourceMappingURL=server-QZ2HL4AF.js.map