@keystrokehq/signwell 0.1.2 → 0.1.3

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.
Files changed (83) hide show
  1. package/dist/actions/create-document-from-template.cjs +16 -16
  2. package/dist/actions/create-document-from-template.cjs.map +1 -1
  3. package/dist/actions/create-document-from-template.d.cts +24 -18
  4. package/dist/actions/create-document-from-template.d.cts.map +1 -1
  5. package/dist/actions/create-document-from-template.d.mts +24 -18
  6. package/dist/actions/create-document-from-template.d.mts.map +1 -1
  7. package/dist/actions/create-document-from-template.mjs +16 -16
  8. package/dist/actions/create-document-from-template.mjs.map +1 -1
  9. package/dist/actions/create-document.cjs +6 -6
  10. package/dist/actions/create-document.cjs.map +1 -1
  11. package/dist/actions/create-document.d.cts +9 -7
  12. package/dist/actions/create-document.d.cts.map +1 -1
  13. package/dist/actions/create-document.d.mts +9 -7
  14. package/dist/actions/create-document.d.mts.map +1 -1
  15. package/dist/actions/create-document.mjs +6 -6
  16. package/dist/actions/create-document.mjs.map +1 -1
  17. package/dist/actions/create-webhook.cjs +1 -1
  18. package/dist/actions/create-webhook.cjs.map +1 -1
  19. package/dist/actions/create-webhook.d.cts +1 -1
  20. package/dist/actions/create-webhook.d.mts +1 -1
  21. package/dist/actions/create-webhook.mjs +1 -1
  22. package/dist/actions/create-webhook.mjs.map +1 -1
  23. package/dist/actions/delete-document.cjs +1 -1
  24. package/dist/actions/delete-document.cjs.map +1 -1
  25. package/dist/actions/delete-document.d.cts +1 -1
  26. package/dist/actions/delete-document.d.mts +1 -1
  27. package/dist/actions/delete-document.mjs +1 -1
  28. package/dist/actions/delete-document.mjs.map +1 -1
  29. package/dist/actions/delete-webhook.cjs +1 -1
  30. package/dist/actions/delete-webhook.cjs.map +1 -1
  31. package/dist/actions/delete-webhook.d.cts +1 -1
  32. package/dist/actions/delete-webhook.d.cts.map +1 -1
  33. package/dist/actions/delete-webhook.d.mts +1 -1
  34. package/dist/actions/delete-webhook.d.mts.map +1 -1
  35. package/dist/actions/delete-webhook.mjs +1 -1
  36. package/dist/actions/delete-webhook.mjs.map +1 -1
  37. package/dist/actions/get-credentials.cjs +5 -5
  38. package/dist/actions/get-credentials.cjs.map +1 -1
  39. package/dist/actions/get-credentials.d.cts +7 -7
  40. package/dist/actions/get-credentials.d.mts +7 -7
  41. package/dist/actions/get-credentials.mjs +5 -5
  42. package/dist/actions/get-credentials.mjs.map +1 -1
  43. package/dist/actions/get-document.cjs +4 -4
  44. package/dist/actions/get-document.cjs.map +1 -1
  45. package/dist/actions/get-document.d.cts +4 -4
  46. package/dist/actions/get-document.d.mts +4 -4
  47. package/dist/actions/get-document.mjs +4 -4
  48. package/dist/actions/get-document.mjs.map +1 -1
  49. package/dist/actions/list-bulk-sends.cjs +2 -2
  50. package/dist/actions/list-bulk-sends.cjs.map +1 -1
  51. package/dist/actions/list-bulk-sends.d.cts +2 -2
  52. package/dist/actions/list-bulk-sends.d.mts +2 -2
  53. package/dist/actions/list-bulk-sends.mjs +2 -2
  54. package/dist/actions/list-bulk-sends.mjs.map +1 -1
  55. package/dist/actions/list-webhooks.cjs +2 -2
  56. package/dist/actions/list-webhooks.cjs.map +1 -1
  57. package/dist/actions/list-webhooks.d.cts +2 -2
  58. package/dist/actions/list-webhooks.d.mts +2 -2
  59. package/dist/actions/list-webhooks.mjs +2 -2
  60. package/dist/actions/list-webhooks.mjs.map +1 -1
  61. package/dist/actions/send-reminder.cjs +7 -7
  62. package/dist/actions/send-reminder.cjs.map +1 -1
  63. package/dist/actions/send-reminder.d.cts +8 -7
  64. package/dist/actions/send-reminder.d.mts +8 -7
  65. package/dist/actions/send-reminder.mjs +7 -7
  66. package/dist/actions/send-reminder.mjs.map +1 -1
  67. package/dist/actions/update-and-send-document.cjs +8 -8
  68. package/dist/actions/update-and-send-document.cjs.map +1 -1
  69. package/dist/actions/update-and-send-document.d.cts +10 -9
  70. package/dist/actions/update-and-send-document.d.cts.map +1 -1
  71. package/dist/actions/update-and-send-document.d.mts +10 -9
  72. package/dist/actions/update-and-send-document.d.mts.map +1 -1
  73. package/dist/actions/update-and-send-document.mjs +8 -8
  74. package/dist/actions/update-and-send-document.mjs.map +1 -1
  75. package/dist/actions/update-template.cjs +9 -9
  76. package/dist/actions/update-template.cjs.map +1 -1
  77. package/dist/actions/update-template.d.cts +11 -10
  78. package/dist/actions/update-template.d.cts.map +1 -1
  79. package/dist/actions/update-template.d.mts +11 -10
  80. package/dist/actions/update-template.d.mts.map +1 -1
  81. package/dist/actions/update-template.mjs +9 -9
  82. package/dist/actions/update-template.mjs.map +1 -1
  83. package/package.json +1 -1
