@keystrokehq/onedesk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-worklog.cjs +38 -0
  7. package/dist/actions/create-worklog.cjs.map +1 -0
  8. package/dist/actions/create-worklog.d.cts +9 -0
  9. package/dist/actions/create-worklog.d.cts.map +1 -0
  10. package/dist/actions/create-worklog.d.mts +9 -0
  11. package/dist/actions/create-worklog.d.mts.map +1 -0
  12. package/dist/actions/create-worklog.mjs +37 -0
  13. package/dist/actions/create-worklog.mjs.map +1 -0
  14. package/dist/actions/delete-attachment.cjs +20 -0
  15. package/dist/actions/delete-attachment.cjs.map +1 -0
  16. package/dist/actions/delete-attachment.d.cts +9 -0
  17. package/dist/actions/delete-attachment.d.cts.map +1 -0
  18. package/dist/actions/delete-attachment.d.mts +9 -0
  19. package/dist/actions/delete-attachment.d.mts.map +1 -0
  20. package/dist/actions/delete-attachment.mjs +17 -0
  21. package/dist/actions/delete-attachment.mjs.map +1 -0
  22. package/dist/actions/delete-comment.cjs +21 -0
  23. package/dist/actions/delete-comment.cjs.map +1 -0
  24. package/dist/actions/delete-comment.d.cts +9 -0
  25. package/dist/actions/delete-comment.d.cts.map +1 -0
  26. package/dist/actions/delete-comment.d.mts +9 -0
  27. package/dist/actions/delete-comment.d.mts.map +1 -0
  28. package/dist/actions/delete-comment.mjs +18 -0
  29. package/dist/actions/delete-comment.mjs.map +1 -0
  30. package/dist/actions/delete-customer.cjs +16 -0
  31. package/dist/actions/delete-customer.cjs.map +1 -0
  32. package/dist/actions/delete-customer.d.cts +9 -0
  33. package/dist/actions/delete-customer.d.cts.map +1 -0
  34. package/dist/actions/delete-customer.d.mts +9 -0
  35. package/dist/actions/delete-customer.d.mts.map +1 -0
  36. package/dist/actions/delete-customer.mjs +13 -0
  37. package/dist/actions/delete-customer.mjs.map +1 -0
  38. package/dist/actions/delete-message.cjs +19 -0
  39. package/dist/actions/delete-message.cjs.map +1 -0
  40. package/dist/actions/delete-message.d.cts +9 -0
  41. package/dist/actions/delete-message.d.cts.map +1 -0
  42. package/dist/actions/delete-message.d.mts +9 -0
  43. package/dist/actions/delete-message.d.mts.map +1 -0
  44. package/dist/actions/delete-message.mjs +16 -0
  45. package/dist/actions/delete-message.mjs.map +1 -0
  46. package/dist/actions/delete-project.cjs +19 -0
  47. package/dist/actions/delete-project.cjs.map +1 -0
  48. package/dist/actions/delete-project.d.cts +9 -0
  49. package/dist/actions/delete-project.d.cts.map +1 -0
  50. package/dist/actions/delete-project.d.mts +9 -0
  51. package/dist/actions/delete-project.d.mts.map +1 -0
  52. package/dist/actions/delete-project.mjs +16 -0
  53. package/dist/actions/delete-project.mjs.map +1 -0
  54. package/dist/actions/delete-requirement.cjs +16 -0
  55. package/dist/actions/delete-requirement.cjs.map +1 -0
  56. package/dist/actions/delete-requirement.d.cts +9 -0
  57. package/dist/actions/delete-requirement.d.cts.map +1 -0
  58. package/dist/actions/delete-requirement.d.mts +9 -0
  59. package/dist/actions/delete-requirement.d.mts.map +1 -0
  60. package/dist/actions/delete-requirement.mjs +13 -0
  61. package/dist/actions/delete-requirement.mjs.map +1 -0
  62. package/dist/actions/delete-task.cjs +19 -0
  63. package/dist/actions/delete-task.cjs.map +1 -0
  64. package/dist/actions/delete-task.d.cts +9 -0
  65. package/dist/actions/delete-task.d.cts.map +1 -0
  66. package/dist/actions/delete-task.d.mts +9 -0
  67. package/dist/actions/delete-task.d.mts.map +1 -0
  68. package/dist/actions/delete-task.mjs +16 -0
  69. package/dist/actions/delete-task.mjs.map +1 -0
  70. package/dist/actions/delete-ticket.cjs +21 -0
  71. package/dist/actions/delete-ticket.cjs.map +1 -0
  72. package/dist/actions/delete-ticket.d.cts +9 -0
  73. package/dist/actions/delete-ticket.d.cts.map +1 -0
  74. package/dist/actions/delete-ticket.d.mts +9 -0
  75. package/dist/actions/delete-ticket.d.mts.map +1 -0
  76. package/dist/actions/delete-ticket.mjs +18 -0
  77. package/dist/actions/delete-ticket.mjs.map +1 -0
  78. package/dist/actions/delete-timesheet.cjs +19 -0
  79. package/dist/actions/delete-timesheet.cjs.map +1 -0
  80. package/dist/actions/delete-timesheet.d.cts +9 -0
  81. package/dist/actions/delete-timesheet.d.cts.map +1 -0
  82. package/dist/actions/delete-timesheet.d.mts +9 -0
  83. package/dist/actions/delete-timesheet.d.mts.map +1 -0
  84. package/dist/actions/delete-timesheet.mjs +16 -0
  85. package/dist/actions/delete-timesheet.mjs.map +1 -0
  86. package/dist/actions/delete-user.cjs +20 -0
  87. package/dist/actions/delete-user.cjs.map +1 -0
  88. package/dist/actions/delete-user.d.cts +9 -0
  89. package/dist/actions/delete-user.d.cts.map +1 -0
  90. package/dist/actions/delete-user.d.mts +9 -0
  91. package/dist/actions/delete-user.d.mts.map +1 -0
  92. package/dist/actions/delete-user.mjs +17 -0
  93. package/dist/actions/delete-user.mjs.map +1 -0
  94. package/dist/actions/get-attachments.cjs +30 -0
  95. package/dist/actions/get-attachments.cjs.map +1 -0
  96. package/dist/actions/get-attachments.d.cts +9 -0
  97. package/dist/actions/get-attachments.d.cts.map +1 -0
  98. package/dist/actions/get-attachments.d.mts +9 -0
  99. package/dist/actions/get-attachments.d.mts.map +1 -0
  100. package/dist/actions/get-attachments.mjs +29 -0
  101. package/dist/actions/get-attachments.mjs.map +1 -0
  102. package/dist/actions/get-comment-details.cjs +23 -0
  103. package/dist/actions/get-comment-details.cjs.map +1 -0
  104. package/dist/actions/get-comment-details.d.cts +9 -0
  105. package/dist/actions/get-comment-details.d.cts.map +1 -0
  106. package/dist/actions/get-comment-details.d.mts +9 -0
  107. package/dist/actions/get-comment-details.d.mts.map +1 -0
  108. package/dist/actions/get-comment-details.mjs +20 -0
  109. package/dist/actions/get-comment-details.mjs.map +1 -0
  110. package/dist/actions/get-comments.cjs +24 -0
  111. package/dist/actions/get-comments.cjs.map +1 -0
  112. package/dist/actions/get-comments.d.cts +9 -0
  113. package/dist/actions/get-comments.d.cts.map +1 -0
  114. package/dist/actions/get-comments.d.mts +9 -0
  115. package/dist/actions/get-comments.d.mts.map +1 -0
  116. package/dist/actions/get-comments.mjs +23 -0
  117. package/dist/actions/get-comments.mjs.map +1 -0
  118. package/dist/actions/get-feedback-details.cjs +36 -0
  119. package/dist/actions/get-feedback-details.cjs.map +1 -0
  120. package/dist/actions/get-feedback-details.d.cts +9 -0
  121. package/dist/actions/get-feedback-details.d.cts.map +1 -0
  122. package/dist/actions/get-feedback-details.d.mts +9 -0
  123. package/dist/actions/get-feedback-details.d.mts.map +1 -0
  124. package/dist/actions/get-feedback-details.mjs +33 -0
  125. package/dist/actions/get-feedback-details.mjs.map +1 -0
  126. package/dist/actions/get-feedback.cjs +38 -0
  127. package/dist/actions/get-feedback.cjs.map +1 -0
  128. package/dist/actions/get-feedback.d.cts +9 -0
  129. package/dist/actions/get-feedback.d.cts.map +1 -0
  130. package/dist/actions/get-feedback.d.mts +9 -0
  131. package/dist/actions/get-feedback.d.mts.map +1 -0
  132. package/dist/actions/get-feedback.mjs +37 -0
  133. package/dist/actions/get-feedback.mjs.map +1 -0
  134. package/dist/actions/get-issue-details.cjs +28 -0
  135. package/dist/actions/get-issue-details.cjs.map +1 -0
  136. package/dist/actions/get-issue-details.d.cts +9 -0
  137. package/dist/actions/get-issue-details.d.cts.map +1 -0
  138. package/dist/actions/get-issue-details.d.mts +9 -0
  139. package/dist/actions/get-issue-details.d.mts.map +1 -0
  140. package/dist/actions/get-issue-details.mjs +25 -0
  141. package/dist/actions/get-issue-details.mjs.map +1 -0
  142. package/dist/actions/get-issues.cjs +29 -0
  143. package/dist/actions/get-issues.cjs.map +1 -0
  144. package/dist/actions/get-issues.d.cts +9 -0
  145. package/dist/actions/get-issues.d.cts.map +1 -0
  146. package/dist/actions/get-issues.d.mts +9 -0
  147. package/dist/actions/get-issues.d.mts.map +1 -0
  148. package/dist/actions/get-issues.mjs +28 -0
  149. package/dist/actions/get-issues.mjs.map +1 -0
  150. package/dist/actions/get-messages.cjs +39 -0
  151. package/dist/actions/get-messages.cjs.map +1 -0
  152. package/dist/actions/get-messages.d.cts +9 -0
  153. package/dist/actions/get-messages.d.cts.map +1 -0
  154. package/dist/actions/get-messages.d.mts +9 -0
  155. package/dist/actions/get-messages.d.mts.map +1 -0
  156. package/dist/actions/get-messages.mjs +38 -0
  157. package/dist/actions/get-messages.mjs.map +1 -0
  158. package/dist/actions/get-requirements.cjs +29 -0
  159. package/dist/actions/get-requirements.cjs.map +1 -0
  160. package/dist/actions/get-requirements.d.cts +9 -0
  161. package/dist/actions/get-requirements.d.cts.map +1 -0
  162. package/dist/actions/get-requirements.d.mts +9 -0
  163. package/dist/actions/get-requirements.d.mts.map +1 -0
  164. package/dist/actions/get-requirements.mjs +28 -0
  165. package/dist/actions/get-requirements.mjs.map +1 -0
  166. package/dist/actions/get-task-details.cjs +28 -0
  167. package/dist/actions/get-task-details.cjs.map +1 -0
  168. package/dist/actions/get-task-details.d.cts +9 -0
  169. package/dist/actions/get-task-details.d.cts.map +1 -0
  170. package/dist/actions/get-task-details.d.mts +9 -0
  171. package/dist/actions/get-task-details.d.mts.map +1 -0
  172. package/dist/actions/get-task-details.mjs +25 -0
  173. package/dist/actions/get-task-details.mjs.map +1 -0
  174. package/dist/actions/get-tickets.cjs +42 -0
  175. package/dist/actions/get-tickets.cjs.map +1 -0
  176. package/dist/actions/get-tickets.d.cts +9 -0
  177. package/dist/actions/get-tickets.d.cts.map +1 -0
  178. package/dist/actions/get-tickets.d.mts +9 -0
  179. package/dist/actions/get-tickets.d.mts.map +1 -0
  180. package/dist/actions/get-tickets.mjs +41 -0
  181. package/dist/actions/get-tickets.mjs.map +1 -0
  182. package/dist/actions/get-timesheet-details.cjs +29 -0
  183. package/dist/actions/get-timesheet-details.cjs.map +1 -0
  184. package/dist/actions/get-timesheet-details.d.cts +9 -0
  185. package/dist/actions/get-timesheet-details.d.cts.map +1 -0
  186. package/dist/actions/get-timesheet-details.d.mts +9 -0
  187. package/dist/actions/get-timesheet-details.d.mts.map +1 -0
  188. package/dist/actions/get-timesheet-details.mjs +26 -0
  189. package/dist/actions/get-timesheet-details.mjs.map +1 -0
  190. package/dist/actions/get-worklogs.cjs +39 -0
  191. package/dist/actions/get-worklogs.cjs.map +1 -0
  192. package/dist/actions/get-worklogs.d.cts +9 -0
  193. package/dist/actions/get-worklogs.d.cts.map +1 -0
  194. package/dist/actions/get-worklogs.d.mts +9 -0
  195. package/dist/actions/get-worklogs.d.mts.map +1 -0
  196. package/dist/actions/get-worklogs.mjs +38 -0
  197. package/dist/actions/get-worklogs.mjs.map +1 -0
  198. package/dist/actions/index.cjs +49 -0
  199. package/dist/actions/index.d.cts +25 -0
  200. package/dist/actions/index.d.mts +25 -0
  201. package/dist/actions/index.mjs +25 -0
  202. package/dist/app.cjs +9 -0
  203. package/dist/app.cjs.map +1 -0
  204. package/dist/app.d.cts +5 -0
  205. package/dist/app.d.cts.map +1 -0
  206. package/dist/app.d.mts +5 -0
  207. package/dist/app.d.mts.map +1 -0
  208. package/dist/app.mjs +10 -0
  209. package/dist/app.mjs.map +1 -0
  210. package/dist/catalog.cjs +15 -0
  211. package/dist/catalog.cjs.map +1 -0
  212. package/dist/catalog.d.cts +14 -0
  213. package/dist/catalog.d.cts.map +1 -0
  214. package/dist/catalog.d.mts +14 -0
  215. package/dist/catalog.d.mts.map +1 -0
  216. package/dist/catalog.mjs +15 -0
  217. package/dist/catalog.mjs.map +1 -0
  218. package/dist/execute.cjs +18 -0
  219. package/dist/execute.cjs.map +1 -0
  220. package/dist/execute.mjs +18 -0
  221. package/dist/execute.mjs.map +1 -0
  222. package/dist/index.cjs +54 -0
  223. package/dist/index.d.cts +27 -0
  224. package/dist/index.d.mts +27 -0
  225. package/dist/index.mjs +28 -0
  226. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/onedesk
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `onedesk`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 24
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { onedeskCreateWorklog } from "@keystrokehq/onedesk/actions";
12
+
13
+ export default defineAgent({
14
+ key: "onedesk-agent",
15
+ tools: [onedeskCreateWorklog],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.onedesk.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeOnedeskTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["onedesk","executeOnedeskTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { onedesk } from \"./app\";\nimport { executeOnedeskTool } 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: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return onedesk.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeOnedeskTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { onedesk } from "./app.mjs";
2
+ import { executeOnedeskTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return onedesk.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeOnedeskTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { onedesk } from \"./app\";\nimport { executeOnedeskTool } 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: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return onedesk.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeOnedeskTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-worklog.ts
4
+ const OnedeskCreateWorklogInput = zod.z.object({
5
+ works: zod.z.number().describe("Number of work units (hours) logged, non-negative").optional(),
6
+ item_id: zod.z.number().int().describe("ID of the work item (task, ticket, project, etc.) to log time against"),
7
+ billable: zod.z.boolean().describe("Whether this work is billable").optional(),
8
+ comments: zod.z.string().describe("Comments or notes describing the work performed").optional(),
9
+ date_start: zod.z.string().describe("Start date and time of the work period in ISO 8601 format"),
10
+ percentage: zod.z.number().describe("Percentage of work completion (0-100)").optional(),
11
+ date_finish: zod.z.string().describe("Finish date and time of the work period in ISO 8601 format"),
12
+ lifecycle_status_id: zod.z.number().int().describe("Lifecycle status ID for the worklog entry (optional)").optional()
13
+ });
14
+ const OnedeskCreateWorklog_WorklogSchema = zod.z.object({
15
+ id: zod.z.number().int().describe("Unique identifier of the worklog entry"),
16
+ works: zod.z.number().describe("Number of work units (hours)").nullable().optional(),
17
+ edited: zod.z.string().describe("Timestamp when the worklog was last edited").nullable().optional(),
18
+ created: zod.z.string().describe("Timestamp when the worklog was created").nullable().optional(),
19
+ item_id: zod.z.number().int().describe("ID of the work item this worklog is for"),
20
+ billable: zod.z.boolean().describe("Whether the work is billable").nullable().optional(),
21
+ comments: zod.z.string().describe("Comments for the work").nullable().optional(),
22
+ date_start: zod.z.string().describe("Start date/time of the work period"),
23
+ percentage: zod.z.number().describe("Percentage of work completion").nullable().optional(),
24
+ date_finish: zod.z.string().describe("Finish date/time of the work period"),
25
+ lifecycle_status_id: zod.z.number().int().describe("Lifecycle status ID").nullable().optional()
26
+ });
27
+ const OnedeskCreateWorklogOutput = zod.z.object({ worklogs: zod.z.array(OnedeskCreateWorklog_WorklogSchema).describe("List containing the created worklog entry") });
28
+ const onedeskCreateWorklog = require_action.action("ONEDESK_CREATE_WORKLOG", {
29
+ slug: "onedesk-create-worklog",
30
+ name: "Create Worklog Entry",
31
+ description: "Create a worklog entry to track time spent on a work item (task, ticket, project, etc.). Records the start and finish time, work hours, completion percentage, and billability. Use this after obtaining a valid item_id from actions like GET_TASK_DETAILS.",
32
+ input: OnedeskCreateWorklogInput,
33
+ output: OnedeskCreateWorklogOutput
34
+ });
35
+ //#endregion
36
+ exports.onedeskCreateWorklog = onedeskCreateWorklog;
37
+
38
+ //# sourceMappingURL=create-worklog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-worklog.cjs","names":["z","action"],"sources":["../../src/actions/create-worklog.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskCreateWorklogInput: z.ZodTypeAny = z.object({\n works: z.number().describe(\"Number of work units (hours) logged, non-negative\").optional(),\n item_id: z.number().int().describe(\"ID of the work item (task, ticket, project, etc.) to log time against\"),\n billable: z.boolean().describe(\"Whether this work is billable\").optional(),\n comments: z.string().describe(\"Comments or notes describing the work performed\").optional(),\n date_start: z.string().describe(\"Start date and time of the work period in ISO 8601 format\"),\n percentage: z.number().describe(\"Percentage of work completion (0-100)\").optional(),\n date_finish: z.string().describe(\"Finish date and time of the work period in ISO 8601 format\"),\n lifecycle_status_id: z.number().int().describe(\"Lifecycle status ID for the worklog entry (optional)\").optional(),\n});\nconst OnedeskCreateWorklog_WorklogSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the worklog entry\"),\n works: z.number().describe(\"Number of work units (hours)\").nullable().optional(),\n edited: z.string().describe(\"Timestamp when the worklog was last edited\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the worklog was created\").nullable().optional(),\n item_id: z.number().int().describe(\"ID of the work item this worklog is for\"),\n billable: z.boolean().describe(\"Whether the work is billable\").nullable().optional(),\n comments: z.string().describe(\"Comments for the work\").nullable().optional(),\n date_start: z.string().describe(\"Start date/time of the work period\"),\n percentage: z.number().describe(\"Percentage of work completion\").nullable().optional(),\n date_finish: z.string().describe(\"Finish date/time of the work period\"),\n lifecycle_status_id: z.number().int().describe(\"Lifecycle status ID\").nullable().optional(),\n});\nexport const OnedeskCreateWorklogOutput: z.ZodTypeAny = z.object({\n worklogs: z.array(OnedeskCreateWorklog_WorklogSchema).describe(\"List containing the created worklog entry\"),\n});\n\nexport const onedeskCreateWorklog = action(\"ONEDESK_CREATE_WORKLOG\", {\n slug: \"onedesk-create-worklog\",\n name: \"Create Worklog Entry\",\n description: \"Create a worklog entry to track time spent on a work item (task, ticket, project, etc.). Records the start and finish time, work hours, completion percentage, and billability. Use this after obtaining a valid item_id from actions like GET_TASK_DETAILS.\",\n input: OnedeskCreateWorklogInput,\n output: OnedeskCreateWorklogOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE;CAC1G,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC7F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC5E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,UAAUA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2CAA2C,EAC5G,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-worklog.d.ts
4
+ declare const OnedeskCreateWorklogInput: z.ZodTypeAny;
5
+ declare const OnedeskCreateWorklogOutput: z.ZodTypeAny;
6
+ declare const onedeskCreateWorklog: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskCreateWorklog };
9
+ //# sourceMappingURL=create-worklog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-worklog.d.cts","names":[],"sources":["../../src/actions/create-worklog.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UASxC;AAAA,cAcW,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-worklog.d.ts
4
+ declare const OnedeskCreateWorklogInput: z.ZodTypeAny;
5
+ declare const OnedeskCreateWorklogOutput: z.ZodTypeAny;
6
+ declare const onedeskCreateWorklog: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskCreateWorklog };
9
+ //# sourceMappingURL=create-worklog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-worklog.d.mts","names":[],"sources":["../../src/actions/create-worklog.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UASxC;AAAA,cAcW,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-worklog.ts
4
+ const OnedeskCreateWorklogInput = z.object({
5
+ works: z.number().describe("Number of work units (hours) logged, non-negative").optional(),
6
+ item_id: z.number().int().describe("ID of the work item (task, ticket, project, etc.) to log time against"),
7
+ billable: z.boolean().describe("Whether this work is billable").optional(),
8
+ comments: z.string().describe("Comments or notes describing the work performed").optional(),
9
+ date_start: z.string().describe("Start date and time of the work period in ISO 8601 format"),
10
+ percentage: z.number().describe("Percentage of work completion (0-100)").optional(),
11
+ date_finish: z.string().describe("Finish date and time of the work period in ISO 8601 format"),
12
+ lifecycle_status_id: z.number().int().describe("Lifecycle status ID for the worklog entry (optional)").optional()
13
+ });
14
+ const OnedeskCreateWorklog_WorklogSchema = z.object({
15
+ id: z.number().int().describe("Unique identifier of the worklog entry"),
16
+ works: z.number().describe("Number of work units (hours)").nullable().optional(),
17
+ edited: z.string().describe("Timestamp when the worklog was last edited").nullable().optional(),
18
+ created: z.string().describe("Timestamp when the worklog was created").nullable().optional(),
19
+ item_id: z.number().int().describe("ID of the work item this worklog is for"),
20
+ billable: z.boolean().describe("Whether the work is billable").nullable().optional(),
21
+ comments: z.string().describe("Comments for the work").nullable().optional(),
22
+ date_start: z.string().describe("Start date/time of the work period"),
23
+ percentage: z.number().describe("Percentage of work completion").nullable().optional(),
24
+ date_finish: z.string().describe("Finish date/time of the work period"),
25
+ lifecycle_status_id: z.number().int().describe("Lifecycle status ID").nullable().optional()
26
+ });
27
+ const onedeskCreateWorklog = action("ONEDESK_CREATE_WORKLOG", {
28
+ slug: "onedesk-create-worklog",
29
+ name: "Create Worklog Entry",
30
+ description: "Create a worklog entry to track time spent on a work item (task, ticket, project, etc.). Records the start and finish time, work hours, completion percentage, and billability. Use this after obtaining a valid item_id from actions like GET_TASK_DETAILS.",
31
+ input: OnedeskCreateWorklogInput,
32
+ output: z.object({ worklogs: z.array(OnedeskCreateWorklog_WorklogSchema).describe("List containing the created worklog entry") })
33
+ });
34
+ //#endregion
35
+ export { onedeskCreateWorklog };
36
+
37
+ //# sourceMappingURL=create-worklog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-worklog.mjs","names":[],"sources":["../../src/actions/create-worklog.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskCreateWorklogInput: z.ZodTypeAny = z.object({\n works: z.number().describe(\"Number of work units (hours) logged, non-negative\").optional(),\n item_id: z.number().int().describe(\"ID of the work item (task, ticket, project, etc.) to log time against\"),\n billable: z.boolean().describe(\"Whether this work is billable\").optional(),\n comments: z.string().describe(\"Comments or notes describing the work performed\").optional(),\n date_start: z.string().describe(\"Start date and time of the work period in ISO 8601 format\"),\n percentage: z.number().describe(\"Percentage of work completion (0-100)\").optional(),\n date_finish: z.string().describe(\"Finish date and time of the work period in ISO 8601 format\"),\n lifecycle_status_id: z.number().int().describe(\"Lifecycle status ID for the worklog entry (optional)\").optional(),\n});\nconst OnedeskCreateWorklog_WorklogSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the worklog entry\"),\n works: z.number().describe(\"Number of work units (hours)\").nullable().optional(),\n edited: z.string().describe(\"Timestamp when the worklog was last edited\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the worklog was created\").nullable().optional(),\n item_id: z.number().int().describe(\"ID of the work item this worklog is for\"),\n billable: z.boolean().describe(\"Whether the work is billable\").nullable().optional(),\n comments: z.string().describe(\"Comments for the work\").nullable().optional(),\n date_start: z.string().describe(\"Start date/time of the work period\"),\n percentage: z.number().describe(\"Percentage of work completion\").nullable().optional(),\n date_finish: z.string().describe(\"Finish date/time of the work period\"),\n lifecycle_status_id: z.number().int().describe(\"Lifecycle status ID\").nullable().optional(),\n});\nexport const OnedeskCreateWorklogOutput: z.ZodTypeAny = z.object({\n worklogs: z.array(OnedeskCreateWorklog_WorklogSchema).describe(\"List containing the created worklog entry\"),\n});\n\nexport const onedeskCreateWorklog = action(\"ONEDESK_CREATE_WORKLOG\", {\n slug: \"onedesk-create-worklog\",\n name: \"Create Worklog Entry\",\n description: \"Create a worklog entry to track time spent on a work item (task, ticket, project, etc.). Records the start and finish time, work hours, completion percentage, and billability. Use this after obtaining a valid item_id from actions like GET_TASK_DETAILS.\",\n input: OnedeskCreateWorklogInput,\n output: OnedeskCreateWorklogOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE;CAC1G,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC7F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC5E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,UAAU,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2CAA2C,EAC5G,CAOU;AACV,CAAC"}
@@ -0,0 +1,20 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-attachment.ts
4
+ const OnedeskDeleteAttachmentInput = zod.z.object({ attachment_id: zod.z.number().int().describe("Unique identifier of the attachment to delete") }).describe("Parameters required to delete an attachment in OneDesk.");
5
+ const OnedeskDeleteAttachmentOutput = zod.z.object({
6
+ deleted: zod.z.boolean().describe("True if the attachment was successfully deleted (HTTP 200/202/204); False if the attachment was not found (HTTP 404)"),
7
+ message: zod.z.string().describe("Additional context about the deletion result").nullable().optional(),
8
+ attachment_id: zod.z.number().int().describe("Identifier of the attachment")
9
+ }).describe("Response after attempting to delete an attachment in OneDesk.");
10
+ const onedeskDeleteAttachment = require_action.action("ONEDESK_DELETE_ATTACHMENT", {
11
+ slug: "onedesk-delete-attachment",
12
+ name: "Delete Attachment",
13
+ description: "Delete a specific attachment from OneDesk by its ID. To use this tool, provide the attachment_id. Note that the OneDesk Public API has limited attachment management capabilities. Attachments are typically associated with items (tickets/tasks) and can be viewed via GET_ATTACHMENTS when fetching item details. Returns deleted=True if the attachment was successfully deleted (200/202/204). Returns deleted=False if the attachment was not found (404).",
14
+ input: OnedeskDeleteAttachmentInput,
15
+ output: OnedeskDeleteAttachmentOutput
16
+ });
17
+ //#endregion
18
+ exports.onedeskDeleteAttachment = onedeskDeleteAttachment;
19
+
20
+ //# sourceMappingURL=delete-attachment.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-attachment.cjs","names":["z","action"],"sources":["../../src/actions/delete-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteAttachmentInput: z.ZodTypeAny = z.object({\n attachment_id: z.number().int().describe(\"Unique identifier of the attachment to delete\"),\n}).describe(\"Parameters required to delete an attachment in OneDesk.\");\nexport const OnedeskDeleteAttachmentOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"True if the attachment was successfully deleted (HTTP 200/202/204); False if the attachment was not found (HTTP 404)\"),\n message: z.string().describe(\"Additional context about the deletion result\").nullable().optional(),\n attachment_id: z.number().int().describe(\"Identifier of the attachment\"),\n}).describe(\"Response after attempting to delete an attachment in OneDesk.\");\n\nexport const onedeskDeleteAttachment = action(\"ONEDESK_DELETE_ATTACHMENT\", {\n slug: \"onedesk-delete-attachment\",\n name: \"Delete Attachment\",\n description: \"Delete a specific attachment from OneDesk by its ID. To use this tool, provide the attachment_id. Note that the OneDesk Public API has limited attachment management capabilities. Attachments are typically associated with items (tickets/tasks) and can be viewed via GET_ATTACHMENTS when fetching item details. Returns deleted=True if the attachment was successfully deleted (200/202/204). Returns deleted=False if the attachment was not found (404).\",\n input: OnedeskDeleteAttachmentInput,\n output: OnedeskDeleteAttachmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sHAAsH;CACpJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;AACzE,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-attachment.d.ts
4
+ declare const OnedeskDeleteAttachmentInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteAttachmentOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteAttachment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteAttachment };
9
+ //# sourceMappingURL=delete-attachment.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-attachment.d.cts","names":[],"sources":["../../src/actions/delete-attachment.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEyB;AAAA,cACzD,6BAAA,EAA+B,CAAA,CAAE,UAI8B;AAAA,cAE/D,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-attachment.d.ts
4
+ declare const OnedeskDeleteAttachmentInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteAttachmentOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteAttachment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteAttachment };
9
+ //# sourceMappingURL=delete-attachment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-attachment.d.mts","names":[],"sources":["../../src/actions/delete-attachment.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEyB;AAAA,cACzD,6BAAA,EAA+B,CAAA,CAAE,UAI8B;AAAA,cAE/D,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,17 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const onedeskDeleteAttachment = action("ONEDESK_DELETE_ATTACHMENT", {
4
+ slug: "onedesk-delete-attachment",
5
+ name: "Delete Attachment",
6
+ description: "Delete a specific attachment from OneDesk by its ID. To use this tool, provide the attachment_id. Note that the OneDesk Public API has limited attachment management capabilities. Attachments are typically associated with items (tickets/tasks) and can be viewed via GET_ATTACHMENTS when fetching item details. Returns deleted=True if the attachment was successfully deleted (200/202/204). Returns deleted=False if the attachment was not found (404).",
7
+ input: z.object({ attachment_id: z.number().int().describe("Unique identifier of the attachment to delete") }).describe("Parameters required to delete an attachment in OneDesk."),
8
+ output: z.object({
9
+ deleted: z.boolean().describe("True if the attachment was successfully deleted (HTTP 200/202/204); False if the attachment was not found (HTTP 404)"),
10
+ message: z.string().describe("Additional context about the deletion result").nullable().optional(),
11
+ attachment_id: z.number().int().describe("Identifier of the attachment")
12
+ }).describe("Response after attempting to delete an attachment in OneDesk.")
13
+ });
14
+ //#endregion
15
+ export { onedeskDeleteAttachment };
16
+
17
+ //# sourceMappingURL=delete-attachment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-attachment.mjs","names":[],"sources":["../../src/actions/delete-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteAttachmentInput: z.ZodTypeAny = z.object({\n attachment_id: z.number().int().describe(\"Unique identifier of the attachment to delete\"),\n}).describe(\"Parameters required to delete an attachment in OneDesk.\");\nexport const OnedeskDeleteAttachmentOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"True if the attachment was successfully deleted (HTTP 200/202/204); False if the attachment was not found (HTTP 404)\"),\n message: z.string().describe(\"Additional context about the deletion result\").nullable().optional(),\n attachment_id: z.number().int().describe(\"Identifier of the attachment\"),\n}).describe(\"Response after attempting to delete an attachment in OneDesk.\");\n\nexport const onedeskDeleteAttachment = action(\"ONEDESK_DELETE_ATTACHMENT\", {\n slug: \"onedesk-delete-attachment\",\n name: \"Delete Attachment\",\n description: \"Delete a specific attachment from OneDesk by its ID. To use this tool, provide the attachment_id. Note that the OneDesk Public API has limited attachment management capabilities. Attachments are typically associated with items (tickets/tasks) and can be viewed via GET_ATTACHMENTS when fetching item details. Returns deleted=True if the attachment was successfully deleted (200/202/204). Returns deleted=False if the attachment was not found (404).\",\n input: OnedeskDeleteAttachmentInput,\n output: OnedeskDeleteAttachmentOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwD,EAAE,OAAO,EACjE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EAC1F,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAXyD,EAAE,OAAO;EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sHAAsH;EACpJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CACzE,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-comment.ts
4
+ const OnedeskDeleteCommentInput = zod.z.object({ comment_id: zod.z.number().int().describe("Unique identifier of the comment to delete") }).describe("Parameters required to delete a comment in OneDesk.");
5
+ const OnedeskDeleteCommentOutput = zod.z.object({
6
+ deleted: zod.z.boolean().describe("Whether the comment was successfully deleted"),
7
+ message: zod.z.string().describe("Additional context about the deletion attempt (e.g., 'not found', 'deleted successfully')").nullable().optional(),
8
+ comment_id: zod.z.number().int().describe("Identifier of the comment"),
9
+ status_code: zod.z.number().int().describe("HTTP status code from the API response").nullable().optional()
10
+ }).describe("Response confirming the comment deletion status.");
11
+ const onedeskDeleteComment = require_action.action("ONEDESK_DELETE_COMMENT", {
12
+ slug: "onedesk-delete-comment",
13
+ name: "Delete Comment",
14
+ description: "Deletes a comment from OneDesk by its ID. Use this tool to permanently remove a comment when it's no longer needed. Note: OneDesk's Public API has limited DELETE support for comments. This action tries multiple possible endpoints to maximize compatibility. Comments may be referred to as \"conversations\" in the API. Example: {'comment_id': 12345} Returns: Deletion status with context about success/failure (e.g., comment not found, permission denied)",
15
+ input: OnedeskDeleteCommentInput,
16
+ output: OnedeskDeleteCommentOutput
17
+ });
18
+ //#endregion
19
+ exports.onedeskDeleteComment = onedeskDeleteComment;
20
+
21
+ //# sourceMappingURL=delete-comment.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-comment.cjs","names":["z","action"],"sources":["../../src/actions/delete-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteCommentInput: z.ZodTypeAny = z.object({\n comment_id: z.number().int().describe(\"Unique identifier of the comment to delete\"),\n}).describe(\"Parameters required to delete a comment in OneDesk.\");\nexport const OnedeskDeleteCommentOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the comment was successfully deleted\"),\n message: z.string().describe(\"Additional context about the deletion attempt (e.g., 'not found', 'deleted successfully')\").nullable().optional(),\n comment_id: z.number().int().describe(\"Identifier of the comment\"),\n status_code: z.number().int().describe(\"HTTP status code from the API response\").nullable().optional(),\n}).describe(\"Response confirming the comment deletion status.\");\n\nexport const onedeskDeleteComment = action(\"ONEDESK_DELETE_COMMENT\", {\n slug: \"onedesk-delete-comment\",\n name: \"Delete Comment\",\n description: \"Deletes a comment from OneDesk by its ID. Use this tool to permanently remove a comment when it's no longer needed. Note: OneDesk's Public API has limited DELETE support for comments. This action tries multiple possible endpoints to maximize compatibility. Comments may be referred to as \\\"conversations\\\" in the API. Example: {'comment_id': 12345} Returns: Deletion status with context about success/failure (e.g., comment not found, permission denied)\",\n input: OnedeskDeleteCommentInput,\n output: OnedeskDeleteCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-comment.d.ts
4
+ declare const OnedeskDeleteCommentInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteCommentOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteComment };
9
+ //# sourceMappingURL=delete-comment.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-comment.d.cts","names":[],"sources":["../../src/actions/delete-comment.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEwB;AAAA,cACrD,0BAAA,EAA4B,CAAA,CAAE,UAKoB;AAAA,cAElD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-comment.d.ts
4
+ declare const OnedeskDeleteCommentInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteCommentOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteComment };
9
+ //# sourceMappingURL=delete-comment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-comment.d.mts","names":[],"sources":["../../src/actions/delete-comment.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEwB;AAAA,cACrD,0BAAA,EAA4B,CAAA,CAAE,UAKoB;AAAA,cAElD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,18 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const onedeskDeleteComment = action("ONEDESK_DELETE_COMMENT", {
4
+ slug: "onedesk-delete-comment",
5
+ name: "Delete Comment",
6
+ description: "Deletes a comment from OneDesk by its ID. Use this tool to permanently remove a comment when it's no longer needed. Note: OneDesk's Public API has limited DELETE support for comments. This action tries multiple possible endpoints to maximize compatibility. Comments may be referred to as \"conversations\" in the API. Example: {'comment_id': 12345} Returns: Deletion status with context about success/failure (e.g., comment not found, permission denied)",
7
+ input: z.object({ comment_id: z.number().int().describe("Unique identifier of the comment to delete") }).describe("Parameters required to delete a comment in OneDesk."),
8
+ output: z.object({
9
+ deleted: z.boolean().describe("Whether the comment was successfully deleted"),
10
+ message: z.string().describe("Additional context about the deletion attempt (e.g., 'not found', 'deleted successfully')").nullable().optional(),
11
+ comment_id: z.number().int().describe("Identifier of the comment"),
12
+ status_code: z.number().int().describe("HTTP status code from the API response").nullable().optional()
13
+ }).describe("Response confirming the comment deletion status.")
14
+ });
15
+ //#endregion
16
+ export { onedeskDeleteComment };
17
+
18
+ //# sourceMappingURL=delete-comment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-comment.mjs","names":[],"sources":["../../src/actions/delete-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteCommentInput: z.ZodTypeAny = z.object({\n comment_id: z.number().int().describe(\"Unique identifier of the comment to delete\"),\n}).describe(\"Parameters required to delete a comment in OneDesk.\");\nexport const OnedeskDeleteCommentOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the comment was successfully deleted\"),\n message: z.string().describe(\"Additional context about the deletion attempt (e.g., 'not found', 'deleted successfully')\").nullable().optional(),\n comment_id: z.number().int().describe(\"Identifier of the comment\"),\n status_code: z.number().int().describe(\"HTTP status code from the API response\").nullable().optional(),\n}).describe(\"Response confirming the comment deletion status.\");\n\nexport const onedeskDeleteComment = action(\"ONEDESK_DELETE_COMMENT\", {\n slug: \"onedesk-delete-comment\",\n name: \"Delete Comment\",\n description: \"Deletes a comment from OneDesk by its ID. Use this tool to permanently remove a comment when it's no longer needed. Note: OneDesk's Public API has limited DELETE support for comments. This action tries multiple possible endpoints to maximize compatibility. Comments may be referred to as \\\"conversations\\\" in the API. Example: {'comment_id': 12345} Returns: Deletion status with context about success/failure (e.g., comment not found, permission denied)\",\n input: OnedeskDeleteCommentInput,\n output: OnedeskDeleteCommentOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,qDAYH;CACP,QAZsD,EAAE,OAAO;EAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;EAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;EACjE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -0,0 +1,16 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-customer.ts
4
+ const OnedeskDeleteCustomerInput = zod.z.object({ customer_id: zod.z.string().describe("The unique identifier of the customer to delete from OneDesk. This can be a numeric ID or alphanumeric string.") }).describe("Request model for deleting a customer from OneDesk.");
5
+ const OnedeskDeleteCustomerOutput = zod.z.object({ success: zod.z.boolean().describe("True if customer was successfully deleted (200/202/204), False if customer was not found (404)") }).describe("Response model for deleting a customer.");
6
+ const onedeskDeleteCustomer = require_action.action("ONEDESK_DELETE_CUSTOMER", {
7
+ slug: "onedesk-delete-customer",
8
+ name: "Delete Customer",
9
+ description: "Deletes a customer from OneDesk using the DELETE /customers/{id} endpoint. This action permanently removes the customer record from the OneDesk account. Returns: - success=true: Customer was successfully deleted (HTTP 200/202/204) - success=false: Customer not found or already deleted (HTTP 404) Example usage: {'customer_id': '12345'}",
10
+ input: OnedeskDeleteCustomerInput,
11
+ output: OnedeskDeleteCustomerOutput
12
+ });
13
+ //#endregion
14
+ exports.onedeskDeleteCustomer = onedeskDeleteCustomer;
15
+
16
+ //# sourceMappingURL=delete-customer.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"The unique identifier of the customer to delete from OneDesk. This can be a numeric ID or alphanumeric string.\"),\n}).describe(\"Request model for deleting a customer from OneDesk.\");\nexport const OnedeskDeleteCustomerOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if customer was successfully deleted (200/202/204), False if customer was not found (404)\"),\n}).describe(\"Response model for deleting a customer.\");\n\nexport const onedeskDeleteCustomer = action(\"ONEDESK_DELETE_CUSTOMER\", {\n slug: \"onedesk-delete-customer\",\n name: \"Delete Customer\",\n description: \"Deletes a customer from OneDesk using the DELETE /customers/{id} endpoint. This action permanently removes the customer record from the OneDesk account. Returns: - success=true: Customer was successfully deleted (HTTP 200/202/204) - success=false: Customer not found or already deleted (HTTP 404) Example usage: {'customer_id': '12345'}\",\n input: OnedeskDeleteCustomerInput,\n output: OnedeskDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EACnJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,EAChI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-customer.d.ts
4
+ declare const OnedeskDeleteCustomerInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteCustomerOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteCustomer };
9
+ //# sourceMappingURL=delete-customer.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEuB;AAAA,cACrD,2BAAA,EAA6B,CAAA,CAAE,UAEU;AAAA,cAEzC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-customer.d.ts
4
+ declare const OnedeskDeleteCustomerInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteCustomerOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteCustomer };
9
+ //# sourceMappingURL=delete-customer.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEuB;AAAA,cACrD,2BAAA,EAA6B,CAAA,CAAE,UAEU;AAAA,cAEzC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const onedeskDeleteCustomer = action("ONEDESK_DELETE_CUSTOMER", {
4
+ slug: "onedesk-delete-customer",
5
+ name: "Delete Customer",
6
+ description: "Deletes a customer from OneDesk using the DELETE /customers/{id} endpoint. This action permanently removes the customer record from the OneDesk account. Returns: - success=true: Customer was successfully deleted (HTTP 200/202/204) - success=false: Customer not found or already deleted (HTTP 404) Example usage: {'customer_id': '12345'}",
7
+ input: z.object({ customer_id: z.string().describe("The unique identifier of the customer to delete from OneDesk. This can be a numeric ID or alphanumeric string.") }).describe("Request model for deleting a customer from OneDesk."),
8
+ output: z.object({ success: z.boolean().describe("True if customer was successfully deleted (200/202/204), False if customer was not found (404)") }).describe("Response model for deleting a customer.")
9
+ });
10
+ //#endregion
11
+ export { onedeskDeleteCustomer };
12
+
13
+ //# sourceMappingURL=delete-customer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"The unique identifier of the customer to delete from OneDesk. This can be a numeric ID or alphanumeric string.\"),\n}).describe(\"Request model for deleting a customer from OneDesk.\");\nexport const OnedeskDeleteCustomerOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if customer was successfully deleted (200/202/204), False if customer was not found (404)\"),\n}).describe(\"Response model for deleting a customer.\");\n\nexport const onedeskDeleteCustomer = action(\"ONEDESK_DELETE_CUSTOMER\", {\n slug: \"onedesk-delete-customer\",\n name: \"Delete Customer\",\n description: \"Deletes a customer from OneDesk using the DELETE /customers/{id} endpoint. This action permanently removes the customer record from the OneDesk account. Returns: - success=true: Customer was successfully deleted (HTTP 200/202/204) - success=false: Customer not found or already deleted (HTTP 404) Example usage: {'customer_id': '12345'}\",\n input: OnedeskDeleteCustomerInput,\n output: OnedeskDeleteCustomerOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsD,EAAE,OAAO,EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,EACnJ,CAAC,CAAC,CAAC,SAAS,qDASH;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,EAChI,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-message.ts
4
+ const OnedeskDeleteMessageInput = zod.z.object({ message_id: zod.z.number().int().describe("The unique numeric identifier of the message to delete from OneDesk") }).describe("Request model for deleting a message.");
5
+ const OnedeskDeleteMessageOutput = zod.z.object({
6
+ deleted: zod.z.boolean().default(true).describe("Always true when the operation succeeds. The message is deleted or already doesn't exist (idempotent operation).").nullable().optional(),
7
+ message_id: zod.z.number().int().describe("The message ID that was deleted (echoes the request parameter for confirmation)").nullable().optional()
8
+ }).describe("Response model for deleting a message.");
9
+ const onedeskDeleteMessage = require_action.action("ONEDESK_DELETE_MESSAGE", {
10
+ slug: "onedesk-delete-message",
11
+ name: "Delete Message",
12
+ description: "Deletes a message from OneDesk by its unique message ID. Returns success if the message is deleted or doesn't exist (idempotent operation). Use this when you need to permanently remove a message from the system.",
13
+ input: OnedeskDeleteMessageInput,
14
+ output: OnedeskDeleteMessageOutput
15
+ });
16
+ //#endregion
17
+ exports.onedeskDeleteMessage = onedeskDeleteMessage;
18
+
19
+ //# sourceMappingURL=delete-message.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-message.cjs","names":["z","action"],"sources":["../../src/actions/delete-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteMessageInput: z.ZodTypeAny = z.object({\n message_id: z.number().int().describe(\"The unique numeric identifier of the message to delete from OneDesk\"),\n}).describe(\"Request model for deleting a message.\");\nexport const OnedeskDeleteMessageOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().default(true).describe(\"Always true when the operation succeeds. The message is deleted or already doesn't exist (idempotent operation).\").nullable().optional(),\n message_id: z.number().int().describe(\"The message ID that was deleted (echoes the request parameter for confirmation)\").nullable().optional(),\n}).describe(\"Response model for deleting a message.\");\n\nexport const onedeskDeleteMessage = action(\"ONEDESK_DELETE_MESSAGE\", {\n slug: \"onedesk-delete-message\",\n name: \"Delete Message\",\n description: \"Deletes a message from OneDesk by its unique message ID. Returns success if the message is deleted or doesn't exist (idempotent operation). Use this when you need to permanently remove a message from the system.\",\n input: OnedeskDeleteMessageInput,\n output: OnedeskDeleteMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,EAC7G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-message.d.ts
4
+ declare const OnedeskDeleteMessageInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteMessageOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteMessage };
9
+ //# sourceMappingURL=delete-message.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-message.d.cts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-message.d.ts
4
+ declare const OnedeskDeleteMessageInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteMessageOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteMessage };
9
+ //# sourceMappingURL=delete-message.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-message.d.mts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const onedeskDeleteMessage = action("ONEDESK_DELETE_MESSAGE", {
4
+ slug: "onedesk-delete-message",
5
+ name: "Delete Message",
6
+ description: "Deletes a message from OneDesk by its unique message ID. Returns success if the message is deleted or doesn't exist (idempotent operation). Use this when you need to permanently remove a message from the system.",
7
+ input: z.object({ message_id: z.number().int().describe("The unique numeric identifier of the message to delete from OneDesk") }).describe("Request model for deleting a message."),
8
+ output: z.object({
9
+ deleted: z.boolean().default(true).describe("Always true when the operation succeeds. The message is deleted or already doesn't exist (idempotent operation).").nullable().optional(),
10
+ message_id: z.number().int().describe("The message ID that was deleted (echoes the request parameter for confirmation)").nullable().optional()
11
+ }).describe("Response model for deleting a message.")
12
+ });
13
+ //#endregion
14
+ export { onedeskDeleteMessage };
15
+
16
+ //# sourceMappingURL=delete-message.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-message.mjs","names":[],"sources":["../../src/actions/delete-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteMessageInput: z.ZodTypeAny = z.object({\n message_id: z.number().int().describe(\"The unique numeric identifier of the message to delete from OneDesk\"),\n}).describe(\"Request model for deleting a message.\");\nexport const OnedeskDeleteMessageOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().default(true).describe(\"Always true when the operation succeeds. The message is deleted or already doesn't exist (idempotent operation).\").nullable().optional(),\n message_id: z.number().int().describe(\"The message ID that was deleted (echoes the request parameter for confirmation)\").nullable().optional(),\n}).describe(\"Response model for deleting a message.\");\n\nexport const onedeskDeleteMessage = action(\"ONEDESK_DELETE_MESSAGE\", {\n slug: \"onedesk-delete-message\",\n name: \"Delete Message\",\n description: \"Deletes a message from OneDesk by its unique message ID. Returns success if the message is deleted or doesn't exist (idempotent operation). Use this when you need to permanently remove a message from the system.\",\n input: OnedeskDeleteMessageInput,\n output: OnedeskDeleteMessageOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,EAC7G,CAAC,CAAC,CAAC,SAAS,uCAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpL,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-project.ts
4
+ const OnedeskDeleteProjectInput = zod.z.object({ project_id: zod.z.number().int().describe("Unique identifier of the project to delete") }).describe("Request model for deleting a project.");
5
+ const OnedeskDeleteProjectOutput = zod.z.object({
6
+ deleted: zod.z.boolean().describe("Whether the project was successfully deleted"),
7
+ project_id: zod.z.number().int().describe("Identifier of the deleted project")
8
+ }).describe("Response model for deleting a project.");
9
+ const onedeskDeleteProject = require_action.action("ONEDESK_DELETE_PROJECT", {
10
+ slug: "onedesk-delete-project",
11
+ name: "Delete Project",
12
+ description: "Delete a project in OneDesk by its ID. **API LIMITATION**: The OneDesk Public API does not support DELETE operations. DELETE requests return 405 Method Not Allowed on /rest/public/items endpoints. The public API only supports: - POST /items/ (create) - GET /items/id/{id} (retrieve by ID) - GET /items/externalId/{externalId} (retrieve by external ID) - GET /organization/profileAndPolicy (organization info) **Alternatives**: - Use OneDesk web application to delete projects manually - Contact OneDesk support for private API access - Use ONEDESK_GET_ISSUE_DETAILS if you need to check item status This action will fail with a clear error explaining the limitation.",
13
+ input: OnedeskDeleteProjectInput,
14
+ output: OnedeskDeleteProjectOutput
15
+ });
16
+ //#endregion
17
+ exports.onedeskDeleteProject = onedeskDeleteProject;
18
+
19
+ //# sourceMappingURL=delete-project.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-project.cjs","names":["z","action"],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteProjectInput: z.ZodTypeAny = z.object({\n project_id: z.number().int().describe(\"Unique identifier of the project to delete\"),\n}).describe(\"Request model for deleting a project.\");\nexport const OnedeskDeleteProjectOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the project was successfully deleted\"),\n project_id: z.number().int().describe(\"Identifier of the deleted project\"),\n}).describe(\"Response model for deleting a project.\");\n\nexport const onedeskDeleteProject = action(\"ONEDESK_DELETE_PROJECT\", {\n slug: \"onedesk-delete-project\",\n name: \"Delete Project\",\n description: \"Delete a project in OneDesk by its ID. **API LIMITATION**: The OneDesk Public API does not support DELETE operations. DELETE requests return 405 Method Not Allowed on /rest/public/items endpoints. The public API only supports: - POST /items/ (create) - GET /items/id/{id} (retrieve by ID) - GET /items/externalId/{externalId} (retrieve by external ID) - GET /organization/profileAndPolicy (organization info) **Alternatives**: - Use OneDesk web application to delete projects manually - Contact OneDesk support for private API access - Use ONEDESK_GET_ISSUE_DETAILS if you need to check item status This action will fail with a clear error explaining the limitation.\",\n input: OnedeskDeleteProjectInput,\n output: OnedeskDeleteProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;AAC3E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-project.d.ts
4
+ declare const OnedeskDeleteProjectInput: z.ZodTypeAny;
5
+ declare const OnedeskDeleteProjectOutput: z.ZodTypeAny;
6
+ declare const onedeskDeleteProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { onedeskDeleteProject };
9
+ //# sourceMappingURL=delete-project.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-project.d.cts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}