@avallon-labs/mcp 62.2.0-staging.1335 → 62.4.0-staging.1338

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-OTXFMKP3.js");
59
+ await import("./server-PJ4HAQ7D.js");
60
60
  //# sourceMappingURL=index.js.map
@@ -12726,7 +12726,8 @@ var GetPublicFormSubmissionParams = zod.object({
12726
12726
  var GetPublicFormSubmissionResponse = zod.object({
12727
12727
  "data": zod.object({
12728
12728
  "title": zod.string(),
12729
- "schema": zod.record(zod.string(), zod.unknown()).describe("JSON Schema of the form version this submission is pinned to. Property order is the display order.")
12729
+ "schema": zod.record(zod.string(), zod.unknown()).describe("JSON Schema of the form version this submission is pinned to. Property order is the display order."),
12730
+ "prefill": zod.union([zod.record(zod.string(), zod.unknown()), zod.null()]).describe("Field values to fill in, null when none")
12730
12731
  }),
12731
12732
  "message": zod.string()
12732
12733
  });
@@ -12918,7 +12919,8 @@ var PromoteFormVersionResponse = zod.object({
12918
12919
  });
12919
12920
  var CreateFormSubmissionBody = zod.object({
12920
12921
  "form_id": zod.string().uuid(),
12921
- "environment": zod.enum(["live", "test"])
12922
+ "environment": zod.enum(["live", "test"]),
12923
+ "prefill": zod.record(zod.string(), zod.union([zod.string(), zod.number(), zod.boolean()])).optional().describe("Field values to fill in, checked against the form's schema")
12922
12924
  });
12923
12925
  var CreateFormSubmissionResponse = zod.object({
12924
12926
  "data": zod.object({
@@ -12926,9 +12928,11 @@ var CreateFormSubmissionResponse = zod.object({
12926
12928
  "form_id": zod.string().uuid(),
12927
12929
  "form_version": zod.number(),
12928
12930
  "environment": zod.enum(["live", "test"]),
12931
+ "prefill": zod.union([zod.record(zod.string(), zod.unknown()), zod.null()]).describe("Values the renderer fills in before the person edits them"),
12929
12932
  "submission": zod.union([zod.record(zod.string(), zod.unknown()), zod.null()]).describe("Answers keyed by form field; null until submitted"),
12930
12933
  "created_at": zod.string().datetime({ "offset": true }),
12931
- "submitted_at": zod.union([zod.string().datetime({ "offset": true }), zod.null()])
12934
+ "submitted_at": zod.union([zod.string().datetime({ "offset": true }), zod.null()]),
12935
+ "url": zod.string().url().describe("Link to send to the person filling the form")
12932
12936
  }),
12933
12937
  "message": zod.string()
12934
12938
  });
@@ -12941,6 +12945,7 @@ var GetFormSubmissionResponse = zod.object({
12941
12945
  "form_id": zod.string().uuid(),
12942
12946
  "form_version": zod.number(),
12943
12947
  "environment": zod.enum(["live", "test"]),
12948
+ "prefill": zod.union([zod.record(zod.string(), zod.unknown()), zod.null()]).describe("Values the renderer fills in before the person edits them"),
12944
12949
  "submission": zod.union([zod.record(zod.string(), zod.unknown()), zod.null()]).describe("Answers keyed by form field; null until submitted"),
12945
12950
  "created_at": zod.string().datetime({ "offset": true }),
12946
12951
  "submitted_at": zod.union([zod.string().datetime({ "offset": true }), zod.null()])
@@ -17257,7 +17262,7 @@ var createMcpServer = (options) => {
17257
17262
  "createFormSubmission",
17258
17263
  {
17259
17264
  title: "Create form submission",
17260
- description: "Open a submission link for a form, pinned to the version the given environment points at. Share the returned id with the person filling the form.",
17265
+ description: "Open a submission link for a form, pinned to the version the given environment points at. Send the returned url to the person filling the form.",
17261
17266
  inputSchema: {
17262
17267
  bodyParams: CreateFormSubmissionBody.optional()
17263
17268
  },
@@ -18434,4 +18439,4 @@ var transport = new StdioServerTransport();
18434
18439
  server.connect(transport).then(() => {
18435
18440
  console.error("MCP server running on stdio");
18436
18441
  }).catch(console.error);
18437
- //# sourceMappingURL=server-OTXFMKP3.js.map
18442
+ //# sourceMappingURL=server-PJ4HAQ7D.js.map