@keystrokehq/motion 0.1.0 → 0.1.2

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 (213) 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 -1
  4. package/dist/actions/add-custom-field-to-project.cjs.map +1 -1
  5. package/dist/actions/add-custom-field-to-project.d.cts +33 -3
  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 +33 -3
  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 -1
  10. package/dist/actions/add-custom-field-to-project.mjs.map +1 -1
  11. package/dist/actions/add-custom-field-to-task.cjs +1 -1
  12. package/dist/actions/add-custom-field-to-task.cjs.map +1 -1
  13. package/dist/actions/add-custom-field-to-task.d.cts +33 -3
  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 +33 -3
  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 -1
  18. package/dist/actions/add-custom-field-to-task.mjs.map +1 -1
  19. package/dist/actions/create-comment.cjs +4 -4
  20. package/dist/actions/create-comment.cjs.map +1 -1
  21. package/dist/actions/create-comment.d.cts +19 -3
  22. package/dist/actions/create-comment.d.cts.map +1 -1
  23. package/dist/actions/create-comment.d.mts +19 -3
  24. package/dist/actions/create-comment.d.mts.map +1 -1
  25. package/dist/actions/create-comment.mjs +4 -4
  26. package/dist/actions/create-comment.mjs.map +1 -1
  27. package/dist/actions/create-custom-field.cjs +2 -2
  28. package/dist/actions/create-custom-field.cjs.map +1 -1
  29. package/dist/actions/create-custom-field.d.cts +49 -3
  30. package/dist/actions/create-custom-field.d.cts.map +1 -1
  31. package/dist/actions/create-custom-field.d.mts +49 -3
  32. package/dist/actions/create-custom-field.d.mts.map +1 -1
  33. package/dist/actions/create-custom-field.mjs +2 -2
  34. package/dist/actions/create-custom-field.mjs.map +1 -1
  35. package/dist/actions/create-project.cjs +4 -4
  36. package/dist/actions/create-project.cjs.map +1 -1
  37. package/dist/actions/create-project.d.cts +48 -3
  38. package/dist/actions/create-project.d.cts.map +1 -1
  39. package/dist/actions/create-project.d.mts +48 -3
  40. package/dist/actions/create-project.d.mts.map +1 -1
  41. package/dist/actions/create-project.mjs +4 -4
  42. package/dist/actions/create-project.mjs.map +1 -1
  43. package/dist/actions/create-recurring-task.cjs.map +1 -1
  44. package/dist/actions/create-recurring-task.d.cts +77 -3
  45. package/dist/actions/create-recurring-task.d.cts.map +1 -1
  46. package/dist/actions/create-recurring-task.d.mts +77 -3
  47. package/dist/actions/create-recurring-task.d.mts.map +1 -1
  48. package/dist/actions/create-recurring-task.mjs.map +1 -1
  49. package/dist/actions/create-task.cjs +17 -17
  50. package/dist/actions/create-task.cjs.map +1 -1
  51. package/dist/actions/create-task.d.cts +96 -3
  52. package/dist/actions/create-task.d.cts.map +1 -1
  53. package/dist/actions/create-task.d.mts +96 -3
  54. package/dist/actions/create-task.d.mts.map +1 -1
  55. package/dist/actions/create-task.mjs +17 -17
  56. package/dist/actions/create-task.mjs.map +1 -1
  57. package/dist/actions/delete-custom-field-from-project.cjs +1 -1
  58. package/dist/actions/delete-custom-field-from-project.cjs.map +1 -1
  59. package/dist/actions/delete-custom-field-from-project.d.cts +11 -3
  60. package/dist/actions/delete-custom-field-from-project.d.cts.map +1 -1
  61. package/dist/actions/delete-custom-field-from-project.d.mts +11 -3
  62. package/dist/actions/delete-custom-field-from-project.d.mts.map +1 -1
  63. package/dist/actions/delete-custom-field-from-project.mjs +1 -1
  64. package/dist/actions/delete-custom-field-from-project.mjs.map +1 -1
  65. package/dist/actions/delete-custom-field-from-task.cjs.map +1 -1
  66. package/dist/actions/delete-custom-field-from-task.d.cts +9 -3
  67. package/dist/actions/delete-custom-field-from-task.d.cts.map +1 -1
  68. package/dist/actions/delete-custom-field-from-task.d.mts +9 -3
  69. package/dist/actions/delete-custom-field-from-task.d.mts.map +1 -1
  70. package/dist/actions/delete-custom-field-from-task.mjs.map +1 -1
  71. package/dist/actions/delete-custom-field.cjs +1 -1
  72. package/dist/actions/delete-custom-field.cjs.map +1 -1
  73. package/dist/actions/delete-custom-field.d.cts +12 -3
  74. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  75. package/dist/actions/delete-custom-field.d.mts +12 -3
  76. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  77. package/dist/actions/delete-custom-field.mjs +1 -1
  78. package/dist/actions/delete-custom-field.mjs.map +1 -1
  79. package/dist/actions/delete-recurring-task.cjs +1 -1
  80. package/dist/actions/delete-recurring-task.cjs.map +1 -1
  81. package/dist/actions/delete-recurring-task.d.cts +9 -3
  82. package/dist/actions/delete-recurring-task.d.cts.map +1 -1
  83. package/dist/actions/delete-recurring-task.d.mts +9 -3
  84. package/dist/actions/delete-recurring-task.d.mts.map +1 -1
  85. package/dist/actions/delete-recurring-task.mjs +1 -1
  86. package/dist/actions/delete-recurring-task.mjs.map +1 -1
  87. package/dist/actions/delete-task.cjs +1 -1
  88. package/dist/actions/delete-task.cjs.map +1 -1
  89. package/dist/actions/delete-task.d.cts +9 -3
  90. package/dist/actions/delete-task.d.cts.map +1 -1
  91. package/dist/actions/delete-task.d.mts +9 -3
  92. package/dist/actions/delete-task.d.mts.map +1 -1
  93. package/dist/actions/delete-task.mjs +1 -1
  94. package/dist/actions/delete-task.mjs.map +1 -1
  95. package/dist/actions/get-my-user.cjs +3 -3
  96. package/dist/actions/get-my-user.cjs.map +1 -1
  97. package/dist/actions/get-my-user.d.cts +7 -3
  98. package/dist/actions/get-my-user.d.cts.map +1 -1
  99. package/dist/actions/get-my-user.d.mts +7 -3
  100. package/dist/actions/get-my-user.d.mts.map +1 -1
  101. package/dist/actions/get-my-user.mjs +3 -3
  102. package/dist/actions/get-my-user.mjs.map +1 -1
  103. package/dist/actions/get-project.cjs +3 -3
  104. package/dist/actions/get-project.cjs.map +1 -1
  105. package/dist/actions/get-project.d.cts +20 -3
  106. package/dist/actions/get-project.d.cts.map +1 -1
  107. package/dist/actions/get-project.d.mts +20 -3
  108. package/dist/actions/get-project.d.mts.map +1 -1
  109. package/dist/actions/get-project.mjs +3 -3
  110. package/dist/actions/get-project.mjs.map +1 -1
  111. package/dist/actions/get-task.cjs.map +1 -1
  112. package/dist/actions/get-task.d.cts +76 -3
  113. package/dist/actions/get-task.d.cts.map +1 -1
  114. package/dist/actions/get-task.d.mts +76 -3
  115. package/dist/actions/get-task.d.mts.map +1 -1
  116. package/dist/actions/get-task.mjs.map +1 -1
  117. package/dist/actions/list-comments.cjs +7 -7
  118. package/dist/actions/list-comments.cjs.map +1 -1
  119. package/dist/actions/list-comments.d.cts +25 -3
  120. package/dist/actions/list-comments.d.cts.map +1 -1
  121. package/dist/actions/list-comments.d.mts +25 -3
  122. package/dist/actions/list-comments.d.mts.map +1 -1
  123. package/dist/actions/list-comments.mjs +7 -7
  124. package/dist/actions/list-comments.mjs.map +1 -1
  125. package/dist/actions/list-custom-fields.cjs +5 -5
  126. package/dist/actions/list-custom-fields.cjs.map +1 -1
  127. package/dist/actions/list-custom-fields.d.cts +18 -3
  128. package/dist/actions/list-custom-fields.d.cts.map +1 -1
  129. package/dist/actions/list-custom-fields.d.mts +18 -3
  130. package/dist/actions/list-custom-fields.d.mts.map +1 -1
  131. package/dist/actions/list-custom-fields.mjs +5 -5
  132. package/dist/actions/list-custom-fields.mjs.map +1 -1
  133. package/dist/actions/list-projects.cjs +3 -3
  134. package/dist/actions/list-projects.cjs.map +1 -1
  135. package/dist/actions/list-projects.d.cts +28 -3
  136. package/dist/actions/list-projects.d.cts.map +1 -1
  137. package/dist/actions/list-projects.d.mts +28 -3
  138. package/dist/actions/list-projects.d.mts.map +1 -1
  139. package/dist/actions/list-projects.mjs +3 -3
  140. package/dist/actions/list-projects.mjs.map +1 -1
  141. package/dist/actions/list-recurring-tasks.cjs +17 -17
  142. package/dist/actions/list-recurring-tasks.cjs.map +1 -1
  143. package/dist/actions/list-recurring-tasks.d.cts +66 -3
  144. package/dist/actions/list-recurring-tasks.d.cts.map +1 -1
  145. package/dist/actions/list-recurring-tasks.d.mts +66 -3
  146. package/dist/actions/list-recurring-tasks.d.mts.map +1 -1
  147. package/dist/actions/list-recurring-tasks.mjs +17 -17
  148. package/dist/actions/list-recurring-tasks.mjs.map +1 -1
  149. package/dist/actions/list-schedules.cjs +5 -5
  150. package/dist/actions/list-schedules.cjs.map +1 -1
  151. package/dist/actions/list-schedules.d.cts +39 -3
  152. package/dist/actions/list-schedules.d.cts.map +1 -1
  153. package/dist/actions/list-schedules.d.mts +39 -3
  154. package/dist/actions/list-schedules.d.mts.map +1 -1
  155. package/dist/actions/list-schedules.mjs +5 -5
  156. package/dist/actions/list-schedules.mjs.map +1 -1
  157. package/dist/actions/list-statuses.cjs +3 -3
  158. package/dist/actions/list-statuses.cjs.map +1 -1
  159. package/dist/actions/list-statuses.d.cts +13 -3
  160. package/dist/actions/list-statuses.d.cts.map +1 -1
  161. package/dist/actions/list-statuses.d.mts +13 -3
  162. package/dist/actions/list-statuses.d.mts.map +1 -1
  163. package/dist/actions/list-statuses.mjs +3 -3
  164. package/dist/actions/list-statuses.mjs.map +1 -1
  165. package/dist/actions/list-tasks.cjs.map +1 -1
  166. package/dist/actions/list-tasks.d.cts +91 -3
  167. package/dist/actions/list-tasks.d.cts.map +1 -1
  168. package/dist/actions/list-tasks.d.mts +91 -3
  169. package/dist/actions/list-tasks.d.mts.map +1 -1
  170. package/dist/actions/list-tasks.mjs.map +1 -1
  171. package/dist/actions/list-users.cjs +2 -2
  172. package/dist/actions/list-users.cjs.map +1 -1
  173. package/dist/actions/list-users.d.cts +21 -3
  174. package/dist/actions/list-users.d.cts.map +1 -1
  175. package/dist/actions/list-users.d.mts +21 -3
  176. package/dist/actions/list-users.d.mts.map +1 -1
  177. package/dist/actions/list-users.mjs +2 -2
  178. package/dist/actions/list-users.mjs.map +1 -1
  179. package/dist/actions/list-workspaces.cjs +7 -7
  180. package/dist/actions/list-workspaces.cjs.map +1 -1
  181. package/dist/actions/list-workspaces.d.cts +28 -3
  182. package/dist/actions/list-workspaces.d.cts.map +1 -1
  183. package/dist/actions/list-workspaces.d.mts +28 -3
  184. package/dist/actions/list-workspaces.d.mts.map +1 -1
  185. package/dist/actions/list-workspaces.mjs +7 -7
  186. package/dist/actions/list-workspaces.mjs.map +1 -1
  187. package/dist/actions/move-task.cjs +16 -16
  188. package/dist/actions/move-task.cjs.map +1 -1
  189. package/dist/actions/move-task.d.cts +84 -3
  190. package/dist/actions/move-task.d.cts.map +1 -1
  191. package/dist/actions/move-task.d.mts +84 -3
  192. package/dist/actions/move-task.d.mts.map +1 -1
  193. package/dist/actions/move-task.mjs +16 -16
  194. package/dist/actions/move-task.mjs.map +1 -1
  195. package/dist/actions/unassign-task.cjs.map +1 -1
  196. package/dist/actions/unassign-task.d.cts +9 -3
  197. package/dist/actions/unassign-task.d.cts.map +1 -1
  198. package/dist/actions/unassign-task.d.mts +9 -3
  199. package/dist/actions/unassign-task.d.mts.map +1 -1
  200. package/dist/actions/unassign-task.mjs.map +1 -1
  201. package/dist/actions/update-task.cjs.map +1 -1
  202. package/dist/actions/update-task.d.cts +116 -3
  203. package/dist/actions/update-task.d.cts.map +1 -1
  204. package/dist/actions/update-task.d.mts +116 -3
  205. package/dist/actions/update-task.d.mts.map +1 -1
  206. package/dist/actions/update-task.mjs.map +1 -1
  207. package/dist/catalog.cjs +7 -1
  208. package/dist/catalog.cjs.map +1 -1
  209. package/dist/catalog.d.cts +8 -0
  210. package/dist/catalog.d.mts +8 -0
  211. package/dist/catalog.mjs +7 -1
  212. package/dist/catalog.mjs.map +1 -1
  213. package/package.json +2 -2
