@keystrokehq/motion 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 (250) 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/add-custom-field-to-project.cjs +49 -0
  7. package/dist/actions/add-custom-field-to-project.cjs.map +1 -0
  8. package/dist/actions/add-custom-field-to-project.d.cts +9 -0
  9. package/dist/actions/add-custom-field-to-project.d.cts.map +1 -0
  10. package/dist/actions/add-custom-field-to-project.d.mts +9 -0
  11. package/dist/actions/add-custom-field-to-project.d.mts.map +1 -0
  12. package/dist/actions/add-custom-field-to-project.mjs +46 -0
  13. package/dist/actions/add-custom-field-to-project.mjs.map +1 -0
  14. package/dist/actions/add-custom-field-to-task.cjs +49 -0
  15. package/dist/actions/add-custom-field-to-task.cjs.map +1 -0
  16. package/dist/actions/add-custom-field-to-task.d.cts +9 -0
  17. package/dist/actions/add-custom-field-to-task.d.cts.map +1 -0
  18. package/dist/actions/add-custom-field-to-task.d.mts +9 -0
  19. package/dist/actions/add-custom-field-to-task.d.mts.map +1 -0
  20. package/dist/actions/add-custom-field-to-task.mjs +46 -0
  21. package/dist/actions/add-custom-field-to-task.mjs.map +1 -0
  22. package/dist/actions/create-comment.cjs +30 -0
  23. package/dist/actions/create-comment.cjs.map +1 -0
  24. package/dist/actions/create-comment.d.cts +9 -0
  25. package/dist/actions/create-comment.d.cts.map +1 -0
  26. package/dist/actions/create-comment.d.mts +9 -0
  27. package/dist/actions/create-comment.d.mts.map +1 -0
  28. package/dist/actions/create-comment.mjs +29 -0
  29. package/dist/actions/create-comment.mjs.map +1 -0
  30. package/dist/actions/create-custom-field.cjs +49 -0
  31. package/dist/actions/create-custom-field.cjs.map +1 -0
  32. package/dist/actions/create-custom-field.d.cts +9 -0
  33. package/dist/actions/create-custom-field.d.cts.map +1 -0
  34. package/dist/actions/create-custom-field.d.mts +9 -0
  35. package/dist/actions/create-custom-field.d.mts.map +1 -0
  36. package/dist/actions/create-custom-field.mjs +46 -0
  37. package/dist/actions/create-custom-field.mjs.map +1 -0
  38. package/dist/actions/create-project.cjs +44 -0
  39. package/dist/actions/create-project.cjs.map +1 -0
  40. package/dist/actions/create-project.d.cts +9 -0
  41. package/dist/actions/create-project.d.cts.map +1 -0
  42. package/dist/actions/create-project.d.mts +9 -0
  43. package/dist/actions/create-project.d.mts.map +1 -0
  44. package/dist/actions/create-project.mjs +41 -0
  45. package/dist/actions/create-project.mjs.map +1 -0
  46. package/dist/actions/create-recurring-task.cjs +65 -0
  47. package/dist/actions/create-recurring-task.cjs.map +1 -0
  48. package/dist/actions/create-recurring-task.d.cts +9 -0
  49. package/dist/actions/create-recurring-task.d.cts.map +1 -0
  50. package/dist/actions/create-recurring-task.d.mts +9 -0
  51. package/dist/actions/create-recurring-task.d.mts.map +1 -0
  52. package/dist/actions/create-recurring-task.mjs +64 -0
  53. package/dist/actions/create-recurring-task.mjs.map +1 -0
  54. package/dist/actions/create-task.cjs +92 -0
  55. package/dist/actions/create-task.cjs.map +1 -0
  56. package/dist/actions/create-task.d.cts +9 -0
  57. package/dist/actions/create-task.d.cts.map +1 -0
  58. package/dist/actions/create-task.d.mts +9 -0
  59. package/dist/actions/create-task.d.mts.map +1 -0
  60. package/dist/actions/create-task.mjs +91 -0
  61. package/dist/actions/create-task.mjs.map +1 -0
  62. package/dist/actions/delete-custom-field-from-project.cjs +19 -0
  63. package/dist/actions/delete-custom-field-from-project.cjs.map +1 -0
  64. package/dist/actions/delete-custom-field-from-project.d.cts +9 -0
  65. package/dist/actions/delete-custom-field-from-project.d.cts.map +1 -0
  66. package/dist/actions/delete-custom-field-from-project.d.mts +9 -0
  67. package/dist/actions/delete-custom-field-from-project.d.mts.map +1 -0
  68. package/dist/actions/delete-custom-field-from-project.mjs +16 -0
  69. package/dist/actions/delete-custom-field-from-project.mjs.map +1 -0
  70. package/dist/actions/delete-custom-field-from-task.cjs +19 -0
  71. package/dist/actions/delete-custom-field-from-task.cjs.map +1 -0
  72. package/dist/actions/delete-custom-field-from-task.d.cts +9 -0
  73. package/dist/actions/delete-custom-field-from-task.d.cts.map +1 -0
  74. package/dist/actions/delete-custom-field-from-task.d.mts +9 -0
  75. package/dist/actions/delete-custom-field-from-task.d.mts.map +1 -0
  76. package/dist/actions/delete-custom-field-from-task.mjs +16 -0
  77. package/dist/actions/delete-custom-field-from-task.mjs.map +1 -0
  78. package/dist/actions/delete-custom-field.cjs +22 -0
  79. package/dist/actions/delete-custom-field.cjs.map +1 -0
  80. package/dist/actions/delete-custom-field.d.cts +9 -0
  81. package/dist/actions/delete-custom-field.d.cts.map +1 -0
  82. package/dist/actions/delete-custom-field.d.mts +9 -0
  83. package/dist/actions/delete-custom-field.d.mts.map +1 -0
  84. package/dist/actions/delete-custom-field.mjs +19 -0
  85. package/dist/actions/delete-custom-field.mjs.map +1 -0
  86. package/dist/actions/delete-recurring-task.cjs +16 -0
  87. package/dist/actions/delete-recurring-task.cjs.map +1 -0
  88. package/dist/actions/delete-recurring-task.d.cts +9 -0
  89. package/dist/actions/delete-recurring-task.d.cts.map +1 -0
  90. package/dist/actions/delete-recurring-task.d.mts +9 -0
  91. package/dist/actions/delete-recurring-task.d.mts.map +1 -0
  92. package/dist/actions/delete-recurring-task.mjs +13 -0
  93. package/dist/actions/delete-recurring-task.mjs.map +1 -0
  94. package/dist/actions/delete-task.cjs +16 -0
  95. package/dist/actions/delete-task.cjs.map +1 -0
  96. package/dist/actions/delete-task.d.cts +9 -0
  97. package/dist/actions/delete-task.d.cts.map +1 -0
  98. package/dist/actions/delete-task.d.mts +9 -0
  99. package/dist/actions/delete-task.d.mts.map +1 -0
  100. package/dist/actions/delete-task.mjs +13 -0
  101. package/dist/actions/delete-task.mjs.map +1 -0
  102. package/dist/actions/get-my-user.cjs +20 -0
  103. package/dist/actions/get-my-user.cjs.map +1 -0
  104. package/dist/actions/get-my-user.d.cts +9 -0
  105. package/dist/actions/get-my-user.d.cts.map +1 -0
  106. package/dist/actions/get-my-user.d.mts +9 -0
  107. package/dist/actions/get-my-user.d.mts.map +1 -0
  108. package/dist/actions/get-my-user.mjs +17 -0
  109. package/dist/actions/get-my-user.mjs.map +1 -0
  110. package/dist/actions/get-project.cjs +30 -0
  111. package/dist/actions/get-project.cjs.map +1 -0
  112. package/dist/actions/get-project.d.cts +9 -0
  113. package/dist/actions/get-project.d.cts.map +1 -0
  114. package/dist/actions/get-project.d.mts +9 -0
  115. package/dist/actions/get-project.d.mts.map +1 -0
  116. package/dist/actions/get-project.mjs +29 -0
  117. package/dist/actions/get-project.mjs.map +1 -0
  118. package/dist/actions/get-task.cjs +83 -0
  119. package/dist/actions/get-task.cjs.map +1 -0
  120. package/dist/actions/get-task.d.cts +9 -0
  121. package/dist/actions/get-task.d.cts.map +1 -0
  122. package/dist/actions/get-task.d.mts +9 -0
  123. package/dist/actions/get-task.d.mts.map +1 -0
  124. package/dist/actions/get-task.mjs +82 -0
  125. package/dist/actions/get-task.mjs.map +1 -0
  126. package/dist/actions/index.cjs +55 -0
  127. package/dist/actions/index.d.cts +28 -0
  128. package/dist/actions/index.d.mts +28 -0
  129. package/dist/actions/index.mjs +28 -0
  130. package/dist/actions/list-comments.cjs +38 -0
  131. package/dist/actions/list-comments.cjs.map +1 -0
  132. package/dist/actions/list-comments.d.cts +9 -0
  133. package/dist/actions/list-comments.d.cts.map +1 -0
  134. package/dist/actions/list-comments.d.mts +9 -0
  135. package/dist/actions/list-comments.d.mts.map +1 -0
  136. package/dist/actions/list-comments.mjs +37 -0
  137. package/dist/actions/list-comments.mjs.map +1 -0
  138. package/dist/actions/list-custom-fields.cjs +27 -0
  139. package/dist/actions/list-custom-fields.cjs.map +1 -0
  140. package/dist/actions/list-custom-fields.d.cts +9 -0
  141. package/dist/actions/list-custom-fields.d.cts.map +1 -0
  142. package/dist/actions/list-custom-fields.d.mts +9 -0
  143. package/dist/actions/list-custom-fields.d.mts.map +1 -0
  144. package/dist/actions/list-custom-fields.mjs +26 -0
  145. package/dist/actions/list-custom-fields.mjs.map +1 -0
  146. package/dist/actions/list-projects.cjs +41 -0
  147. package/dist/actions/list-projects.cjs.map +1 -0
  148. package/dist/actions/list-projects.d.cts +9 -0
  149. package/dist/actions/list-projects.d.cts.map +1 -0
  150. package/dist/actions/list-projects.d.mts +9 -0
  151. package/dist/actions/list-projects.d.mts.map +1 -0
  152. package/dist/actions/list-projects.mjs +40 -0
  153. package/dist/actions/list-projects.mjs.map +1 -0
  154. package/dist/actions/list-recurring-tasks.cjs +67 -0
  155. package/dist/actions/list-recurring-tasks.cjs.map +1 -0
  156. package/dist/actions/list-recurring-tasks.d.cts +9 -0
  157. package/dist/actions/list-recurring-tasks.d.cts.map +1 -0
  158. package/dist/actions/list-recurring-tasks.d.mts +9 -0
  159. package/dist/actions/list-recurring-tasks.d.mts.map +1 -0
  160. package/dist/actions/list-recurring-tasks.mjs +66 -0
  161. package/dist/actions/list-recurring-tasks.mjs.map +1 -0
  162. package/dist/actions/list-schedules.cjs +35 -0
  163. package/dist/actions/list-schedules.cjs.map +1 -0
  164. package/dist/actions/list-schedules.d.cts +9 -0
  165. package/dist/actions/list-schedules.d.cts.map +1 -0
  166. package/dist/actions/list-schedules.d.mts +9 -0
  167. package/dist/actions/list-schedules.d.mts.map +1 -0
  168. package/dist/actions/list-schedules.mjs +34 -0
  169. package/dist/actions/list-schedules.mjs.map +1 -0
  170. package/dist/actions/list-statuses.cjs +21 -0
  171. package/dist/actions/list-statuses.cjs.map +1 -0
  172. package/dist/actions/list-statuses.d.cts +9 -0
  173. package/dist/actions/list-statuses.d.cts.map +1 -0
  174. package/dist/actions/list-statuses.d.mts +9 -0
  175. package/dist/actions/list-statuses.d.mts.map +1 -0
  176. package/dist/actions/list-statuses.mjs +20 -0
  177. package/dist/actions/list-statuses.mjs.map +1 -0
  178. package/dist/actions/list-tasks.cjs +102 -0
  179. package/dist/actions/list-tasks.cjs.map +1 -0
  180. package/dist/actions/list-tasks.d.cts +9 -0
  181. package/dist/actions/list-tasks.d.cts.map +1 -0
  182. package/dist/actions/list-tasks.d.mts +9 -0
  183. package/dist/actions/list-tasks.d.mts.map +1 -0
  184. package/dist/actions/list-tasks.mjs +101 -0
  185. package/dist/actions/list-tasks.mjs.map +1 -0
  186. package/dist/actions/list-users.cjs +32 -0
  187. package/dist/actions/list-users.cjs.map +1 -0
  188. package/dist/actions/list-users.d.cts +9 -0
  189. package/dist/actions/list-users.d.cts.map +1 -0
  190. package/dist/actions/list-users.d.mts +9 -0
  191. package/dist/actions/list-users.d.mts.map +1 -0
  192. package/dist/actions/list-users.mjs +31 -0
  193. package/dist/actions/list-users.mjs.map +1 -0
  194. package/dist/actions/list-workspaces.cjs +40 -0
  195. package/dist/actions/list-workspaces.cjs.map +1 -0
  196. package/dist/actions/list-workspaces.d.cts +9 -0
  197. package/dist/actions/list-workspaces.d.cts.map +1 -0
  198. package/dist/actions/list-workspaces.d.mts +9 -0
  199. package/dist/actions/list-workspaces.d.mts.map +1 -0
  200. package/dist/actions/list-workspaces.mjs +39 -0
  201. package/dist/actions/list-workspaces.mjs.map +1 -0
  202. package/dist/actions/move-task.cjs +87 -0
  203. package/dist/actions/move-task.cjs.map +1 -0
  204. package/dist/actions/move-task.d.cts +9 -0
  205. package/dist/actions/move-task.d.cts.map +1 -0
  206. package/dist/actions/move-task.d.mts +9 -0
  207. package/dist/actions/move-task.d.mts.map +1 -0
  208. package/dist/actions/move-task.mjs +86 -0
  209. package/dist/actions/move-task.mjs.map +1 -0
  210. package/dist/actions/unassign-task.cjs +16 -0
  211. package/dist/actions/unassign-task.cjs.map +1 -0
  212. package/dist/actions/unassign-task.d.cts +9 -0
  213. package/dist/actions/unassign-task.d.cts.map +1 -0
  214. package/dist/actions/unassign-task.d.mts +9 -0
  215. package/dist/actions/unassign-task.d.mts.map +1 -0
  216. package/dist/actions/unassign-task.mjs +13 -0
  217. package/dist/actions/unassign-task.mjs.map +1 -0
  218. package/dist/actions/update-task.cjs +107 -0
  219. package/dist/actions/update-task.cjs.map +1 -0
  220. package/dist/actions/update-task.d.cts +9 -0
  221. package/dist/actions/update-task.d.cts.map +1 -0
  222. package/dist/actions/update-task.d.mts +9 -0
  223. package/dist/actions/update-task.d.mts.map +1 -0
  224. package/dist/actions/update-task.mjs +106 -0
  225. package/dist/actions/update-task.mjs.map +1 -0
  226. package/dist/app.cjs +9 -0
  227. package/dist/app.cjs.map +1 -0
  228. package/dist/app.d.cts +5 -0
  229. package/dist/app.d.cts.map +1 -0
  230. package/dist/app.d.mts +5 -0
  231. package/dist/app.d.mts.map +1 -0
  232. package/dist/app.mjs +10 -0
  233. package/dist/app.mjs.map +1 -0
  234. package/dist/catalog.cjs +15 -0
  235. package/dist/catalog.cjs.map +1 -0
  236. package/dist/catalog.d.cts +14 -0
  237. package/dist/catalog.d.cts.map +1 -0
  238. package/dist/catalog.d.mts +14 -0
  239. package/dist/catalog.d.mts.map +1 -0
  240. package/dist/catalog.mjs +15 -0
  241. package/dist/catalog.mjs.map +1 -0
  242. package/dist/execute.cjs +18 -0
  243. package/dist/execute.cjs.map +1 -0
  244. package/dist/execute.mjs +18 -0
  245. package/dist/execute.mjs.map +1 -0
  246. package/dist/index.cjs +60 -0
  247. package/dist/index.d.cts +30 -0
  248. package/dist/index.d.mts +30 -0
  249. package/dist/index.mjs +31 -0
  250. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCustomFieldsInput: z.ZodTypeAny = z.object({\n workspace_id: z.string().describe(\"The workspace ID to get custom fields from\"),\n}).describe(\"Request model for listing custom fields for a workspace.\");\nconst MotionListCustomFields_FieldDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\"),\n name: z.string().describe(\"The name of the custom field\"),\n type: z.string().describe(\"The type of the custom field (e.g., 'text', 'select', 'date', 'number')\"),\n metadata: z.object({}).describe(\"Optional metadata for the custom field (e.g., options for select fields, format for number fields)\").nullable().optional(),\n workspaceId: z.string().describe(\"The workspace this custom field belongs to\"),\n}).describe(\"Details of a custom field.\");\nconst MotionListCustomFields_CustomFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\"),\n field: MotionListCustomFields_FieldDetailsSchema.nullable(),\n}).describe(\"A custom field object containing field details and ID.\");\nexport const MotionListCustomFieldsOutput: z.ZodTypeAny = z.object({\n custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe(\"List of custom fields in the workspace\"),\n}).describe(\"Response model for listing custom fields.\\nReturns an array of custom field objects.\");\n\nexport const motionListCustomFields = action(\"MOTION_LIST_CUSTOM_FIELDS\", {\n slug: \"motion-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to retrieve all custom fields for a given Motion workspace. Use when you need to see what custom fields are available in a workspace.\",\n input: MotionListCustomFieldsInput,\n output: MotionListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EAChF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,OAAO,0CAA0C,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,eAAeA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,wCAAwC,EACpH,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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-custom-fields.d.ts
4
+ declare const MotionListCustomFieldsInput: z.ZodTypeAny;
5
+ declare const MotionListCustomFieldsOutput: z.ZodTypeAny;
6
+ declare const motionListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListCustomFields };
9
+ //# sourceMappingURL=list-custom-fields.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAE2B;AAAA,cAY1D,4BAAA,EAA8B,CAAA,CAAE,UAEsD;AAAA,cAEtF,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-custom-fields.d.ts
4
+ declare const MotionListCustomFieldsInput: z.ZodTypeAny;
5
+ declare const MotionListCustomFieldsOutput: z.ZodTypeAny;
6
+ declare const motionListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListCustomFields };
9
+ //# sourceMappingURL=list-custom-fields.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAE2B;AAAA,cAY1D,4BAAA,EAA8B,CAAA,CAAE,UAEsD;AAAA,cAEtF,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-custom-fields.ts
4
+ const MotionListCustomFieldsInput = z.object({ workspace_id: z.string().describe("The workspace ID to get custom fields from") }).describe("Request model for listing custom fields for a workspace.");
5
+ const MotionListCustomFields_FieldDetailsSchema = z.object({
6
+ id: z.string().describe("The unique identifier for the custom field"),
7
+ name: z.string().describe("The name of the custom field"),
8
+ type: z.string().describe("The type of the custom field (e.g., 'text', 'select', 'date', 'number')"),
9
+ metadata: z.object({}).describe("Optional metadata for the custom field (e.g., options for select fields, format for number fields)").nullable().optional(),
10
+ workspaceId: z.string().describe("The workspace this custom field belongs to")
11
+ }).describe("Details of a custom field.");
12
+ const MotionListCustomFields_CustomFieldSchema = z.object({
13
+ id: z.string().describe("The unique identifier for the custom field"),
14
+ field: MotionListCustomFields_FieldDetailsSchema.nullable()
15
+ }).describe("A custom field object containing field details and ID.");
16
+ const motionListCustomFields = action("MOTION_LIST_CUSTOM_FIELDS", {
17
+ slug: "motion-list-custom-fields",
18
+ name: "List Custom Fields",
19
+ description: "Tool to retrieve all custom fields for a given Motion workspace. Use when you need to see what custom fields are available in a workspace.",
20
+ input: MotionListCustomFieldsInput,
21
+ output: z.object({ custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe("List of custom fields in the workspace") }).describe("Response model for listing custom fields.\nReturns an array of custom field objects.")
22
+ });
23
+ //#endregion
24
+ export { motionListCustomFields };
25
+
26
+ //# sourceMappingURL=list-custom-fields.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCustomFieldsInput: z.ZodTypeAny = z.object({\n workspace_id: z.string().describe(\"The workspace ID to get custom fields from\"),\n}).describe(\"Request model for listing custom fields for a workspace.\");\nconst MotionListCustomFields_FieldDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\"),\n name: z.string().describe(\"The name of the custom field\"),\n type: z.string().describe(\"The type of the custom field (e.g., 'text', 'select', 'date', 'number')\"),\n metadata: z.object({}).describe(\"Optional metadata for the custom field (e.g., options for select fields, format for number fields)\").nullable().optional(),\n workspaceId: z.string().describe(\"The workspace this custom field belongs to\"),\n}).describe(\"Details of a custom field.\");\nconst MotionListCustomFields_CustomFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\"),\n field: MotionListCustomFields_FieldDetailsSchema.nullable(),\n}).describe(\"A custom field object containing field details and ID.\");\nexport const MotionListCustomFieldsOutput: z.ZodTypeAny = z.object({\n custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe(\"List of custom fields in the workspace\"),\n}).describe(\"Response model for listing custom fields.\\nReturns an array of custom field objects.\");\n\nexport const motionListCustomFields = action(\"MOTION_LIST_CUSTOM_FIELDS\", {\n slug: \"motion-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to retrieve all custom fields for a given Motion workspace. Use when you need to see what custom fields are available in a workspace.\",\n input: MotionListCustomFieldsInput,\n output: MotionListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO,EAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EAChF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,OAAO,0CAA0C,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAKpE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,eAAe,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,wCAAwC,EACpH,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
@@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-projects.ts
4
+ const MotionListProjectsInput = zod.z.object({
5
+ cursor: zod.z.string().describe("Use if a previous request returned a cursor. Will page through results.").optional(),
6
+ workspace_id: zod.z.string().describe("The workspace ID to get projects from. If not provided, returns projects from all workspaces accessible by the API key.").optional()
7
+ }).describe("Request model for listing projects in a workspace.");
8
+ const MotionListProjects_MetaSchema = zod.z.object({
9
+ page_size: zod.z.number().int().describe("Number of results in the current response").nullable().optional(),
10
+ next_cursor: zod.z.string().describe("Cursor for fetching the next page of results").nullable().optional()
11
+ }).describe("Pagination metadata.");
12
+ const MotionListProjects_ProjectStatusSchema = zod.z.object({
13
+ name: zod.z.string().describe("The name of the status").nullable().optional(),
14
+ isDefaultStatus: zod.z.boolean().describe("Whether this is the default status").nullable().optional(),
15
+ isResolvedStatus: zod.z.boolean().describe("Whether this is a resolved status").nullable().optional()
16
+ }).describe("Status information for a project.");
17
+ const MotionListProjects_ProjectSchema = zod.z.object({
18
+ id: zod.z.string().describe("The unique identifier for the project"),
19
+ name: zod.z.string().describe("The name of the project"),
20
+ status: MotionListProjects_ProjectStatusSchema.nullable().optional(),
21
+ description: zod.z.string().describe("HTML-formatted description of the project").nullable().optional(),
22
+ created_time: zod.z.string().describe("The timestamp when the project was created").nullable().optional(),
23
+ updated_time: zod.z.string().describe("The timestamp when the project was last updated").nullable().optional(),
24
+ workspace_id: zod.z.string().describe("The workspace ID this project belongs to"),
25
+ custom_field_values: zod.z.object({}).describe("Custom field values for the project, where keys are field IDs and values are field value objects. Supports various field types including text, number, URL, date, select, multiSelect, person, multiPerson, email, phone, checkbox, and relatedTo.").nullable().optional()
26
+ }).describe("A Motion project object.");
27
+ const MotionListProjectsOutput = zod.z.object({
28
+ meta: MotionListProjects_MetaSchema.nullable().optional(),
29
+ projects: zod.z.array(MotionListProjects_ProjectSchema).describe("List of projects in the workspace")
30
+ }).describe("Response model for listing projects.");
31
+ const motionListProjects = require_action.action("MOTION_LIST_PROJECTS", {
32
+ slug: "motion-list-projects",
33
+ name: "List Projects",
34
+ description: "Tool to get all projects for a workspace. Use when you need to retrieve all projects accessible to the API key, optionally filtered by workspace.",
35
+ input: MotionListProjectsInput,
36
+ output: MotionListProjectsOutput
37
+ });
38
+ //#endregion
39
+ exports.motionListProjects = motionListProjects;
40
+
41
+ //# sourceMappingURL=list-projects.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListProjectsInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Use if a previous request returned a cursor. Will page through results.\").optional(),\n workspace_id: z.string().describe(\"The workspace ID to get projects from. If not provided, returns projects from all workspaces accessible by the API key.\").optional(),\n}).describe(\"Request model for listing projects in a workspace.\");\nconst MotionListProjects_MetaSchema: z.ZodTypeAny = z.object({\n page_size: z.number().int().describe(\"Number of results in the current response\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results\").nullable().optional(),\n}).describe(\"Pagination metadata.\");\nconst MotionListProjects_ProjectStatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the status\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this is a resolved status\").nullable().optional(),\n}).describe(\"Status information for a project.\");\nconst MotionListProjects_ProjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the project\"),\n name: z.string().describe(\"The name of the project\"),\n status: MotionListProjects_ProjectStatusSchema.nullable().optional(),\n description: z.string().describe(\"HTML-formatted description of the project\").nullable().optional(),\n created_time: z.string().describe(\"The timestamp when the project was created\").nullable().optional(),\n updated_time: z.string().describe(\"The timestamp when the project was last updated\").nullable().optional(),\n workspace_id: z.string().describe(\"The workspace ID this project belongs to\"),\n custom_field_values: z.object({}).describe(\"Custom field values for the project, where keys are field IDs and values are field value objects. Supports various field types including text, number, URL, date, select, multiSelect, person, multiPerson, email, phone, checkbox, and relatedTo.\").nullable().optional(),\n}).describe(\"A Motion project object.\");\nexport const MotionListProjectsOutput: z.ZodTypeAny = z.object({\n meta: MotionListProjects_MetaSchema.nullable().optional(),\n projects: z.array(MotionListProjects_ProjectSchema).describe(\"List of projects in the workspace\"),\n}).describe(\"Response model for listing projects.\");\n\nexport const motionListProjects = action(\"MOTION_LIST_PROJECTS\", {\n slug: \"motion-list-projects\",\n name: \"List Projects\",\n description: \"Tool to get all projects for a workspace. Use when you need to retrieve all projects accessible to the API key, optionally filtered by workspace.\",\n input: MotionListProjectsInput,\n output: MotionListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,QAAQ,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvT,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAM,8BAA8B,SAAS,CAAC,CAAC,SAAS;CACxD,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mCAAmC;AAClG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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-projects.d.ts
4
+ declare const MotionListProjectsInput: z.ZodTypeAny;
5
+ declare const MotionListProjectsOutput: z.ZodTypeAny;
6
+ declare const motionListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListProjects };
9
+ //# sourceMappingURL=list-projects.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGyB;AAAA,cAoBpD,wBAAA,EAA0B,CAAA,CAAE,UAGU;AAAA,cAEtC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-projects.d.ts
4
+ declare const MotionListProjectsInput: z.ZodTypeAny;
5
+ declare const MotionListProjectsOutput: z.ZodTypeAny;
6
+ declare const motionListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListProjects };
9
+ //# sourceMappingURL=list-projects.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGyB;AAAA,cAoBpD,wBAAA,EAA0B,CAAA,CAAE,UAGU;AAAA,cAEtC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,40 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-projects.ts
4
+ const MotionListProjectsInput = z.object({
5
+ cursor: z.string().describe("Use if a previous request returned a cursor. Will page through results.").optional(),
6
+ workspace_id: z.string().describe("The workspace ID to get projects from. If not provided, returns projects from all workspaces accessible by the API key.").optional()
7
+ }).describe("Request model for listing projects in a workspace.");
8
+ const MotionListProjects_MetaSchema = z.object({
9
+ page_size: z.number().int().describe("Number of results in the current response").nullable().optional(),
10
+ next_cursor: z.string().describe("Cursor for fetching the next page of results").nullable().optional()
11
+ }).describe("Pagination metadata.");
12
+ const MotionListProjects_ProjectStatusSchema = z.object({
13
+ name: z.string().describe("The name of the status").nullable().optional(),
14
+ isDefaultStatus: z.boolean().describe("Whether this is the default status").nullable().optional(),
15
+ isResolvedStatus: z.boolean().describe("Whether this is a resolved status").nullable().optional()
16
+ }).describe("Status information for a project.");
17
+ const MotionListProjects_ProjectSchema = z.object({
18
+ id: z.string().describe("The unique identifier for the project"),
19
+ name: z.string().describe("The name of the project"),
20
+ status: MotionListProjects_ProjectStatusSchema.nullable().optional(),
21
+ description: z.string().describe("HTML-formatted description of the project").nullable().optional(),
22
+ created_time: z.string().describe("The timestamp when the project was created").nullable().optional(),
23
+ updated_time: z.string().describe("The timestamp when the project was last updated").nullable().optional(),
24
+ workspace_id: z.string().describe("The workspace ID this project belongs to"),
25
+ custom_field_values: z.object({}).describe("Custom field values for the project, where keys are field IDs and values are field value objects. Supports various field types including text, number, URL, date, select, multiSelect, person, multiPerson, email, phone, checkbox, and relatedTo.").nullable().optional()
26
+ }).describe("A Motion project object.");
27
+ const motionListProjects = action("MOTION_LIST_PROJECTS", {
28
+ slug: "motion-list-projects",
29
+ name: "List Projects",
30
+ description: "Tool to get all projects for a workspace. Use when you need to retrieve all projects accessible to the API key, optionally filtered by workspace.",
31
+ input: MotionListProjectsInput,
32
+ output: z.object({
33
+ meta: MotionListProjects_MetaSchema.nullable().optional(),
34
+ projects: z.array(MotionListProjects_ProjectSchema).describe("List of projects in the workspace")
35
+ }).describe("Response model for listing projects.")
36
+ });
37
+ //#endregion
38
+ export { motionListProjects };
39
+
40
+ //# sourceMappingURL=list-projects.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListProjectsInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Use if a previous request returned a cursor. Will page through results.\").optional(),\n workspace_id: z.string().describe(\"The workspace ID to get projects from. If not provided, returns projects from all workspaces accessible by the API key.\").optional(),\n}).describe(\"Request model for listing projects in a workspace.\");\nconst MotionListProjects_MetaSchema: z.ZodTypeAny = z.object({\n page_size: z.number().int().describe(\"Number of results in the current response\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for fetching the next page of results\").nullable().optional(),\n}).describe(\"Pagination metadata.\");\nconst MotionListProjects_ProjectStatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the status\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this is a resolved status\").nullable().optional(),\n}).describe(\"Status information for a project.\");\nconst MotionListProjects_ProjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the project\"),\n name: z.string().describe(\"The name of the project\"),\n status: MotionListProjects_ProjectStatusSchema.nullable().optional(),\n description: z.string().describe(\"HTML-formatted description of the project\").nullable().optional(),\n created_time: z.string().describe(\"The timestamp when the project was created\").nullable().optional(),\n updated_time: z.string().describe(\"The timestamp when the project was last updated\").nullable().optional(),\n workspace_id: z.string().describe(\"The workspace ID this project belongs to\"),\n custom_field_values: z.object({}).describe(\"Custom field values for the project, where keys are field IDs and values are field value objects. Supports various field types including text, number, URL, date, select, multiSelect, person, multiPerson, email, phone, checkbox, and relatedTo.\").nullable().optional(),\n}).describe(\"A Motion project object.\");\nexport const MotionListProjectsOutput: z.ZodTypeAny = z.object({\n meta: MotionListProjects_MetaSchema.nullable().optional(),\n projects: z.array(MotionListProjects_ProjectSchema).describe(\"List of projects in the workspace\"),\n}).describe(\"Response model for listing projects.\");\n\nexport const motionListProjects = action(\"MOTION_LIST_PROJECTS\", {\n slug: \"motion-list-projects\",\n name: \"List Projects\",\n description: \"Tool to get all projects for a workspace. Use when you need to retrieve all projects accessible to the API key, optionally filtered by workspace.\",\n input: MotionListProjectsInput,\n output: MotionListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;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AC,CAAC,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvT,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAMtC,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,8BAA8B,SAAS,CAAC,CAAC,SAAS;EACxD,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mCAAmC;CAClG,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -0,0 +1,67 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-recurring-tasks.ts
4
+ const MotionListRecurringTasksInput = zod.z.object({
5
+ cursor: zod.z.string().describe("Cursor for pagination. Use the nextCursor value from a previous response to get the next page of results.").optional(),
6
+ workspaceId: zod.z.string().describe("The workspace to get recurring tasks from. Required.")
7
+ }).describe("Request parameters for listing recurring tasks in a workspace.");
8
+ const MotionListRecurringTasks_PaginationMetaSchema = zod.z.object({
9
+ pageSize: zod.z.number().int().describe("Number of tasks in the current response").nullable().optional(),
10
+ nextCursor: zod.z.string().describe("Cursor to use for fetching the next page of results. Null if no more pages.").nullable().optional()
11
+ }).describe("Pagination metadata.");
12
+ const MotionListRecurringTasks_LabelObjectSchema = zod.z.object({ name: zod.z.string().describe("Label name") }).describe("Label information.");
13
+ const MotionListRecurringTasks_StatusObjectSchema = zod.z.object({
14
+ name: zod.z.string().describe("Status name"),
15
+ isDefaultStatus: zod.z.boolean().describe("Whether this is the default status"),
16
+ isResolvedStatus: zod.z.boolean().describe("Whether this status indicates the task is resolved")
17
+ }).describe("Task status information.");
18
+ const MotionListRecurringTasks_UserObjectSchema = zod.z.object({
19
+ id: zod.z.string().describe("Unique user identifier"),
20
+ name: zod.z.string().describe("User's full name"),
21
+ email: zod.z.string().describe("User's email address")
22
+ }).describe("User information for creator or assignee.");
23
+ const MotionListRecurringTasks_ProjectObjectSchema = zod.z.object({
24
+ id: zod.z.string().describe("Unique project identifier"),
25
+ name: zod.z.string().describe("Project name"),
26
+ status: MotionListRecurringTasks_StatusObjectSchema.nullable().optional(),
27
+ createdTime: zod.z.string().describe("Project creation timestamp in ISO format").nullable().optional(),
28
+ description: zod.z.string().describe("Project description (may contain HTML)"),
29
+ updatedTime: zod.z.string().describe("Project last update timestamp in ISO format").nullable().optional(),
30
+ workspaceId: zod.z.string().describe("Associated workspace identifier"),
31
+ customFieldValues: zod.z.object({}).describe("Custom field values for the project").nullable().optional()
32
+ }).describe("Project information associated with a recurring task.");
33
+ const MotionListRecurringTasks_WorkspaceObjectSchema = zod.z.object({
34
+ id: zod.z.string().describe("Unique workspace identifier"),
35
+ name: zod.z.string().describe("Workspace name"),
36
+ type: zod.z.string().describe("Workspace type: 'team' or 'individual'"),
37
+ labels: zod.z.array(MotionListRecurringTasks_LabelObjectSchema).describe("Available labels in workspace").nullable().optional(),
38
+ teamId: zod.z.string().describe("Associated team identifier (null for individual workspaces)").nullable().optional(),
39
+ statuses: zod.z.array(MotionListRecurringTasks_StatusObjectSchema).describe("Available statuses in workspace").nullable().optional()
40
+ }).describe("Workspace information.");
41
+ const MotionListRecurringTasks_RecurringTaskObjectSchema = zod.z.object({
42
+ id: zod.z.string().describe("Unique recurring task identifier"),
43
+ name: zod.z.string().describe("Task title/name"),
44
+ labels: zod.z.array(MotionListRecurringTasks_LabelObjectSchema).describe("Labels assigned to the task"),
45
+ status: MotionListRecurringTasks_StatusObjectSchema.nullable(),
46
+ creator: MotionListRecurringTasks_UserObjectSchema.nullable(),
47
+ project: MotionListRecurringTasks_ProjectObjectSchema.nullable().optional(),
48
+ assignee: MotionListRecurringTasks_UserObjectSchema.nullable(),
49
+ priority: zod.z.string().describe("Task priority: ASAP, HIGH, MEDIUM, or LOW"),
50
+ workspace: MotionListRecurringTasks_WorkspaceObjectSchema.nullable(),
51
+ customFieldValues: zod.z.object({}).describe("Custom field values for the task").nullable().optional()
52
+ }).describe("Recurring task details.");
53
+ const MotionListRecurringTasksOutput = zod.z.object({
54
+ meta: MotionListRecurringTasks_PaginationMetaSchema.nullable().optional(),
55
+ tasks: zod.z.array(MotionListRecurringTasks_RecurringTaskObjectSchema).describe("List of recurring tasks")
56
+ }).describe("Response containing paginated list of recurring tasks.");
57
+ const motionListRecurringTasks = require_action.action("MOTION_LIST_RECURRING_TASKS", {
58
+ slug: "motion-list-recurring-tasks",
59
+ name: "List Recurring Tasks",
60
+ description: "Tool to get all recurring tasks for a workspace. Use when you need to retrieve recurring task information from Motion.",
61
+ input: MotionListRecurringTasksInput,
62
+ output: MotionListRecurringTasksOutput
63
+ });
64
+ //#endregion
65
+ exports.motionListRecurringTasks = motionListRecurringTasks;
66
+
67
+ //# sourceMappingURL=list-recurring-tasks.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-recurring-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-recurring-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListRecurringTasksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor value from a previous response to get the next page of results.\").optional(),\n workspaceId: z.string().describe(\"The workspace to get recurring tasks from. Required.\"),\n}).describe(\"Request parameters for listing recurring tasks in a workspace.\");\nconst MotionListRecurringTasks_PaginationMetaSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"Number of tasks in the current response\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. Null if no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata.\");\nconst MotionListRecurringTasks_LabelObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Label name\"),\n}).describe(\"Label information.\");\nconst MotionListRecurringTasks_StatusObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Status name\"),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status\"),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates the task is resolved\"),\n}).describe(\"Task status information.\");\nconst MotionListRecurringTasks_UserObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique user identifier\"),\n name: z.string().describe(\"User's full name\"),\n email: z.string().describe(\"User's email address\"),\n}).describe(\"User information for creator or assignee.\");\nconst MotionListRecurringTasks_ProjectObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique project identifier\"),\n name: z.string().describe(\"Project name\"),\n status: MotionListRecurringTasks_StatusObjectSchema.nullable().optional(),\n createdTime: z.string().describe(\"Project creation timestamp in ISO format\").nullable().optional(),\n description: z.string().describe(\"Project description (may contain HTML)\"),\n updatedTime: z.string().describe(\"Project last update timestamp in ISO format\").nullable().optional(),\n workspaceId: z.string().describe(\"Associated workspace identifier\"),\n customFieldValues: z.object({}).describe(\"Custom field values for the project\").nullable().optional(),\n}).describe(\"Project information associated with a recurring task.\");\nconst MotionListRecurringTasks_WorkspaceObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique workspace identifier\"),\n name: z.string().describe(\"Workspace name\"),\n type: z.string().describe(\"Workspace type: 'team' or 'individual'\"),\n labels: z.array(MotionListRecurringTasks_LabelObjectSchema).describe(\"Available labels in workspace\").nullable().optional(),\n teamId: z.string().describe(\"Associated team identifier (null for individual workspaces)\").nullable().optional(),\n statuses: z.array(MotionListRecurringTasks_StatusObjectSchema).describe(\"Available statuses in workspace\").nullable().optional(),\n}).describe(\"Workspace information.\");\nconst MotionListRecurringTasks_RecurringTaskObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique recurring task identifier\"),\n name: z.string().describe(\"Task title/name\"),\n labels: z.array(MotionListRecurringTasks_LabelObjectSchema).describe(\"Labels assigned to the task\"),\n status: MotionListRecurringTasks_StatusObjectSchema.nullable(),\n creator: MotionListRecurringTasks_UserObjectSchema.nullable(),\n project: MotionListRecurringTasks_ProjectObjectSchema.nullable().optional(),\n assignee: MotionListRecurringTasks_UserObjectSchema.nullable(),\n priority: z.string().describe(\"Task priority: ASAP, HIGH, MEDIUM, or LOW\"),\n workspace: MotionListRecurringTasks_WorkspaceObjectSchema.nullable(),\n customFieldValues: z.object({}).describe(\"Custom field values for the task\").nullable().optional(),\n}).describe(\"Recurring task details.\");\nexport const MotionListRecurringTasksOutput: z.ZodTypeAny = z.object({\n meta: MotionListRecurringTasks_PaginationMetaSchema.nullable().optional(),\n tasks: z.array(MotionListRecurringTasks_RecurringTaskObjectSchema).describe(\"List of recurring tasks\"),\n}).describe(\"Response containing paginated list of recurring tasks.\");\n\nexport const motionListRecurringTasks = action(\"MOTION_LIST_RECURRING_TASKS\", {\n slug: \"motion-list-recurring-tasks\",\n name: \"List Recurring Tasks\",\n description: \"Tool to get all recurring tasks for a workspace. Use when you need to retrieve recurring task information from Motion.\",\n input: MotionListRecurringTasksInput,\n output: MotionListRecurringTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAClJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,EACxC,CAAC,CAAC,CAAC,SAAS,oBAAo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CAAC,CAAC,SAAS,yBAAyB;AACvG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,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-recurring-tasks.d.ts
4
+ declare const MotionListRecurringTasksInput: z.ZodTypeAny;
5
+ declare const MotionListRecurringTasksOutput: z.ZodTypeAny;
6
+ declare const motionListRecurringTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListRecurringTasks };
9
+ //# sourceMappingURL=list-recurring-tasks.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-recurring-tasks.d.cts","names":[],"sources":["../../src/actions/list-recurring-tasks.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG+B;AAAA,cAgDhE,8BAAA,EAAgC,CAAA,CAAE,UAGsB;AAAA,cAExD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-recurring-tasks.d.ts
4
+ declare const MotionListRecurringTasksInput: z.ZodTypeAny;
5
+ declare const MotionListRecurringTasksOutput: z.ZodTypeAny;
6
+ declare const motionListRecurringTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListRecurringTasks };
9
+ //# sourceMappingURL=list-recurring-tasks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-recurring-tasks.d.mts","names":[],"sources":["../../src/actions/list-recurring-tasks.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG+B;AAAA,cAgDhE,8BAAA,EAAgC,CAAA,CAAE,UAGsB;AAAA,cAExD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,66 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-recurring-tasks.ts
4
+ const MotionListRecurringTasksInput = z.object({
5
+ cursor: z.string().describe("Cursor for pagination. Use the nextCursor value from a previous response to get the next page of results.").optional(),
6
+ workspaceId: z.string().describe("The workspace to get recurring tasks from. Required.")
7
+ }).describe("Request parameters for listing recurring tasks in a workspace.");
8
+ const MotionListRecurringTasks_PaginationMetaSchema = z.object({
9
+ pageSize: z.number().int().describe("Number of tasks in the current response").nullable().optional(),
10
+ nextCursor: z.string().describe("Cursor to use for fetching the next page of results. Null if no more pages.").nullable().optional()
11
+ }).describe("Pagination metadata.");
12
+ const MotionListRecurringTasks_LabelObjectSchema = z.object({ name: z.string().describe("Label name") }).describe("Label information.");
13
+ const MotionListRecurringTasks_StatusObjectSchema = z.object({
14
+ name: z.string().describe("Status name"),
15
+ isDefaultStatus: z.boolean().describe("Whether this is the default status"),
16
+ isResolvedStatus: z.boolean().describe("Whether this status indicates the task is resolved")
17
+ }).describe("Task status information.");
18
+ const MotionListRecurringTasks_UserObjectSchema = z.object({
19
+ id: z.string().describe("Unique user identifier"),
20
+ name: z.string().describe("User's full name"),
21
+ email: z.string().describe("User's email address")
22
+ }).describe("User information for creator or assignee.");
23
+ const MotionListRecurringTasks_ProjectObjectSchema = z.object({
24
+ id: z.string().describe("Unique project identifier"),
25
+ name: z.string().describe("Project name"),
26
+ status: MotionListRecurringTasks_StatusObjectSchema.nullable().optional(),
27
+ createdTime: z.string().describe("Project creation timestamp in ISO format").nullable().optional(),
28
+ description: z.string().describe("Project description (may contain HTML)"),
29
+ updatedTime: z.string().describe("Project last update timestamp in ISO format").nullable().optional(),
30
+ workspaceId: z.string().describe("Associated workspace identifier"),
31
+ customFieldValues: z.object({}).describe("Custom field values for the project").nullable().optional()
32
+ }).describe("Project information associated with a recurring task.");
33
+ const MotionListRecurringTasks_WorkspaceObjectSchema = z.object({
34
+ id: z.string().describe("Unique workspace identifier"),
35
+ name: z.string().describe("Workspace name"),
36
+ type: z.string().describe("Workspace type: 'team' or 'individual'"),
37
+ labels: z.array(MotionListRecurringTasks_LabelObjectSchema).describe("Available labels in workspace").nullable().optional(),
38
+ teamId: z.string().describe("Associated team identifier (null for individual workspaces)").nullable().optional(),
39
+ statuses: z.array(MotionListRecurringTasks_StatusObjectSchema).describe("Available statuses in workspace").nullable().optional()
40
+ }).describe("Workspace information.");
41
+ const MotionListRecurringTasks_RecurringTaskObjectSchema = z.object({
42
+ id: z.string().describe("Unique recurring task identifier"),
43
+ name: z.string().describe("Task title/name"),
44
+ labels: z.array(MotionListRecurringTasks_LabelObjectSchema).describe("Labels assigned to the task"),
45
+ status: MotionListRecurringTasks_StatusObjectSchema.nullable(),
46
+ creator: MotionListRecurringTasks_UserObjectSchema.nullable(),
47
+ project: MotionListRecurringTasks_ProjectObjectSchema.nullable().optional(),
48
+ assignee: MotionListRecurringTasks_UserObjectSchema.nullable(),
49
+ priority: z.string().describe("Task priority: ASAP, HIGH, MEDIUM, or LOW"),
50
+ workspace: MotionListRecurringTasks_WorkspaceObjectSchema.nullable(),
51
+ customFieldValues: z.object({}).describe("Custom field values for the task").nullable().optional()
52
+ }).describe("Recurring task details.");
53
+ const motionListRecurringTasks = action("MOTION_LIST_RECURRING_TASKS", {
54
+ slug: "motion-list-recurring-tasks",
55
+ name: "List Recurring Tasks",
56
+ description: "Tool to get all recurring tasks for a workspace. Use when you need to retrieve recurring task information from Motion.",
57
+ input: MotionListRecurringTasksInput,
58
+ output: z.object({
59
+ meta: MotionListRecurringTasks_PaginationMetaSchema.nullable().optional(),
60
+ tasks: z.array(MotionListRecurringTasks_RecurringTaskObjectSchema).describe("List of recurring tasks")
61
+ }).describe("Response containing paginated list of recurring tasks.")
62
+ });
63
+ //#endregion
64
+ export { motionListRecurringTasks };
65
+
66
+ //# sourceMappingURL=list-recurring-tasks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-recurring-tasks.mjs","names":[],"sources":["../../src/actions/list-recurring-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListRecurringTasksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor value from a previous response to get the next page of results.\").optional(),\n workspaceId: z.string().describe(\"The workspace to get recurring tasks from. Required.\"),\n}).describe(\"Request parameters for listing recurring tasks in a workspace.\");\nconst MotionListRecurringTasks_PaginationMetaSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"Number of tasks in the current response\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. Null if no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata.\");\nconst MotionListRecurringTasks_LabelObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Label name\"),\n}).describe(\"Label information.\");\nconst MotionListRecurringTasks_StatusObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Status name\"),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status\"),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates the task is resolved\"),\n}).describe(\"Task status information.\");\nconst MotionListRecurringTasks_UserObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique user identifier\"),\n name: z.string().describe(\"User's full name\"),\n email: z.string().describe(\"User's email address\"),\n}).describe(\"User information for creator or assignee.\");\nconst MotionListRecurringTasks_ProjectObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique project identifier\"),\n name: z.string().describe(\"Project name\"),\n status: MotionListRecurringTasks_StatusObjectSchema.nullable().optional(),\n createdTime: z.string().describe(\"Project creation timestamp in ISO format\").nullable().optional(),\n description: z.string().describe(\"Project description (may contain HTML)\"),\n updatedTime: z.string().describe(\"Project last update timestamp in ISO format\").nullable().optional(),\n workspaceId: z.string().describe(\"Associated workspace identifier\"),\n customFieldValues: z.object({}).describe(\"Custom field values for the project\").nullable().optional(),\n}).describe(\"Project information associated with a recurring task.\");\nconst MotionListRecurringTasks_WorkspaceObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique workspace identifier\"),\n name: z.string().describe(\"Workspace name\"),\n type: z.string().describe(\"Workspace type: 'team' or 'individual'\"),\n labels: z.array(MotionListRecurringTasks_LabelObjectSchema).describe(\"Available labels in workspace\").nullable().optional(),\n teamId: z.string().describe(\"Associated team identifier (null for individual workspaces)\").nullable().optional(),\n statuses: z.array(MotionListRecurringTasks_StatusObjectSchema).describe(\"Available statuses in workspace\").nullable().optional(),\n}).describe(\"Workspace information.\");\nconst MotionListRecurringTasks_RecurringTaskObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique recurring task identifier\"),\n name: z.string().describe(\"Task title/name\"),\n labels: z.array(MotionListRecurringTasks_LabelObjectSchema).describe(\"Labels assigned to the task\"),\n status: MotionListRecurringTasks_StatusObjectSchema.nullable(),\n creator: MotionListRecurringTasks_UserObjectSchema.nullable(),\n project: MotionListRecurringTasks_ProjectObjectSchema.nullable().optional(),\n assignee: MotionListRecurringTasks_UserObjectSchema.nullable(),\n priority: z.string().describe(\"Task priority: ASAP, HIGH, MEDIUM, or LOW\"),\n workspace: MotionListRecurringTasks_WorkspaceObjectSchema.nullable(),\n customFieldValues: z.object({}).describe(\"Custom field values for the task\").nullable().optional(),\n}).describe(\"Recurring task details.\");\nexport const MotionListRecurringTasksOutput: z.ZodTypeAny = z.object({\n meta: MotionListRecurringTasks_PaginationMetaSchema.nullable().optional(),\n tasks: z.array(MotionListRecurringTasks_RecurringTaskObjectSchema).describe(\"List of recurring tasks\"),\n}).describe(\"Response containing paginated list of recurring tasks.\");\n\nexport const motionListRecurringTasks = action(\"MOTION_LIST_RECURRING_TASKS\", {\n slug: \"motion-list-recurring-tasks\",\n name: \"List Recurring Tasks\",\n description: \"Tool to get all recurring tasks for a workspace. Use when you need to retrieve recurring task information from Motion.\",\n input: MotionListRecurringTasksInput,\n output: MotionListRecurringTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAClJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,gDAA8D,EAAE,OAAO;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAM,6CAA2D,EAAE,OAAO,EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,EACxC,CAAC,CAAC,CAAC,SAAS,oBAAoB;AAChC,MAAM,8CAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAC1E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD;AAC7F,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACnD,CAAC,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,CAAC,CAAC,SAAS,iBAAiB;CAC3C,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6BAA6B;CAClG,QAAQ,4CAA4C,SAAS;CAC7D,SAAS,0CAA0C,SAAS;CAC5D,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAU,0CAA0C,SAAS;CAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,WAAW,+CAA+C,SAAS;CACnE,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAMrC,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0D,EAAE,OAAO;EACnE,MAAM,8CAA8C,SAAS,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,yBAAyB;CACvG,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-schedules.ts
4
+ const MotionListSchedulesInput = zod.z.object({}).describe("Request model for listing schedules for your user.\nThis endpoint requires no parameters.");
5
+ const MotionListSchedules_TimeSlotSchema = zod.z.object({
6
+ end: zod.z.string().describe("When the schedule ends, formatted HH:MM (e.g., '17:00')"),
7
+ start: zod.z.string().describe("When the schedule starts, formatted HH:MM (e.g., '09:00')")
8
+ }).describe("Represents a time slot with start and end times.");
9
+ const MotionListSchedules_WeeklyScheduleSchema = zod.z.object({
10
+ friday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Friday").nullable().optional(),
11
+ monday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Monday").nullable().optional(),
12
+ sunday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Sunday").nullable().optional(),
13
+ tuesday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Tuesday").nullable().optional(),
14
+ saturday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Saturday").nullable().optional(),
15
+ thursday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Thursday").nullable().optional(),
16
+ wednesday: zod.z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Wednesday").nullable().optional()
17
+ }).describe("Represents a weekly schedule with time slots for each day of the week.");
18
+ const MotionListSchedules_ScheduleSchema = zod.z.object({
19
+ name: zod.z.string().describe("The name of the schedule"),
20
+ schedule: MotionListSchedules_WeeklyScheduleSchema.nullable(),
21
+ timezone: zod.z.string().describe("The timezone of the schedule (e.g., 'America/New_York')"),
22
+ isDefaultTimezone: zod.z.boolean().describe("Whether the schedule uses the default timezone")
23
+ }).describe("Represents a schedule with name, timezone, and weekly time slots.");
24
+ const MotionListSchedulesOutput = zod.z.object({ schedules: zod.z.array(MotionListSchedules_ScheduleSchema).describe("List of schedules for the user") }).describe("Response model for listing schedules.\nReturns an array of schedule objects.");
25
+ const motionListSchedules = require_action.action("MOTION_LIST_SCHEDULES", {
26
+ slug: "motion-list-schedules",
27
+ name: "List Schedules",
28
+ description: "Tool to get a list of schedules for your user. Use when you need to retrieve the user's scheduling configuration including work hours and timezone settings.",
29
+ input: MotionListSchedulesInput,
30
+ output: MotionListSchedulesOutput
31
+ });
32
+ //#endregion
33
+ exports.motionListSchedules = motionListSchedules;
34
+
35
+ //# sourceMappingURL=list-schedules.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-schedules.cjs","names":["z","action"],"sources":["../../src/actions/list-schedules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListSchedulesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing schedules for your user.\\nThis endpoint requires no parameters.\");\nconst MotionListSchedules_TimeSlotSchema: z.ZodTypeAny = z.object({\n end: z.string().describe(\"When the schedule ends, formatted HH:MM (e.g., '17:00')\"),\n start: z.string().describe(\"When the schedule starts, formatted HH:MM (e.g., '09:00')\"),\n}).describe(\"Represents a time slot with start and end times.\");\nconst MotionListSchedules_WeeklyScheduleSchema: z.ZodTypeAny = z.object({\n friday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Friday\").nullable().optional(),\n monday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Monday\").nullable().optional(),\n sunday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Sunday\").nullable().optional(),\n tuesday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Tuesday\").nullable().optional(),\n saturday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Saturday\").nullable().optional(),\n thursday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Thursday\").nullable().optional(),\n wednesday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Wednesday\").nullable().optional(),\n}).describe(\"Represents a weekly schedule with time slots for each day of the week.\");\nconst MotionListSchedules_ScheduleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the schedule\"),\n schedule: MotionListSchedules_WeeklyScheduleSchema.nullable(),\n timezone: z.string().describe(\"The timezone of the schedule (e.g., 'America/New_York')\"),\n isDefaultTimezone: z.boolean().describe(\"Whether the schedule uses the default timezone\"),\n}).describe(\"Represents a schedule with name, timezone, and weekly time slots.\");\nexport const MotionListSchedulesOutput: z.ZodTypeAny = z.object({\n schedules: z.array(MotionListSchedules_ScheduleSchema).describe(\"List of schedules for the user\"),\n}).describe(\"Response model for listing schedules.\\nReturns an array of schedule objects.\");\n\nexport const motionListSchedules = action(\"MOTION_LIST_SCHEDULES\", {\n slug: \"motion-list-schedules\",\n name: \"List Schedules\",\n description: \"Tool to get a list of schedules for your user. Use when you need to retrieve the user's scheduling configuration including work hours and timezone settings.\",\n input: MotionListSchedulesInput,\n output: MotionListSchedulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvK,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AACxF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,UAAUA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,UAAU,yCAAyC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;AAC1F,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,WAAWA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gCAAgC,EAClG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAE1F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,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-schedules.d.ts
4
+ declare const MotionListSchedulesInput: z.ZodTypeAny;
5
+ declare const MotionListSchedulesOutput: z.ZodTypeAny;
6
+ declare const motionListSchedules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListSchedules };
9
+ //# sourceMappingURL=list-schedules.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-schedules.d.cts","names":[],"sources":["../../src/actions/list-schedules.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA+H;AAAA,cAoB3J,yBAAA,EAA2B,CAAA,CAAE,UAEiD;AAAA,cAE9E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-schedules.d.ts
4
+ declare const MotionListSchedulesInput: z.ZodTypeAny;
5
+ declare const MotionListSchedulesOutput: z.ZodTypeAny;
6
+ declare const motionListSchedules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListSchedules };
9
+ //# sourceMappingURL=list-schedules.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-schedules.d.mts","names":[],"sources":["../../src/actions/list-schedules.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA+H;AAAA,cAoB3J,yBAAA,EAA2B,CAAA,CAAE,UAEiD;AAAA,cAE9E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-schedules.ts
4
+ const MotionListSchedulesInput = z.object({}).describe("Request model for listing schedules for your user.\nThis endpoint requires no parameters.");
5
+ const MotionListSchedules_TimeSlotSchema = z.object({
6
+ end: z.string().describe("When the schedule ends, formatted HH:MM (e.g., '17:00')"),
7
+ start: z.string().describe("When the schedule starts, formatted HH:MM (e.g., '09:00')")
8
+ }).describe("Represents a time slot with start and end times.");
9
+ const MotionListSchedules_WeeklyScheduleSchema = z.object({
10
+ friday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Friday").nullable().optional(),
11
+ monday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Monday").nullable().optional(),
12
+ sunday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Sunday").nullable().optional(),
13
+ tuesday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Tuesday").nullable().optional(),
14
+ saturday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Saturday").nullable().optional(),
15
+ thursday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Thursday").nullable().optional(),
16
+ wednesday: z.array(MotionListSchedules_TimeSlotSchema).describe("Array of time slots for Wednesday").nullable().optional()
17
+ }).describe("Represents a weekly schedule with time slots for each day of the week.");
18
+ const MotionListSchedules_ScheduleSchema = z.object({
19
+ name: z.string().describe("The name of the schedule"),
20
+ schedule: MotionListSchedules_WeeklyScheduleSchema.nullable(),
21
+ timezone: z.string().describe("The timezone of the schedule (e.g., 'America/New_York')"),
22
+ isDefaultTimezone: z.boolean().describe("Whether the schedule uses the default timezone")
23
+ }).describe("Represents a schedule with name, timezone, and weekly time slots.");
24
+ const motionListSchedules = action("MOTION_LIST_SCHEDULES", {
25
+ slug: "motion-list-schedules",
26
+ name: "List Schedules",
27
+ description: "Tool to get a list of schedules for your user. Use when you need to retrieve the user's scheduling configuration including work hours and timezone settings.",
28
+ input: MotionListSchedulesInput,
29
+ output: z.object({ schedules: z.array(MotionListSchedules_ScheduleSchema).describe("List of schedules for the user") }).describe("Response model for listing schedules.\nReturns an array of schedule objects.")
30
+ });
31
+ //#endregion
32
+ export { motionListSchedules };
33
+
34
+ //# sourceMappingURL=list-schedules.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-schedules.mjs","names":[],"sources":["../../src/actions/list-schedules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListSchedulesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing schedules for your user.\\nThis endpoint requires no parameters.\");\nconst MotionListSchedules_TimeSlotSchema: z.ZodTypeAny = z.object({\n end: z.string().describe(\"When the schedule ends, formatted HH:MM (e.g., '17:00')\"),\n start: z.string().describe(\"When the schedule starts, formatted HH:MM (e.g., '09:00')\"),\n}).describe(\"Represents a time slot with start and end times.\");\nconst MotionListSchedules_WeeklyScheduleSchema: z.ZodTypeAny = z.object({\n friday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Friday\").nullable().optional(),\n monday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Monday\").nullable().optional(),\n sunday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Sunday\").nullable().optional(),\n tuesday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Tuesday\").nullable().optional(),\n saturday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Saturday\").nullable().optional(),\n thursday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Thursday\").nullable().optional(),\n wednesday: z.array(MotionListSchedules_TimeSlotSchema).describe(\"Array of time slots for Wednesday\").nullable().optional(),\n}).describe(\"Represents a weekly schedule with time slots for each day of the week.\");\nconst MotionListSchedules_ScheduleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the schedule\"),\n schedule: MotionListSchedules_WeeklyScheduleSchema.nullable(),\n timezone: z.string().describe(\"The timezone of the schedule (e.g., 'America/New_York')\"),\n isDefaultTimezone: z.boolean().describe(\"Whether the schedule uses the default timezone\"),\n}).describe(\"Represents a schedule with name, timezone, and weekly time slots.\");\nexport const MotionListSchedulesOutput: z.ZodTypeAny = z.object({\n schedules: z.array(MotionListSchedules_ScheduleSchema).describe(\"List of schedules for the user\"),\n}).describe(\"Response model for listing schedules.\\nReturns an array of schedule objects.\");\n\nexport const motionListSchedules = action(\"MOTION_LIST_SCHEDULES\", {\n slug: \"motion-list-schedules\",\n name: \"List Schedules\",\n description: \"Tool to get a list of schedules for your user. Use when you need to retrieve the user's scheduling configuration including work hours and timezone settings.\",\n input: MotionListSchedulesInput,\n output: MotionListSchedulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvK,MAAM,qCAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AACxF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,2CAAyD,EAAE,OAAO;CACtE,QAAQ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#region src/actions/list-statuses.ts
4
+ const MotionListStatusesInput = zod.z.object({ workspaceId: zod.z.string().describe("Get statuses for a particular workspace. If not provided, returns statuses for all workspaces.").optional() }).describe("Request model for listing statuses in a Motion workspace.");
5
+ const MotionListStatuses_StatusSchema = zod.z.object({
6
+ name: zod.z.string().describe("Name of the status"),
7
+ isDefaultStatus: zod.z.boolean().describe("Indicates whether this is the default status"),
8
+ isResolvedStatus: zod.z.boolean().describe("Indicates whether this is a resolved status")
9
+ }).describe("Represents a status in Motion.");
10
+ const MotionListStatusesOutput = zod.z.object({ statuses: zod.z.array(MotionListStatuses_StatusSchema).describe("List of statuses") }).describe("Response model for listing statuses.");
11
+ const motionListStatuses = require_action.action("MOTION_LIST_STATUSES", {
12
+ slug: "motion-list-statuses",
13
+ name: "List Statuses",
14
+ description: "Tool to get a list of statuses for a Motion workspace. Use when you need to retrieve available task statuses for a workspace.",
15
+ input: MotionListStatusesInput,
16
+ output: MotionListStatusesOutput
17
+ });
18
+ //#endregion
19
+ exports.motionListStatuses = motionListStatuses;
20
+
21
+ //# sourceMappingURL=list-statuses.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-statuses.cjs","names":["z","action"],"sources":["../../src/actions/list-statuses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListStatusesInput: z.ZodTypeAny = z.object({\n workspaceId: z.string().describe(\"Get statuses for a particular workspace. If not provided, returns statuses for all workspaces.\").optional(),\n}).describe(\"Request model for listing statuses in a Motion workspace.\");\nconst MotionListStatuses_StatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the status\"),\n isDefaultStatus: z.boolean().describe(\"Indicates whether this is the default status\"),\n isResolvedStatus: z.boolean().describe(\"Indicates whether this is a resolved status\"),\n}).describe(\"Represents a status in Motion.\");\nexport const MotionListStatusesOutput: z.ZodTypeAny = z.object({\n statuses: z.array(MotionListStatuses_StatusSchema).describe(\"List of statuses\"),\n}).describe(\"Response model for listing statuses.\");\n\nexport const motionListStatuses = action(\"MOTION_LIST_STATUSES\", {\n slug: \"motion-list-statuses\",\n name: \"List Statuses\",\n description: \"Tool to get a list of statuses for a Motion workspace. Use when you need to retrieve available task statuses for a workspace.\",\n input: MotionListStatusesInput,\n output: MotionListStatusesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;CACpF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;AACtF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,kBAAkB,EAChF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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-statuses.d.ts
4
+ declare const MotionListStatusesInput: z.ZodTypeAny;
5
+ declare const MotionListStatusesOutput: z.ZodTypeAny;
6
+ declare const motionListStatuses: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { motionListStatuses };
9
+ //# sourceMappingURL=list-statuses.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-statuses.d.cts","names":[],"sources":["../../src/actions/list-statuses.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEgC;AAAA,cAM3D,wBAAA,EAA0B,CAAA,CAAE,UAEU;AAAA,cAEtC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}