@keystrokehq/folk 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 (197) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-company.cjs +1 -0
  4. package/dist/actions/create-company.cjs.map +1 -1
  5. package/dist/actions/create-company.d.cts +3 -18
  6. package/dist/actions/create-company.d.cts.map +1 -1
  7. package/dist/actions/create-company.d.mts +3 -18
  8. package/dist/actions/create-company.d.mts.map +1 -1
  9. package/dist/actions/create-company.mjs +1 -0
  10. package/dist/actions/create-company.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +1 -0
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +3 -10
  14. package/dist/actions/create-note.d.cts.map +1 -1
  15. package/dist/actions/create-note.d.mts +3 -10
  16. package/dist/actions/create-note.d.mts.map +1 -1
  17. package/dist/actions/create-note.mjs +1 -0
  18. package/dist/actions/create-note.mjs.map +1 -1
  19. package/dist/actions/create-person.cjs +1 -0
  20. package/dist/actions/create-person.cjs.map +1 -1
  21. package/dist/actions/create-person.d.cts +3 -11
  22. package/dist/actions/create-person.d.cts.map +1 -1
  23. package/dist/actions/create-person.d.mts +3 -11
  24. package/dist/actions/create-person.d.mts.map +1 -1
  25. package/dist/actions/create-person.mjs +1 -0
  26. package/dist/actions/create-person.mjs.map +1 -1
  27. package/dist/actions/delete-company.cjs +1 -0
  28. package/dist/actions/delete-company.cjs.map +1 -1
  29. package/dist/actions/delete-company.d.cts +3 -3
  30. package/dist/actions/delete-company.d.cts.map +1 -1
  31. package/dist/actions/delete-company.d.mts +3 -3
  32. package/dist/actions/delete-company.d.mts.map +1 -1
  33. package/dist/actions/delete-company.mjs +1 -0
  34. package/dist/actions/delete-company.mjs.map +1 -1
  35. package/dist/actions/delete-note.cjs +1 -0
  36. package/dist/actions/delete-note.cjs.map +1 -1
  37. package/dist/actions/delete-note.d.cts +3 -3
  38. package/dist/actions/delete-note.d.cts.map +1 -1
  39. package/dist/actions/delete-note.d.mts +3 -3
  40. package/dist/actions/delete-note.d.mts.map +1 -1
  41. package/dist/actions/delete-note.mjs +1 -0
  42. package/dist/actions/delete-note.mjs.map +1 -1
  43. package/dist/actions/delete-person.cjs +1 -0
  44. package/dist/actions/delete-person.cjs.map +1 -1
  45. package/dist/actions/delete-person.d.cts +3 -3
  46. package/dist/actions/delete-person.d.cts.map +1 -1
  47. package/dist/actions/delete-person.d.mts +3 -3
  48. package/dist/actions/delete-person.d.mts.map +1 -1
  49. package/dist/actions/delete-person.mjs +1 -0
  50. package/dist/actions/delete-person.mjs.map +1 -1
  51. package/dist/actions/delete-reminder.cjs +1 -0
  52. package/dist/actions/delete-reminder.cjs.map +1 -1
  53. package/dist/actions/delete-reminder.d.cts +3 -3
  54. package/dist/actions/delete-reminder.d.cts.map +1 -1
  55. package/dist/actions/delete-reminder.d.mts +3 -3
  56. package/dist/actions/delete-reminder.d.mts.map +1 -1
  57. package/dist/actions/delete-reminder.mjs +1 -0
  58. package/dist/actions/delete-reminder.mjs.map +1 -1
  59. package/dist/actions/get-company.cjs +1 -0
  60. package/dist/actions/get-company.cjs.map +1 -1
  61. package/dist/actions/get-company.d.cts +3 -3
  62. package/dist/actions/get-company.d.cts.map +1 -1
  63. package/dist/actions/get-company.d.mts +3 -3
  64. package/dist/actions/get-company.d.mts.map +1 -1
  65. package/dist/actions/get-company.mjs +1 -0
  66. package/dist/actions/get-company.mjs.map +1 -1
  67. package/dist/actions/get-current-workspace-user.cjs +1 -0
  68. package/dist/actions/get-current-workspace-user.cjs.map +1 -1
  69. package/dist/actions/get-current-workspace-user.d.cts +3 -1
  70. package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
  71. package/dist/actions/get-current-workspace-user.d.mts +3 -1
  72. package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
  73. package/dist/actions/get-current-workspace-user.mjs +1 -0
  74. package/dist/actions/get-current-workspace-user.mjs.map +1 -1
  75. package/dist/actions/get-note.cjs +1 -0
  76. package/dist/actions/get-note.cjs.map +1 -1
  77. package/dist/actions/get-note.d.cts +3 -3
  78. package/dist/actions/get-note.d.cts.map +1 -1
  79. package/dist/actions/get-note.d.mts +3 -3
  80. package/dist/actions/get-note.d.mts.map +1 -1
  81. package/dist/actions/get-note.mjs +1 -0
  82. package/dist/actions/get-note.mjs.map +1 -1
  83. package/dist/actions/get-person.cjs +1 -0
  84. package/dist/actions/get-person.cjs.map +1 -1
  85. package/dist/actions/get-person.d.cts +3 -3
  86. package/dist/actions/get-person.d.cts.map +1 -1
  87. package/dist/actions/get-person.d.mts +3 -3
  88. package/dist/actions/get-person.d.mts.map +1 -1
  89. package/dist/actions/get-person.mjs +1 -0
  90. package/dist/actions/get-person.mjs.map +1 -1
  91. package/dist/actions/get-user.cjs +1 -0
  92. package/dist/actions/get-user.cjs.map +1 -1
  93. package/dist/actions/get-user.d.cts +3 -3
  94. package/dist/actions/get-user.d.cts.map +1 -1
  95. package/dist/actions/get-user.d.mts +3 -3
  96. package/dist/actions/get-user.d.mts.map +1 -1
  97. package/dist/actions/get-user.mjs +1 -0
  98. package/dist/actions/get-user.mjs.map +1 -1
  99. package/dist/actions/list-companies.cjs +1 -0
  100. package/dist/actions/list-companies.cjs.map +1 -1
  101. package/dist/actions/list-companies.d.cts +3 -6
  102. package/dist/actions/list-companies.d.cts.map +1 -1
  103. package/dist/actions/list-companies.d.mts +3 -6
  104. package/dist/actions/list-companies.d.mts.map +1 -1
  105. package/dist/actions/list-companies.mjs +1 -0
  106. package/dist/actions/list-companies.mjs.map +1 -1
  107. package/dist/actions/list-group-custom-fields.cjs +1 -0
  108. package/dist/actions/list-group-custom-fields.cjs.map +1 -1
  109. package/dist/actions/list-group-custom-fields.d.cts +3 -6
  110. package/dist/actions/list-group-custom-fields.d.cts.map +1 -1
  111. package/dist/actions/list-group-custom-fields.d.mts +3 -6
  112. package/dist/actions/list-group-custom-fields.d.mts.map +1 -1
  113. package/dist/actions/list-group-custom-fields.mjs +1 -0
  114. package/dist/actions/list-group-custom-fields.mjs.map +1 -1
  115. package/dist/actions/list-groups.cjs +1 -0
  116. package/dist/actions/list-groups.cjs.map +1 -1
  117. package/dist/actions/list-groups.d.cts +3 -4
  118. package/dist/actions/list-groups.d.cts.map +1 -1
  119. package/dist/actions/list-groups.d.mts +3 -4
  120. package/dist/actions/list-groups.d.mts.map +1 -1
  121. package/dist/actions/list-groups.mjs +1 -0
  122. package/dist/actions/list-groups.mjs.map +1 -1
  123. package/dist/actions/list-notes.cjs +1 -0
  124. package/dist/actions/list-notes.cjs.map +1 -1
  125. package/dist/actions/list-notes.d.cts +3 -4
  126. package/dist/actions/list-notes.d.cts.map +1 -1
  127. package/dist/actions/list-notes.d.mts +3 -4
  128. package/dist/actions/list-notes.d.mts.map +1 -1
  129. package/dist/actions/list-notes.mjs +1 -0
  130. package/dist/actions/list-notes.mjs.map +1 -1
  131. package/dist/actions/list-people.cjs +1 -0
  132. package/dist/actions/list-people.cjs.map +1 -1
  133. package/dist/actions/list-people.d.cts +3 -7
  134. package/dist/actions/list-people.d.cts.map +1 -1
  135. package/dist/actions/list-people.d.mts +3 -7
  136. package/dist/actions/list-people.d.mts.map +1 -1
  137. package/dist/actions/list-people.mjs +1 -0
  138. package/dist/actions/list-people.mjs.map +1 -1
  139. package/dist/actions/list-reminders.cjs +1 -0
  140. package/dist/actions/list-reminders.cjs.map +1 -1
  141. package/dist/actions/list-reminders.d.cts +3 -5
  142. package/dist/actions/list-reminders.d.cts.map +1 -1
  143. package/dist/actions/list-reminders.d.mts +3 -5
  144. package/dist/actions/list-reminders.d.mts.map +1 -1
  145. package/dist/actions/list-reminders.mjs +1 -0
  146. package/dist/actions/list-reminders.mjs.map +1 -1
  147. package/dist/actions/list-users.cjs +1 -0
  148. package/dist/actions/list-users.cjs.map +1 -1
  149. package/dist/actions/list-users.d.cts +3 -4
  150. package/dist/actions/list-users.d.cts.map +1 -1
  151. package/dist/actions/list-users.d.mts +3 -4
  152. package/dist/actions/list-users.d.mts.map +1 -1
  153. package/dist/actions/list-users.mjs +1 -0
  154. package/dist/actions/list-users.mjs.map +1 -1
  155. package/dist/actions/list-webhooks.cjs +1 -0
  156. package/dist/actions/list-webhooks.cjs.map +1 -1
  157. package/dist/actions/list-webhooks.d.cts +3 -4
  158. package/dist/actions/list-webhooks.d.cts.map +1 -1
  159. package/dist/actions/list-webhooks.d.mts +3 -4
  160. package/dist/actions/list-webhooks.d.mts.map +1 -1
  161. package/dist/actions/list-webhooks.mjs +1 -0
  162. package/dist/actions/list-webhooks.mjs.map +1 -1
  163. package/dist/actions/update-company.cjs +1 -0
  164. package/dist/actions/update-company.cjs.map +1 -1
  165. package/dist/actions/update-company.d.cts +3 -14
  166. package/dist/actions/update-company.d.cts.map +1 -1
  167. package/dist/actions/update-company.d.mts +3 -14
  168. package/dist/actions/update-company.d.mts.map +1 -1
  169. package/dist/actions/update-company.mjs +1 -0
  170. package/dist/actions/update-company.mjs.map +1 -1
  171. package/dist/actions/update-note.cjs +1 -0
  172. package/dist/actions/update-note.cjs.map +1 -1
  173. package/dist/actions/update-note.d.cts +3 -5
  174. package/dist/actions/update-note.d.cts.map +1 -1
  175. package/dist/actions/update-note.d.mts +3 -5
  176. package/dist/actions/update-note.d.mts.map +1 -1
  177. package/dist/actions/update-note.mjs +1 -0
  178. package/dist/actions/update-note.mjs.map +1 -1
  179. package/dist/actions/update-person.cjs +1 -0
  180. package/dist/actions/update-person.cjs.map +1 -1
  181. package/dist/actions/update-person.d.cts +3 -23
  182. package/dist/actions/update-person.d.cts.map +1 -1
  183. package/dist/actions/update-person.d.mts +3 -23
  184. package/dist/actions/update-person.d.mts.map +1 -1
  185. package/dist/actions/update-person.mjs +1 -0
  186. package/dist/actions/update-person.mjs.map +1 -1
  187. package/dist/app.cjs +5 -2
  188. package/dist/app.cjs.map +1 -1
  189. package/dist/app.d.cts +7 -1
  190. package/dist/app.d.cts.map +1 -1
  191. package/dist/app.d.mts +7 -1
  192. package/dist/app.d.mts.map +1 -1
  193. package/dist/app.mjs +3 -2
  194. package/dist/app.mjs.map +1 -1
  195. package/dist/index.d.cts +1 -1
  196. package/dist/index.d.mts +1 -1
  197. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["folk","executeFolkTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } 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 folk.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 executeFolkTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,KAAK,OAAO;EACjB,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,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["folk","executeFolkTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } 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 folk.credential> {\n return folk.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 executeFolkTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOoD;CACpD,OAAOA,YAAAA,KAAK,OAAO;EACjB,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,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } 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 folk.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 executeFolkTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gBAAgB,MAAM,KAAgC,CAAC;EACvF;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 { folk } from \"./app\";\nimport { executeFolkTool } 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 folk.credential> {\n return folk.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 executeFolkTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOoD;CACpD,OAAO,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gBAAgB,MAAM,KAAgC,CAAC;EACvF;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-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).passthrough().describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.string().describe(\"Industry sector of the company.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n createdAt: z.string().describe(\"Timestamp when the company was created.\").nullable(),\n createdBy: FolkCreateCompany_CreatedBySchema.nullable(),\n description: z.string().describe(\"Description of the created company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").nullable().optional(),\n fundingRaised: z.string().describe(\"Amount of funding raised by the company (returned as string).\").nullable().optional(),\n foundationYear: z.string().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company grouped by group ID.\"),\n}).passthrough().describe(\"Data returned after a successful company creation.\");\nexport const FolkCreateCompanyOutput = z.object({\n data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new company.\");\n\nexport const folkCreateCompany = action(\"FOLK_CREATE_COMPANY\", {\n slug: \"folk-create-company\",\n name: \"Create Company\",\n description: \"Creates a new company in the Folk workspace with the specified details. Required: company name (unique identifier). Optional: description, industry, funding details, employee range, contact info (emails, phones, urls, addresses), group assignments, and custom field values. Returns the created company with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreateCompanyInput,\n output: FolkCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC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A+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).passthrough().describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.string().describe(\"Industry sector of the company.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n createdAt: z.string().describe(\"Timestamp when the company was created.\").nullable(),\n createdBy: FolkCreateCompany_CreatedBySchema.nullable(),\n description: z.string().describe(\"Description of the created company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").nullable().optional(),\n fundingRaised: z.string().describe(\"Amount of funding raised by the company (returned as string).\").nullable().optional(),\n foundationYear: z.string().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company grouped by group ID.\"),\n}).passthrough().describe(\"Data returned after a successful company creation.\");\nexport const FolkCreateCompanyOutput = z.object({\n data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new company.\");\n\nexport const folkCreateCompany: AppAction<\n typeof FolkCreateCompanyInput,\n typeof FolkCreateCompanyOutput,\n typeof folk.credential\n> = action(\"FOLK_CREATE_COMPANY\", {\n slug: \"folk-create-company\",\n name: \"Create Company\",\n description: \"Creates a new company in the Folk workspace with the specified details. Required: company name (unique identifier). Optional: description, industry, funding details, employee range, contact info (emails, phones, urls, addresses), group assignments, and custom field values. Returns the created company with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreateCompanyInput,\n output: FolkCreateCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAA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AE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-company.d.ts
@@ -46,24 +48,7 @@ declare const FolkCreateCompanyOutput: z.ZodObject<{
46
48
  }, z.core.$loose>>;
47
49
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
48
50
  }, z.core.$loose>;