@@ -8,12 +8,12 @@ const SignwellCreateDocumentFromTemplateInput = z.object({
8
8
  name: z.string().describe("Friendly name for this file (e.g., 'Appendix.pdf')."),
9
9
  file_url: z.string().describe("Public URL to fetch the file. Either file_url or file_base64 is required.").optional(),
10
10
  file_base64: z.string().describe("Base64-encoded file content. Either file_url or file_base64 is required.").optional()
11
- }).describe("Additional file to append to the document (will not replace template files).")).describe("Additional files to append to the document. Will not replace existing template files.").optional(),
12
- fields: z.array(z.array(z.object({}))).describe("Fields to add to appended files (not existing template files). 2D array - one array of fields per appended file.").optional(),
13
- labels: z.array(z.object({ name: z.string().describe("Name of the label to apply to the document.") }).describe("Label for organizing documents in SignWell.")).describe("Labels for organizing documents. Updating labels replaces any existing labels.").optional(),
11
+ }).passthrough().describe("Additional file to append to the document (will not replace template files).")).describe("Additional files to append to the document. Will not replace existing template files.").optional(),
12
+ fields: z.array(z.array(z.record(z.string(), z.unknown()))).describe("Fields to add to appended files (not existing template files). 2D array - one array of fields per appended file.").optional(),
13
+ labels: z.array(z.object({ name: z.string().describe("Name of the label to apply to the document.") }).passthrough().describe("Label for organizing documents in SignWell.")).describe("Labels for organizing documents. Updating labels replaces any existing labels.").optional(),
14
14
  message: z.string().describe("Email message for the signature request. Defaults to template or system message.").optional(),
15
15
  subject: z.string().describe("Email subject for the signature request. Defaults to template or system subject.").optional(),
16
- metadata: z.object({}).describe("Optional key-value metadata associated with the document. Returned in all document queries.").optional(),
16
+ metadata: z.record(z.string(), z.unknown()).describe("Optional key-value metadata associated with the document. Returned in all document queries.").optional(),
17
17
  reminders: z.boolean().default(true).describe("If true, sends reminders on day 3, 6, and 10. Defaults to true.").optional(),
18
18
  test_mode: z.boolean().default(false).describe("Set to true to enable Test Mode (not legally binding and not billed). Defaults to false.").optional(),
19
19
  text_tags: z.boolean().default(false).describe("If true, enables special text tags for placing fields in documents. Defaults to false.").optional(),
@@ -28,7 +28,7 @@ const SignwellCreateDocumentFromTemplateInput = z.object({
28
28
  send_email: z.boolean().describe("Whether to send signing request email to this recipient. Defaults to true.").optional(),
29
29
  placeholder_name: z.string().describe("Name of the template placeholder to assign this recipient to (e.g., 'Signer 1').").optional(),
30
30
  send_email_delay: z.number().int().describe("Delay in hours before sending the email to this recipient.").optional()
31
- }).describe("Recipient assigned to a template placeholder for document signing.")).describe("Document recipients assigned to template placeholders. Recipients inherit placeholder fields and settings."),
31
+ }).passthrough().describe("Recipient assigned to a template placeholder for document signing.")).describe("Document recipients assigned to template placeholders. Recipients inherit placeholder fields and settings."),
32
32
  template_id: z.string().describe("UUID of a single template to use. Either template_id or template_ids must be provided, not both.").optional(),
33
33
  redirect_url: z.string().describe("URL to redirect recipients to after successfully signing the document.").optional(),
34
34
  template_ids: z.array(z.string()).describe("List of template UUIDs to use for creating a multi-template document. Either template_id or template_ids must be provided, not both.").optional(),
@@ -37,7 +37,7 @@ const SignwellCreateDocumentFromTemplateInput = z.object({
37
37
  copied_contacts: z.array(z.object({
38
38
  name: z.string().describe("Name of the copied contact.").optional(),
39
39
  email: z.string().describe("Email address of the copied contact.")
40
- }).describe("Contact who receives the final document once all recipients complete signing.")).describe("Contacts who receive the final document once all recipients complete signing.").optional(),
40
+ }).passthrough().describe("Contact who receives the final document once all recipients complete signing.")).describe("Contacts who receive the final document once all recipients complete signing.").optional(),
41
41
  template_fields: z.array(z.object({
42
42
  value: z.union([
43
43
  z.string(),
@@ -46,7 +46,7 @@ const SignwellCreateDocumentFromTemplateInput = z.object({
46
46
  z.boolean()
47
47
  ]),
48
48
  api_id: z.string().describe("API identifier of the template field to prepopulate.")
49
- }).describe("Template field that can be prepopulated with values.")).describe("Template fields to prepopulate with values. Cannot prepopulate Signature or Initials fields.").optional(),
49
+ }).passthrough().describe("Template field that can be prepopulated with values.")).describe("Template fields to prepopulate with values. Cannot prepopulate Signature or Initials fields.").optional(),
50
50
  embedded_signing: z.boolean().default(false).describe("If true, enables embedded signing (iframe) and disables email authentication. Defaults to false.").optional(),
51
51
  api_application_id: z.string().describe("UUID of API Application settings to use for OAuth isolation or embedded API settings.").optional(),
52
52
  apply_signing_order: z.boolean().default(false).describe("If true, enforces signing in the order provided by recipients array. Defaults to false.").optional(),
@@ -54,7 +54,7 @@ const SignwellCreateDocumentFromTemplateInput = z.object({
54
54
  name: z.string().describe("Name/title of the attachment being requested."),
55
55
  required: z.boolean().describe("Whether the attachment is required to complete signing. Defaults to false.").optional(),
56
56
  recipient_id: z.string().describe("Unique identifier of the recipient who must upload this attachment.")
57
- }).describe("Attachment that a recipient must upload to complete signing.")).describe("Attachments that recipients must upload to complete signing. Shown after all document fields are completed.").optional(),
57
+ }).passthrough().describe("Attachment that a recipient must upload to complete signing.")).describe("Attachments that recipients must upload to complete signing. Shown after all document fields are completed.").optional(),
58
58
  with_signature_page: z.boolean().default(false).describe("If true, appends a signature page to the end and requires all signers to sign there. Defaults to false.").optional(),
59
59
  decline_redirect_url: z.string().describe("URL to redirect recipients to if they decline to sign.").optional(),
60
60
  custom_requester_name: z.string().describe("Custom name used in all email communications, notifications, and audit file.").optional(),
