@keystrokehq/signwell 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-document-from-template.cjs +138 -0
  7. package/dist/actions/create-document-from-template.cjs.map +1 -0
  8. package/dist/actions/create-document-from-template.d.cts +9 -0
  9. package/dist/actions/create-document-from-template.d.cts.map +1 -0
  10. package/dist/actions/create-document-from-template.d.mts +9 -0
  11. package/dist/actions/create-document-from-template.d.mts.map +1 -0
  12. package/dist/actions/create-document-from-template.mjs +137 -0
  13. package/dist/actions/create-document-from-template.mjs.map +1 -0
  14. package/dist/actions/create-document.cjs +70 -0
  15. package/dist/actions/create-document.cjs.map +1 -0
  16. package/dist/actions/create-document.d.cts +9 -0
  17. package/dist/actions/create-document.d.cts.map +1 -0
  18. package/dist/actions/create-document.d.mts +9 -0
  19. package/dist/actions/create-document.d.mts.map +1 -0
  20. package/dist/actions/create-document.mjs +69 -0
  21. package/dist/actions/create-document.mjs.map +1 -0
  22. package/dist/actions/create-webhook.cjs +22 -0
  23. package/dist/actions/create-webhook.cjs.map +1 -0
  24. package/dist/actions/create-webhook.d.cts +9 -0
  25. package/dist/actions/create-webhook.d.cts.map +1 -0
  26. package/dist/actions/create-webhook.d.mts +9 -0
  27. package/dist/actions/create-webhook.d.mts.map +1 -0
  28. package/dist/actions/create-webhook.mjs +19 -0
  29. package/dist/actions/create-webhook.mjs.map +1 -0
  30. package/dist/actions/delete-document.cjs +19 -0
  31. package/dist/actions/delete-document.cjs.map +1 -0
  32. package/dist/actions/delete-document.d.cts +9 -0
  33. package/dist/actions/delete-document.d.cts.map +1 -0
  34. package/dist/actions/delete-document.d.mts +9 -0
  35. package/dist/actions/delete-document.d.mts.map +1 -0
  36. package/dist/actions/delete-document.mjs +16 -0
  37. package/dist/actions/delete-document.mjs.map +1 -0
  38. package/dist/actions/delete-webhook.cjs +16 -0
  39. package/dist/actions/delete-webhook.cjs.map +1 -0
  40. package/dist/actions/delete-webhook.d.cts +9 -0
  41. package/dist/actions/delete-webhook.d.cts.map +1 -0
  42. package/dist/actions/delete-webhook.d.mts +9 -0
  43. package/dist/actions/delete-webhook.d.mts.map +1 -0
  44. package/dist/actions/delete-webhook.mjs +13 -0
  45. package/dist/actions/delete-webhook.mjs.map +1 -0
  46. package/dist/actions/get-credentials.cjs +58 -0
  47. package/dist/actions/get-credentials.cjs.map +1 -0
  48. package/dist/actions/get-credentials.d.cts +9 -0
  49. package/dist/actions/get-credentials.d.cts.map +1 -0
  50. package/dist/actions/get-credentials.d.mts +9 -0
  51. package/dist/actions/get-credentials.d.mts.map +1 -0
  52. package/dist/actions/get-credentials.mjs +57 -0
  53. package/dist/actions/get-credentials.mjs.map +1 -0
  54. package/dist/actions/get-document.cjs +71 -0
  55. package/dist/actions/get-document.cjs.map +1 -0
  56. package/dist/actions/get-document.d.cts +9 -0
  57. package/dist/actions/get-document.d.cts.map +1 -0
  58. package/dist/actions/get-document.d.mts +9 -0
  59. package/dist/actions/get-document.d.mts.map +1 -0
  60. package/dist/actions/get-document.mjs +70 -0
  61. package/dist/actions/get-document.mjs.map +1 -0
  62. package/dist/actions/index.cjs +25 -0
  63. package/dist/actions/index.d.cts +13 -0
  64. package/dist/actions/index.d.mts +13 -0
  65. package/dist/actions/index.mjs +13 -0
  66. package/dist/actions/list-bulk-sends.cjs +37 -0
  67. package/dist/actions/list-bulk-sends.cjs.map +1 -0
  68. package/dist/actions/list-bulk-sends.d.cts +9 -0
  69. package/dist/actions/list-bulk-sends.d.cts.map +1 -0
  70. package/dist/actions/list-bulk-sends.d.mts +9 -0
  71. package/dist/actions/list-bulk-sends.d.mts.map +1 -0
  72. package/dist/actions/list-bulk-sends.mjs +36 -0
  73. package/dist/actions/list-bulk-sends.mjs.map +1 -0
  74. package/dist/actions/list-webhooks.cjs +22 -0
  75. package/dist/actions/list-webhooks.cjs.map +1 -0
  76. package/dist/actions/list-webhooks.d.cts +9 -0
  77. package/dist/actions/list-webhooks.d.cts.map +1 -0
  78. package/dist/actions/list-webhooks.d.mts +9 -0
  79. package/dist/actions/list-webhooks.d.mts.map +1 -0
  80. package/dist/actions/list-webhooks.mjs +21 -0
  81. package/dist/actions/list-webhooks.mjs.map +1 -0
  82. package/dist/actions/send-reminder.cjs +87 -0
  83. package/dist/actions/send-reminder.cjs.map +1 -0
  84. package/dist/actions/send-reminder.d.cts +9 -0
  85. package/dist/actions/send-reminder.d.cts.map +1 -0
  86. package/dist/actions/send-reminder.d.mts +9 -0
  87. package/dist/actions/send-reminder.d.mts.map +1 -0
  88. package/dist/actions/send-reminder.mjs +86 -0
  89. package/dist/actions/send-reminder.mjs.map +1 -0
  90. package/dist/actions/update-and-send-document.cjs +105 -0
  91. package/dist/actions/update-and-send-document.cjs.map +1 -0
  92. package/dist/actions/update-and-send-document.d.cts +9 -0
  93. package/dist/actions/update-and-send-document.d.cts.map +1 -0
  94. package/dist/actions/update-and-send-document.d.mts +9 -0
  95. package/dist/actions/update-and-send-document.d.mts.map +1 -0
  96. package/dist/actions/update-and-send-document.mjs +104 -0
  97. package/dist/actions/update-and-send-document.mjs.map +1 -0
  98. package/dist/actions/update-template.cjs +79 -0
  99. package/dist/actions/update-template.cjs.map +1 -0
  100. package/dist/actions/update-template.d.cts +9 -0
  101. package/dist/actions/update-template.d.cts.map +1 -0
  102. package/dist/actions/update-template.d.mts +9 -0
  103. package/dist/actions/update-template.d.mts.map +1 -0
  104. package/dist/actions/update-template.mjs +78 -0
  105. package/dist/actions/update-template.mjs.map +1 -0
  106. package/dist/app.cjs +9 -0
  107. package/dist/app.cjs.map +1 -0
  108. package/dist/app.d.cts +5 -0
  109. package/dist/app.d.cts.map +1 -0
  110. package/dist/app.d.mts +5 -0
  111. package/dist/app.d.mts.map +1 -0
  112. package/dist/app.mjs +10 -0
  113. package/dist/app.mjs.map +1 -0
  114. package/dist/catalog.cjs +15 -0
  115. package/dist/catalog.cjs.map +1 -0
  116. package/dist/catalog.d.cts +14 -0
  117. package/dist/catalog.d.cts.map +1 -0
  118. package/dist/catalog.d.mts +14 -0
  119. package/dist/catalog.d.mts.map +1 -0
  120. package/dist/catalog.mjs +15 -0
  121. package/dist/catalog.mjs.map +1 -0
  122. package/dist/execute.cjs +18 -0
  123. package/dist/execute.cjs.map +1 -0
  124. package/dist/execute.mjs +18 -0
  125. package/dist/execute.mjs.map +1 -0
  126. package/dist/index.cjs +30 -0
  127. package/dist/index.d.cts +15 -0
  128. package/dist/index.d.mts +15 -0
  129. package/dist/index.mjs +16 -0
  130. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-document.d.ts
