@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 = zod.z.object({
8
8
  name: zod.z.string().describe("Friendly name for this file (e.g., 'Appendix.pdf')."),
9
9
  file_url: zod.z.string().describe("Public URL to fetch the file. Either file_url or file_base64 is required.").optional(),
10
10
  file_base64: zod.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: zod.z.array(zod.z.array(zod.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: zod.z.array(zod.z.object({ name: zod.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: zod.z.array(zod.z.array(zod.z.record(zod.z.string(), zod.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: zod.z.array(zod.z.object({ name: zod.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: zod.z.string().describe("Email message for the signature request. Defaults to template or system message.").optional(),
15
15
  subject: zod.z.string().describe("Email subject for the signature request. Defaults to template or system subject.").optional(),
16
- metadata: zod.z.object({}).describe("Optional key-value metadata associated with the document. Returned in all document queries.").optional(),
16
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional key-value metadata associated with the document. Returned in all document queries.").optional(),
17
17
  reminders: zod.z.boolean().default(true).describe("If true, sends reminders on day 3, 6, and 10. Defaults to true.").optional(),
18
18
  test_mode: zod.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: zod.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 = zod.z.object({
28
28
  send_email: zod.z.boolean().describe("Whether to send signing request email to this recipient. Defaults to true.").optional(),
29
29
  placeholder_name: zod.z.string().describe("Name of the template placeholder to assign this recipient to (e.g., 'Signer 1').").optional(),
30
30
  send_email_delay: zod.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: zod.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: zod.z.string().describe("URL to redirect recipients to after successfully signing the document.").optional(),
34
34
  template_ids: zod.z.array(zod.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 = zod.z.object({
37
37
  copied_contacts: zod.z.array(zod.z.object({
38
38
  name: zod.z.string().describe("Name of the copied contact.").optional(),
39
39
  email: zod.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: zod.z.array(zod.z.object({
42
42
  value: zod.z.union([
43
43
  zod.z.string(),
@@ -46,7 +46,7 @@ const SignwellCreateDocumentFromTemplateInput = zod.z.object({
46
46
  zod.z.boolean()
47
47
  ]),
48
48
  api_id: zod.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: zod.z.boolean().default(false).describe("If true, enables embedded signing (iframe) and disables email authentication. Defaults to false.").optional(),
51
51
  api_application_id: zod.z.string().describe("UUID of API Application settings to use for OAuth isolation or embedded API settings.").optional(),
52
52
  apply_signing_order: zod.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 = zod.z.object({
54
54
  name: zod.z.string().describe("Name/title of the attachment being requested."),
55
55
  required: zod.z.boolean().describe("Whether the attachment is required to complete signing. Defaults to false.").optional(),
56
56
  recipient_id: zod.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: zod.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: zod.z.string().describe("URL to redirect recipients to if they decline to sign.").optional(),
60
60
  custom_requester_name: zod.z.string().describe("Custom name used in all email communications, notifications, and audit file.").optional(),
@@ -64,11 +64,11 @@ const SignwellCreateDocumentFromTemplateInput = zod.z.object({
64
64
  const SignwellCreateDocumentFromTemplate_FileResponseSchema = zod.z.object({
65
65
  name: zod.z.string().describe("Name of the file.").nullable(),
66
66
  pages_number: zod.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 = zod.z.object({
69
69
  id: zod.z.string().describe("Unique identifier of the label.").nullable(),
70
70
  name: zod.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 = zod.z.object({
73
73
  id: zod.z.string().describe("The recipient's unique identifier.").nullable(),
74
74
  name: zod.z.string().describe("Full name of the recipient.").nullable().optional(),
@@ -84,24 +84,24 @@ const SignwellCreateDocumentFromTemplate_RecipientResponseSchema = zod.z.object(
84
84
  bounced_details: zod.z.string().describe("Details about why the email bounced.").nullable().optional(),
85
85
  placeholder_name: zod.z.string().describe("Name of the template placeholder assigned to this recipient.").nullable().optional(),
86
86
  send_email_delay: zod.z.number().int().describe("Delay in hours before sending email to this recipient.").nullable().optional(),
87
- attachment_requests: zod.z.array(zod.z.object({})).describe("Attachment requests for this recipient.").nullable().optional(),
87
+ attachment_requests: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Attachment requests for this recipient.").nullable().optional(),
88
88
  embedded_signing_url: zod.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 = zod.z.object({
91
91
  name: zod.z.string().describe("Name of the copied contact.").nullable().optional(),
92
92
  email: zod.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 SignwellCreateDocumentFromTemplateOutput = zod.z.object({
95
95
  id: zod.z.string().describe("Unique identifier of the newly created document.").nullable(),
96
96
  name: zod.z.string().describe("Name of the document.").nullable().optional(),
97
97
  files: zod.z.array(SignwellCreateDocumentFromTemplate_FileResponseSchema).describe("List of files included in the document."),
98
- fields: zod.z.array(zod.z.array(zod.z.object({}))).describe("Form fields defined in the document.").nullable().optional(),
98
+ fields: zod.z.array(zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))).describe("Form fields defined in the document.").nullable().optional(),
99
99
  labels: zod.z.array(SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema).describe("Labels/tags applied to the document.").nullable().optional(),
100
100
  status: zod.z.string().describe("Current status of the document (e.g., 'Created', 'Pending', 'Completed').").nullable(),
101
101
  message: zod.z.string().describe("Email message for signature requests.").nullable().optional(),
102
102
  subject: zod.z.string().describe("Email subject for signature requests.").nullable().optional(),
103
103
  archived: zod.z.boolean().describe("Whether the document has been archived.").nullable(),
104
- metadata: zod.z.object({}).describe("Custom key-value metadata associated with the document.").nullable().optional(),
104
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value metadata associated with the document.").nullable().optional(),
105
105
  reminders: zod.z.boolean().describe("Whether reminders are enabled.").nullable().optional(),
106
106
  test_mode: zod.z.boolean().describe("Whether the document is in test mode (not legally binding).").nullable(),
107
107
  created_at: zod.z.string().describe("ISO 8601 timestamp when the document was created.").nullable(),
@@ -124,7 +124,7 @@ const SignwellCreateDocumentFromTemplateOutput = zod.z.object({
124
124
  custom_requester_name: zod.z.string().describe("Custom name used in email communications.").nullable().optional(),
125
125
  custom_requester_email: zod.z.string().describe("Custom email used in communications.").nullable().optional(),
126
126
  requester_email_address: zod.z.string().describe("Email address of the person who created the document.").nullable().optional()
127
- }).describe("Response model after creating a document from template.");
127
+ }).passthrough().describe("Response model after creating a document from template.");
128
128
  const signwellCreateDocumentFromTemplate = require_action.action("SIGNWELL_CREATE_DOCUMENT_FROM_TEMPLATE", {
129
129
  slug: "signwell-create-document-from-template",
130
130
  name: "Create Document from Template",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-template.cjs","names":["z","action"],"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,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,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,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACtM,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC7K,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EACzE,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC9J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC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,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-template.cjs","names":["z","action"],"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,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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,CAAC,SAAS;CAC9F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,14 +8,14 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
8
8
  name: z.ZodString;
9
9
  file_url: z.ZodOptional<z.ZodString>;
10
10
  file_base64: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>>>;
12
- fields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
11
+ }, z.core.$loose>>>;
12
+ fields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
13
13
  labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
14
  name: z.ZodString;
15
- }, z.core.$strip>>>;
15
+ }, z.core.$loose>>>;
16
16
  message: z.ZodOptional<z.ZodString>;
17
17
  subject: z.ZodOptional<z.ZodString>;
18
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
18
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19
19
  reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
20
20
  test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
21
21
  text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -30,7 +30,7 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
30
30
  send_email: z.ZodOptional<z.ZodBoolean>;
31
31
  placeholder_name: z.ZodOptional<z.ZodString>;
32
32
  send_email_delay: z.ZodOptional<z.ZodNumber>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  template_id: z.ZodOptional<z.ZodString>;
35
35
  redirect_url: z.ZodOptional<z.ZodString>;
36
36
  template_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -39,11 +39,11 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
39
39
  copied_contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
40
  name: z.ZodOptional<z.ZodString>;
41
41
  email: z.ZodString;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  template_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
44
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
45
45
  api_id: z.ZodString;
46
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>>;
47
47
  embedded_signing: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
48
48
  api_application_id: z.ZodOptional<z.ZodString>;
49
49
  apply_signing_order: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -51,7 +51,7 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
51
51
  name: z.ZodString;
52
52
  required: z.ZodOptional<z.ZodBoolean>;
53
53
  recipient_id: z.ZodString;
54
- }, z.core.$strip>>>;
54
+ }, z.core.$loose>>>;
55
55
  with_signature_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
56
56
  decline_redirect_url: z.ZodOptional<z.ZodString>;
57
57
  custom_requester_name: z.ZodOptional<z.ZodString>;
@@ -64,17 +64,17 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
64
64
  files: z.ZodArray<z.ZodObject<{
65
65
  name: z.ZodNullable<z.ZodString>;
66
66
  pages_number: z.ZodNullable<z.ZodNumber>;
67
- }, z.core.$strip>>;
68
- fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>>;
67
+ }, z.core.$loose>>;
68
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
69
69
  labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
70
70
  id: z.ZodNullable<z.ZodString>;
71
71
  name: z.ZodNullable<z.ZodString>;
72
- }, z.core.$strip>>>>;
72
+ }, z.core.$loose>>>>;
73
73
  status: z.ZodNullable<z.ZodString>;
74
74
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
75
  subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
76
  archived: z.ZodNullable<z.ZodBoolean>;
77
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
77
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
78
78
  reminders: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
79
79
  test_mode: z.ZodNullable<z.ZodBoolean>;
80
80
  created_at: z.ZodNullable<z.ZodString>;
@@ -94,9 +94,9 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
94
94
  bounced_details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
95
  placeholder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
96
  send_email_delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
- attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
97
+ attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
98
98
  embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
- }, z.core.$strip>>;
99
+ }, z.core.$loose>>;
100
100
  updated_at: z.ZodNullable<z.ZodString>;
101
101
  redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  template_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -106,7 +106,7 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
106
106
  copied_contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
107
107
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
108
  email: z.ZodNullable<z.ZodString>;
109
- }, z.core.$strip>>>>;
109
+ }, z.core.$loose>>>>;
110
110
  decline_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
111
  embedded_signing: z.ZodNullable<z.ZodBoolean>;
112
112
  embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -117,9 +117,10 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
117
117
  custom_requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
118
  custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
119
  requester_email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
- }, z.core.$strip>;
120
+ }, z.core.$loose>;
121
121
  declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
122
122
  recipients: {
123
+ [x: string]: unknown;
123
124
  id: string;
124
125
  email: string;
125
126
  name?: string | undefined;
@@ -133,17 +134,19 @@ declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").
133
134
  name?: string | undefined;
134
135
  draft?: boolean | undefined;
135
136
  files?: {
137
+ [x: string]: unknown;
136
138
  name: string;
137
139
  file_url?: string | undefined;
138
140
  file_base64?: string | undefined;
139
141
  }[] | undefined;
140
- fields?: Record<string, never>[][] | undefined;
142
+ fields?: Record<string, unknown>[][] | undefined;
141
143
  labels?: {
144
+ [x: string]: unknown;
142
145
  name: string;
143
146
  }[] | undefined;
144
147
  message?: string | undefined;
145
148
  subject?: string | undefined;
146
- metadata?: Record<string, never> | undefined;
149
+ metadata?: Record<string, unknown> | undefined;
147
150
  reminders?: boolean | undefined;
148
151
  test_mode?: boolean | undefined;
149
152
  text_tags?: boolean | undefined;
@@ -154,10 +157,12 @@ declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").
154
157
  allow_decline?: boolean | undefined;
155
158
  allow_reassign?: boolean | undefined;
156
159
  copied_contacts?: {
160
+ [x: string]: unknown;
157
161
  email: string;
158
162
  name?: string | undefined;
159
163
  }[] | undefined;
160
164
  template_fields?: {
165
+ [x: string]: unknown;
161
166
  value: string | number | boolean;
162
167
  api_id: string;
163
168
  }[] | undefined;
@@ -165,6 +170,7 @@ declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").
165
170
  api_application_id?: string | undefined;
166
171
  apply_signing_order?: boolean | undefined;
167
172
  attachment_requests?: {
173
+ [x: string]: unknown;
168
174
  name: string;
169
175
  recipient_id: string;
170
176
  required?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-template.d.cts","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuFvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxC,kCAAA,gCAAkC,wBAAA;;;;;;;;;;;;;;;;;;;WAM7C,MAAA;;;;;;aAAA,MAAA"}
1
+ {"version":3,"file":"create-document-from-template.d.cts","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuFvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxC,kCAAA,gCAAkC,wBAAA;;;;;;;;;;;;;;;;;;;;;WAM7C,MAAA;;;;;;;aAAA,MAAA"}
@@ -8,14 +8,14 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
8
8
  name: z.ZodString;
9
9
  file_url: z.ZodOptional<z.ZodString>;
10
10
  file_base64: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>>>;
12
- fields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
11
+ }, z.core.$loose>>>;
12
+ fields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
13
13
  labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
14
  name: z.ZodString;
15
- }, z.core.$strip>>>;
15
+ }, z.core.$loose>>>;
16
16
  message: z.ZodOptional<z.ZodString>;
17
17
  subject: z.ZodOptional<z.ZodString>;
18
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
18
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19
19
  reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
20
20
  test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
21
21
  text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -30,7 +30,7 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
30
30
  send_email: z.ZodOptional<z.ZodBoolean>;
31
31
  placeholder_name: z.ZodOptional<z.ZodString>;
32
32
  send_email_delay: z.ZodOptional<z.ZodNumber>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  template_id: z.ZodOptional<z.ZodString>;
35
35
  redirect_url: z.ZodOptional<z.ZodString>;
36
36
  template_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -39,11 +39,11 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
39
39
  copied_contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
40
  name: z.ZodOptional<z.ZodString>;
41
41
  email: z.ZodString;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  template_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
44
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
45
45
  api_id: z.ZodString;
46
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>>;
47
47
  embedded_signing: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
48
48
  api_application_id: z.ZodOptional<z.ZodString>;
49
49
  apply_signing_order: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -51,7 +51,7 @@ declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
51
51
  name: z.ZodString;
52
52
  required: z.ZodOptional<z.ZodBoolean>;
53
53
  recipient_id: z.ZodString;
54
- }, z.core.$strip>>>;
54
+ }, z.core.$loose>>>;
55
55
  with_signature_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
56
56
  decline_redirect_url: z.ZodOptional<z.ZodString>;
57
57
  custom_requester_name: z.ZodOptional<z.ZodString>;
@@ -64,17 +64,17 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
64
64
  files: z.ZodArray<z.ZodObject<{
65
65
  name: z.ZodNullable<z.ZodString>;
66
66
  pages_number: z.ZodNullable<z.ZodNumber>;
67
- }, z.core.$strip>>;
68
- fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>>;
67
+ }, z.core.$loose>>;
68
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
69
69
  labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
70
70
  id: z.ZodNullable<z.ZodString>;
71
71
  name: z.ZodNullable<z.ZodString>;
72
- }, z.core.$strip>>>>;
72
+ }, z.core.$loose>>>>;
73
73
  status: z.ZodNullable<z.ZodString>;
74
74
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
75
  subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
76
  archived: z.ZodNullable<z.ZodBoolean>;
77
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
77
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
78
78
  reminders: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
79
79
  test_mode: z.ZodNullable<z.ZodBoolean>;
80
80
  created_at: z.ZodNullable<z.ZodString>;
@@ -94,9 +94,9 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
94
94
  bounced_details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
95
  placeholder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
96
  send_email_delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
- attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
97
+ attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
98
98
  embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
- }, z.core.$strip>>;
99
+ }, z.core.$loose>>;
100
100
  updated_at: z.ZodNullable<z.ZodString>;
101
101
  redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  template_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -106,7 +106,7 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
106
106
  copied_contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
107
107
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
108
  email: z.ZodNullable<z.ZodString>;
109
- }, z.core.$strip>>>>;
109
+ }, z.core.$loose>>>>;
110
110
  decline_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
111
  embedded_signing: z.ZodNullable<z.ZodBoolean>;
112
112
  embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -117,9 +117,10 @@ declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
117
117
  custom_requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
118
  custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
119
  requester_email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
- }, z.core.$strip>;
120
+ }, z.core.$loose>;
121
121
  declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
122
122
  recipients: {
123
+ [x: string]: unknown;
123
124
  id: string;
124
125
  email: string;
125
126
  name?: string | undefined;
@@ -133,17 +134,19 @@ declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").
133
134
  name?: string | undefined;
134
135
  draft?: boolean | undefined;
135
136
  files?: {
137
+ [x: string]: unknown;
136
138
  name: string;
137
139
  file_url?: string | undefined;
138
140
  file_base64?: string | undefined;
139
141
  }[] | undefined;
140
- fields?: Record<string, never>[][] | undefined;
142
+ fields?: Record<string, unknown>[][] | undefined;
141
143
  labels?: {
144
+ [x: string]: unknown;
142
145
  name: string;
143
146
  }[] | undefined;
144
147
  message?: string | undefined;
145
148
  subject?: string | undefined;
146
- metadata?: Record<string, never> | undefined;
149
+ metadata?: Record<string, unknown> | undefined;
147
150
  reminders?: boolean | undefined;
148
151
  test_mode?: boolean | undefined;
149
152
  text_tags?: boolean | undefined;
@@ -154,10 +157,12 @@ declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").
154
157
  allow_decline?: boolean | undefined;
155
158
  allow_reassign?: boolean | undefined;
156
159
  copied_contacts?: {
160
+ [x: string]: unknown;
157
161
  email: string;
158
162
  name?: string | undefined;
159
163
  }[] | undefined;
160
164
  template_fields?: {
165
+ [x: string]: unknown;
161
166
  value: string | number | boolean;
162
167
  api_id: string;
163
168
  }[] | undefined;
@@ -165,6 +170,7 @@ declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").
165
170
  api_application_id?: string | undefined;
166
171
  apply_signing_order?: boolean | undefined;
167
172
  attachment_requests?: {
173
+ [x: string]: unknown;
168
174
  name: string;
169
175
  recipient_id: string;
170
176
  required?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-template.d.mts","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuFvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxC,kCAAA,gCAAkC,wBAAA;;;;;;;;;;;;;;;;;;;WAM7C,MAAA;;;;;;aAAA,MAAA"}
1
+ {"version":3,"file":"create-document-from-template.d.mts","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuFvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxC,kCAAA,gCAAkC,wBAAA;;;;;;;;;;;;;;;;;;;;;WAM7C,MAAA;;;;;;;aAAA,MAAA"}