@@ -64,11 +64,11 @@ const SignwellCreateDocumentFromTemplateInput = z.object({
64
64
  const SignwellCreateDocumentFromTemplate_FileResponseSchema = z.object({
65
65
  name: z.string().describe("Name of the file.").nullable(),
66
66
  pages_number: z.number().int().describe("Number of pages in the file.").nullable()
67
- }).describe("Response model for a file in the created document.");
67
+ }).passthrough().describe("Response model for a file in the created document.");
68
68
  const SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema = z.object({
69
69
  id: z.string().describe("Unique identifier of the label.").nullable(),
70
70
  name: z.string().describe("Name of the label.").nullable()
71
- }).describe("Response model for a document label.");
71
+ }).passthrough().describe("Response model for a document label.");
72
72
  const SignwellCreateDocumentFromTemplate_RecipientResponseSchema = z.object({
73
73
  id: z.string().describe("The recipient's unique identifier.").nullable(),
74
74
  name: z.string().describe("Full name of the recipient.").nullable().optional(),
@@ -84,13 +84,13 @@ const SignwellCreateDocumentFromTemplate_RecipientResponseSchema = z.object({
84
84
  bounced_details: z.string().describe("Details about why the email bounced.").nullable().optional(),
85
85
  placeholder_name: z.string().describe("Name of the template placeholder assigned to this recipient.").nullable().optional(),
86
86
  send_email_delay: z.number().int().describe("Delay in hours before sending email to this recipient.").nullable().optional(),
87
- attachment_requests: z.array(z.object({})).describe("Attachment requests for this recipient.").nullable().optional(),
87
+ attachment_requests: z.array(z.record(z.string(), z.unknown())).describe("Attachment requests for this recipient.").nullable().optional(),
88
88
  embedded_signing_url: z.string().describe("URL for embedded signing (when embedded_signing is enabled).").nullable().optional()
89
- }).describe("Response model for a recipient after document creation.");
89
+ }).passthrough().describe("Response model for a recipient after document creation.");
90
90
  const SignwellCreateDocumentFromTemplate_CopiedContactResponseSchema = z.object({
91
91
  name: z.string().describe("Name of the copied contact.").nullable().optional(),
92
92
  email: z.string().describe("Email address of the copied contact.").nullable()
93
- }).describe("Response model for a copied contact.");
93
+ }).passthrough().describe("Response model for a copied contact.");
94
94
  const signwellCreateDocumentFromTemplate = action("SIGNWELL_CREATE_DOCUMENT_FROM_TEMPLATE", {
95
95
  slug: "signwell-create-document-from-template",
96
96
  name: "Create Document from Template",
@@ -100,13 +100,13 @@ const signwellCreateDocumentFromTemplate = action("SIGNWELL_CREATE_DOCUMENT_FROM
100
100
  id: z.string().describe("Unique identifier of the newly created document.").nullable(),
101
101
  name: z.string().describe("Name of the document.").nullable().optional(),
102
102
  files: z.array(SignwellCreateDocumentFromTemplate_FileResponseSchema).describe("List of files included in the document."),
103
- fields: z.array(z.array(z.object({}))).describe("Form fields defined in the document.").nullable().optional(),
103
+ fields: z.array(z.array(z.record(z.string(), z.unknown()))).describe("Form fields defined in the document.").nullable().optional(),
104
104
  labels: z.array(SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema).describe("Labels/tags applied to the document.").nullable().optional(),
105
105
  status: z.string().describe("Current status of the document (e.g., 'Created', 'Pending', 'Completed').").nullable(),
106
106
  message: z.string().describe("Email message for signature requests.").nullable().optional(),
107
107
  subject: z.string().describe("Email subject for signature requests.").nullable().optional(),
108
108
  archived: z.boolean().describe("Whether the document has been archived.").nullable(),
109
- metadata: z.object({}).describe("Custom key-value metadata associated with the document.").nullable().optional(),
109
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value metadata associated with the document.").nullable().optional(),
110
110
  reminders: z.boolean().describe("Whether reminders are enabled.").nullable().optional(),
111
111
  test_mode: z.boolean().describe("Whether the document is in test mode (not legally binding).").nullable(),
112
112
  created_at: z.string().describe("ISO 8601 timestamp when the document was created.").nullable(),
@@ -129,7 +129,7 @@ const signwellCreateDocumentFromTemplate = action("SIGNWELL_CREATE_DOCUMENT_FROM
129
129
  custom_requester_name: z.string().describe("Custom name used in email communications.").nullable().optional(),
130
130
  custom_requester_email: z.string().describe("Custom email used in communications.").nullable().optional(),
131
131
  requester_email_address: z.string().describe("Email address of the person who created the document.").nullable().optional()
132
- }).describe("Response model after creating a document from template.")
132
+ }).passthrough().describe("Response model after creating a document from template.")
133
133
  });
134
134
  //#endregion
