@keystrokehq/signwell 0.1.4 → 0.1.6
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 +1 -0
- package/dist/actions/create-document-from-template.cjs.map +1 -1
- package/dist/actions/create-document-from-template.d.cts +3 -63
- package/dist/actions/create-document-from-template.d.cts.map +1 -1
- package/dist/actions/create-document-from-template.d.mts +3 -63
- package/dist/actions/create-document-from-template.d.mts.map +1 -1
- package/dist/actions/create-document-from-template.mjs +1 -0
- package/dist/actions/create-document-from-template.mjs.map +1 -1
- package/dist/actions/create-document.cjs +1 -0
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +3 -34
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +3 -34
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +1 -0
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +1 -0
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +3 -4
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +3 -4
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +1 -0
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -0
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +3 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -0
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -0
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +3 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +3 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -0
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/get-credentials.cjs +1 -0
- package/dist/actions/get-credentials.cjs.map +1 -1
- package/dist/actions/get-credentials.d.cts +3 -1
- package/dist/actions/get-credentials.d.cts.map +1 -1
- package/dist/actions/get-credentials.d.mts +3 -1
- package/dist/actions/get-credentials.d.mts.map +1 -1
- package/dist/actions/get-credentials.mjs +1 -0
- package/dist/actions/get-credentials.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -0
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +3 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +1 -0
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/list-bulk-sends.cjs +1 -0
- package/dist/actions/list-bulk-sends.cjs.map +1 -1
- package/dist/actions/list-bulk-sends.d.cts +3 -6
- package/dist/actions/list-bulk-sends.d.cts.map +1 -1
- package/dist/actions/list-bulk-sends.d.mts +3 -6
- package/dist/actions/list-bulk-sends.d.mts.map +1 -1
- package/dist/actions/list-bulk-sends.mjs +1 -0
- package/dist/actions/list-bulk-sends.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -0
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +3 -1
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +3 -1
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -0
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/send-reminder.cjs +1 -0
- package/dist/actions/send-reminder.cjs.map +1 -1
- package/dist/actions/send-reminder.d.cts +3 -8
- package/dist/actions/send-reminder.d.cts.map +1 -1
- package/dist/actions/send-reminder.d.mts +3 -8
- package/dist/actions/send-reminder.d.mts.map +1 -1
- package/dist/actions/send-reminder.mjs +1 -0
- package/dist/actions/send-reminder.mjs.map +1 -1
- package/dist/actions/update-and-send-document.cjs +1 -0
- package/dist/actions/update-and-send-document.cjs.map +1 -1
- package/dist/actions/update-and-send-document.d.cts +3 -24
- package/dist/actions/update-and-send-document.d.cts.map +1 -1
- package/dist/actions/update-and-send-document.d.mts +3 -24
- package/dist/actions/update-and-send-document.d.mts.map +1 -1
- package/dist/actions/update-and-send-document.mjs +1 -0
- package/dist/actions/update-and-send-document.mjs.map +1 -1
- package/dist/actions/update-template.cjs +1 -0
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +3 -20
- package/dist/actions/update-template.d.cts.map +1 -1
- package/dist/actions/update-template.d.mts +3 -20
- package/dist/actions/update-template.d.mts.map +1 -1
- package/dist/actions/update-template.mjs +1 -0
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).passthrough().describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).passthrough().describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,CAAC,SAAS,0EAA0E;CAClM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAClJ,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uEAAuE,CAAC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CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yCAAyC;EAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;EACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).passthrough().describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).passthrough().describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument: AppAction<\n typeof SignwellCreateDocumentInput,\n typeof SignwellCreateDocumentOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mapp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A6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;EACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook: AppAction<\n typeof SignwellCreateWebhookInput,\n typeof SignwellCreateWebhookOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-webhook.d.ts
|
|
@@ -9,10 +11,7 @@ declare const SignwellCreateWebhookOutput: z.ZodObject<{
|
|
|
9
11
|
id: z.ZodNullable<z.ZodString>;
|
|
10
12
|
callback_url: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const signwellCreateWebhook:
|
|
13
|
-
callbackUrl: string;
|
|
14
|
-
apiApplicationId?: string | undefined;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const signwellCreateWebhook: AppAction<typeof SignwellCreateWebhookInput, typeof SignwellCreateWebhookOutput, typeof signwell.credential>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { signwellCreateWebhook };
|
|
18
17
|
//# sourceMappingURL=create-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-webhook.d.ts
|
|
@@ -9,10 +11,7 @@ declare const SignwellCreateWebhookOutput: z.ZodObject<{
|
|
|
9
11
|
id: z.ZodNullable<z.ZodString>;
|
|
10
12
|
callback_url: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const signwellCreateWebhook:
|
|
13
|
-
callbackUrl: string;
|
|
14
|
-
apiApplicationId?: string | undefined;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const signwellCreateWebhook: AppAction<typeof SignwellCreateWebhookInput, typeof SignwellCreateWebhookOutput, typeof signwell.credential>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { signwellCreateWebhook };
|
|
18
17
|
//# sourceMappingURL=create-webhook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook: AppAction<\n typeof SignwellCreateWebhookInput,\n typeof SignwellCreateWebhookOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;;AAeA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBwC,EAAE,OAAO;EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,uDAcH;CACP,QAdyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the document to delete. This ID is returned when creating a document via SIGNWELL_CREATE_DOCUMENT or can be retrieved using SIGNWELL_GET_DOCUMENT.\"),\n}).describe(\"Request model for deleting a document.\");\nexport const SignwellDeleteDocumentOutput = z.object({\n deleted: z.boolean().default(true).describe(\"Indicates whether the document was successfully deleted.\").nullable().optional(),\n message: z.string().default(\"Document deleted successfully\").describe(\"Confirmation message describing the result of the deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document deletion confirmation.\");\n\nexport const signwellDeleteDocument = action(\"SIGNWELL_DELETE_DOCUMENT\", {\n slug: \"signwell-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a document (and cancel signing if in progress). Use when you need to remove a document by ID after confirming it.\",\n input: SignwellDeleteDocumentInput,\n output: SignwellDeleteDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellDeleteDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the document to delete. This ID is returned when creating a document via SIGNWELL_CREATE_DOCUMENT or can be retrieved using SIGNWELL_GET_DOCUMENT.\"),\n}).describe(\"Request model for deleting a document.\");\nexport const SignwellDeleteDocumentOutput = z.object({\n deleted: z.boolean().default(true).describe(\"Indicates whether the document was successfully deleted.\").nullable().optional(),\n message: z.string().default(\"Document deleted successfully\").describe(\"Confirmation message describing the result of the deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document deletion confirmation.\");\n\nexport const signwellDeleteDocument: AppAction<\n typeof SignwellDeleteDocumentInput,\n typeof SignwellDeleteDocumentOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_DELETE_DOCUMENT\", {\n slug: \"signwell-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a document (and cancel signing if in progress). Use when you need to remove a document by ID after confirming it.\",\n input: SignwellDeleteDocumentInput,\n output: SignwellDeleteDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,EAC9M,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,+BAA+B,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-document.d.ts
|
|
@@ -8,9 +10,7 @@ declare const SignwellDeleteDocumentOutput: z.ZodObject<{
|
|
|
8
10
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
11
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const signwellDeleteDocument:
|
|
12
|
-
id: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const signwellDeleteDocument: AppAction<typeof SignwellDeleteDocumentInput, typeof SignwellDeleteDocumentOutput, typeof signwell.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { signwellDeleteDocument };
|
|
16
16
|
//# sourceMappingURL=delete-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-document.d.ts
|
|
@@ -8,9 +10,7 @@ declare const SignwellDeleteDocumentOutput: z.ZodObject<{
|
|
|
8
10
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
11
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const signwellDeleteDocument:
|
|
12
|
-
id: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const signwellDeleteDocument: AppAction<typeof SignwellDeleteDocumentInput, typeof SignwellDeleteDocumentOutput, typeof signwell.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { signwellDeleteDocument };
|
|
16
16
|
//# sourceMappingURL=delete-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the document to delete. This ID is returned when creating a document via SIGNWELL_CREATE_DOCUMENT or can be retrieved using SIGNWELL_GET_DOCUMENT.\"),\n}).describe(\"Request model for deleting a document.\");\nexport const SignwellDeleteDocumentOutput = z.object({\n deleted: z.boolean().default(true).describe(\"Indicates whether the document was successfully deleted.\").nullable().optional(),\n message: z.string().default(\"Document deleted successfully\").describe(\"Confirmation message describing the result of the deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document deletion confirmation.\");\n\nexport const signwellDeleteDocument = action(\"SIGNWELL_DELETE_DOCUMENT\", {\n slug: \"signwell-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a document (and cancel signing if in progress). Use when you need to remove a document by ID after confirming it.\",\n input: SignwellDeleteDocumentInput,\n output: SignwellDeleteDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellDeleteDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the document to delete. This ID is returned when creating a document via SIGNWELL_CREATE_DOCUMENT or can be retrieved using SIGNWELL_GET_DOCUMENT.\"),\n}).describe(\"Request model for deleting a document.\");\nexport const SignwellDeleteDocumentOutput = z.object({\n deleted: z.boolean().default(true).describe(\"Indicates whether the document was successfully deleted.\").nullable().optional(),\n message: z.string().default(\"Document deleted successfully\").describe(\"Confirmation message describing the result of the deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document deletion confirmation.\");\n\nexport const signwellDeleteDocument: AppAction<\n typeof SignwellDeleteDocumentInput,\n typeof SignwellDeleteDocumentOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_DELETE_DOCUMENT\", {\n slug: \"signwell-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a document (and cancel signing if in progress). Use when you need to remove a document by ID after confirming it.\",\n input: SignwellDeleteDocumentInput,\n output: SignwellDeleteDocumentOutput,\n});\n"],"mappings":";;;AAcA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,EAC9M,CAAC,CAAC,CAAC,SAAS,wCAcH;CACP,QAd0C,EAAE,OAAO;EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,+BAA+B,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteWebhookInput = z.object({\n id: z.string().describe(\"The UUID of the webhook to delete. Obtain this from the list webhooks action.\"),\n}).describe(\"Request model for deleting a webhook.\");\nexport const SignwellDeleteWebhookOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (no content).\");\n\nexport const signwellDeleteWebhook = action(\"SIGNWELL_DELETE_WEBHOOK\", {\n slug: \"signwell-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.\",\n input: SignwellDeleteWebhookInput,\n output: SignwellDeleteWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellDeleteWebhookInput = z.object({\n id: z.string().describe(\"The UUID of the webhook to delete. Obtain this from the list webhooks action.\"),\n}).describe(\"Request model for deleting a webhook.\");\nexport const SignwellDeleteWebhookOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (no content).\");\n\nexport const signwellDeleteWebhook: AppAction<\n typeof SignwellDeleteWebhookInput,\n typeof SignwellDeleteWebhookOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_DELETE_WEBHOOK\", {\n slug: \"signwell-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.\",\n input: SignwellDeleteWebhookInput,\n output: SignwellDeleteWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,EACzG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,8BAA8BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAEvJ,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-webhook.d.ts
|
|
@@ -5,9 +7,7 @@ declare const SignwellDeleteWebhookInput: z.ZodObject<{
|
|
|
5
7
|
id: z.ZodString;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
declare const SignwellDeleteWebhookOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
-
declare const signwellDeleteWebhook:
|
|
9
|
-
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
|
+
declare const signwellDeleteWebhook: AppAction<typeof SignwellDeleteWebhookInput, typeof SignwellDeleteWebhookOutput, typeof signwell.credential>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { signwellDeleteWebhook };
|
|
13
13
|
//# sourceMappingURL=delete-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-webhook.d.ts
|
|
@@ -5,9 +7,7 @@ declare const SignwellDeleteWebhookInput: z.ZodObject<{
|
|
|
5
7
|
id: z.ZodString;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
declare const SignwellDeleteWebhookOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
-
declare const signwellDeleteWebhook:
|
|
9
|
-
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
|
+
declare const signwellDeleteWebhook: AppAction<typeof SignwellDeleteWebhookInput, typeof SignwellDeleteWebhookOutput, typeof signwell.credential>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { signwellDeleteWebhook };
|
|
13
13
|
//# sourceMappingURL=delete-webhook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.mjs","names":[],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteWebhookInput = z.object({\n id: z.string().describe(\"The UUID of the webhook to delete. Obtain this from the list webhooks action.\"),\n}).describe(\"Request model for deleting a webhook.\");\nexport const SignwellDeleteWebhookOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (no content).\");\n\nexport const signwellDeleteWebhook = action(\"SIGNWELL_DELETE_WEBHOOK\", {\n slug: \"signwell-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.\",\n input: SignwellDeleteWebhookInput,\n output: SignwellDeleteWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-webhook.mjs","names":[],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellDeleteWebhookInput = z.object({\n id: z.string().describe(\"The UUID of the webhook to delete. Obtain this from the list webhooks action.\"),\n}).describe(\"Request model for deleting a webhook.\");\nexport const SignwellDeleteWebhookOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (no content).\");\n\nexport const signwellDeleteWebhook: AppAction<\n typeof SignwellDeleteWebhookInput,\n typeof SignwellDeleteWebhookOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_DELETE_WEBHOOK\", {\n slug: \"signwell-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.\",\n input: SignwellDeleteWebhookInput,\n output: SignwellDeleteWebhookOutput,\n});\n"],"mappings":";;;AAWA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,EACzG,CAAC,CAAC,CAAC,SAAS,uCAWH;CACP,QAXyC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAW5E;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.cjs","names":["z","action"],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetCredentialsInput = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\").nullable(),\n active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe(\"List of active users in the account\").nullable().optional(),\n active_templates: z.number().int().default(0).describe(\"Number of active templates\").nullable().optional(),\n can_create_template: z.boolean().default(true).describe(\"Whether user can create templates\").nullable().optional(),\n can_create_tracking_document: z.boolean().default(true).describe(\"Whether user can create tracking documents\").nullable().optional(),\n can_create_completion_document: z.boolean().default(true).describe(\"Whether user can create completion documents\").nullable().optional(),\n}).passthrough().describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Full name\").nullable(),\n email: z.string().describe(\"Email address\").nullable(),\n website: z.string().describe(\"Website URL\").nullable().optional(),\n archived: z.boolean().default(false).describe(\"Whether contact is archived\").nullable().optional(),\n initials: z.string().describe(\"User initials\").nullable().optional(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number\").nullable().optional(),\n alt_phone_number: z.string().describe(\"Alternative phone number\").nullable().optional(),\n}).passthrough().describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\").nullable(),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\").nullable(),\n user: SignwellGetCredentials_UserInfoSchema.nullable(),\n account: SignwellGetCredentials_AccountInfoSchema.nullable(),\n contact: SignwellGetCredentials_ContactInfoSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether membership is archived\").nullable().optional(),\n workspace: SignwellGetCredentials_AccountInfoSchema.nullable(),\n}).passthrough().describe(\"Account information associated with the current API key.\");\n\nexport const signwellGetCredentials = action(\"SIGNWELL_GET_CREDENTIALS\", {\n slug: \"signwell-get-credentials\",\n name: \"Get Credentials\",\n description: \"Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.\",\n input: SignwellGetCredentialsInput,\n output: SignwellGetCredentialsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-credentials.cjs","names":["z","action"],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellGetCredentialsInput = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\").nullable(),\n active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe(\"List of active users in the account\").nullable().optional(),\n active_templates: z.number().int().default(0).describe(\"Number of active templates\").nullable().optional(),\n can_create_template: z.boolean().default(true).describe(\"Whether user can create templates\").nullable().optional(),\n can_create_tracking_document: z.boolean().default(true).describe(\"Whether user can create tracking documents\").nullable().optional(),\n can_create_completion_document: z.boolean().default(true).describe(\"Whether user can create completion documents\").nullable().optional(),\n}).passthrough().describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Full name\").nullable(),\n email: z.string().describe(\"Email address\").nullable(),\n website: z.string().describe(\"Website URL\").nullable().optional(),\n archived: z.boolean().default(false).describe(\"Whether contact is archived\").nullable().optional(),\n initials: z.string().describe(\"User initials\").nullable().optional(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number\").nullable().optional(),\n alt_phone_number: z.string().describe(\"Alternative phone number\").nullable().optional(),\n}).passthrough().describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\").nullable(),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\").nullable(),\n user: SignwellGetCredentials_UserInfoSchema.nullable(),\n account: SignwellGetCredentials_AccountInfoSchema.nullable(),\n contact: SignwellGetCredentials_ContactInfoSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether membership is archived\").nullable().optional(),\n workspace: SignwellGetCredentials_AccountInfoSchema.nullable(),\n}).passthrough().describe(\"Account information associated with the current API key.\");\n\nexport const signwellGetCredentials: AppAction<\n typeof SignwellGetCredentialsInput,\n typeof SignwellGetCredentialsOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_GET_CREDENTIALS\", {\n slug: \"signwell-get-credentials\",\n name: \"Get Credentials\",\n description: \"Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.\",\n input: SignwellGetCredentialsInput,\n output: SignwellGetCredentialsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC5I,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EA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,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC3F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAM,sCAAsC,SAAS;CACrD,SAAS,yCAAyC,SAAS;CAC3D,SAAS,yCAAyC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,yCAAyC,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-credentials.d.ts
|
|
@@ -55,7 +57,7 @@ declare const SignwellGetCredentialsOutput: z.ZodObject<{
|
|
|
55
57
|
can_create_completion_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
56
58
|
}, z.core.$loose>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
|
-
declare const signwellGetCredentials:
|
|
60
|
+
declare const signwellGetCredentials: AppAction<typeof SignwellGetCredentialsInput, typeof SignwellGetCredentialsOutput, typeof signwell.credential>;
|
|
59
61
|
//#endregion
|
|
60
62
|
export { signwellGetCredentials };
|
|
61
63
|
//# sourceMappingURL=get-credentials.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.d.cts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-credentials.d.cts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-credentials.d.ts
|
|
@@ -55,7 +57,7 @@ declare const SignwellGetCredentialsOutput: z.ZodObject<{
|
|
|
55
57
|
can_create_completion_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
56
58
|
}, z.core.$loose>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
|
-
declare const signwellGetCredentials:
|
|
60
|
+
declare const signwellGetCredentials: AppAction<typeof SignwellGetCredentialsInput, typeof SignwellGetCredentialsOutput, typeof signwell.credential>;
|
|
59
61
|
//#endregion
|
|
60
62
|
export { signwellGetCredentials };
|
|
61
63
|
//# sourceMappingURL=get-credentials.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.d.mts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-credentials.d.mts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.mjs","names":[],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetCredentialsInput = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\").nullable(),\n active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe(\"List of active users in the account\").nullable().optional(),\n active_templates: z.number().int().default(0).describe(\"Number of active templates\").nullable().optional(),\n can_create_template: z.boolean().default(true).describe(\"Whether user can create templates\").nullable().optional(),\n can_create_tracking_document: z.boolean().default(true).describe(\"Whether user can create tracking documents\").nullable().optional(),\n can_create_completion_document: z.boolean().default(true).describe(\"Whether user can create completion documents\").nullable().optional(),\n}).passthrough().describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Full name\").nullable(),\n email: z.string().describe(\"Email address\").nullable(),\n website: z.string().describe(\"Website URL\").nullable().optional(),\n archived: z.boolean().default(false).describe(\"Whether contact is archived\").nullable().optional(),\n initials: z.string().describe(\"User initials\").nullable().optional(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number\").nullable().optional(),\n alt_phone_number: z.string().describe(\"Alternative phone number\").nullable().optional(),\n}).passthrough().describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\").nullable(),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\").nullable(),\n user: SignwellGetCredentials_UserInfoSchema.nullable(),\n account: SignwellGetCredentials_AccountInfoSchema.nullable(),\n contact: SignwellGetCredentials_ContactInfoSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether membership is archived\").nullable().optional(),\n workspace: SignwellGetCredentials_AccountInfoSchema.nullable(),\n}).passthrough().describe(\"Account information associated with the current API key.\");\n\nexport const signwellGetCredentials = action(\"SIGNWELL_GET_CREDENTIALS\", {\n slug: \"signwell-get-credentials\",\n name: \"Get Credentials\",\n description: \"Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.\",\n input: SignwellGetCredentialsInput,\n output: SignwellGetCredentialsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-credentials.mjs","names":[],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellGetCredentialsInput = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\").nullable(),\n active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe(\"List of active users in the account\").nullable().optional(),\n active_templates: z.number().int().default(0).describe(\"Number of active templates\").nullable().optional(),\n can_create_template: z.boolean().default(true).describe(\"Whether user can create templates\").nullable().optional(),\n can_create_tracking_document: z.boolean().default(true).describe(\"Whether user can create tracking documents\").nullable().optional(),\n can_create_completion_document: z.boolean().default(true).describe(\"Whether user can create completion documents\").nullable().optional(),\n}).passthrough().describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Full name\").nullable(),\n email: z.string().describe(\"Email address\").nullable(),\n website: z.string().describe(\"Website URL\").nullable().optional(),\n archived: z.boolean().default(false).describe(\"Whether contact is archived\").nullable().optional(),\n initials: z.string().describe(\"User initials\").nullable().optional(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number\").nullable().optional(),\n alt_phone_number: z.string().describe(\"Alternative phone number\").nullable().optional(),\n}).passthrough().describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\").nullable(),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\").nullable(),\n user: SignwellGetCredentials_UserInfoSchema.nullable(),\n account: SignwellGetCredentials_AccountInfoSchema.nullable(),\n contact: SignwellGetCredentials_ContactInfoSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether membership is archived\").nullable().optional(),\n workspace: SignwellGetCredentials_AccountInfoSchema.nullable(),\n}).passthrough().describe(\"Account information associated with the current API key.\");\n\nexport const signwellGetCredentials: AppAction<\n typeof SignwellGetCredentialsInput,\n typeof SignwellGetCredentialsOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_GET_CREDENTIALS\", {\n slug: \"signwell-get-credentials\",\n name: \"Get Credentials\",\n description: \"Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.\",\n input: SignwellGetCredentialsInput,\n output: SignwellGetCredentialsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC5I,MAAM,wCAAwC,EAAE,OAAO;CACrD,IA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C,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAW3E,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC3F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClG,MAAM,sCAAsC,SAAS;EACrD,SAAS,yCAAyC,SAAS;EAC3D,SAAS,yCAAyC,SAAS;EAC3D,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,yCAAyC,SAAS;CAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) for the document to retrieve. This ID is returned when creating a document via the API.\"),\n}).describe(\"Request model for fetching a document by its unique ID.\");\nconst SignwellGetDocument_DocumentFileSchema = z.object({\n name: z.string().describe(\"The name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Information about a file in the document.\");\nconst SignwellGetDocument_RecipientSchema = z.object({\n id: z.string().describe(\"Unique identifier for this recipient.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Current signing status (e.g., 'draft', 'sent', 'completed', 'declined').\").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().default(false).describe(\"Whether to send signing request via email.\").nullable().optional(),\n signing_url: z.string().describe(\"URL where the recipient can 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 send_email_delay: z.number().int().default(0).describe(\"Delay in hours before sending email.\").nullable().optional(),\n attachment_requests: z.array(z.record(z.string(), z.unknown())).describe(\"List of 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(\"Information about a document recipient/signer.\");\nexport const SignwellGetDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the document.\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n files: z.array(SignwellGetDocument_DocumentFileSchema).describe(\"List of files attached to this document.\").nullable().optional(),\n fields: z.array(z.unknown()).describe(\"Form fields defined in the document.\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels/tags applied to the document.\").nullable().optional(),\n status: z.string().describe(\"Current document status: 'Draft', 'Created', 'Pending', 'Completed', 'Cancelled', 'Expired', 'Bounced', or 'Declined'.\").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 language: z.string().describe(\"Language code for the document (e.g., 'en', 'fr').\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the document.\").nullable().optional(),\n reminders: z.boolean().default(true).describe(\"Whether reminders are enabled.\").nullable().optional(),\n test_mode: z.boolean().describe(\"Whether this is a test document (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when 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(SignwellGetDocument_RecipientSchema).describe(\"List of recipients/signers for this document.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when document was last updated.\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after successful signing.\").nullable().optional(),\n allow_decline: z.boolean().default(true).describe(\"Whether recipients can decline to sign.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if document has issues (e.g., bounced email).\").nullable().optional(),\n allow_reassign: z.boolean().default(true).describe(\"Whether signers can reassign their responsibility.\").nullable().optional(),\n checkbox_groups: z.array(z.record(z.string(), z.unknown())).describe(\"Checkbox groups defined in the document.\").nullable().optional(),\n copied_contacts: z.array(z.record(z.string(), z.unknown())).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().default(false).describe(\"Whether embedded signing (iframe) is enabled.\").nullable().optional(),\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().default(false).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(),\n}).passthrough().describe(\"Response containing detailed document information from SignWell.\");\n\nexport const signwellGetDocument = action(\"SIGNWELL_GET_DOCUMENT\", {\n slug: \"signwell-get-document\",\n name: \"Get Document\",\n description: \"Tool to return a document and all associated document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A,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,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;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { signwell } from \"../app\";\n\nexport const SignwellGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) for the document to retrieve. This ID is returned when creating a document via the API.\"),\n}).describe(\"Request model for fetching a document by its unique ID.\");\nconst SignwellGetDocument_DocumentFileSchema = z.object({\n name: z.string().describe(\"The name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Information about a file in the document.\");\nconst SignwellGetDocument_RecipientSchema = z.object({\n id: z.string().describe(\"Unique identifier for this recipient.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Current signing status (e.g., 'draft', 'sent', 'completed', 'declined').\").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().default(false).describe(\"Whether to send signing request via email.\").nullable().optional(),\n signing_url: z.string().describe(\"URL where the recipient can 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 send_email_delay: z.number().int().default(0).describe(\"Delay in hours before sending email.\").nullable().optional(),\n attachment_requests: z.array(z.record(z.string(), z.unknown())).describe(\"List of 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(\"Information about a document recipient/signer.\");\nexport const SignwellGetDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the document.\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n files: z.array(SignwellGetDocument_DocumentFileSchema).describe(\"List of files attached to this document.\").nullable().optional(),\n fields: z.array(z.unknown()).describe(\"Form fields defined in the document.\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels/tags applied to the document.\").nullable().optional(),\n status: z.string().describe(\"Current document status: 'Draft', 'Created', 'Pending', 'Completed', 'Cancelled', 'Expired', 'Bounced', or 'Declined'.\").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 language: z.string().describe(\"Language code for the document (e.g., 'en', 'fr').\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the document.\").nullable().optional(),\n reminders: z.boolean().default(true).describe(\"Whether reminders are enabled.\").nullable().optional(),\n test_mode: z.boolean().describe(\"Whether this is a test document (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when 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(SignwellGetDocument_RecipientSchema).describe(\"List of recipients/signers for this document.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when document was last updated.\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after successful signing.\").nullable().optional(),\n allow_decline: z.boolean().default(true).describe(\"Whether recipients can decline to sign.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if document has issues (e.g., bounced email).\").nullable().optional(),\n allow_reassign: z.boolean().default(true).describe(\"Whether signers can reassign their responsibility.\").nullable().optional(),\n checkbox_groups: z.array(z.record(z.string(), z.unknown())).describe(\"Checkbox groups defined in the document.\").nullable().optional(),\n copied_contacts: z.array(z.record(z.string(), z.unknown())).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().default(false).describe(\"Whether embedded signing (iframe) is enabled.\").nullable().optional(),\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().default(false).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(),\n}).passthrough().describe(\"Response containing detailed document information from SignWell.\");\n\nexport const signwellGetDocument: AppAction<\n typeof SignwellGetDocumentInput,\n typeof SignwellGetDocumentOutput,\n typeof signwell.credential\n> = action(\"SIGNWELL_GET_DOCUMENT\", {\n slug: \"signwell-get-document\",\n name: \"Get Document\",\n description: \"Tool to return a document and all associated document data. Use when you need to fetch document details by ID.\",\n input: SignwellGetDocumentInput,\n output: SignwellGetDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,EAChJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAA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+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-document.d.ts
|
|
@@ -58,9 +60,7 @@ declare const SignwellGetDocumentOutput: z.ZodObject<{
|
|
|
58
60
|
custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
61
|
requester_email_address: z.ZodNullable<z.ZodString>;
|
|
60
62
|
}, z.core.$loose>;
|
|
61
|
-
declare const signwellGetDocument:
|
|
62
|
-
id: string;
|
|
63
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
63
|
+
declare const signwellGetDocument: AppAction<typeof SignwellGetDocumentInput, typeof SignwellGetDocumentOutput, typeof signwell.credential>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { signwellGetDocument };
|
|
66
66
|
//# sourceMappingURL=get-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAwBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoCzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { signwell } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-document.d.ts
|
|
@@ -58,9 +60,7 @@ declare const SignwellGetDocumentOutput: z.ZodObject<{
|
|
|
58
60
|
custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
61
|
requester_email_address: z.ZodNullable<z.ZodString>;
|
|
60
62
|
}, z.core.$loose>;
|
|
61
|
-
declare const signwellGetDocument:
|
|
62
|
-
id: string;
|
|
63
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
63
|
+
declare const signwellGetDocument: AppAction<typeof SignwellGetDocumentInput, typeof SignwellGetDocumentOutput, typeof signwell.credential>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { signwellGetDocument };
|
|
66
66
|
//# sourceMappingURL=get-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAwBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoCzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|