@keystrokehq/folk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-company.cjs +60 -0
  7. package/dist/actions/create-company.cjs.map +1 -0
  8. package/dist/actions/create-company.d.cts +9 -0
  9. package/dist/actions/create-company.d.cts.map +1 -0
  10. package/dist/actions/create-company.d.mts +9 -0
  11. package/dist/actions/create-company.d.mts.map +1 -0
  12. package/dist/actions/create-company.mjs +59 -0
  13. package/dist/actions/create-company.mjs.map +1 -0
  14. package/dist/actions/create-note.cjs +46 -0
  15. package/dist/actions/create-note.cjs.map +1 -0
  16. package/dist/actions/create-note.d.cts +9 -0
  17. package/dist/actions/create-note.d.cts.map +1 -0
  18. package/dist/actions/create-note.d.mts +9 -0
  19. package/dist/actions/create-note.d.mts.map +1 -0
  20. package/dist/actions/create-note.mjs +45 -0
  21. package/dist/actions/create-note.mjs.map +1 -0
  22. package/dist/actions/create-person.cjs +72 -0
  23. package/dist/actions/create-person.cjs.map +1 -0
  24. package/dist/actions/create-person.d.cts +9 -0
  25. package/dist/actions/create-person.d.cts.map +1 -0
  26. package/dist/actions/create-person.d.mts +9 -0
  27. package/dist/actions/create-person.d.mts.map +1 -0
  28. package/dist/actions/create-person.mjs +71 -0
  29. package/dist/actions/create-person.mjs.map +1 -0
  30. package/dist/actions/delete-company.cjs +20 -0
  31. package/dist/actions/delete-company.cjs.map +1 -0
  32. package/dist/actions/delete-company.d.cts +9 -0
  33. package/dist/actions/delete-company.d.cts.map +1 -0
  34. package/dist/actions/delete-company.d.mts +9 -0
  35. package/dist/actions/delete-company.d.mts.map +1 -0
  36. package/dist/actions/delete-company.mjs +19 -0
  37. package/dist/actions/delete-company.mjs.map +1 -0
  38. package/dist/actions/delete-note.cjs +20 -0
  39. package/dist/actions/delete-note.cjs.map +1 -0
  40. package/dist/actions/delete-note.d.cts +9 -0
  41. package/dist/actions/delete-note.d.cts.map +1 -0
  42. package/dist/actions/delete-note.d.mts +9 -0
  43. package/dist/actions/delete-note.d.mts.map +1 -0
  44. package/dist/actions/delete-note.mjs +19 -0
  45. package/dist/actions/delete-note.mjs.map +1 -0
  46. package/dist/actions/delete-person.cjs +20 -0
  47. package/dist/actions/delete-person.cjs.map +1 -0
  48. package/dist/actions/delete-person.d.cts +9 -0
  49. package/dist/actions/delete-person.d.cts.map +1 -0
  50. package/dist/actions/delete-person.d.mts +9 -0
  51. package/dist/actions/delete-person.d.mts.map +1 -0
  52. package/dist/actions/delete-person.mjs +19 -0
  53. package/dist/actions/delete-person.mjs.map +1 -0
  54. package/dist/actions/delete-reminder.cjs +20 -0
  55. package/dist/actions/delete-reminder.cjs.map +1 -0
  56. package/dist/actions/delete-reminder.d.cts +9 -0
  57. package/dist/actions/delete-reminder.d.cts.map +1 -0
  58. package/dist/actions/delete-reminder.d.mts +9 -0
  59. package/dist/actions/delete-reminder.d.mts.map +1 -0
  60. package/dist/actions/delete-reminder.mjs +19 -0
  61. package/dist/actions/delete-reminder.mjs.map +1 -0
  62. package/dist/actions/get-company.cjs +31 -0
  63. package/dist/actions/get-company.cjs.map +1 -0
  64. package/dist/actions/get-company.d.cts +9 -0
  65. package/dist/actions/get-company.d.cts.map +1 -0
  66. package/dist/actions/get-company.d.mts +9 -0
  67. package/dist/actions/get-company.d.mts.map +1 -0
  68. package/dist/actions/get-company.mjs +30 -0
  69. package/dist/actions/get-company.mjs.map +1 -0
  70. package/dist/actions/get-current-workspace-user.cjs +21 -0
  71. package/dist/actions/get-current-workspace-user.cjs.map +1 -0
  72. package/dist/actions/get-current-workspace-user.d.cts +9 -0
  73. package/dist/actions/get-current-workspace-user.d.cts.map +1 -0
  74. package/dist/actions/get-current-workspace-user.d.mts +9 -0
  75. package/dist/actions/get-current-workspace-user.d.mts.map +1 -0
  76. package/dist/actions/get-current-workspace-user.mjs +20 -0
  77. package/dist/actions/get-current-workspace-user.mjs.map +1 -0
  78. package/dist/actions/get-note.cjs +71 -0
  79. package/dist/actions/get-note.cjs.map +1 -0
  80. package/dist/actions/get-note.d.cts +9 -0
  81. package/dist/actions/get-note.d.cts.map +1 -0
  82. package/dist/actions/get-note.d.mts +9 -0
  83. package/dist/actions/get-note.d.mts.map +1 -0
  84. package/dist/actions/get-note.mjs +70 -0
  85. package/dist/actions/get-note.mjs.map +1 -0
  86. package/dist/actions/get-person.cjs +48 -0
  87. package/dist/actions/get-person.cjs.map +1 -0
  88. package/dist/actions/get-person.d.cts +9 -0
  89. package/dist/actions/get-person.d.cts.map +1 -0
  90. package/dist/actions/get-person.d.mts +9 -0
  91. package/dist/actions/get-person.d.mts.map +1 -0
  92. package/dist/actions/get-person.mjs +47 -0
  93. package/dist/actions/get-person.mjs.map +1 -0
  94. package/dist/actions/get-user.cjs +24 -0
  95. package/dist/actions/get-user.cjs.map +1 -0
  96. package/dist/actions/get-user.d.cts +9 -0
  97. package/dist/actions/get-user.d.cts.map +1 -0
  98. package/dist/actions/get-user.d.mts +9 -0
  99. package/dist/actions/get-user.d.mts.map +1 -0
  100. package/dist/actions/get-user.mjs +23 -0
  101. package/dist/actions/get-user.mjs.map +1 -0
  102. package/dist/actions/index.cjs +47 -0
  103. package/dist/actions/index.d.cts +24 -0
  104. package/dist/actions/index.d.mts +24 -0
  105. package/dist/actions/index.mjs +24 -0
  106. package/dist/actions/list-companies.cjs +56 -0
  107. package/dist/actions/list-companies.cjs.map +1 -0
  108. package/dist/actions/list-companies.d.cts +9 -0
  109. package/dist/actions/list-companies.d.cts.map +1 -0
  110. package/dist/actions/list-companies.d.mts +9 -0
  111. package/dist/actions/list-companies.d.mts.map +1 -0
  112. package/dist/actions/list-companies.mjs +55 -0
  113. package/dist/actions/list-companies.mjs.map +1 -0
  114. package/dist/actions/list-group-custom-fields.cjs +53 -0
  115. package/dist/actions/list-group-custom-fields.cjs.map +1 -0
  116. package/dist/actions/list-group-custom-fields.d.cts +9 -0
  117. package/dist/actions/list-group-custom-fields.d.cts.map +1 -0
  118. package/dist/actions/list-group-custom-fields.d.mts +9 -0
  119. package/dist/actions/list-group-custom-fields.d.mts.map +1 -0
  120. package/dist/actions/list-group-custom-fields.mjs +52 -0
  121. package/dist/actions/list-group-custom-fields.mjs.map +1 -0
  122. package/dist/actions/list-groups.cjs +31 -0
  123. package/dist/actions/list-groups.cjs.map +1 -0
  124. package/dist/actions/list-groups.d.cts +9 -0
  125. package/dist/actions/list-groups.d.cts.map +1 -0
  126. package/dist/actions/list-groups.d.mts +9 -0
  127. package/dist/actions/list-groups.d.mts.map +1 -0
  128. package/dist/actions/list-groups.mjs +30 -0
  129. package/dist/actions/list-groups.mjs.map +1 -0
  130. package/dist/actions/list-notes.cjs +69 -0
  131. package/dist/actions/list-notes.cjs.map +1 -0
  132. package/dist/actions/list-notes.d.cts +9 -0
  133. package/dist/actions/list-notes.d.cts.map +1 -0
  134. package/dist/actions/list-notes.d.mts +9 -0
  135. package/dist/actions/list-notes.d.mts.map +1 -0
  136. package/dist/actions/list-notes.mjs +68 -0
  137. package/dist/actions/list-notes.mjs.map +1 -0
  138. package/dist/actions/list-people.cjs +66 -0
  139. package/dist/actions/list-people.cjs.map +1 -0
  140. package/dist/actions/list-people.d.cts +9 -0
  141. package/dist/actions/list-people.d.cts.map +1 -0
  142. package/dist/actions/list-people.d.mts +9 -0
  143. package/dist/actions/list-people.d.mts.map +1 -0
  144. package/dist/actions/list-people.mjs +65 -0
  145. package/dist/actions/list-people.mjs.map +1 -0
  146. package/dist/actions/list-reminders.cjs +54 -0
  147. package/dist/actions/list-reminders.cjs.map +1 -0
  148. package/dist/actions/list-reminders.d.cts +9 -0
  149. package/dist/actions/list-reminders.d.cts.map +1 -0
  150. package/dist/actions/list-reminders.d.mts +9 -0
  151. package/dist/actions/list-reminders.d.mts.map +1 -0
  152. package/dist/actions/list-reminders.mjs +53 -0
  153. package/dist/actions/list-reminders.mjs.map +1 -0
  154. package/dist/actions/list-users.cjs +32 -0
  155. package/dist/actions/list-users.cjs.map +1 -0
  156. package/dist/actions/list-users.d.cts +9 -0
  157. package/dist/actions/list-users.d.cts.map +1 -0
  158. package/dist/actions/list-users.d.mts +9 -0
  159. package/dist/actions/list-users.d.mts.map +1 -0
  160. package/dist/actions/list-users.mjs +31 -0
  161. package/dist/actions/list-users.mjs.map +1 -0
  162. package/dist/actions/list-webhooks.cjs +46 -0
  163. package/dist/actions/list-webhooks.cjs.map +1 -0
  164. package/dist/actions/list-webhooks.d.cts +9 -0
  165. package/dist/actions/list-webhooks.d.cts.map +1 -0
  166. package/dist/actions/list-webhooks.d.mts +9 -0
  167. package/dist/actions/list-webhooks.d.mts.map +1 -0
  168. package/dist/actions/list-webhooks.mjs +45 -0
  169. package/dist/actions/list-webhooks.mjs.map +1 -0
  170. package/dist/actions/update-company.cjs +44 -0
  171. package/dist/actions/update-company.cjs.map +1 -0
  172. package/dist/actions/update-company.d.cts +9 -0
  173. package/dist/actions/update-company.d.cts.map +1 -0
  174. package/dist/actions/update-company.d.mts +9 -0
  175. package/dist/actions/update-company.d.mts.map +1 -0
  176. package/dist/actions/update-company.mjs +43 -0
  177. package/dist/actions/update-company.mjs.map +1 -0
  178. package/dist/actions/update-note.cjs +43 -0
  179. package/dist/actions/update-note.cjs.map +1 -0
  180. package/dist/actions/update-note.d.cts +9 -0
  181. package/dist/actions/update-note.d.cts.map +1 -0
  182. package/dist/actions/update-note.d.mts +9 -0
  183. package/dist/actions/update-note.d.mts.map +1 -0
  184. package/dist/actions/update-note.mjs +42 -0
  185. package/dist/actions/update-note.mjs.map +1 -0
  186. package/dist/actions/update-person.cjs +70 -0
  187. package/dist/actions/update-person.cjs.map +1 -0
  188. package/dist/actions/update-person.d.cts +9 -0
  189. package/dist/actions/update-person.d.cts.map +1 -0
  190. package/dist/actions/update-person.d.mts +9 -0
  191. package/dist/actions/update-person.d.mts.map +1 -0
  192. package/dist/actions/update-person.mjs +69 -0
  193. package/dist/actions/update-person.mjs.map +1 -0
  194. package/dist/app.cjs +9 -0
  195. package/dist/app.cjs.map +1 -0
  196. package/dist/app.d.cts +5 -0
  197. package/dist/app.d.cts.map +1 -0
  198. package/dist/app.d.mts +5 -0
  199. package/dist/app.d.mts.map +1 -0
  200. package/dist/app.mjs +10 -0
  201. package/dist/app.mjs.map +1 -0
  202. package/dist/catalog.cjs +15 -0
  203. package/dist/catalog.cjs.map +1 -0
  204. package/dist/catalog.d.cts +14 -0
  205. package/dist/catalog.d.cts.map +1 -0
  206. package/dist/catalog.d.mts +14 -0
  207. package/dist/catalog.d.mts.map +1 -0
  208. package/dist/catalog.mjs +15 -0
  209. package/dist/catalog.mjs.map +1 -0
  210. package/dist/execute.cjs +18 -0
  211. package/dist/execute.cjs.map +1 -0
  212. package/dist/execute.mjs +18 -0
  213. package/dist/execute.mjs.map +1 -0
  214. package/dist/index.cjs +52 -0
  215. package/dist/index.d.cts +26 -0
  216. package/dist/index.d.mts +26 -0
  217. package/dist/index.mjs +27 -0
  218. package/package.json +49 -0