@@ -1,9 +1,97 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-tasks.d.ts
4
- declare const MotionListTasksInput: z.ZodTypeAny;
5
- declare const MotionListTasksOutput: z.ZodTypeAny;
6
- declare const motionListTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MotionListTasksInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ label: z.ZodOptional<z.ZodString>;
7
+ cursor: z.ZodOptional<z.ZodString>;
8
+ status: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ projectId: z.ZodOptional<z.ZodString>;
10
+ assigneeId: z.ZodOptional<z.ZodString>;
11
+ workspaceId: z.ZodOptional<z.ZodString>;
12
+ includeAllStatuses: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.core.$strip>;
14
+ declare const MotionListTasksOutput: z.ZodObject<{
15
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>>>;
19
+ tasks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ chunks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ isFixed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ scheduledEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ completedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ scheduledStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>>>;
30
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$strip>>>>;
33
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ isDefaultStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
36
+ isResolvedStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
+ }, z.core.$strip>>>;
38
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>>;
43
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ }, z.core.$strip>>>;
49
+ startOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ duration: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
51
+ priority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ assignees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, z.core.$strip>>>>;
57
+ completed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
58
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
59
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
63
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ }, z.core.$strip>>>>;
65
+ teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
67
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ isDefaultStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
69
+ isResolvedStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
70
+ }, z.core.$strip>>>>;
71
+ }, z.core.$strip>>>;
72
+ createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ updatedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ deadlineType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ scheduledEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ completedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ scheduledStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ schedulingIssue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
80
+ customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
81
+ lastInteractedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ parentRecurringTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ }, z.core.$strip>>>>;
84
+ }, z.core.$strip>;
85
+ declare const motionListTasks: import("@keystrokehq/action").WorkflowActionDefinition<{
86
+ name?: string | undefined;
87
+ label?: string | undefined;
88
+ cursor?: string | undefined;
89
+ status?: string[] | undefined;
90
+ projectId?: string | undefined;
91
+ assigneeId?: string | undefined;
92
+ workspaceId?: string | undefined;
93
+ includeAllStatuses?: boolean | undefined;
94
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
95
  //#endregion
8
96
  export { motionListTasks };
9
97
  //# sourceMappingURL=list-tasks.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-tasks.d.mts","names":[],"sources":["../../src/actions/list-tasks.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UASkC;AAAA,cA+E1D,qBAAA,EAAuB,CAAA,CAAE,UAGuC;AAAA,cAEhE,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-tasks.d.mts","names":[],"sources":["../../src/actions/list-tasks.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAwFpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-tasks.mjs","names":[],"sources":["../../src/actions/list-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListTasksInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Filter tasks containing this string in their name. Performs a case-insensitive substring match on task names.\").optional(),\n label: z.string().describe(\"Limit tasks returned by label. Filter tasks that have this specific label attached.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Use if a previous request returned a nextCursor value in the meta field to fetch the next page of results.\").optional(),\n status: z.array(z.string()).describe(\"Limit tasks by status array. Provide a list of status names to filter tasks with those specific statuses.\").optional(),\n projectId: z.string().describe(\"Limit tasks to a given project. Use the project's ID to filter tasks belonging to that project.\").optional(),\n assigneeId: z.string().describe(\"Limit tasks returned to a specific assignee. Use the assignee's user ID to filter tasks assigned to that person.\").optional(),\n workspaceId: z.string().describe(\"The workspace to get tasks from. Use the workspace ID to scope the task list to a specific workspace.\").optional(),\n includeAllStatuses: z.boolean().describe(\"Include tasks with all statuses. Set to true to include tasks with any status, or false/omit to only include tasks with active statuses.\").optional(),\n}).describe(\"Request model for listing tasks with optional filtering.\");\nconst MotionListTasks_TaskMetaSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"Number of tasks returned in this page.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. If null, there are no more pages.\").nullable().optional(),\n}).describe(\"Metadata for task list pagination.\");\nconst MotionListTasks_TaskChunkSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The chunk's unique ID.\").nullable().optional(),\n isFixed: z.boolean().describe(\"Whether this chunk has a fixed time that cannot be rescheduled.\").nullable().optional(),\n duration: z.number().int().describe(\"Duration of the chunk in minutes.\").nullable().optional(),\n scheduledEnd: z.string().describe(\"ISO 8601 datetime when this chunk is scheduled to end.\").nullable().optional(),\n completedTime: z.string().describe(\"ISO 8601 datetime when this chunk was completed. Null if not completed.\").nullable().optional(),\n scheduledStart: z.string().describe(\"ISO 8601 datetime when this chunk is scheduled to start.\").nullable().optional(),\n}).describe(\"A scheduled chunk/block of time for working on the task.\");\nconst MotionListTasks_TaskLabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the label.\").nullable().optional(),\n}).describe(\"Label attached to a task.\");\nconst MotionListTasks_TaskStatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the status.\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status.\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates the task is resolved/completed.\").nullable().optional(),\n}).describe(\"Status information for a task.\");\nconst MotionListTasks_TaskCreatorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The creator's user ID.\").nullable().optional(),\n name: z.string().describe(\"The creator's name.\").nullable().optional(),\n email: z.string().describe(\"The creator's email address.\").nullable().optional(),\n}).describe(\"Information about the user who created the task.\");\nconst MotionListTasks_TaskProjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The project ID.\").nullable().optional(),\n name: z.string().describe(\"The project name.\").nullable().optional(),\n workspaceId: z.string().describe(\"The workspace ID this project belongs to.\").nullable().optional(),\n}).describe(\"Project information for a task.\");\nconst MotionListTasks_TaskAssigneeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The assignee's user ID.\").nullable().optional(),\n name: z.string().describe(\"The assignee's name.\").nullable().optional(),\n email: z.string().describe(\"The assignee's email address.\").nullable().optional(),\n}).describe(\"Information about a user assigned to the task.\");\nconst MotionListTasks_WorkspaceLabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the label.\").nullable().optional(),\n}).describe(\"Label definition in a workspace.\");\nconst MotionListTasks_WorkspaceStatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the status.\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status.\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates resolved/completed.\").nullable().optional(),\n}).describe(\"Status definition in a workspace.\");\nconst MotionListTasks_TaskWorkspaceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The workspace ID.\").nullable().optional(),\n name: z.string().describe(\"The workspace name.\").nullable().optional(),\n type: z.string().describe(\"The workspace type.\").nullable().optional(),\n labels: z.array(MotionListTasks_WorkspaceLabelSchema).describe(\"Available labels in the workspace.\").nullable().optional(),\n teamId: z.string().describe(\"The team ID associated with the workspace.\").nullable().optional(),\n statuses: z.array(MotionListTasks_WorkspaceStatusSchema).describe(\"Available statuses in the workspace.\").nullable().optional(),\n}).describe(\"Workspace information for a task.\");\nconst MotionListTasks_TaskSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique task ID.\").nullable().optional(),\n name: z.string().describe(\"The task name.\").nullable().optional(),\n chunks: z.array(MotionListTasks_TaskChunkSchema).describe(\"List of scheduled time chunks for working on the task.\").nullable().optional(),\n labels: z.array(MotionListTasks_TaskLabelSchema).describe(\"List of labels attached to the task.\").nullable().optional(),\n status: MotionListTasks_TaskStatusSchema.nullable().optional(),\n creator: MotionListTasks_TaskCreatorSchema.nullable().optional(),\n dueDate: z.string().describe(\"ISO 8601 datetime when the task is due.\").nullable().optional(),\n project: MotionListTasks_TaskProjectSchema.nullable().optional(),\n startOn: z.string().describe(\"Date when the task should start being scheduled.\").nullable().optional(),\n duration: z.union([z.number().int(), z.string()]).nullable().optional(),\n priority: z.string().describe(\"Priority level of the task (e.g., 'ASAP', 'HIGH', 'MEDIUM', 'LOW').\").nullable().optional(),\n assignees: z.array(MotionListTasks_TaskAssigneeSchema).describe(\"List of users assigned to the task.\").nullable().optional(),\n completed: z.boolean().describe(\"Whether the task is completed.\").nullable().optional(),\n workspace: MotionListTasks_TaskWorkspaceSchema.nullable().optional(),\n createdTime: z.string().describe(\"ISO 8601 datetime when the task was created.\").nullable().optional(),\n description: z.string().describe(\"The task description.\").nullable().optional(),\n updatedTime: z.string().describe(\"ISO 8601 datetime when the task was last updated.\").nullable().optional(),\n deadlineType: z.string().describe(\"Type of deadline for the task (e.g., 'HARD', 'SOFT').\").nullable().optional(),\n scheduledEnd: z.string().describe(\"ISO 8601 datetime when the task is scheduled to end.\").nullable().optional(),\n completedTime: z.string().describe(\"ISO 8601 datetime when the task was completed. Null if not completed.\").nullable().optional(),\n scheduledStart: z.string().describe(\"ISO 8601 datetime when the task is scheduled to start.\").nullable().optional(),\n schedulingIssue: z.boolean().describe(\"Whether there is a scheduling issue with the task.\").nullable().optional(),\n customFieldValues: z.object({}).describe(\"Custom field values. Structure varies based on workspace custom field configuration.\").nullable().optional(),\n lastInteractedTime: z.string().describe(\"ISO 8601 datetime when the task was last interacted with.\").nullable().optional(),\n parentRecurringTaskId: z.string().describe(\"ID of the parent recurring task if this task is part of a recurring series.\").nullable().optional(),\n}).describe(\"Represents a single task with all its details.\");\nexport const MotionListTasksOutput: z.ZodTypeAny = z.object({\n meta: MotionListTasks_TaskMetaSchema.nullable().optional(),\n tasks: z.array(MotionListTasks_TaskSchema).describe(\"List of tasks matching the query filters.\").nullable().optional(),\n}).describe(\"Response containing the list of tasks and pagination metadata.\");\n\nexport const motionListTasks = action(\"MOTION_LIST_TASKS\", {\n slug: \"motion-list-tasks\",\n name: \"List Tasks\",\n description: \"Tool to get all tasks for a given query with optional filtering. Use when you need to retrieve tasks from Motion, optionally filtered by assignee, project, workspace, status, label, or name.\",\n input: MotionListTasksInput,\n output: MotionListTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACtK,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC3J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC7J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;AAChM,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,iCAA+C,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,S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AS,CAAC,CAAC,SAAS;CAChI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAM5D,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;EACzD,OAAO,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-tasks.mjs","names":[],"sources":["../../src/actions/list-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListTasksInput = z.object({\n name: z.string().describe(\"Filter tasks containing this string in their name. Performs a case-insensitive substring match on task names.\").optional(),\n label: z.string().describe(\"Limit tasks returned by label. Filter tasks that have this specific label attached.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Use if a previous request returned a nextCursor value in the meta field to fetch the next page of results.\").optional(),\n status: z.array(z.string()).describe(\"Limit tasks by status array. Provide a list of status names to filter tasks with those specific statuses.\").optional(),\n projectId: z.string().describe(\"Limit tasks to a given project. Use the project's ID to filter tasks belonging to that project.\").optional(),\n assigneeId: z.string().describe(\"Limit tasks returned to a specific assignee. Use the assignee's user ID to filter tasks assigned to that person.\").optional(),\n workspaceId: z.string().describe(\"The workspace to get tasks from. Use the workspace ID to scope the task list to a specific workspace.\").optional(),\n includeAllStatuses: z.boolean().describe(\"Include tasks with all statuses. Set to true to include tasks with any status, or false/omit to only include tasks with active statuses.\").optional(),\n}).describe(\"Request model for listing tasks with optional filtering.\");\nconst MotionListTasks_TaskMetaSchema = z.object({\n pageSize: z.number().int().describe(\"Number of tasks returned in this page.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. If null, there are no more pages.\").nullable().optional(),\n}).describe(\"Metadata for task list pagination.\");\nconst MotionListTasks_TaskChunkSchema = z.object({\n id: z.string().describe(\"The chunk's unique ID.\").nullable().optional(),\n isFixed: z.boolean().describe(\"Whether this chunk has a fixed time that cannot be rescheduled.\").nullable().optional(),\n duration: z.number().int().describe(\"Duration of the chunk in minutes.\").nullable().optional(),\n scheduledEnd: z.string().describe(\"ISO 8601 datetime when this chunk is scheduled to end.\").nullable().optional(),\n completedTime: z.string().describe(\"ISO 8601 datetime when this chunk was completed. Null if not completed.\").nullable().optional(),\n scheduledStart: z.string().describe(\"ISO 8601 datetime when this chunk is scheduled to start.\").nullable().optional(),\n}).describe(\"A scheduled chunk/block of time for working on the task.\");\nconst MotionListTasks_TaskLabelSchema = z.object({\n name: z.string().describe(\"The name of the label.\").nullable().optional(),\n}).describe(\"Label attached to a task.\");\nconst MotionListTasks_TaskStatusSchema = z.object({\n name: z.string().describe(\"The name of the status.\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status.\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates the task is resolved/completed.\").nullable().optional(),\n}).describe(\"Status information for a task.\");\nconst MotionListTasks_TaskCreatorSchema = z.object({\n id: z.string().describe(\"The creator's user ID.\").nullable().optional(),\n name: z.string().describe(\"The creator's name.\").nullable().optional(),\n email: z.string().describe(\"The creator's email address.\").nullable().optional(),\n}).describe(\"Information about the user who created the task.\");\nconst MotionListTasks_TaskProjectSchema = z.object({\n id: z.string().describe(\"The project ID.\").nullable().optional(),\n name: z.string().describe(\"The project name.\").nullable().optional(),\n workspaceId: z.string().describe(\"The workspace ID this project belongs to.\").nullable().optional(),\n}).describe(\"Project information for a task.\");\nconst MotionListTasks_TaskAssigneeSchema = z.object({\n id: z.string().describe(\"The assignee's user ID.\").nullable().optional(),\n name: z.string().describe(\"The assignee's name.\").nullable().optional(),\n email: z.string().describe(\"The assignee's email address.\").nullable().optional(),\n}).describe(\"Information about a user assigned to the task.\");\nconst MotionListTasks_WorkspaceLabelSchema = z.object({\n name: z.string().describe(\"The name of the label.\").nullable().optional(),\n}).describe(\"Label definition in a workspace.\");\nconst MotionListTasks_WorkspaceStatusSchema = z.object({\n name: z.string().describe(\"The name of the status.\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status.\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates resolved/completed.\").nullable().optional(),\n}).describe(\"Status definition in a workspace.\");\nconst MotionListTasks_TaskWorkspaceSchema = z.object({\n id: z.string().describe(\"The workspace ID.\").nullable().optional(),\n name: z.string().describe(\"The workspace name.\").nullable().optional(),\n type: z.string().describe(\"The workspace type.\").nullable().optional(),\n labels: z.array(MotionListTasks_WorkspaceLabelSchema).describe(\"Available labels in the workspace.\").nullable().optional(),\n teamId: z.string().describe(\"The team ID associated with the workspace.\").nullable().optional(),\n statuses: z.array(MotionListTasks_WorkspaceStatusSchema).describe(\"Available statuses in the workspace.\").nullable().optional(),\n}).describe(\"Workspace information for a task.\");\nconst MotionListTasks_TaskSchema = z.object({\n id: z.string().describe(\"The unique task ID.\").nullable().optional(),\n name: z.string().describe(\"The task name.\").nullable().optional(),\n chunks: z.array(MotionListTasks_TaskChunkSchema).describe(\"List of scheduled time chunks for working on the task.\").nullable().optional(),\n labels: z.array(MotionListTasks_TaskLabelSchema).describe(\"List of labels attached to the task.\").nullable().optional(),\n status: MotionListTasks_TaskStatusSchema.nullable().optional(),\n creator: MotionListTasks_TaskCreatorSchema.nullable().optional(),\n dueDate: z.string().describe(\"ISO 8601 datetime when the task is due.\").nullable().optional(),\n project: MotionListTasks_TaskProjectSchema.nullable().optional(),\n startOn: z.string().describe(\"Date when the task should start being scheduled.\").nullable().optional(),\n duration: z.union([z.number().int(), z.string()]).nullable().optional(),\n priority: z.string().describe(\"Priority level of the task (e.g., 'ASAP', 'HIGH', 'MEDIUM', 'LOW').\").nullable().optional(),\n assignees: z.array(MotionListTasks_TaskAssigneeSchema).describe(\"List of users assigned to the task.\").nullable().optional(),\n completed: z.boolean().describe(\"Whether the task is completed.\").nullable().optional(),\n workspace: MotionListTasks_TaskWorkspaceSchema.nullable().optional(),\n createdTime: z.string().describe(\"ISO 8601 datetime when the task was created.\").nullable().optional(),\n description: z.string().describe(\"The task description.\").nullable().optional(),\n updatedTime: z.string().describe(\"ISO 8601 datetime when the task was last updated.\").nullable().optional(),\n deadlineType: z.string().describe(\"Type of deadline for the task (e.g., 'HARD', 'SOFT').\").nullable().optional(),\n scheduledEnd: z.string().describe(\"ISO 8601 datetime when the task is scheduled to end.\").nullable().optional(),\n completedTime: z.string().describe(\"ISO 8601 datetime when the task was completed. Null if not completed.\").nullable().optional(),\n scheduledStart: z.string().describe(\"ISO 8601 datetime when the task is scheduled to start.\").nullable().optional(),\n schedulingIssue: z.boolean().describe(\"Whether there is a scheduling issue with the task.\").nullable().optional(),\n customFieldValues: z.object({}).describe(\"Custom field values. Structure varies based on workspace custom field configuration.\").nullable().optional(),\n lastInteractedTime: z.string().describe(\"ISO 8601 datetime when the task was last interacted with.\").nullable().optional(),\n parentRecurringTaskId: z.string().describe(\"ID of the parent recurring task if this task is part of a recurring series.\").nullable().optional(),\n}).describe(\"Represents a single task with all its details.\");\nexport const MotionListTasksOutput = z.object({\n meta: MotionListTasks_TaskMetaSchema.nullable().optional(),\n tasks: z.array(MotionListTasks_TaskSchema).describe(\"List of tasks matching the query filters.\").nullable().optional(),\n}).describe(\"Response containing the list of tasks and pagination metadata.\");\n\nexport const motionListTasks = action(\"MOTION_LIST_TASKS\", {\n slug: \"motion-list-tasks\",\n name: \"List Tasks\",\n description: \"Tool to get all tasks for a given query with optional filtering. Use when you need to retrieve tasks from Motion, optionally filtered by assignee, project, workspace, status, label, or name.\",\n input: MotionListTasksInput,\n output: MotionListTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACtK,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC3J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC7J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;AAChM,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,o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E,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAM5D,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmC,EAAE,OAAO;EAC5C,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;EACzD,OAAO,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -11,9 +11,9 @@ const MotionListUsers_MetaInfoSchema = zod.z.object({
11
11
  nextCursor: zod.z.string().describe("Cursor to use for fetching the next page of results. Pass this as the cursor parameter in the next request. If null, there are no more results.").nullable().optional()
12
12
  }).describe("Pagination metadata for the users list response.");
