@keystrokehq/motion 0.1.0 → 0.1.3
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-custom-field-to-project.cjs +2 -2
- package/dist/actions/add-custom-field-to-project.cjs.map +1 -1
- package/dist/actions/add-custom-field-to-project.d.cts +33 -3
- package/dist/actions/add-custom-field-to-project.d.cts.map +1 -1
- package/dist/actions/add-custom-field-to-project.d.mts +33 -3
- package/dist/actions/add-custom-field-to-project.d.mts.map +1 -1
- package/dist/actions/add-custom-field-to-project.mjs +2 -2
- package/dist/actions/add-custom-field-to-project.mjs.map +1 -1
- package/dist/actions/add-custom-field-to-task.cjs +2 -2
- package/dist/actions/add-custom-field-to-task.cjs.map +1 -1
- package/dist/actions/add-custom-field-to-task.d.cts +33 -3
- package/dist/actions/add-custom-field-to-task.d.cts.map +1 -1
- package/dist/actions/add-custom-field-to-task.d.mts +33 -3
- package/dist/actions/add-custom-field-to-task.d.mts.map +1 -1
- package/dist/actions/add-custom-field-to-task.mjs +2 -2
- package/dist/actions/add-custom-field-to-task.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +6 -6
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +19 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +19 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs +6 -6
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +4 -4
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +50 -3
- package/dist/actions/create-custom-field.d.cts.map +1 -1
- package/dist/actions/create-custom-field.d.mts +50 -3
- package/dist/actions/create-custom-field.d.mts.map +1 -1
- package/dist/actions/create-custom-field.mjs +4 -4
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-project.cjs +7 -7
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +50 -3
- package/dist/actions/create-project.d.cts.map +1 -1
- package/dist/actions/create-project.d.mts +50 -3
- package/dist/actions/create-project.d.mts.map +1 -1
- package/dist/actions/create-project.mjs +7 -7
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/create-recurring-task.cjs +7 -7
- package/dist/actions/create-recurring-task.cjs.map +1 -1
- package/dist/actions/create-recurring-task.d.cts +77 -3
- package/dist/actions/create-recurring-task.d.cts.map +1 -1
- package/dist/actions/create-recurring-task.d.mts +77 -3
- package/dist/actions/create-recurring-task.d.mts.map +1 -1
- package/dist/actions/create-recurring-task.mjs +7 -7
- package/dist/actions/create-recurring-task.mjs.map +1 -1
- package/dist/actions/create-task.cjs +24 -24
- package/dist/actions/create-task.cjs.map +1 -1
- package/dist/actions/create-task.d.cts +96 -3
- package/dist/actions/create-task.d.cts.map +1 -1
- package/dist/actions/create-task.d.mts +96 -3
- package/dist/actions/create-task.d.mts.map +1 -1
- package/dist/actions/create-task.mjs +24 -24
- package/dist/actions/create-task.mjs.map +1 -1
- package/dist/actions/delete-custom-field-from-project.cjs +1 -1
- package/dist/actions/delete-custom-field-from-project.cjs.map +1 -1
- package/dist/actions/delete-custom-field-from-project.d.cts +11 -3
- package/dist/actions/delete-custom-field-from-project.d.cts.map +1 -1
- package/dist/actions/delete-custom-field-from-project.d.mts +11 -3
- package/dist/actions/delete-custom-field-from-project.d.mts.map +1 -1
- package/dist/actions/delete-custom-field-from-project.mjs +1 -1
- package/dist/actions/delete-custom-field-from-project.mjs.map +1 -1
- package/dist/actions/delete-custom-field-from-task.cjs.map +1 -1
- package/dist/actions/delete-custom-field-from-task.d.cts +9 -3
- package/dist/actions/delete-custom-field-from-task.d.cts.map +1 -1
- package/dist/actions/delete-custom-field-from-task.d.mts +9 -3
- package/dist/actions/delete-custom-field-from-task.d.mts.map +1 -1
- package/dist/actions/delete-custom-field-from-task.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +2 -2
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +12 -3
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +12 -3
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs +2 -2
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-recurring-task.cjs +1 -1
- package/dist/actions/delete-recurring-task.cjs.map +1 -1
- package/dist/actions/delete-recurring-task.d.cts +9 -3
- package/dist/actions/delete-recurring-task.d.cts.map +1 -1
- package/dist/actions/delete-recurring-task.d.mts +9 -3
- package/dist/actions/delete-recurring-task.d.mts.map +1 -1
- package/dist/actions/delete-recurring-task.mjs +1 -1
- package/dist/actions/delete-recurring-task.mjs.map +1 -1
- package/dist/actions/delete-task.cjs +1 -1
- package/dist/actions/delete-task.cjs.map +1 -1
- package/dist/actions/delete-task.d.cts +9 -3
- package/dist/actions/delete-task.d.cts.map +1 -1
- package/dist/actions/delete-task.d.mts +9 -3
- package/dist/actions/delete-task.d.mts.map +1 -1
- package/dist/actions/delete-task.mjs +1 -1
- package/dist/actions/delete-task.mjs.map +1 -1
- package/dist/actions/get-my-user.cjs +4 -4
- package/dist/actions/get-my-user.cjs.map +1 -1
- package/dist/actions/get-my-user.d.cts +7 -3
- package/dist/actions/get-my-user.d.cts.map +1 -1
- package/dist/actions/get-my-user.d.mts +7 -3
- package/dist/actions/get-my-user.d.mts.map +1 -1
- package/dist/actions/get-my-user.mjs +4 -4
- package/dist/actions/get-my-user.mjs.map +1 -1
- package/dist/actions/get-project.cjs +6 -6
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +20 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +20 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +6 -6
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-task.cjs +9 -9
- package/dist/actions/get-task.cjs.map +1 -1
- package/dist/actions/get-task.d.cts +76 -3
- package/dist/actions/get-task.d.cts.map +1 -1
- package/dist/actions/get-task.d.mts +76 -3
- package/dist/actions/get-task.d.mts.map +1 -1
- package/dist/actions/get-task.mjs +9 -9
- package/dist/actions/get-task.mjs.map +1 -1
- package/dist/actions/list-comments.cjs +11 -11
- package/dist/actions/list-comments.cjs.map +1 -1
- package/dist/actions/list-comments.d.cts +25 -3
- package/dist/actions/list-comments.d.cts.map +1 -1
- package/dist/actions/list-comments.d.mts +25 -3
- package/dist/actions/list-comments.d.mts.map +1 -1
- package/dist/actions/list-comments.mjs +11 -11
- package/dist/actions/list-comments.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +9 -9
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +18 -3
- package/dist/actions/list-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-custom-fields.d.mts +18 -3
- package/dist/actions/list-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-custom-fields.mjs +9 -9
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +8 -8
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +28 -3
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +28 -3
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +8 -8
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-recurring-tasks.cjs +26 -26
- package/dist/actions/list-recurring-tasks.cjs.map +1 -1
- package/dist/actions/list-recurring-tasks.d.cts +66 -3
- package/dist/actions/list-recurring-tasks.d.cts.map +1 -1
- package/dist/actions/list-recurring-tasks.d.mts +66 -3
- package/dist/actions/list-recurring-tasks.d.mts.map +1 -1
- package/dist/actions/list-recurring-tasks.mjs +26 -26
- package/dist/actions/list-recurring-tasks.mjs.map +1 -1
- package/dist/actions/list-schedules.cjs +9 -9
- package/dist/actions/list-schedules.cjs.map +1 -1
- package/dist/actions/list-schedules.d.cts +39 -3
- package/dist/actions/list-schedules.d.cts.map +1 -1
- package/dist/actions/list-schedules.d.mts +39 -3
- package/dist/actions/list-schedules.d.mts.map +1 -1
- package/dist/actions/list-schedules.mjs +9 -9
- package/dist/actions/list-schedules.mjs.map +1 -1
- package/dist/actions/list-statuses.cjs +5 -5
- package/dist/actions/list-statuses.cjs.map +1 -1
- package/dist/actions/list-statuses.d.cts +13 -3
- package/dist/actions/list-statuses.d.cts.map +1 -1
- package/dist/actions/list-statuses.d.mts +13 -3
- package/dist/actions/list-statuses.d.mts.map +1 -1
- package/dist/actions/list-statuses.mjs +5 -5
- package/dist/actions/list-statuses.mjs.map +1 -1
- package/dist/actions/list-tasks.cjs +13 -13
- package/dist/actions/list-tasks.cjs.map +1 -1
- package/dist/actions/list-tasks.d.cts +91 -3
- package/dist/actions/list-tasks.d.cts.map +1 -1
- package/dist/actions/list-tasks.d.mts +91 -3
- package/dist/actions/list-tasks.d.mts.map +1 -1
- package/dist/actions/list-tasks.mjs +13 -13
- package/dist/actions/list-tasks.mjs.map +1 -1
- package/dist/actions/list-users.cjs +5 -5
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +21 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +21 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +5 -5
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +11 -11
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +28 -3
- package/dist/actions/list-workspaces.d.cts.map +1 -1
- package/dist/actions/list-workspaces.d.mts +28 -3
- package/dist/actions/list-workspaces.d.mts.map +1 -1
- package/dist/actions/list-workspaces.mjs +11 -11
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/move-task.cjs +24 -24
- package/dist/actions/move-task.cjs.map +1 -1
- package/dist/actions/move-task.d.cts +84 -3
- package/dist/actions/move-task.d.cts.map +1 -1
- package/dist/actions/move-task.d.mts +84 -3
- package/dist/actions/move-task.d.mts.map +1 -1
- package/dist/actions/move-task.mjs +24 -24
- package/dist/actions/move-task.mjs.map +1 -1
- package/dist/actions/unassign-task.cjs +1 -1
- package/dist/actions/unassign-task.cjs.map +1 -1
- package/dist/actions/unassign-task.d.cts +9 -3
- package/dist/actions/unassign-task.d.cts.map +1 -1
- package/dist/actions/unassign-task.d.mts +9 -3
- package/dist/actions/unassign-task.d.mts.map +1 -1
- package/dist/actions/unassign-task.mjs +1 -1
- package/dist/actions/unassign-task.mjs.map +1 -1
- package/dist/actions/update-task.cjs +8 -8
- package/dist/actions/update-task.cjs.map +1 -1
- package/dist/actions/update-task.d.cts +116 -3
- package/dist/actions/update-task.d.cts.map +1 -1
- package/dist/actions/update-task.d.mts +116 -3
- package/dist/actions/update-task.d.mts.map +1 -1
- package/dist/actions/update-task.mjs +8 -8
- package/dist/actions/update-task.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,82 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-task.d.ts
|
|
4
|
-
declare const MotionGetTaskInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionGetTaskInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MotionGetTaskOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
chunks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
isFixed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
14
|
+
scheduledEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
completedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
scheduledStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
isDefaultStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
+
isResolvedStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
|
+
creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
dueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
updatedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
startOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>;
|
|
44
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
assignees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$loose>>>>;
|
|
50
|
+
completed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
51
|
+
workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
56
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>>>>;
|
|
58
|
+
teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
60
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
isDefaultStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
62
|
+
isResolvedStatus: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
63
|
+
}, z.core.$loose>>>>;
|
|
64
|
+
}, z.core.$loose>>>;
|
|
65
|
+
createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
updatedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
deadlineType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
scheduledEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
completedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
scheduledStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
schedulingIssue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
73
|
+
customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
+
lastInteractedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
parentRecurringTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
declare const motionGetTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
78
|
+
id: string;
|
|
79
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
80
|
//#endregion
|
|
8
81
|
export { motionGetTask };
|
|
9
82
|
//# sourceMappingURL=get-task.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-task.d.mts","names":[],"sources":["../../src/actions/get-task.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"get-task.d.mts","names":[],"sources":["../../src/actions/get-task.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;cA0ClB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BnB,aAAA,gCAAa,wBAAA"}
|
|
@@ -9,18 +9,18 @@ const MotionGetTask_ChunkObjectSchema = z.object({
|
|
|
9
9
|
scheduledEnd: z.string().describe("Scheduled end time (ISO 8601 datetime)").nullable().optional(),
|
|
10
10
|
completedTime: z.string().describe("Completion timestamp (ISO 8601 datetime)").nullable().optional(),
|
|
11
11
|
scheduledStart: z.string().describe("Scheduled start time (ISO 8601 datetime)").nullable().optional()
|
|
12
|
-
}).describe("Scheduling chunk object representing a time block for the task.");
|
|
13
|
-
const MotionGetTask_LabelObjectSchema = z.object({ name: z.string().describe("Label name").nullable().optional() }).describe("Label object for task categorization.");
|
|
12
|
+
}).passthrough().describe("Scheduling chunk object representing a time block for the task.");
|
|
13
|
+
const MotionGetTask_LabelObjectSchema = z.object({ name: z.string().describe("Label name").nullable().optional() }).passthrough().describe("Label object for task categorization.");
|
|
14
14
|
const MotionGetTask_StatusObjectSchema = z.object({
|
|
15
15
|
name: z.string().describe("Status name").nullable().optional(),
|
|
16
16
|
isDefaultStatus: z.boolean().describe("Whether this is the default status").nullable().optional(),
|
|
17
17
|
isResolvedStatus: z.boolean().describe("Whether this status indicates resolution").nullable().optional()
|
|
18
|
-
}).describe("Task status details.");
|
|
18
|
+
}).passthrough().describe("Task status details.");
|
|
19
19
|
const MotionGetTask_UserObjectSchema = z.object({
|
|
20
20
|
id: z.string().describe("User identifier").nullable().optional(),
|
|
21
21
|
name: z.string().describe("User name").nullable().optional(),
|
|
22
22
|
email: z.string().describe("User email address").nullable().optional()
|
|
23
|
-
}).describe("User object containing basic user information.");
|
|
23
|
+
}).passthrough().describe("User object containing basic user information.");
|
|
24
24
|
const MotionGetTask_ProjectObjectSchema = z.object({
|
|
25
25
|
id: z.string().describe("Project identifier").nullable().optional(),
|
|
26
26
|
name: z.string().describe("Project name").nullable().optional(),
|
|
@@ -29,8 +29,8 @@ const MotionGetTask_ProjectObjectSchema = z.object({
|
|
|
29
29
|
description: z.string().describe("Project description").nullable().optional(),
|
|
30
30
|
updatedTime: z.string().describe("Last update timestamp (ISO 8601 datetime)").nullable().optional(),
|
|
31
31
|
workspaceId: z.string().describe("Workspace ID").nullable().optional(),
|
|
32
|
-
customFieldValues: z.
|
|
33
|
-
}).describe("Project object containing project details.");
|
|
32
|
+
customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values for the project").nullable().optional()
|
|
33
|
+
}).passthrough().describe("Project object containing project details.");
|
|
34
34
|
const MotionGetTask_WorkspaceObjectSchema = z.object({
|
|
35
35
|
id: z.string().describe("Workspace identifier").nullable().optional(),
|
|
36
36
|
name: z.string().describe("Workspace name").nullable().optional(),
|
|
@@ -38,7 +38,7 @@ const MotionGetTask_WorkspaceObjectSchema = z.object({
|
|
|
38
38
|
labels: z.array(MotionGetTask_LabelObjectSchema).describe("Available labels in workspace").nullable().optional(),
|
|
39
39
|
teamId: z.string().describe("Team identifier").nullable().optional(),
|
|
40
40
|
statuses: z.array(MotionGetTask_StatusObjectSchema).describe("Available statuses in workspace").nullable().optional()
|
|
41
|
-
}).describe("Workspace object containing workspace details.");
|
|
41
|
+
}).passthrough().describe("Workspace object containing workspace details.");
|
|
42
42
|
const motionGetTask = action("MOTION_GET_TASK", {
|
|
43
43
|
slug: "motion-get-task",
|
|
44
44
|
name: "Get Task by ID",
|
|
@@ -71,10 +71,10 @@ const motionGetTask = action("MOTION_GET_TASK", {
|
|
|
71
71
|
completedTime: z.string().describe("When task was marked complete (ISO 8601 datetime)").nullable().optional(),
|
|
72
72
|
scheduledStart: z.string().describe("Motion's scheduled start time (ISO 8601 datetime)").nullable().optional(),
|
|
73
73
|
schedulingIssue: z.boolean().describe("True if Motion failed to schedule the task").nullable().optional(),
|
|
74
|
-
customFieldValues: z.
|
|
74
|
+
customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values for the task").nullable().optional(),
|
|
75
75
|
lastInteractedTime: z.string().describe("Most recent interaction timestamp (ISO 8601 datetime)").nullable().optional(),
|
|
76
76
|
parentRecurringTaskId: z.string().describe("Parent ID if this is a recurring task instance").nullable().optional()
|
|
77
|
-
}).describe("Response model for fetching a specific task.\nContains complete task details including scheduling, assignees, and custom fields.")
|
|
77
|
+
}).passthrough().describe("Response model for fetching a specific task.\nContains complete task details including scheduling, assignees, and custom fields.")
|
|
78
78
|
});
|
|
79
79
|
//#endregion
|
|
80
80
|
export { motionGetTask };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-task.mjs","names":[],"sources":["../../src/actions/get-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionGetTaskInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The id of the task to fetch\"),\n}).describe(\"Request model for fetching a specific task by ID.\");\nconst MotionGetTask_ChunkObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Chunk identifier\").nullable().optional(),\n isFixed: z.boolean().describe(\"Whether the chunk is fixed in time\").nullable().optional(),\n duration: z.union([z.number().int(), z.number()]).nullable().optional(),\n scheduledEnd: z.string().describe(\"Scheduled end time (ISO 8601 datetime)\").nullable().optional(),\n completedTime: z.string().describe(\"Completion timestamp (ISO 8601 datetime)\").nullable().optional(),\n scheduledStart: z.string().describe(\"Scheduled start time (ISO 8601 datetime)\").nullable().optional(),\n}).describe(\"Scheduling chunk object representing a time block for the task.\");\nconst MotionGetTask_LabelObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Label name\").nullable().optional(),\n}).describe(\"Label object for task categorization.\");\nconst MotionGetTask_StatusObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Status name\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates resolution\").nullable().optional(),\n}).describe(\"Task status details.\");\nconst MotionGetTask_UserObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User identifier\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).describe(\"User object containing basic user information.\");\nconst MotionGetTask_ProjectObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Project identifier\").nullable().optional(),\n name: z.string().describe(\"Project name\").nullable().optional(),\n status: z.string().describe(\"Project status\").nullable().optional(),\n createdTime: z.string().describe(\"Creation timestamp (ISO 8601 datetime)\").nullable().optional(),\n description: z.string().describe(\"Project description\").nullable().optional(),\n updatedTime: z.string().describe(\"Last update timestamp (ISO 8601 datetime)\").nullable().optional(),\n workspaceId: z.string().describe(\"Workspace ID\").nullable().optional(),\n customFieldValues: z.object({}).describe(\"Custom field values for the project\").nullable().optional(),\n}).describe(\"Project object containing project details.\");\nconst MotionGetTask_WorkspaceObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Workspace identifier\").nullable().optional(),\n name: z.string().describe(\"Workspace name\").nullable().optional(),\n type: z.string().describe(\"Workspace type\").nullable().optional(),\n labels: z.array(MotionGetTask_LabelObjectSchema).describe(\"Available labels in workspace\").nullable().optional(),\n teamId: z.string().describe(\"Team identifier\").nullable().optional(),\n statuses: z.array(MotionGetTask_StatusObjectSchema).describe(\"Available statuses in workspace\").nullable().optional(),\n}).describe(\"Workspace object containing workspace details.\");\nexport const MotionGetTaskOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Task identifier\").nullable().optional(),\n name: z.string().describe(\"Task title\").nullable().optional(),\n chunks: z.array(MotionGetTask_ChunkObjectSchema).describe(\"Scheduling chunks for the task\").nullable().optional(),\n labels: z.array(MotionGetTask_LabelObjectSchema).describe(\"Labels assigned to the task\").nullable().optional(),\n status: MotionGetTask_StatusObjectSchema.nullable().optional(),\n creator: MotionGetTask_UserObjectSchema.nullable().optional(),\n dueDate: z.string().describe(\"Task deadline (ISO 8601 datetime)\").nullable().optional(),\n project: MotionGetTask_ProjectObjectSchema.nullable().optional(),\n startOn: z.string().describe(\"Start date in YYYY-MM-DD format\").nullable().optional(),\n duration: z.union([z.string(), z.number().int(), z.number()]).nullable().optional(),\n priority: z.string().describe(\"Task priority: ASAP, HIGH, MEDIUM, or LOW\").nullable().optional(),\n assignees: z.array(MotionGetTask_UserObjectSchema).describe(\"Users assigned to the task\").nullable().optional(),\n completed: z.boolean().describe(\"Completion status\").nullable().optional(),\n workspace: MotionGetTask_WorkspaceObjectSchema.nullable().optional(),\n createdTime: z.string().describe(\"Creation timestamp (ISO 8601 datetime)\").nullable().optional(),\n description: z.string().describe(\"HTML-formatted task details\").nullable().optional(),\n updatedTime: z.string().describe(\"Last modification timestamp (ISO 8601 datetime)\").nullable().optional(),\n deadlineType: z.string().describe(\"Deadline type: HARD, SOFT (default), or NONE\").nullable().optional(),\n scheduledEnd: z.string().describe(\"Motion's scheduled end time (ISO 8601 datetime)\").nullable().optional(),\n completedTime: z.string().describe(\"When task was marked complete (ISO 8601 datetime)\").nullable().optional(),\n scheduledStart: z.string().describe(\"Motion's scheduled start time (ISO 8601 datetime)\").nullable().optional(),\n schedulingIssue: z.boolean().describe(\"True if Motion failed to schedule the task\").nullable().optional(),\n customFieldValues: z.object({}).describe(\"Custom field values for the task\").nullable().optional(),\n lastInteractedTime: z.string().describe(\"Most recent interaction timestamp (ISO 8601 datetime)\").nullable().optional(),\n parentRecurringTaskId: z.string().describe(\"Parent ID if this is a recurring task instance\").nullable().optional(),\n}).describe(\"Response model for fetching a specific task.\\nContains complete task details including scheduling, assignees, and custom fields.\");\n\nexport const motionGetTask = action(\"MOTION_GET_TASK\", {\n slug: \"motion-get-task\",\n name: \"Get Task by ID\",\n description: \"Tool to retrieve a task by its ID from Motion. Returns complete task details including title, description, due date, priority, assignees, scheduling information, and custom fields.\",\n input: MotionGetTaskInput,\n output: MotionGetTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO,EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,kCAAgD,EAAE,OAAO,EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SA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,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,kIAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-task.mjs","names":[],"sources":["../../src/actions/get-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionGetTaskInput = z.object({\n id: z.string().describe(\"The id of the task to fetch\"),\n}).describe(\"Request model for fetching a specific task by ID.\");\nconst MotionGetTask_ChunkObjectSchema = z.object({\n id: z.string().describe(\"Chunk identifier\").nullable().optional(),\n isFixed: z.boolean().describe(\"Whether the chunk is fixed in time\").nullable().optional(),\n duration: z.union([z.number().int(), z.number()]).nullable().optional(),\n scheduledEnd: z.string().describe(\"Scheduled end time (ISO 8601 datetime)\").nullable().optional(),\n completedTime: z.string().describe(\"Completion timestamp (ISO 8601 datetime)\").nullable().optional(),\n scheduledStart: z.string().describe(\"Scheduled start time (ISO 8601 datetime)\").nullable().optional(),\n}).passthrough().describe(\"Scheduling chunk object representing a time block for the task.\");\nconst MotionGetTask_LabelObjectSchema = z.object({\n name: z.string().describe(\"Label name\").nullable().optional(),\n}).passthrough().describe(\"Label object for task categorization.\");\nconst MotionGetTask_StatusObjectSchema = z.object({\n name: z.string().describe(\"Status name\").nullable().optional(),\n isDefaultStatus: z.boolean().describe(\"Whether this is the default status\").nullable().optional(),\n isResolvedStatus: z.boolean().describe(\"Whether this status indicates resolution\").nullable().optional(),\n}).passthrough().describe(\"Task status details.\");\nconst MotionGetTask_UserObjectSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough().describe(\"User object containing basic user information.\");\nconst MotionGetTask_ProjectObjectSchema = z.object({\n id: z.string().describe(\"Project identifier\").nullable().optional(),\n name: z.string().describe(\"Project name\").nullable().optional(),\n status: z.string().describe(\"Project status\").nullable().optional(),\n createdTime: z.string().describe(\"Creation timestamp (ISO 8601 datetime)\").nullable().optional(),\n description: z.string().describe(\"Project description\").nullable().optional(),\n updatedTime: z.string().describe(\"Last update timestamp (ISO 8601 datetime)\").nullable().optional(),\n workspaceId: z.string().describe(\"Workspace ID\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the project\").nullable().optional(),\n}).passthrough().describe(\"Project object containing project details.\");\nconst MotionGetTask_WorkspaceObjectSchema = z.object({\n id: z.string().describe(\"Workspace identifier\").nullable().optional(),\n name: z.string().describe(\"Workspace name\").nullable().optional(),\n type: z.string().describe(\"Workspace type\").nullable().optional(),\n labels: z.array(MotionGetTask_LabelObjectSchema).describe(\"Available labels in workspace\").nullable().optional(),\n teamId: z.string().describe(\"Team identifier\").nullable().optional(),\n statuses: z.array(MotionGetTask_StatusObjectSchema).describe(\"Available statuses in workspace\").nullable().optional(),\n}).passthrough().describe(\"Workspace object containing workspace details.\");\nexport const MotionGetTaskOutput = z.object({\n id: z.string().describe(\"Task identifier\").nullable().optional(),\n name: z.string().describe(\"Task title\").nullable().optional(),\n chunks: z.array(MotionGetTask_ChunkObjectSchema).describe(\"Scheduling chunks for the task\").nullable().optional(),\n labels: z.array(MotionGetTask_LabelObjectSchema).describe(\"Labels assigned to the task\").nullable().optional(),\n status: MotionGetTask_StatusObjectSchema.nullable().optional(),\n creator: MotionGetTask_UserObjectSchema.nullable().optional(),\n dueDate: z.string().describe(\"Task deadline (ISO 8601 datetime)\").nullable().optional(),\n project: MotionGetTask_ProjectObjectSchema.nullable().optional(),\n startOn: z.string().describe(\"Start date in YYYY-MM-DD format\").nullable().optional(),\n duration: z.union([z.string(), z.number().int(), z.number()]).nullable().optional(),\n priority: z.string().describe(\"Task priority: ASAP, HIGH, MEDIUM, or LOW\").nullable().optional(),\n assignees: z.array(MotionGetTask_UserObjectSchema).describe(\"Users assigned to the task\").nullable().optional(),\n completed: z.boolean().describe(\"Completion status\").nullable().optional(),\n workspace: MotionGetTask_WorkspaceObjectSchema.nullable().optional(),\n createdTime: z.string().describe(\"Creation timestamp (ISO 8601 datetime)\").nullable().optional(),\n description: z.string().describe(\"HTML-formatted task details\").nullable().optional(),\n updatedTime: z.string().describe(\"Last modification timestamp (ISO 8601 datetime)\").nullable().optional(),\n deadlineType: z.string().describe(\"Deadline type: HARD, SOFT (default), or NONE\").nullable().optional(),\n scheduledEnd: z.string().describe(\"Motion's scheduled end time (ISO 8601 datetime)\").nullable().optional(),\n completedTime: z.string().describe(\"When task was marked complete (ISO 8601 datetime)\").nullable().optional(),\n scheduledStart: z.string().describe(\"Motion's scheduled start time (ISO 8601 datetime)\").nullable().optional(),\n schedulingIssue: z.boolean().describe(\"True if Motion failed to schedule the task\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the task\").nullable().optional(),\n lastInteractedTime: z.string().describe(\"Most recent interaction timestamp (ISO 8601 datetime)\").nullable().optional(),\n parentRecurringTaskId: z.string().describe(\"Parent ID if this is a recurring task instance\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a specific task.\\nContains complete task details including scheduling, assignees, and custom fields.\");\n\nexport const motionGetTask = action(\"MOTION_GET_TASK\", {\n slug: \"motion-get-task\",\n name: \"Get Task by ID\",\n description: \"Tool to retrieve a task by its ID from Motion. Returns complete task details including title, description, due date, priority, assignees, scheduling information, and custom fields.\",\n input: MotionGetTaskInput,\n output: MotionGetTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO,EACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAM,kCAAkC,EAAE,OAAO,EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,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C,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kIAOhB;AACV,CAAC"}
|
|
@@ -8,23 +8,23 @@ const MotionListCommentsInput = zod.z.object({
|
|
|
8
8
|
const MotionListComments_MetaInfoSchema = zod.z.object({
|
|
9
9
|
pageSize: zod.z.number().int().describe("The number of comments included in the current response.").nullable().optional(),
|
|
10
10
|
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()
|
|
11
|
-
}).describe("Pagination metadata for the comments list response.");
|
|
11
|
+
}).passthrough().describe("Pagination metadata for the comments list response.");
|
|
12
12
|
const MotionListComments_CommentCreatorSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("The creator's unique user identifier."),
|
|
14
|
-
name: zod.z.string().describe("The creator's display name."),
|
|
15
|
-
email: zod.z.string().describe("The creator's email address.")
|
|
16
|
-
}).describe("Information about the comment creator.");
|
|
13
|
+
id: zod.z.string().describe("The creator's unique user identifier.").nullable(),
|
|
14
|
+
name: zod.z.string().describe("The creator's display name.").nullable(),
|
|
15
|
+
email: zod.z.string().describe("The creator's email address.").nullable()
|
|
16
|
+
}).passthrough().describe("Information about the comment creator.");
|
|
17
17
|
const MotionListComments_CommentSchema = zod.z.object({
|
|
18
|
-
id: zod.z.string().describe("The comment's unique identifier."),
|
|
19
|
-
taskId: zod.z.string().describe("The ID of the task this comment belongs to."),
|
|
20
|
-
content: zod.z.string().describe("The HTML content of the comment."),
|
|
18
|
+
id: zod.z.string().describe("The comment's unique identifier.").nullable(),
|
|
19
|
+
taskId: zod.z.string().describe("The ID of the task this comment belongs to.").nullable(),
|
|
20
|
+
content: zod.z.string().describe("The HTML content of the comment.").nullable(),
|
|
21
21
|
creator: MotionListComments_CommentCreatorSchema.nullable(),
|
|
22
|
-
createdAt: zod.z.string().describe("Timestamp of when the comment was created (ISO 8601 format).")
|
|
23
|
-
}).describe("A Motion comment object.");
|
|
22
|
+
createdAt: zod.z.string().describe("Timestamp of when the comment was created (ISO 8601 format).").nullable()
|
|
23
|
+
}).passthrough().describe("A Motion comment object.");
|
|
24
24
|
const MotionListCommentsOutput = zod.z.object({
|
|
25
25
|
meta: MotionListComments_MetaInfoSchema.nullable(),
|
|
26
26
|
comments: zod.z.array(MotionListComments_CommentSchema).default([]).describe("List of comments on the task with details including id, taskId, content, createdAt, and creator information.").nullable().optional()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const motionListComments = require_action.action("MOTION_LIST_COMMENTS", {
|
|
29
29
|
slug: "motion-list-comments",
|
|
30
30
|
name: "List comments on task",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-comments.cjs","names":["z","action"],"sources":["../../src/actions/list-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCommentsInput
|
|
1
|
+
{"version":3,"file":"list-comments.cjs","names":["z","action"],"sources":["../../src/actions/list-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCommentsInput = 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 taskId: z.string().describe(\"The ID of the task to get comments for. Required parameter to fetch all comments associated with a specific task.\"),\n});\nconst MotionListComments_MetaInfoSchema = z.object({\n pageSize: z.number().int().describe(\"The number of comments 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}).passthrough().describe(\"Pagination metadata for the comments list response.\");\nconst MotionListComments_CommentCreatorSchema = z.object({\n id: z.string().describe(\"The creator's unique user identifier.\").nullable(),\n name: z.string().describe(\"The creator's display name.\").nullable(),\n email: z.string().describe(\"The creator's email address.\").nullable(),\n}).passthrough().describe(\"Information about the comment creator.\");\nconst MotionListComments_CommentSchema = z.object({\n id: z.string().describe(\"The comment's unique identifier.\").nullable(),\n taskId: z.string().describe(\"The ID of the task this comment belongs to.\").nullable(),\n content: z.string().describe(\"The HTML content of the comment.\").nullable(),\n creator: MotionListComments_CommentCreatorSchema.nullable(),\n createdAt: z.string().describe(\"Timestamp of when the comment was created (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"A Motion comment object.\");\nexport const MotionListCommentsOutput = z.object({\n meta: MotionListComments_MetaInfoSchema.nullable(),\n comments: z.array(MotionListComments_CommentSchema).default([]).describe(\"List of comments on the task with details including id, taskId, content, createdAt, and creator information.\").nullable().optional(),\n}).passthrough();\n\nexport const motionListComments = action(\"MOTION_LIST_COMMENTS\", {\n slug: \"motion-list-comments\",\n name: \"List comments on task\",\n description: \"Tool to get all comments on a specific task. Use when you need to retrieve comment history for a task. Supports cursor-based pagination for tasks with many comments.\",\n input: MotionListCommentsInput,\n output: MotionListCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC3L,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MAAM,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/M,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-comments.d.ts
|
|
4
|
-
declare const MotionListCommentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionListCommentsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
taskId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MotionListCommentsOutput: z.ZodObject<{
|
|
9
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
comments: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
content: z.ZodNullable<z.ZodString>;
|
|
17
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
email: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const motionListComments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
taskId: string;
|
|
27
|
+
cursor?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { motionListComments };
|
|
9
31
|
//# sourceMappingURL=list-comments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-comments.d.cts","names":[],"sources":["../../src/actions/list-comments.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-comments.d.cts","names":[],"sources":["../../src/actions/list-comments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAoBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-comments.d.ts
|
|
4
|
-
declare const MotionListCommentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionListCommentsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
taskId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MotionListCommentsOutput: z.ZodObject<{
|
|
9
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
comments: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
content: z.ZodNullable<z.ZodString>;
|
|
17
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
email: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const motionListComments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
taskId: string;
|
|
27
|
+
cursor?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { motionListComments };
|
|
9
31
|
//# sourceMappingURL=list-comments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-comments.d.mts","names":[],"sources":["../../src/actions/list-comments.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-comments.d.mts","names":[],"sources":["../../src/actions/list-comments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAoBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -8,19 +8,19 @@ const MotionListCommentsInput = z.object({
|
|
|
8
8
|
const MotionListComments_MetaInfoSchema = z.object({
|
|
9
9
|
pageSize: z.number().int().describe("The number of comments included in the current response.").nullable().optional(),
|
|
10
10
|
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()
|
|
11
|
-
}).describe("Pagination metadata for the comments list response.");
|
|
11
|
+
}).passthrough().describe("Pagination metadata for the comments list response.");
|
|
12
12
|
const MotionListComments_CommentCreatorSchema = z.object({
|
|
13
|
-
id: z.string().describe("The creator's unique user identifier."),
|
|
14
|
-
name: z.string().describe("The creator's display name."),
|
|
15
|
-
email: z.string().describe("The creator's email address.")
|
|
16
|
-
}).describe("Information about the comment creator.");
|
|
13
|
+
id: z.string().describe("The creator's unique user identifier.").nullable(),
|
|
14
|
+
name: z.string().describe("The creator's display name.").nullable(),
|
|
15
|
+
email: z.string().describe("The creator's email address.").nullable()
|
|
16
|
+
}).passthrough().describe("Information about the comment creator.");
|
|
17
17
|
const MotionListComments_CommentSchema = z.object({
|
|
18
|
-
id: z.string().describe("The comment's unique identifier."),
|
|
19
|
-
taskId: z.string().describe("The ID of the task this comment belongs to."),
|
|
20
|
-
content: z.string().describe("The HTML content of the comment."),
|
|
18
|
+
id: z.string().describe("The comment's unique identifier.").nullable(),
|
|
19
|
+
taskId: z.string().describe("The ID of the task this comment belongs to.").nullable(),
|
|
20
|
+
content: z.string().describe("The HTML content of the comment.").nullable(),
|
|
21
21
|
creator: MotionListComments_CommentCreatorSchema.nullable(),
|
|
22
|
-
createdAt: z.string().describe("Timestamp of when the comment was created (ISO 8601 format).")
|
|
23
|
-
}).describe("A Motion comment object.");
|
|
22
|
+
createdAt: z.string().describe("Timestamp of when the comment was created (ISO 8601 format).").nullable()
|
|
23
|
+
}).passthrough().describe("A Motion comment object.");
|
|
24
24
|
const motionListComments = action("MOTION_LIST_COMMENTS", {
|
|
25
25
|
slug: "motion-list-comments",
|
|
26
26
|
name: "List comments on task",
|
|
@@ -29,7 +29,7 @@ const motionListComments = action("MOTION_LIST_COMMENTS", {
|
|
|
29
29
|
output: z.object({
|
|
30
30
|
meta: MotionListComments_MetaInfoSchema.nullable(),
|
|
31
31
|
comments: z.array(MotionListComments_CommentSchema).default([]).describe("List of comments on the task with details including id, taskId, content, createdAt, and creator information.").nullable().optional()
|
|
32
|
-
})
|
|
32
|
+
}).passthrough()
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { motionListComments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-comments.mjs","names":[],"sources":["../../src/actions/list-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCommentsInput
|
|
1
|
+
{"version":3,"file":"list-comments.mjs","names":[],"sources":["../../src/actions/list-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCommentsInput = 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 taskId: z.string().describe(\"The ID of the task to get comments for. Required parameter to fetch all comments associated with a specific task.\"),\n});\nconst MotionListComments_MetaInfoSchema = z.object({\n pageSize: z.number().int().describe(\"The number of comments 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}).passthrough().describe(\"Pagination metadata for the comments list response.\");\nconst MotionListComments_CommentCreatorSchema = z.object({\n id: z.string().describe(\"The creator's unique user identifier.\").nullable(),\n name: z.string().describe(\"The creator's display name.\").nullable(),\n email: z.string().describe(\"The creator's email address.\").nullable(),\n}).passthrough().describe(\"Information about the comment creator.\");\nconst MotionListComments_CommentSchema = z.object({\n id: z.string().describe(\"The comment's unique identifier.\").nullable(),\n taskId: z.string().describe(\"The ID of the task this comment belongs to.\").nullable(),\n content: z.string().describe(\"The HTML content of the comment.\").nullable(),\n creator: MotionListComments_CommentCreatorSchema.nullable(),\n createdAt: z.string().describe(\"Timestamp of when the comment was created (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"A Motion comment object.\");\nexport const MotionListCommentsOutput = z.object({\n meta: MotionListComments_MetaInfoSchema.nullable(),\n comments: z.array(MotionListComments_CommentSchema).default([]).describe(\"List of comments on the task with details including id, taskId, content, createdAt, and creator information.\").nullable().optional(),\n}).passthrough();\n\nexport const motionListComments = action(\"MOTION_LIST_COMMENTS\", {\n slug: \"motion-list-comments\",\n name: \"List comments on task\",\n description: \"Tool to get all comments on a specific task. Use when you need to retrieve comment history for a task. Supports cursor-based pagination for tasks with many comments.\",\n input: MotionListCommentsInput,\n output: MotionListCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC3L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;AACjJ,CAAC;AACD,MAAM,oCAAoC,EAAE,OAAO;CACjD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,SAAS,wCAAwC,SAAS;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAMpD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,kCAAkC,SAAS;EACjD,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/M,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -3,17 +3,17 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-custom-fields.ts
|
|
4
4
|
const MotionListCustomFieldsInput = zod.z.object({ workspace_id: zod.z.string().describe("The workspace ID to get custom fields from") }).describe("Request model for listing custom fields for a workspace.");
|
|
5
5
|
const MotionListCustomFields_FieldDetailsSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("The unique identifier for the custom field"),
|
|
7
|
-
name: zod.z.string().describe("The name of the custom field"),
|
|
8
|
-
type: zod.z.string().describe("The type of the custom field (e.g., 'text', 'select', 'date', 'number')"),
|
|
9
|
-
metadata: zod.z.
|
|
10
|
-
workspaceId: zod.z.string().describe("The workspace this custom field belongs to")
|
|
11
|
-
}).describe("Details of a custom field.");
|
|
6
|
+
id: zod.z.string().describe("The unique identifier for the custom field").nullable(),
|
|
7
|
+
name: zod.z.string().describe("The name of the custom field").nullable(),
|
|
8
|
+
type: zod.z.string().describe("The type of the custom field (e.g., 'text', 'select', 'date', 'number')").nullable(),
|
|
9
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional metadata for the custom field (e.g., options for select fields, format for number fields)").nullable().optional(),
|
|
10
|
+
workspaceId: zod.z.string().describe("The workspace this custom field belongs to").nullable()
|
|
11
|
+
}).passthrough().describe("Details of a custom field.");
|
|
12
12
|
const MotionListCustomFields_CustomFieldSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("The unique identifier for the custom field"),
|
|
13
|
+
id: zod.z.string().describe("The unique identifier for the custom field").nullable(),
|
|
14
14
|
field: MotionListCustomFields_FieldDetailsSchema.nullable()
|
|
15
|
-
}).describe("A custom field object containing field details and ID.");
|
|
16
|
-
const MotionListCustomFieldsOutput = zod.z.object({ custom_fields: zod.z.array(MotionListCustomFields_CustomFieldSchema).describe("List of custom fields in the workspace") }).describe("Response model for listing custom fields.\nReturns an array of custom field objects.");
|
|
15
|
+
}).passthrough().describe("A custom field object containing field details and ID.");
|
|
16
|
+
const MotionListCustomFieldsOutput = zod.z.object({ custom_fields: zod.z.array(MotionListCustomFields_CustomFieldSchema).describe("List of custom fields in the workspace") }).passthrough().describe("Response model for listing custom fields.\nReturns an array of custom field objects.");
|
|
17
17
|
const motionListCustomFields = require_action.action("MOTION_LIST_CUSTOM_FIELDS", {
|
|
18
18
|
slug: "motion-list-custom-fields",
|
|
19
19
|
name: "List Custom Fields",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCustomFieldsInput
|
|
1
|
+
{"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCustomFieldsInput = z.object({\n workspace_id: z.string().describe(\"The workspace ID to get custom fields from\"),\n}).describe(\"Request model for listing custom fields for a workspace.\");\nconst MotionListCustomFields_FieldDetailsSchema = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\").nullable(),\n name: z.string().describe(\"The name of the custom field\").nullable(),\n type: z.string().describe(\"The type of the custom field (e.g., 'text', 'select', 'date', 'number')\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for the custom field (e.g., options for select fields, format for number fields)\").nullable().optional(),\n workspaceId: z.string().describe(\"The workspace this custom field belongs to\").nullable(),\n}).passthrough().describe(\"Details of a custom field.\");\nconst MotionListCustomFields_CustomFieldSchema = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\").nullable(),\n field: MotionListCustomFields_FieldDetailsSchema.nullable(),\n}).passthrough().describe(\"A custom field object containing field details and ID.\");\nexport const MotionListCustomFieldsOutput = z.object({\n custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe(\"List of custom fields in the workspace\"),\n}).passthrough().describe(\"Response model for listing custom fields.\\nReturns an array of custom field objects.\");\n\nexport const motionListCustomFields = action(\"MOTION_LIST_CUSTOM_FIELDS\", {\n slug: \"motion-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to retrieve all custom fields for a given Motion workspace. Use when you need to see what custom fields are available in a workspace.\",\n input: MotionListCustomFieldsInput,\n output: MotionListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EAChF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAO,0CAA0C,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,eAAeA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,wCAAwC,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-custom-fields.d.ts
|
|
4
|
-
declare const MotionListCustomFieldsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionListCustomFieldsInput: z.ZodObject<{
|
|
5
|
+
workspace_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MotionListCustomFieldsOutput: z.ZodObject<{
|
|
8
|
+
custom_fields: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
field: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const motionListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
workspace_id: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { motionListCustomFields };
|
|
9
24
|
//# sourceMappingURL=list-custom-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"list-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-custom-fields.d.ts
|
|
4
|
-
declare const MotionListCustomFieldsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionListCustomFieldsInput: z.ZodObject<{
|
|
5
|
+
workspace_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MotionListCustomFieldsOutput: z.ZodObject<{
|
|
8
|
+
custom_fields: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
field: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const motionListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
workspace_id: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { motionListCustomFields };
|
|
9
24
|
//# sourceMappingURL=list-custom-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"list-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,22 +3,22 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-custom-fields.ts
|
|
4
4
|
const MotionListCustomFieldsInput = z.object({ workspace_id: z.string().describe("The workspace ID to get custom fields from") }).describe("Request model for listing custom fields for a workspace.");
|
|
5
5
|
const MotionListCustomFields_FieldDetailsSchema = z.object({
|
|
6
|
-
id: z.string().describe("The unique identifier for the custom field"),
|
|
7
|
-
name: z.string().describe("The name of the custom field"),
|
|
8
|
-
type: z.string().describe("The type of the custom field (e.g., 'text', 'select', 'date', 'number')"),
|
|
9
|
-
metadata: z.
|
|
10
|
-
workspaceId: z.string().describe("The workspace this custom field belongs to")
|
|
11
|
-
}).describe("Details of a custom field.");
|
|
6
|
+
id: z.string().describe("The unique identifier for the custom field").nullable(),
|
|
7
|
+
name: z.string().describe("The name of the custom field").nullable(),
|
|
8
|
+
type: z.string().describe("The type of the custom field (e.g., 'text', 'select', 'date', 'number')").nullable(),
|
|
9
|
+
metadata: z.record(z.string(), z.unknown()).describe("Optional metadata for the custom field (e.g., options for select fields, format for number fields)").nullable().optional(),
|
|
10
|
+
workspaceId: z.string().describe("The workspace this custom field belongs to").nullable()
|
|
11
|
+
}).passthrough().describe("Details of a custom field.");
|
|
12
12
|
const MotionListCustomFields_CustomFieldSchema = z.object({
|
|
13
|
-
id: z.string().describe("The unique identifier for the custom field"),
|
|
13
|
+
id: z.string().describe("The unique identifier for the custom field").nullable(),
|
|
14
14
|
field: MotionListCustomFields_FieldDetailsSchema.nullable()
|
|
15
|
-
}).describe("A custom field object containing field details and ID.");
|
|
15
|
+
}).passthrough().describe("A custom field object containing field details and ID.");
|
|
16
16
|
const motionListCustomFields = action("MOTION_LIST_CUSTOM_FIELDS", {
|
|
17
17
|
slug: "motion-list-custom-fields",
|
|
18
18
|
name: "List Custom Fields",
|
|
19
19
|
description: "Tool to retrieve all custom fields for a given Motion workspace. Use when you need to see what custom fields are available in a workspace.",
|
|
20
20
|
input: MotionListCustomFieldsInput,
|
|
21
|
-
output: z.object({ custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe("List of custom fields in the workspace") }).describe("Response model for listing custom fields.\nReturns an array of custom field objects.")
|
|
21
|
+
output: z.object({ custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe("List of custom fields in the workspace") }).passthrough().describe("Response model for listing custom fields.\nReturns an array of custom field objects.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { motionListCustomFields };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCustomFieldsInput
|
|
1
|
+
{"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionListCustomFieldsInput = z.object({\n workspace_id: z.string().describe(\"The workspace ID to get custom fields from\"),\n}).describe(\"Request model for listing custom fields for a workspace.\");\nconst MotionListCustomFields_FieldDetailsSchema = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\").nullable(),\n name: z.string().describe(\"The name of the custom field\").nullable(),\n type: z.string().describe(\"The type of the custom field (e.g., 'text', 'select', 'date', 'number')\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for the custom field (e.g., options for select fields, format for number fields)\").nullable().optional(),\n workspaceId: z.string().describe(\"The workspace this custom field belongs to\").nullable(),\n}).passthrough().describe(\"Details of a custom field.\");\nconst MotionListCustomFields_CustomFieldSchema = z.object({\n id: z.string().describe(\"The unique identifier for the custom field\").nullable(),\n field: MotionListCustomFields_FieldDetailsSchema.nullable(),\n}).passthrough().describe(\"A custom field object containing field details and ID.\");\nexport const MotionListCustomFieldsOutput = z.object({\n custom_fields: z.array(MotionListCustomFields_CustomFieldSchema).describe(\"List of custom fields in the workspace\"),\n}).passthrough().describe(\"Response model for listing custom fields.\\nReturns an array of custom field objects.\");\n\nexport const motionListCustomFields = action(\"MOTION_LIST_CUSTOM_FIELDS\", {\n slug: \"motion-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to retrieve all custom fields for a given Motion workspace. Use when you need to see what custom fields are available in a workspace.\",\n input: MotionListCustomFieldsInput,\n output: MotionListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EAChF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAO,0CAA0C,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAKlF,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,eAAe,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,wCAAwC,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
|