135
135
  export { signwellCreateDocumentFromTemplate };
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-template.mjs","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentFromTemplateInput = z.object({\n name: z.string().describe(\"Name of the document being created from the template.\").optional(),\n draft: z.boolean().default(false).describe(\"If true, saves document as draft without sending. If false, sends for signing immediately. Defaults to false.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Appendix.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).describe(\"Additional file to append to the document (will not replace template files).\")).describe(\"Additional files to append to the document. Will not replace existing template files.\").optional(),\n fields: z.array(z.array(z.object({}))).describe(\"Fields to add to appended files (not existing template files). 2D array - one array of fields per appended file.\").optional(),\n labels: z.array(z.object({\n name: z.string().describe(\"Name of the label to apply to the document.\"),\n}).describe(\"Label for organizing documents in SignWell.\")).describe(\"Labels for organizing documents. Updating labels replaces any existing labels.\").optional(),\n message: z.string().describe(\"Email message for the signature request. Defaults to template or system message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to template or system subject.\").optional(),\n metadata: z.object({}).describe(\"Optional key-value metadata associated with the document. Returned in all document queries.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10. Defaults to true.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding and not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, enables special text tags for placing fields in documents. Defaults to false.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the signature request expires (minimum 1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\").optional(),\n email: z.string().describe(\"Email address of the recipient.\"),\n message: z.string().describe(\"Custom email message for this specific recipient.\").optional(),\n subject: z.string().describe(\"Custom email subject for this specific recipient.\").optional(),\n passcode: z.string().describe(\"Passcode required for this recipient to access and sign the document.\").optional(),\n send_email: z.boolean().describe(\"Whether to send signing request email to this recipient. Defaults to true.\").optional(),\n placeholder_name: z.string().describe(\"Name of the template placeholder to assign this recipient to (e.g., 'Signer 1').\").optional(),\n send_email_delay: z.number().int().describe(\"Delay in hours before sending the email to this recipient.\").optional(),\n}).describe(\"Recipient assigned to a template placeholder for document signing.\")).describe(\"Document recipients assigned to template placeholders. Recipients inherit placeholder fields and settings.\"),\n template_id: z.string().describe(\"UUID of a single template to use. Either template_id or template_ids must be provided, not both.\").optional(),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successfully signing the document.\").optional(),\n template_ids: z.array(z.string()).describe(\"List of template UUIDs to use for creating a multi-template document. Either template_id or template_ids must be provided, not both.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the entire document). Defaults to true.\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility to another person. Defaults to true.\").optional(),\n copied_contacts: z.array(z.object({\n name: z.string().describe(\"Name of the copied contact.\").optional(),\n email: z.string().describe(\"Email address of the copied contact.\"),\n}).describe(\"Contact who receives the final document once all recipients complete signing.\")).describe(\"Contacts who receive the final document once all recipients complete signing.\").optional(),\n template_fields: z.array(z.object({\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n api_id: z.string().describe(\"API identifier of the template field to prepopulate.\"),\n}).describe(\"Template field that can be prepopulated with values.\")).describe(\"Template fields to prepopulate with values. Cannot prepopulate Signature or Initials fields.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email authentication. Defaults to false.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use for OAuth isolation or embedded API settings.\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients array. Defaults to false.\").optional(),\n attachment_requests: z.array(z.object({\n name: z.string().describe(\"Name/title of the attachment being requested.\"),\n required: z.boolean().describe(\"Whether the attachment is required to complete signing. Defaults to false.\").optional(),\n recipient_id: z.string().describe(\"Unique identifier of the recipient who must upload this attachment.\"),\n}).describe(\"Attachment that a recipient must upload to complete signing.\")).describe(\"Attachments that recipients must upload to complete signing. Shown after all document fields are completed.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires all signers to sign there. Defaults to false.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications, notifications, and audit file.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used for all communications and audit file instead of the API key owner's email.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing. Defaults to false.\").optional(),\n}).describe(\"Request model for creating a document from one or more templates.\");\nconst SignwellCreateDocumentFromTemplate_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the label.\").nullable(),\n name: z.string().describe(\"Name of the label.\").nullable(),\n}).describe(\"Response model for a document label.\");\nconst SignwellCreateDocumentFromTemplate_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable().optional(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n bounced: z.boolean().describe(\"Whether the email to this recipient bounced.\").nullable().optional(),\n message: z.string().describe(\"Custom message for this recipient.\").nullable().optional(),\n subject: z.string().describe(\"Custom subject for this recipient.\").nullable().optional(),\n passcode: z.string().describe(\"Passcode for signing access.\").nullable().optional(),\n send_email: z.boolean().describe(\"Whether signing request email will be sent to this recipient.\").nullable().optional(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document.\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n bounced_details: z.string().describe(\"Details about why the email bounced.\").nullable().optional(),\n placeholder_name: z.string().describe(\"Name of the template placeholder assigned to this recipient.\").nullable().optional(),\n send_email_delay: z.number().int().describe(\"Delay in hours before sending email to this recipient.\").nullable().optional(),\n attachment_requests: z.array(z.object({})).describe(\"Attachment requests for this recipient.\").nullable().optional(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).describe(\"Response model for a recipient after document creation.\");\nconst SignwellCreateDocumentFromTemplate_CopiedContactResponseSchema = z.object({\n name: z.string().describe(\"Name of the copied contact.\").nullable().optional(),\n email: z.string().describe(\"Email address of the copied contact.\").nullable(),\n}).describe(\"Response model for a copied contact.\");\nexport const SignwellCreateDocumentFromTemplateOutput = z.object({\n id: z.string().describe(\"Unique identifier of the newly created document.\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable().optional(),\n files: z.array(SignwellCreateDocumentFromTemplate_FileResponseSchema).describe(\"List of files included in the document.\"),\n fields: z.array(z.array(z.object({}))).describe(\"Form fields defined in the document.\").nullable().optional(),\n labels: z.array(SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema).describe(\"Labels/tags applied to the document.\").nullable().optional(),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n message: z.string().describe(\"Email message for signature requests.\").nullable().optional(),\n subject: z.string().describe(\"Email subject for signature requests.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the document has been archived.\").nullable(),\n metadata: z.object({}).describe(\"Custom key-value metadata associated with the document.\").nullable().optional(),\n reminders: z.boolean().describe(\"Whether reminders are enabled.\").nullable().optional(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable().optional(),\n recipients: z.array(SignwellCreateDocumentFromTemplate_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after successful signing.\").nullable().optional(),\n template_ids: z.array(z.string()).describe(\"List of template IDs used to create this document.\").nullable().optional(),\n allow_decline: z.boolean().describe(\"Whether recipients can decline to sign.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if document creation has issues.\").nullable().optional(),\n allow_reassign: z.boolean().describe(\"Whether signers can reassign their responsibility.\").nullable().optional(),\n copied_contacts: z.array(SignwellCreateDocumentFromTemplate_CopiedContactResponseSchema).describe(\"Contacts who receive copies of completed documents.\").nullable().optional(),\n decline_message: z.string().describe(\"Message provided if the document was declined.\").nullable().optional(),\n embedded_signing: z.boolean().describe(\"Whether embedded signing (iframe) is enabled.\").nullable(),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n api_application_id: z.string().describe(\"UUID of the API Application settings used.\").nullable().optional(),\n apply_signing_order: z.boolean().describe(\"Whether signing must follow a specific order.\").nullable().optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect to if signing is declined.\").nullable().optional(),\n embedded_preview_url: z.string().describe(\"URL to preview the document.\").nullable().optional(),\n custom_requester_name: z.string().describe(\"Custom name used in email communications.\").nullable().optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications.\").nullable().optional(),\n requester_email_address: z.string().describe(\"Email address of the person who created the document.\").nullable().optional(),\n}).describe(\"Response model after creating a document from template.\");\n\nexport const signwellCreateDocumentFromTemplate = action(\"SIGNWELL_CREATE_DOCUMENT_FROM_TEMPLATE\", {\n slug: \"signwell-create-document-from-template\",\n name: \"Create Document from Template\",\n description: \"Tool to create and optionally send a new document for signing from a template. Use when you need to generate a document using a pre-configured template with placeholders. If draft is set to true the document will not be sent.\",\n input: SignwellCreateDocumentFromTemplateInput,\n output: SignwellCreateDocumentFromTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE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SAAS;EAC/G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-template.mjs","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentFromTemplateInput = z.object({\n name: z.string().describe(\"Name of the document being created from the template.\").optional(),\n draft: z.boolean().default(false).describe(\"If true, saves document as draft without sending. If false, sends for signing immediately. Defaults to false.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Appendix.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).passthrough().describe(\"Additional file to append to the document (will not replace template files).\")).describe(\"Additional files to append to the document. Will not replace existing template files.\").optional(),\n fields: z.array(z.array(z.record(z.string(), z.unknown()))).describe(\"Fields to add to appended files (not existing template files). 2D array - one array of fields per appended file.\").optional(),\n labels: z.array(z.object({\n name: z.string().describe(\"Name of the label to apply to the document.\"),\n}).passthrough().describe(\"Label for organizing documents in SignWell.\")).describe(\"Labels for organizing documents. Updating labels replaces any existing labels.\").optional(),\n message: z.string().describe(\"Email message for the signature request. Defaults to template or system message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to template or system subject.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional key-value metadata associated with the document. Returned in all document queries.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10. Defaults to true.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding and not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, enables special text tags for placing fields in documents. Defaults to false.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the signature request expires (minimum 1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\").optional(),\n email: z.string().describe(\"Email address of the recipient.\"),\n message: z.string().describe(\"Custom email message for this specific recipient.\").optional(),\n subject: z.string().describe(\"Custom email subject for this specific recipient.\").optional(),\n passcode: z.string().describe(\"Passcode required for this recipient to access and sign the document.\").optional(),\n send_email: z.boolean().describe(\"Whether to send signing request email to this recipient. Defaults to true.\").optional(),\n placeholder_name: z.string().describe(\"Name of the template placeholder to assign this recipient to (e.g., 'Signer 1').\").optional(),\n send_email_delay: z.number().int().describe(\"Delay in hours before sending the email to this recipient.\").optional(),\n}).passthrough().describe(\"Recipient assigned to a template placeholder for document signing.\")).describe(\"Document recipients assigned to template placeholders. Recipients inherit placeholder fields and settings.\"),\n template_id: z.string().describe(\"UUID of a single template to use. Either template_id or template_ids must be provided, not both.\").optional(),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successfully signing the document.\").optional(),\n template_ids: z.array(z.string()).describe(\"List of template UUIDs to use for creating a multi-template document. Either template_id or template_ids must be provided, not both.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the entire document). Defaults to true.\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility to another person. Defaults to true.\").optional(),\n copied_contacts: z.array(z.object({\n name: z.string().describe(\"Name of the copied contact.\").optional(),\n email: z.string().describe(\"Email address of the copied contact.\"),\n}).passthrough().describe(\"Contact who receives the final document once all recipients complete signing.\")).describe(\"Contacts who receive the final document once all recipients complete signing.\").optional(),\n template_fields: z.array(z.object({\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n api_id: z.string().describe(\"API identifier of the template field to prepopulate.\"),\n}).passthrough().describe(\"Template field that can be prepopulated with values.\")).describe(\"Template fields to prepopulate with values. Cannot prepopulate Signature or Initials fields.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email authentication. Defaults to false.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use for OAuth isolation or embedded API settings.\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients array. Defaults to false.\").optional(),\n attachment_requests: z.array(z.object({\n name: z.string().describe(\"Name/title of the attachment being requested.\"),\n required: z.boolean().describe(\"Whether the attachment is required to complete signing. Defaults to false.\").optional(),\n recipient_id: z.string().describe(\"Unique identifier of the recipient who must upload this attachment.\"),\n}).passthrough().describe(\"Attachment that a recipient must upload to complete signing.\")).describe(\"Attachments that recipients must upload to complete signing. Shown after all document fields are completed.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires all signers to sign there. Defaults to false.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications, notifications, and audit file.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used for all communications and audit file instead of the API key owner's email.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing. Defaults to false.\").optional(),\n}).describe(\"Request model for creating a document from one or more templates.\");\nconst SignwellCreateDocumentFromTemplate_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the label.\").nullable(),\n name: z.string().describe(\"Name of the label.\").nullable(),\n}).passthrough().describe(\"Response model for a document label.\");\nconst SignwellCreateDocumentFromTemplate_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable().optional(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n bounced: z.boolean().describe(\"Whether the email to this recipient bounced.\").nullable().optional(),\n message: z.string().describe(\"Custom message for this recipient.\").nullable().optional(),\n subject: z.string().describe(\"Custom subject for this recipient.\").nullable().optional(),\n passcode: z.string().describe(\"Passcode for signing access.\").nullable().optional(),\n send_email: z.boolean().describe(\"Whether signing request email will be sent to this recipient.\").nullable().optional(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document.\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n bounced_details: z.string().describe(\"Details about why the email bounced.\").nullable().optional(),\n placeholder_name: z.string().describe(\"Name of the template placeholder assigned to this recipient.\").nullable().optional(),\n send_email_delay: z.number().int().describe(\"Delay in hours before sending email to this recipient.\").nullable().optional(),\n attachment_requests: z.array(z.record(z.string(), z.unknown())).describe(\"Attachment requests for this recipient.\").nullable().optional(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Response model for a recipient after document creation.\");\nconst SignwellCreateDocumentFromTemplate_CopiedContactResponseSchema = z.object({\n name: z.string().describe(\"Name of the copied contact.\").nullable().optional(),\n email: z.string().describe(\"Email address of the copied contact.\").nullable(),\n}).passthrough().describe(\"Response model for a copied contact.\");\nexport const SignwellCreateDocumentFromTemplateOutput = z.object({\n id: z.string().describe(\"Unique identifier of the newly created document.\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable().optional(),\n files: z.array(SignwellCreateDocumentFromTemplate_FileResponseSchema).describe(\"List of files included in the document.\"),\n fields: z.array(z.array(z.record(z.string(), z.unknown()))).describe(\"Form fields defined in the document.\").nullable().optional(),\n labels: z.array(SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema).describe(\"Labels/tags applied to the document.\").nullable().optional(),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n message: z.string().describe(\"Email message for signature requests.\").nullable().optional(),\n subject: z.string().describe(\"Email subject for signature requests.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the document has been archived.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the document.\").nullable().optional(),\n reminders: z.boolean().describe(\"Whether reminders are enabled.\").nullable().optional(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable().optional(),\n recipients: z.array(SignwellCreateDocumentFromTemplate_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after successful signing.\").nullable().optional(),\n template_ids: z.array(z.string()).describe(\"List of template IDs used to create this document.\").nullable().optional(),\n allow_decline: z.boolean().describe(\"Whether recipients can decline to sign.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if document creation has issues.\").nullable().optional(),\n allow_reassign: z.boolean().describe(\"Whether signers can reassign their responsibility.\").nullable().optional(),\n copied_contacts: z.array(SignwellCreateDocumentFromTemplate_CopiedContactResponseSchema).describe(\"Contacts who receive copies of completed documents.\").nullable().optional(),\n decline_message: z.string().describe(\"Message provided if the document was declined.\").nullable().optional(),\n embedded_signing: z.boolean().describe(\"Whether embedded signing (iframe) is enabled.\").nullable(),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n api_application_id: z.string().describe(\"UUID of the API Application settings used.\").nullable().optional(),\n apply_signing_order: z.boolean().describe(\"Whether signing must follow a specific order.\").nullable().optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect to if signing is declined.\").nullable().optional(),\n embedded_preview_url: z.string().describe(\"URL to preview the document.\").nullable().optional(),\n custom_requester_name: z.string().describe(\"Custom name used in email communications.\").nullable().optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications.\").nullable().optional(),\n requester_email_address: z.string().describe(\"Email address of the person who created the document.\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a document from template.\");\n\nexport const signwellCreateDocumentFromTemplate = action(\"SIGNWELL_CREATE_DOCUMENT_FROM_TEMPLATE\", {\n slug: \"signwell-create-document-from-template\",\n name: \"Create Document from Template\",\n description: \"Tool to create and optionally send a new document for signing from a template. Use when you need to generate a document using a pre-configured template with placeholders. If draft is set to true the document will not be sent.\",\n input: SignwellCreateDocumentFromTemplateInput,\n output: SignwellCreateDocumentFromTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,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sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -7,11 +7,11 @@ const SignwellCreateDocumentInput = zod.z.object({
7
7
  name: zod.z.string().describe("Friendly name for this file (e.g., 'Contract.pdf')."),
8
8
  file_url: zod.z.string().describe("Public URL to fetch the file. Either file_url or file_base64 is required.").optional(),
9
9
  file_base64: zod.z.string().describe("Base64-encoded file content. Either file_url or file_base64 is required.").optional()
10
- }).describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
10
+ }).passthrough().describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
11
11
  message: zod.z.string().describe("Email message for the signature request. Defaults to system or template message.").optional(),
