@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,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-project.d.ts
|
|
4
|
+
declare const OnedeskDeleteProjectInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteProjectOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteProject };
|
|
9
|
+
//# sourceMappingURL=delete-project.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-project.d.mts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskDeleteProject = action("ONEDESK_DELETE_PROJECT", {
|
|
4
|
+
slug: "onedesk-delete-project",
|
|
5
|
+
name: "Delete Project",
|
|
6
|
+
description: "Delete a project in OneDesk by its ID. **API LIMITATION**: The OneDesk Public API does not support DELETE operations. DELETE requests return 405 Method Not Allowed on /rest/public/items endpoints. The public API only supports: - POST /items/ (create) - GET /items/id/{id} (retrieve by ID) - GET /items/externalId/{externalId} (retrieve by external ID) - GET /organization/profileAndPolicy (organization info) **Alternatives**: - Use OneDesk web application to delete projects manually - Contact OneDesk support for private API access - Use ONEDESK_GET_ISSUE_DETAILS if you need to check item status This action will fail with a clear error explaining the limitation.",
|
|
7
|
+
input: z.object({ project_id: z.number().int().describe("Unique identifier of the project to delete") }).describe("Request model for deleting a project."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
deleted: z.boolean().describe("Whether the project was successfully deleted"),
|
|
10
|
+
project_id: z.number().int().describe("Identifier of the deleted project")
|
|
11
|
+
}).describe("Response model for deleting a project.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { onedeskDeleteProject };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-project.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-project.mjs","names":[],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteProjectInput: z.ZodTypeAny = z.object({\n project_id: z.number().int().describe(\"Unique identifier of the project to delete\"),\n}).describe(\"Request model for deleting a project.\");\nexport const OnedeskDeleteProjectOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the project was successfully deleted\"),\n project_id: z.number().int().describe(\"Identifier of the deleted project\"),\n}).describe(\"Response model for deleting a project.\");\n\nexport const onedeskDeleteProject = action(\"ONEDESK_DELETE_PROJECT\", {\n slug: \"onedesk-delete-project\",\n name: \"Delete Project\",\n description: \"Delete a project in OneDesk by its ID. **API LIMITATION**: The OneDesk Public API does not support DELETE operations. DELETE requests return 405 Method Not Allowed on /rest/public/items endpoints. The public API only supports: - POST /items/ (create) - GET /items/id/{id} (retrieve by ID) - GET /items/externalId/{externalId} (retrieve by external ID) - GET /organization/profileAndPolicy (organization info) **Alternatives**: - Use OneDesk web application to delete projects manually - Contact OneDesk support for private API access - Use ONEDESK_GET_ISSUE_DETAILS if you need to check item status This action will fail with a clear error explaining the limitation.\",\n input: OnedeskDeleteProjectInput,\n output: OnedeskDeleteProjectOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,uCAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CAC3E,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-requirement.ts
|
|
4
|
+
const OnedeskDeleteRequirementInput = zod.z.object({ requirement_id: zod.z.number().int().describe("Unique internal ID of the requirement to delete. This is the numeric 'id' field returned by OneDesk API, not the externalId.") }).describe("Request model for deleting a requirement.");
|
|
5
|
+
const OnedeskDeleteRequirementOutput = zod.z.object({ success: zod.z.boolean().describe("Whether the requirement was successfully deleted") }).describe("Response model for deleting a requirement.");
|
|
6
|
+
const onedeskDeleteRequirement = require_action.action("ONEDESK_DELETE_REQUIREMENT", {
|
|
7
|
+
slug: "onedesk-delete-requirement",
|
|
8
|
+
name: "Delete Requirement",
|
|
9
|
+
description: "Delete a requirement from OneDesk. Requirements in OneDesk are work items used for product development, feature requests, and specifications. They are one of the core work item types (tickets, tasks, requirements, issues). IMPORTANT: This operation may not be supported by all OneDesk Public API versions. If deletion fails, the API may only support soft-delete or archiving through status updates. Use when you need to permanently remove a requirement by its internal numeric ID. Example: {'requirement_id': 12345}",
|
|
10
|
+
input: OnedeskDeleteRequirementInput,
|
|
11
|
+
output: OnedeskDeleteRequirementOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.onedeskDeleteRequirement = onedeskDeleteRequirement;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-requirement.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-requirement.cjs","names":["z","action"],"sources":["../../src/actions/delete-requirement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteRequirementInput: z.ZodTypeAny = z.object({\n requirement_id: z.number().int().describe(\"Unique internal ID of the requirement to delete. This is the numeric 'id' field returned by OneDesk API, not the externalId.\"),\n}).describe(\"Request model for deleting a requirement.\");\nexport const OnedeskDeleteRequirementOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the requirement was successfully deleted\"),\n}).describe(\"Response model for deleting a requirement.\");\n\nexport const onedeskDeleteRequirement = action(\"ONEDESK_DELETE_REQUIREMENT\", {\n slug: \"onedesk-delete-requirement\",\n name: \"Delete Requirement\",\n description: \"Delete a requirement from OneDesk. Requirements in OneDesk are work items used for product development, feature requests, and specifications. They are one of the core work item types (tickets, tasks, requirements, issues). IMPORTANT: This operation may not be supported by all OneDesk Public API versions. If deletion fails, the API may only support soft-delete or archiving through status updates. Use when you need to permanently remove a requirement by its internal numeric ID. Example: {'requirement_id': 12345}\",\n input: OnedeskDeleteRequirementInput,\n output: OnedeskDeleteRequirementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H,EAC1K,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-requirement.d.ts
|
|
4
|
+
declare const OnedeskDeleteRequirementInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteRequirementOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteRequirement: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteRequirement };
|
|
9
|
+
//# sourceMappingURL=delete-requirement.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-requirement.d.cts","names":[],"sources":["../../src/actions/delete-requirement.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEU;AAAA,cAC3C,8BAAA,EAAgC,CAAA,CAAE,UAEU;AAAA,cAE5C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-requirement.d.ts
|
|
4
|
+
declare const OnedeskDeleteRequirementInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteRequirementOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteRequirement: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteRequirement };
|
|
9
|
+
//# sourceMappingURL=delete-requirement.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-requirement.d.mts","names":[],"sources":["../../src/actions/delete-requirement.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEU;AAAA,cAC3C,8BAAA,EAAgC,CAAA,CAAE,UAEU;AAAA,cAE5C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskDeleteRequirement = action("ONEDESK_DELETE_REQUIREMENT", {
|
|
4
|
+
slug: "onedesk-delete-requirement",
|
|
5
|
+
name: "Delete Requirement",
|
|
6
|
+
description: "Delete a requirement from OneDesk. Requirements in OneDesk are work items used for product development, feature requests, and specifications. They are one of the core work item types (tickets, tasks, requirements, issues). IMPORTANT: This operation may not be supported by all OneDesk Public API versions. If deletion fails, the API may only support soft-delete or archiving through status updates. Use when you need to permanently remove a requirement by its internal numeric ID. Example: {'requirement_id': 12345}",
|
|
7
|
+
input: z.object({ requirement_id: z.number().int().describe("Unique internal ID of the requirement to delete. This is the numeric 'id' field returned by OneDesk API, not the externalId.") }).describe("Request model for deleting a requirement."),
|
|
8
|
+
output: z.object({ success: z.boolean().describe("Whether the requirement was successfully deleted") }).describe("Response model for deleting a requirement.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { onedeskDeleteRequirement };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-requirement.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-requirement.mjs","names":[],"sources":["../../src/actions/delete-requirement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteRequirementInput: z.ZodTypeAny = z.object({\n requirement_id: z.number().int().describe(\"Unique internal ID of the requirement to delete. This is the numeric 'id' field returned by OneDesk API, not the externalId.\"),\n}).describe(\"Request model for deleting a requirement.\");\nexport const OnedeskDeleteRequirementOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the requirement was successfully deleted\"),\n}).describe(\"Response model for deleting a requirement.\");\n\nexport const onedeskDeleteRequirement = action(\"ONEDESK_DELETE_REQUIREMENT\", {\n slug: \"onedesk-delete-requirement\",\n name: \"Delete Requirement\",\n description: \"Delete a requirement from OneDesk. Requirements in OneDesk are work items used for product development, feature requests, and specifications. They are one of the core work item types (tickets, tasks, requirements, issues). IMPORTANT: This operation may not be supported by all OneDesk Public API versions. If deletion fails, the API may only support soft-delete or archiving through status updates. Use when you need to permanently remove a requirement by its internal numeric ID. Example: {'requirement_id': 12345}\",\n input: OnedeskDeleteRequirementInput,\n output: OnedeskDeleteRequirementOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXyD,EAAE,OAAO,EAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H,EAC1K,CAAC,CAAC,CAAC,SAAS,2CASH;CACP,QAT0D,EAAE,OAAO,EACnE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-task.ts
|
|
4
|
+
const OnedeskDeleteTaskInput = zod.z.object({ task_id: zod.z.number().int().describe("Unique identifier of the task to delete") }).describe("Parameters required to delete a task in OneDesk.");
|
|
5
|
+
const OnedeskDeleteTaskOutput = zod.z.object({
|
|
6
|
+
deleted: zod.z.boolean().describe("Whether the task was successfully deleted"),
|
|
7
|
+
task_id: zod.z.number().int().describe("Identifier of the deleted task")
|
|
8
|
+
}).describe("Response after deleting a task in OneDesk.");
|
|
9
|
+
const onedeskDeleteTask = require_action.action("ONEDESK_DELETE_TASK", {
|
|
10
|
+
slug: "onedesk-delete-task",
|
|
11
|
+
name: "Delete Task",
|
|
12
|
+
description: "Tool to delete a specific task. Use when you need to remove an existing task by its ID after confirming its details.",
|
|
13
|
+
input: OnedeskDeleteTaskInput,
|
|
14
|
+
output: OnedeskDeleteTaskOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.onedeskDeleteTask = onedeskDeleteTask;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-task.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-task.cjs","names":["z","action"],"sources":["../../src/actions/delete-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteTaskInput: z.ZodTypeAny = z.object({\n task_id: z.number().int().describe(\"Unique identifier of the task to delete\"),\n}).describe(\"Parameters required to delete a task in OneDesk.\");\nexport const OnedeskDeleteTaskOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the task was successfully deleted\"),\n task_id: z.number().int().describe(\"Identifier of the deleted task\"),\n}).describe(\"Response after deleting a task in OneDesk.\");\n\nexport const onedeskDeleteTask = action(\"ONEDESK_DELETE_TASK\", {\n slug: \"onedesk-delete-task\",\n name: \"Delete Task\",\n description: \"Tool to delete a specific task. Use when you need to remove an existing task by its ID after confirming its details.\",\n input: OnedeskDeleteTaskInput,\n output: OnedeskDeleteTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EAC9E,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;AACrE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,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/delete-task.d.ts
|
|
4
|
+
declare const OnedeskDeleteTaskInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteTaskOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteTask: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteTask };
|
|
9
|
+
//# sourceMappingURL=delete-task.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-task.d.cts","names":[],"sources":["../../src/actions/delete-task.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEwB;AAAA,cAClD,uBAAA,EAAyB,CAAA,CAAE,UAGiB;AAAA,cAE5C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-task.d.ts
|
|
4
|
+
declare const OnedeskDeleteTaskInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteTaskOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteTask: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteTask };
|
|
9
|
+
//# sourceMappingURL=delete-task.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-task.d.mts","names":[],"sources":["../../src/actions/delete-task.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEwB;AAAA,cAClD,uBAAA,EAAyB,CAAA,CAAE,UAGiB;AAAA,cAE5C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskDeleteTask = action("ONEDESK_DELETE_TASK", {
|
|
4
|
+
slug: "onedesk-delete-task",
|
|
5
|
+
name: "Delete Task",
|
|
6
|
+
description: "Tool to delete a specific task. Use when you need to remove an existing task by its ID after confirming its details.",
|
|
7
|
+
input: z.object({ task_id: z.number().int().describe("Unique identifier of the task to delete") }).describe("Parameters required to delete a task in OneDesk."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
deleted: z.boolean().describe("Whether the task was successfully deleted"),
|
|
10
|
+
task_id: z.number().int().describe("Identifier of the deleted task")
|
|
11
|
+
}).describe("Response after deleting a task in OneDesk.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { onedeskDeleteTask };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-task.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-task.mjs","names":[],"sources":["../../src/actions/delete-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteTaskInput: z.ZodTypeAny = z.object({\n task_id: z.number().int().describe(\"Unique identifier of the task to delete\"),\n}).describe(\"Parameters required to delete a task in OneDesk.\");\nexport const OnedeskDeleteTaskOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the task was successfully deleted\"),\n task_id: z.number().int().describe(\"Identifier of the deleted task\"),\n}).describe(\"Response after deleting a task in OneDesk.\");\n\nexport const onedeskDeleteTask = action(\"ONEDESK_DELETE_TASK\", {\n slug: \"onedesk-delete-task\",\n name: \"Delete Task\",\n description: \"Tool to delete a specific task. Use when you need to remove an existing task by its ID after confirming its details.\",\n input: OnedeskDeleteTaskInput,\n output: OnedeskDeleteTaskOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkD,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EAC9E,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACrE,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-ticket.ts
|
|
4
|
+
const OnedeskDeleteTicketInput = zod.z.object({ ticket_id: zod.z.number().int().describe("Unique identifier of the ticket to delete") }).describe("Request model for deleting a ticket.");
|
|
5
|
+
const OnedeskDeleteTicketOutput = zod.z.object({
|
|
6
|
+
deleted: zod.z.boolean().describe("Whether the ticket was successfully deleted"),
|
|
7
|
+
message: zod.z.string().describe("Additional context about the deletion attempt (e.g., 'not found', 'rate limited', 'deleted successfully')").nullable().optional(),
|
|
8
|
+
ticket_id: zod.z.number().int().describe("Identifier of the ticket"),
|
|
9
|
+
status_code: zod.z.number().int().describe("HTTP status code from the API response").nullable().optional()
|
|
10
|
+
}).describe("Response model for deleting a ticket.");
|
|
11
|
+
const onedeskDeleteTicket = require_action.action("ONEDESK_DELETE_TICKET", {
|
|
12
|
+
slug: "onedesk-delete-ticket",
|
|
13
|
+
name: "Delete Ticket",
|
|
14
|
+
description: "Deletes a ticket from OneDesk by its internal ID. Use this tool to permanently remove a ticket when it's no longer needed. The ticket will be moved to the 'Deleted Items' project and scheduled for permanent deletion after 7 days. Note: OneDesk's Public API has limited DELETE support. This action tries multiple possible endpoints to maximize compatibility. Example: {'ticket_id': 123} Returns: Deletion status with context about success/failure (e.g., ticket not found, rate limited, permission denied)",
|
|
15
|
+
input: OnedeskDeleteTicketInput,
|
|
16
|
+
output: OnedeskDeleteTicketOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.onedeskDeleteTicket = onedeskDeleteTicket;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=delete-ticket.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-ticket.cjs","names":["z","action"],"sources":["../../src/actions/delete-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteTicketInput: z.ZodTypeAny = z.object({\n ticket_id: z.number().int().describe(\"Unique identifier of the ticket to delete\"),\n}).describe(\"Request model for deleting a ticket.\");\nexport const OnedeskDeleteTicketOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the ticket was successfully deleted\"),\n message: z.string().describe(\"Additional context about the deletion attempt (e.g., 'not found', 'rate limited', 'deleted successfully')\").nullable().optional(),\n ticket_id: z.number().int().describe(\"Identifier of the ticket\"),\n status_code: z.number().int().describe(\"HTTP status code from the API response\").nullable().optional(),\n}).describe(\"Response model for deleting a ticket.\");\n\nexport const onedeskDeleteTicket = action(\"ONEDESK_DELETE_TICKET\", {\n slug: \"onedesk-delete-ticket\",\n name: \"Delete Ticket\",\n description: \"Deletes a ticket from OneDesk by its internal ID. Use this tool to permanently remove a ticket when it's no longer needed. The ticket will be moved to the 'Deleted Items' project and scheduled for permanent deletion after 7 days. Note: OneDesk's Public API has limited DELETE support. This action tries multiple possible endpoints to maximize compatibility. Example: {'ticket_id': 123} Returns: Deletion status with context about success/failure (e.g., ticket not found, rate limited, permission denied)\",\n input: OnedeskDeleteTicketInput,\n output: OnedeskDeleteTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-ticket.d.ts
|
|
4
|
+
declare const OnedeskDeleteTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteTicket };
|
|
9
|
+
//# sourceMappingURL=delete-ticket.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-ticket.d.cts","names":[],"sources":["../../src/actions/delete-ticket.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEU;AAAA,cACtC,yBAAA,EAA2B,CAAA,CAAE,UAKU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-ticket.d.ts
|
|
4
|
+
declare const OnedeskDeleteTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteTicket };
|
|
9
|
+
//# sourceMappingURL=delete-ticket.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-ticket.d.mts","names":[],"sources":["../../src/actions/delete-ticket.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEU;AAAA,cACtC,yBAAA,EAA2B,CAAA,CAAE,UAKU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskDeleteTicket = action("ONEDESK_DELETE_TICKET", {
|
|
4
|
+
slug: "onedesk-delete-ticket",
|
|
5
|
+
name: "Delete Ticket",
|
|
6
|
+
description: "Deletes a ticket from OneDesk by its internal ID. Use this tool to permanently remove a ticket when it's no longer needed. The ticket will be moved to the 'Deleted Items' project and scheduled for permanent deletion after 7 days. Note: OneDesk's Public API has limited DELETE support. This action tries multiple possible endpoints to maximize compatibility. Example: {'ticket_id': 123} Returns: Deletion status with context about success/failure (e.g., ticket not found, rate limited, permission denied)",
|
|
7
|
+
input: z.object({ ticket_id: z.number().int().describe("Unique identifier of the ticket to delete") }).describe("Request model for deleting a ticket."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
deleted: z.boolean().describe("Whether the ticket was successfully deleted"),
|
|
10
|
+
message: z.string().describe("Additional context about the deletion attempt (e.g., 'not found', 'rate limited', 'deleted successfully')").nullable().optional(),
|
|
11
|
+
ticket_id: z.number().int().describe("Identifier of the ticket"),
|
|
12
|
+
status_code: z.number().int().describe("HTTP status code from the API response").nullable().optional()
|
|
13
|
+
}).describe("Response model for deleting a ticket.")
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { onedeskDeleteTicket };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=delete-ticket.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-ticket.mjs","names":[],"sources":["../../src/actions/delete-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteTicketInput: z.ZodTypeAny = z.object({\n ticket_id: z.number().int().describe(\"Unique identifier of the ticket to delete\"),\n}).describe(\"Request model for deleting a ticket.\");\nexport const OnedeskDeleteTicketOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the ticket was successfully deleted\"),\n message: z.string().describe(\"Additional context about the deletion attempt (e.g., 'not found', 'rate limited', 'deleted successfully')\").nullable().optional(),\n ticket_id: z.number().int().describe(\"Identifier of the ticket\"),\n status_code: z.number().int().describe(\"HTTP status code from the API response\").nullable().optional(),\n}).describe(\"Response model for deleting a ticket.\");\n\nexport const onedeskDeleteTicket = action(\"ONEDESK_DELETE_TICKET\", {\n slug: \"onedesk-delete-ticket\",\n name: \"Delete Ticket\",\n description: \"Deletes a ticket from OneDesk by its internal ID. Use this tool to permanently remove a ticket when it's no longer needed. The ticket will be moved to the 'Deleted Items' project and scheduled for permanent deletion after 7 days. Note: OneDesk's Public API has limited DELETE support. This action tries multiple possible endpoints to maximize compatibility. Example: {'ticket_id': 123} Returns: Deletion status with context about success/failure (e.g., ticket not found, rate limited, permission denied)\",\n input: OnedeskDeleteTicketInput,\n output: OnedeskDeleteTicketOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO,EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC,CAAC,CAAC,SAAS,sCAYH;CACP,QAZqD,EAAE,OAAO;EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;EAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9J,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-timesheet.ts
|
|
4
|
+
const OnedeskDeleteTimesheetInput = zod.z.object({ timesheet_id: zod.z.number().int().describe("Unique identifier of the timesheet to delete") }).describe("Request model for deleting a timesheet.");
|
|
5
|
+
const OnedeskDeleteTimesheetOutput = zod.z.object({
|
|
6
|
+
deleted: zod.z.boolean().describe("Whether the timesheet was successfully deleted"),
|
|
7
|
+
timesheet_id: zod.z.number().int().describe("Identifier of the deleted timesheet")
|
|
8
|
+
}).describe("Response model for deleting a timesheet.");
|
|
9
|
+
const onedeskDeleteTimesheet = require_action.action("ONEDESK_DELETE_TIMESHEET", {
|
|
10
|
+
slug: "onedesk-delete-timesheet",
|
|
11
|
+
name: "Delete Timesheet",
|
|
12
|
+
description: "Tool to delete a timesheet by its ID. Use when you need to remove a specific timesheet after confirming it's no longer needed. Example: {'timesheet_id': 123}",
|
|
13
|
+
input: OnedeskDeleteTimesheetInput,
|
|
14
|
+
output: OnedeskDeleteTimesheetOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.onedeskDeleteTimesheet = onedeskDeleteTimesheet;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-timesheet.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-timesheet.cjs","names":["z","action"],"sources":["../../src/actions/delete-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteTimesheetInput: z.ZodTypeAny = z.object({\n timesheet_id: z.number().int().describe(\"Unique identifier of the timesheet to delete\"),\n}).describe(\"Request model for deleting a timesheet.\");\nexport const OnedeskDeleteTimesheetOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the timesheet was successfully deleted\"),\n timesheet_id: z.number().int().describe(\"Identifier of the deleted timesheet\"),\n}).describe(\"Response model for deleting a timesheet.\");\n\nexport const onedeskDeleteTimesheet = action(\"ONEDESK_DELETE_TIMESHEET\", {\n slug: \"onedesk-delete-timesheet\",\n name: \"Delete Timesheet\",\n description: \"Tool to delete a timesheet by its ID. Use when you need to remove a specific timesheet after confirming it's no longer needed. Example: {'timesheet_id': 123}\",\n input: OnedeskDeleteTimesheetInput,\n output: OnedeskDeleteTimesheetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACxF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;AAC/E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,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/delete-timesheet.d.ts
|
|
4
|
+
declare const OnedeskDeleteTimesheetInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteTimesheetOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteTimesheet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteTimesheet };
|
|
9
|
+
//# sourceMappingURL=delete-timesheet.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-timesheet.d.cts","names":[],"sources":["../../src/actions/delete-timesheet.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEU;AAAA,cACzC,4BAAA,EAA8B,CAAA,CAAE,UAGU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-timesheet.d.ts
|
|
4
|
+
declare const OnedeskDeleteTimesheetInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteTimesheetOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteTimesheet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteTimesheet };
|
|
9
|
+
//# sourceMappingURL=delete-timesheet.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-timesheet.d.mts","names":[],"sources":["../../src/actions/delete-timesheet.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEU;AAAA,cACzC,4BAAA,EAA8B,CAAA,CAAE,UAGU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskDeleteTimesheet = action("ONEDESK_DELETE_TIMESHEET", {
|
|
4
|
+
slug: "onedesk-delete-timesheet",
|
|
5
|
+
name: "Delete Timesheet",
|
|
6
|
+
description: "Tool to delete a timesheet by its ID. Use when you need to remove a specific timesheet after confirming it's no longer needed. Example: {'timesheet_id': 123}",
|
|
7
|
+
input: z.object({ timesheet_id: z.number().int().describe("Unique identifier of the timesheet to delete") }).describe("Request model for deleting a timesheet."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
deleted: z.boolean().describe("Whether the timesheet was successfully deleted"),
|
|
10
|
+
timesheet_id: z.number().int().describe("Identifier of the deleted timesheet")
|
|
11
|
+
}).describe("Response model for deleting a timesheet.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { onedeskDeleteTimesheet };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-timesheet.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-timesheet.mjs","names":[],"sources":["../../src/actions/delete-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteTimesheetInput: z.ZodTypeAny = z.object({\n timesheet_id: z.number().int().describe(\"Unique identifier of the timesheet to delete\"),\n}).describe(\"Request model for deleting a timesheet.\");\nexport const OnedeskDeleteTimesheetOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Whether the timesheet was successfully deleted\"),\n timesheet_id: z.number().int().describe(\"Identifier of the deleted timesheet\"),\n}).describe(\"Response model for deleting a timesheet.\");\n\nexport const onedeskDeleteTimesheet = action(\"ONEDESK_DELETE_TIMESHEET\", {\n slug: \"onedesk-delete-timesheet\",\n name: \"Delete Timesheet\",\n description: \"Tool to delete a timesheet by its ID. Use when you need to remove a specific timesheet after confirming it's no longer needed. Example: {'timesheet_id': 123}\",\n input: OnedeskDeleteTimesheetInput,\n output: OnedeskDeleteTimesheetOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACxF,CAAC,CAAC,CAAC,SAAS,yCAUH;CACP,QAVwD,EAAE,OAAO;EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;EAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC/E,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-user.ts
|
|
4
|
+
const OnedeskDeleteUserInput = zod.z.object({ user_id: zod.z.string().describe("The unique identifier of the user to delete from OneDesk") }).describe("Request model for deleting a user from OneDesk.");
|
|
5
|
+
const OnedeskDeleteUserOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Human-readable message describing the result (e.g., 'User deleted successfully', 'User not found', 'Permission denied')"),
|
|
7
|
+
success: zod.z.boolean().describe("True if the user was successfully deleted, False otherwise"),
|
|
8
|
+
status_code: zod.z.number().int().describe("HTTP status code from the API response (200/204 for success, 404 for not found, etc.)")
|
|
9
|
+
}).describe("Response model indicating the result of the user deletion operation.");
|
|
10
|
+
const onedeskDeleteUser = require_action.action("ONEDESK_DELETE_USER", {
|
|
11
|
+
slug: "onedesk-delete-user",
|
|
12
|
+
name: "Delete User",
|
|
13
|
+
description: "Deletes a user from OneDesk by their unique user ID. This action permanently removes the specified user from the OneDesk account. Use this only after confirming the user should be removed from the system. **Important Notes:** - The OneDesk Public API has limited user management capabilities - There is no public API endpoint to list or create users - User IDs must be obtained through other means (e.g., OneDesk web application, internal systems) **Returns:** - success=True with status_code 200/204 if user was successfully deleted - success=False with status_code 404 if user was not found - success=False with appropriate status_code for other errors (403 for permission denied, 429 for rate limited, etc.) Example: {'user_id': '12345'}",
|
|
14
|
+
input: OnedeskDeleteUserInput,
|
|
15
|
+
output: OnedeskDeleteUserOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.onedeskDeleteUser = onedeskDeleteUser;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=delete-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to delete from OneDesk\"),\n}).describe(\"Request model for deleting a user from OneDesk.\");\nexport const OnedeskDeleteUserOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Human-readable message describing the result (e.g., 'User deleted successfully', 'User not found', 'Permission denied')\"),\n success: z.boolean().describe(\"True if the user was successfully deleted, False otherwise\"),\n status_code: z.number().int().describe(\"HTTP status code from the API response (200/204 for success, 404 for not found, etc.)\"),\n}).describe(\"Response model indicating the result of the user deletion operation.\");\n\nexport const onedeskDeleteUser = action(\"ONEDESK_DELETE_USER\", {\n slug: \"onedesk-delete-user\",\n name: \"Delete User\",\n description: \"Deletes a user from OneDesk by their unique user ID. This action permanently removes the specified user from the OneDesk account. Use this only after confirming the user should be removed from the system. **Important Notes:** - The OneDesk Public API has limited user management capabilities - There is no public API endpoint to list or create users - User IDs must be obtained through other means (e.g., OneDesk web application, internal systems) **Returns:** - success=True with status_code 200/204 if user was successfully deleted - success=False with status_code 404 if user was not found - success=False with appropriate status_code for other errors (403 for permission denied, 429 for rate limited, etc.) Example: {'user_id': '12345'}\",\n input: OnedeskDeleteUserInput,\n output: OnedeskDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACzF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACtJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF;AAChI,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAElF,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/delete-user.d.ts
|
|
4
|
+
declare const OnedeskDeleteUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteUser };
|
|
9
|
+
//# sourceMappingURL=delete-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEuB;AAAA,cACjD,uBAAA,EAAyB,CAAA,CAAE,UAI2C;AAAA,cAEtE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-user.d.ts
|
|
4
|
+
declare const OnedeskDeleteUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskDeleteUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskDeleteUser };
|
|
9
|
+
//# sourceMappingURL=delete-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEuB;AAAA,cACjD,uBAAA,EAAyB,CAAA,CAAE,UAI2C;AAAA,cAEtE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskDeleteUser = action("ONEDESK_DELETE_USER", {
|
|
4
|
+
slug: "onedesk-delete-user",
|
|
5
|
+
name: "Delete User",
|
|
6
|
+
description: "Deletes a user from OneDesk by their unique user ID. This action permanently removes the specified user from the OneDesk account. Use this only after confirming the user should be removed from the system. **Important Notes:** - The OneDesk Public API has limited user management capabilities - There is no public API endpoint to list or create users - User IDs must be obtained through other means (e.g., OneDesk web application, internal systems) **Returns:** - success=True with status_code 200/204 if user was successfully deleted - success=False with status_code 404 if user was not found - success=False with appropriate status_code for other errors (403 for permission denied, 429 for rate limited, etc.) Example: {'user_id': '12345'}",
|
|
7
|
+
input: z.object({ user_id: z.string().describe("The unique identifier of the user to delete from OneDesk") }).describe("Request model for deleting a user from OneDesk."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Human-readable message describing the result (e.g., 'User deleted successfully', 'User not found', 'Permission denied')"),
|
|
10
|
+
success: z.boolean().describe("True if the user was successfully deleted, False otherwise"),
|
|
11
|
+
status_code: z.number().int().describe("HTTP status code from the API response (200/204 for success, 404 for not found, etc.)")
|
|
12
|
+
}).describe("Response model indicating the result of the user deletion operation.")
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { onedeskDeleteUser };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=delete-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskDeleteUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to delete from OneDesk\"),\n}).describe(\"Request model for deleting a user from OneDesk.\");\nexport const OnedeskDeleteUserOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Human-readable message describing the result (e.g., 'User deleted successfully', 'User not found', 'Permission denied')\"),\n success: z.boolean().describe(\"True if the user was successfully deleted, False otherwise\"),\n status_code: z.number().int().describe(\"HTTP status code from the API response (200/204 for success, 404 for not found, etc.)\"),\n}).describe(\"Response model indicating the result of the user deletion operation.\");\n\nexport const onedeskDeleteUser = action(\"ONEDESK_DELETE_USER\", {\n slug: \"onedesk-delete-user\",\n name: \"Delete User\",\n description: \"Deletes a user from OneDesk by their unique user ID. This action permanently removes the specified user from the OneDesk account. Use this only after confirming the user should be removed from the system. **Important Notes:** - The OneDesk Public API has limited user management capabilities - There is no public API endpoint to list or create users - User IDs must be obtained through other means (e.g., OneDesk web application, internal systems) **Returns:** - success=True with status_code 200/204 if user was successfully deleted - success=False with status_code 404 if user was not found - success=False with appropriate status_code for other errors (403 for permission denied, 429 for rate limited, etc.) Example: {'user_id': '12345'}\",\n input: OnedeskDeleteUserInput,\n output: OnedeskDeleteUserOutput,\n});\n"],"mappings":";;AAaA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkD,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACzF,CAAC,CAAC,CAAC,SAAS,iDAWH;CACP,QAXmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACtJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF;CAChI,CAAC,CAAC,CAAC,SAAS,sEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-attachments.ts
|
|
4
|
+
const OnedeskGetAttachmentsInput = zod.z.object({ external_id: zod.z.string().describe("External ID of the item (ticket/task) to retrieve attachments from. Required because the Public API only supports fetching items by external ID.") }).describe("Request parameters for retrieving item attachments via external ID.\nThe OneDesk Public API does not provide a dedicated attachments list endpoint.\nAttachments can only be retrieved as part of item details when fetching by external ID.");
|
|
5
|
+
const OnedeskGetAttachments_AttachmentSchema = zod.z.object({
|
|
6
|
+
url: zod.z.string().describe("URL to access/download the attachment (if available)").nullable().optional(),
|
|
7
|
+
name: zod.z.string().describe("Filename of the attachment (e.g., 'document.pdf')").nullable().optional(),
|
|
8
|
+
size: zod.z.number().int().describe("Size of the attachment in bytes (if available)").nullable().optional(),
|
|
9
|
+
fileId: zod.z.number().int().describe("Numeric identifier of the file (e.g., 514954)").nullable().optional(),
|
|
10
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the attachment was created (if available)").nullable().optional(),
|
|
11
|
+
updatedAt: zod.z.string().describe("ISO 8601 timestamp when the attachment was last updated (if available)").nullable().optional(),
|
|
12
|
+
contentType: zod.z.string().describe("MIME type of the attachment (e.g., 'image/jpeg', 'application/pdf')").nullable().optional(),
|
|
13
|
+
identityKey: zod.z.string().describe("Unique identity key for the attachment (e.g., 'k1')").nullable().optional()
|
|
14
|
+
}).describe("Representation of an attachment in OneDesk.\nBased on the actual OneDesk API response format.");
|
|
15
|
+
const OnedeskGetAttachmentsOutput = zod.z.object({
|
|
16
|
+
message: zod.z.string().describe("Additional information about the response").nullable().optional(),
|
|
17
|
+
attachments: zod.z.array(OnedeskGetAttachments_AttachmentSchema).describe("List of attachments from the item").nullable().optional(),
|
|
18
|
+
external_id: zod.z.string().describe("External ID of the item queried")
|
|
19
|
+
}).describe("Response model containing attachments from a specific item.");
|
|
20
|
+
const onedeskGetAttachments = require_action.action("ONEDESK_GET_ATTACHMENTS", {
|
|
21
|
+
slug: "onedesk-get-attachments",
|
|
22
|
+
name: "Get Attachments",
|
|
23
|
+
description: "Retrieve attachments for a specific item by its external ID. IMPORTANT: The OneDesk Public API (/rest/public) has limited functionality and does NOT provide: - A dedicated attachments list endpoint - Ability to list all attachments across items - Endpoints to retrieve items by internal ID This action retrieves attachments by fetching an item via its external ID and extracting attachment data from the item response. You must know the external ID of the item in advance. Supported endpoints: 1. GET /rest/public/items/externalId/{externalId} - Fetch item by external ID 2. POST /rest/public/items/ - Create new items (not used here) 3. GET /rest/public/organization/profileAndPolicy - Get organization info (not used here)",
|
|
24
|
+
input: OnedeskGetAttachmentsInput,
|
|
25
|
+
output: OnedeskGetAttachmentsOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.onedeskGetAttachments = onedeskGetAttachments;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=get-attachments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-attachments.cjs","names":["z","action"],"sources":["../../src/actions/get-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetAttachmentsInput: z.ZodTypeAny = z.object({\n external_id: z.string().describe(\"External ID of the item (ticket/task) to retrieve attachments from. Required because the Public API only supports fetching items by external ID.\"),\n}).describe(\"Request parameters for retrieving item attachments via external ID.\\nThe OneDesk Public API does not provide a dedicated attachments list endpoint.\\nAttachments can only be retrieved as part of item details when fetching by external ID.\");\nconst OnedeskGetAttachments_AttachmentSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to access/download the attachment (if available)\").nullable().optional(),\n name: z.string().describe(\"Filename of the attachment (e.g., 'document.pdf')\").nullable().optional(),\n size: z.number().int().describe(\"Size of the attachment in bytes (if available)\").nullable().optional(),\n fileId: z.number().int().describe(\"Numeric identifier of the file (e.g., 514954)\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the attachment was created (if available)\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the attachment was last updated (if available)\").nullable().optional(),\n contentType: z.string().describe(\"MIME type of the attachment (e.g., 'image/jpeg', 'application/pdf')\").nullable().optional(),\n identityKey: z.string().describe(\"Unique identity key for the attachment (e.g., 'k1')\").nullable().optional(),\n}).describe(\"Representation of an attachment in OneDesk.\\nBased on the actual OneDesk API response format.\");\nexport const OnedeskGetAttachmentsOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional information about the response\").nullable().optional(),\n attachments: z.array(OnedeskGetAttachments_AttachmentSchema).describe(\"List of attachments from the item\").nullable().optional(),\n external_id: z.string().describe(\"External ID of the item queried\"),\n}).describe(\"Response model containing attachments from a specific item.\");\n\nexport const onedeskGetAttachments = action(\"ONEDESK_GET_ATTACHMENTS\", {\n slug: \"onedesk-get-attachments\",\n name: \"Get Attachments\",\n description: \"Retrieve attachments for a specific item by its external ID. IMPORTANT: The OneDesk Public API (/rest/public) has limited functionality and does NOT provide: - A dedicated attachments list endpoint - Ability to list all attachments across items - Endpoints to retrieve items by internal ID This action retrieves attachments by fetching an item via its external ID and extracting attachment data from the item response. You must know the external ID of the item in advance. Supported endpoints: 1. GET /rest/public/items/externalId/{externalId} - Fetch item by external ID 2. POST /rest/public/items/ - Create new items (not used here) 3. GET /rest/public/organization/profileAndPolicy - Get organization info (not used here)\",\n input: OnedeskGetAttachmentsInput,\n output: OnedeskGetAttachmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,EACrL,CAAC,CAAC,CAAC,SAAS,8OAA8O;AAC1P,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACpE,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-attachments.d.ts
|
|
4
|
+
declare const OnedeskGetAttachmentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetAttachmentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetAttachments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetAttachments };
|
|
9
|
+
//# sourceMappingURL=get-attachments.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-attachments.d.cts","names":[],"sources":["../../src/actions/get-attachments.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEgN;AAAA,cAW9O,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAE7D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-attachments.d.ts
|
|
4
|
+
declare const OnedeskGetAttachmentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetAttachmentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetAttachments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetAttachments };
|
|
9
|
+
//# sourceMappingURL=get-attachments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-attachments.d.mts","names":[],"sources":["../../src/actions/get-attachments.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEgN;AAAA,cAW9O,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAE7D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-attachments.ts
|
|
4
|
+
const OnedeskGetAttachmentsInput = z.object({ external_id: z.string().describe("External ID of the item (ticket/task) to retrieve attachments from. Required because the Public API only supports fetching items by external ID.") }).describe("Request parameters for retrieving item attachments via external ID.\nThe OneDesk Public API does not provide a dedicated attachments list endpoint.\nAttachments can only be retrieved as part of item details when fetching by external ID.");
|
|
5
|
+
const OnedeskGetAttachments_AttachmentSchema = z.object({
|
|
6
|
+
url: z.string().describe("URL to access/download the attachment (if available)").nullable().optional(),
|
|
7
|
+
name: z.string().describe("Filename of the attachment (e.g., 'document.pdf')").nullable().optional(),
|
|
8
|
+
size: z.number().int().describe("Size of the attachment in bytes (if available)").nullable().optional(),
|
|
9
|
+
fileId: z.number().int().describe("Numeric identifier of the file (e.g., 514954)").nullable().optional(),
|
|
10
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the attachment was created (if available)").nullable().optional(),
|
|
11
|
+
updatedAt: z.string().describe("ISO 8601 timestamp when the attachment was last updated (if available)").nullable().optional(),
|
|
12
|
+
contentType: z.string().describe("MIME type of the attachment (e.g., 'image/jpeg', 'application/pdf')").nullable().optional(),
|
|
13
|
+
identityKey: z.string().describe("Unique identity key for the attachment (e.g., 'k1')").nullable().optional()
|
|
14
|
+
}).describe("Representation of an attachment in OneDesk.\nBased on the actual OneDesk API response format.");
|
|
15
|
+
const onedeskGetAttachments = action("ONEDESK_GET_ATTACHMENTS", {
|
|
16
|
+
slug: "onedesk-get-attachments",
|
|
17
|
+
name: "Get Attachments",
|
|
18
|
+
description: "Retrieve attachments for a specific item by its external ID. IMPORTANT: The OneDesk Public API (/rest/public) has limited functionality and does NOT provide: - A dedicated attachments list endpoint - Ability to list all attachments across items - Endpoints to retrieve items by internal ID This action retrieves attachments by fetching an item via its external ID and extracting attachment data from the item response. You must know the external ID of the item in advance. Supported endpoints: 1. GET /rest/public/items/externalId/{externalId} - Fetch item by external ID 2. POST /rest/public/items/ - Create new items (not used here) 3. GET /rest/public/organization/profileAndPolicy - Get organization info (not used here)",
|
|
19
|
+
input: OnedeskGetAttachmentsInput,
|
|
20
|
+
output: z.object({
|
|
21
|
+
message: z.string().describe("Additional information about the response").nullable().optional(),
|
|
22
|
+
attachments: z.array(OnedeskGetAttachments_AttachmentSchema).describe("List of attachments from the item").nullable().optional(),
|
|
23
|
+
external_id: z.string().describe("External ID of the item queried")
|
|
24
|
+
}).describe("Response model containing attachments from a specific item.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { onedeskGetAttachments };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-attachments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-attachments.mjs","names":[],"sources":["../../src/actions/get-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetAttachmentsInput: z.ZodTypeAny = z.object({\n external_id: z.string().describe(\"External ID of the item (ticket/task) to retrieve attachments from. Required because the Public API only supports fetching items by external ID.\"),\n}).describe(\"Request parameters for retrieving item attachments via external ID.\\nThe OneDesk Public API does not provide a dedicated attachments list endpoint.\\nAttachments can only be retrieved as part of item details when fetching by external ID.\");\nconst OnedeskGetAttachments_AttachmentSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to access/download the attachment (if available)\").nullable().optional(),\n name: z.string().describe(\"Filename of the attachment (e.g., 'document.pdf')\").nullable().optional(),\n size: z.number().int().describe(\"Size of the attachment in bytes (if available)\").nullable().optional(),\n fileId: z.number().int().describe(\"Numeric identifier of the file (e.g., 514954)\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the attachment was created (if available)\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the attachment was last updated (if available)\").nullable().optional(),\n contentType: z.string().describe(\"MIME type of the attachment (e.g., 'image/jpeg', 'application/pdf')\").nullable().optional(),\n identityKey: z.string().describe(\"Unique identity key for the attachment (e.g., 'k1')\").nullable().optional(),\n}).describe(\"Representation of an attachment in OneDesk.\\nBased on the actual OneDesk API response format.\");\nexport const OnedeskGetAttachmentsOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional information about the response\").nullable().optional(),\n attachments: z.array(OnedeskGetAttachments_AttachmentSchema).describe(\"List of attachments from the item\").nullable().optional(),\n external_id: z.string().describe(\"External ID of the item queried\"),\n}).describe(\"Response model containing attachments from a specific item.\");\n\nexport const onedeskGetAttachments = action(\"ONEDESK_GET_ATTACHMENTS\", {\n slug: \"onedesk-get-attachments\",\n name: \"Get Attachments\",\n description: \"Retrieve attachments for a specific item by its external ID. IMPORTANT: The OneDesk Public API (/rest/public) has limited functionality and does NOT provide: - A dedicated attachments list endpoint - Ability to list all attachments across items - Endpoints to retrieve items by internal ID This action retrieves attachments by fetching an item via its external ID and extracting attachment data from the item response. You must know the external ID of the item in advance. Supported endpoints: 1. GET /rest/public/items/externalId/{externalId} - Fetch item by external ID 2. POST /rest/public/items/ - Create new items (not used here) 3. GET /rest/public/organization/profileAndPolicy - Get organization info (not used here)\",\n input: OnedeskGetAttachmentsInput,\n output: OnedeskGetAttachmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,EACrL,CAAC,CAAC,CAAC,SAAS,8OAA8O;AAC1P,MAAM,yCAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAO3G,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACpE,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
|