@@ -0,0 +1,68 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-notes.ts
4
+ const FolkListNotesInput = z.object({
5
+ limit: z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
+ cursor: z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional()
7
+ }).describe("Request parameters for listing notes in the workspace.");
8
+ const FolkListNotes_NoteAuthorUserSchema = z.object({
9
+ id: z.string().describe("User identifier."),
10
+ type: z.string().describe("Author type: user."),
11
+ email: z.string().describe("Email address of the user."),
12
+ deleted: z.boolean().describe("User is not deleted."),
13
+ fullName: z.string().describe("Full name of the user.")
14
+ }).describe("Author information when the author is a user.");
15
+ const FolkListNotes_NoteAuthorAssistantSchema = z.object({
16
+ type: z.string().describe("Author type: assistant."),
17
+ fullName: z.string().describe("Name of the assistant.")
18
+ }).describe("Author information when the author is an assistant.");
19
+ const FolkListNotes_NoteAuthorDeletedUserSchema = z.object({
20
+ id: z.string().describe("User identifier."),
21
+ type: z.string().describe("Author type: user."),
22
+ deleted: z.boolean().describe("User has been deleted.")
23
+ }).describe("Author information when the author is a deleted user.");
24
+ const FolkListNotes_NoteEntitySchema = z.object({
25
+ id: z.string().describe("Unique identifier of the entity."),
26
+ fullName: z.string().describe("Display name of the entity."),
27
+ entityType: z.enum([
28
+ "person",
29
+ "company",
30
+ "object"
31
+ ]).describe("Type of entity: person, company, or object.")
32
+ }).describe("Entity associated with the note (person, company, or object).");
33
+ const FolkListNotes_ParentNoteSchema = z.object({
34
+ id: z.string().describe("Unique identifier of the parent note."),
35
+ deleted: z.boolean().describe("Whether the parent note has been deleted.").nullable().optional()
36
+ }).describe("Information about the parent note if this note is a reply.");
37
+ const FolkListNotes_NoteSchema = z.object({
38
+ id: z.string().describe("Unique note identifier."),
39
+ author: z.union([
40
+ FolkListNotes_NoteAuthorUserSchema,
41
+ FolkListNotes_NoteAuthorAssistantSchema,
42
+ FolkListNotes_NoteAuthorDeletedUserSchema
43
+ ]),
44
+ entity: FolkListNotes_NoteEntitySchema.nullable(),
45
+ content: z.string().describe("Note content text, supports markdown formatting."),
46
+ createdAt: z.string().describe("ISO 8601 timestamp when the note was created.").nullable().optional(),
47
+ parentNote: FolkListNotes_ParentNoteSchema.nullable().optional(),
48
+ visibility: z.enum(["public", "private"]).describe("Visibility of the note: public or private.")
49
+ }).describe("A note object in the workspace.");
50
+ const FolkListNotes_ListNotesPaginationSchema = z.object({ nextLink: z.string().describe("URL to fetch the next page of results. Omit if no further pages.").nullable().optional() }).describe("Pagination information for list-notes endpoint.");
51
+ const FolkListNotes_ListNotesDataSchema = z.object({
52
+ items: z.array(FolkListNotes_NoteSchema).describe("List of retrieved notes."),
53
+ pagination: FolkListNotes_ListNotesPaginationSchema.nullable()
54
+ }).describe("Data envelope for list-notes response.");
55
+ const folkListNotes = action("FOLK_LIST_NOTES", {
56
+ slug: "folk-list-notes",
57
+ name: "List Notes",
58
+ description: "Tool to list notes in the workspace. Use when you need to retrieve notes with pagination support.",
59
+ input: FolkListNotesInput,
60
+ output: z.object({
61
+ data: FolkListNotes_ListNotesDataSchema.nullable(),
62
+ deprecations: z.array(z.string()).describe("List of deprecation warnings, if any.").nullable().optional()
63
+ }).describe("Full response schema for list-notes.")
64
+ });
65
+ //#endregion
66
+ export { folkListNotes };
67
+
68
+ //# sourceMappingURL=list-notes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-notes.mjs","names":[],"sources":["../../src/actions/list-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListNotesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n}).describe(\"Request parameters for listing notes in the workspace.\");\nconst FolkListNotes_NoteAuthorUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User identifier.\"),\n type: z.string().describe(\"Author type: user.\"),\n email: z.string().describe(\"Email address of the user.\"),\n deleted: z.boolean().describe(\"User is not deleted.\"),\n fullName: z.string().describe(\"Full name of the user.\"),\n}).describe(\"Author information when the author is a user.\");\nconst FolkListNotes_NoteAuthorAssistantSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Author type: assistant.\"),\n fullName: z.string().describe(\"Name of the assistant.\"),\n}).describe(\"Author information when the author is an assistant.\");\nconst FolkListNotes_NoteAuthorDeletedUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User identifier.\"),\n type: z.string().describe(\"Author type: user.\"),\n deleted: z.boolean().describe(\"User has been deleted.\"),\n}).describe(\"Author information when the author is a deleted user.\");\nconst FolkListNotes_NoteEntitySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\"),\n fullName: z.string().describe(\"Display name of the entity.\"),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity: person, company, or object.\"),\n}).describe(\"Entity associated with the note (person, company, or object).\");\nconst FolkListNotes_ParentNoteSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the parent note.\"),\n deleted: z.boolean().describe(\"Whether the parent note has been deleted.\").nullable().optional(),\n}).describe(\"Information about the parent note if this note is a reply.\");\nconst FolkListNotes_NoteSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique note identifier.\"),\n author: z.union([FolkListNotes_NoteAuthorUserSchema, FolkListNotes_NoteAuthorAssistantSchema, FolkListNotes_NoteAuthorDeletedUserSchema]),\n entity: FolkListNotes_NoteEntitySchema.nullable(),\n content: z.string().describe(\"Note content text, supports markdown formatting.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkListNotes_ParentNoteSchema.nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note: public or private.\"),\n}).describe(\"A note object in the workspace.\");\nconst FolkListNotes_ListNotesPaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).describe(\"Pagination information for list-notes endpoint.\");\nconst FolkListNotes_ListNotesDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListNotes_NoteSchema).describe(\"List of retrieved notes.\"),\n pagination: FolkListNotes_ListNotesPaginationSchema.nullable(),\n}).describe(\"Data envelope for list-notes response.\");\nexport const FolkListNotesOutput: z.ZodTypeAny = z.object({\n data: FolkListNotes_ListNotesDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Full response schema for list-notes.\");\n\nexport const folkListNotes = action(\"FOLK_LIST_NOTES\", {\n slug: \"folk-list-notes\",\n name: \"List Notes\",\n description: \"Tool to list notes in the workspace. Use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AM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -0,0 +1,66 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-people.ts
4
+ const FolkListPeopleInput = zod.z.object({
5
+ limit: zod.z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
+ cursor: zod.z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional(),
7
+ filter: zod.z.object({}).describe("Filters to apply, following `filter[attribute][operator]=value` format. E.g., {'firstName': {'eq': 'John'}}.").optional(),
8
+ combinator: zod.z.enum(["and", "or"]).default("and").describe("Logical operator to combine multiple filters.").optional()
9
+ }).passthrough().describe("Request parameters for listing people in the workspace.");
10
+ const FolkListPeople_GroupItemSchema = zod.z.object({
11
+ id: zod.z.string().describe("Group ID for the person"),
12
+ name: zod.z.string().describe("Group name for the person")
13
+ });
14
+ const FolkListPeople_CompanyItemSchema = zod.z.object({
15
+ id: zod.z.string().describe("Company ID for the person"),
16
+ name: zod.z.string().describe("Company name for the person")
17
+ });
18
+ const FolkListPeople_UserSchema = zod.z.object({
19
+ id: zod.z.string().describe("User ID"),
20
+ email: zod.z.string().describe("Email of the user"),
21
+ fullName: zod.z.string().describe("Full name of the user")
22
+ }).describe("User information model used across different contexts.");
23
+ const FolkListPeople_InteractionMetadataSchema = zod.z.object({
24
+ user: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-specific interaction metadata (approximate count, last interacted timestamp).").nullable().optional(),
25
+ workspace: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Workspace-wide interaction metadata (approximate count, last interacted timestamp, last interacted by users).").nullable().optional()
26
+ }).describe("Metadata about interactions with a person.");
27
+ const FolkListPeople_PersonSchema = zod.z.object({
28
+ id: zod.z.string().describe("Unique identifier of the person"),
29
+ urls: zod.z.array(zod.z.string()).describe("URLs associated with the person"),
30
+ emails: zod.z.array(zod.z.string()).describe("Emails for the person"),
31
+ groups: zod.z.array(FolkListPeople_GroupItemSchema).describe("Groups the person belongs to"),
32
+ phones: zod.z.array(zod.z.string()).describe("Phone numbers for the person"),
33
+ birthday: zod.z.string().describe("Birthday in YYYY-MM-DD format").nullable().optional(),
34
+ fullName: zod.z.string().describe("Person's full name").nullable().optional(),
35
+ jobTitle: zod.z.string().describe("Current job title").nullable().optional(),
36
+ lastName: zod.z.string().describe("Person's last name").nullable().optional(),
37
+ addresses: zod.z.array(zod.z.string()).describe("List of addresses for the person"),
38
+ companies: zod.z.array(FolkListPeople_CompanyItemSchema).describe("Companies associated with the person"),
39
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when person was created").nullable().optional(),
40
+ createdBy: FolkListPeople_UserSchema.nullable().optional(),
41
+ firstName: zod.z.string().describe("Person's first name").nullable().optional(),
42
+ description: zod.z.string().describe("Textual description of the person").nullable().optional(),
43
+ customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values organized by group ID. Each group contains user-defined field names with dynamic values (can be strings, arrays, user objects, or relationship objects). Structure varies by workspace configuration."),
44
+ interactionMetadata: FolkListPeople_InteractionMetadataSchema.nullable().optional(),
45
+ strongestConnection: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Strongest connection to this person, mapping group IDs to User objects").nullable().optional()
46
+ });
47
+ const FolkListPeople_PaginationSchema = zod.z.object({ nextLink: zod.z.string().describe("Link to retrieve the next page of results").nullable().optional() });
48
+ const FolkListPeople_ListPeopleDataSchema = zod.z.object({
49
+ items: zod.z.array(FolkListPeople_PersonSchema).describe("List of people returned"),
50
+ pagination: FolkListPeople_PaginationSchema.nullable()
51
+ });
52
+ const FolkListPeopleOutput = zod.z.object({
53
+ data: FolkListPeople_ListPeopleDataSchema.nullable(),
54
+ deprecations: zod.z.array(zod.z.string()).describe("Deprecation warnings returned by the API").nullable().optional()
55
+ });
56
+ const folkListPeople = require_action.action("FOLK_LIST_PEOPLE", {
57
+ slug: "folk-list-people",
58
+ name: "List People",
59
+ description: "Tool to list people in the workspace. Use when you need to paginate through contacts after authentication.",
60
+ input: FolkListPeopleInput,
61
+ output: FolkListPeopleOutput
62
+ });
63
+ //#endregion
64
+ exports.folkListPeople = folkListPeople;
65
+
66
+ //# sourceMappingURL=list-people.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-people.cjs","names":["z","action"],"sources":["../../src/actions/list-people.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListPeopleInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.object({}).describe(\"Filters to apply, following `filter[attribute][operator]=value` format. E.g., {'firstName': {'eq': 'John'}}.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).passthrough().describe(\"Request parameters for listing people in the workspace.\");\nconst FolkListPeople_GroupItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Group ID for the person\"),\n name: z.string().describe(\"Group name for the person\"),\n});\nconst FolkListPeople_CompanyItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID for the person\"),\n name: z.string().describe(\"Company name for the person\"),\n});\nconst FolkListPeople_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User ID\"),\n email: z.string().describe(\"Email of the user\"),\n fullName: z.string().describe(\"Full name of the user\"),\n}).describe(\"User information model used across different contexts.\");\nconst FolkListPeople_InteractionMetadataSchema: z.ZodTypeAny = z.object({\n user: z.record(z.string(), z.unknown()).describe(\"User-specific interaction metadata (approximate count, last interacted timestamp).\").nullable().optional(),\n workspace: z.record(z.string(), z.unknown()).describe(\"Workspace-wide interaction metadata (approximate count, last interacted timestamp, last interacted by users).\").nullable().optional(),\n}).describe(\"Metadata about interactions with a person.\");\nconst FolkListPeople_PersonSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the person\"),\n urls: z.array(z.string()).describe(\"URLs associated with the person\"),\n emails: z.array(z.string()).describe(\"Emails for the person\"),\n groups: z.array(FolkListPeople_GroupItemSchema).describe(\"Groups the person belongs to\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the person\"),\n birthday: z.string().describe(\"Birthday in YYYY-MM-DD format\").nullable().optional(),\n fullName: z.string().describe(\"Person's full name\").nullable().optional(),\n jobTitle: z.string().describe(\"Current job title\").nullable().optional(),\n lastName: z.string().describe(\"Person's last name\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"List of addresses for the person\"),\n companies: z.array(FolkListPeople_CompanyItemSchema).describe(\"Companies associated with the person\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when person was created\").nullable().optional(),\n createdBy: FolkListPeople_UserSchema.nullable().optional(),\n firstName: z.string().describe(\"Person's first name\").nullable().optional(),\n description: z.string().describe(\"Textual description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID. Each group contains user-defined field names with dynamic values (can be strings, arrays, user objects, or relationship objects). Structure varies by workspace configuration.\"),\n interactionMetadata: FolkListPeople_InteractionMetadataSchema.nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Strongest connection to this person, mapping group IDs to User objects\").nullable().optional(),\n});\nconst FolkListPeople_PaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"Link to retrieve the next page of results\").nullable().optional(),\n});\nconst FolkListPeople_ListPeopleDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListPeople_PersonSchema).describe(\"List of people returned\"),\n pagination: FolkListPeople_PaginationSchema.nullable(),\n});\nexport const FolkListPeopleOutput: z.ZodTypeAny = z.object({\n data: FolkListPeople_ListPeopleDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings returned by the API\").nullable().optional(),\n});\n\nexport const folkListPeople = action(\"FOLK_LIST_PEOPLE\", {\n slug: \"folk-list-people\",\n name: \"List People\",\n description: \"Tool to list people in the workspace. Use when you need to paginate through contacts after authentication.\",\n input: FolkListPeopleInput,\n output: FolkListPeopleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACvD,CAAC;AACD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACzD,CAAC;AACD,MAAM,4BAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,SAAS;CACjC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC9C,UAAUA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EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC;AAED,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-people.d.ts
4
+ declare const FolkListPeopleInput: z.ZodTypeAny;
5
+ declare const FolkListPeopleOutput: z.ZodTypeAny;
6
+ declare const folkListPeople: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { folkListPeople };
9
+ //# sourceMappingURL=list-people.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-people.d.cts","names":[],"sources":["../../src/actions/list-people.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAKgD;AAAA,cA6CvE,oBAAA,EAAsB,CAAA,CAAE,UAGnC;AAAA,cAEW,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-people.d.ts
4
+ declare const FolkListPeopleInput: z.ZodTypeAny;
5
+ declare const FolkListPeopleOutput: z.ZodTypeAny;
6
+ declare const folkListPeople: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { folkListPeople };
9
+ //# sourceMappingURL=list-people.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-people.d.mts","names":[],"sources":["../../src/actions/list-people.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAKgD;AAAA,cA6CvE,oBAAA,EAAsB,CAAA,CAAE,UAGnC;AAAA,cAEW,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,65 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-people.ts
4
+ const FolkListPeopleInput = z.object({
5
+ limit: z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
+ cursor: z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional(),
7
+ filter: z.object({}).describe("Filters to apply, following `filter[attribute][operator]=value` format. E.g., {'firstName': {'eq': 'John'}}.").optional(),
8
+ combinator: z.enum(["and", "or"]).default("and").describe("Logical operator to combine multiple filters.").optional()
9
+ }).passthrough().describe("Request parameters for listing people in the workspace.");
10
+ const FolkListPeople_GroupItemSchema = z.object({
11
+ id: z.string().describe("Group ID for the person"),
12
+ name: z.string().describe("Group name for the person")
13
+ });
14
+ const FolkListPeople_CompanyItemSchema = z.object({
15
+ id: z.string().describe("Company ID for the person"),
16
+ name: z.string().describe("Company name for the person")
17
+ });
18
+ const FolkListPeople_UserSchema = z.object({
19
+ id: z.string().describe("User ID"),
20
+ email: z.string().describe("Email of the user"),
21
+ fullName: z.string().describe("Full name of the user")
22
+ }).describe("User information model used across different contexts.");
23
+ const FolkListPeople_InteractionMetadataSchema = z.object({
24
+ user: z.record(z.string(), z.unknown()).describe("User-specific interaction metadata (approximate count, last interacted timestamp).").nullable().optional(),
25
+ workspace: z.record(z.string(), z.unknown()).describe("Workspace-wide interaction metadata (approximate count, last interacted timestamp, last interacted by users).").nullable().optional()
26
+ }).describe("Metadata about interactions with a person.");
27
+ const FolkListPeople_PersonSchema = z.object({
28
+ id: z.string().describe("Unique identifier of the person"),
29
+ urls: z.array(z.string()).describe("URLs associated with the person"),
30
+ emails: z.array(z.string()).describe("Emails for the person"),
31
+ groups: z.array(FolkListPeople_GroupItemSchema).describe("Groups the person belongs to"),
32
+ phones: z.array(z.string()).describe("Phone numbers for the person"),
33
+ birthday: z.string().describe("Birthday in YYYY-MM-DD format").nullable().optional(),
34
+ fullName: z.string().describe("Person's full name").nullable().optional(),
35
+ jobTitle: z.string().describe("Current job title").nullable().optional(),
36
+ lastName: z.string().describe("Person's last name").nullable().optional(),
37
+ addresses: z.array(z.string()).describe("List of addresses for the person"),
38
+ companies: z.array(FolkListPeople_CompanyItemSchema).describe("Companies associated with the person"),
39
+ createdAt: z.string().describe("ISO 8601 timestamp when person was created").nullable().optional(),
40
+ createdBy: FolkListPeople_UserSchema.nullable().optional(),
41
+ firstName: z.string().describe("Person's first name").nullable().optional(),
42
+ description: z.string().describe("Textual description of the person").nullable().optional(),
43
+ customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values organized by group ID. Each group contains user-defined field names with dynamic values (can be strings, arrays, user objects, or relationship objects). Structure varies by workspace configuration."),
44
+ interactionMetadata: FolkListPeople_InteractionMetadataSchema.nullable().optional(),
45
+ strongestConnection: z.record(z.string(), z.unknown()).describe("Strongest connection to this person, mapping group IDs to User objects").nullable().optional()
46
+ });
47
+ const FolkListPeople_PaginationSchema = z.object({ nextLink: z.string().describe("Link to retrieve the next page of results").nullable().optional() });
48
+ const FolkListPeople_ListPeopleDataSchema = z.object({
49
+ items: z.array(FolkListPeople_PersonSchema).describe("List of people returned"),
50
+ pagination: FolkListPeople_PaginationSchema.nullable()
51
+ });
52
+ const folkListPeople = action("FOLK_LIST_PEOPLE", {
53
+ slug: "folk-list-people",
54
+ name: "List People",
55
+ description: "Tool to list people in the workspace. Use when you need to paginate through contacts after authentication.",
56
+ input: FolkListPeopleInput,
57
+ output: z.object({
58
+ data: FolkListPeople_ListPeopleDataSchema.nullable(),
59
+ deprecations: z.array(z.string()).describe("Deprecation warnings returned by the API").nullable().optional()
60
+ })
61
+ });
62
+ //#endregion
63
+ export { folkListPeople };
64
+
65
+ //# sourceMappingURL=list-people.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-people.mjs","names":[],"sources":["../../src/actions/list-people.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListPeopleInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.object({}).describe(\"Filters to apply, following `filter[attribute][operator]=value` format. E.g., {'firstName': {'eq': 'John'}}.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).passthrough().describe(\"Request parameters for listing people in the workspace.\");\nconst FolkListPeople_GroupItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Group ID for the person\"),\n name: z.string().describe(\"Group name for the person\"),\n});\nconst FolkListPeople_CompanyItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID for the person\"),\n name: z.string().describe(\"Company name for the person\"),\n});\nconst FolkListPeople_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User ID\"),\n email: z.string().describe(\"Email of the user\"),\n fullName: z.string().describe(\"Full name of the user\"),\n}).describe(\"User information model used across different contexts.\");\nconst FolkListPeople_InteractionMetadataSchema: z.ZodTypeAny = z.object({\n user: z.record(z.string(), z.unknown()).describe(\"User-specific interaction metadata (approximate count, last interacted timestamp).\").nullable().optional(),\n workspace: z.record(z.string(), z.unknown()).describe(\"Workspace-wide interaction metadata (approximate count, last interacted timestamp, last interacted by users).\").nullable().optional(),\n}).describe(\"Metadata about interactions with a person.\");\nconst FolkListPeople_PersonSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the person\"),\n urls: z.array(z.string()).describe(\"URLs associated with the person\"),\n emails: z.array(z.string()).describe(\"Emails for the person\"),\n groups: z.array(FolkListPeople_GroupItemSchema).describe(\"Groups the person belongs to\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the person\"),\n birthday: z.string().describe(\"Birthday in YYYY-MM-DD format\").nullable().optional(),\n fullName: z.string().describe(\"Person's full name\").nullable().optional(),\n jobTitle: z.string().describe(\"Current job title\").nullable().optional(),\n lastName: z.string().describe(\"Person's last name\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"List of addresses for the person\"),\n companies: z.array(FolkListPeople_CompanyItemSchema).describe(\"Companies associated with the person\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when person was created\").nullable().optional(),\n createdBy: FolkListPeople_UserSchema.nullable().optional(),\n firstName: z.string().describe(\"Person's first name\").nullable().optional(),\n description: z.string().describe(\"Textual description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID. Each group contains user-defined field names with dynamic values (can be strings, arrays, user objects, or relationship objects). Structure varies by workspace configuration.\"),\n interactionMetadata: FolkListPeople_InteractionMetadataSchema.nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Strongest connection to this person, mapping group IDs to User objects\").nullable().optional(),\n});\nconst FolkListPeople_PaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"Link to retrieve the next page of results\").nullable().optional(),\n});\nconst FolkListPeople_ListPeopleDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListPeople_PersonSchema).describe(\"List of people returned\"),\n pagination: FolkListPeople_PaginationSchema.nullable(),\n});\nexport const FolkListPeopleOutput: z.ZodTypeAny = z.object({\n data: FolkListPeople_ListPeopleDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings returned by the API\").nullable().optional(),\n});\n\nexport const folkListPeople = action(\"FOLK_LIST_PEOPLE\", {\n slug: \"folk-list-people\",\n name: \"List People\",\n description: \"Tool to list people in the workspace. Use when you need to paginate through contacts after authentication.\",\n input: FolkListPeopleInput,\n output: FolkListPeopleOutput,\n});\n"],"mappings":";;;AAIA,MAAa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AO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2NAA2N;CACzR,qBAAqB,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAClF,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChK,CAAC;AACD,MAAM,kCAAgD,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,CAAC;AACD,MAAM,sCAAoD,EAAE,OAAO;CACjE,OAAO,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yBAAyB;CAC9E,YAAY,gCAAgC,SAAS;AACvD,CAAC;AAMD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,MAAM,oCAAoC,SAAS;EACnD,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAOU;AACV,CAAC"}
@@ -0,0 +1,54 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-reminders.ts
4
+ const FolkListRemindersInput = zod.z.object({
5
+ limit: zod.z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
+ cursor: zod.z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional(),
7
+ entity_id: zod.z.string().describe("Filter reminders by entity ID (person, company, or object).").optional()
8
+ }).describe("Request parameters for listing reminders in the workspace.");
9
+ const FolkListReminders_ListRemindersEntitySchema = zod.z.object({
10
+ id: zod.z.string().describe("Unique identifier of the entity."),
11
+ fullName: zod.z.string().describe("Display name of the entity."),
12
+ entityType: zod.z.enum([
13
+ "person",
14
+ "company",
15
+ "object"
16
+ ]).describe("Type of entity connected to the reminder.")
17
+ }).describe("Entity connected to the reminder.");
18
+ const FolkListReminders_ListRemindersUserSchema = zod.z.object({
19
+ id: zod.z.string().describe("Unique identifier of the user."),
20
+ email: zod.z.string().describe("Email address of the user."),
21
+ fullName: zod.z.string().describe("Full name of the user.")
22
+ }).describe("User information for reminder.");
23
+ const FolkListReminders_ListRemindersReminderSchema = zod.z.object({
24
+ id: zod.z.string().describe("Unique reminder identifier."),
25
+ name: zod.z.string().describe("Reminder title (max 255 characters)."),
26
+ entity: FolkListReminders_ListRemindersEntitySchema.nullable(),
27
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the reminder was created.").nullable().optional(),
28
+ createdBy: FolkListReminders_ListRemindersUserSchema.nullable(),
29
+ visibility: zod.z.enum(["public", "private"]).describe("Visibility setting for the reminder."),
30
+ assignedUsers: zod.z.array(FolkListReminders_ListRemindersUserSchema).describe("Workspace users assigned to be notified."),
31
+ recurrenceRule: zod.z.string().describe("iCalendar RFC 5545 format recurrence rule.").nullable().optional(),
32
+ lastTriggerTime: zod.z.string().describe("ISO 8601 timestamp for previous trigger.").nullable().optional(),
33
+ nextTriggerTime: zod.z.string().describe("ISO 8601 timestamp for upcoming trigger.").nullable().optional()
34
+ }).describe("A reminder object in the workspace.");
35
+ const FolkListReminders_ListRemindersPaginationSchema = zod.z.object({ nextLink: zod.z.string().describe("URL to fetch the next page of results. Omit if no further pages.").nullable().optional() }).describe("Pagination information for list-reminders endpoint.");
36
+ const FolkListReminders_ListRemindersDataSchema = zod.z.object({
37
+ items: zod.z.array(FolkListReminders_ListRemindersReminderSchema).describe("List of retrieved reminders."),
38
+ pagination: FolkListReminders_ListRemindersPaginationSchema.nullable()
39
+ }).describe("Data envelope for list-reminders response.");
40
+ const FolkListRemindersOutput = zod.z.object({
41
+ data: FolkListReminders_ListRemindersDataSchema.nullable(),
42
+ deprecations: zod.z.array(zod.z.string()).describe("List of deprecation warnings, if any.").nullable().optional()
43
+ }).describe("Full response schema for list-reminders.");
44
+ const folkListReminders = require_action.action("FOLK_LIST_REMINDERS", {
45
+ slug: "folk-list-reminders",
46
+ name: "List Reminders",
47
+ description: "Tool to list reminders in the workspace. Use when you need a paginated overview of reminders, optionally filtered by entity.",
48
+ input: FolkListRemindersInput,
49
+ output: FolkListRemindersOutput
50
+ });
51
+ //#endregion
52
+ exports.folkListReminders = folkListReminders;
53
+
54
+ //# sourceMappingURL=list-reminders.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-reminders.cjs","names":["z","action"],"sources":["../../src/actions/list-reminders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListRemindersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n entity_id: z.string().describe(\"Filter reminders by entity ID (person, company, or object).\").optional(),\n}).describe(\"Request parameters for listing reminders in the workspace.\");\nconst FolkListReminders_ListRemindersEntitySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\"),\n fullName: z.string().describe(\"Display name of the entity.\"),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity connected to the reminder.\"),\n}).describe(\"Entity connected to the reminder.\");\nconst FolkListReminders_ListRemindersUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\"),\n email: z.string().describe(\"Email address of the user.\"),\n fullName: z.string().describe(\"Full name of the user.\"),\n}).describe(\"User information for reminder.\");\nconst FolkListReminders_ListRemindersReminderSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique reminder identifier.\"),\n name: z.string().describe(\"Reminder title (max 255 characters).\"),\n entity: FolkListReminders_ListRemindersEntitySchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the reminder was created.\").nullable().optional(),\n createdBy: FolkListReminders_ListRemindersUserSchema.nullable(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility setting for the reminder.\"),\n assignedUsers: z.array(FolkListReminders_ListRemindersUserSchema).describe(\"Workspace users assigned to be notified.\"),\n recurrenceRule: z.string().describe(\"iCalendar RFC 5545 format recurrence rule.\").nullable().optional(),\n lastTriggerTime: z.string().describe(\"ISO 8601 timestamp for previous trigger.\").nullable().optional(),\n nextTriggerTime: z.string().describe(\"ISO 8601 timestamp for upcoming trigger.\").nullable().optional(),\n}).describe(\"A reminder object in the workspace.\");\nconst FolkListReminders_ListRemindersPaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).describe(\"Pagination information for list-reminders endpoint.\");\nconst FolkListReminders_ListRemindersDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListReminders_ListRemindersReminderSchema).describe(\"List of retrieved reminders.\"),\n pagination: FolkListReminders_ListRemindersPaginationSchema.nullable(),\n}).describe(\"Data envelope for list-reminders response.\");\nexport const FolkListRemindersOutput: z.ZodTypeAny = z.object({\n data: FolkListReminders_ListRemindersDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Full response schema for list-reminders.\");\n\nexport const folkListReminders = action(\"FOLK_LIST_REMINDERS\", {\n slug: \"folk-list-reminders\",\n name: \"List Reminders\",\n description: \"Tool to list reminders in the workspace. Use when you need a paginated overview of reminders, optionally filtered by entity.\",\n input: FolkListRemindersInput,\n output: FolkListRemindersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAA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;CACtG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO,EAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,8BAA8B;CACrG,YAAY,gDAAgD,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAM,0CAA0C,SAAS;CACzD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-reminders.d.ts
4
+ declare const FolkListRemindersInput: z.ZodTypeAny;
5
+ declare const FolkListRemindersOutput: z.ZodTypeAny;
6
+ declare const folkListReminders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { folkListReminders };
9
+ //# sourceMappingURL=list-reminders.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-reminders.d.cts","names":[],"sources":["../../src/actions/list-reminders.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIkC;AAAA,cA8B5D,uBAAA,EAAyB,CAAA,CAAE,UAGe;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-reminders.d.ts
4
+ declare const FolkListRemindersInput: z.ZodTypeAny;
5
+ declare const FolkListRemindersOutput: z.ZodTypeAny;
6
+ declare const folkListReminders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { folkListReminders };
9
+ //# sourceMappingURL=list-reminders.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-reminders.d.mts","names":[],"sources":["../../src/actions/list-reminders.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIkC;AAAA,cA8B5D,uBAAA,EAAyB,CAAA,CAAE,UAGe;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,53 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-reminders.ts
4
+ const FolkListRemindersInput = z.object({
5
+ limit: z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
+ cursor: z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional(),
7
+ entity_id: z.string().describe("Filter reminders by entity ID (person, company, or object).").optional()
8
+ }).describe("Request parameters for listing reminders in the workspace.");
9
+ const FolkListReminders_ListRemindersEntitySchema = z.object({
10
+ id: z.string().describe("Unique identifier of the entity."),
11
+ fullName: z.string().describe("Display name of the entity."),
12
+ entityType: z.enum([
13
+ "person",
14
+ "company",
15
+ "object"
16
+ ]).describe("Type of entity connected to the reminder.")
17
+ }).describe("Entity connected to the reminder.");
18
+ const FolkListReminders_ListRemindersUserSchema = z.object({
19
+ id: z.string().describe("Unique identifier of the user."),
20
+ email: z.string().describe("Email address of the user."),
21
+ fullName: z.string().describe("Full name of the user.")
22
+ }).describe("User information for reminder.");
23
+ const FolkListReminders_ListRemindersReminderSchema = z.object({
24
+ id: z.string().describe("Unique reminder identifier."),
25
+ name: z.string().describe("Reminder title (max 255 characters)."),
26
+ entity: FolkListReminders_ListRemindersEntitySchema.nullable(),
27
+ createdAt: z.string().describe("ISO 8601 timestamp when the reminder was created.").nullable().optional(),
28
+ createdBy: FolkListReminders_ListRemindersUserSchema.nullable(),
29
+ visibility: z.enum(["public", "private"]).describe("Visibility setting for the reminder."),
30
+ assignedUsers: z.array(FolkListReminders_ListRemindersUserSchema).describe("Workspace users assigned to be notified."),
31
+ recurrenceRule: z.string().describe("iCalendar RFC 5545 format recurrence rule.").nullable().optional(),
32
+ lastTriggerTime: z.string().describe("ISO 8601 timestamp for previous trigger.").nullable().optional(),
33
+ nextTriggerTime: z.string().describe("ISO 8601 timestamp for upcoming trigger.").nullable().optional()
34
+ }).describe("A reminder object in the workspace.");
35
+ const FolkListReminders_ListRemindersPaginationSchema = z.object({ nextLink: z.string().describe("URL to fetch the next page of results. Omit if no further pages.").nullable().optional() }).describe("Pagination information for list-reminders endpoint.");
36
+ const FolkListReminders_ListRemindersDataSchema = z.object({
37
+ items: z.array(FolkListReminders_ListRemindersReminderSchema).describe("List of retrieved reminders."),
38
+ pagination: FolkListReminders_ListRemindersPaginationSchema.nullable()
39
+ }).describe("Data envelope for list-reminders response.");
40
+ const folkListReminders = action("FOLK_LIST_REMINDERS", {
41
+ slug: "folk-list-reminders",
42
+ name: "List Reminders",
43
+ description: "Tool to list reminders in the workspace. Use when you need a paginated overview of reminders, optionally filtered by entity.",
44
+ input: FolkListRemindersInput,
45
+ output: z.object({
46
+ data: FolkListReminders_ListRemindersDataSchema.nullable(),
47
+ deprecations: z.array(z.string()).describe("List of deprecation warnings, if any.").nullable().optional()
48
+ }).describe("Full response schema for list-reminders.")
49
+ });
50
+ //#endregion
51
+ export { folkListReminders };
52
+
53
+ //# sourceMappingURL=list-reminders.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-reminders.mjs","names":[],"sources":["../../src/actions/list-reminders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListRemindersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n entity_id: z.string().describe(\"Filter reminders by entity ID (person, company, or object).\").optional(),\n}).describe(\"Request parameters for listing reminders in the workspace.\");\nconst FolkListReminders_ListRemindersEntitySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\"),\n fullName: z.string().describe(\"Display name of the entity.\"),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity connected to the reminder.\"),\n}).describe(\"Entity connected to the reminder.\");\nconst FolkListReminders_ListRemindersUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\"),\n email: z.string().describe(\"Email address of the user.\"),\n fullName: z.string().describe(\"Full name of the user.\"),\n}).describe(\"User information for reminder.\");\nconst FolkListReminders_ListRemindersReminderSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique reminder identifier.\"),\n name: z.string().describe(\"Reminder title (max 255 characters).\"),\n entity: FolkListReminders_ListRemindersEntitySchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the reminder was created.\").nullable().optional(),\n createdBy: FolkListReminders_ListRemindersUserSchema.nullable(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility setting for the reminder.\"),\n assignedUsers: z.array(FolkListReminders_ListRemindersUserSchema).describe(\"Workspace users assigned to be notified.\"),\n recurrenceRule: z.string().describe(\"iCalendar RFC 5545 format recurrence rule.\").nullable().optional(),\n lastTriggerTime: z.string().describe(\"ISO 8601 timestamp for previous trigger.\").nullable().optional(),\n nextTriggerTime: z.string().describe(\"ISO 8601 timestamp for upcoming trigger.\").nullable().optional(),\n}).describe(\"A reminder object in the workspace.\");\nconst FolkListReminders_ListRemindersPaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).describe(\"Pagination information for list-reminders endpoint.\");\nconst FolkListReminders_ListRemindersDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListReminders_ListRemindersReminderSchema).describe(\"List of retrieved reminders.\"),\n pagination: FolkListReminders_ListRemindersPaginationSchema.nullable(),\n}).describe(\"Data envelope for list-reminders response.\");\nexport const FolkListRemindersOutput: z.ZodTypeAny = z.object({\n data: FolkListReminders_ListRemindersDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Full response schema for list-reminders.\");\n\nexport const folkListReminders = action(\"FOLK_LIST_REMINDERS\", {\n slug: \"folk-list-reminders\",\n name: \"List Reminders\",\n description: \"Tool to list reminders in the workspace. Use when you need a paginated overview of reminders, optionally filtered by entity.\",\n input: FolkListRemindersInput,\n output: FolkListRemindersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,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CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,kDAAgE,EAAE,OAAO,EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,4CAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,8BAA8B;CACrG,YAAY,gDAAgD,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,MAAM,0CAA0C,SAAS;EACzD,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-users.ts
4
+ const FolkListUsersInput = zod.z.object({
5
+ limit: zod.z.number().int().default(20).describe("Number of users to return. Must be between 1 and 100.").optional(),
6
+ cursor: zod.z.string().describe("A pagination cursor from previous response's `nextLink`. Omit on first call.").optional()
7
+ }).describe("Request parameters for listing workspace users.");
8
+ const FolkListUsers_UserSchema = zod.z.object({
9
+ id: zod.z.string().describe("Unique identifier for the user."),
10
+ email: zod.z.string().describe("Email address of the user."),
11
+ fullName: zod.z.string().describe("Full name of the user.")
12
+ }).describe("A workspace user.");
13
+ const FolkListUsers_PaginationSchema = zod.z.object({ nextLink: zod.z.string().describe("URL for the next page of results.").nullable().optional() }).describe("Pagination metadata.");
14
+ const FolkListUsers_ListUsersDataSchema = zod.z.object({
15
+ items: zod.z.array(FolkListUsers_UserSchema).describe("List of user objects."),
16
+ pagination: FolkListUsers_PaginationSchema.nullable()
17
+ }).describe("Paginated list of users.");
18
+ const FolkListUsersOutput = zod.z.object({
19
+ data: FolkListUsers_ListUsersDataSchema.nullable(),
20
+ deprecations: zod.z.array(zod.z.string()).describe("Deprecation warnings, if any.").nullable().optional()
21
+ }).describe("Response schema for listing workspace users.");
22
+ const folkListUsers = require_action.action("FOLK_LIST_USERS", {
23
+ slug: "folk-list-users",
24
+ name: "List Users",
25
+ description: "Tool to list workspace users. Use when you need to paginate through users list.",
26
+ input: FolkListUsersInput,
27
+ output: FolkListUsersOutput
28
+ });
29
+ //#endregion
30
+ exports.folkListUsers = folkListUsers;
31
+
32
+ //# sourceMappingURL=list-users.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListUsersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"Number of users to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from previous response's `nextLink`. Omit on first call.\").optional(),\n}).describe(\"Request parameters for listing workspace users.\");\nconst FolkListUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user.\"),\n email: z.string().describe(\"Email address of the user.\"),\n fullName: z.string().describe(\"Full name of the user.\"),\n}).describe(\"A workspace user.\");\nconst FolkListUsers_PaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"URL for the next page of results.\").nullable().optional(),\n}).describe(\"Pagination metadata.\");\nconst FolkListUsers_ListUsersDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListUsers_UserSchema).describe(\"List of user objects.\"),\n pagination: FolkListUsers_PaginationSchema.nullable(),\n}).describe(\"Paginated list of users.\");\nexport const FolkListUsersOutput: z.ZodTypeAny = z.object({\n data: FolkListUsers_ListUsersDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Response schema for listing workspace users.\");\n\nexport const folkListUsers = action(\"FOLK_LIST_USERS\", {\n slug: \"folk-list-users\",\n name: \"List Users\",\n description: \"Tool to list workspace users. Use when you need to paginate through users list.\",\n input: FolkListUsersInput,\n output: FolkListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2BAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC,CAAC,CAAC,SAAS,mBAAmB;AAC/B,MAAM,iCAA+CA,IAAAA,EAAE,OAAO,EAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,MAAM,wBAAwB,CAAC,CAAC,SAAS,uBAAuB;CACzE,YAAY,+BAA+B,SAAS;AACtD,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAM,kCAAkC,SAAS;CACjD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-users.d.ts
4
+ declare const FolkListUsersInput: z.ZodTypeAny;
5
+ declare const FolkListUsersOutput: z.ZodTypeAny;
6
+ declare const folkListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { folkListUsers };
9
+ //# sourceMappingURL=list-users.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAG2B;AAAA,cAajD,mBAAA,EAAqB,CAAA,CAAE,UAGuB;AAAA,cAE9C,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-users.d.ts
4
+ declare const FolkListUsersInput: z.ZodTypeAny;
5
+ declare const FolkListUsersOutput: z.ZodTypeAny;
6
+ declare const folkListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { folkListUsers };
9
+ //# sourceMappingURL=list-users.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAG2B;AAAA,cAajD,mBAAA,EAAqB,CAAA,CAAE,UAGuB;AAAA,cAE9C,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-users.ts
4
+ const FolkListUsersInput = z.object({
5
+ limit: z.number().int().default(20).describe("Number of users to return. Must be between 1 and 100.").optional(),
6
+ cursor: z.string().describe("A pagination cursor from previous response's `nextLink`. Omit on first call.").optional()
7
+ }).describe("Request parameters for listing workspace users.");
8
+ const FolkListUsers_UserSchema = z.object({
9
+ id: z.string().describe("Unique identifier for the user."),
10
+ email: z.string().describe("Email address of the user."),
11
+ fullName: z.string().describe("Full name of the user.")
12
+ }).describe("A workspace user.");
13
+ const FolkListUsers_PaginationSchema = z.object({ nextLink: z.string().describe("URL for the next page of results.").nullable().optional() }).describe("Pagination metadata.");
14
+ const FolkListUsers_ListUsersDataSchema = z.object({
15
+ items: z.array(FolkListUsers_UserSchema).describe("List of user objects."),
16
+ pagination: FolkListUsers_PaginationSchema.nullable()
17
+ }).describe("Paginated list of users.");
18
+ const folkListUsers = action("FOLK_LIST_USERS", {
19
+ slug: "folk-list-users",
20
+ name: "List Users",
21
+ description: "Tool to list workspace users. Use when you need to paginate through users list.",
22
+ input: FolkListUsersInput,
23
+ output: z.object({
24
+ data: FolkListUsers_ListUsersDataSchema.nullable(),
25
+ deprecations: z.array(z.string()).describe("Deprecation warnings, if any.").nullable().optional()
26
+ }).describe("Response schema for listing workspace users.")
27
+ });
28
+ //#endregion
29
+ export { folkListUsers };
30
+
31
+ //# sourceMappingURL=list-users.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListUsersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(20).describe(\"Number of users to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from previous response's `nextLink`. Omit on first call.\").optional(),\n}).describe(\"Request parameters for listing workspace users.\");\nconst FolkListUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user.\"),\n email: z.string().describe(\"Email address of the user.\"),\n fullName: z.string().describe(\"Full name of the user.\"),\n}).describe(\"A workspace user.\");\nconst FolkListUsers_PaginationSchema: z.ZodTypeAny = z.object({\n nextLink: z.string().describe(\"URL for the next page of results.\").nullable().optional(),\n}).describe(\"Pagination metadata.\");\nconst FolkListUsers_ListUsersDataSchema: z.ZodTypeAny = z.object({\n items: z.array(FolkListUsers_UserSchema).describe(\"List of user objects.\"),\n pagination: FolkListUsers_PaginationSchema.nullable(),\n}).describe(\"Paginated list of users.\");\nexport const FolkListUsersOutput: z.ZodTypeAny = z.object({\n data: FolkListUsers_ListUsersDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Response schema for listing workspace users.\");\n\nexport const folkListUsers = action(\"FOLK_LIST_USERS\", {\n slug: \"folk-list-users\",\n name: \"List Users\",\n description: \"Tool to list workspace users. Use when you need to paginate through users list.\",\n input: FolkListUsersInput,\n output: FolkListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2BAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC,CAAC,CAAC,SAAS,mBAAmB;AAC/B,MAAM,iCAA+C,EAAE,OAAO,EAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAM,oCAAkD,EAAE,OAAO;CAC/D,OAAO,EAAE,MAAM,wBAAwB,CAAC,CAAC,SAAS,uBAAuB;CACzE,YAAY,+BAA+B,SAAS;AACtD,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAMtC,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,MAAM,kCAAkC,SAAS;EACjD,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}