12
12
  subject: zod.z.string().describe("Email subject for the signature request. Defaults to system or template subject.").optional(),
13
13
  language: zod.z.string().describe("ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.").optional(),
14
- metadata: zod.z.object({}).describe("Optional key/value data associated with the document.").optional(),
14
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional key/value data associated with the document.").optional(),
15
15
  reminders: zod.z.boolean().default(true).describe("If true, sends reminders on day 3, 6, and 10.").optional(),
16
16
  test_mode: zod.z.boolean().default(false).describe("Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.").optional(),
17
17
  text_tags: zod.z.boolean().default(false).describe("If true, you may place fields via special text tags in your document.").optional(),
@@ -20,7 +20,7 @@ const SignwellCreateDocumentInput = zod.z.object({
20
20
  id: zod.z.string().describe("Unique identifier for the recipient, used to track their signing status."),
21
21
  name: zod.z.string().describe("Full name of the recipient."),
22
22
  email: zod.z.string().describe("Email address of the recipient.")
23
- }).describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
23
+ }).passthrough().describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
24
24
  redirect_url: zod.z.string().describe("URL to redirect recipients to after successful signing.").optional(),
25
25
  allow_decline: zod.z.boolean().default(true).describe("If true, recipients may decline to sign (which cancels the request).").optional(),