13
13
  const MotionListUsers_MotionUserSchema = zod.z.object({
14
- id: zod.z.string().describe("The user's unique identifier."),
14
+ id: zod.z.string().describe("The user's unique identifier.").nullable(),
15
15
  name: zod.z.string().describe("The user's display name.").nullable().optional(),
16
- email: zod.z.string().describe("The user's email address.")
16
+ email: zod.z.string().describe("The user's email address.").nullable()
17
17
  }).describe("A Motion user object.");
18
18
  const MotionListUsersOutput = zod.z.object({
19
19
  meta: MotionListUsers_MetaInfoSchema.nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListUsersInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Use if a previous request returned a cursor. Will page through results. Pass the nextCursor value from the previous response to get the next page.\").optional(),\n teamId: z.string().describe(\"The ID of the team to filter users by. Filters results to return only users in the specified team.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace to get users from. Filters results to return only users in the specified workspace.\").optional(),\n});\nconst MotionListUsers_MetaInfoSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"The number of users included in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. Pass this as the cursor parameter in the next request. If null, there are no more results.\").nullable().optional(),\n}).describe(\"Pagination metadata for the users list response.\");\nconst MotionListUsers_MotionUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The user's unique identifier.\"),\n name: z.string().describe(\"The user's display name.\").nullable().optional(),\n email: z.string().describe(\"The user's email address.\"),\n}).describe(\"A Motion user object.\");\nexport const MotionListUsersOutput: z.ZodTypeAny = z.object({\n meta: MotionListUsers_MetaInfoSchema.nullable().optional(),\n users: z.array(MotionListUsers_MotionUserSchema).default([]).describe(\"List of users with their details including id, name, and email.\").nullable().optional(),\n});\n\nexport const motionListUsers = action(\"MOTION_LIST_USERS\", {\n slug: \"motion-list-users\",\n name: \"List users\",\n description: \"Tool to get a list of users for a given workspace or team. Use when you need to retrieve user information from Motion. Supports pagination via cursor and filtering by workspaceId or teamId.\",\n input: MotionListUsersInput,\n output: MotionListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC3L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC3J,CAAC;AACD,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACxD,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;CACzD,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/J,CAAC;AAED,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListUsersInput = z.object({\n cursor: z.string().describe(\"Use if a previous request returned a cursor. Will page through results. Pass the nextCursor value from the previous response to get the next page.\").optional(),\n teamId: z.string().describe(\"The ID of the team to filter users by. Filters results to return only users in the specified team.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace to get users from. Filters results to return only users in the specified workspace.\").optional(),\n});\nconst MotionListUsers_MetaInfoSchema = z.object({\n pageSize: z.number().int().describe(\"The number of users included in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. Pass this as the cursor parameter in the next request. If null, there are no more results.\").nullable().optional(),\n}).describe(\"Pagination metadata for the users list response.\");\nconst MotionListUsers_MotionUserSchema = z.object({\n id: z.string().describe(\"The user's unique identifier.\").nullable(),\n name: z.string().describe(\"The user's display name.\").nullable().optional(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n}).describe(\"A Motion user object.\");\nexport const MotionListUsersOutput = z.object({\n meta: MotionListUsers_MetaInfoSchema.nullable().optional(),\n users: z.array(MotionListUsers_MotionUserSchema).default([]).describe(\"List of users with their details including id, name, and email.\").nullable().optional(),\n});\n\nexport const motionListUsers = action(\"MOTION_LIST_USERS\", {\n slug: \"motion-list-users\",\n name: \"List users\",\n description: \"Tool to get a list of users for a given workspace or team. Use when you need to retrieve user information from Motion. Supports pagination via cursor and filtering by workspaceId or teamId.\",\n input: MotionListUsersInput,\n output: MotionListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC3L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC3J,CAAC;AACD,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;CACzD,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/J,CAAC;AAED,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-users.d.ts
4
- declare const MotionListUsersInput: z.ZodTypeAny;
5
- declare const MotionListUsersOutput: z.ZodTypeAny;
6
- declare const motionListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MotionListUsersInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ teamId: z.ZodOptional<z.ZodString>;
7
+ workspaceId: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const MotionListUsersOutput: z.ZodObject<{
10
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
+ pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>>>;
14
+ users: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ email: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$strip>>>>>;
19
+ }, z.core.$strip>;
20
+ declare const motionListUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ cursor?: string | undefined;
22
+ teamId?: string | undefined;
23
+ workspaceId?: string | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { motionListUsers };
9
27
  //# sourceMappingURL=list-users.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAInC;AAAA,cAUW,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-users.d.ts
4
- declare const MotionListUsersInput: z.ZodTypeAny;
5
- declare const MotionListUsersOutput: z.ZodTypeAny;
6
- declare const motionListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MotionListUsersInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ teamId: z.ZodOptional<z.ZodString>;
7
+ workspaceId: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const MotionListUsersOutput: z.ZodObject<{
10
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
+ pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>>>;
14
+ users: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ email: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$strip>>>>>;
19
+ }, z.core.$strip>;
20
+ declare const motionListUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ cursor?: string | undefined;
22
+ teamId?: string | undefined;
23
+ workspaceId?: string | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { motionListUsers };
9
27
  //# sourceMappingURL=list-users.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAInC;AAAA,cAUW,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -11,9 +11,9 @@ const MotionListUsers_MetaInfoSchema = z.object({
11
11
  nextCursor: z.string().describe("Cursor to use for fetching the next page of results. Pass this as the cursor parameter in the next request. If null, there are no more results.").nullable().optional()
12
12
  }).describe("Pagination metadata for the users list response.");
