@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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-worklog.cjs +38 -0
- package/dist/actions/create-worklog.cjs.map +1 -0
- package/dist/actions/create-worklog.d.cts +9 -0
- package/dist/actions/create-worklog.d.cts.map +1 -0
- package/dist/actions/create-worklog.d.mts +9 -0
- package/dist/actions/create-worklog.d.mts.map +1 -0
- package/dist/actions/create-worklog.mjs +37 -0
- package/dist/actions/create-worklog.mjs.map +1 -0
- package/dist/actions/delete-attachment.cjs +20 -0
- package/dist/actions/delete-attachment.cjs.map +1 -0
- package/dist/actions/delete-attachment.d.cts +9 -0
- package/dist/actions/delete-attachment.d.cts.map +1 -0
- package/dist/actions/delete-attachment.d.mts +9 -0
- package/dist/actions/delete-attachment.d.mts.map +1 -0
- package/dist/actions/delete-attachment.mjs +17 -0
- package/dist/actions/delete-attachment.mjs.map +1 -0
- package/dist/actions/delete-comment.cjs +21 -0
- package/dist/actions/delete-comment.cjs.map +1 -0
- package/dist/actions/delete-comment.d.cts +9 -0
- package/dist/actions/delete-comment.d.cts.map +1 -0
- package/dist/actions/delete-comment.d.mts +9 -0
- package/dist/actions/delete-comment.d.mts.map +1 -0
- package/dist/actions/delete-comment.mjs +18 -0
- package/dist/actions/delete-comment.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +16 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +13 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-message.cjs +19 -0
- package/dist/actions/delete-message.cjs.map +1 -0
- package/dist/actions/delete-message.d.cts +9 -0
- package/dist/actions/delete-message.d.cts.map +1 -0
- package/dist/actions/delete-message.d.mts +9 -0
- package/dist/actions/delete-message.d.mts.map +1 -0
- package/dist/actions/delete-message.mjs +16 -0
- package/dist/actions/delete-message.mjs.map +1 -0
- package/dist/actions/delete-project.cjs +19 -0
- package/dist/actions/delete-project.cjs.map +1 -0
- package/dist/actions/delete-project.d.cts +9 -0
- package/dist/actions/delete-project.d.cts.map +1 -0
- package/dist/actions/delete-project.d.mts +9 -0
- package/dist/actions/delete-project.d.mts.map +1 -0
- package/dist/actions/delete-project.mjs +16 -0
- package/dist/actions/delete-project.mjs.map +1 -0
- package/dist/actions/delete-requirement.cjs +16 -0
- package/dist/actions/delete-requirement.cjs.map +1 -0
- package/dist/actions/delete-requirement.d.cts +9 -0
- package/dist/actions/delete-requirement.d.cts.map +1 -0
- package/dist/actions/delete-requirement.d.mts +9 -0
- package/dist/actions/delete-requirement.d.mts.map +1 -0
- package/dist/actions/delete-requirement.mjs +13 -0
- package/dist/actions/delete-requirement.mjs.map +1 -0
- package/dist/actions/delete-task.cjs +19 -0
- package/dist/actions/delete-task.cjs.map +1 -0
- package/dist/actions/delete-task.d.cts +9 -0
- package/dist/actions/delete-task.d.cts.map +1 -0
- package/dist/actions/delete-task.d.mts +9 -0
- package/dist/actions/delete-task.d.mts.map +1 -0
- package/dist/actions/delete-task.mjs +16 -0
- package/dist/actions/delete-task.mjs.map +1 -0
- package/dist/actions/delete-ticket.cjs +21 -0
- package/dist/actions/delete-ticket.cjs.map +1 -0
- package/dist/actions/delete-ticket.d.cts +9 -0
- package/dist/actions/delete-ticket.d.cts.map +1 -0
- package/dist/actions/delete-ticket.d.mts +9 -0
- package/dist/actions/delete-ticket.d.mts.map +1 -0
- package/dist/actions/delete-ticket.mjs +18 -0
- package/dist/actions/delete-ticket.mjs.map +1 -0
- package/dist/actions/delete-timesheet.cjs +19 -0
- package/dist/actions/delete-timesheet.cjs.map +1 -0
- package/dist/actions/delete-timesheet.d.cts +9 -0
- package/dist/actions/delete-timesheet.d.cts.map +1 -0
- package/dist/actions/delete-timesheet.d.mts +9 -0
- package/dist/actions/delete-timesheet.d.mts.map +1 -0
- package/dist/actions/delete-timesheet.mjs +16 -0
- package/dist/actions/delete-timesheet.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +20 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +17 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/get-attachments.cjs +30 -0
- package/dist/actions/get-attachments.cjs.map +1 -0
- package/dist/actions/get-attachments.d.cts +9 -0
- package/dist/actions/get-attachments.d.cts.map +1 -0
- package/dist/actions/get-attachments.d.mts +9 -0
- package/dist/actions/get-attachments.d.mts.map +1 -0
- package/dist/actions/get-attachments.mjs +29 -0
- package/dist/actions/get-attachments.mjs.map +1 -0
- package/dist/actions/get-comment-details.cjs +23 -0
- package/dist/actions/get-comment-details.cjs.map +1 -0
- package/dist/actions/get-comment-details.d.cts +9 -0
- package/dist/actions/get-comment-details.d.cts.map +1 -0
- package/dist/actions/get-comment-details.d.mts +9 -0
- package/dist/actions/get-comment-details.d.mts.map +1 -0
- package/dist/actions/get-comment-details.mjs +20 -0
- package/dist/actions/get-comment-details.mjs.map +1 -0
- package/dist/actions/get-comments.cjs +24 -0
- package/dist/actions/get-comments.cjs.map +1 -0
- package/dist/actions/get-comments.d.cts +9 -0
- package/dist/actions/get-comments.d.cts.map +1 -0
- package/dist/actions/get-comments.d.mts +9 -0
- package/dist/actions/get-comments.d.mts.map +1 -0
- package/dist/actions/get-comments.mjs +23 -0
- package/dist/actions/get-comments.mjs.map +1 -0
- package/dist/actions/get-feedback-details.cjs +36 -0
- package/dist/actions/get-feedback-details.cjs.map +1 -0
- package/dist/actions/get-feedback-details.d.cts +9 -0
- package/dist/actions/get-feedback-details.d.cts.map +1 -0
- package/dist/actions/get-feedback-details.d.mts +9 -0
- package/dist/actions/get-feedback-details.d.mts.map +1 -0
- package/dist/actions/get-feedback-details.mjs +33 -0
- package/dist/actions/get-feedback-details.mjs.map +1 -0
- package/dist/actions/get-feedback.cjs +38 -0
- package/dist/actions/get-feedback.cjs.map +1 -0
- package/dist/actions/get-feedback.d.cts +9 -0
- package/dist/actions/get-feedback.d.cts.map +1 -0
- package/dist/actions/get-feedback.d.mts +9 -0
- package/dist/actions/get-feedback.d.mts.map +1 -0
- package/dist/actions/get-feedback.mjs +37 -0
- package/dist/actions/get-feedback.mjs.map +1 -0
- package/dist/actions/get-issue-details.cjs +28 -0
- package/dist/actions/get-issue-details.cjs.map +1 -0
- package/dist/actions/get-issue-details.d.cts +9 -0
- package/dist/actions/get-issue-details.d.cts.map +1 -0
- package/dist/actions/get-issue-details.d.mts +9 -0
- package/dist/actions/get-issue-details.d.mts.map +1 -0
- package/dist/actions/get-issue-details.mjs +25 -0
- package/dist/actions/get-issue-details.mjs.map +1 -0
- package/dist/actions/get-issues.cjs +29 -0
- package/dist/actions/get-issues.cjs.map +1 -0
- package/dist/actions/get-issues.d.cts +9 -0
- package/dist/actions/get-issues.d.cts.map +1 -0
- package/dist/actions/get-issues.d.mts +9 -0
- package/dist/actions/get-issues.d.mts.map +1 -0
- package/dist/actions/get-issues.mjs +28 -0
- package/dist/actions/get-issues.mjs.map +1 -0
- package/dist/actions/get-messages.cjs +39 -0
- package/dist/actions/get-messages.cjs.map +1 -0
- package/dist/actions/get-messages.d.cts +9 -0
- package/dist/actions/get-messages.d.cts.map +1 -0
- package/dist/actions/get-messages.d.mts +9 -0
- package/dist/actions/get-messages.d.mts.map +1 -0
- package/dist/actions/get-messages.mjs +38 -0
- package/dist/actions/get-messages.mjs.map +1 -0
- package/dist/actions/get-requirements.cjs +29 -0
- package/dist/actions/get-requirements.cjs.map +1 -0
- package/dist/actions/get-requirements.d.cts +9 -0
- package/dist/actions/get-requirements.d.cts.map +1 -0
- package/dist/actions/get-requirements.d.mts +9 -0
- package/dist/actions/get-requirements.d.mts.map +1 -0
- package/dist/actions/get-requirements.mjs +28 -0
- package/dist/actions/get-requirements.mjs.map +1 -0
- package/dist/actions/get-task-details.cjs +28 -0
- package/dist/actions/get-task-details.cjs.map +1 -0
- package/dist/actions/get-task-details.d.cts +9 -0
- package/dist/actions/get-task-details.d.cts.map +1 -0
- package/dist/actions/get-task-details.d.mts +9 -0
- package/dist/actions/get-task-details.d.mts.map +1 -0
- package/dist/actions/get-task-details.mjs +25 -0
- package/dist/actions/get-task-details.mjs.map +1 -0
- package/dist/actions/get-tickets.cjs +42 -0
- package/dist/actions/get-tickets.cjs.map +1 -0
- package/dist/actions/get-tickets.d.cts +9 -0
- package/dist/actions/get-tickets.d.cts.map +1 -0
- package/dist/actions/get-tickets.d.mts +9 -0
- package/dist/actions/get-tickets.d.mts.map +1 -0
- package/dist/actions/get-tickets.mjs +41 -0
- package/dist/actions/get-tickets.mjs.map +1 -0
- package/dist/actions/get-timesheet-details.cjs +29 -0
- package/dist/actions/get-timesheet-details.cjs.map +1 -0
- package/dist/actions/get-timesheet-details.d.cts +9 -0
- package/dist/actions/get-timesheet-details.d.cts.map +1 -0
- package/dist/actions/get-timesheet-details.d.mts +9 -0
- package/dist/actions/get-timesheet-details.d.mts.map +1 -0
- package/dist/actions/get-timesheet-details.mjs +26 -0
- package/dist/actions/get-timesheet-details.mjs.map +1 -0
- package/dist/actions/get-worklogs.cjs +39 -0
- package/dist/actions/get-worklogs.cjs.map +1 -0
- package/dist/actions/get-worklogs.d.cts +9 -0
- package/dist/actions/get-worklogs.d.cts.map +1 -0
- package/dist/actions/get-worklogs.d.mts +9 -0
- package/dist/actions/get-worklogs.d.mts.map +1 -0
- package/dist/actions/get-worklogs.mjs +38 -0
- package/dist/actions/get-worklogs.mjs.map +1 -0
- package/dist/actions/index.cjs +49 -0
- package/dist/actions/index.d.cts +25 -0
- package/dist/actions/index.d.mts +25 -0
- package/dist/actions/index.mjs +25 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +54 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.mts +27 -0
- package/dist/index.mjs +28 -0
- package/package.json +49 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-issues.ts
|
|
4
|
+
const OnedeskGetIssuesInput = zod.z.object({}).describe("Request model for retrieving issues from OneDesk.\n\nNote: This action documents a limitation of the OneDesk Public API.");
|
|
5
|
+
const OnedeskGetIssues_IssueSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier of the issue"),
|
|
7
|
+
tags: zod.z.array(zod.z.string()).describe("Tags associated with the issue").nullable().optional(),
|
|
8
|
+
links: zod.z.object({}).describe("Related resource links").nullable().optional(),
|
|
9
|
+
title: zod.z.string().describe("Title of the issue"),
|
|
10
|
+
number: zod.z.string().describe("Issue number/reference code"),
|
|
11
|
+
status: zod.z.string().describe("Current status of the issue"),
|
|
12
|
+
priority: zod.z.string().describe("Priority level of the issue"),
|
|
13
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp of issue creation"),
|
|
14
|
+
updatedAt: zod.z.string().describe("ISO 8601 timestamp of last update"),
|
|
15
|
+
assigneeId: zod.z.number().int().describe("ID of the user assigned to the issue").nullable().optional(),
|
|
16
|
+
description: zod.z.string().describe("Detailed description of the issue").nullable().optional()
|
|
17
|
+
}).describe("Representation of an issue in OneDesk.");
|
|
18
|
+
const OnedeskGetIssuesOutput = zod.z.object({ issues: zod.z.array(OnedeskGetIssues_IssueSchema).describe("List of issues retrieved") }).describe("Response model containing a list of issues.");
|
|
19
|
+
const onedeskGetIssues = require_action.action("ONEDESK_GET_ISSUES", {
|
|
20
|
+
slug: "onedesk-get-issues",
|
|
21
|
+
name: "Get Issues",
|
|
22
|
+
description: "Retrieve a list of issues from OneDesk. **API LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve issues. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 3. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view and manage issues - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for issue event notifications - Use ONEDESK_GET_ISSUE_DETAILS action if you have a specific issue's external ID This action will raise an ExecutionFailed error to document this limitation.",
|
|
23
|
+
input: OnedeskGetIssuesInput,
|
|
24
|
+
output: OnedeskGetIssuesOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.onedeskGetIssues = onedeskGetIssues;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-issues.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issues.cjs","names":["z","action"],"sources":["../../src/actions/get-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetIssuesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving issues from OneDesk.\\n\\nNote: This action documents a limitation of the OneDesk Public API.\");\nconst OnedeskGetIssues_IssueSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the issue\"),\n tags: z.array(z.string()).describe(\"Tags associated with the issue\").nullable().optional(),\n links: z.object({}).describe(\"Related resource links\").nullable().optional(),\n title: z.string().describe(\"Title of the issue\"),\n number: z.string().describe(\"Issue number/reference code\"),\n status: z.string().describe(\"Current status of the issue\"),\n priority: z.string().describe(\"Priority level of the issue\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp of issue creation\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update\"),\n assigneeId: z.number().int().describe(\"ID of the user assigned to the issue\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the issue\").nullable().optional(),\n}).describe(\"Representation of an issue in OneDesk.\");\nexport const OnedeskGetIssuesOutput: z.ZodTypeAny = z.object({\n issues: z.array(OnedeskGetIssues_IssueSchema).describe(\"List of issues retrieved\"),\n}).describe(\"Response model containing a list of issues.\");\n\nexport const onedeskGetIssues = action(\"ONEDESK_GET_ISSUES\", {\n slug: \"onedesk-get-issues\",\n name: \"Get Issues\",\n description: \"Retrieve a list of issues from OneDesk. **API LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve issues. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 3. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view and manage issues - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for issue event notifications - Use ONEDESK_GET_ISSUE_DETAILS action if you have a specific issue's external ID This action will raise an ExecutionFailed error to document this limitation.\",\n input: OnedeskGetIssuesInput,\n output: OnedeskGetIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACnM,MAAM,+BAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC9D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,EACnF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,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/get-issues.d.ts
|
|
4
|
+
declare const OnedeskGetIssuesInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetIssuesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetIssues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetIssues };
|
|
9
|
+
//# sourceMappingURL=get-issues.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issues.d.cts","names":[],"sources":["../../src/actions/get-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAA8J;AAAA,cAcvL,sBAAA,EAAwB,CAAA,CAAE,UAEmB;AAAA,cAE7C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-issues.d.ts
|
|
4
|
+
declare const OnedeskGetIssuesInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetIssuesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetIssues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetIssues };
|
|
9
|
+
//# sourceMappingURL=get-issues.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issues.d.mts","names":[],"sources":["../../src/actions/get-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAA8J;AAAA,cAcvL,sBAAA,EAAwB,CAAA,CAAE,UAEmB;AAAA,cAE7C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-issues.ts
|
|
4
|
+
const OnedeskGetIssuesInput = z.object({}).describe("Request model for retrieving issues from OneDesk.\n\nNote: This action documents a limitation of the OneDesk Public API.");
|
|
5
|
+
const OnedeskGetIssues_IssueSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique identifier of the issue"),
|
|
7
|
+
tags: z.array(z.string()).describe("Tags associated with the issue").nullable().optional(),
|
|
8
|
+
links: z.object({}).describe("Related resource links").nullable().optional(),
|
|
9
|
+
title: z.string().describe("Title of the issue"),
|
|
10
|
+
number: z.string().describe("Issue number/reference code"),
|
|
11
|
+
status: z.string().describe("Current status of the issue"),
|
|
12
|
+
priority: z.string().describe("Priority level of the issue"),
|
|
13
|
+
createdAt: z.string().describe("ISO 8601 timestamp of issue creation"),
|
|
14
|
+
updatedAt: z.string().describe("ISO 8601 timestamp of last update"),
|
|
15
|
+
assigneeId: z.number().int().describe("ID of the user assigned to the issue").nullable().optional(),
|
|
16
|
+
description: z.string().describe("Detailed description of the issue").nullable().optional()
|
|
17
|
+
}).describe("Representation of an issue in OneDesk.");
|
|
18
|
+
const onedeskGetIssues = action("ONEDESK_GET_ISSUES", {
|
|
19
|
+
slug: "onedesk-get-issues",
|
|
20
|
+
name: "Get Issues",
|
|
21
|
+
description: "Retrieve a list of issues from OneDesk. **API LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve issues. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 3. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view and manage issues - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for issue event notifications - Use ONEDESK_GET_ISSUE_DETAILS action if you have a specific issue's external ID This action will raise an ExecutionFailed error to document this limitation.",
|
|
22
|
+
input: OnedeskGetIssuesInput,
|
|
23
|
+
output: z.object({ issues: z.array(OnedeskGetIssues_IssueSchema).describe("List of issues retrieved") }).describe("Response model containing a list of issues.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { onedeskGetIssues };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-issues.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issues.mjs","names":[],"sources":["../../src/actions/get-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetIssuesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving issues from OneDesk.\\n\\nNote: This action documents a limitation of the OneDesk Public API.\");\nconst OnedeskGetIssues_IssueSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the issue\"),\n tags: z.array(z.string()).describe(\"Tags associated with the issue\").nullable().optional(),\n links: z.object({}).describe(\"Related resource links\").nullable().optional(),\n title: z.string().describe(\"Title of the issue\"),\n number: z.string().describe(\"Issue number/reference code\"),\n status: z.string().describe(\"Current status of the issue\"),\n priority: z.string().describe(\"Priority level of the issue\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp of issue creation\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update\"),\n assigneeId: z.number().int().describe(\"ID of the user assigned to the issue\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the issue\").nullable().optional(),\n}).describe(\"Representation of an issue in OneDesk.\");\nexport const OnedeskGetIssuesOutput: z.ZodTypeAny = z.object({\n issues: z.array(OnedeskGetIssues_IssueSchema).describe(\"List of issues retrieved\"),\n}).describe(\"Response model containing a list of issues.\");\n\nexport const onedeskGetIssues = action(\"ONEDESK_GET_ISSUES\", {\n slug: \"onedesk-get-issues\",\n name: \"Get Issues\",\n description: \"Retrieve a list of issues from OneDesk. **API LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve issues. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 3. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view and manage issues - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for issue event notifications - Use ONEDESK_GET_ISSUE_DETAILS action if you have a specific issue's external ID This action will raise an ExecutionFailed error to document this limitation.\",\n input: OnedeskGetIssuesInput,\n output: OnedeskGetIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACnM,MAAM,+BAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC9D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAKpD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,EACnF,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-messages.ts
|
|
4
|
+
const OnedeskGetMessagesInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of messages to return").optional(),
|
|
6
|
+
offset: zod.z.number().int().describe("Offset for pagination").optional(),
|
|
7
|
+
search: zod.z.string().describe("Search text within message bodies").optional(),
|
|
8
|
+
direction: zod.z.string().describe("Direction of the message, e.g. 'inbound' or 'outbound'").optional(),
|
|
9
|
+
ticket_id: zod.z.number().int().describe("Filter messages by associated ticket ID").optional(),
|
|
10
|
+
contact_id: zod.z.number().int().describe("Filter messages by contact/customer ID").optional()
|
|
11
|
+
}).describe("Request model for retrieving messages. Optional filters are included to\nmaximize compatibility and enable thorough testing.");
|
|
12
|
+
const OnedeskGetMessages_MessageAttachmentSchema = zod.z.object({
|
|
13
|
+
id: zod.z.number().int().describe("Unique identifier of the attachment"),
|
|
14
|
+
url: zod.z.string().describe("Download URL of the attachment"),
|
|
15
|
+
fileName: zod.z.string().describe("Filename of the attachment")
|
|
16
|
+
}).describe("Representation of an attachment within a message in OneDesk.");
|
|
17
|
+
const OnedeskGetMessages_MessageSchema = zod.z.object({
|
|
18
|
+
id: zod.z.number().int().describe("Unique identifier of the message"),
|
|
19
|
+
body: zod.z.string().describe("Content/body of the message"),
|
|
20
|
+
subject: zod.z.string().describe("Subject of the message, if any").nullable().optional(),
|
|
21
|
+
ticketId: zod.z.number().int().describe("Identifier of the associated ticket, if any").nullable().optional(),
|
|
22
|
+
contactId: zod.z.number().int().describe("Identifier of the contact who sent or received the message").nullable().optional(),
|
|
23
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the message was created"),
|
|
24
|
+
direction: zod.z.string().describe("Direction of the message, e.g. 'inbound' or 'outbound'"),
|
|
25
|
+
updatedAt: zod.z.string().describe("ISO 8601 timestamp when the message was last updated"),
|
|
26
|
+
attachments: zod.z.array(OnedeskGetMessages_MessageAttachmentSchema).describe("List of attachments associated with the message").nullable().optional()
|
|
27
|
+
}).describe("Representation of a message in OneDesk.");
|
|
28
|
+
const OnedeskGetMessagesOutput = zod.z.object({ messages: zod.z.array(OnedeskGetMessages_MessageSchema).describe("List of messages retrieved") }).describe("Response model containing a list of messages.");
|
|
29
|
+
const onedeskGetMessages = require_action.action("ONEDESK_GET_MESSAGES", {
|
|
30
|
+
slug: "onedesk-get-messages",
|
|
31
|
+
name: "Get Messages",
|
|
32
|
+
description: "Tool to retrieve a list of messages from OneDesk. **IMPORTANT LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve messages. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by ID via GET /rest/public/items/id/{id} 3. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 4. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view messages - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for message event notifications - Retrieve specific messages by ID if you have the message ID This action will raise an ExecutionFailed error to document this API limitation.",
|
|
33
|
+
input: OnedeskGetMessagesInput,
|
|
34
|
+
output: OnedeskGetMessagesOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.onedeskGetMessages = onedeskGetMessages;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-messages.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-messages.cjs","names":["z","action"],"sources":["../../src/actions/get-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetMessagesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of messages to return\").optional(),\n offset: z.number().int().describe(\"Offset for pagination\").optional(),\n search: z.string().describe(\"Search text within message bodies\").optional(),\n direction: z.string().describe(\"Direction of the message, e.g. 'inbound' or 'outbound'\").optional(),\n ticket_id: z.number().int().describe(\"Filter messages by associated ticket ID\").optional(),\n contact_id: z.number().int().describe(\"Filter messages by contact/customer ID\").optional(),\n}).describe(\"Request model for retrieving messages. Optional filters are included to\\nmaximize compatibility and enable thorough testing.\");\nconst OnedeskGetMessages_MessageAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the attachment\"),\n url: z.string().describe(\"Download URL of the attachment\"),\n fileName: z.string().describe(\"Filename of the attachment\"),\n}).describe(\"Representation of an attachment within a message in OneDesk.\");\nconst OnedeskGetMessages_MessageSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the message\"),\n body: z.string().describe(\"Content/body of the message\"),\n subject: z.string().describe(\"Subject of the message, if any\").nullable().optional(),\n ticketId: z.number().int().describe(\"Identifier of the associated ticket, if any\").nullable().optional(),\n contactId: z.number().int().describe(\"Identifier of the contact who sent or received the message\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the message was created\"),\n direction: z.string().describe(\"Direction of the message, e.g. 'inbound' or 'outbound'\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the message was last updated\"),\n attachments: z.array(OnedeskGetMessages_MessageAttachmentSchema).describe(\"List of attachments associated with the message\").nullable().optional(),\n}).describe(\"Representation of a message in OneDesk.\");\nexport const OnedeskGetMessagesOutput: z.ZodTypeAny = z.object({\n messages: z.array(OnedeskGetMessages_MessageSchema).describe(\"List of messages retrieved\"),\n}).describe(\"Response model containing a list of messages.\");\n\nexport const onedeskGetMessages = action(\"ONEDESK_GET_MESSAGES\", {\n slug: \"onedesk-get-messages\",\n name: \"Get Messages\",\n description: \"Tool to retrieve a list of messages from OneDesk. **IMPORTANT LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve messages. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by ID via GET /rest/public/items/id/{id} 3. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 4. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view messages - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for message event notifications - Retrieve specific messages by ID if you have the message ID This action will raise an ExecutionFailed error to document this API limitation.\",\n input: OnedeskGetMessagesInput,\n output: OnedeskGetMessagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,8HAA8H;AAC1I,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AAC5D,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACrF,aAAaA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,4BAA4B,EAC3F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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/get-messages.d.ts
|
|
4
|
+
declare const OnedeskGetMessagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetMessagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetMessages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetMessages };
|
|
9
|
+
//# sourceMappingURL=get-messages.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-messages.d.cts","names":[],"sources":["../../src/actions/get-messages.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOmG;AAAA,cAiB9H,wBAAA,EAA0B,CAAA,CAAE,UAEmB;AAAA,cAE/C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-messages.d.ts
|
|
4
|
+
declare const OnedeskGetMessagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetMessagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetMessages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetMessages };
|
|
9
|
+
//# sourceMappingURL=get-messages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-messages.d.mts","names":[],"sources":["../../src/actions/get-messages.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOmG;AAAA,cAiB9H,wBAAA,EAA0B,CAAA,CAAE,UAEmB;AAAA,cAE/C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-messages.ts
|
|
4
|
+
const OnedeskGetMessagesInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of messages to return").optional(),
|
|
6
|
+
offset: z.number().int().describe("Offset for pagination").optional(),
|
|
7
|
+
search: z.string().describe("Search text within message bodies").optional(),
|
|
8
|
+
direction: z.string().describe("Direction of the message, e.g. 'inbound' or 'outbound'").optional(),
|
|
9
|
+
ticket_id: z.number().int().describe("Filter messages by associated ticket ID").optional(),
|
|
10
|
+
contact_id: z.number().int().describe("Filter messages by contact/customer ID").optional()
|
|
11
|
+
}).describe("Request model for retrieving messages. Optional filters are included to\nmaximize compatibility and enable thorough testing.");
|
|
12
|
+
const OnedeskGetMessages_MessageAttachmentSchema = z.object({
|
|
13
|
+
id: z.number().int().describe("Unique identifier of the attachment"),
|
|
14
|
+
url: z.string().describe("Download URL of the attachment"),
|
|
15
|
+
fileName: z.string().describe("Filename of the attachment")
|
|
16
|
+
}).describe("Representation of an attachment within a message in OneDesk.");
|
|
17
|
+
const OnedeskGetMessages_MessageSchema = z.object({
|
|
18
|
+
id: z.number().int().describe("Unique identifier of the message"),
|
|
19
|
+
body: z.string().describe("Content/body of the message"),
|
|
20
|
+
subject: z.string().describe("Subject of the message, if any").nullable().optional(),
|
|
21
|
+
ticketId: z.number().int().describe("Identifier of the associated ticket, if any").nullable().optional(),
|
|
22
|
+
contactId: z.number().int().describe("Identifier of the contact who sent or received the message").nullable().optional(),
|
|
23
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the message was created"),
|
|
24
|
+
direction: z.string().describe("Direction of the message, e.g. 'inbound' or 'outbound'"),
|
|
25
|
+
updatedAt: z.string().describe("ISO 8601 timestamp when the message was last updated"),
|
|
26
|
+
attachments: z.array(OnedeskGetMessages_MessageAttachmentSchema).describe("List of attachments associated with the message").nullable().optional()
|
|
27
|
+
}).describe("Representation of a message in OneDesk.");
|
|
28
|
+
const onedeskGetMessages = action("ONEDESK_GET_MESSAGES", {
|
|
29
|
+
slug: "onedesk-get-messages",
|
|
30
|
+
name: "Get Messages",
|
|
31
|
+
description: "Tool to retrieve a list of messages from OneDesk. **IMPORTANT LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve messages. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by ID via GET /rest/public/items/id/{id} 3. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 4. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view messages - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for message event notifications - Retrieve specific messages by ID if you have the message ID This action will raise an ExecutionFailed error to document this API limitation.",
|
|
32
|
+
input: OnedeskGetMessagesInput,
|
|
33
|
+
output: z.object({ messages: z.array(OnedeskGetMessages_MessageSchema).describe("List of messages retrieved") }).describe("Response model containing a list of messages.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { onedeskGetMessages };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=get-messages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-messages.mjs","names":[],"sources":["../../src/actions/get-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetMessagesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of messages to return\").optional(),\n offset: z.number().int().describe(\"Offset for pagination\").optional(),\n search: z.string().describe(\"Search text within message bodies\").optional(),\n direction: z.string().describe(\"Direction of the message, e.g. 'inbound' or 'outbound'\").optional(),\n ticket_id: z.number().int().describe(\"Filter messages by associated ticket ID\").optional(),\n contact_id: z.number().int().describe(\"Filter messages by contact/customer ID\").optional(),\n}).describe(\"Request model for retrieving messages. Optional filters are included to\\nmaximize compatibility and enable thorough testing.\");\nconst OnedeskGetMessages_MessageAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the attachment\"),\n url: z.string().describe(\"Download URL of the attachment\"),\n fileName: z.string().describe(\"Filename of the attachment\"),\n}).describe(\"Representation of an attachment within a message in OneDesk.\");\nconst OnedeskGetMessages_MessageSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the message\"),\n body: z.string().describe(\"Content/body of the message\"),\n subject: z.string().describe(\"Subject of the message, if any\").nullable().optional(),\n ticketId: z.number().int().describe(\"Identifier of the associated ticket, if any\").nullable().optional(),\n contactId: z.number().int().describe(\"Identifier of the contact who sent or received the message\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the message was created\"),\n direction: z.string().describe(\"Direction of the message, e.g. 'inbound' or 'outbound'\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the message was last updated\"),\n attachments: z.array(OnedeskGetMessages_MessageAttachmentSchema).describe(\"List of attachments associated with the message\").nullable().optional(),\n}).describe(\"Representation of a message in OneDesk.\");\nexport const OnedeskGetMessagesOutput: z.ZodTypeAny = z.object({\n messages: z.array(OnedeskGetMessages_MessageSchema).describe(\"List of messages retrieved\"),\n}).describe(\"Response model containing a list of messages.\");\n\nexport const onedeskGetMessages = action(\"ONEDESK_GET_MESSAGES\", {\n slug: \"onedesk-get-messages\",\n name: \"Get Messages\",\n description: \"Tool to retrieve a list of messages from OneDesk. **IMPORTANT LIMITATION**: The OneDesk Public API does not provide an endpoint to list or retrieve messages. The public API only supports: 1. Creating items via POST /rest/public/items/ 2. Retrieving specific items by ID via GET /rest/public/items/id/{id} 3. Retrieving specific items by external ID via GET /rest/public/items/externalId/{externalId} 4. Getting organization info via GET /rest/public/organization/profileAndPolicy **Alternatives**: - Use the OneDesk web application directly to view messages - Request access to OneDesk's private API (contact OneDesk support) - Use OneDesk's webhook system for message event notifications - Retrieve specific messages by ID if you have the message ID This action will raise an ExecutionFailed error to document this API limitation.\",\n input: OnedeskGetMessagesInput,\n output: OnedeskGetMessagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,8HAA8H;AAC1I,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AAC5D,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACrF,aAAa,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,4BAA4B,EAC3F,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-requirements.ts
|
|
4
|
+
const OnedeskGetRequirementsInput = zod.z.object({}).describe("Request model for retrieving requirements from OneDesk.\n\nNOTE: The OneDesk Public API has very limited endpoints and does NOT provide\na way to list all requirements. This action cannot function as intended because\nthe required API endpoint does not exist in OneDesk's public API.\n\nThe OneDesk Public API only supports:\n- Creating items/requirements (POST /rest/public/items/)\n- Retrieving by external ID (GET /rest/public/items/externalId/{id})\n- Organization profile (GET /rest/public/organization/profileAndPolicy)\n\nTo retrieve requirements, you would need to:\n1. Use the OneDesk web application directly\n2. Request access to a private/internal API (if available)\n3. Use OneDesk's webhooks to receive requirement data as events occur");
|
|
5
|
+
const OnedeskGetRequirements_RequirementSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier of the requirement"),
|
|
7
|
+
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the requirement").nullable().optional(),
|
|
8
|
+
links: zod.z.object({}).describe("Related resource links").nullable().optional(),
|
|
9
|
+
title: zod.z.string().describe("Title of the requirement"),
|
|
10
|
+
priority: zod.z.string().describe("Priority of the requirement").nullable().optional(),
|
|
11
|
+
status_id: zod.z.number().int().describe("Status ID of the requirement").nullable().optional(),
|
|
12
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the requirement was created"),
|
|
13
|
+
project_id: zod.z.number().int().describe("Project ID under which this requirement belongs").nullable().optional(),
|
|
14
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the requirement was last updated"),
|
|
15
|
+
assignee_id: zod.z.number().int().describe("User ID to which the requirement is assigned").nullable().optional(),
|
|
16
|
+
description: zod.z.string().describe("Detailed description of the requirement").nullable().optional()
|
|
17
|
+
}).describe("Representation of a requirement in OneDesk.");
|
|
18
|
+
const OnedeskGetRequirementsOutput = zod.z.object({ requirements: zod.z.array(OnedeskGetRequirements_RequirementSchema).describe("List of requirements retrieved from OneDesk") }).describe("Response model containing a list of requirements.");
|
|
19
|
+
const onedeskGetRequirements = require_action.action("ONEDESK_GET_REQUIREMENTS", {
|
|
20
|
+
slug: "onedesk-get-requirements",
|
|
21
|
+
name: "Get Requirements",
|
|
22
|
+
description: "Retrieve a list of requirements from OneDesk. **IMPORTANT LIMITATION**: This action cannot function as intended because the OneDesk Public API does not provide an endpoint to list or retrieve requirements. The OneDesk Public API (/rest/public) only supports: - Creating items: POST /rest/public/items/ - Get by external ID: GET /rest/public/items/externalId/{externalId} - Organization info: GET /rest/public/organization/profileAndPolicy There is no endpoint to: - List all requirements - Search for requirements - Query requirements by criteria - Get requirements by any identifier other than external ID Alternative approaches: 1. Use OneDesk web application for requirement management 2. Contact OneDesk support for private API access 3. Use webhooks to receive requirement data as events occur 4. Use ONEDESK_GET_REQUIREMENT_DETAILS if you have a specific requirement's external ID This action will always fail with a clear error message explaining the limitation.",
|
|
23
|
+
input: OnedeskGetRequirementsInput,
|
|
24
|
+
output: OnedeskGetRequirementsOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.onedeskGetRequirements = onedeskGetRequirements;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-requirements.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-requirements.cjs","names":["z","action"],"sources":["../../src/actions/get-requirements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetRequirementsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving requirements from OneDesk.\\n\\nNOTE: The OneDesk Public API has very limited endpoints and does NOT provide\\na way to list all requirements. This action cannot function as intended because\\nthe required API endpoint does not exist in OneDesk's public API.\\n\\nThe OneDesk Public API only supports:\\n- Creating items/requirements (POST /rest/public/items/)\\n- Retrieving by external ID (GET /rest/public/items/externalId/{id})\\n- Organization profile (GET /rest/public/organization/profileAndPolicy)\\n\\nTo retrieve requirements, you would need to:\\n1. Use the OneDesk web application directly\\n2. Request access to a private/internal API (if available)\\n3. Use OneDesk's webhooks to receive requirement data as events occur\");\nconst OnedeskGetRequirements_RequirementSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the requirement\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the requirement\").nullable().optional(),\n links: z.object({}).describe(\"Related resource links\").nullable().optional(),\n title: z.string().describe(\"Title of the requirement\"),\n priority: z.string().describe(\"Priority of the requirement\").nullable().optional(),\n status_id: z.number().int().describe(\"Status ID of the requirement\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the requirement was created\"),\n project_id: z.number().int().describe(\"Project ID under which this requirement belongs\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the requirement was last updated\"),\n assignee_id: z.number().int().describe(\"User ID to which the requirement is assigned\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the requirement\").nullable().optional(),\n}).describe(\"Representation of a requirement in OneDesk.\");\nexport const OnedeskGetRequirementsOutput: z.ZodTypeAny = z.object({\n requirements: z.array(OnedeskGetRequirements_RequirementSchema).describe(\"List of requirements retrieved from OneDesk\"),\n}).describe(\"Response model containing a list of requirements.\");\n\nexport const onedeskGetRequirements = action(\"ONEDESK_GET_REQUIREMENTS\", {\n slug: \"onedesk-get-requirements\",\n name: \"Get Requirements\",\n description: \"Retrieve a list of requirements from OneDesk. **IMPORTANT LIMITATION**: This action cannot function as intended because the OneDesk Public API does not provide an endpoint to list or retrieve requirements. The OneDesk Public API (/rest/public) only supports: - Creating items: POST /rest/public/items/ - Get by external ID: GET /rest/public/items/externalId/{externalId} - Organization info: GET /rest/public/organization/profileAndPolicy There is no endpoint to: - List all requirements - Search for requirements - Query requirements by criteria - Get requirements by any identifier other than external ID Alternative approaches: 1. Use OneDesk web application for requirement management 2. Contact OneDesk support for private API access 3. Use webhooks to receive requirement data as events occur 4. Use ONEDESK_GET_REQUIREMENT_DETAILS if you have a specific requirement's external ID This action will always fail with a clear error message explaining the limitation.\",\n input: OnedeskGetRequirementsInput,\n output: OnedeskGetRequirementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+uBAA+uB;AAC9zB,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACpE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,cAAcA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,6CAA6C,EACxH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,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/get-requirements.d.ts
|
|
4
|
+
declare const OnedeskGetRequirementsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetRequirementsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetRequirements: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetRequirements };
|
|
9
|
+
//# sourceMappingURL=get-requirements.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-requirements.d.cts","names":[],"sources":["../../src/actions/get-requirements.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAAmxB;AAAA,cAclzB,4BAAA,EAA8B,CAAA,CAAE,UAEmB;AAAA,cAEnD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-requirements.d.ts
|
|
4
|
+
declare const OnedeskGetRequirementsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetRequirementsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetRequirements: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetRequirements };
|
|
9
|
+
//# sourceMappingURL=get-requirements.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-requirements.d.mts","names":[],"sources":["../../src/actions/get-requirements.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAAmxB;AAAA,cAclzB,4BAAA,EAA8B,CAAA,CAAE,UAEmB;AAAA,cAEnD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-requirements.ts
|
|
4
|
+
const OnedeskGetRequirementsInput = z.object({}).describe("Request model for retrieving requirements from OneDesk.\n\nNOTE: The OneDesk Public API has very limited endpoints and does NOT provide\na way to list all requirements. This action cannot function as intended because\nthe required API endpoint does not exist in OneDesk's public API.\n\nThe OneDesk Public API only supports:\n- Creating items/requirements (POST /rest/public/items/)\n- Retrieving by external ID (GET /rest/public/items/externalId/{id})\n- Organization profile (GET /rest/public/organization/profileAndPolicy)\n\nTo retrieve requirements, you would need to:\n1. Use the OneDesk web application directly\n2. Request access to a private/internal API (if available)\n3. Use OneDesk's webhooks to receive requirement data as events occur");
|
|
5
|
+
const OnedeskGetRequirements_RequirementSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique identifier of the requirement"),
|
|
7
|
+
tags: z.array(z.string()).describe("List of tags associated with the requirement").nullable().optional(),
|
|
8
|
+
links: z.object({}).describe("Related resource links").nullable().optional(),
|
|
9
|
+
title: z.string().describe("Title of the requirement"),
|
|
10
|
+
priority: z.string().describe("Priority of the requirement").nullable().optional(),
|
|
11
|
+
status_id: z.number().int().describe("Status ID of the requirement").nullable().optional(),
|
|
12
|
+
created_at: z.string().describe("ISO 8601 timestamp when the requirement was created"),
|
|
13
|
+
project_id: z.number().int().describe("Project ID under which this requirement belongs").nullable().optional(),
|
|
14
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the requirement was last updated"),
|
|
15
|
+
assignee_id: z.number().int().describe("User ID to which the requirement is assigned").nullable().optional(),
|
|
16
|
+
description: z.string().describe("Detailed description of the requirement").nullable().optional()
|
|
17
|
+
}).describe("Representation of a requirement in OneDesk.");
|
|
18
|
+
const onedeskGetRequirements = action("ONEDESK_GET_REQUIREMENTS", {
|
|
19
|
+
slug: "onedesk-get-requirements",
|
|
20
|
+
name: "Get Requirements",
|
|
21
|
+
description: "Retrieve a list of requirements from OneDesk. **IMPORTANT LIMITATION**: This action cannot function as intended because the OneDesk Public API does not provide an endpoint to list or retrieve requirements. The OneDesk Public API (/rest/public) only supports: - Creating items: POST /rest/public/items/ - Get by external ID: GET /rest/public/items/externalId/{externalId} - Organization info: GET /rest/public/organization/profileAndPolicy There is no endpoint to: - List all requirements - Search for requirements - Query requirements by criteria - Get requirements by any identifier other than external ID Alternative approaches: 1. Use OneDesk web application for requirement management 2. Contact OneDesk support for private API access 3. Use webhooks to receive requirement data as events occur 4. Use ONEDESK_GET_REQUIREMENT_DETAILS if you have a specific requirement's external ID This action will always fail with a clear error message explaining the limitation.",
|
|
22
|
+
input: OnedeskGetRequirementsInput,
|
|
23
|
+
output: z.object({ requirements: z.array(OnedeskGetRequirements_RequirementSchema).describe("List of requirements retrieved from OneDesk") }).describe("Response model containing a list of requirements.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { onedeskGetRequirements };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-requirements.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-requirements.mjs","names":[],"sources":["../../src/actions/get-requirements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetRequirementsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving requirements from OneDesk.\\n\\nNOTE: The OneDesk Public API has very limited endpoints and does NOT provide\\na way to list all requirements. This action cannot function as intended because\\nthe required API endpoint does not exist in OneDesk's public API.\\n\\nThe OneDesk Public API only supports:\\n- Creating items/requirements (POST /rest/public/items/)\\n- Retrieving by external ID (GET /rest/public/items/externalId/{id})\\n- Organization profile (GET /rest/public/organization/profileAndPolicy)\\n\\nTo retrieve requirements, you would need to:\\n1. Use the OneDesk web application directly\\n2. Request access to a private/internal API (if available)\\n3. Use OneDesk's webhooks to receive requirement data as events occur\");\nconst OnedeskGetRequirements_RequirementSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the requirement\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the requirement\").nullable().optional(),\n links: z.object({}).describe(\"Related resource links\").nullable().optional(),\n title: z.string().describe(\"Title of the requirement\"),\n priority: z.string().describe(\"Priority of the requirement\").nullable().optional(),\n status_id: z.number().int().describe(\"Status ID of the requirement\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the requirement was created\"),\n project_id: z.number().int().describe(\"Project ID under which this requirement belongs\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the requirement was last updated\"),\n assignee_id: z.number().int().describe(\"User ID to which the requirement is assigned\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the requirement\").nullable().optional(),\n}).describe(\"Representation of a requirement in OneDesk.\");\nexport const OnedeskGetRequirementsOutput: z.ZodTypeAny = z.object({\n requirements: z.array(OnedeskGetRequirements_RequirementSchema).describe(\"List of requirements retrieved from OneDesk\"),\n}).describe(\"Response model containing a list of requirements.\");\n\nexport const onedeskGetRequirements = action(\"ONEDESK_GET_REQUIREMENTS\", {\n slug: \"onedesk-get-requirements\",\n name: \"Get Requirements\",\n description: \"Retrieve a list of requirements from OneDesk. **IMPORTANT LIMITATION**: This action cannot function as intended because the OneDesk Public API does not provide an endpoint to list or retrieve requirements. The OneDesk Public API (/rest/public) only supports: - Creating items: POST /rest/public/items/ - Get by external ID: GET /rest/public/items/externalId/{externalId} - Organization info: GET /rest/public/organization/profileAndPolicy There is no endpoint to: - List all requirements - Search for requirements - Query requirements by criteria - Get requirements by any identifier other than external ID Alternative approaches: 1. Use OneDesk web application for requirement management 2. Contact OneDesk support for private API access 3. Use webhooks to receive requirement data as events occur 4. Use ONEDESK_GET_REQUIREMENT_DETAILS if you have a specific requirement's external ID This action will always fail with a clear error message explaining the limitation.\",\n input: OnedeskGetRequirementsInput,\n output: OnedeskGetRequirementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+uBAA+uB;AAC9zB,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACpE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAKzD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,cAAc,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,6CAA6C,EACxH,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-task-details.ts
|
|
4
|
+
const OnedeskGetTaskDetailsInput = zod.z.object({ task_id: zod.z.number().int().describe("Unique numeric identifier of the task/item to retrieve (must be a positive integer, e.g., 1, 2, 123)") }).describe("Request parameters for retrieving details of a specific task/item in OneDesk.\nOneDesk uses 'items' to represent tasks, tickets, issues, and other work items.");
|
|
5
|
+
const OnedeskGetTaskDetailsOutput = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier of the task/item"),
|
|
7
|
+
tags: zod.z.array(zod.z.string()).describe("List of tag strings associated with the task, null if no tags").nullable().optional(),
|
|
8
|
+
title: zod.z.string().describe("Title or name of the task"),
|
|
9
|
+
due_date: zod.z.string().describe("ISO 8601 timestamp for the task's due date (e.g., '2026-01-28T17:00:00.000+00:00'), null if no due date is set").nullable().optional(),
|
|
10
|
+
priority: zod.z.string().describe("Priority level as a numeric string (e.g., '0', '40', '80', '100'), where higher numbers indicate higher priority").nullable().optional(),
|
|
11
|
+
status_id: zod.z.string().describe("Current status name of the task (e.g., 'Open', 'In Progress', 'Pending agent', 'Resolved', 'Closed')").nullable().optional(),
|
|
12
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the task was created (e.g., '2026-01-27T10:50:44.311+00:00')"),
|
|
13
|
+
project_id: zod.z.string().describe("UUID of the project this task belongs to (e.g., '9febee81-33b6-4ea1-a247-cd4fa1503133')").nullable().optional(),
|
|
14
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the task was last modified (e.g., '2026-01-28T10:50:44.657+00:00')"),
|
|
15
|
+
assignee_id: zod.z.string().describe("UUID of the user assigned to this task (e.g., '8bfbed81-2318-4352-849d-dc49fb6352ef'), null if unassigned").nullable().optional(),
|
|
16
|
+
description: zod.z.string().describe("Detailed description of the task (may contain HTML formatting, can be null or empty string)").nullable().optional()
|
|
17
|
+
}).describe("Response schema for task details in OneDesk. Contains comprehensive information about\na specific task/item including status, assignees, dates, and project associations.");
|
|
18
|
+
const onedeskGetTaskDetails = require_action.action("ONEDESK_GET_TASK_DETAILS", {
|
|
19
|
+
slug: "onedesk-get-task-details",
|
|
20
|
+
name: "Get Task Details",
|
|
21
|
+
description: "Retrieves comprehensive details of a specific task/item in OneDesk by its ID. Use this tool when you need complete information about a task including its title, description, status, assignee, priority, due date, and project association. OneDesk uses 'items' to represent various work units including tasks, tickets, issues, and requirements. Returns detailed task information if found, or raises an error if the task doesn't exist or you don't have permission to access it.",
|
|
22
|
+
input: OnedeskGetTaskDetailsInput,
|
|
23
|
+
output: OnedeskGetTaskDetailsOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.onedeskGetTaskDetails = onedeskGetTaskDetails;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-task-details.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-details.cjs","names":["z","action"],"sources":["../../src/actions/get-task-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetTaskDetailsInput: z.ZodTypeAny = z.object({\n task_id: z.number().int().describe(\"Unique numeric identifier of the task/item to retrieve (must be a positive integer, e.g., 1, 2, 123)\"),\n}).describe(\"Request parameters for retrieving details of a specific task/item in OneDesk.\\nOneDesk uses 'items' to represent tasks, tickets, issues, and other work items.\");\nexport const OnedeskGetTaskDetailsOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the task/item\"),\n tags: z.array(z.string()).describe(\"List of tag strings associated with the task, null if no tags\").nullable().optional(),\n title: z.string().describe(\"Title or name of the task\"),\n due_date: z.string().describe(\"ISO 8601 timestamp for the task's due date (e.g., '2026-01-28T17:00:00.000+00:00'), null if no due date is set\").nullable().optional(),\n priority: z.string().describe(\"Priority level as a numeric string (e.g., '0', '40', '80', '100'), where higher numbers indicate higher priority\").nullable().optional(),\n status_id: z.string().describe(\"Current status name of the task (e.g., 'Open', 'In Progress', 'Pending agent', 'Resolved', 'Closed')\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the task was created (e.g., '2026-01-27T10:50:44.311+00:00')\"),\n project_id: z.string().describe(\"UUID of the project this task belongs to (e.g., '9febee81-33b6-4ea1-a247-cd4fa1503133')\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the task was last modified (e.g., '2026-01-28T10:50:44.657+00:00')\"),\n assignee_id: z.string().describe(\"UUID of the user assigned to this task (e.g., '8bfbed81-2318-4352-849d-dc49fb6352ef'), null if unassigned\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the task (may contain HTML formatting, can be null or empty string)\").nullable().optional(),\n}).describe(\"Response schema for task details in OneDesk. Contains comprehensive information about\\na specific task/item including status, assignees, dates, and project associations.\");\n\nexport const onedeskGetTaskDetails = action(\"ONEDESK_GET_TASK_DETAILS\", {\n slug: \"onedesk-get-task-details\",\n name: \"Get Task Details\",\n description: \"Retrieves comprehensive details of a specific task/item in OneDesk by its ID. Use this tool when you need complete information about a task including its title, description, status, assignee, priority, due date, and project association. OneDesk uses 'items' to represent various work units including tasks, tickets, issues, and requirements. Returns detailed task information if found, or raises an error if the task doesn't exist or you don't have permission to access it.\",\n input: OnedeskGetTaskDetailsInput,\n output: OnedeskGetTaskDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,EAC3I,CAAC,CAAC,CAAC,SAAS,gKAAgK;AAC5K,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAClE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,2KAA2K;AAEvL,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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/get-task-details.d.ts
|
|
4
|
+
declare const OnedeskGetTaskDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetTaskDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetTaskDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetTaskDetails };
|
|
9
|
+
//# sourceMappingURL=get-task-details.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-details.d.cts","names":[],"sources":["../../src/actions/get-task-details.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEkI;AAAA,cAChK,2BAAA,EAA6B,CAAA,CAAE,UAY4I;AAAA,cAE3K,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-task-details.d.ts
|
|
4
|
+
declare const OnedeskGetTaskDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetTaskDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetTaskDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetTaskDetails };
|
|
9
|
+
//# sourceMappingURL=get-task-details.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-details.d.mts","names":[],"sources":["../../src/actions/get-task-details.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEkI;AAAA,cAChK,2BAAA,EAA6B,CAAA,CAAE,UAY4I;AAAA,cAE3K,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskGetTaskDetails = action("ONEDESK_GET_TASK_DETAILS", {
|
|
4
|
+
slug: "onedesk-get-task-details",
|
|
5
|
+
name: "Get Task Details",
|
|
6
|
+
description: "Retrieves comprehensive details of a specific task/item in OneDesk by its ID. Use this tool when you need complete information about a task including its title, description, status, assignee, priority, due date, and project association. OneDesk uses 'items' to represent various work units including tasks, tickets, issues, and requirements. Returns detailed task information if found, or raises an error if the task doesn't exist or you don't have permission to access it.",
|
|
7
|
+
input: z.object({ task_id: z.number().int().describe("Unique numeric identifier of the task/item to retrieve (must be a positive integer, e.g., 1, 2, 123)") }).describe("Request parameters for retrieving details of a specific task/item in OneDesk.\nOneDesk uses 'items' to represent tasks, tickets, issues, and other work items."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.number().int().describe("Unique identifier of the task/item"),
|
|
10
|
+
tags: z.array(z.string()).describe("List of tag strings associated with the task, null if no tags").nullable().optional(),
|
|
11
|
+
title: z.string().describe("Title or name of the task"),
|
|
12
|
+
due_date: z.string().describe("ISO 8601 timestamp for the task's due date (e.g., '2026-01-28T17:00:00.000+00:00'), null if no due date is set").nullable().optional(),
|
|
13
|
+
priority: z.string().describe("Priority level as a numeric string (e.g., '0', '40', '80', '100'), where higher numbers indicate higher priority").nullable().optional(),
|
|
14
|
+
status_id: z.string().describe("Current status name of the task (e.g., 'Open', 'In Progress', 'Pending agent', 'Resolved', 'Closed')").nullable().optional(),
|
|
15
|
+
created_at: z.string().describe("ISO 8601 timestamp when the task was created (e.g., '2026-01-27T10:50:44.311+00:00')"),
|
|
16
|
+
project_id: z.string().describe("UUID of the project this task belongs to (e.g., '9febee81-33b6-4ea1-a247-cd4fa1503133')").nullable().optional(),
|
|
17
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the task was last modified (e.g., '2026-01-28T10:50:44.657+00:00')"),
|
|
18
|
+
assignee_id: z.string().describe("UUID of the user assigned to this task (e.g., '8bfbed81-2318-4352-849d-dc49fb6352ef'), null if unassigned").nullable().optional(),
|
|
19
|
+
description: z.string().describe("Detailed description of the task (may contain HTML formatting, can be null or empty string)").nullable().optional()
|
|
20
|
+
}).describe("Response schema for task details in OneDesk. Contains comprehensive information about\na specific task/item including status, assignees, dates, and project associations.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { onedeskGetTaskDetails };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=get-task-details.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-details.mjs","names":[],"sources":["../../src/actions/get-task-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetTaskDetailsInput: z.ZodTypeAny = z.object({\n task_id: z.number().int().describe(\"Unique numeric identifier of the task/item to retrieve (must be a positive integer, e.g., 1, 2, 123)\"),\n}).describe(\"Request parameters for retrieving details of a specific task/item in OneDesk.\\nOneDesk uses 'items' to represent tasks, tickets, issues, and other work items.\");\nexport const OnedeskGetTaskDetailsOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the task/item\"),\n tags: z.array(z.string()).describe(\"List of tag strings associated with the task, null if no tags\").nullable().optional(),\n title: z.string().describe(\"Title or name of the task\"),\n due_date: z.string().describe(\"ISO 8601 timestamp for the task's due date (e.g., '2026-01-28T17:00:00.000+00:00'), null if no due date is set\").nullable().optional(),\n priority: z.string().describe(\"Priority level as a numeric string (e.g., '0', '40', '80', '100'), where higher numbers indicate higher priority\").nullable().optional(),\n status_id: z.string().describe(\"Current status name of the task (e.g., 'Open', 'In Progress', 'Pending agent', 'Resolved', 'Closed')\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the task was created (e.g., '2026-01-27T10:50:44.311+00:00')\"),\n project_id: z.string().describe(\"UUID of the project this task belongs to (e.g., '9febee81-33b6-4ea1-a247-cd4fa1503133')\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the task was last modified (e.g., '2026-01-28T10:50:44.657+00:00')\"),\n assignee_id: z.string().describe(\"UUID of the user assigned to this task (e.g., '8bfbed81-2318-4352-849d-dc49fb6352ef'), null if unassigned\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the task (may contain HTML formatting, can be null or empty string)\").nullable().optional(),\n}).describe(\"Response schema for task details in OneDesk. Contains comprehensive information about\\na specific task/item including status, assignees, dates, and project associations.\");\n\nexport const onedeskGetTaskDetails = action(\"ONEDESK_GET_TASK_DETAILS\", {\n slug: \"onedesk-get-task-details\",\n name: \"Get Task Details\",\n description: \"Retrieves comprehensive details of a specific task/item in OneDesk by its ID. Use this tool when you need complete information about a task including its title, description, status, assignee, priority, due date, and project association. OneDesk uses 'items' to represent various work units including tasks, tickets, issues, and requirements. Returns detailed task information if found, or raises an error if the task doesn't exist or you don't have permission to access it.\",\n input: OnedeskGetTaskDetailsInput,\n output: OnedeskGetTaskDetailsOutput,\n});\n"],"mappings":";;AAqBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,EAC3I,CAAC,CAAC,CAAC,SAAS,gKAmBH;CACP,QAnBuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAClE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,CAAC,CAAC,CAAC,SAAS,2KAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-tickets.ts
|
|
4
|
+
const OnedeskGetTicketsInput = zod.z.object({
|
|
5
|
+
end_id: zod.z.number().int().default(50).describe("Ending item ID for the range to query (inclusive, must be >= start_id)").optional(),
|
|
6
|
+
start_id: zod.z.number().int().default(1).describe("Starting item ID for the range to query (inclusive, must be >= 1)").optional(),
|
|
7
|
+
max_tickets: zod.z.number().int().default(20).describe("Maximum number of tickets to return (1-100)").optional()
|
|
8
|
+
}).describe("Request model for retrieving tickets from OneDesk.\n\nNOTE: The OneDesk Public API does not provide a direct endpoint to list all tickets.\nThis action works around this limitation by querying a range of item IDs and filtering\nfor items with type='Ticket'. This approach retrieves tickets that exist within the\nspecified ID range.");
|
|
9
|
+
const OnedeskGetTickets_TicketSchema = zod.z.object({
|
|
10
|
+
id: zod.z.number().int().describe("Unique internal identifier of the ticket"),
|
|
11
|
+
name: zod.z.string().describe("Name/title of the ticket"),
|
|
12
|
+
type: zod.z.string().describe("Item type (should be 'Ticket' for ticket items)"),
|
|
13
|
+
edited: zod.z.string().describe("ISO 8601 timestamp when the ticket was last edited"),
|
|
14
|
+
status: zod.z.string().describe("Current lifecycle status (e.g., 'Open', 'Pending agent', 'Closed')"),
|
|
15
|
+
created: zod.z.string().describe("ISO 8601 timestamp when the ticket was created"),
|
|
16
|
+
priority: zod.z.number().int().describe("Priority level as integer (higher = more urgent, e.g., 80, 100)"),
|
|
17
|
+
project_id: zod.z.string().describe("External UUID of the project").nullable().optional(),
|
|
18
|
+
author_name: zod.z.string().describe("Display name of the ticket author").nullable().optional(),
|
|
19
|
+
description: zod.z.string().describe("Detailed HTML description of the ticket").nullable().optional(),
|
|
20
|
+
external_id: zod.z.string().describe("External UUID identifier for the ticket"),
|
|
21
|
+
author_email: zod.z.string().describe("Email of the ticket author").nullable().optional(),
|
|
22
|
+
project_name: zod.z.string().describe("Name of the project the ticket belongs to").nullable().optional(),
|
|
23
|
+
status_state: zod.z.string().describe("Status state category ('not started', 'in progress', 'completed')").nullable().optional(),
|
|
24
|
+
work_item_url: zod.z.string().describe("Direct URL to view the ticket in OneDesk web application").nullable().optional(),
|
|
25
|
+
assignee_names: zod.z.array(zod.z.string()).describe("List of display names of users assigned to the ticket").nullable().optional()
|
|
26
|
+
}).describe("Representation of a OneDesk ticket with comprehensive details.");
|
|
27
|
+
const OnedeskGetTicketsOutput = zod.z.object({
|
|
28
|
+
tickets: zod.z.array(OnedeskGetTickets_TicketSchema).describe("List of tickets retrieved from the specified ID range"),
|
|
29
|
+
range_queried: zod.z.string().describe("The ID range that was queried (format: 'start_id-end_id')"),
|
|
30
|
+
total_returned: zod.z.number().int().describe("Total number of tickets returned in this response")
|
|
31
|
+
}).describe("Response model containing a list of tickets and query metadata.");
|
|
32
|
+
const onedeskGetTickets = require_action.action("ONEDESK_GET_TICKETS", {
|
|
33
|
+
slug: "onedesk-get-tickets",
|
|
34
|
+
name: "Get Tickets",
|
|
35
|
+
description: "Retrieve tickets from OneDesk by querying a range of item IDs. **API LIMITATION WORKAROUND**: The OneDesk Public API does not provide a direct endpoint to list all tickets. This action works around this by: 1. Querying individual items by ID within the specified range (start_id to end_id) 2. Filtering results to return only items with type='Ticket' 3. Limiting results to the max_tickets parameter **How it works**: - The action queries items sequentially from start_id to end_id - Only items with type='Ticket' are included in the results - Stops after collecting max_tickets tickets or reaching end_id - Non-existent IDs and non-ticket items (tasks, folders, etc.) are skipped **Best practices**: - Use smaller ranges (e.g., 1-50) for faster responses - Adjust start_id based on your known ticket ID ranges - Use max_tickets to limit the number of results The OneDesk Public API endpoint used: GET /rest/public/items/id/{id}",
|
|
36
|
+
input: OnedeskGetTicketsInput,
|
|
37
|
+
output: OnedeskGetTicketsOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.onedeskGetTickets = onedeskGetTickets;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=get-tickets.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets.cjs","names":["z","action"],"sources":["../../src/actions/get-tickets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetTicketsInput: z.ZodTypeAny = z.object({\n end_id: z.number().int().default(50).describe(\"Ending item ID for the range to query (inclusive, must be >= start_id)\").optional(),\n start_id: z.number().int().default(1).describe(\"Starting item ID for the range to query (inclusive, must be >= 1)\").optional(),\n max_tickets: z.number().int().default(20).describe(\"Maximum number of tickets to return (1-100)\").optional(),\n}).describe(\"Request model for retrieving tickets from OneDesk.\\n\\nNOTE: The OneDesk Public API does not provide a direct endpoint to list all tickets.\\nThis action works around this limitation by querying a range of item IDs and filtering\\nfor items with type='Ticket'. This approach retrieves tickets that exist within the\\nspecified ID range.\");\nconst OnedeskGetTickets_TicketSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique internal identifier of the ticket\"),\n name: z.string().describe(\"Name/title of the ticket\"),\n type: z.string().describe(\"Item type (should be 'Ticket' for ticket items)\"),\n edited: z.string().describe(\"ISO 8601 timestamp when the ticket was last edited\"),\n status: z.string().describe(\"Current lifecycle status (e.g., 'Open', 'Pending agent', 'Closed')\"),\n created: z.string().describe(\"ISO 8601 timestamp when the ticket was created\"),\n priority: z.number().int().describe(\"Priority level as integer (higher = more urgent, e.g., 80, 100)\"),\n project_id: z.string().describe(\"External UUID of the project\").nullable().optional(),\n author_name: z.string().describe(\"Display name of the ticket author\").nullable().optional(),\n description: z.string().describe(\"Detailed HTML description of the ticket\").nullable().optional(),\n external_id: z.string().describe(\"External UUID identifier for the ticket\"),\n author_email: z.string().describe(\"Email of the ticket author\").nullable().optional(),\n project_name: z.string().describe(\"Name of the project the ticket belongs to\").nullable().optional(),\n status_state: z.string().describe(\"Status state category ('not started', 'in progress', 'completed')\").nullable().optional(),\n work_item_url: z.string().describe(\"Direct URL to view the ticket in OneDesk web application\").nullable().optional(),\n assignee_names: z.array(z.string()).describe(\"List of display names of users assigned to the ticket\").nullable().optional(),\n}).describe(\"Representation of a OneDesk ticket with comprehensive details.\");\nexport const OnedeskGetTicketsOutput: z.ZodTypeAny = z.object({\n tickets: z.array(OnedeskGetTickets_TicketSchema).describe(\"List of tickets retrieved from the specified ID range\"),\n range_queried: z.string().describe(\"The ID range that was queried (format: 'start_id-end_id')\"),\n total_returned: z.number().int().describe(\"Total number of tickets returned in this response\"),\n}).describe(\"Response model containing a list of tickets and query metadata.\");\n\nexport const onedeskGetTickets = action(\"ONEDESK_GET_TICKETS\", {\n slug: \"onedesk-get-tickets\",\n name: \"Get Tickets\",\n description: \"Retrieve tickets from OneDesk by querying a range of item IDs. **API LIMITATION WORKAROUND**: The OneDesk Public API does not provide a direct endpoint to list all tickets. This action works around this by: 1. Querying individual items by ID within the specified range (start_id to end_id) 2. Filtering results to return only items with type='Ticket' 3. Limiting results to the max_tickets parameter **How it works**: - The action queries items sequentially from start_id to end_id - Only items with type='Ticket' are included in the results - Stops after collecting max_tickets tickets or reaching end_id - Non-existent IDs and non-ticket items (tasks, folders, etc.) are skipped **Best practices**: - Use smaller ranges (e.g., 1-50) for faster responses - Adjust start_id based on your known ticket ID ranges - Use max_tickets to limit the number of results The OneDesk Public API endpoint used: GET /rest/public/items/id/{id}\",\n input: OnedeskGetTicketsInput,\n output: OnedeskGetTicketsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,8UAA8U;AAC1V,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,uDAAuD;CACjH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC9F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;AAC/F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,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/get-tickets.d.ts
|
|
4
|
+
declare const OnedeskGetTicketsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetTicketsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetTickets: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetTickets };
|
|
9
|
+
//# sourceMappingURL=get-tickets.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets.d.cts","names":[],"sources":["../../src/actions/get-tickets.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIoT;AAAA,cAmB9U,uBAAA,EAAyB,CAAA,CAAE,UAIsC;AAAA,cAEjE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-tickets.d.ts
|
|
4
|
+
declare const OnedeskGetTicketsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetTicketsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetTickets: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetTickets };
|
|
9
|
+
//# sourceMappingURL=get-tickets.d.mts.map
|