49
- declare const folkCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
50
- name: string;
51
- urls?: string[] | undefined;
52
- emails?: string[] | undefined;
53
- groups?: {
54
- [x: string]: unknown;
55
- id: string;
56
- }[] | undefined;
57
- phones?: string[] | undefined;
58
- industry?: string | undefined;
59
- addresses?: string[] | undefined;
60
- description?: string | undefined;
61
- employeeRange?: string | undefined;
62
- fundingRaised?: number | undefined;
63
- foundationYear?: string | undefined;
64
- lastFundingDate?: string | undefined;
65
- customFieldValues?: Record<string, unknown> | undefined;
66
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
+ declare const folkCreateCompany: AppAction<typeof FolkCreateCompanyInput, typeof FolkCreateCompanyOutput, typeof folk.credential>;
67
52
  //#endregion
68
53
  export { folkCreateCompany };
69
54
  //# sourceMappingURL=create-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;sBAM5B,MAAA;AAAA"}
1
+ {"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-company.d.ts
@@ -46,24 +48,7 @@ declare const FolkCreateCompanyOutput: z.ZodObject<{
46
48
  }, z.core.$loose>>;
47
49
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
48
50
  }, z.core.$loose>;
49
- declare const folkCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
50
- name: string;
51
- urls?: string[] | undefined;
52
- emails?: string[] | undefined;
53
- groups?: {
54
- [x: string]: unknown;
55
- id: string;
56
- }[] | undefined;
57
- phones?: string[] | undefined;
58
- industry?: string | undefined;
59
- addresses?: string[] | undefined;
60
- description?: string | undefined;
61
- employeeRange?: string | undefined;
62
- fundingRaised?: number | undefined;
63
- foundationYear?: string | undefined;
64
- lastFundingDate?: string | undefined;
65
- customFieldValues?: Record<string, unknown> | undefined;
66
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
+ declare const folkCreateCompany: AppAction<typeof FolkCreateCompanyInput, typeof FolkCreateCompanyOutput, typeof folk.credential>;
67
52
  //#endregion