26
26
  allow_reassign: zod.z.boolean().default(true).describe("If true, signers may reassign their signing responsibility.").optional(),
@@ -36,7 +36,7 @@ const SignwellCreateDocumentInput = zod.z.object({
36
36
  const SignwellCreateDocument_FileResponseSchema = zod.z.object({
37
37
  name: zod.z.string().describe("Name of the file.").nullable(),
38
38
  pages_number: zod.z.number().int().describe("Number of pages in the file.").nullable()
39
- }).describe("Response model for a file in the created document.");
39
+ }).passthrough().describe("Response model for a file in the created document.");
40
40
  const SignwellCreateDocument_RecipientResponseSchema = zod.z.object({
41
41
  id: zod.z.string().describe("The recipient's unique identifier.").nullable(),
42
42
  name: zod.z.string().describe("Full name of the recipient.").nullable(),
@@ -45,7 +45,7 @@ const SignwellCreateDocument_RecipientResponseSchema = zod.z.object({
45
45
  signing_url: zod.z.string().describe("URL for the recipient to sign the document (for standard signing).").nullable().optional(),
46
46
  signing_order: zod.z.number().int().describe("Order in which this recipient signs.").nullable(),
47
47
  embedded_signing_url: zod.z.string().describe("URL for embedded signing (when embedded_signing is enabled).").nullable().optional()
48
- }).describe("Response model for a recipient after document creation.");
48
+ }).passthrough().describe("Response model for a recipient after document creation.");
49
49
  const SignwellCreateDocumentOutput = zod.z.object({
50
50
  id: zod.z.string().describe("Unique identifier of the new document.").nullable(),
51
51
  name: zod.z.string().describe("Name of the document (derived from the first file).").nullable(),
@@ -56,7 +56,7 @@ const SignwellCreateDocumentOutput = zod.z.object({
56
56
  expires_in: zod.z.number().int().describe("Number of days before the signing request expires.").nullable(),
57
57
  recipients: zod.z.array(SignwellCreateDocument_RecipientResponseSchema).describe("List of recipients with their signing URLs and status."),
58
58
  embedded_edit_url: zod.z.string().describe("URL to edit the document in SignWell's editor.").nullable().optional()
59
- }).describe("Response model after creating a document.");
59
+ }).passthrough().describe("Response model after creating a document.");
60
60
  const signwellCreateDocument = require_action.action("SIGNWELL_CREATE_DOCUMENT", {
61
61
  slug: "signwell-create-document",
62
62
  name: "Create Document",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.object({}).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAaA,IAAAA,EAAE,OAAO,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IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;CACrI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).passthrough().describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).passthrough().describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAaA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C,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;CACrI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,11 +7,11 @@ declare const SignwellCreateDocumentInput: z.ZodObject<{
7
7
  name: z.ZodString;
8
8
  file_url: z.ZodOptional<z.ZodString>;
9
9
  file_base64: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>>;
10
+ }, z.core.$loose>>;
11
11
  message: z.ZodOptional<z.ZodString>;