13
13
  const MotionListUsers_MotionUserSchema = z.object({
14
- id: z.string().describe("The user's unique identifier."),
14
+ id: z.string().describe("The user's unique identifier.").nullable(),
15
15
  name: z.string().describe("The user's display name.").nullable().optional(),
16
- email: z.string().describe("The user's email address.")
16
+ email: z.string().describe("The user's email address.").nullable()
17
17
  }).describe("A Motion user object.");
18
18
  const motionListUsers = action("MOTION_LIST_USERS", {
19
19
  slug: "motion-list-users",
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListUsersInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Use if a previous request returned a cursor. Will page through results. Pass the nextCursor value from the previous response to get the next page.\").optional(),\n teamId: z.string().describe(\"The ID of the team to filter users by. Filters results to return only users in the specified team.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace to get users from. Filters results to return only users in the specified workspace.\").optional(),\n});\nconst MotionListUsers_MetaInfoSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"The number of users included in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. Pass this as the cursor parameter in the next request. If null, there are no more results.\").nullable().optional(),\n}).describe(\"Pagination metadata for the users list response.\");\nconst MotionListUsers_MotionUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The user's unique identifier.\"),\n name: z.string().describe(\"The user's display name.\").nullable().optional(),\n email: z.string().describe(\"The user's email address.\"),\n}).describe(\"A Motion user object.\");\nexport const MotionListUsersOutput: z.ZodTypeAny = z.object({\n meta: MotionListUsers_MetaInfoSchema.nullable().optional(),\n users: z.array(MotionListUsers_MotionUserSchema).default([]).describe(\"List of users with their details including id, name, and email.\").nullable().optional(),\n});\n\nexport const motionListUsers = action(\"MOTION_LIST_USERS\", {\n slug: \"motion-list-users\",\n name: \"List users\",\n description: \"Tool to get a list of users for a given workspace or team. Use when you need to retrieve user information from Motion. Supports pagination via cursor and filtering by workspaceId or teamId.\",\n input: MotionListUsersInput,\n output: MotionListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC3L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC3J,CAAC;AACD,MAAM,iCAA+C,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACxD,CAAC,CAAC,CAAC,SAAS,uBAAuB;AAMnC,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;EACzD,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListUsersInput = z.object({\n cursor: z.string().describe(\"Use if a previous request returned a cursor. Will page through results. Pass the nextCursor value from the previous response to get the next page.\").optional(),\n teamId: z.string().describe(\"The ID of the team to filter users by. Filters results to return only users in the specified team.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace to get users from. Filters results to return only users in the specified workspace.\").optional(),\n});\nconst MotionListUsers_MetaInfoSchema = z.object({\n pageSize: z.number().int().describe(\"The number of users included in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. Pass this as the cursor parameter in the next request. If null, there are no more results.\").nullable().optional(),\n}).describe(\"Pagination metadata for the users list response.\");\nconst MotionListUsers_MotionUserSchema = z.object({\n id: z.string().describe(\"The user's unique identifier.\").nullable(),\n name: z.string().describe(\"The user's display name.\").nullable().optional(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n}).describe(\"A Motion user object.\");\nexport const MotionListUsersOutput = z.object({\n meta: MotionListUsers_MetaInfoSchema.nullable().optional(),\n users: z.array(MotionListUsers_MotionUserSchema).default([]).describe(\"List of users with their details including id, name, and email.\").nullable().optional(),\n});\n\nexport const motionListUsers = action(\"MOTION_LIST_USERS\", {\n slug: \"motion-list-users\",\n name: \"List users\",\n description: \"Tool to get a list of users for a given workspace or team. Use when you need to retrieve user information from Motion. Supports pagination via cursor and filtering by workspaceId or teamId.\",\n input: MotionListUsersInput,\n output: MotionListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC3L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC3J,CAAC;AACD,MAAM,iCAAiC,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,uBAAuB;AAMnC,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmC,EAAE,OAAO;EAC5C,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;EACzD,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,CAOU;AACV,CAAC"}
@@ -9,16 +9,16 @@ const MotionListWorkspaces_MetaSchema = zod.z.object({
9
9
  pageSize: zod.z.number().int().describe("Number of workspace objects returned in the current response.").nullable().optional(),
10
10
  nextCursor: zod.z.string().describe("Cursor to use for fetching the next page of results. If null, there are no more pages.").nullable().optional()
11
11
  }).describe("Metadata for pagination.");
12
- const MotionListWorkspaces_LabelSchema = zod.z.object({ name: zod.z.string().describe("Name of the label.") }).describe("Represents a label within a workspace.");
12
+ const MotionListWorkspaces_LabelSchema = zod.z.object({ name: zod.z.string().describe("Name of the label.").nullable() }).describe("Represents a label within a workspace.");
13
13
  const MotionListWorkspaces_StatusSchema = zod.z.object({
14
- name: zod.z.string().describe("Name of the status."),
15
- isDefaultStatus: zod.z.boolean().describe("Indicates whether this is the default status for the workspace."),
16
- isResolvedStatus: zod.z.boolean().describe("Indicates whether this status represents a terminal/resolved state.")
14
+ name: zod.z.string().describe("Name of the status.").nullable(),
15
+ isDefaultStatus: zod.z.boolean().describe("Indicates whether this is the default status for the workspace.").nullable(),
16
+ isResolvedStatus: zod.z.boolean().describe("Indicates whether this status represents a terminal/resolved state.").nullable()
17
17
  }).describe("Represents a status within a workspace.");
18
18
  const MotionListWorkspaces_WorkspaceSchema = zod.z.object({
19
- id: zod.z.string().describe("Unique identifier of the workspace."),
20
- name: zod.z.string().describe("Display name of the workspace."),
21
- type: zod.z.string().describe("Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces."),
19
+ id: zod.z.string().describe("Unique identifier of the workspace.").nullable(),
20
+ name: zod.z.string().describe("Display name of the workspace.").nullable(),
21
+ type: zod.z.string().describe("Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces.").nullable(),
22
22
  labels: zod.z.array(MotionListWorkspaces_LabelSchema).describe("Array of labels available in this workspace."),
23
23
  teamId: zod.z.string().describe("Identifier of the team associated with this workspace. Null for individual workspaces.").nullable().optional(),
24
24
  taskStatuses: zod.z.array(MotionListWorkspaces_StatusSchema).describe("Array of statuses configured for this workspace.")
@@ -1 +1 @@
1
- {"version":3,"file":"list-workspaces.cjs","names":["z","action"],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListWorkspacesInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"Array of workspace IDs to retrieve specific workspaces. If provided, only returns workspaces matching these IDs. If not provided, returns all workspaces the user has access to.\").optional(),\n cursor: z.string().describe(\"Pagination cursor to retrieve the next page of results. Use the nextCursor value from the previous response's meta object to fetch more workspaces.\").optional(),\n}).describe(\"Request model for listing workspaces.\");\nconst MotionListWorkspaces_MetaSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"Number of workspace objects returned in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. If null, there are no more pages.\").nullable().optional(),\n}).describe(\"Metadata for pagination.\");\nconst MotionListWorkspaces_LabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label.\"),\n}).describe(\"Represents a label within a workspace.\");\nconst MotionListWorkspaces_StatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the status.\"),\n isDefaultStatus: z.boolean().describe(\"Indicates whether this is the default status for the workspace.\"),\n isResolvedStatus: z.boolean().describe(\"Indicates whether this status represents a terminal/resolved state.\"),\n}).describe(\"Represents a status within a workspace.\");\nconst MotionListWorkspaces_WorkspaceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the workspace.\"),\n name: z.string().describe(\"Display name of the workspace.\"),\n type: z.string().describe(\"Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces.\"),\n labels: z.array(MotionListWorkspaces_LabelSchema).describe(\"Array of labels available in this workspace.\"),\n teamId: z.string().describe(\"Identifier of the team associated with this workspace. Null for individual workspaces.\").nullable().optional(),\n taskStatuses: z.array(MotionListWorkspaces_StatusSchema).describe(\"Array of statuses configured for this workspace.\"),\n}).describe(\"Represents a workspace object.\");\nexport const MotionListWorkspacesOutput: z.ZodTypeAny = z.object({\n meta: MotionListWorkspaces_MetaSchema.nullable().optional(),\n workspaces: z.array(MotionListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects the user has access to.\"),\n}).describe(\"Response model for listing workspaces.\");\n\nexport const motionListWorkspaces = action(\"MOTION_LIST_WORKSPACES\", {\n slug: \"motion-list-workspaces\",\n name: \"List Workspaces\",\n description: \"Tool to retrieve all workspaces a user has access to. Use when you need to discover available workspaces, filter for specific workspace IDs, or paginate through workspace results. Returns workspace details including type, team, labels, and statuses.\",\n input: MotionListWorkspacesInput,\n output: MotionListWorkspacesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC/N,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;AAC9L,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,mCAAiDA,IAAAA,EAAE,OAAO,EAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,EAChD,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;CACvG,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE;AAC9G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC3H,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,8CAA8C;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,kDAAkD;AACtH,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAM,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD;AACzH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-workspaces.cjs","names":["z","action"],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListWorkspacesInput = z.object({\n ids: z.array(z.string()).describe(\"Array of workspace IDs to retrieve specific workspaces. If provided, only returns workspaces matching these IDs. If not provided, returns all workspaces the user has access to.\").optional(),\n cursor: z.string().describe(\"Pagination cursor to retrieve the next page of results. Use the nextCursor value from the previous response's meta object to fetch more workspaces.\").optional(),\n}).describe(\"Request model for listing workspaces.\");\nconst MotionListWorkspaces_MetaSchema = z.object({\n pageSize: z.number().int().describe(\"Number of workspace objects returned in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. If null, there are no more pages.\").nullable().optional(),\n}).describe(\"Metadata for pagination.\");\nconst MotionListWorkspaces_LabelSchema = z.object({\n name: z.string().describe(\"Name of the label.\").nullable(),\n}).describe(\"Represents a label within a workspace.\");\nconst MotionListWorkspaces_StatusSchema = z.object({\n name: z.string().describe(\"Name of the status.\").nullable(),\n isDefaultStatus: z.boolean().describe(\"Indicates whether this is the default status for the workspace.\").nullable(),\n isResolvedStatus: z.boolean().describe(\"Indicates whether this status represents a terminal/resolved state.\").nullable(),\n}).describe(\"Represents a status within a workspace.\");\nconst MotionListWorkspaces_WorkspaceSchema = z.object({\n id: z.string().describe(\"Unique identifier of the workspace.\").nullable(),\n name: z.string().describe(\"Display name of the workspace.\").nullable(),\n type: z.string().describe(\"Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces.\").nullable(),\n labels: z.array(MotionListWorkspaces_LabelSchema).describe(\"Array of labels available in this workspace.\"),\n teamId: z.string().describe(\"Identifier of the team associated with this workspace. Null for individual workspaces.\").nullable().optional(),\n taskStatuses: z.array(MotionListWorkspaces_StatusSchema).describe(\"Array of statuses configured for this workspace.\"),\n}).describe(\"Represents a workspace object.\");\nexport const MotionListWorkspacesOutput = z.object({\n meta: MotionListWorkspaces_MetaSchema.nullable().optional(),\n workspaces: z.array(MotionListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects the user has access to.\"),\n}).describe(\"Response model for listing workspaces.\");\n\nexport const motionListWorkspaces = action(\"MOTION_LIST_WORKSPACES\", {\n slug: \"motion-list-workspaces\",\n name: \"List Workspaces\",\n description: \"Tool to retrieve all workspaces a user has access to. Use when you need to discover available workspaces, filter for specific workspace IDs, or paginate through workspace results. Returns workspace details including type, team, labels, and statuses.\",\n input: MotionListWorksp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CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,8CAA8C;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,kDAAkD;AACtH,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAM,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD;AACzH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-workspaces.d.ts
4
- declare const MotionListWorkspacesInput: z.ZodTypeAny;
5
- declare const MotionListWorkspacesOutput: z.ZodTypeAny;
6
- declare const motionListWorkspaces: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MotionListWorkspacesInput: z.ZodObject<{
5
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const MotionListWorkspacesOutput: z.ZodObject<{
9
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strip>>>;
13
+ workspaces: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ name: z.ZodNullable<z.ZodString>;
16
+ type: z.ZodNullable<z.ZodString>;
17
+ labels: z.ZodArray<z.ZodObject<{
18
+ name: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ taskStatuses: z.ZodArray<z.ZodObject<{
22
+ name: z.ZodNullable<z.ZodString>;
23
+ isDefaultStatus: z.ZodNullable<z.ZodBoolean>;
24
+ isResolvedStatus: z.ZodNullable<z.ZodBoolean>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const motionListWorkspaces: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ ids?: string[] | undefined;
30
+ cursor?: string | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { motionListWorkspaces };
9
34
  //# sourceMappingURL=list-workspaces.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-workspaces.d.cts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGU;AAAA,cAqBvC,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-workspaces.d.cts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-workspaces.d.ts
4
- declare const MotionListWorkspacesInput: z.ZodTypeAny;
5
- declare const MotionListWorkspacesOutput: z.ZodTypeAny;
6
- declare const motionListWorkspaces: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MotionListWorkspacesInput: z.ZodObject<{
5
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const MotionListWorkspacesOutput: z.ZodObject<{
9
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strip>>>;
13
+ workspaces: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ name: z.ZodNullable<z.ZodString>;
16
+ type: z.ZodNullable<z.ZodString>;
17
+ labels: z.ZodArray<z.ZodObject<{
18
+ name: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ taskStatuses: z.ZodArray<z.ZodObject<{
22
+ name: z.ZodNullable<z.ZodString>;
23
+ isDefaultStatus: z.ZodNullable<z.ZodBoolean>;
24
+ isResolvedStatus: z.ZodNullable<z.ZodBoolean>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const motionListWorkspaces: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ ids?: string[] | undefined;
30
+ cursor?: string | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { motionListWorkspaces };
9
34
  //# sourceMappingURL=list-workspaces.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-workspaces.d.mts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGU;AAAA,cAqBvC,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-workspaces.d.mts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -9,16 +9,16 @@ const MotionListWorkspaces_MetaSchema = z.object({
9
9
  pageSize: z.number().int().describe("Number of workspace objects returned in the current response.").nullable().optional(),
10
10
  nextCursor: z.string().describe("Cursor to use for fetching the next page of results. If null, there are no more pages.").nullable().optional()
11
11
  }).describe("Metadata for pagination.");
12
- const MotionListWorkspaces_LabelSchema = z.object({ name: z.string().describe("Name of the label.") }).describe("Represents a label within a workspace.");
12
+ const MotionListWorkspaces_LabelSchema = z.object({ name: z.string().describe("Name of the label.").nullable() }).describe("Represents a label within a workspace.");
13
13
  const MotionListWorkspaces_StatusSchema = z.object({
14
- name: z.string().describe("Name of the status."),
15
- isDefaultStatus: z.boolean().describe("Indicates whether this is the default status for the workspace."),
16
- isResolvedStatus: z.boolean().describe("Indicates whether this status represents a terminal/resolved state.")
14
+ name: z.string().describe("Name of the status.").nullable(),
15
+ isDefaultStatus: z.boolean().describe("Indicates whether this is the default status for the workspace.").nullable(),
16
+ isResolvedStatus: z.boolean().describe("Indicates whether this status represents a terminal/resolved state.").nullable()
17
17
  }).describe("Represents a status within a workspace.");
18
18
  const MotionListWorkspaces_WorkspaceSchema = z.object({
19
- id: z.string().describe("Unique identifier of the workspace."),
20
- name: z.string().describe("Display name of the workspace."),
21
- type: z.string().describe("Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces."),
19
+ id: z.string().describe("Unique identifier of the workspace.").nullable(),
20
+ name: z.string().describe("Display name of the workspace.").nullable(),
21
+ type: z.string().describe("Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces.").nullable(),
22
22
  labels: z.array(MotionListWorkspaces_LabelSchema).describe("Array of labels available in this workspace."),
23
23
  teamId: z.string().describe("Identifier of the team associated with this workspace. Null for individual workspaces.").nullable().optional(),
24
24
  taskStatuses: z.array(MotionListWorkspaces_StatusSchema).describe("Array of statuses configured for this workspace.")
@@ -1 +1 @@
1
- {"version":3,"file":"list-workspaces.mjs","names":[],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListWorkspacesInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"Array of workspace IDs to retrieve specific workspaces. If provided, only returns workspaces matching these IDs. If not provided, returns all workspaces the user has access to.\").optional(),\n cursor: z.string().describe(\"Pagination cursor to retrieve the next page of results. Use the nextCursor value from the previous response's meta object to fetch more workspaces.\").optional(),\n}).describe(\"Request model for listing workspaces.\");\nconst MotionListWorkspaces_MetaSchema: z.ZodTypeAny = z.object({\n pageSize: z.number().int().describe(\"Number of workspace objects returned in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. If null, there are no more pages.\").nullable().optional(),\n}).describe(\"Metadata for pagination.\");\nconst MotionListWorkspaces_LabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label.\"),\n}).describe(\"Represents a label within a workspace.\");\nconst MotionListWorkspaces_StatusSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the status.\"),\n isDefaultStatus: z.boolean().describe(\"Indicates whether this is the default status for the workspace.\"),\n isResolvedStatus: z.boolean().describe(\"Indicates whether this status represents a terminal/resolved state.\"),\n}).describe(\"Represents a status within a workspace.\");\nconst MotionListWorkspaces_WorkspaceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the workspace.\"),\n name: z.string().describe(\"Display name of the workspace.\"),\n type: z.string().describe(\"Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces.\"),\n labels: z.array(MotionListWorkspaces_LabelSchema).describe(\"Array of labels available in this workspace.\"),\n teamId: z.string().describe(\"Identifier of the team associated with this workspace. Null for individual workspaces.\").nullable().optional(),\n taskStatuses: z.array(MotionListWorkspaces_StatusSchema).describe(\"Array of statuses configured for this workspace.\"),\n}).describe(\"Represents a workspace object.\");\nexport const MotionListWorkspacesOutput: z.ZodTypeAny = z.object({\n meta: MotionListWorkspaces_MetaSchema.nullable().optional(),\n workspaces: z.array(MotionListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects the user has access to.\"),\n}).describe(\"Response model for listing workspaces.\");\n\nexport const motionListWorkspaces = action(\"MOTION_LIST_WORKSPACES\", {\n slug: \"motion-list-workspaces\",\n name: \"List Workspaces\",\n description: \"Tool to retrieve all workspaces a user has access to. Use when you need to discover available workspaces, filter for specific workspace IDs, or paginate through workspace results. Returns workspace details including type, team, labels, and statuses.\",\n input: MotionListWorkspacesInput,\n output: MotionListWorkspacesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC/N,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;AAC9L,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,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names":[],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListWorkspacesInput = z.object({\n ids: z.array(z.string()).describe(\"Array of workspace IDs to retrieve specific workspaces. If provided, only returns workspaces matching these IDs. If not provided, returns all workspaces the user has access to.\").optional(),\n cursor: z.string().describe(\"Pagination cursor to retrieve the next page of results. Use the nextCursor value from the previous response's meta object to fetch more workspaces.\").optional(),\n}).describe(\"Request model for listing workspaces.\");\nconst MotionListWorkspaces_MetaSchema = z.object({\n pageSize: z.number().int().describe(\"Number of workspace objects returned in the current response.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results. If null, there are no more pages.\").nullable().optional(),\n}).describe(\"Metadata for pagination.\");\nconst MotionListWorkspaces_LabelSchema = z.object({\n name: z.string().describe(\"Name of the label.\").nullable(),\n}).describe(\"Represents a label within a workspace.\");\nconst MotionListWorkspaces_StatusSchema = z.object({\n name: z.string().describe(\"Name of the status.\").nullable(),\n isDefaultStatus: z.boolean().describe(\"Indicates whether this is the default status for the workspace.\").nullable(),\n isResolvedStatus: z.boolean().describe(\"Indicates whether this status represents a terminal/resolved state.\").nullable(),\n}).describe(\"Represents a status within a workspace.\");\nconst MotionListWorkspaces_WorkspaceSchema = z.object({\n id: z.string().describe(\"Unique identifier of the workspace.\").nullable(),\n name: z.string().describe(\"Display name of the workspace.\").nullable(),\n type: z.string().describe(\"Type of workspace, either 'team' for shared workspaces or 'individual' for personal workspaces.\").nullable(),\n labels: z.array(MotionListWorkspaces_LabelSchema).describe(\"Array of labels available in this workspace.\"),\n teamId: z.string().describe(\"Identifier of the team associated with this workspace. Null for individual workspaces.\").nullable().optional(),\n taskStatuses: z.array(MotionListWorkspaces_StatusSchema).describe(\"Array of statuses configured for this workspace.\"),\n}).describe(\"Represents a workspace object.\");\nexport const MotionListWorkspacesOutput = z.object({\n meta: MotionListWorkspaces_MetaSchema.nullable().optional(),\n workspaces: z.array(MotionListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects the user has access to.\"),\n}).describe(\"Response model for listing workspaces.\");\n\nexport const motionListWorkspaces = action(\"MOTION_LIST_WORKSPACES\", {\n slug: \"motion-list-workspaces\",\n name: \"List Workspaces\",\n description: \"Tool to retrieve all workspaces a user has access to. Use when you need to discover available workspaces, filter for specific workspace IDs, or paginate through workspace results. Returns workspace details including type, team, labels, and statuses.\",\n input: MotionListWorkspacesInput,\n output: MotionListWorkspacesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC/N,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;AAC9L,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,kCAAkC,EAAE,OAAO;CAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,mCAAmC,EAAE,OAAO,EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAClH,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACtI,QAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,8CAA8C;CACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAc,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,kDAAkD;AACtH,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAM5C,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,MAAM,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC1D,YAAY,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD;CACzH,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -7,45 +7,45 @@ const MotionMoveTaskInput = zod.z.object({
7
7
  workspaceId: zod.z.string().describe("The workspace ID to move the task to")
8
8
  }).describe("Request model for moving a task to a different workspace.");
9
9
  const MotionMoveTask_ChunkInfoSchema = zod.z.object({
10
- id: zod.z.string().describe("Chunk ID"),
10
+ id: zod.z.string().describe("Chunk ID").nullable(),
11
11
  isFixed: zod.z.boolean().describe("Indicates whether this chunk is fixed").nullable().optional(),
12
12
  duration: zod.z.union([zod.z.number().int(), zod.z.number()]).nullable().optional(),
13
13
  scheduledEnd: zod.z.string().describe("Scheduled end time of the chunk").nullable().optional(),
14
14
  completedTime: zod.z.string().describe("Completion time").nullable().optional(),
15
15
  scheduledStart: zod.z.string().describe("Scheduled start time of the chunk").nullable().optional()
16
16
  }).describe("Represents a scheduled chunk of a task.");
17
- const MotionMoveTask_LabelInfoSchema = zod.z.object({ name: zod.z.string().describe("Name of the label") }).describe("Represents a label in Motion.");
17
+ const MotionMoveTask_LabelInfoSchema = zod.z.object({ name: zod.z.string().describe("Name of the label").nullable() }).describe("Represents a label in Motion.");
18
18
  const MotionMoveTask_StatusInfoSchema = zod.z.object({
19
- name: zod.z.string().describe("Name of the status"),
20
- isDefaultStatus: zod.z.boolean().describe("Indicates whether this is the default status"),
21
- isResolvedStatus: zod.z.boolean().describe("Indicates whether this is a resolved status")
19
+ name: zod.z.string().describe("Name of the status").nullable(),
20
+ isDefaultStatus: zod.z.boolean().describe("Indicates whether this is the default status").nullable(),
21
+ isResolvedStatus: zod.z.boolean().describe("Indicates whether this is a resolved status").nullable()
22
22
  }).describe("Represents a status in Motion.");
23
23
  const MotionMoveTask_UserInfoSchema = zod.z.object({
24
- id: zod.z.string().describe("User ID"),
25
- name: zod.z.string().describe("User name"),
26
- email: zod.z.string().describe("User email")
24
+ id: zod.z.string().describe("User ID").nullable(),
25
+ name: zod.z.string().describe("User name").nullable(),
26
+ email: zod.z.string().describe("User email").nullable()
27
27
  }).describe("Represents a user in Motion.");
28
28
  const MotionMoveTask_ProjectInfoSchema = zod.z.object({
29
- id: zod.z.string().describe("Project ID"),
30
- name: zod.z.string().describe("Project name"),
29
+ id: zod.z.string().describe("Project ID").nullable(),
30
+ name: zod.z.string().describe("Project name").nullable(),
31
31
  status: MotionMoveTask_StatusInfoSchema.nullable().optional(),
32
32
  createdTime: zod.z.string().describe("Project creation time").nullable().optional(),
33
33
  description: zod.z.string().describe("Project description").nullable().optional(),
34
34
  updatedTime: zod.z.string().describe("Project last update time").nullable().optional(),
35
- workspaceId: zod.z.string().describe("Workspace ID the project belongs to"),
35
+ workspaceId: zod.z.string().describe("Workspace ID the project belongs to").nullable(),
36
36
  customFieldValues: zod.z.object({}).describe("Custom field values for the project").nullable().optional()
37
37
  }).describe("Represents a project in Motion.");
38
38
  const MotionMoveTask_WorkspaceInfoSchema = zod.z.object({
39
- id: zod.z.string().describe("Workspace ID"),
40
- name: zod.z.string().describe("Workspace name"),
41
- type: zod.z.string().describe("Workspace type"),
39
+ id: zod.z.string().describe("Workspace ID").nullable(),
40
+ name: zod.z.string().describe("Workspace name").nullable(),
41
+ type: zod.z.string().describe("Workspace type").nullable(),
42
42
  labels: zod.z.array(MotionMoveTask_LabelInfoSchema).describe("Workspace labels").nullable().optional(),
43
43
  teamId: zod.z.string().describe("Team ID the workspace belongs to").nullable().optional(),
44
44
  statuses: zod.z.array(MotionMoveTask_StatusInfoSchema).describe("Workspace statuses").nullable().optional()
45
45
  }).describe("Represents a workspace in Motion.");
46
46
  const MotionMoveTaskOutput = zod.z.object({
47
- id: zod.z.string().describe("Task ID"),
48
- name: zod.z.string().describe("Task name"),
47
+ id: zod.z.string().describe("Task ID").nullable(),
48
+ name: zod.z.string().describe("Task name").nullable(),
49
49
  chunks: zod.z.array(MotionMoveTask_ChunkInfoSchema).describe("Scheduled chunks for the task").nullable().optional(),
50
50
  labels: zod.z.array(MotionMoveTask_LabelInfoSchema).describe("Task labels").nullable().optional(),
51
51
  status: MotionMoveTask_StatusInfoSchema.nullable().optional(),