68
53
  export { folkCreateCompany };
69
54
  //# sourceMappingURL=create-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;sBAM5B,MAAA;AAAA"}
1
+ {"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).passthrough().describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.string().describe(\"Industry sector of the company.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n createdAt: z.string().describe(\"Timestamp when the company was created.\").nullable(),\n createdBy: FolkCreateCompany_CreatedBySchema.nullable(),\n description: z.string().describe(\"Description of the created company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").nullable().optional(),\n fundingRaised: z.string().describe(\"Amount of funding raised by the company (returned as string).\").nullable().optional(),\n foundationYear: z.string().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company grouped by group ID.\"),\n}).passthrough().describe(\"Data returned after a successful company creation.\");\nexport const FolkCreateCompanyOutput = z.object({\n data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new company.\");\n\nexport const folkCreateCompany = action(\"FOLK_CREATE_COMPANY\", {\n slug: \"folk-create-company\",\n name: \"Create Company\",\n description: \"Creates a new company in the Folk workspace with the specified details. Required: company name (unique identifier). Optional: description, industry, funding details, employee range, contact info (emails, phones, urls, addresses), group assignments, and custom field values. Returns the created company with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreateCompanyInput,\n output: FolkCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,M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,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,kDAAkD,SAAS;EACjE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).passthrough().describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.string().describe(\"Industry sector of the company.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n createdAt: z.string().describe(\"Timestamp when the company was created.\").nullable(),\n createdBy: FolkCreateCompany_CreatedBySchema.nullable(),\n description: z.string().describe(\"Description of the created company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").nullable().optional(),\n fundingRaised: z.string().describe(\"Amount of funding raised by the company (returned as string).\").nullable().optional(),\n foundationYear: z.string().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company grouped by group ID.\"),\n}).passthrough().describe(\"Data returned after a successful company creation.\");\nexport const FolkCreateCompanyOutput = z.object({\n data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new company.\");\n\nexport const folkCreateCompany: AppAction<\n typeof FolkCreateCompanyInput,\n typeof FolkCreateCompanyOutput,\n typeof folk.credential\n> = action(\"FOLK_CREATE_COMPANY\", {\n slug: \"folk-create-company\",\n name: \"Create Company\",\n description: \"Creates a new company in the Folk workspace with the specified details. Required: company name (unique identifier). Optional: description, industry, funding details, employee range, contact info (emails, phones, urls, addresses), group assignments, and custom field values. Returns the created company with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreateCompanyInput,\n output: FolkCreateCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtI,Q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AAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,EAAE,OAAO;EAC9C,MAAM,kDAAkD,SAAS;EACjE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;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-note.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.cjs","names":["z","action"],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).passthrough().describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).passthrough().describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).passthrough().describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).passthrough().describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;AAI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z","action"],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).passthrough().describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).passthrough().describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).passthrough().describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).passthrough().describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote: AppAction<\n typeof FolkCreateNoteInput,\n typeof FolkCreateNoteOutput,\n typeof folk.credential\n> = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,QAAQA,IAAAA,EAAE,OAAO,EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAYA,IAAAA,EAAE,OAAO,EACrB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAC3J,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,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,oCAAoC,SAAS;CACrD,QAAQ,oCAAoC,SAAS;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAM,4CAA4C,SAAS;CAC3D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-note.d.ts
@@ -38,16 +40,7 @@ declare const FolkCreateNoteOutput: z.ZodObject<{
38
40
  }, z.core.$loose>>;