4
+ declare const SignwellCreateDocumentInput: z.ZodTypeAny;
5
+ declare const SignwellCreateDocumentOutput: z.ZodTypeAny;
6
+ declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellCreateDocument };
9
+ //# sourceMappingURL=create-document.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA+BgD;AAAA,cAc/E,4BAAA,EAA8B,CAAA,CAAE,UAUW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-document.d.ts
4
+ declare const SignwellCreateDocumentInput: z.ZodTypeAny;
5
+ declare const SignwellCreateDocumentOutput: z.ZodTypeAny;
6
+ declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellCreateDocument };
9
+ //# sourceMappingURL=create-document.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA+BgD;AAAA,cAc/E,4BAAA,EAA8B,CAAA,CAAE,UAUW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,69 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-document.ts
4
+ const SignwellCreateDocumentInput = z.object({
5
+ draft: z.boolean().default(false).describe("If true, saves document as draft (no emails sent). If false, sends signature requests immediately.").optional(),
6
+ files: z.array(z.object({
7
+ name: z.string().describe("Friendly name for this file (e.g., 'Contract.pdf')."),
8
+ file_url: z.string().describe("Public URL to fetch the file. Either file_url or file_base64 is required.").optional(),
9
+ file_base64: z.string().describe("Base64-encoded file content. Either file_url or file_base64 is required.").optional()
10
+ }).describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
11
+ message: z.string().describe("Email message for the signature request. Defaults to system or template message.").optional(),
12
+ subject: z.string().describe("Email subject for the signature request. Defaults to system or template subject.").optional(),
13
+ language: z.string().describe("ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.").optional(),
14
+ metadata: z.object({}).describe("Optional key/value data associated with the document.").optional(),
15
+ reminders: z.boolean().default(true).describe("If true, sends reminders on day 3, 6, and 10.").optional(),
16
+ test_mode: z.boolean().default(false).describe("Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.").optional(),
17
+ text_tags: z.boolean().default(false).describe("If true, you may place fields via special text tags in your document.").optional(),
18
+ expires_in: z.number().int().describe("Number of days before the request expires (>=1). Defaults to account or template setting.").optional(),
19
+ recipients: z.array(z.object({
20
+ id: z.string().describe("Unique identifier for the recipient, used to track their signing status."),
21
+ name: z.string().describe("Full name of the recipient."),
22
+ email: z.string().describe("Email address of the recipient.")
23
+ }).describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
24
+ redirect_url: z.string().describe("URL to redirect recipients to after successful signing.").optional(),
25
+ allow_decline: z.boolean().default(true).describe("If true, recipients may decline to sign (which cancels the request).").optional(),
26
+ allow_reassign: z.boolean().default(true).describe("If true, signers may reassign their signing responsibility.").optional(),
27
+ embedded_signing: z.boolean().default(false).describe("If true, enables embedded signing (iframe) and disables email auth.").optional(),
28
+ api_application_id: z.string().describe("UUID of API Application settings to use (optional).").optional(),
29
+ apply_signing_order: z.boolean().default(false).describe("If true, enforces signing in the order provided by recipients.").optional(),
30
+ with_signature_page: z.boolean().default(false).describe("If true, appends a signature page to the end and requires signing there.").optional(),
31
+ decline_redirect_url: z.string().describe("URL to redirect recipients to if they decline to sign.").optional(),
32
+ custom_requester_name: z.string().describe("Custom name used in all email communications and audit records.").optional(),
33
+ custom_requester_email: z.string().describe("Custom email used in communications instead of the API key owner.").optional(),
34
+ embedded_signing_notifications: z.boolean().default(false).describe("If true, sends completion notifications when using embedded signing.").optional()
35
+ }).describe("Request model for creating and optionally sending a new document for signing.");
36
+ const SignwellCreateDocument_FileResponseSchema = z.object({
37
+ name: z.string().describe("Name of the file."),
38
+ pages_number: z.number().int().describe("Number of pages in the file.")
39
+ }).describe("Response model for a file in the created document.");
40
+ const SignwellCreateDocument_RecipientResponseSchema = z.object({
41
+ id: z.string().describe("The recipient's unique identifier."),
42
+ name: z.string().describe("Full name of the recipient."),
43
+ email: z.string().describe("Email address of the recipient."),
44
+ status: z.string().describe("Recipient's signing status (e.g., 'created', 'sent', 'completed')."),
45
+ signing_url: z.string().describe("URL for the recipient to sign the document (for standard signing).").nullable().optional(),
46
+ signing_order: z.number().int().describe("Order in which this recipient signs."),
47
+ embedded_signing_url: z.string().describe("URL for embedded signing (when embedded_signing is enabled).").nullable().optional()
48
+ }).describe("Response model for a recipient after document creation.");
49
+ const signwellCreateDocument = action("SIGNWELL_CREATE_DOCUMENT", {
50
+ slug: "signwell-create-document",
51
+ name: "Create Document",
52
+ 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.",
53
+ input: SignwellCreateDocumentInput,
54
+ output: z.object({
55
+ id: z.string().describe("Unique identifier of the new document."),
56
+ name: z.string().describe("Name of the document (derived from the first file)."),
57
+ files: z.array(SignwellCreateDocument_FileResponseSchema).describe("List of files included in the document."),
58
+ status: z.string().describe("Current status of the document (e.g., 'Created', 'Pending', 'Completed')."),
59
+ test_mode: z.boolean().describe("Whether the document is in test mode (not legally binding)."),
60
+ created_at: z.string().describe("ISO 8601 timestamp when the document was created."),
61
+ expires_in: z.number().int().describe("Number of days before the signing request expires."),
62
+ recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe("List of recipients with their signing URLs and status."),
63
+ embedded_edit_url: z.string().describe("URL to edit the document in SignWell's editor.").nullable().optional()
64
+ }).describe("Response model after creating a document.")
65
+ });
66
+ //#endregion
67
+ export { signwellCreateDocument };
68
+
69
+ //# sourceMappingURL=create-document.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.object({}).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema: z.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 SignwellCreateDocument_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.\"),\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 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.\"),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\"),\n name: z.string().describe(\"Name of the document (derived from the first file).\"),\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').\"),\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.\"),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in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C,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-webhook.ts
4
+ const SignwellCreateWebhookInput = zod.z.object({
5
+ callbackUrl: zod.z.string().describe("URL where SignWell will post document event payloads."),
6
+ apiApplicationId: zod.z.string().describe("UUID of the API Application to associate with this webhook.").optional()
7
+ }).describe("Request model for registering a webhook callback URL.");
8
+ const SignwellCreateWebhookOutput = zod.z.object({
9
+ id: zod.z.string().describe("Unique identifier of the new webhook."),
10
+ callback_url: zod.z.string().describe("The registered callback URL.")
11
+ }).describe("Response model after creating a webhook.");
12
+ const signwellCreateWebhook = require_action.action("SIGNWELL_CREATE_WEBHOOK", {
13
+ slug: "signwell-create-webhook",
14
+ name: "Create Webhook",
15
+ description: "Tool to register a webhook callback URL. Use when you need to receive document event notifications.",
16
+ input: SignwellCreateWebhookInput,
17
+ output: SignwellCreateWebhookOutput
18
+ });
19
+ //#endregion
20
+ exports.signwellCreateWebhook = signwellCreateWebhook;
21
+
22
+ //# sourceMappingURL=create-webhook.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\"),\n callback_url: z.string().describe(\"The registered callback URL.\"),\n}).describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAClE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-webhook.d.ts
4
+ declare const SignwellCreateWebhookInput: z.ZodTypeAny;
5
+ declare const SignwellCreateWebhookOutput: z.ZodTypeAny;
6
+ declare const signwellCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellCreateWebhook };
9
+ //# sourceMappingURL=create-webhook.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAGW;AAAA,cAE1C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-webhook.d.ts
4
+ declare const SignwellCreateWebhookInput: z.ZodTypeAny;
5
+ declare const SignwellCreateWebhookOutput: z.ZodTypeAny;
6
+ declare const signwellCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellCreateWebhook };
9
+ //# sourceMappingURL=create-webhook.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAGW;AAAA,cAE1C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const signwellCreateWebhook = action("SIGNWELL_CREATE_WEBHOOK", {
4
+ slug: "signwell-create-webhook",
5
+ name: "Create Webhook",
6
+ description: "Tool to register a webhook callback URL. Use when you need to receive document event notifications.",
7
+ input: z.object({
8
+ callbackUrl: z.string().describe("URL where SignWell will post document event payloads."),
9
+ apiApplicationId: z.string().describe("UUID of the API Application to associate with this webhook.").optional()
10
+ }).describe("Request model for registering a webhook callback URL."),
11
+ output: z.object({
12
+ id: z.string().describe("Unique identifier of the new webhook."),
13
+ callback_url: z.string().describe("The registered callback URL.")
14
+ }).describe("Response model after creating a webhook.")
15
+ });
16
+ //#endregion
17
+ export { signwellCreateWebhook };
18
+
19
+ //# sourceMappingURL=create-webhook.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\"),\n callback_url: z.string().describe(\"The registered callback URL.\"),\n}).describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbsD,EAAE,OAAO;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAVuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAClE,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-document.ts
4
+ const SignwellDeleteDocumentInput = zod.z.object({ id: zod.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.") }).describe("Request model for deleting a document.");
5
+ const SignwellDeleteDocumentOutput = zod.z.object({
6
+ deleted: zod.z.boolean().default(true).describe("Indicates whether the document was successfully deleted.").nullable().optional(),
7
+ message: zod.z.string().default("Document deleted successfully").describe("Confirmation message describing the result of the deletion.").nullable().optional()
8
+ }).describe("Response model for document deletion confirmation.");
9
+ const signwellDeleteDocument = require_action.action("SIGNWELL_DELETE_DOCUMENT", {
10
+ slug: "signwell-delete-document",
11
+ name: "Delete Document",
12
+ 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.",
13
+ input: SignwellDeleteDocumentInput,
14
+ output: SignwellDeleteDocumentOutput
15
+ });
16
+ //#endregion
17
+ exports.signwellDeleteDocument = signwellDeleteDocument;
18
+
19
+ //# sourceMappingURL=delete-document.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,EAC9M,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,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,SAAS,oDAAoD;AAEhE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-document.d.ts
4
+ declare const SignwellDeleteDocumentInput: z.ZodTypeAny;
5
+ declare const SignwellDeleteDocumentOutput: z.ZodTypeAny;
6
+ declare const signwellDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellDeleteDocument };
9
+ //# sourceMappingURL=delete-document.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAES;AAAA,cACxC,4BAAA,EAA8B,CAAA,CAAE,UAGoB;AAAA,cAEpD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-document.d.ts
4
+ declare const SignwellDeleteDocumentInput: z.ZodTypeAny;
5
+ declare const SignwellDeleteDocumentOutput: z.ZodTypeAny;
6
+ declare const signwellDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellDeleteDocument };
9
+ //# sourceMappingURL=delete-document.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAES;AAAA,cACxC,4BAAA,EAA8B,CAAA,CAAE,UAGoB;AAAA,cAEpD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const signwellDeleteDocument = action("SIGNWELL_DELETE_DOCUMENT", {
4
+ slug: "signwell-delete-document",
5
+ name: "Delete Document",
6
+ 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.",
7
+ input: z.object({ 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.") }).describe("Request model for deleting a document."),
8
+ output: z.object({
9
+ deleted: z.boolean().default(true).describe("Indicates whether the document was successfully deleted.").nullable().optional(),
10
+ message: z.string().default("Document deleted successfully").describe("Confirmation message describing the result of the deletion.").nullable().optional()
11
+ }).describe("Response model for document deletion confirmation.")
12
+ });
13
+ //#endregion
14
+ export { signwellDeleteDocument };
15
+
16
+ //# sourceMappingURL=delete-document.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,EAC9M,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAVwD,EAAE,OAAO;EACjE,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,SAAS,oDAOF;AACV,CAAC"}
@@ -0,0 +1,16 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-webhook.ts
4
+ const SignwellDeleteWebhookInput = zod.z.object({ id: zod.z.string().describe("The UUID of the webhook to delete. Obtain this from the list webhooks action.") }).describe("Request model for deleting a webhook.");
5
+ const SignwellDeleteWebhookOutput = zod.z.object({}).describe("Empty response returned after successful deletion (no content).");
6
+ const signwellDeleteWebhook = require_action.action("SIGNWELL_DELETE_WEBHOOK", {
7
+ slug: "signwell-delete-webhook",
8
+ name: "Delete Webhook",
9
+ description: "Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.",
10
+ input: SignwellDeleteWebhookInput,
11
+ output: SignwellDeleteWebhookOutput
12
+ });
13
+ //#endregion
14
+ exports.signwellDeleteWebhook = signwellDeleteWebhook;
15
+
16
+ //# sourceMappingURL=delete-webhook.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({}).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":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,EACzG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAEhJ,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-webhook.d.ts
4
+ declare const SignwellDeleteWebhookInput: z.ZodTypeAny;
5
+ declare const SignwellDeleteWebhookOutput: z.ZodTypeAny;
6
+ declare const signwellDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellDeleteWebhook };
9
+ //# sourceMappingURL=delete-webhook.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAES;AAAA,cACvC,2BAAA,EAA6B,CAAA,CAAE,UAAqG;AAAA,cAEpI,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-webhook.d.ts
4
+ declare const SignwellDeleteWebhookInput: z.ZodTypeAny;
5
+ declare const SignwellDeleteWebhookOutput: z.ZodTypeAny;
6
+ declare const signwellDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellDeleteWebhook };
9
+ //# sourceMappingURL=delete-webhook.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAES;AAAA,cACvC,2BAAA,EAA6B,CAAA,CAAE,UAAqG;AAAA,cAEpI,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const signwellDeleteWebhook = action("SIGNWELL_DELETE_WEBHOOK", {
4
+ slug: "signwell-delete-webhook",
5
+ name: "Delete Webhook",
6
+ description: "Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.",
7
+ input: z.object({ id: z.string().describe("The UUID of the webhook to delete. Obtain this from the list webhooks action.") }).describe("Request model for deleting a webhook."),
8
+ output: z.object({}).describe("Empty response returned after successful deletion (no content).")
9
+ });
10
+ //#endregion
11
+ export { signwellDeleteWebhook };
12
+
13
+ //# sourceMappingURL=delete-webhook.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({}).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":";;AASA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATsD,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,EACzG,CAAC,CAAC,CAAC,SAAS,uCAOH;CACP,QAPuD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAOrE;AACV,CAAC"}
@@ -0,0 +1,58 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-credentials.ts
4
+ const SignwellGetCredentialsInput = zod.z.object({}).describe("Request model for retrieving account information. No parameters required.");
5
+ const SignwellGetCredentials_UserInfoSchema = zod.z.object({
6
+ id: zod.z.string().describe("Unique identifier for the user"),
7
+ name: zod.z.string().describe("Full name of the user"),
8
+ email: zod.z.string().describe("Email address of the user"),
9
+ first_name: zod.z.string().describe("First name of the user").nullable().optional(),
10
+ has_google_registration: zod.z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
11
+ }).describe("Current authenticated user information.");
12
+ const SignwellGetCredentials_ActiveUserSchema = zod.z.object({
13
+ id: zod.z.string().describe("Unique identifier for the user"),
14
+ name: zod.z.string().describe("Full name of the user"),
15
+ email: zod.z.string().describe("Email address of the user"),
16
+ has_google_registration: zod.z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
17
+ }).describe("A user within the account/workspace.");
18
+ const SignwellGetCredentials_AccountInfoSchema = zod.z.object({
19
+ id: zod.z.string().describe("Unique identifier for the account"),
20
+ name: zod.z.string().describe("Name of the account"),
21
+ plan_tier: zod.z.string().describe("Current plan tier (e.g., 'free', 'pro')"),
22
+ active_users: zod.z.array(SignwellGetCredentials_ActiveUserSchema).describe("List of active users in the account").nullable().optional(),
23
+ active_templates: zod.z.number().int().default(0).describe("Number of active templates").nullable().optional(),
24
+ can_create_template: zod.z.boolean().default(true).describe("Whether user can create templates").nullable().optional(),
25
+ can_create_tracking_document: zod.z.boolean().default(true).describe("Whether user can create tracking documents").nullable().optional(),
26
+ can_create_completion_document: zod.z.boolean().default(true).describe("Whether user can create completion documents").nullable().optional()
27
+ }).describe("Account/workspace information.");
28
+ const SignwellGetCredentials_ContactInfoSchema = zod.z.object({
29
+ id: zod.z.string().describe("Unique identifier for the contact"),
30
+ name: zod.z.string().describe("Full name"),
31
+ email: zod.z.string().describe("Email address"),
32
+ website: zod.z.string().describe("Website URL").nullable().optional(),
33
+ archived: zod.z.boolean().default(false).describe("Whether contact is archived").nullable().optional(),
34
+ initials: zod.z.string().describe("User initials").nullable().optional(),
35
+ company_name: zod.z.string().describe("Company name").nullable().optional(),
36
+ phone_number: zod.z.string().describe("Primary phone number").nullable().optional(),
37
+ alt_phone_number: zod.z.string().describe("Alternative phone number").nullable().optional()
38
+ }).describe("Contact information for the authenticated user.");
39
+ const SignwellGetCredentialsOutput = zod.z.object({
40
+ id: zod.z.string().describe("Unique membership ID for the user-account relationship"),
41
+ role: zod.z.string().describe("User's role in the account (e.g., 'owner', 'admin', 'user')"),
42
+ user: SignwellGetCredentials_UserInfoSchema.nullable(),
43
+ account: SignwellGetCredentials_AccountInfoSchema.nullable(),
44
+ contact: SignwellGetCredentials_ContactInfoSchema.nullable(),
45
+ archived: zod.z.boolean().default(false).describe("Whether membership is archived").nullable().optional(),
46
+ workspace: SignwellGetCredentials_AccountInfoSchema.nullable()
47
+ }).describe("Account information associated with the current API key.");
48
+ const signwellGetCredentials = require_action.action("SIGNWELL_GET_CREDENTIALS", {
49
+ slug: "signwell-get-credentials",
50
+ name: "Get Credentials",
51
+ 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.",
52
+ input: SignwellGetCredentialsInput,
53
+ output: SignwellGetCredentialsOutput
54
+ });
55
+ //#endregion
56
+ exports.signwellGetCredentials = signwellGetCredentials;
57
+
58
+ //# sourceMappingURL=get-credentials.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user\"),\n name: z.string().describe(\"Full name of the user\"),\n email: z.string().describe(\"Email address of the user\"),\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}).describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user\"),\n name: z.string().describe(\"Full name of the user\"),\n email: z.string().describe(\"Email address of the user\"),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the account\"),\n name: z.string().describe(\"Name of the account\"),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\"),\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}).describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact\"),\n name: z.string().describe(\"Full name\"),\n email: z.string().describe(\"Email address\"),\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}).describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\"),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\"),\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}).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":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CAC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AC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-credentials.d.ts
4
+ declare const SignwellGetCredentialsInput: z.ZodTypeAny;
5
+ declare const SignwellGetCredentialsOutput: z.ZodTypeAny;
6
+ declare const signwellGetCredentials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellGetCredentials };
9
+ //# sourceMappingURL=get-credentials.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-credentials.d.cts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAA+G;AAAA,cAmC9I,4BAAA,EAA8B,CAAA,CAAE,UAQ0B;AAAA,cAE1D,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-credentials.d.ts
4
+ declare const SignwellGetCredentialsInput: z.ZodTypeAny;
5
+ declare const SignwellGetCredentialsOutput: z.ZodTypeAny;
6
+ declare const signwellGetCredentials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { signwellGetCredentials };
9
+ //# sourceMappingURL=get-credentials.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-credentials.d.mts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAA+G;AAAA,cAmC9I,4BAAA,EAA8B,CAAA,CAAE,UAQ0B;AAAA,cAE1D,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,57 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-credentials.ts
4
+ const SignwellGetCredentialsInput = z.object({}).describe("Request model for retrieving account information. No parameters required.");
5
+ const SignwellGetCredentials_UserInfoSchema = z.object({
6
+ id: z.string().describe("Unique identifier for the user"),
7
+ name: z.string().describe("Full name of the user"),
8
+ email: z.string().describe("Email address of the user"),
9
+ first_name: z.string().describe("First name of the user").nullable().optional(),
10
+ has_google_registration: z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
11
+ }).describe("Current authenticated user information.");
12
+ const SignwellGetCredentials_ActiveUserSchema = z.object({
13
+ id: z.string().describe("Unique identifier for the user"),
14
+ name: z.string().describe("Full name of the user"),
15
+ email: z.string().describe("Email address of the user"),
16
+ has_google_registration: z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
17
+ }).describe("A user within the account/workspace.");
18
+ const SignwellGetCredentials_AccountInfoSchema = z.object({
19
+ id: z.string().describe("Unique identifier for the account"),
20
+ name: z.string().describe("Name of the account"),
21
+ plan_tier: z.string().describe("Current plan tier (e.g., 'free', 'pro')"),
22
+ active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe("List of active users in the account").nullable().optional(),
23
+ active_templates: z.number().int().default(0).describe("Number of active templates").nullable().optional(),
24
+ can_create_template: z.boolean().default(true).describe("Whether user can create templates").nullable().optional(),
25
+ can_create_tracking_document: z.boolean().default(true).describe("Whether user can create tracking documents").nullable().optional(),
26
+ can_create_completion_document: z.boolean().default(true).describe("Whether user can create completion documents").nullable().optional()
27
+ }).describe("Account/workspace information.");
28
+ const SignwellGetCredentials_ContactInfoSchema = z.object({
29
+ id: z.string().describe("Unique identifier for the contact"),
30
+ name: z.string().describe("Full name"),
31
+ email: z.string().describe("Email address"),
32
+ website: z.string().describe("Website URL").nullable().optional(),
33
+ archived: z.boolean().default(false).describe("Whether contact is archived").nullable().optional(),
34
+ initials: z.string().describe("User initials").nullable().optional(),
35
+ company_name: z.string().describe("Company name").nullable().optional(),
36
+ phone_number: z.string().describe("Primary phone number").nullable().optional(),
37
+ alt_phone_number: z.string().describe("Alternative phone number").nullable().optional()
38
+ }).describe("Contact information for the authenticated user.");
39
+ const signwellGetCredentials = action("SIGNWELL_GET_CREDENTIALS", {
40
+ slug: "signwell-get-credentials",
41
+ name: "Get Credentials",
42
+ 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.",
43
+ input: SignwellGetCredentialsInput,
44
+ output: z.object({
45
+ id: z.string().describe("Unique membership ID for the user-account relationship"),
46
+ role: z.string().describe("User's role in the account (e.g., 'owner', 'admin', 'user')"),
47
+ user: SignwellGetCredentials_UserInfoSchema.nullable(),
48
+ account: SignwellGetCredentials_AccountInfoSchema.nullable(),
49
+ contact: SignwellGetCredentials_ContactInfoSchema.nullable(),
50
+ archived: z.boolean().default(false).describe("Whether membership is archived").nullable().optional(),
51
+ workspace: SignwellGetCredentials_AccountInfoSchema.nullable()
52
+ }).describe("Account information associated with the current API key.")
53
+ });
54
+ //#endregion
55
+ export { signwellGetCredentials };
56
+
57
+ //# sourceMappingURL=get-credentials.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user\"),\n name: z.string().describe(\"Full name of the user\"),\n email: z.string().describe(\"Email address of the user\"),\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}).describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user\"),\n name: z.string().describe(\"Full name of the user\"),\n email: z.string().describe(\"Email address of the user\"),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the account\"),\n name: z.string().describe(\"Name of the account\"),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\"),\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}).describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact\"),\n name: z.string().describe(\"Full name\"),\n email: z.string().describe(\"Email address\"),\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}).describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\"),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\"),\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}).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":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,yBAAyB,EAAE,QAAQ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