12
12
  subject: z.ZodOptional<z.ZodString>;
13
13
  language: z.ZodOptional<z.ZodString>;
14
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
15
  reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
16
  test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
17
  text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -20,7 +20,7 @@ declare const SignwellCreateDocumentInput: z.ZodObject<{
20
20
  id: z.ZodString;
21
21
  name: z.ZodString;
22
22
  email: z.ZodString;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  redirect_url: z.ZodOptional<z.ZodString>;
25
25
  allow_decline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
26
  allow_reassign: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -39,7 +39,7 @@ declare const SignwellCreateDocumentOutput: z.ZodObject<{
39
39
  files: z.ZodArray<z.ZodObject<{
40
40
  name: z.ZodNullable<z.ZodString>;
41
41
  pages_number: z.ZodNullable<z.ZodNumber>;
42
- }, z.core.$strip>>;
42
+ }, z.core.$loose>>;
43
43
  status: z.ZodNullable<z.ZodString>;
44
44
  test_mode: z.ZodNullable<z.ZodBoolean>;
45
45
  created_at: z.ZodNullable<z.ZodString>;
@@ -52,16 +52,18 @@ declare const SignwellCreateDocumentOutput: z.ZodObject<{
52
52
  signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  signing_order: z.ZodNullable<z.ZodNumber>;
54
54
  embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, z.core.$strip>>;
55
+ }, z.core.$loose>>;
56
56
  embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- }, z.core.$strip>;
57
+ }, z.core.$loose>;
58
58
  declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
59
59
  files: {
60
+ [x: string]: unknown;
60
61
  name: string;
61
62
  file_url?: string | undefined;
62
63
  file_base64?: string | undefined;
63
64
  }[];
64
65
  recipients: {
66
+ [x: string]: unknown;
65
67
  id: string;
66
68
  name: string;
67
69
  email: string;
@@ -70,7 +72,7 @@ declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActi
70
72
  message?: string | undefined;
71
73
  subject?: string | undefined;
72
74
  language?: string | undefined;
73
- metadata?: Record<string, never> | undefined;
75
+ metadata?: Record<string, unknown> | undefined;
74
76
  reminders?: boolean | undefined;
75
77
  test_mode?: boolean | undefined;
76
78
  text_tags?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;aAMjC,MAAA"}
1
+ {"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;aAMjC,MAAA"}
@@ -7,11 +7,11 @@ declare const SignwellCreateDocumentInput: z.ZodObject<{
7
7
  name: z.ZodString;
8
8
  file_url: z.ZodOptional<z.ZodString>;
9
9
  file_base64: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>>;
10
+ }, z.core.$loose>>;
11
11
  message: z.ZodOptional<z.ZodString>;
12
12
  subject: z.ZodOptional<z.ZodString>;
13
13
  language: z.ZodOptional<z.ZodString>;
14
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
15
  reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
16
  test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
17
  text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -20,7 +20,7 @@ declare const SignwellCreateDocumentInput: z.ZodObject<{
20
20
  id: z.ZodString;
21
21
  name: z.ZodString;
22
22
  email: z.ZodString;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  redirect_url: z.ZodOptional<z.ZodString>;
25
25
  allow_decline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
26
  allow_reassign: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -39,7 +39,7 @@ declare const SignwellCreateDocumentOutput: z.ZodObject<{
39
39
  files: z.ZodArray<z.ZodObject<{
40
40
  name: z.ZodNullable<z.ZodString>;
41
41
  pages_number: z.ZodNullable<z.ZodNumber>;
42
- }, z.core.$strip>>;
42
+ }, z.core.$loose>>;
43
43
  status: z.ZodNullable<z.ZodString>;
44
44
  test_mode: z.ZodNullable<z.ZodBoolean>;
45
45
  created_at: z.ZodNullable<z.ZodString>;
@@ -52,16 +52,18 @@ declare const SignwellCreateDocumentOutput: z.ZodObject<{
52
52
  signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  signing_order: z.ZodNullable<z.ZodNumber>;
54
54
  embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, z.core.$strip>>;
55
+ }, z.core.$loose>>;
56
56
  embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- }, z.core.$strip>;
57
+ }, z.core.$loose>;
58
58
  declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
