@keystrokehq/pandadoc 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.
Files changed (125) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-document-attachment.cjs +1 -0
  4. package/dist/actions/create-document-attachment.cjs.map +1 -1
  5. package/dist/actions/create-document-attachment.d.cts +3 -8
  6. package/dist/actions/create-document-attachment.d.cts.map +1 -1
  7. package/dist/actions/create-document-attachment.d.mts +3 -8
  8. package/dist/actions/create-document-attachment.d.mts.map +1 -1
  9. package/dist/actions/create-document-attachment.mjs +1 -0
  10. package/dist/actions/create-document-attachment.mjs.map +1 -1
  11. package/dist/actions/create-document-from-file.cjs +1 -0
  12. package/dist/actions/create-document-from-file.cjs.map +1 -1
  13. package/dist/actions/create-document-from-file.d.cts +3 -23
  14. package/dist/actions/create-document-from-file.d.cts.map +1 -1
  15. package/dist/actions/create-document-from-file.d.mts +3 -23
  16. package/dist/actions/create-document-from-file.d.mts.map +1 -1
  17. package/dist/actions/create-document-from-file.mjs +1 -0
  18. package/dist/actions/create-document-from-file.mjs.map +1 -1
  19. package/dist/actions/create-folder.cjs +1 -0
  20. package/dist/actions/create-folder.cjs.map +1 -1
  21. package/dist/actions/create-folder.d.cts +3 -4
  22. package/dist/actions/create-folder.d.cts.map +1 -1
  23. package/dist/actions/create-folder.d.mts +3 -4
  24. package/dist/actions/create-folder.d.mts.map +1 -1
  25. package/dist/actions/create-folder.mjs +1 -0
  26. package/dist/actions/create-folder.mjs.map +1 -1
  27. package/dist/actions/create-or-update-contact.cjs +1 -0
  28. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  29. package/dist/actions/create-or-update-contact.d.cts +3 -13
  30. package/dist/actions/create-or-update-contact.d.cts.map +1 -1
  31. package/dist/actions/create-or-update-contact.d.mts +3 -13
  32. package/dist/actions/create-or-update-contact.d.mts.map +1 -1
  33. package/dist/actions/create-or-update-contact.mjs +1 -0
  34. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  35. package/dist/actions/create-template.cjs +1 -0
  36. package/dist/actions/create-template.cjs.map +1 -1
  37. package/dist/actions/create-template.d.cts +3 -14
  38. package/dist/actions/create-template.d.cts.map +1 -1
  39. package/dist/actions/create-template.d.mts +3 -14
  40. package/dist/actions/create-template.d.mts.map +1 -1
  41. package/dist/actions/create-template.mjs +1 -0
  42. package/dist/actions/create-template.mjs.map +1 -1
  43. package/dist/actions/create-webhook.cjs +1 -0
  44. package/dist/actions/create-webhook.cjs.map +1 -1
  45. package/dist/actions/create-webhook.d.cts +3 -7
  46. package/dist/actions/create-webhook.d.cts.map +1 -1
  47. package/dist/actions/create-webhook.d.mts +3 -7
  48. package/dist/actions/create-webhook.d.mts.map +1 -1
  49. package/dist/actions/create-webhook.mjs +1 -0
  50. package/dist/actions/create-webhook.mjs.map +1 -1
  51. package/dist/actions/delete-contact.cjs +1 -0
  52. package/dist/actions/delete-contact.cjs.map +1 -1
  53. package/dist/actions/delete-contact.d.cts +3 -3
  54. package/dist/actions/delete-contact.d.cts.map +1 -1
  55. package/dist/actions/delete-contact.d.mts +3 -3
  56. package/dist/actions/delete-contact.d.mts.map +1 -1
  57. package/dist/actions/delete-contact.mjs +1 -0
  58. package/dist/actions/delete-contact.mjs.map +1 -1
  59. package/dist/actions/delete-template.cjs +1 -0
  60. package/dist/actions/delete-template.cjs.map +1 -1
  61. package/dist/actions/delete-template.d.cts +3 -3
  62. package/dist/actions/delete-template.d.cts.map +1 -1
  63. package/dist/actions/delete-template.d.mts +3 -3
  64. package/dist/actions/delete-template.d.mts.map +1 -1
  65. package/dist/actions/delete-template.mjs +1 -0
  66. package/dist/actions/delete-template.mjs.map +1 -1
  67. package/dist/actions/get-document-details.cjs +1 -0
  68. package/dist/actions/get-document-details.cjs.map +1 -1
  69. package/dist/actions/get-document-details.d.cts +3 -3
  70. package/dist/actions/get-document-details.d.cts.map +1 -1
  71. package/dist/actions/get-document-details.d.mts +3 -3
  72. package/dist/actions/get-document-details.d.mts.map +1 -1
  73. package/dist/actions/get-document-details.mjs +1 -0
  74. package/dist/actions/get-document-details.mjs.map +1 -1
  75. package/dist/actions/get-template-details.cjs +1 -0
  76. package/dist/actions/get-template-details.cjs.map +1 -1
  77. package/dist/actions/get-template-details.d.cts +3 -3
  78. package/dist/actions/get-template-details.d.cts.map +1 -1
  79. package/dist/actions/get-template-details.d.mts +3 -3
  80. package/dist/actions/get-template-details.d.mts.map +1 -1
  81. package/dist/actions/get-template-details.mjs +1 -0
  82. package/dist/actions/get-template-details.mjs.map +1 -1
  83. package/dist/actions/list-contacts.cjs +1 -0
  84. package/dist/actions/list-contacts.cjs.map +1 -1
  85. package/dist/actions/list-contacts.d.cts +3 -3
  86. package/dist/actions/list-contacts.d.cts.map +1 -1
  87. package/dist/actions/list-contacts.d.mts +3 -3
  88. package/dist/actions/list-contacts.d.mts.map +1 -1
  89. package/dist/actions/list-contacts.mjs +1 -0
  90. package/dist/actions/list-contacts.mjs.map +1 -1
  91. package/dist/actions/list-document-folders.cjs +1 -0
  92. package/dist/actions/list-document-folders.cjs.map +1 -1
  93. package/dist/actions/list-document-folders.d.cts +3 -5
  94. package/dist/actions/list-document-folders.d.cts.map +1 -1
  95. package/dist/actions/list-document-folders.d.mts +3 -5
  96. package/dist/actions/list-document-folders.d.mts.map +1 -1
  97. package/dist/actions/list-document-folders.mjs +1 -0
  98. package/dist/actions/list-document-folders.mjs.map +1 -1
  99. package/dist/actions/list-templates.cjs +1 -0
  100. package/dist/actions/list-templates.cjs.map +1 -1
  101. package/dist/actions/list-templates.d.cts +3 -11
  102. package/dist/actions/list-templates.d.cts.map +1 -1
  103. package/dist/actions/list-templates.d.mts +3 -11
  104. package/dist/actions/list-templates.d.mts.map +1 -1
  105. package/dist/actions/list-templates.mjs +1 -0
  106. package/dist/actions/list-templates.mjs.map +1 -1
  107. package/dist/actions/move-document-to-folder.cjs +1 -0
  108. package/dist/actions/move-document-to-folder.cjs.map +1 -1
  109. package/dist/actions/move-document-to-folder.d.cts +3 -4
  110. package/dist/actions/move-document-to-folder.d.cts.map +1 -1
  111. package/dist/actions/move-document-to-folder.d.mts +3 -4
  112. package/dist/actions/move-document-to-folder.d.mts.map +1 -1
  113. package/dist/actions/move-document-to-folder.mjs +1 -0
  114. package/dist/actions/move-document-to-folder.mjs.map +1 -1
  115. package/dist/app.cjs +5 -2
  116. package/dist/app.cjs.map +1 -1
  117. package/dist/app.d.cts +7 -1
  118. package/dist/app.d.cts.map +1 -1
  119. package/dist/app.d.mts +7 -1
  120. package/dist/app.d.mts.map +1 -1
  121. package/dist/app.mjs +3 -2
  122. package/dist/app.mjs.map +1 -1
  123. package/dist/index.d.cts +1 -1
  124. package/dist/index.d.mts +1 -1
  125. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["pandadoc","executePandadocTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pandadoc } from \"./app\";\nimport { executePandadocTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return pandadoc.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePandadocTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["pandadoc","executePandadocTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { pandadoc } from \"./app\";\nimport { executePandadocTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof pandadoc.credential> {\n return pandadoc.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePandadocTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pandadoc } from \"./app\";\nimport { executePandadocTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return pandadoc.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePandadocTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { pandadoc } from \"./app\";\nimport { executePandadocTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof pandadoc.credential> {\n return pandadoc.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePandadocTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-document-attachment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-attachment.cjs","names":["z","action"],"sources":["../../src/actions/create-document-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateDocumentAttachmentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as an attachment.\"),\n document_id: z.string().describe(\"UUID of the document to attach the file to\"),\n}).describe(\"Request model for creating a document attachment.\");\nexport const PandadocCreateDocumentAttachmentOutput = z.object({\n name: z.string().describe(\"Name of the attachment\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the attachment\").nullable(),\n file_name: z.string().describe(\"Original filename\").nullable(),\n created_date: z.string().describe(\"Timestamp of when the attachment was created\").nullable(),\n}).passthrough().describe(\"Response model for document attachment creation.\");\n\nexport const pandadocCreateDocumentAttachment = action(\"PANDADOC_CREATE_DOCUMENT_ATTACHMENT\", {\n slug: \"pandadoc-create-document-attachment\",\n name: \"Create Document Attachment\",\n description: \"Creates and adds an attachment to a PandaDoc document. This tool allows you to attach downloadable files such as supplemental materials, Excel spreadsheets, or other content without embedding them directly into the document. Attachments can be added only to documents in 'document.draft' status, with a maximum of 10 files per document and a size limit of 50MB per file.\",\n input: PandadocCreateDocumentAttachmentInput,\n output: PandadocCreateDocumentAttachmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-attachment.cjs","names":["z","action"],"sources":["../../src/actions/create-document-attachment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateDocumentAttachmentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as an attachment.\"),\n document_id: z.string().describe(\"UUID of the document to attach the file to\"),\n}).describe(\"Request model for creating a document attachment.\");\nexport const PandadocCreateDocumentAttachmentOutput = z.object({\n name: z.string().describe(\"Name of the attachment\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the attachment\").nullable(),\n file_name: z.string().describe(\"Original filename\").nullable(),\n created_date: z.string().describe(\"Timestamp of when the attachment was created\").nullable(),\n}).passthrough().describe(\"Response model for document attachment creation.\");\n\nexport const pandadocCreateDocumentAttachment: AppAction<\n typeof PandadocCreateDocumentAttachmentInput,\n typeof PandadocCreateDocumentAttachmentOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_DOCUMENT_ATTACHMENT\", {\n slug: \"pandadoc-create-document-attachment\",\n name: \"Create Document Attachment\",\n description: \"Creates and adds an attachment to a PandaDoc document. This tool allows you to attach downloadable files such as supplemental materials, Excel spreadsheets, or other content without embedding them directly into the document. Attachments can be added only to documents in 'document.draft' status, with a maximum of 10 files per document and a size limit of 50MB per file.\",\n input: PandadocCreateDocumentAttachmentInput,\n output: PandadocCreateDocumentAttachmentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,mCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-attachment.d.ts
@@ -16,14 +18,7 @@ declare const PandadocCreateDocumentAttachmentOutput: z.ZodObject<{
16
18
  file_name: z.ZodNullable<z.ZodString>;
17
19
  created_date: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const pandadocCreateDocumentAttachment: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- file: {
21
- name: string;
22
- s3key: string;
23
- mimetype: string;
24
- };
25
- document_id: string;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const pandadocCreateDocumentAttachment: AppAction<typeof PandadocCreateDocumentAttachmentInput, typeof PandadocCreateDocumentAttachmentOutput, typeof pandadoc.credential>;
27
22
  //#endregion
28
23
  export { pandadocCreateDocumentAttachment };
29
24
  //# sourceMappingURL=create-document-attachment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-attachment.d.cts","names":[],"sources":["../../src/actions/create-document-attachment.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAQtC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"create-document-attachment.d.cts","names":[],"sources":["../../src/actions/create-document-attachment.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAQtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-attachment.d.ts
@@ -16,14 +18,7 @@ declare const PandadocCreateDocumentAttachmentOutput: z.ZodObject<{
16
18
  file_name: z.ZodNullable<z.ZodString>;
17
19
  created_date: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const pandadocCreateDocumentAttachment: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- file: {
21
- name: string;
22
- s3key: string;
23
- mimetype: string;
24
- };
25
- document_id: string;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const pandadocCreateDocumentAttachment: AppAction<typeof PandadocCreateDocumentAttachmentInput, typeof PandadocCreateDocumentAttachmentOutput, typeof pandadoc.credential>;
27
22
  //#endregion
28
23
  export { pandadocCreateDocumentAttachment };
29
24
  //# sourceMappingURL=create-document-attachment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-attachment.d.mts","names":[],"sources":["../../src/actions/create-document-attachment.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAQtC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"create-document-attachment.d.mts","names":[],"sources":["../../src/actions/create-document-attachment.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAQtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pandadocCreateDocumentAttachment = action("PANDADOC_CREATE_DOCUMENT_ATTACHMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-attachment.mjs","names":[],"sources":["../../src/actions/create-document-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateDocumentAttachmentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as an attachment.\"),\n document_id: z.string().describe(\"UUID of the document to attach the file to\"),\n}).describe(\"Request model for creating a document attachment.\");\nexport const PandadocCreateDocumentAttachmentOutput = z.object({\n name: z.string().describe(\"Name of the attachment\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the attachment\").nullable(),\n file_name: z.string().describe(\"Original filename\").nullable(),\n created_date: z.string().describe(\"Timestamp of when the attachment was created\").nullable(),\n}).passthrough().describe(\"Response model for document attachment creation.\");\n\nexport const pandadocCreateDocumentAttachment = action(\"PANDADOC_CREATE_DOCUMENT_ATTACHMENT\", {\n slug: \"pandadoc-create-document-attachment\",\n name: \"Create Document Attachment\",\n description: \"Creates and adds an attachment to a PandaDoc document. This tool allows you to attach downloadable files such as supplemental materials, Excel spreadsheets, or other content without embedding them directly into the document. Attachments can be added only to documents in 'document.draft' status, with a maximum of 10 files per document and a size limit of 50MB per file.\",\n input: PandadocCreateDocumentAttachmentInput,\n output: PandadocCreateDocumentAttachmentOutput,\n});\n"],"mappings":";;AAoBA,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;EAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC/E,CAAC,CAAC,CAAC,SAAS,mDAaH;CACP,QAboD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-attachment.mjs","names":[],"sources":["../../src/actions/create-document-attachment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateDocumentAttachmentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload as an attachment.\"),\n document_id: z.string().describe(\"UUID of the document to attach the file to\"),\n}).describe(\"Request model for creating a document attachment.\");\nexport const PandadocCreateDocumentAttachmentOutput = z.object({\n name: z.string().describe(\"Name of the attachment\").nullable(),\n size: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the attachment\").nullable(),\n file_name: z.string().describe(\"Original filename\").nullable(),\n created_date: z.string().describe(\"Timestamp of when the attachment was created\").nullable(),\n}).passthrough().describe(\"Response model for document attachment creation.\");\n\nexport const pandadocCreateDocumentAttachment: AppAction<\n typeof PandadocCreateDocumentAttachmentInput,\n typeof PandadocCreateDocumentAttachmentOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_DOCUMENT_ATTACHMENT\", {\n slug: \"pandadoc-create-document-attachment\",\n name: \"Create Document Attachment\",\n description: \"Creates and adds an attachment to a PandaDoc document. This tool allows you to attach downloadable files such as supplemental materials, Excel spreadsheets, or other content without embedding them directly into the document. Attachments can be added only to documents in 'document.draft' status, with a maximum of 10 files per document and a size limit of 50MB per file.\",\n input: PandadocCreateDocumentAttachmentInput,\n output: PandadocCreateDocumentAttachmentOutput,\n});\n"],"mappings":";;;AAsBA,MAAa,mCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;EAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC/E,CAAC,CAAC,CAAC,SAAS,mDAiBH;CACP,QAjBoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-document-from-file.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-file.cjs","names":["z","action"],"sources":["../../src/actions/create-document-from-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateDocumentFromFileInput = z.object({\n url: z.string().describe(\"Public HTTPS URL of the file to use (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n name: z.string().describe(\"Name of the document\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the document\").optional(),\n owner: z.object({\n email: z.string().describe(\"Email of the document owner. Must be a valid email of an existing member in your PandaDoc workspace.\").optional(),\n membership_id: z.string().describe(\"Membership ID of the document owner. Must be a valid membership ID from your PandaDoc workspace.\").optional(),\n}).describe(\"Model for document owner.\").optional(),\n recipients: z.array(z.object({\n role: z.string().default(\"signer\").describe(\"Role of the recipient in the document. Common values: 'signer', 'approver', 'cc'. Note: PandaDoc API does not allow duplicate roles - each recipient must have a unique role.\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n last_name: z.string().describe(\"Last name of the recipient\").optional(),\n first_name: z.string().describe(\"First name of the recipient\").optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient should sign. If specified for any recipient, it must be specified for ALL recipients in the document.\").optional(),\n}).passthrough().describe(\"Model for document recipient.\")).describe(\"List of recipients for the document Each recipient object must include a valid `email` field; missing or malformed emails will prevent sending or signing.\"),\n parse_form_fields: z.boolean().default(false).describe(\"Whether to parse form fields in the document (for PDFs)\").optional(),\n}).describe(\"Request model for creating a document from file.\");\nexport const PandadocCreateDocumentFromFileOutput = z.object({\n id: z.string().describe(\"ID of the created document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n uuid: z.string().describe(\"UUID of the document\").nullable().optional(),\n status: z.string().describe(\"Current status of the document (typically 'document.uploaded' initially, then changes to 'document.draft' after processing)\").nullable(),\n version: z.string().describe(\"Version of the document\").nullable().optional(),\n date_created: z.string().describe(\"Date when the document was created\").nullable(),\n date_modified: z.string().describe(\"Date when the document was last modified\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the document\").nullable().optional(),\n}).passthrough().describe(\"Response model for document creation.\");\n\nexport const pandadocCreateDocumentFromFile = action(\"PANDADOC_CREATE_DOCUMENT_FROM_FILE\", {\n slug: \"pandadoc-create-document-from-file\",\n name: \"Create Document from File Upload\",\n description: \"Creates a new document in PandaDoc by uploading a file (PDF, DOCX, or RTF). Converts existing documents into PandaDoc documents for processing, signing, and tracking. Either `file` or `url` must be provided; omitting both will fail. Large files may time out during upload and conversion.\",\n input: PandadocCreateDocumentFromFileInput,\n output: PandadocCreateDocumentFromFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO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C,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,4JAA4J;CAC/N,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACpK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-file.cjs","names":["z","action"],"sources":["../../src/actions/create-document-from-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateDocumentFromFileInput = z.object({\n url: z.string().describe(\"Public HTTPS URL of the file to use (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n name: z.string().describe(\"Name of the document\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the document\").optional(),\n owner: z.object({\n email: z.string().describe(\"Email of the document owner. Must be a valid email of an existing member in your PandaDoc workspace.\").optional(),\n membership_id: z.string().describe(\"Membership ID of the document owner. Must be a valid membership ID from your PandaDoc workspace.\").optional(),\n}).describe(\"Model for document owner.\").optional(),\n recipients: z.array(z.object({\n role: z.string().default(\"signer\").describe(\"Role of the recipient in the document. Common values: 'signer', 'approver', 'cc'. Note: PandaDoc API does not allow duplicate roles - each recipient must have a unique role.\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n last_name: z.string().describe(\"Last name of the recipient\").optional(),\n first_name: z.string().describe(\"First name of the recipient\").optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient should sign. If specified for any recipient, it must be specified for ALL recipients in the document.\").optional(),\n}).passthrough().describe(\"Model for document recipient.\")).describe(\"List of recipients for the document Each recipient object must include a valid `email` field; missing or malformed emails will prevent sending or signing.\"),\n parse_form_fields: z.boolean().default(false).describe(\"Whether to parse form fields in the document (for PDFs)\").optional(),\n}).describe(\"Request model for creating a document from file.\");\nexport const PandadocCreateDocumentFromFileOutput = z.object({\n id: z.string().describe(\"ID of the created document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n uuid: z.string().describe(\"UUID of the document\").nullable().optional(),\n status: z.string().describe(\"Current status of the document (typically 'document.uploaded' initially, then changes to 'document.draft' after processing)\").nullable(),\n version: z.string().describe(\"Version of the document\").nullable().optional(),\n date_created: z.string().describe(\"Date when the document was created\").nullable(),\n date_modified: z.string().describe(\"Date when the document was last modified\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the document\").nullable().optional(),\n}).passthrough().describe(\"Response model for document creation.\");\n\nexport const pandadocCreateDocumentFromFile: AppAction<\n typeof PandadocCreateDocumentFromFileInput,\n typeof PandadocCreateDocumentFromFileOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_DOCUMENT_FROM_FILE\", {\n slug: \"pandadoc-create-document-from-file\",\n name: \"Create Document from File Upload\",\n description: \"Creates a new document in PandaDoc by uploading a file (PDF, DOCX, or RTF). Converts existing documents into PandaDoc documents for processing, signing, and tracking. Either `file` or `url` must be provided; omitting both will fail. Large files may time out during upload and conversion.\",\n input: PandadocCreateDocumentFromFileInput,\n output: PandadocCreateDocumentFromFileOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC9I,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO;EAChB,OAA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O,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACpK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,iCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-from-file.d.ts
@@ -33,29 +35,7 @@ declare const PandadocCreateDocumentFromFileOutput: z.ZodObject<{
33
35
  date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
36
  expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  }, z.core.$loose>;
36
- declare const pandadocCreateDocumentFromFile: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- name: string;
38
- recipients: {
39
- [x: string]: unknown;
40
- email: string;
41
- role?: string | undefined;
42
- last_name?: string | undefined;
43
- first_name?: string | undefined;
44
- signing_order?: number | undefined;
45
- }[];
46
- url?: string | undefined;
47
- file?: {
48
- name: string;
49
- s3key: string;
50
- mimetype: string;
51
- } | undefined;
52
- tags?: string[] | undefined;
53
- owner?: {
54
- email?: string | undefined;
55
- membership_id?: string | undefined;
56
- } | undefined;
57
- parse_form_fields?: boolean | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const pandadocCreateDocumentFromFile: AppAction<typeof PandadocCreateDocumentFromFileInput, typeof PandadocCreateDocumentFromFileOutput, typeof pandadoc.credential>;
59
39
  //#endregion
60
40
  export { pandadocCreateDocumentFromFile };
61
41
  //# sourceMappingURL=create-document-from-file.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-file.d.cts","names":[],"sources":["../../src/actions/create-document-from-file.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;cAWpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"create-document-from-file.d.cts","names":[],"sources":["../../src/actions/create-document-from-file.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;cAWpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-from-file.d.ts
@@ -33,29 +35,7 @@ declare const PandadocCreateDocumentFromFileOutput: z.ZodObject<{
33
35
  date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
36
  expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  }, z.core.$loose>;
36
- declare const pandadocCreateDocumentFromFile: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- name: string;
38
- recipients: {
39
- [x: string]: unknown;
40
- email: string;
41
- role?: string | undefined;
42
- last_name?: string | undefined;
43
- first_name?: string | undefined;
44
- signing_order?: number | undefined;
45
- }[];
46
- url?: string | undefined;
47
- file?: {
48
- name: string;
49
- s3key: string;
50
- mimetype: string;
51
- } | undefined;
52
- tags?: string[] | undefined;
53
- owner?: {
54
- email?: string | undefined;
55
- membership_id?: string | undefined;
56
- } | undefined;
57
- parse_form_fields?: boolean | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const pandadocCreateDocumentFromFile: AppAction<typeof PandadocCreateDocumentFromFileInput, typeof PandadocCreateDocumentFromFileOutput, typeof pandadoc.credential>;
59
39
  //#endregion
60
40
  export { pandadocCreateDocumentFromFile };
61
41
  //# sourceMappingURL=create-document-from-file.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-file.d.mts","names":[],"sources":["../../src/actions/create-document-from-file.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;cAWpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"create-document-from-file.d.mts","names":[],"sources":["../../src/actions/create-document-from-file.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;cAWpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pandadocCreateDocumentFromFile = action("PANDADOC_CREATE_DOCUMENT_FROM_FILE", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-file.mjs","names":[],"sources":["../../src/actions/create-document-from-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateDocumentFromFileInput = z.object({\n url: z.string().describe(\"Public HTTPS URL of the file to use (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n name: z.string().describe(\"Name of the document\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the document\").optional(),\n owner: z.object({\n email: z.string().describe(\"Email of the document owner. Must be a valid email of an existing member in your PandaDoc workspace.\").optional(),\n membership_id: z.string().describe(\"Membership ID of the document owner. Must be a valid membership ID from your PandaDoc workspace.\").optional(),\n}).describe(\"Model for document owner.\").optional(),\n recipients: z.array(z.object({\n role: z.string().default(\"signer\").describe(\"Role of the recipient in the document. Common values: 'signer', 'approver', 'cc'. Note: PandaDoc API does not allow duplicate roles - each recipient must have a unique role.\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n last_name: z.string().describe(\"Last name of the recipient\").optional(),\n first_name: z.string().describe(\"First name of the recipient\").optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient should sign. If specified for any recipient, it must be specified for ALL recipients in the document.\").optional(),\n}).passthrough().describe(\"Model for document recipient.\")).describe(\"List of recipients for the document Each recipient object must include a valid `email` field; missing or malformed emails will prevent sending or signing.\"),\n parse_form_fields: z.boolean().default(false).describe(\"Whether to parse form fields in the document (for PDFs)\").optional(),\n}).describe(\"Request model for creating a document from file.\");\nexport const PandadocCreateDocumentFromFileOutput = z.object({\n id: z.string().describe(\"ID of the created document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n uuid: z.string().describe(\"UUID of the document\").nullable().optional(),\n status: z.string().describe(\"Current status of the document (typically 'document.uploaded' initially, then changes to 'document.draft' after processing)\").nullable(),\n version: z.string().describe(\"Version of the document\").nullable().optional(),\n date_created: z.string().describe(\"Date when the document was created\").nullable(),\n date_modified: z.string().describe(\"Date when the document was last modified\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the document\").nullable().optional(),\n}).passthrough().describe(\"Response model for document creation.\");\n\nexport const pandadocCreateDocumentFromFile = action(\"PANDADOC_CREATE_DOCUMENT_FROM_FILE\", {\n slug: \"pandadoc-create-document-from-file\",\n name: \"Create Document from File Upload\",\n description: \"Creates a new document in PandaDoc by uploading a file (PDF, DOCX, or RTF). Converts existing documents into PandaDoc documents for processing, signing, and tracking. Either `file` or `url` must be provided; omitting both will fail. Large files may time out during upload and conversion.\",\n input: PandadocCreateDocumentFromFileInput,\n output: PandadocCreateDocumentFromFileOutput,\n});\n"],"mappings":";;AAqCA,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCiD,EAAE,OAAO;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EAC9I,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO;GAChB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;GAC5I,eAAe,EAAE,OAAO,CAAC,CAAC,S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C,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-file.mjs","names":[],"sources":["../../src/actions/create-document-from-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateDocumentFromFileInput = z.object({\n url: z.string().describe(\"Public HTTPS URL of the file to use (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload (PDF, DOCX, or RTF format). Either 'file' or 'url' must be provided.\").optional(),\n name: z.string().describe(\"Name of the document\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the document\").optional(),\n owner: z.object({\n email: z.string().describe(\"Email of the document owner. Must be a valid email of an existing member in your PandaDoc workspace.\").optional(),\n membership_id: z.string().describe(\"Membership ID of the document owner. Must be a valid membership ID from your PandaDoc workspace.\").optional(),\n}).describe(\"Model for document owner.\").optional(),\n recipients: z.array(z.object({\n role: z.string().default(\"signer\").describe(\"Role of the recipient in the document. Common values: 'signer', 'approver', 'cc'. Note: PandaDoc API does not allow duplicate roles - each recipient must have a unique role.\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n last_name: z.string().describe(\"Last name of the recipient\").optional(),\n first_name: z.string().describe(\"First name of the recipient\").optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient should sign. If specified for any recipient, it must be specified for ALL recipients in the document.\").optional(),\n}).passthrough().describe(\"Model for document recipient.\")).describe(\"List of recipients for the document Each recipient object must include a valid `email` field; missing or malformed emails will prevent sending or signing.\"),\n parse_form_fields: z.boolean().default(false).describe(\"Whether to parse form fields in the document (for PDFs)\").optional(),\n}).describe(\"Request model for creating a document from file.\");\nexport const PandadocCreateDocumentFromFileOutput = z.object({\n id: z.string().describe(\"ID of the created document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n uuid: z.string().describe(\"UUID of the document\").nullable().optional(),\n status: z.string().describe(\"Current status of the document (typically 'document.uploaded' initially, then changes to 'document.draft' after processing)\").nullable(),\n version: z.string().describe(\"Version of the document\").nullable().optional(),\n date_created: z.string().describe(\"Date when the document was created\").nullable(),\n date_modified: z.string().describe(\"Date when the document was last modified\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the document\").nullable().optional(),\n}).passthrough().describe(\"Response model for document creation.\");\n\nexport const pandadocCreateDocumentFromFile: AppAction<\n typeof PandadocCreateDocumentFromFileInput,\n typeof PandadocCreateDocumentFromFileOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_DOCUMENT_FROM_FILE\", {\n slug: \"pandadoc-create-document-from-file\",\n name: \"Create Document from File Upload\",\n description: \"Creates a new document in PandaDoc by uploading a file (PDF, DOCX, or RTF). Converts existing documents into PandaDoc documents for processing, signing, and tracking. Either `file` or `url` must be provided; omitting both will fail. Large files may time out during upload and conversion.\",\n input: PandadocCreateDocumentFromFileInput,\n output: PandadocCreateDocumentFromFileOutput,\n});\n"],"mappings":";;;AAuCA,MAAa,iCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzCiD,EAAE,OAAO;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EAC9I,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,E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AS;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;EACpK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-folder.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-folder.cjs","names":["z","action"],"sources":["../../src/actions/create-folder.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateFolderInput = z.object({\n name: z.string().describe(\"Name of the folder to be created\"),\n parent_uuid: z.string().describe(\"UUID of the parent folder if creating a nested folder structure\").optional(),\n}).describe(\"Request model for creating a folder.\");\nexport const PandadocCreateFolderOutput = z.object({\n name: z.string().describe(\"Name of the created folder\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the created folder\").nullable(),\n date_created: z.string().describe(\"Timestamp when the folder was created\").nullable(),\n}).passthrough().describe(\"Response model for folder creation.\");\n\nexport const pandadocCreateFolder = action(\"PANDADOC_CREATE_FOLDER\", {\n slug: \"pandadoc-create-folder\",\n name: \"Create Document Folder\",\n description: \"Creates a new folder in PandaDoc to organize documents. This action allows users to create a new folder with a specified name and optionally set a parent folder to create a nested folder structure.\",\n input: PandadocCreateFolderInput,\n output: PandadocCreateFolderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-folder.cjs","names":["z","action"],"sources":["../../src/actions/create-folder.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateFolderInput = z.object({\n name: z.string().describe(\"Name of the folder to be created\"),\n parent_uuid: z.string().describe(\"UUID of the parent folder if creating a nested folder structure\").optional(),\n}).describe(\"Request model for creating a folder.\");\nexport const PandadocCreateFolderOutput = z.object({\n name: z.string().describe(\"Name of the created folder\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the created folder\").nullable(),\n date_created: z.string().describe(\"Timestamp when the folder was created\").nullable(),\n}).passthrough().describe(\"Response model for folder creation.\");\n\nexport const pandadocCreateFolder: AppAction<\n typeof PandadocCreateFolderInput,\n typeof PandadocCreateFolderOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_FOLDER\", {\n slug: \"pandadoc-create-folder\",\n name: \"Create Document Folder\",\n description: \"Creates a new folder in PandaDoc to organize documents. This action allows users to create a new folder with a specified name and optionally set a parent folder to create a nested folder structure.\",\n input: PandadocCreateFolderInput,\n output: PandadocCreateFolderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-folder.d.ts
@@ -10,10 +12,7 @@ declare const PandadocCreateFolderOutput: z.ZodObject<{
10
12
  uuid: z.ZodNullable<z.ZodString>;
11
13
  date_created: z.ZodNullable<z.ZodString>;
12
14
  }, z.core.$loose>;
13
- declare const pandadocCreateFolder: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- name: string;
15
- parent_uuid?: string | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const pandadocCreateFolder: AppAction<typeof PandadocCreateFolderInput, typeof PandadocCreateFolderOutput, typeof pandadoc.credential>;
17
16
  //#endregion
18
17
  export { pandadocCreateFolder };
19
18
  //# sourceMappingURL=create-folder.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-folder.d.cts","names":[],"sources":["../../src/actions/create-folder.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-folder.d.cts","names":[],"sources":["../../src/actions/create-folder.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-folder.d.ts
@@ -10,10 +12,7 @@ declare const PandadocCreateFolderOutput: z.ZodObject<{
10
12
  uuid: z.ZodNullable<z.ZodString>;
11
13
  date_created: z.ZodNullable<z.ZodString>;
12
14
  }, z.core.$loose>;
13
- declare const pandadocCreateFolder: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- name: string;
15
- parent_uuid?: string | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const pandadocCreateFolder: AppAction<typeof PandadocCreateFolderInput, typeof PandadocCreateFolderOutput, typeof pandadoc.credential>;
17
16
  //#endregion
18
17
  export { pandadocCreateFolder };
19
18
  //# sourceMappingURL=create-folder.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-folder.d.mts","names":[],"sources":["../../src/actions/create-folder.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-folder.d.mts","names":[],"sources":["../../src/actions/create-folder.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pandadocCreateFolder = action("PANDADOC_CREATE_FOLDER", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-folder.mjs","names":[],"sources":["../../src/actions/create-folder.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateFolderInput = z.object({\n name: z.string().describe(\"Name of the folder to be created\"),\n parent_uuid: z.string().describe(\"UUID of the parent folder if creating a nested folder structure\").optional(),\n}).describe(\"Request model for creating a folder.\");\nexport const PandadocCreateFolderOutput = z.object({\n name: z.string().describe(\"Name of the created folder\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the created folder\").nullable(),\n date_created: z.string().describe(\"Timestamp when the folder was created\").nullable(),\n}).passthrough().describe(\"Response model for folder creation.\");\n\nexport const pandadocCreateFolder = action(\"PANDADOC_CREATE_FOLDER\", {\n slug: \"pandadoc-create-folder\",\n name: \"Create Document Folder\",\n description: \"Creates a new folder in PandaDoc to organize documents. This action allows users to create a new folder with a specified name and optionally set a parent folder to create a nested folder structure.\",\n input: PandadocCreateFolderInput,\n output: PandadocCreateFolderOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,sCAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-folder.mjs","names":[],"sources":["../../src/actions/create-folder.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateFolderInput = z.object({\n name: z.string().describe(\"Name of the folder to be created\"),\n parent_uuid: z.string().describe(\"UUID of the parent folder if creating a nested folder structure\").optional(),\n}).describe(\"Request model for creating a folder.\");\nexport const PandadocCreateFolderOutput = z.object({\n name: z.string().describe(\"Name of the created folder\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the created folder\").nullable(),\n date_created: z.string().describe(\"Timestamp when the folder was created\").nullable(),\n}).passthrough().describe(\"Response model for folder creation.\");\n\nexport const pandadocCreateFolder: AppAction<\n typeof PandadocCreateFolderInput,\n typeof PandadocCreateFolderOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_FOLDER\", {\n slug: \"pandadoc-create-folder\",\n name: \"Create Document Folder\",\n description: \"Creates a new folder in PandaDoc to organize documents. This action allows users to create a new folder with a specified name and optionally set a parent folder to create a nested folder structure.\",\n input: PandadocCreateFolderInput,\n output: PandadocCreateFolderOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,sCAeH;CACP,QAfwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-or-update-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n email: z.string().describe(\"Email address of the contact. Required for both create and update operations.\"),\n phone: z.string().describe(\"Phone number of the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n company: z.string().describe(\"Company name of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n job_title: z.string().describe(\"Job title of the contact\").optional(),\n last_name: z.string().describe(\"Last name of the contact\").optional(),\n first_name: z.string().describe(\"First name of the contact\").optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").optional(),\n street_address: z.string().describe(\"Street address of the contact\").optional(),\n}).describe(\"Request model for creating or updating a contact.\");\nexport const PandadocCreateOrUpdateContactOutput = z.object({\n id: z.string().describe(\"Unique identifier of the contact\").nullable(),\n city: z.string().describe(\"City of the contact\").nullable().optional(),\n email: z.string().describe(\"Email address of the contact\").nullable(),\n phone: z.string().describe(\"Phone number of the contact\").nullable().optional(),\n state: z.string().describe(\"State of the contact\").nullable().optional(),\n company: z.string().describe(\"Company name of the contact\").nullable().optional(),\n country: z.string().describe(\"Country of the contact\").nullable().optional(),\n job_title: z.string().describe(\"Job title of the contact\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").nullable().optional(),\n street_address: z.string().describe(\"Street address of the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact operations.\");\n\nexport const pandadocCreateOrUpdateContact = action(\"PANDADOC_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"pandadoc-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"This tool creates a new contact or updates an existing one in PandaDoc based on the email address. If a contact with the provided email exists, it will be updated; otherwise, a new contact will be created.\",\n input: PandadocCreateOrUpdateContactInput,\n output: PandadocCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,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6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n email: z.string().describe(\"Email address of the contact. Required for both create and update operations.\"),\n phone: z.string().describe(\"Phone number of the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n company: z.string().describe(\"Company name of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n job_title: z.string().describe(\"Job title of the contact\").optional(),\n last_name: z.string().describe(\"Last name of the contact\").optional(),\n first_name: z.string().describe(\"First name of the contact\").optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").optional(),\n street_address: z.string().describe(\"Street address of the contact\").optional(),\n}).describe(\"Request model for creating or updating a contact.\");\nexport const PandadocCreateOrUpdateContactOutput = z.object({\n id: z.string().describe(\"Unique identifier of the contact\").nullable(),\n city: z.string().describe(\"City of the contact\").nullable().optional(),\n email: z.string().describe(\"Email address of the contact\").nullable(),\n phone: z.string().describe(\"Phone number of the contact\").nullable().optional(),\n state: z.string().describe(\"State of the contact\").nullable().optional(),\n company: z.string().describe(\"Company name of the contact\").nullable().optional(),\n country: z.string().describe(\"Country of the contact\").nullable().optional(),\n job_title: z.string().describe(\"Job title of the contact\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").nullable().optional(),\n street_address: z.string().describe(\"Street address of the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact operations.\");\n\nexport const pandadocCreateOrUpdateContact: AppAction<\n typeof PandadocCreateOrUpdateContactInput,\n typeof PandadocCreateOrUpdateContactOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"pandadoc-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"This tool creates a new contact or updates an existing one in PandaDoc based on the email address. If a contact with the provided email exists, it will be updated; otherwise, a new contact will be created.\",\n input: PandadocCreateOrUpdateContactInput,\n output: PandadocCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-contact.d.ts
@@ -28,19 +30,7 @@ declare const PandadocCreateOrUpdateContactOutput: z.ZodObject<{
28
30
  postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  }, z.core.$loose>;
31
- declare const pandadocCreateOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- email: string;
33
- city?: string | undefined;
34
- phone?: string | undefined;
35
- state?: string | undefined;
36
- company?: string | undefined;
37
- country?: string | undefined;
38
- job_title?: string | undefined;
39
- last_name?: string | undefined;
40
- first_name?: string | undefined;
41
- postal_code?: string | undefined;
42
- street_address?: string | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const pandadocCreateOrUpdateContact: AppAction<typeof PandadocCreateOrUpdateContactInput, typeof PandadocCreateOrUpdateContactOutput, typeof pandadoc.credential>;
44
34
  //#endregion
45
35
  export { pandadocCreateOrUpdateContact };
46
36
  //# sourceMappingURL=create-or-update-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.d.cts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAalC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAenC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"create-or-update-contact.d.cts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAalC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAenC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-contact.d.ts
@@ -28,19 +30,7 @@ declare const PandadocCreateOrUpdateContactOutput: z.ZodObject<{
28
30
  postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  }, z.core.$loose>;
31
- declare const pandadocCreateOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- email: string;
33
- city?: string | undefined;
34
- phone?: string | undefined;
35
- state?: string | undefined;
36
- company?: string | undefined;
37
- country?: string | undefined;
38
- job_title?: string | undefined;
39
- last_name?: string | undefined;
40
- first_name?: string | undefined;
41
- postal_code?: string | undefined;
42
- street_address?: string | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const pandadocCreateOrUpdateContact: AppAction<typeof PandadocCreateOrUpdateContactInput, typeof PandadocCreateOrUpdateContactOutput, typeof pandadoc.credential>;
44
34
  //#endregion
45
35
  export { pandadocCreateOrUpdateContact };
46
36
  //# sourceMappingURL=create-or-update-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.d.mts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAalC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAenC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"create-or-update-contact.d.mts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAalC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAenC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pandadocCreateOrUpdateContact = action("PANDADOC_CREATE_OR_UPDATE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n email: z.string().describe(\"Email address of the contact. Required for both create and update operations.\"),\n phone: z.string().describe(\"Phone number of the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n company: z.string().describe(\"Company name of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n job_title: z.string().describe(\"Job title of the contact\").optional(),\n last_name: z.string().describe(\"Last name of the contact\").optional(),\n first_name: z.string().describe(\"First name of the contact\").optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").optional(),\n street_address: z.string().describe(\"Street address of the contact\").optional(),\n}).describe(\"Request model for creating or updating a contact.\");\nexport const PandadocCreateOrUpdateContactOutput = z.object({\n id: z.string().describe(\"Unique identifier of the contact\").nullable(),\n city: z.string().describe(\"City of the contact\").nullable().optional(),\n email: z.string().describe(\"Email address of the contact\").nullable(),\n phone: z.string().describe(\"Phone number of the contact\").nullable().optional(),\n state: z.string().describe(\"State of the contact\").nullable().optional(),\n company: z.string().describe(\"Company name of the contact\").nullable().optional(),\n country: z.string().describe(\"Country of the contact\").nullable().optional(),\n job_title: z.string().describe(\"Job title of the contact\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").nullable().optional(),\n street_address: z.string().describe(\"Street address of the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact operations.\");\n\nexport const pandadocCreateOrUpdateContact = action(\"PANDADOC_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"pandadoc-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"This tool creates a new contact or updates an existing one in PandaDoc based on the email address. If a contact with the provided email exists, it will be updated; otherwise, a new contact will be created.\",\n input: PandadocCreateOrUpdateContactInput,\n output: PandadocCreateOrUpdateContactOutput,\n});\n"],"mappings":";;AAgCA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN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AC,CAAC,SAAS;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n email: z.string().describe(\"Email address of the contact. Required for both create and update operations.\"),\n phone: z.string().describe(\"Phone number of the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n company: z.string().describe(\"Company name of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n job_title: z.string().describe(\"Job title of the contact\").optional(),\n last_name: z.string().describe(\"Last name of the contact\").optional(),\n first_name: z.string().describe(\"First name of the contact\").optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").optional(),\n street_address: z.string().describe(\"Street address of the contact\").optional(),\n}).describe(\"Request model for creating or updating a contact.\");\nexport const PandadocCreateOrUpdateContactOutput = z.object({\n id: z.string().describe(\"Unique identifier of the contact\").nullable(),\n city: z.string().describe(\"City of the contact\").nullable().optional(),\n email: z.string().describe(\"Email address of the contact\").nullable(),\n phone: z.string().describe(\"Phone number of the contact\").nullable().optional(),\n state: z.string().describe(\"State of the contact\").nullable().optional(),\n company: z.string().describe(\"Company name of the contact\").nullable().optional(),\n country: z.string().describe(\"Country of the contact\").nullable().optional(),\n job_title: z.string().describe(\"Job title of the contact\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code of the contact\").nullable().optional(),\n street_address: z.string().describe(\"Street address of the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact operations.\");\n\nexport const pandadocCreateOrUpdateContact: AppAction<\n typeof PandadocCreateOrUpdateContactInput,\n typeof PandadocCreateOrUpdateContactOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"pandadoc-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"This tool creates a new contact or updates an existing one in PandaDoc based on the email address. If a contact with the provided email exists, it will be updated; otherwise, a new contact will be created.\",\n input: PandadocCreateOrUpdateContactInput,\n output: PandadocCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAkCA,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,C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,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-template.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocCreateTemplateInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"PDF file to use for template creation\").optional(),\n name: z.string().describe(\"Name of the template\"),\n tags: z.array(z.string()).describe(\"Optional tags to categorize the template\").optional(),\n content: z.object({\n title: z.string().describe(\"Title of the template content\"),\n blocks: z.array(z.record(z.string(), z.unknown())).describe(\"List of content blocks for the template\"),\n}).describe(\"Content model for template creation from scratch.\").optional(),\n description: z.string().describe(\"Optional description of the template\").optional(),\n}).describe(\"Request model for creating a template.\");\nexport const PandadocCreateTemplateOutput = z.object({\n id: z.string().describe(\"ID of the created template\").nullable(),\n name: z.string().describe(\"Name of the template\").nullable(),\n status: z.string().describe(\"Status of the template\").nullable(),\n version: z.string().describe(\"Version of the template\").nullable(),\n date_created: z.string().describe(\"Creation date of the template\").nullable(),\n date_modified: z.string().describe(\"Last modification date of the template\").nullable(),\n}).passthrough().describe(\"Response model for template creation.\");\n\nexport const pandadocCreateTemplate = action(\"PANDADOC_CREATE_TEMPLATE\", {\n slug: \"pandadoc-create-template\",\n name: \"Create Template\",\n description: \"This tool allows users to create a new template in PandaDoc from a PDF file or from scratch. It handles file upload validation, parameter checks, proper error handling, and authentication with the PandaDoc API. The template can be created either by uploading a PDF file or by providing a structured content object that defines the template layout and elements.\",\n input: PandadocCreateTemplateInput,\n output: PandadocCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO;EAClB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pandadoc } from \"../app\";\n\nexport const PandadocCreateTemplateInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"PDF file to use for template creation\").optional(),\n name: z.string().describe(\"Name of the template\"),\n tags: z.array(z.string()).describe(\"Optional tags to categorize the template\").optional(),\n content: z.object({\n title: z.string().describe(\"Title of the template content\"),\n blocks: z.array(z.record(z.string(), z.unknown())).describe(\"List of content blocks for the template\"),\n}).describe(\"Content model for template creation from scratch.\").optional(),\n description: z.string().describe(\"Optional description of the template\").optional(),\n}).describe(\"Request model for creating a template.\");\nexport const PandadocCreateTemplateOutput = z.object({\n id: z.string().describe(\"ID of the created template\").nullable(),\n name: z.string().describe(\"Name of the template\").nullable(),\n status: z.string().describe(\"Status of the template\").nullable(),\n version: z.string().describe(\"Version of the template\").nullable(),\n date_created: z.string().describe(\"Creation date of the template\").nullable(),\n date_modified: z.string().describe(\"Last modification date of the template\").nullable(),\n}).passthrough().describe(\"Response model for template creation.\");\n\nexport const pandadocCreateTemplate: AppAction<\n typeof PandadocCreateTemplateInput,\n typeof PandadocCreateTemplateOutput,\n typeof pandadoc.credential\n> = action(\"PANDADOC_CREATE_TEMPLATE\", {\n slug: \"pandadoc-create-template\",\n name: \"Create Template\",\n description: \"This tool allows users to create a new template in PandaDoc from a PDF file or from scratch. It handles file upload validation, parameter checks, proper error handling, and authentication with the PandaDoc API. The template can be created either by uploading a PDF file or by providing a structured content object that defines the template layout and elements.\",\n input: PandadocCreateTemplateInput,\n output: PandadocCreateTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO;EAClB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pandadoc } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-template.d.ts
@@ -23,20 +25,7 @@ declare const PandadocCreateTemplateOutput: z.ZodObject<{
23
25
  date_created: z.ZodNullable<z.ZodString>;
24
26
  date_modified: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>;
26
- declare const pandadocCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- name: string;
28
- file?: {
29
- name: string;
30
- s3key: string;
31
- mimetype: string;
32
- } | undefined;
33
- tags?: string[] | undefined;
34
- content?: {
35
- title: string;
36
- blocks: Record<string, unknown>[];
37
- } | undefined;
38
- description?: string | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const pandadocCreateTemplate: AppAction<typeof PandadocCreateTemplateInput, typeof PandadocCreateTemplateOutput, typeof pandadoc.credential>;
40
29
  //#endregion
41
30
  export { pandadocCreateTemplate };
42
31
  //# sourceMappingURL=create-template.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-template.d.cts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;YAMjC,MAAA;EAAA"}
1
+ {"version":3,"file":"create-template.d.cts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAS5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}