39
41
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
40
42
  }, z.core.$loose>;
41
- declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- entity: {
43
- id: string;
44
- };
45
- content: string;
46
- visibility: "public" | "private";
47
- parentNote?: {
48
- id: string;
49
- } | undefined;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
+ declare const folkCreateNote: AppAction<typeof FolkCreateNoteInput, typeof FolkCreateNoteOutput, typeof folk.credential>;
51
44
  //#endregion
52
45
  export { folkCreateNote };
53
46
  //# sourceMappingURL=create-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.d.cts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"create-note.d.cts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-note.d.ts
@@ -38,16 +40,7 @@ declare const FolkCreateNoteOutput: z.ZodObject<{
38
40
  }, z.core.$loose>>;
39
41
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
40
42
  }, z.core.$loose>;
41
- declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- entity: {
43
- id: string;
44
- };
45
- content: string;
46
- visibility: "public" | "private";
47
- parentNote?: {
48
- id: string;
49
- } | undefined;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
+ declare const folkCreateNote: AppAction<typeof FolkCreateNoteInput, typeof FolkCreateNoteOutput, typeof folk.credential>;
51
44
  //#endregion
52
45
  export { folkCreateNote };
53
46
  //# sourceMappingURL=create-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.d.mts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"create-note.d.mts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-note.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).passthrough().describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).passthrough().describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).passthrough().describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).passthrough().describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAC3J,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAC/K,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,0CAA0C,EAAE,OAAO,EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,QAAQ,oCAAoC,SAAS;CACrD,QAAQ,oCAAoC,SAAS;CACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkC,EAAE,OAAO;EAC3C,MAAM,4CAA4C,SAAS;EAC3D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).passthrough().describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).passthrough().describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).passthrough().describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).passthrough().describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote: AppAction<\n typeof FolkCreateNoteInput,\n typeof FolkCreateNoteOutput,\n typeof folk.credential\n> = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAC3J,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAC/K,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,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C,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdkC,EAAE,OAAO;EAC3C,MAAM,4CAA4C,SAAS;EAC3D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;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-person.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.cjs","names":["z","action"],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).passthrough().describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).passthrough().describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).passthrough().describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).passthrough().describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,MAAMA,IAA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AAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChO,qBAAqB,2CAA2C,SAAS;CACzE,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-person.cjs","names":["z","action"],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).passthrough().describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).passthrough().describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).passthrough().describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).passthrough().describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson: AppAction<\n typeof FolkCreatePersonInput,\n typeof FolkCreatePersonOutput,\n typeof folk.credential\n> = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS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AAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-person.d.ts