59
59
  files: {
60
+ [x: string]: unknown;
60
61
  name: string;
61
62
  file_url?: string | undefined;
62
63
  file_base64?: string | undefined;
63
64
  }[];
64
65
  recipients: {
66
+ [x: string]: unknown;
65
67
  id: string;
66
68
  name: string;
67
69
  email: string;
@@ -70,7 +72,7 @@ declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActi
70
72
  message?: string | undefined;
71
73
  subject?: string | undefined;
72
74
  language?: string | undefined;
73
- metadata?: Record<string, never> | undefined;
75
+ metadata?: Record<string, unknown> | undefined;
74
76
  reminders?: boolean | undefined;
75
77
  test_mode?: boolean | undefined;
76
78
  text_tags?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;aAMjC,MAAA"}
1
+ {"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;aAMjC,MAAA"}
@@ -7,11 +7,11 @@ const SignwellCreateDocumentInput = z.object({
7
7
  name: z.string().describe("Friendly name for this file (e.g., 'Contract.pdf')."),
8
8
  file_url: z.string().describe("Public URL to fetch the file. Either file_url or file_base64 is required.").optional(),
9
9
  file_base64: z.string().describe("Base64-encoded file content. Either file_url or file_base64 is required.").optional()
10
- }).describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
10
+ }).passthrough().describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
11
11
  message: z.string().describe("Email message for the signature request. Defaults to system or template message.").optional(),
12
12
  subject: z.string().describe("Email subject for the signature request. Defaults to system or template subject.").optional(),
13
13
  language: z.string().describe("ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.").optional(),
14
- metadata: z.object({}).describe("Optional key/value data associated with the document.").optional(),
14
+ metadata: z.record(z.string(), z.unknown()).describe("Optional key/value data associated with the document.").optional(),
15
15
  reminders: z.boolean().default(true).describe("If true, sends reminders on day 3, 6, and 10.").optional(),
16
16
  test_mode: z.boolean().default(false).describe("Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.").optional(),
17
17
  text_tags: z.boolean().default(false).describe("If true, you may place fields via special text tags in your document.").optional(),
@@ -20,7 +20,7 @@ const SignwellCreateDocumentInput = z.object({
20
20
  id: z.string().describe("Unique identifier for the recipient, used to track their signing status."),
21
21
  name: z.string().describe("Full name of the recipient."),
22
22
  email: z.string().describe("Email address of the recipient.")
23
- }).describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
23
+ }).passthrough().describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
24
24
  redirect_url: z.string().describe("URL to redirect recipients to after successful signing.").optional(),
25
25
  allow_decline: z.boolean().default(true).describe("If true, recipients may decline to sign (which cancels the request).").optional(),
26
26
  allow_reassign: z.boolean().default(true).describe("If true, signers may reassign their signing responsibility.").optional(),
@@ -36,7 +36,7 @@ const SignwellCreateDocumentInput = z.object({
36
36
  const SignwellCreateDocument_FileResponseSchema = z.object({
37
37
  name: z.string().describe("Name of the file.").nullable(),
38
38
  pages_number: z.number().int().describe("Number of pages in the file.").nullable()
39
- }).describe("Response model for a file in the created document.");
39
+ }).passthrough().describe("Response model for a file in the created document.");
40
40
  const SignwellCreateDocument_RecipientResponseSchema = z.object({
41
41
  id: z.string().describe("The recipient's unique identifier.").nullable(),
42
42
  name: z.string().describe("Full name of the recipient.").nullable(),
@@ -45,7 +45,7 @@ const SignwellCreateDocument_RecipientResponseSchema = z.object({
45
45
  signing_url: z.string().describe("URL for the recipient to sign the document (for standard signing).").nullable().optional(),
46
46
  signing_order: z.number().int().describe("Order in which this recipient signs.").nullable(),
47
47
  embedded_signing_url: z.string().describe("URL for embedded signing (when embedded_signing is enabled).").nullable().optional()
48
- }).describe("Response model for a recipient after document creation.");
48
+ }).passthrough().describe("Response model for a recipient after document creation.");
49
49
  const signwellCreateDocument = action("SIGNWELL_CREATE_DOCUMENT", {
50
50
  slug: "signwell-create-document",
51
51
  name: "Create Document",
@@ -61,7 +61,7 @@ const signwellCreateDocument = action("SIGNWELL_CREATE_DOCUMENT", {
61
61
  expires_in: z.number().int().describe("Number of days before the signing request expires.").nullable(),
62
62
  recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe("List of recipients with their signing URLs and status."),
63
63
  embedded_edit_url: z.string().describe("URL to edit the document in SignWell's editor.").nullable().optional()
64
- }).describe("Response model after creating a document.")
64
+ }).passthrough().describe("Response model after creating a document.")
65
65
  });
66
66
  //#endregion
67
67
  export { signwellCreateDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.object({}).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,CAAC,SAAS,0EAA0E;CACpL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,UAAU,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;CAC1F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAarE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yCAAyC;EAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;EACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).passthrough().describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).passthrough().describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,CAAC,SAAS,0EAA0E;CAClM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAClJ,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uEAAu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DAAqD,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yCAAyC;EAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;EACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const SignwellCreateWebhookInput = zod.z.object({
8
8
  const SignwellCreateWebhookOutput = zod.z.object({
9
9
  id: zod.z.string().describe("Unique identifier of the new webhook.").nullable(),
10
10
  callback_url: zod.z.string().describe("The registered callback URL.").nullable()
11
- }).describe("Response model after creating a webhook.");
11
+ }).passthrough().describe("Response model after creating a webhook.");
12
12
  const signwellCreateWebhook = require_action.action("SIGNWELL_CREATE_WEBHOOK", {
13
13
  slug: "signwell-create-webhook",
14
14
  name: "Create Webhook",
@@ -1 +1 @@
1
- {"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const SignwellCreateWebhookInput: z.ZodObject<{
8
8
  declare const SignwellCreateWebhookOutput: z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodString>;
10
10
  callback_url: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const signwellCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  callbackUrl: string;
14
14
  apiApplicationId?: string | undefined;