@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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["motion","executeMotionTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["motion","executeMotionTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { motion } from \"./app\";\nimport { executeMotionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return motion.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMotionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -28,14 +28,14 @@ const MotionAddCustomFieldToProjectInput = zod.z.object({
|
|
|
28
28
|
customFieldInstanceId: zod.z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
29
29
|
}).describe("Request model for adding a custom field value to a project in Motion.");
|
|
30
30
|
const MotionAddCustomFieldToProjectOutput = zod.z.object({
|
|
31
|
-
type: zod.z.string().describe("The type of custom field that was set, matching the request type."),
|
|
31
|
+
type: zod.z.string().describe("The type of custom field that was set, matching the request type.").nullable(),
|
|
32
32
|
value: zod.z.union([
|
|
33
33
|
zod.z.string(),
|
|
34
34
|
zod.z.number().int(),
|
|
35
35
|
zod.z.number(),
|
|
36
36
|
zod.z.boolean()
|
|
37
37
|
])
|
|
38
|
-
}).describe("Response model returned after adding a custom field value to a project.");
|
|
38
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a project.");
|
|
39
39
|
const motionAddCustomFieldToProject = require_action.action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT", {
|
|
40
40
|
slug: "motion-add-custom-field-to-project",
|
|
41
41
|
name: "Add Custom Field to Project",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-project.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CAC9H,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-custom-field-to-project.d.ts
|
|
4
|
-
declare const MotionAddCustomFieldToProjectInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
|
|
5
|
+
value: z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
number: "number";
|
|
8
|
+
text: "text";
|
|
9
|
+
url: "url";
|
|
10
|
+
date: "date";
|
|
11
|
+
person: "person";
|
|
12
|
+
multiPerson: "multiPerson";
|
|
13
|
+
phone: "phone";
|
|
14
|
+
select: "select";
|
|
15
|
+
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
|
+
checkbox: "checkbox";
|
|
18
|
+
relatedTo: "relatedTo";
|
|
19
|
+
}>;
|
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
projectId: z.ZodString;
|
|
23
|
+
customFieldInstanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const MotionAddCustomFieldToProjectOutput: z.ZodObject<{
|
|
26
|
+
type: z.ZodNullable<z.ZodString>;
|
|
27
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
value: {
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
|
+
value: string | number | boolean;
|
|
33
|
+
};
|
|
34
|
+
projectId: string;
|
|
35
|
+
customFieldInstanceId: string;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { motionAddCustomFieldToProject };
|
|
9
39
|
//# sourceMappingURL=add-custom-field-to-project.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-project.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-custom-field-to-project.d.ts
|
|
4
|
-
declare const MotionAddCustomFieldToProjectInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionAddCustomFieldToProjectInput: z.ZodObject<{
|
|
5
|
+
value: z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
number: "number";
|
|
8
|
+
text: "text";
|
|
9
|
+
url: "url";
|
|
10
|
+
date: "date";
|
|
11
|
+
person: "person";
|
|
12
|
+
multiPerson: "multiPerson";
|
|
13
|
+
phone: "phone";
|
|
14
|
+
select: "select";
|
|
15
|
+
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
|
+
checkbox: "checkbox";
|
|
18
|
+
relatedTo: "relatedTo";
|
|
19
|
+
}>;
|
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
projectId: z.ZodString;
|
|
23
|
+
customFieldInstanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const MotionAddCustomFieldToProjectOutput: z.ZodObject<{
|
|
26
|
+
type: z.ZodNullable<z.ZodString>;
|
|
27
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const motionAddCustomFieldToProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
value: {
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
|
+
value: string | number | boolean;
|
|
33
|
+
};
|
|
34
|
+
projectId: string;
|
|
35
|
+
customFieldInstanceId: string;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { motionAddCustomFieldToProject };
|
|
9
39
|
//# sourceMappingURL=add-custom-field-to-project.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-project.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -31,14 +31,14 @@ const motionAddCustomFieldToProject = action("MOTION_ADD_CUSTOM_FIELD_TO_PROJECT
|
|
|
31
31
|
customFieldInstanceId: z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
32
32
|
}).describe("Request model for adding a custom field value to a project in Motion."),
|
|
33
33
|
output: z.object({
|
|
34
|
-
type: z.string().describe("The type of custom field that was set, matching the request type."),
|
|
34
|
+
type: z.string().describe("The type of custom field that was set, matching the request type.").nullable(),
|
|
35
35
|
value: z.union([
|
|
36
36
|
z.string(),
|
|
37
37
|
z.number().int(),
|
|
38
38
|
z.number(),
|
|
39
39
|
z.boolean()
|
|
40
40
|
])
|
|
41
|
-
}).describe("Response model returned after adding a custom field value to a project.")
|
|
41
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a project.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { motionAddCustomFieldToProject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-project.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-project.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToProjectInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n projectId: z.string().describe(\"The unique identifier of the project to add the custom field to. Typically starts with 'pr_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a project in Motion.\");\nexport const MotionAddCustomFieldToProjectOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a project.\");\n\nexport const motionAddCustomFieldToProject = action(\"MOTION_ADD_CUSTOM_FIELD_TO_PROJECT\", {\n slug: \"motion-add-custom-field-to-project\",\n name: \"Add Custom Field to Project\",\n description: \"Tool to add a custom field value to a project in Motion. Use when you need to set or update custom field data on an existing project.\",\n input: MotionAddCustomFieldToProjectInput,\n output: MotionAddCustomFieldToProjectOutput,\n});\n"],"mappings":";;AAiBA,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EAC9H,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,uEAUH;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
|
|
@@ -28,14 +28,14 @@ const MotionAddCustomFieldToTaskInput = zod.z.object({
|
|
|
28
28
|
customFieldInstanceId: zod.z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
29
29
|
}).describe("Request model for adding a custom field value to a task in Motion.");
|
|
30
30
|
const MotionAddCustomFieldToTaskOutput = zod.z.object({
|
|
31
|
-
type: zod.z.string().describe("The type of custom field that was set, matching the request type."),
|
|
31
|
+
type: zod.z.string().describe("The type of custom field that was set, matching the request type.").nullable(),
|
|
32
32
|
value: zod.z.union([
|
|
33
33
|
zod.z.string(),
|
|
34
34
|
zod.z.number().int(),
|
|
35
35
|
zod.z.number(),
|
|
36
36
|
zod.z.boolean()
|
|
37
37
|
])
|
|
38
|
-
}).describe("Response model returned after adding a custom field value to a task.");
|
|
38
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a task.");
|
|
39
39
|
const motionAddCustomFieldToTask = require_action.action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
|
|
40
40
|
slug: "motion-add-custom-field-to-task",
|
|
41
41
|
name: "Add Custom Field to Task",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-task.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.cjs","names":["z","action"],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAO;GAAQ;GAAU;GAAe;GAAS;GAAU;GAAe;GAAU;GAAS;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACxO,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CACxH,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;AAC9L,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-custom-field-to-task.d.ts
|
|
4
|
-
declare const MotionAddCustomFieldToTaskInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
|
|
5
|
+
value: z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
number: "number";
|
|
8
|
+
text: "text";
|
|
9
|
+
url: "url";
|
|
10
|
+
date: "date";
|
|
11
|
+
person: "person";
|
|
12
|
+
multiPerson: "multiPerson";
|
|
13
|
+
phone: "phone";
|
|
14
|
+
select: "select";
|
|
15
|
+
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
|
+
checkbox: "checkbox";
|
|
18
|
+
relatedTo: "relatedTo";
|
|
19
|
+
}>;
|
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
taskId: z.ZodString;
|
|
23
|
+
customFieldInstanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const MotionAddCustomFieldToTaskOutput: z.ZodObject<{
|
|
26
|
+
type: z.ZodNullable<z.ZodString>;
|
|
27
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
value: {
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
|
+
value: string | number | boolean;
|
|
33
|
+
};
|
|
34
|
+
taskId: string;
|
|
35
|
+
customFieldInstanceId: string;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { motionAddCustomFieldToTask };
|
|
9
39
|
//# sourceMappingURL=add-custom-field-to-task.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-task.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.d.cts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-custom-field-to-task.d.ts
|
|
4
|
-
declare const MotionAddCustomFieldToTaskInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionAddCustomFieldToTaskInput: z.ZodObject<{
|
|
5
|
+
value: z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
number: "number";
|
|
8
|
+
text: "text";
|
|
9
|
+
url: "url";
|
|
10
|
+
date: "date";
|
|
11
|
+
person: "person";
|
|
12
|
+
multiPerson: "multiPerson";
|
|
13
|
+
phone: "phone";
|
|
14
|
+
select: "select";
|
|
15
|
+
multiSelect: "multiSelect";
|
|
16
|
+
email: "email";
|
|
17
|
+
checkbox: "checkbox";
|
|
18
|
+
relatedTo: "relatedTo";
|
|
19
|
+
}>;
|
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
taskId: z.ZodString;
|
|
23
|
+
customFieldInstanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const MotionAddCustomFieldToTaskOutput: z.ZodObject<{
|
|
26
|
+
type: z.ZodNullable<z.ZodString>;
|
|
27
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const motionAddCustomFieldToTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
value: {
|
|
31
|
+
type: "number" | "text" | "url" | "date" | "person" | "multiPerson" | "phone" | "select" | "multiSelect" | "email" | "checkbox" | "relatedTo";
|
|
32
|
+
value: string | number | boolean;
|
|
33
|
+
};
|
|
34
|
+
taskId: string;
|
|
35
|
+
customFieldInstanceId: string;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { motionAddCustomFieldToTask };
|
|
9
39
|
//# sourceMappingURL=add-custom-field-to-task.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-task.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.d.mts","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -31,14 +31,14 @@ const motionAddCustomFieldToTask = action("MOTION_ADD_CUSTOM_FIELD_TO_TASK", {
|
|
|
31
31
|
customFieldInstanceId: z.string().describe("The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.")
|
|
32
32
|
}).describe("Request model for adding a custom field value to a task in Motion."),
|
|
33
33
|
output: z.object({
|
|
34
|
-
type: z.string().describe("The type of custom field that was set, matching the request type."),
|
|
34
|
+
type: z.string().describe("The type of custom field that was set, matching the request type.").nullable(),
|
|
35
35
|
value: z.union([
|
|
36
36
|
z.string(),
|
|
37
37
|
z.number().int(),
|
|
38
38
|
z.number(),
|
|
39
39
|
z.boolean()
|
|
40
40
|
])
|
|
41
|
-
}).describe("Response model returned after adding a custom field value to a task.")
|
|
41
|
+
}).passthrough().describe("Response model returned after adding a custom field value to a task.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { motionAddCustomFieldToTask };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-custom-field-to-task.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput
|
|
1
|
+
{"version":3,"file":"add-custom-field-to-task.mjs","names":[],"sources":["../../src/actions/add-custom-field-to-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionAddCustomFieldToTaskInput = z.object({\n value: z.object({\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"The type of custom field. Determines how the value is interpreted and displayed.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).describe(\"The custom field value object containing the type and actual value to set.\"),\n taskId: z.string().describe(\"The unique identifier of the task to add the custom field to. Typically starts with 'tk_'.\"),\n customFieldInstanceId: z.string().describe(\"The unique identifier of the custom field instance to add. This references the workspace custom field definition. Typically starts with 'cfi_'.\"),\n}).describe(\"Request model for adding a custom field value to a task in Motion.\");\nexport const MotionAddCustomFieldToTaskOutput = z.object({\n type: z.string().describe(\"The type of custom field that was set, matching the request type.\").nullable(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n}).passthrough().describe(\"Response model returned after adding a custom field value to a task.\");\n\nexport const motionAddCustomFieldToTask = action(\"MOTION_ADD_CUSTOM_FIELD_TO_TASK\", {\n slug: \"motion-add-custom-field-to-task\",\n name: \"Add Custom Field to Task\",\n description: \"Tool to add a custom field value to a task in Motion. Use when you need to set or update custom field data on an existing task.\",\n input: MotionAddCustomFieldToTaskInput,\n output: MotionAddCustomFieldToTaskOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,KAAK;IAAC;IAAQ;IAAO;IAAQ;IAAU;IAAe;IAAS;IAAU;IAAe;IAAU;IAAS;IAAY;GAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF;GACxO,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC;EACxE,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACxH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC9L,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
|
|
@@ -9,14 +9,14 @@ const MotionCreateComment_CreatorSchema = zod.z.object({
|
|
|
9
9
|
id: zod.z.string().describe("The ID of the creator").nullable().optional(),
|
|
10
10
|
name: zod.z.string().describe("The name of the creator").nullable().optional(),
|
|
11
11
|
email: zod.z.string().describe("The email of the creator").nullable().optional()
|
|
12
|
-
}).describe("Creator information for a comment.");
|
|
12
|
+
}).passthrough().describe("Creator information for a comment.");
|
|
13
13
|
const MotionCreateCommentOutput = zod.z.object({
|
|
14
|
-
id: zod.z.string().describe("The ID of the created comment"),
|
|
15
|
-
taskId: zod.z.string().describe("The ID of the task the comment belongs to"),
|
|
16
|
-
content: zod.z.string().describe("The content of the comment"),
|
|
14
|
+
id: zod.z.string().describe("The ID of the created comment").nullable(),
|
|
15
|
+
taskId: zod.z.string().describe("The ID of the task the comment belongs to").nullable(),
|
|
16
|
+
content: zod.z.string().describe("The content of the comment").nullable(),
|
|
17
17
|
creator: MotionCreateComment_CreatorSchema.nullable(),
|
|
18
|
-
createdAt: zod.z.string().describe("ISO 8601 timestamp when the comment was created")
|
|
19
|
-
}).describe("Response model after creating a comment.");
|
|
18
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the comment was created").nullable()
|
|
19
|
+
}).passthrough().describe("Response model after creating a comment.");
|
|
20
20
|
const motionCreateComment = require_action.action("MOTION_CREATE_COMMENT", {
|
|
21
21
|
slug: "motion-create-comment",
|
|
22
22
|
name: "Create Comment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput
|
|
1
|
+
{"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,SAAS,kCAAkC,SAAS;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-comment.d.ts
|
|
4
|
-
declare const MotionCreateCommentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionCreateCommentInput: z.ZodObject<{
|
|
5
|
+
taskId: z.ZodString;
|
|
6
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MotionCreateCommentOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
content: z.ZodNullable<z.ZodString>;
|
|
12
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
taskId: string;
|
|
21
|
+
content?: string | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { motionCreateComment };
|
|
9
25
|
//# sourceMappingURL=create-comment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-comment.d.ts
|
|
4
|
-
declare const MotionCreateCommentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MotionCreateCommentInput: z.ZodObject<{
|
|
5
|
+
taskId: z.ZodString;
|
|
6
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MotionCreateCommentOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
content: z.ZodNullable<z.ZodString>;
|
|
12
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const motionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
taskId: string;
|
|
21
|
+
content?: string | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { motionCreateComment };
|
|
9
25
|
//# sourceMappingURL=create-comment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -9,19 +9,19 @@ const MotionCreateComment_CreatorSchema = z.object({
|
|
|
9
9
|
id: z.string().describe("The ID of the creator").nullable().optional(),
|
|
10
10
|
name: z.string().describe("The name of the creator").nullable().optional(),
|
|
11
11
|
email: z.string().describe("The email of the creator").nullable().optional()
|
|
12
|
-
}).describe("Creator information for a comment.");
|
|
12
|
+
}).passthrough().describe("Creator information for a comment.");
|
|
13
13
|
const motionCreateComment = action("MOTION_CREATE_COMMENT", {
|
|
14
14
|
slug: "motion-create-comment",
|
|
15
15
|
name: "Create Comment",
|
|
16
16
|
description: "Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.",
|
|
17
17
|
input: MotionCreateCommentInput,
|
|
18
18
|
output: z.object({
|
|
19
|
-
id: z.string().describe("The ID of the created comment"),
|
|
20
|
-
taskId: z.string().describe("The ID of the task the comment belongs to"),
|
|
21
|
-
content: z.string().describe("The content of the comment"),
|
|
19
|
+
id: z.string().describe("The ID of the created comment").nullable(),
|
|
20
|
+
taskId: z.string().describe("The ID of the task the comment belongs to").nullable(),
|
|
21
|
+
content: z.string().describe("The content of the comment").nullable(),
|
|
22
22
|
creator: MotionCreateComment_CreatorSchema.nullable(),
|
|
23
|
-
createdAt: z.string().describe("ISO 8601 timestamp when the comment was created")
|
|
24
|
-
}).describe("Response model after creating a comment.")
|
|
23
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the comment was created").nullable()
|
|
24
|
+
}).passthrough().describe("Response model after creating a comment.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { motionCreateComment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput
|
|
1
|
+
{"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCommentInput = z.object({\n taskId: z.string().describe(\"The task to comment on\"),\n content: z.string().describe(\"Github Flavored Markdown comment\").optional(),\n}).describe(\"Request model for creating a comment on a Motion task.\");\nconst MotionCreateComment_CreatorSchema = z.object({\n id: z.string().describe(\"The ID of the creator\").nullable().optional(),\n name: z.string().describe(\"The name of the creator\").nullable().optional(),\n email: z.string().describe(\"The email of the creator\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a comment.\");\nexport const MotionCreateCommentOutput = z.object({\n id: z.string().describe(\"The ID of the created comment\").nullable(),\n taskId: z.string().describe(\"The ID of the task the comment belongs to\").nullable(),\n content: z.string().describe(\"The content of the comment\").nullable(),\n creator: MotionCreateComment_CreatorSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the comment was created\").nullable(),\n}).passthrough().describe(\"Response model after creating a comment.\");\n\nexport const motionCreateComment = action(\"MOTION_CREATE_COMMENT\", {\n slug: \"motion-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a new comment on a Motion task. Use when you need to add a comment to an existing task.\",\n input: MotionCreateCommentInput,\n output: MotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAS9D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACpE,SAAS,kCAAkC,SAAS;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -28,14 +28,14 @@ const MotionCreateCustomFieldInput = zod.z.object({
|
|
|
28
28
|
id: zod.z.string().describe("Unique identifier for the option"),
|
|
29
29
|
color: zod.z.string().describe("Hex color code (without alpha channel) for visual styling"),
|
|
30
30
|
value: zod.z.string().describe("Display text for user selection")
|
|
31
|
-
}).describe("Option for select and multiSelect custom fields.")).describe("List of options for select and multiSelect fields. Required for select and multiSelect types").optional()
|
|
31
|
+
}).passthrough().describe("Option for select and multiSelect custom fields.")).describe("List of options for select and multiSelect fields. Required for select and multiSelect types").optional()
|
|
32
32
|
}).describe("Configuration metadata for advanced custom field types.").optional(),
|
|
33
33
|
workspaceId: zod.z.string().describe("The workspace ID where the custom field will be created")
|
|
34
34
|
}).describe("Request model for creating a new custom field in a workspace.");
|
|
35
35
|
const MotionCreateCustomFieldOutput = zod.z.object({
|
|
36
|
-
id: zod.z.string().describe("The ID of the created custom field"),
|
|
37
|
-
type: zod.z.string().describe("The type of custom field that was created")
|
|
38
|
-
}).describe("Response model for creating a custom field.");
|
|
36
|
+
id: zod.z.string().describe("The ID of the created custom field").nullable(),
|
|
37
|
+
type: zod.z.string().describe("The type of custom field that was created").nullable()
|
|
38
|
+
}).passthrough().describe("Response model for creating a custom field.");
|
|
39
39
|
const motionCreateCustomField = require_action.action("MOTION_CREATE_CUSTOM_FIELD", {
|
|
40
40
|
slug: "motion-create-custom-field",
|
|
41
41
|
name: "Create Custom Field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCustomFieldInput
|
|
1
|
+
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MotionCreateCustomFieldInput = z.object({\n name: z.string().describe(\"Name of the custom field\"),\n type: z.enum([\"text\", \"url\", \"date\", \"person\", \"multiPerson\", \"phone\", \"select\", \"multiSelect\", \"number\", \"email\", \"checkbox\", \"relatedTo\"]).describe(\"Type of the custom field. Must be one of: text, url, date, person, multiPerson, phone, select, multiSelect, number, email, checkbox, or relatedTo\"),\n metadata: z.object({\n format: z.enum([\"plain\", \"formatted\", \"percent\"]).describe(\"Format options for numeric custom fields.\").optional(),\n toggle: z.boolean().describe(\"Toggle status for checkbox fields. Only applies to checkbox type fields\").optional(),\n options: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the option\"),\n color: z.string().describe(\"Hex color code (without alpha channel) for visual styling\"),\n value: z.string().describe(\"Display text for user selection\"),\n}).passthrough().describe(\"Option for select and multiSelect custom fields.\")).describe(\"List of options for select and multiSelect fields. Required for select and multiSelect types\").optional(),\n}).describe(\"Configuration metadata for advanced custom field types.\").optional(),\n workspaceId: z.string().describe(\"The workspace ID where the custom field will be created\"),\n}).describe(\"Request model for creating a new custom field in a workspace.\");\nexport const MotionCreateCustomFieldOutput = z.object({\n id: z.string().describe(\"The ID of the created custom field\").nullable(),\n type: z.string().describe(\"The type of custom field that was created\").nullable(),\n}).passthrough().describe(\"Response model for creating a custom field.\");\n\nexport const motionCreateCustomField = action(\"MOTION_CREATE_CUSTOM_FIELD\", {\n slug: \"motion-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Tool to create a new custom field in a Motion workspace. Use when you need to add custom fields like text, select options, dates, or other field types to customize your workspace. For select/multiSelect types, provide options in metadata.\",\n input: MotionCreateCustomFieldInput,\n output: MotionCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAU;EAAe;EAAS;EAAU;EAAe;EAAU;EAAS;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,mJAAmJ;CACzS,UAAUA,IAAAA,EAAE,OAAO;EACnB,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC1B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;GACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACjM,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|