@@ -58,17 +60,7 @@ declare const FolkCreatePersonOutput: z.ZodObject<{
58
60
  }, z.core.$loose>>;
59
61
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
60
62
  }, z.core.$loose>;
61
- declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- emails?: string[] | undefined;
63
- groups?: {
64
- [x: string]: unknown;
65
- id: string;
66
- }[] | undefined;
67
- phones?: string[] | undefined;
68
- lastName?: string | undefined;
69
- firstName?: string | undefined;
70
- customFieldValues?: Record<string, unknown> | undefined;
71
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
+ declare const folkCreatePerson: AppAction<typeof FolkCreatePersonInput, typeof FolkCreatePersonOutput, typeof folk.credential>;
72
64
  //#endregion
73
65
  export { folkCreatePerson };
74
66
  //# sourceMappingURL=create-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.d.cts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA;;;;;;;;;sBAM3B,MAAA;AAAA"}
1
+ {"version":3,"file":"create-person.d.cts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-person.d.ts
@@ -58,17 +60,7 @@ declare const FolkCreatePersonOutput: z.ZodObject<{
58
60
  }, z.core.$loose>>;
59
61
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
60
62
  }, z.core.$loose>;
61
- declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- emails?: string[] | undefined;
63
- groups?: {
64
- [x: string]: unknown;
65
- id: string;
66
- }[] | undefined;
67
- phones?: string[] | undefined;
68
- lastName?: string | undefined;
69
- firstName?: string | undefined;
70
- customFieldValues?: Record<string, unknown> | undefined;
71
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
+ declare const folkCreatePerson: AppAction<typeof FolkCreatePersonInput, typeof FolkCreatePersonOutput, typeof folk.credential>;
72
64
  //#endregion
