@keystrokehq/motion 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-custom-field-to-project.cjs +1 -0
  4. package/dist/actions/add-custom-field-to-project.cjs.map +1 -1
  5. package/dist/actions/add-custom-field-to-project.d.cts +4 -9
  6. package/dist/actions/add-custom-field-to-project.d.cts.map +1 -1
  7. package/dist/actions/add-custom-field-to-project.d.mts +4 -9
  8. package/dist/actions/add-custom-field-to-project.d.mts.map +1 -1
  9. package/dist/actions/add-custom-field-to-project.mjs +1 -0
  10. package/dist/actions/add-custom-field-to-project.mjs.map +1 -1
  11. package/dist/actions/add-custom-field-to-task.cjs +1 -0
  12. package/dist/actions/add-custom-field-to-task.cjs.map +1 -1
  13. package/dist/actions/add-custom-field-to-task.d.cts +4 -9
  14. package/dist/actions/add-custom-field-to-task.d.cts.map +1 -1
  15. package/dist/actions/add-custom-field-to-task.d.mts +4 -9
  16. package/dist/actions/add-custom-field-to-task.d.mts.map +1 -1
  17. package/dist/actions/add-custom-field-to-task.mjs +1 -0
  18. package/dist/actions/add-custom-field-to-task.mjs.map +1 -1
  19. package/dist/actions/create-comment.cjs +1 -0
  20. package/dist/actions/create-comment.cjs.map +1 -1
  21. package/dist/actions/create-comment.d.cts +3 -4
  22. package/dist/actions/create-comment.d.cts.map +1 -1
  23. package/dist/actions/create-comment.d.mts +3 -4
  24. package/dist/actions/create-comment.d.mts.map +1 -1
  25. package/dist/actions/create-comment.mjs +1 -0
  26. package/dist/actions/create-comment.mjs.map +1 -1
  27. package/dist/actions/create-custom-field.cjs +1 -0
  28. package/dist/actions/create-custom-field.cjs.map +1 -1
  29. package/dist/actions/create-custom-field.d.cts +4 -16
  30. package/dist/actions/create-custom-field.d.cts.map +1 -1
  31. package/dist/actions/create-custom-field.d.mts +4 -16
  32. package/dist/actions/create-custom-field.d.mts.map +1 -1
  33. package/dist/actions/create-custom-field.mjs +1 -0
  34. package/dist/actions/create-custom-field.mjs.map +1 -1
  35. package/dist/actions/create-project.cjs +1 -0
  36. package/dist/actions/create-project.cjs.map +1 -1
  37. package/dist/actions/create-project.d.cts +4 -19
  38. package/dist/actions/create-project.d.cts.map +1 -1
  39. package/dist/actions/create-project.d.mts +4 -19
  40. package/dist/actions/create-project.d.mts.map +1 -1
  41. package/dist/actions/create-project.mjs +1 -0
  42. package/dist/actions/create-project.mjs.map +1 -1
  43. package/dist/actions/create-recurring-task.cjs +1 -0
  44. package/dist/actions/create-recurring-task.cjs.map +1 -1
  45. package/dist/actions/create-recurring-task.d.cts +3 -13
  46. package/dist/actions/create-recurring-task.d.cts.map +1 -1
  47. package/dist/actions/create-recurring-task.d.mts +3 -13
  48. package/dist/actions/create-recurring-task.d.mts.map +1 -1
  49. package/dist/actions/create-recurring-task.mjs +1 -0
  50. package/dist/actions/create-recurring-task.mjs.map +1 -1
  51. package/dist/actions/create-task.cjs +1 -0
  52. package/dist/actions/create-task.cjs.map +1 -1
  53. package/dist/actions/create-task.d.cts +4 -13
  54. package/dist/actions/create-task.d.cts.map +1 -1
  55. package/dist/actions/create-task.d.mts +4 -13
  56. package/dist/actions/create-task.d.mts.map +1 -1
  57. package/dist/actions/create-task.mjs +1 -0
  58. package/dist/actions/create-task.mjs.map +1 -1
  59. package/dist/actions/delete-custom-field-from-project.cjs +1 -0
  60. package/dist/actions/delete-custom-field-from-project.cjs.map +1 -1
  61. package/dist/actions/delete-custom-field-from-project.d.cts +3 -4
  62. package/dist/actions/delete-custom-field-from-project.d.cts.map +1 -1
  63. package/dist/actions/delete-custom-field-from-project.d.mts +3 -4
  64. package/dist/actions/delete-custom-field-from-project.d.mts.map +1 -1
  65. package/dist/actions/delete-custom-field-from-project.mjs +1 -0
  66. package/dist/actions/delete-custom-field-from-project.mjs.map +1 -1
  67. package/dist/actions/delete-custom-field-from-task.cjs +1 -0
  68. package/dist/actions/delete-custom-field-from-task.cjs.map +1 -1
  69. package/dist/actions/delete-custom-field-from-task.d.cts +3 -4
  70. package/dist/actions/delete-custom-field-from-task.d.cts.map +1 -1
  71. package/dist/actions/delete-custom-field-from-task.d.mts +3 -4
  72. package/dist/actions/delete-custom-field-from-task.d.mts.map +1 -1
  73. package/dist/actions/delete-custom-field-from-task.mjs +1 -0
  74. package/dist/actions/delete-custom-field-from-task.mjs.map +1 -1
  75. package/dist/actions/delete-custom-field.cjs +1 -0
  76. package/dist/actions/delete-custom-field.cjs.map +1 -1
  77. package/dist/actions/delete-custom-field.d.cts +3 -4
  78. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  79. package/dist/actions/delete-custom-field.d.mts +3 -4
  80. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  81. package/dist/actions/delete-custom-field.mjs +1 -0
  82. package/dist/actions/delete-custom-field.mjs.map +1 -1
  83. package/dist/actions/delete-recurring-task.cjs +1 -0
  84. package/dist/actions/delete-recurring-task.cjs.map +1 -1
  85. package/dist/actions/delete-recurring-task.d.cts +3 -3
  86. package/dist/actions/delete-recurring-task.d.cts.map +1 -1
  87. package/dist/actions/delete-recurring-task.d.mts +3 -3
  88. package/dist/actions/delete-recurring-task.d.mts.map +1 -1
  89. package/dist/actions/delete-recurring-task.mjs +1 -0
  90. package/dist/actions/delete-recurring-task.mjs.map +1 -1
  91. package/dist/actions/delete-task.cjs +1 -0
  92. package/dist/actions/delete-task.cjs.map +1 -1
  93. package/dist/actions/delete-task.d.cts +3 -3
  94. package/dist/actions/delete-task.d.cts.map +1 -1
  95. package/dist/actions/delete-task.d.mts +3 -3
  96. package/dist/actions/delete-task.d.mts.map +1 -1
  97. package/dist/actions/delete-task.mjs +1 -0
  98. package/dist/actions/delete-task.mjs.map +1 -1
  99. package/dist/actions/get-my-user.cjs +1 -0
  100. package/dist/actions/get-my-user.cjs.map +1 -1
  101. package/dist/actions/get-my-user.d.cts +3 -1
  102. package/dist/actions/get-my-user.d.cts.map +1 -1
  103. package/dist/actions/get-my-user.d.mts +3 -1
  104. package/dist/actions/get-my-user.d.mts.map +1 -1
  105. package/dist/actions/get-my-user.mjs +1 -0
  106. package/dist/actions/get-my-user.mjs.map +1 -1
  107. package/dist/actions/get-project.cjs +1 -0
  108. package/dist/actions/get-project.cjs.map +1 -1
  109. package/dist/actions/get-project.d.cts +3 -3
  110. package/dist/actions/get-project.d.cts.map +1 -1
  111. package/dist/actions/get-project.d.mts +3 -3
  112. package/dist/actions/get-project.d.mts.map +1 -1
  113. package/dist/actions/get-project.mjs +1 -0
  114. package/dist/actions/get-project.mjs.map +1 -1
  115. package/dist/actions/get-task.cjs +1 -0
  116. package/dist/actions/get-task.cjs.map +1 -1
  117. package/dist/actions/get-task.d.cts +3 -3
  118. package/dist/actions/get-task.d.cts.map +1 -1
  119. package/dist/actions/get-task.d.mts +3 -3
  120. package/dist/actions/get-task.d.mts.map +1 -1
  121. package/dist/actions/get-task.mjs +1 -0
  122. package/dist/actions/get-task.mjs.map +1 -1
  123. package/dist/actions/list-comments.cjs +1 -0
  124. package/dist/actions/list-comments.cjs.map +1 -1
  125. package/dist/actions/list-comments.d.cts +3 -4
  126. package/dist/actions/list-comments.d.cts.map +1 -1
  127. package/dist/actions/list-comments.d.mts +3 -4
  128. package/dist/actions/list-comments.d.mts.map +1 -1
  129. package/dist/actions/list-comments.mjs +1 -0
  130. package/dist/actions/list-comments.mjs.map +1 -1
  131. package/dist/actions/list-custom-fields.cjs +1 -0
  132. package/dist/actions/list-custom-fields.cjs.map +1 -1
  133. package/dist/actions/list-custom-fields.d.cts +3 -3
  134. package/dist/actions/list-custom-fields.d.cts.map +1 -1
  135. package/dist/actions/list-custom-fields.d.mts +3 -3
  136. package/dist/actions/list-custom-fields.d.mts.map +1 -1
  137. package/dist/actions/list-custom-fields.mjs +1 -0
  138. package/dist/actions/list-custom-fields.mjs.map +1 -1
  139. package/dist/actions/list-projects.cjs +1 -0
  140. package/dist/actions/list-projects.cjs.map +1 -1
  141. package/dist/actions/list-projects.d.cts +3 -4
  142. package/dist/actions/list-projects.d.cts.map +1 -1
  143. package/dist/actions/list-projects.d.mts +3 -4
  144. package/dist/actions/list-projects.d.mts.map +1 -1
  145. package/dist/actions/list-projects.mjs +1 -0
  146. package/dist/actions/list-projects.mjs.map +1 -1
  147. package/dist/actions/list-recurring-tasks.cjs +1 -0
  148. package/dist/actions/list-recurring-tasks.cjs.map +1 -1
  149. package/dist/actions/list-recurring-tasks.d.cts +3 -4
  150. package/dist/actions/list-recurring-tasks.d.cts.map +1 -1
  151. package/dist/actions/list-recurring-tasks.d.mts +3 -4
  152. package/dist/actions/list-recurring-tasks.d.mts.map +1 -1
  153. package/dist/actions/list-recurring-tasks.mjs +1 -0
  154. package/dist/actions/list-recurring-tasks.mjs.map +1 -1
  155. package/dist/actions/list-schedules.cjs +1 -0
  156. package/dist/actions/list-schedules.cjs.map +1 -1
  157. package/dist/actions/list-schedules.d.cts +3 -1
  158. package/dist/actions/list-schedules.d.cts.map +1 -1
  159. package/dist/actions/list-schedules.d.mts +3 -1
  160. package/dist/actions/list-schedules.d.mts.map +1 -1
  161. package/dist/actions/list-schedules.mjs +1 -0
  162. package/dist/actions/list-schedules.mjs.map +1 -1
  163. package/dist/actions/list-statuses.cjs +1 -0
  164. package/dist/actions/list-statuses.cjs.map +1 -1
  165. package/dist/actions/list-statuses.d.cts +3 -3
  166. package/dist/actions/list-statuses.d.cts.map +1 -1
  167. package/dist/actions/list-statuses.d.mts +3 -3
  168. package/dist/actions/list-statuses.d.mts.map +1 -1
  169. package/dist/actions/list-statuses.mjs +1 -0
  170. package/dist/actions/list-statuses.mjs.map +1 -1
  171. package/dist/actions/list-tasks.cjs +1 -0
  172. package/dist/actions/list-tasks.cjs.map +1 -1
  173. package/dist/actions/list-tasks.d.cts +3 -10
  174. package/dist/actions/list-tasks.d.cts.map +1 -1
  175. package/dist/actions/list-tasks.d.mts +3 -10
  176. package/dist/actions/list-tasks.d.mts.map +1 -1
  177. package/dist/actions/list-tasks.mjs +1 -0
  178. package/dist/actions/list-tasks.mjs.map +1 -1
  179. package/dist/actions/list-users.cjs +1 -0
  180. package/dist/actions/list-users.cjs.map +1 -1
  181. package/dist/actions/list-users.d.cts +3 -5
  182. package/dist/actions/list-users.d.cts.map +1 -1
  183. package/dist/actions/list-users.d.mts +3 -5
  184. package/dist/actions/list-users.d.mts.map +1 -1
  185. package/dist/actions/list-users.mjs +1 -0
  186. package/dist/actions/list-users.mjs.map +1 -1
  187. package/dist/actions/list-workspaces.cjs +1 -0
  188. package/dist/actions/list-workspaces.cjs.map +1 -1
  189. package/dist/actions/list-workspaces.d.cts +3 -4
  190. package/dist/actions/list-workspaces.d.cts.map +1 -1
  191. package/dist/actions/list-workspaces.d.mts +3 -4
  192. package/dist/actions/list-workspaces.d.mts.map +1 -1
  193. package/dist/actions/list-workspaces.mjs +1 -0
  194. package/dist/actions/list-workspaces.mjs.map +1 -1
  195. package/dist/actions/move-task.cjs +1 -0
  196. package/dist/actions/move-task.cjs.map +1 -1
  197. package/dist/actions/move-task.d.cts +3 -5
  198. package/dist/actions/move-task.d.cts.map +1 -1
  199. package/dist/actions/move-task.d.mts +3 -5
  200. package/dist/actions/move-task.d.mts.map +1 -1
  201. package/dist/actions/move-task.mjs +1 -0
  202. package/dist/actions/move-task.mjs.map +1 -1
  203. package/dist/actions/unassign-task.cjs +1 -0
  204. package/dist/actions/unassign-task.cjs.map +1 -1
  205. package/dist/actions/unassign-task.d.cts +3 -3
  206. package/dist/actions/unassign-task.d.cts.map +1 -1
  207. package/dist/actions/unassign-task.d.mts +3 -3
  208. package/dist/actions/unassign-task.d.mts.map +1 -1
  209. package/dist/actions/unassign-task.mjs +1 -0
  210. package/dist/actions/unassign-task.mjs.map +1 -1
  211. package/dist/actions/update-task.cjs +1 -0
  212. package/dist/actions/update-task.cjs.map +1 -1
  213. package/dist/actions/update-task.d.cts +4 -18
  214. package/dist/actions/update-task.d.cts.map +1 -1
  215. package/dist/actions/update-task.d.mts +4 -18
  216. package/dist/actions/update-task.d.mts.map +1 -1
  217. package/dist/actions/update-task.mjs +1 -0
  218. package/dist/actions/update-task.mjs.map +1 -1
  219. package/dist/app.cjs +5 -2
  220. package/dist/app.cjs.map +1 -1
  221. package/dist/app.d.cts +7 -1
  222. package/dist/app.d.cts.map +1 -1
  223. package/dist/app.d.mts +7 -1
  224. package/dist/app.d.mts.map +1 -1
  225. package/dist/app.mjs +3 -2
  226. package/dist/app.mjs.map +1 -1
  227. package/dist/index.d.cts +1 -1
  228. package/dist/index.d.mts +1 -1
  229. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["motion","executeMotionTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["motion","executeMotionTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof motion.credential> {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof motion.credential> {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-custom-field-to-project.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-project.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CAC9H,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-custom-field-to-project.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionAddCustomFieldToProjectInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject: AppAction<\n typeof MotionAddCustomFieldToProjectInput,\n typeof MotionAddCustomFieldToProjectOutput,\n typeof motion.credential\n> = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CAC9H,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,gCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-custom-field-to-project.d.ts
@@ -5,9 +7,9 @@ declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
5
7
  value: z.ZodObject<{
6
8
  type: z.ZodEnum<{
7
9
  number: "number";
10
+ date: "date";
8
11
  text: "text";
9
12
  url: "url";
10
- date: "date";
11
13
  person: "person";
12
14
  multiPerson: "multiPerson";
13
15
  phone: "phone";
@@ -26,14 +28,7 @@ declare const MotionAddCustomFieldToProjectOutput: z.ZodObject<{
26
28
  type: z.ZodNullable<z.ZodString>;
27
29
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
28
30
  }, z.core.$loose>;
29
- declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- value: {
31
- type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
32
- value: string | number | boolean;
33
- };
34
- projectId: string;
35
- customFieldInstanceId: string;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ declare const motionAddCustomFieldToProject: AppAction<typeof MotionAddCustomFieldToProjectInput, typeof MotionAddCustomFieldToProjectOutput, typeof motion.credential>;
37
32
  //#endregion
38
33
  export { motionAddCustomFieldToProject };
39
34
  //# sourceMappingURL=add-custom-field-to-project.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-project.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"add-custom-field-to-project.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-custom-field-to-project.d.ts
@@ -5,9 +7,9 @@ declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
5
7
  value: z.ZodObject<{
6
8
  type: z.ZodEnum<{
7
9
  number: "number";
10
+ date: "date";
8
11
  text: "text";
9
12
  url: "url";
10
- date: "date";
11
13
  person: "person";
12
14
  multiPerson: "multiPerson";
13
15
  phone: "phone";
@@ -26,14 +28,7 @@ declare const MotionAddCustomFieldToProjectOutput: z.ZodObject<{
26
28
  type: z.ZodNullable<z.ZodString>;
27
29
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
28
30
  }, z.core.$loose>;
29
- declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- value: {
31
- type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
32
- value: string | number | boolean;
33
- };
34
- projectId: string;
35
- customFieldInstanceId: string;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ declare const motionAddCustomFieldToProject: AppAction<typeof MotionAddCustomFieldToProjectInput, typeof MotionAddCustomFieldToProjectOutput, typeof motion.credential>;
37
32
  //#endregion
38
33
  export { motionAddCustomFieldToProject };
39
34
  //# sourceMappingURL=add-custom-field-to-project.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-project.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"add-custom-field-to-project.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const motionAddCustomFieldToProject = action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT", {
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-project.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;AAiBA,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EAC9H,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,uEAUH;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-custom-field-to-project.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionAddCustomFieldToProjectInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject: AppAction<\n typeof MotionAddCustomFieldToProjectInput,\n typeof MotionAddCustomFieldToProjectOutput,\n typeof motion.credential\n> = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,gCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EAC9H,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,uEAcH;CACP,QAdiD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-custom-field-to-task.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-task.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CACxH,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-custom-field-to-task.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionAddCustomFieldToTaskInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask: AppAction<\n typeof MotionAddCustomFieldToTaskInput,\n typeof MotionAddCustomFieldToTaskOutput,\n typeof motion.credential\n> = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CACxH,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,6BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-custom-field-to-task.d.ts
@@ -5,9 +7,9 @@ declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
5
7
  value: z.ZodObject<{
6
8
  type: z.ZodEnum<{
7
9
  number: "number";
10
+ date: "date";
8
11
  text: "text";
9
12
  url: "url";
10
- date: "date";
11
13
  person: "person";
12
14
  multiPerson: "multiPerson";
13
15
  phone: "phone";
@@ -26,14 +28,7 @@ declare const MotionAddCustomFieldToTaskOutput: z.ZodObject<{
26
28
  type: z.ZodNullable<z.ZodString>;
27
29
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
28
30
  }, z.core.$loose>;
29
- declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- value: {
31
- type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
32
- value: string | number | boolean;
33
- };
34
- taskId: string;
35
- customFieldInstanceId: string;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ declare const motionAddCustomFieldToTask: AppAction<typeof MotionAddCustomFieldToTaskInput, typeof MotionAddCustomFieldToTaskOutput, typeof motion.credential>;
37
32
  //#endregion
38
33
  export { motionAddCustomFieldToTask };
39
34
  //# sourceMappingURL=add-custom-field-to-task.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-task.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"add-custom-field-to-task.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-custom-field-to-task.d.ts
@@ -5,9 +7,9 @@ declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
5
7
  value: z.ZodObject<{
6
8
  type: z.ZodEnum<{
7
9
  number: "number";
10
+ date: "date";
8
11
  text: "text";
9
12
  url: "url";
10
- date: "date";
11
13
  person: "person";
12
14
  multiPerson: "multiPerson";
13
15
  phone: "phone";
@@ -26,14 +28,7 @@ declare const MotionAddCustomFieldToTaskOutput: z.ZodObject<{
26
28
  type: z.ZodNullable<z.ZodString>;
27
29
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
28
30
  }, z.core.$loose>;
29
- declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- value: {
31
- type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
32
- value: string | number | boolean;
33
- };
34
- taskId: string;
35
- customFieldInstanceId: string;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ declare const motionAddCustomFieldToTask: AppAction<typeof MotionAddCustomFieldToTaskInput, typeof MotionAddCustomFieldToTaskOutput, typeof motion.credential>;
37
32
  //#endregion
38
33
  export { motionAddCustomFieldToTask };
39
34
  //# sourceMappingURL=add-custom-field-to-task.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-task.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"add-custom-field-to-task.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const motionAddCustomFieldToTask = action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
@@ -1 +1 @@
1
- {"version":3,"file":"add-custom-field-to-task.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACxH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-custom-field-to-task.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionAddCustomFieldToTaskInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask: AppAction<\n typeof MotionAddCustomFieldToTaskInput,\n typeof MotionAddCustomFieldToTaskOutput,\n typeof motion.credential\n> = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,6BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACxH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,oEAcH;CACP,QAd8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-comment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,SAAS,kCAAkC,SAAS;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionCreateCommentInput = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment: AppAction<\n typeof MotionCreateCommentInput,\n typeof MotionCreateCommentOutput,\n typeof motion.credential\n> = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,SAAS,kCAAkC,SAAS;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-comment.d.ts
@@ -16,10 +18,7 @@ declare const MotionCreateCommentOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>;
17
19
  createdAt: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- taskId: string;
21
- content?: string | undefined;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const motionCreateComment: AppAction<typeof MotionCreateCommentInput, typeof MotionCreateCommentOutput, typeof motion.credential>;
23
22
  //#endregion
24
23
  export { motionCreateComment };
25
24
  //# sourceMappingURL=create-comment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-comment.d.ts
@@ -16,10 +18,7 @@ declare const MotionCreateCommentOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>;
17
19
  createdAt: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- taskId: string;
21
- content?: string | undefined;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const motionCreateComment: AppAction<typeof MotionCreateCommentInput, typeof MotionCreateCommentOutput, typeof motion.credential>;
23
22
  //#endregion
24
23
  export { motionCreateComment };
25
24
  //# sourceMappingURL=create-comment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-comment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAS9D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACpE,SAAS,kCAAkC,SAAS;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionCreateCommentInput = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment: AppAction<\n typeof MotionCreateCommentInput,\n typeof MotionCreateCommentOutput,\n typeof motion.credential\n> = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAS9D,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACpE,SAAS,kCAAkC,SAAS;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-custom-field.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCustomFieldInput = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).passthrough().describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput = z.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAU;EAAe;EAAS;EAAU;EAAe;EAAU;EAAS;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACzS,UAAUA,IAAAA,EAAE,OAAO;EACnB,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC1B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;GACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionCreateCustomFieldInput = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).passthrough().describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput = z.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField: AppAction<\n typeof MotionCreateCustomFieldInput,\n typeof MotionCreateCustomFieldOutput,\n typeof motion.credential\n> = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAU;EAAe;EAAS;EAAU;EAAe;EAAU;EAAS;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACzS,UAAUA,IAAAA,EAAE,OAAO;EACnB,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC1B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;GACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-custom-field.d.ts
@@ -5,9 +7,9 @@ declare const MotionCreateCustomFieldInput: z.ZodObject<{
5
7
  name: z.ZodString;
6
8
  type: z.ZodEnum<{
7
9
  number: "number";
10
+ date: "date";
8
11
  text: "text";
9
12
  url: "url";
10
- date: "date";
11
13
  person: "person";
12
14
  multiPerson: "multiPerson";
13
15
  phone: "phone";
@@ -36,21 +38,7 @@ declare const MotionCreateCustomFieldOutput: z.ZodObject<{
36
38
  id: z.ZodNullable<z.ZodString>;
37
39
  type: z.ZodNullable<z.ZodString>;
38
40
  }, z.core.$loose>;
39
- declare const motionCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
40
- name: string;
41
- type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
42
- workspaceId: string;
43
- metadata?: {
44
- format?: "plain" | "formatted" | "percent" | undefined;
45
- toggle?: boolean | undefined;
46
- options?: {
47
- [x: string]: unknown;
48
- id: string;
49
- color: string;
50
- value: string;
51
- }[] | undefined;
52
- } | undefined;
53
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ declare const motionCreateCustomField: AppAction<typeof MotionCreateCustomFieldInput, typeof MotionCreateCustomFieldOutput, typeof motion.credential>;
54
42
  //#endregion
55
43
  export { motionCreateCustomField };
56
44
  //# sourceMappingURL=create-custom-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-custom-field.d.ts
@@ -5,9 +7,9 @@ declare const MotionCreateCustomFieldInput: z.ZodObject<{
5
7
  name: z.ZodString;
6
8
  type: z.ZodEnum<{
7
9
  number: "number";
10
+ date: "date";
8
11
  text: "text";
9
12
  url: "url";
10
- date: "date";
11
13
  person: "person";
12
14
  multiPerson: "multiPerson";
13
15
  phone: "phone";
@@ -36,21 +38,7 @@ declare const MotionCreateCustomFieldOutput: z.ZodObject<{
36
38
  id: z.ZodNullable<z.ZodString>;
37
39
  type: z.ZodNullable<z.ZodString>;
38
40
  }, z.core.$loose>;
39
- declare const motionCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
40
- name: string;
41
- type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
42
- workspaceId: string;
43
- metadata?: {
44
- format?: "plain" | "formatted" | "percent" | undefined;
45
- toggle?: boolean | undefined;
46
- options?: {
47
- [x: string]: unknown;
48
- id: string;
49
- color: string;
50
- value: string;
51
- }[] | undefined;
52
- } | undefined;
53
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ declare const motionCreateCustomField: AppAction<typeof MotionCreateCustomFieldInput, typeof MotionCreateCustomFieldOutput, typeof motion.credential>;
54
42
  //#endregion
55
43
  export { motionCreateCustomField };
56
44
  //# sourceMappingURL=create-custom-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const motionCreateCustomField = action("MOTION_CREATE_CUSTOM_FIELD", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCustomFieldInput = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).passthrough().describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput = z.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;AAuBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;EACzS,UAAU,EAAE,OAAO;GACnB,QAAQ,EAAE,KAAK;IAAC;IAAS;IAAa;GAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GACjH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;GACjH,SAAS,EAAE,MAAM,EAAE,OAAO;IAC1B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;IAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;IACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,CAAC,CAAC,CAAC,SAAS,+DAUH;CACP,QAV2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionCreateCustomFieldInput = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).passthrough().describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput = z.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField: AppAction<\n typeof MotionCreateCustomFieldInput,\n typeof MotionCreateCustomFieldOutput,\n typeof motion.credential\n> = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAyBA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;EACzS,UAAU,EAAE,OAAO;GACnB,QAAQ,EAAE,KAAK;IAAC;IAAS;IAAa;GAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GACjH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;GACjH,SAAS,EAAE,MAAM,EAAE,OAAO;IAC1B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;IAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;IACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,CAAC,CAAC,CAAC,SAAS,+DAcH;CACP,QAd2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-project.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateProjectInput = z.object({\n name: z.string().describe(\"The name of the project\"),\n labels: z.array(z.string()).describe(\"List of label names the project should have\").optional(),\n stages: z.array(z.object({\n dueDate: z.string().describe(\"ISO 8601 due date for this stage\").optional(),\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n variableInstances: z.array(z.object({\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n}).passthrough().describe(\"Variable instance for a project stage.\")).describe(\"Optional variable instances for this stage\").optional(),\n}).passthrough().describe(\"Stage configuration for a project.\")).describe(\"Array of stage objects for the project. Required when projectDefinitionId is provided.\").optional(),\n dueDate: z.string().describe(\"ISO 8601 due date for the project\").optional(),\n priority: z.enum([\"ASAP\", \"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Priority levels for Motion projects.\").optional(),\n description: z.string().describe(\"The description of the project. HTML input accepted.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID to which the project belongs\"),\n projectDefinitionId: z.string().describe(\"Template ID for the project. When provided, must include stages array.\").optional(),\n}).describe(\"Request schema for creating a new Motion project.\");\nexport const MotionCreateProjectOutput = z.object({\n id: z.string().describe(\"The ID of the created project\").nullable(),\n name: z.string().describe(\"The name of the project\").nullable(),\n type: z.string().describe(\"The type of project\").nullable().optional(),\n dueDate: z.string().describe(\"The due date of the project\").nullable().optional(),\n statusId: z.string().describe(\"The ID of the current status\").nullable(),\n createdTime: z.string().describe(\"When the project was created\").nullable().optional(),\n description: z.string().describe(\"The HTML contents of the description\").nullable().optional(),\n workspaceId: z.string().describe(\"The ID of the workspace\").nullable(),\n priorityLevel: z.string().describe(\"The priority level of the project\").nullable().optional(),\n}).passthrough().describe(\"Response schema after creating a Motion project.\");\n\nexport const motionCreateProject = action(\"MOTION_CREATE_PROJECT\", {\n slug: \"motion-create-project\",\n name: \"Create Project\",\n description: \"Tool to create a new project in Motion. Use when you need to create a project within a specific workspace. Projects can have optional due dates, descriptions (HTML supported), labels, and priority levels.\",\n input: MotionCreateProjectInput,\n output: MotionCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC1E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACvE,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACpC,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC3K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAU;CAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACrE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { motion } from \"../app\";\n\nexport const MotionCreateProjectInput = z.object({\n name: z.string().describe(\"The name of the project\"),\n labels: z.array(z.string()).describe(\"List of label names the project should have\").optional(),\n stages: z.array(z.object({\n dueDate: z.string().describe(\"ISO 8601 due date for this stage\").optional(),\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n variableInstances: z.array(z.object({\n stageDefinitionId: z.string().describe(\"The ID of the stage definition\"),\n}).passthrough().describe(\"Variable instance for a project stage.\")).describe(\"Optional variable instances for this stage\").optional(),\n}).passthrough().describe(\"Stage configuration for a project.\")).describe(\"Array of stage objects for the project. Required when projectDefinitionId is provided.\").optional(),\n dueDate: z.string().describe(\"ISO 8601 due date for the project\").optional(),\n priority: z.enum([\"ASAP\", \"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Priority levels for Motion projects.\").optional(),\n description: z.string().describe(\"The description of the project. HTML input accepted.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID to which the project belongs\"),\n projectDefinitionId: z.string().describe(\"Template ID for the project. When provided, must include stages array.\").optional(),\n}).describe(\"Request schema for creating a new Motion project.\");\nexport const MotionCreateProjectOutput = z.object({\n id: z.string().describe(\"The ID of the created project\").nullable(),\n name: z.string().describe(\"The name of the project\").nullable(),\n type: z.string().describe(\"The type of project\").nullable().optional(),\n dueDate: z.string().describe(\"The due date of the project\").nullable().optional(),\n statusId: z.string().describe(\"The ID of the current status\").nullable(),\n createdTime: z.string().describe(\"When the project was created\").nullable().optional(),\n description: z.string().describe(\"The HTML contents of the description\").nullable().optional(),\n workspaceId: z.string().describe(\"The ID of the workspace\").nullable(),\n priorityLevel: z.string().describe(\"The priority level of the project\").nullable().optional(),\n}).passthrough().describe(\"Response schema after creating a Motion project.\");\n\nexport const motionCreateProject: AppAction<\n typeof MotionCreateProjectInput,\n typeof MotionCreateProjectOutput,\n typeof motion.credential\n> = action(\"MOTION_CREATE_PROJECT\", {\n slug: \"motion-create-project\",\n name: \"Create Project\",\n description: \"Tool to create a new project in Motion. Use when you need to create a project within a specific workspace. Projects can have optional due dates, descriptions (HTML supported), labels, and priority levels.\",\n input: MotionCreateProjectInput,\n output: MotionCreateProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC1E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACvE,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACpC,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC3K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAU;CAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACrE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { motion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-project.d.ts
@@ -13,9 +15,9 @@ declare const MotionCreateProjectInput: z.ZodObject<{
13
15
  }, z.core.$loose>>>;
14
16
  dueDate: z.ZodOptional<z.ZodString>;
15
17
  priority: z.ZodOptional<z.ZodEnum<{
16
- ASAP: "ASAP";
17
18
  HIGH: "HIGH";
18
19
  MEDIUM: "MEDIUM";
20
+ ASAP: "ASAP";
19
21
  LOW: "LOW";
20
22
  }>>;
21
23
  description: z.ZodOptional<z.ZodString>;
@@ -33,24 +35,7 @@ declare const MotionCreateProjectOutput: z.ZodObject<{
33
35
  workspaceId: z.ZodNullable<z.ZodString>;
34
36
  priorityLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  }, z.core.$loose>;
36
- declare const motionCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- name: string;
38
- workspaceId: string;
39
- labels?: string[] | undefined;
40
- stages?: {
41
- [x: string]: unknown;
42
- stageDefinitionId: string;
43
- dueDate?: string | undefined;
44
- variableInstances?: {
45
- [x: string]: unknown;
46
- stageDefinitionId: string;
47
- }[] | undefined;
48
- }[] | undefined;
49
- dueDate?: string | undefined;
50
- priority?: "ASAP" | "HIGH" | "MEDIUM" | "LOW" | undefined;
51
- description?: string | undefined;
52
- projectDefinitionId?: string | undefined;
53
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const motionCreateProject: AppAction<typeof MotionCreateProjectInput, typeof MotionCreateProjectOutput, typeof motion.credential>;
54
39
  //#endregion
55
40
  export { motionCreateProject };
56
41
  //# sourceMappingURL=create-project.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-project.d.cts","names":[],"sources":["../../src/actions/create-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-project.d.cts","names":[],"sources":["../../src/actions/create-project.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}