@keystrokehq/signwell 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-document-from-template.cjs +16 -16
- package/dist/actions/create-document-from-template.cjs.map +1 -1
- package/dist/actions/create-document-from-template.d.cts +174 -3
- package/dist/actions/create-document-from-template.d.cts.map +1 -1
- package/dist/actions/create-document-from-template.d.mts +174 -3
- package/dist/actions/create-document-from-template.d.mts.map +1 -1
- package/dist/actions/create-document-from-template.mjs +16 -16
- package/dist/actions/create-document-from-template.mjs.map +1 -1
- package/dist/actions/create-document.cjs +13 -13
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +86 -3
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +86 -3
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +13 -13
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +2 -2
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +12 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +12 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +2 -2
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +10 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +10 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +7 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +7 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/get-credentials.cjs +14 -14
- package/dist/actions/get-credentials.cjs.map +1 -1
- package/dist/actions/get-credentials.d.cts +55 -3
- package/dist/actions/get-credentials.d.cts.map +1 -1
- package/dist/actions/get-credentials.d.mts +55 -3
- package/dist/actions/get-credentials.d.mts.map +1 -1
- package/dist/actions/get-credentials.mjs +14 -14
- package/dist/actions/get-credentials.mjs.map +1 -1
- package/dist/actions/get-document.cjs +16 -16
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +60 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +60 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +16 -16
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/list-bulk-sends.cjs +10 -10
- package/dist/actions/list-bulk-sends.cjs.map +1 -1
- package/dist/actions/list-bulk-sends.d.cts +28 -3
- package/dist/actions/list-bulk-sends.d.cts.map +1 -1
- package/dist/actions/list-bulk-sends.d.mts +28 -3
- package/dist/actions/list-bulk-sends.d.mts.map +1 -1
- package/dist/actions/list-bulk-sends.mjs +10 -10
- package/dist/actions/list-bulk-sends.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +2 -2
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +10 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +10 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +2 -2
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/send-reminder.cjs +18 -18
- package/dist/actions/send-reminder.cjs.map +1 -1
- package/dist/actions/send-reminder.d.cts +75 -3
- package/dist/actions/send-reminder.d.cts.map +1 -1
- package/dist/actions/send-reminder.d.mts +75 -3
- package/dist/actions/send-reminder.d.mts.map +1 -1
- package/dist/actions/send-reminder.mjs +18 -18
- package/dist/actions/send-reminder.mjs.map +1 -1
- package/dist/actions/update-and-send-document.cjs +17 -17
- package/dist/actions/update-and-send-document.cjs.map +1 -1
- package/dist/actions/update-and-send-document.d.cts +112 -3
- package/dist/actions/update-and-send-document.d.cts.map +1 -1
- package/dist/actions/update-and-send-document.d.mts +112 -3
- package/dist/actions/update-and-send-document.d.mts.map +1 -1
- package/dist/actions/update-and-send-document.mjs +17 -17
- package/dist/actions/update-and-send-document.mjs.map +1 -1
- package/dist/actions/update-template.cjs +16 -16
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +83 -3
- package/dist/actions/update-template.d.cts.map +1 -1
- package/dist/actions/update-template.d.mts +83 -3
- package/dist/actions/update-template.d.mts.map +1 -1
- package/dist/actions/update-template.mjs +16 -16
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["signwell","executeSignwellTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { signwell } from \"./app\";\nimport { executeSignwellTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["signwell","executeSignwellTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { signwell } from \"./app\";\nimport { executeSignwellTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return signwell.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSignwellTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { signwell } from \"./app\";\nimport { executeSignwellTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { signwell } from \"./app\";\nimport { executeSignwellTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return signwell.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSignwellTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -62,25 +62,25 @@ const SignwellCreateDocumentFromTemplateInput = zod.z.object({
|
|
|
62
62
|
embedded_signing_notifications: zod.z.boolean().default(false).describe("If true, sends completion notifications when using embedded signing. Defaults to false.").optional()
|
|
63
63
|
}).describe("Request model for creating a document from one or more templates.");
|
|
64
64
|
const SignwellCreateDocumentFromTemplate_FileResponseSchema = zod.z.object({
|
|
65
|
-
name: zod.z.string().describe("Name of the file."),
|
|
66
|
-
pages_number: zod.z.number().int().describe("Number of pages in the file.")
|
|
65
|
+
name: zod.z.string().describe("Name of the file.").nullable(),
|
|
66
|
+
pages_number: zod.z.number().int().describe("Number of pages in the file.").nullable()
|
|
67
67
|
}).describe("Response model for a file in the created document.");
|
|
68
68
|
const SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema = zod.z.object({
|
|
69
|
-
id: zod.z.string().describe("Unique identifier of the label."),
|
|
70
|
-
name: zod.z.string().describe("Name of the label.")
|
|
69
|
+
id: zod.z.string().describe("Unique identifier of the label.").nullable(),
|
|
70
|
+
name: zod.z.string().describe("Name of the label.").nullable()
|
|
71
71
|
}).describe("Response model for a document label.");
|
|
72
72
|
const SignwellCreateDocumentFromTemplate_RecipientResponseSchema = zod.z.object({
|
|
73
|
-
id: zod.z.string().describe("The recipient's unique identifier."),
|
|
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(),
|
|
75
|
-
email: zod.z.string().describe("Email address of the recipient."),
|
|
76
|
-
status: zod.z.string().describe("Recipient's signing status (e.g., 'created', 'sent', 'completed')."),
|
|
75
|
+
email: zod.z.string().describe("Email address of the recipient.").nullable(),
|
|
76
|
+
status: zod.z.string().describe("Recipient's signing status (e.g., 'created', 'sent', 'completed').").nullable(),
|
|
77
77
|
bounced: zod.z.boolean().describe("Whether the email to this recipient bounced.").nullable().optional(),
|
|
78
78
|
message: zod.z.string().describe("Custom message for this recipient.").nullable().optional(),
|
|
79
79
|
subject: zod.z.string().describe("Custom subject for this recipient.").nullable().optional(),
|
|
80
80
|
passcode: zod.z.string().describe("Passcode for signing access.").nullable().optional(),
|
|
81
81
|
send_email: zod.z.boolean().describe("Whether signing request email will be sent to this recipient.").nullable().optional(),
|
|
82
82
|
signing_url: zod.z.string().describe("URL for the recipient to sign the document.").nullable().optional(),
|
|
83
|
-
signing_order: zod.z.number().int().describe("Order in which this recipient signs."),
|
|
83
|
+
signing_order: zod.z.number().int().describe("Order in which this recipient signs.").nullable(),
|
|
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(),
|
|
@@ -89,25 +89,25 @@ const SignwellCreateDocumentFromTemplate_RecipientResponseSchema = zod.z.object(
|
|
|
89
89
|
}).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
|
-
email: zod.z.string().describe("Email address of the copied contact.")
|
|
92
|
+
email: zod.z.string().describe("Email address of the copied contact.").nullable()
|
|
93
93
|
}).describe("Response model for a copied contact.");
|
|
94
94
|
const SignwellCreateDocumentFromTemplateOutput = zod.z.object({
|
|
95
|
-
id: zod.z.string().describe("Unique identifier of the newly created document."),
|
|
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
98
|
fields: zod.z.array(zod.z.array(zod.z.object({}))).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
|
-
status: zod.z.string().describe("Current status of the document (e.g., 'Created', 'Pending', 'Completed')."),
|
|
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
|
-
archived: zod.z.boolean().describe("Whether the document has been archived."),
|
|
103
|
+
archived: zod.z.boolean().describe("Whether the document has been archived.").nullable(),
|
|
104
104
|
metadata: zod.z.object({}).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
|
-
test_mode: zod.z.boolean().describe("Whether the document is in test mode (not legally binding)."),
|
|
107
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when the document was created."),
|
|
106
|
+
test_mode: zod.z.boolean().describe("Whether the document is in test mode (not legally binding).").nullable(),
|
|
107
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the document was created.").nullable(),
|
|
108
108
|
expires_in: zod.z.number().int().describe("Number of days before the signing request expires.").nullable().optional(),
|
|
109
109
|
recipients: zod.z.array(SignwellCreateDocumentFromTemplate_RecipientResponseSchema).describe("List of recipients with their signing URLs and status."),
|
|
110
|
-
updated_at: zod.z.string().describe("ISO 8601 timestamp when the document was last updated."),
|
|
110
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the document was last updated.").nullable(),
|
|
111
111
|
redirect_url: zod.z.string().describe("URL to redirect to after successful signing.").nullable().optional(),
|
|
112
112
|
template_ids: zod.z.array(zod.z.string()).describe("List of template IDs used to create this document.").nullable().optional(),
|
|
113
113
|
allow_decline: zod.z.boolean().describe("Whether recipients can decline to sign.").nullable().optional(),
|
|
@@ -115,7 +115,7 @@ const SignwellCreateDocumentFromTemplateOutput = zod.z.object({
|
|
|
115
115
|
allow_reassign: zod.z.boolean().describe("Whether signers can reassign their responsibility.").nullable().optional(),
|
|
116
116
|
copied_contacts: zod.z.array(SignwellCreateDocumentFromTemplate_CopiedContactResponseSchema).describe("Contacts who receive copies of completed documents.").nullable().optional(),
|
|
117
117
|
decline_message: zod.z.string().describe("Message provided if the document was declined.").nullable().optional(),
|
|
118
|
-
embedded_signing: zod.z.boolean().describe("Whether embedded signing (iframe) is enabled."),
|
|
118
|
+
embedded_signing: zod.z.boolean().describe("Whether embedded signing (iframe) is enabled.").nullable(),
|
|
119
119
|
embedded_edit_url: zod.z.string().describe("URL to edit the document in SignWell's editor.").nullable().optional(),
|
|
120
120
|
api_application_id: zod.z.string().describe("UUID of the API Application settings used.").nullable().optional(),
|
|
121
121
|
apply_signing_order: zod.z.boolean().describe("Whether signing must follow a specific order.").nullable().optional(),
|
|
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file.\"),\n pages_number: z.number().int().describe(\"Number of pages in the file.\"),\n}).describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocumentFromTemplate_DocumentLabelResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the label.\"),\n name: z.string().describe(\"Name of the label.\"),\n}).describe(\"Response model for a document label.\");\nconst SignwellCreateDocumentFromTemplate_RecipientResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\"),\n name: z.string().describe(\"Full name of the recipient.\").nullable().optional(),\n email: z.string().describe(\"Email address of the recipient.\"),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\"),\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.\"),\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.ZodTypeAny = 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.\"),\n}).describe(\"Response model for a copied contact.\");\nexport const SignwellCreateDocumentFromTemplateOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the newly created document.\"),\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').\"),\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.\"),\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).\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\"),\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.\"),\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.\"),\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,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,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,CAA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AC,SAAS,+CAA+C;CACtF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,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}).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;CAC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AS,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,9 +1,180 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document-from-template.d.ts
|
|
4
|
-
declare const SignwellCreateDocumentFromTemplateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
draft: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
file_url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
file_base64: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
13
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
message: z.ZodOptional<z.ZodString>;
|
|
17
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
19
|
+
reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
20
|
+
test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
21
|
+
text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
22
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
|
+
email: z.ZodString;
|
|
27
|
+
message: z.ZodOptional<z.ZodString>;
|
|
28
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
29
|
+
passcode: z.ZodOptional<z.ZodString>;
|
|
30
|
+
send_email: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
placeholder_name: z.ZodOptional<z.ZodString>;
|
|
32
|
+
send_email_delay: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
template_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
redirect_url: z.ZodOptional<z.ZodString>;
|
|
36
|
+
template_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
allow_decline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
38
|
+
allow_reassign: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
39
|
+
copied_contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodOptional<z.ZodString>;
|
|
41
|
+
email: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
template_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
45
|
+
api_id: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
embedded_signing: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
48
|
+
api_application_id: z.ZodOptional<z.ZodString>;
|
|
49
|
+
apply_signing_order: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
50
|
+
attachment_requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
recipient_id: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
55
|
+
with_signature_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
56
|
+
decline_redirect_url: z.ZodOptional<z.ZodString>;
|
|
57
|
+
custom_requester_name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
custom_requester_email: z.ZodOptional<z.ZodString>;
|
|
59
|
+
embedded_signing_notifications: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
|
|
62
|
+
id: z.ZodNullable<z.ZodString>;
|
|
63
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
files: z.ZodArray<z.ZodObject<{
|
|
65
|
+
name: z.ZodNullable<z.ZodString>;
|
|
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>>>>>;
|
|
69
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
70
|
+
id: z.ZodNullable<z.ZodString>;
|
|
71
|
+
name: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>>>;
|
|
73
|
+
status: z.ZodNullable<z.ZodString>;
|
|
74
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
77
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
78
|
+
reminders: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
test_mode: z.ZodNullable<z.ZodBoolean>;
|
|
80
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
81
|
+
expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
82
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodNullable<z.ZodString>;
|
|
84
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
email: z.ZodNullable<z.ZodString>;
|
|
86
|
+
status: z.ZodNullable<z.ZodString>;
|
|
87
|
+
bounced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
88
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
passcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
send_email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
92
|
+
signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
signing_order: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
bounced_details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
placeholder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
send_email_delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
98
|
+
embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
101
|
+
redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
template_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
103
|
+
allow_decline: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
allow_reassign: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
106
|
+
copied_contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
107
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
email: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>>>;
|
|
110
|
+
decline_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
embedded_signing: z.ZodNullable<z.ZodBoolean>;
|
|
112
|
+
embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
api_application_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
apply_signing_order: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
115
|
+
decline_redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
embedded_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
custom_requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
requester_email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
122
|
+
recipients: {
|
|
123
|
+
id: string;
|
|
124
|
+
email: string;
|
|
125
|
+
name?: string | undefined;
|
|
126
|
+
message?: string | undefined;
|
|
127
|
+
subject?: string | undefined;
|
|
128
|
+
passcode?: string | undefined;
|
|
129
|
+
send_email?: boolean | undefined;
|
|
130
|
+
placeholder_name?: string | undefined;
|
|
131
|
+
send_email_delay?: number | undefined;
|
|
132
|
+
}[];
|
|
133
|
+
name?: string | undefined;
|
|
134
|
+
draft?: boolean | undefined;
|
|
135
|
+
files?: {
|
|
136
|
+
name: string;
|
|
137
|
+
file_url?: string | undefined;
|
|
138
|
+
file_base64?: string | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
fields?: Record<string, never>[][] | undefined;
|
|
141
|
+
labels?: {
|
|
142
|
+
name: string;
|
|
143
|
+
}[] | undefined;
|
|
144
|
+
message?: string | undefined;
|
|
145
|
+
subject?: string | undefined;
|
|
146
|
+
metadata?: Record<string, never> | undefined;
|
|
147
|
+
reminders?: boolean | undefined;
|
|
148
|
+
test_mode?: boolean | undefined;
|
|
149
|
+
text_tags?: boolean | undefined;
|
|
150
|
+
expires_in?: number | undefined;
|
|
151
|
+
template_id?: string | undefined;
|
|
152
|
+
redirect_url?: string | undefined;
|
|
153
|
+
template_ids?: string[] | undefined;
|
|
154
|
+
allow_decline?: boolean | undefined;
|
|
155
|
+
allow_reassign?: boolean | undefined;
|
|
156
|
+
copied_contacts?: {
|
|
157
|
+
email: string;
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
template_fields?: {
|
|
161
|
+
value: string | number | boolean;
|
|
162
|
+
api_id: string;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
embedded_signing?: boolean | undefined;
|
|
165
|
+
api_application_id?: string | undefined;
|
|
166
|
+
apply_signing_order?: boolean | undefined;
|
|
167
|
+
attachment_requests?: {
|
|
168
|
+
name: string;
|
|
169
|
+
recipient_id: string;
|
|
170
|
+
required?: boolean | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
with_signature_page?: boolean | undefined;
|
|
173
|
+
decline_redirect_url?: string | undefined;
|
|
174
|
+
custom_requester_name?: string | undefined;
|
|
175
|
+
custom_requester_email?: string | undefined;
|
|
176
|
+
embedded_signing_notifications?: boolean | undefined;
|
|
177
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
178
|
//#endregion
|
|
8
179
|
export { signwellCreateDocumentFromTemplate };
|
|
9
180
|
//# sourceMappingURL=create-document-from-template.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document-from-template.d.cts","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"mappings":";;;cAIa,uCAAA,
|
|
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,9 +1,180 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document-from-template.d.ts
|
|
4
|
-
declare const SignwellCreateDocumentFromTemplateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellCreateDocumentFromTemplateInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
draft: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
file_url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
file_base64: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
13
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
message: z.ZodOptional<z.ZodString>;
|
|
17
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
19
|
+
reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
20
|
+
test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
21
|
+
text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
22
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
|
+
email: z.ZodString;
|
|
27
|
+
message: z.ZodOptional<z.ZodString>;
|
|
28
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
29
|
+
passcode: z.ZodOptional<z.ZodString>;
|
|
30
|
+
send_email: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
placeholder_name: z.ZodOptional<z.ZodString>;
|
|
32
|
+
send_email_delay: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
template_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
redirect_url: z.ZodOptional<z.ZodString>;
|
|
36
|
+
template_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
allow_decline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
38
|
+
allow_reassign: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
39
|
+
copied_contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodOptional<z.ZodString>;
|
|
41
|
+
email: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
template_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
45
|
+
api_id: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
embedded_signing: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
48
|
+
api_application_id: z.ZodOptional<z.ZodString>;
|
|
49
|
+
apply_signing_order: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
50
|
+
attachment_requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
recipient_id: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
55
|
+
with_signature_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
56
|
+
decline_redirect_url: z.ZodOptional<z.ZodString>;
|
|
57
|
+
custom_requester_name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
custom_requester_email: z.ZodOptional<z.ZodString>;
|
|
59
|
+
embedded_signing_notifications: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const SignwellCreateDocumentFromTemplateOutput: z.ZodObject<{
|
|
62
|
+
id: z.ZodNullable<z.ZodString>;
|
|
63
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
files: z.ZodArray<z.ZodObject<{
|
|
65
|
+
name: z.ZodNullable<z.ZodString>;
|
|
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>>>>>;
|
|
69
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
70
|
+
id: z.ZodNullable<z.ZodString>;
|
|
71
|
+
name: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>>>;
|
|
73
|
+
status: z.ZodNullable<z.ZodString>;
|
|
74
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
77
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
78
|
+
reminders: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
test_mode: z.ZodNullable<z.ZodBoolean>;
|
|
80
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
81
|
+
expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
82
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodNullable<z.ZodString>;
|
|
84
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
email: z.ZodNullable<z.ZodString>;
|
|
86
|
+
status: z.ZodNullable<z.ZodString>;
|
|
87
|
+
bounced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
88
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
passcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
send_email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
92
|
+
signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
signing_order: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
bounced_details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
placeholder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
send_email_delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
98
|
+
embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
101
|
+
redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
template_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
103
|
+
allow_decline: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
allow_reassign: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
106
|
+
copied_contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
107
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
email: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>>>;
|
|
110
|
+
decline_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
embedded_signing: z.ZodNullable<z.ZodBoolean>;
|
|
112
|
+
embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
api_application_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
apply_signing_order: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
115
|
+
decline_redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
embedded_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
custom_requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
requester_email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
declare const signwellCreateDocumentFromTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
122
|
+
recipients: {
|
|
123
|
+
id: string;
|
|
124
|
+
email: string;
|
|
125
|
+
name?: string | undefined;
|
|
126
|
+
message?: string | undefined;
|
|
127
|
+
subject?: string | undefined;
|
|
128
|
+
passcode?: string | undefined;
|
|
129
|
+
send_email?: boolean | undefined;
|
|
130
|
+
placeholder_name?: string | undefined;
|
|
131
|
+
send_email_delay?: number | undefined;
|
|
132
|
+
}[];
|
|
133
|
+
name?: string | undefined;
|
|
134
|
+
draft?: boolean | undefined;
|
|
135
|
+
files?: {
|
|
136
|
+
name: string;
|
|
137
|
+
file_url?: string | undefined;
|
|
138
|
+
file_base64?: string | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
fields?: Record<string, never>[][] | undefined;
|
|
141
|
+
labels?: {
|
|
142
|
+
name: string;
|
|
143
|
+
}[] | undefined;
|
|
144
|
+
message?: string | undefined;
|
|
145
|
+
subject?: string | undefined;
|
|
146
|
+
metadata?: Record<string, never> | undefined;
|
|
147
|
+
reminders?: boolean | undefined;
|
|
148
|
+
test_mode?: boolean | undefined;
|
|
149
|
+
text_tags?: boolean | undefined;
|
|
150
|
+
expires_in?: number | undefined;
|
|
151
|
+
template_id?: string | undefined;
|
|
152
|
+
redirect_url?: string | undefined;
|
|
153
|
+
template_ids?: string[] | undefined;
|
|
154
|
+
allow_decline?: boolean | undefined;
|
|
155
|
+
allow_reassign?: boolean | undefined;
|
|
156
|
+
copied_contacts?: {
|
|
157
|
+
email: string;
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
template_fields?: {
|
|
161
|
+
value: string | number | boolean;
|
|
162
|
+
api_id: string;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
embedded_signing?: boolean | undefined;
|
|
165
|
+
api_application_id?: string | undefined;
|
|
166
|
+
apply_signing_order?: boolean | undefined;
|
|
167
|
+
attachment_requests?: {
|
|
168
|
+
name: string;
|
|
169
|
+
recipient_id: string;
|
|
170
|
+
required?: boolean | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
with_signature_page?: boolean | undefined;
|
|
173
|
+
decline_redirect_url?: string | undefined;
|
|
174
|
+
custom_requester_name?: string | undefined;
|
|
175
|
+
custom_requester_email?: string | undefined;
|
|
176
|
+
embedded_signing_notifications?: boolean | undefined;
|
|
177
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
178
|
//#endregion
|
|
8
179
|
export { signwellCreateDocumentFromTemplate };
|
|
9
180
|
//# sourceMappingURL=create-document-from-template.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document-from-template.d.mts","names":[],"sources":["../../src/actions/create-document-from-template.ts"],"mappings":";;;cAIa,uCAAA,
|
|
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"}
|