73
65
  export { folkCreatePerson };
74
66
  //# sourceMappingURL=create-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.d.mts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA;;;;;;;;;sBAM3B,MAAA;AAAA"}
1
+ {"version":3,"file":"create-person.d.mts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-person.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.mjs","names":[],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).passthrough().describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).passthrough().describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).passthrough().describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).passthrough().describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CA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OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,MAAM,gDAAgD,SAAS;EAC/D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-person.mjs","names":[],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).passthrough().describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).passthrough().describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).passthrough().describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).passthrough().describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson: AppAction<\n typeof FolkCreatePersonInput,\n typeof FolkCreatePersonOutput,\n typeof folk.credential\n> = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CA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MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoC,EAAE,OAAO;EAC7C,MAAM,gDAAgD,SAAS;EAC/D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;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/delete-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkDeleteCompanyInput = z.object({\n company_id: z.string().describe(\"The ID of the company to delete. Must be exactly 40 characters.\"),\n}).describe(\"Request schema for deleting a company.\");\nconst FolkDeleteCompany_DeleteCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the deleted company.\").nullable(),\n}).passthrough().describe(\"Data returned after a successful delete.\");\nexport const FolkDeleteCompanyOutput = z.object({\n data: FolkDeleteCompany_DeleteCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting a company.\");\n\nexport const folkDeleteCompany = action(\"FOLK_DELETE_COMPANY\", {\n slug: \"folk-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company from the workspace (irreversible). Use after confirming this company should be removed.\",\n input: FolkDeleteCompanyInput,\n output: FolkDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkDeleteCompanyInput = z.object({\n company_id: z.string().describe(\"The ID of the company to delete. Must be exactly 40 characters.\"),\n}).describe(\"Request schema for deleting a company.\");\nconst FolkDeleteCompany_DeleteCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the deleted company.\").nullable(),\n}).passthrough().describe(\"Data returned after a successful delete.\");\nexport const FolkDeleteCompanyOutput = z.object({\n data: FolkDeleteCompany_DeleteCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting a company.\");\n\nexport const folkDeleteCompany: AppAction<\n typeof FolkDeleteCompanyInput,\n typeof FolkDeleteCompanyOutput,\n typeof folk.credential\n> = action(\"FOLK_DELETE_COMPANY\", {\n slug: \"folk-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company from the workspace (irreversible). Use after confirming this company should be removed.\",\n input: FolkDeleteCompanyInput,\n output: FolkDeleteCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-company.d.ts
@@ -10,9 +12,7 @@ declare const FolkDeleteCompanyOutput: z.ZodObject<{
10
12
  }, z.core.$loose>>;
11
13
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
14
  }, z.core.$loose>;
13
- declare const folkDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- company_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const folkDeleteCompany: AppAction<typeof FolkDeleteCompanyInput, typeof FolkDeleteCompanyOutput, typeof folk.credential>;
16
16
  //#endregion
17
17
  export { folkDeleteCompany };
18
18
  //# sourceMappingURL=delete-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company.d.cts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAMtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"delete-company.d.cts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAMtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { folk } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-company.d.ts
@@ -10,9 +12,7 @@ declare const FolkDeleteCompanyOutput: z.ZodObject<{
10
12
  }, z.core.$loose>>;
11
13
  deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
14
  }, z.core.$loose>;
13
- declare const folkDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- company_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const folkDeleteCompany: AppAction<typeof FolkDeleteCompanyInput, typeof FolkDeleteCompanyOutput, typeof folk.credential>;
16
16
  //#endregion
17
17
  export { folkDeleteCompany };
18
18
  //# sourceMappingURL=delete-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company.d.mts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAMtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"delete-company.d.mts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAMtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/delete-company.ts