@keystrokehq/pylon_mcp 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-issue.cjs +45 -0
- package/dist/actions/create-issue.cjs.map +1 -0
- package/dist/actions/create-issue.d.cts +9 -0
- package/dist/actions/create-issue.d.cts.map +1 -0
- package/dist/actions/create-issue.d.mts +9 -0
- package/dist/actions/create-issue.d.mts.map +1 -0
- package/dist/actions/create-issue.mjs +42 -0
- package/dist/actions/create-issue.mjs.map +1 -0
- package/dist/actions/get-account.cjs +16 -0
- package/dist/actions/get-account.cjs.map +1 -0
- package/dist/actions/get-account.d.cts +9 -0
- package/dist/actions/get-account.d.cts.map +1 -0
- package/dist/actions/get-account.d.mts +9 -0
- package/dist/actions/get-account.d.mts.map +1 -0
- package/dist/actions/get-account.mjs +13 -0
- package/dist/actions/get-account.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +16 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +13 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-issue-messages.cjs +30 -0
- package/dist/actions/get-issue-messages.cjs.map +1 -0
- package/dist/actions/get-issue-messages.d.cts +9 -0
- package/dist/actions/get-issue-messages.d.cts.map +1 -0
- package/dist/actions/get-issue-messages.d.mts +9 -0
- package/dist/actions/get-issue-messages.d.mts.map +1 -0
- package/dist/actions/get-issue-messages.mjs +27 -0
- package/dist/actions/get-issue-messages.mjs.map +1 -0
- package/dist/actions/get-issue.cjs +16 -0
- package/dist/actions/get-issue.cjs.map +1 -0
- package/dist/actions/get-issue.d.cts +9 -0
- package/dist/actions/get-issue.d.cts.map +1 -0
- package/dist/actions/get-issue.d.mts +9 -0
- package/dist/actions/get-issue.d.mts.map +1 -0
- package/dist/actions/get-issue.mjs +13 -0
- package/dist/actions/get-issue.mjs.map +1 -0
- package/dist/actions/get-me.cjs +16 -0
- package/dist/actions/get-me.cjs.map +1 -0
- package/dist/actions/get-me.d.cts +9 -0
- package/dist/actions/get-me.d.cts.map +1 -0
- package/dist/actions/get-me.d.mts +9 -0
- package/dist/actions/get-me.d.mts.map +1 -0
- package/dist/actions/get-me.mjs +13 -0
- package/dist/actions/get-me.mjs.map +1 -0
- package/dist/actions/get-user.cjs +16 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +13 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/index.cjs +25 -0
- package/dist/actions/index.d.cts +13 -0
- package/dist/actions/index.d.mts +13 -0
- package/dist/actions/index.mjs +13 -0
- package/dist/actions/search-accounts.cjs +37 -0
- package/dist/actions/search-accounts.cjs.map +1 -0
- package/dist/actions/search-accounts.d.cts +9 -0
- package/dist/actions/search-accounts.d.cts.map +1 -0
- package/dist/actions/search-accounts.d.mts +9 -0
- package/dist/actions/search-accounts.d.mts.map +1 -0
- package/dist/actions/search-accounts.mjs +34 -0
- package/dist/actions/search-accounts.mjs.map +1 -0
- package/dist/actions/search-issues.cjs +44 -0
- package/dist/actions/search-issues.cjs.map +1 -0
- package/dist/actions/search-issues.d.cts +9 -0
- package/dist/actions/search-issues.d.cts.map +1 -0
- package/dist/actions/search-issues.d.mts +9 -0
- package/dist/actions/search-issues.d.mts.map +1 -0
- package/dist/actions/search-issues.mjs +41 -0
- package/dist/actions/search-issues.mjs.map +1 -0
- package/dist/actions/update-account.cjs +32 -0
- package/dist/actions/update-account.cjs.map +1 -0
- package/dist/actions/update-account.d.cts +9 -0
- package/dist/actions/update-account.d.cts.map +1 -0
- package/dist/actions/update-account.d.mts +9 -0
- package/dist/actions/update-account.d.mts.map +1 -0
- package/dist/actions/update-account.mjs +29 -0
- package/dist/actions/update-account.mjs.map +1 -0
- package/dist/actions/update-issue.cjs +37 -0
- package/dist/actions/update-issue.cjs.map +1 -0
- package/dist/actions/update-issue.d.cts +9 -0
- package/dist/actions/update-issue.d.cts.map +1 -0
- package/dist/actions/update-issue.d.mts +9 -0
- package/dist/actions/update-issue.d.mts.map +1 -0
- package/dist/actions/update-issue.mjs +34 -0
- package/dist/actions/update-issue.mjs.map +1 -0
- package/dist/actions/upload-account-files.cjs +31 -0
- package/dist/actions/upload-account-files.cjs.map +1 -0
- package/dist/actions/upload-account-files.d.cts +9 -0
- package/dist/actions/upload-account-files.d.cts.map +1 -0
- package/dist/actions/upload-account-files.d.mts +9 -0
- package/dist/actions/upload-account-files.d.mts.map +1 -0
- package/dist/actions/upload-account-files.mjs +28 -0
- package/dist/actions/upload-account-files.mjs.map +1 -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 +30 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.mjs +16 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/pylon_mcp
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `pylon_mcp`
|
|
6
|
+
**Version:** `20260427_00`
|
|
7
|
+
**Actions:** 12
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { pylonMcpCreateIssue } from "@keystrokehq/pylon_mcp/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "pylon_mcp-agent",
|
|
15
|
+
tools: [pylonMcpCreateIssue],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.pylonMcp.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executePylonMcpTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["pylonMcp","executePylonMcpTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pylonMcp } from \"./app\";\nimport { executePylonMcpTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pylonMcp.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePylonMcpTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { pylonMcp } from "./app.mjs";
|
|
2
|
+
import { executePylonMcpTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return pylonMcp.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executePylonMcpTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pylonMcp } from \"./app\";\nimport { executePylonMcpTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pylonMcp.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePylonMcpTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-issue.ts
|
|
4
|
+
const PylonMcpCreateIssueInput = zod.z.object({
|
|
5
|
+
tags: zod.z.unknown().describe("An array of tags to set on the issue.").optional(),
|
|
6
|
+
title: zod.z.string().describe("The title of the issue. Required."),
|
|
7
|
+
team_id: zod.z.string().describe("The ID of the team to assign the issue to.").optional(),
|
|
8
|
+
priority: zod.z.enum([
|
|
9
|
+
"urgent",
|
|
10
|
+
"high",
|
|
11
|
+
"medium",
|
|
12
|
+
"low"
|
|
13
|
+
]).describe("The priority of the issue.").optional(),
|
|
14
|
+
body_html: zod.z.string().describe("The HTML content of the body of the issue. Required."),
|
|
15
|
+
account_id: zod.z.string().describe("The ID of the account that this issue belongs to. Required."),
|
|
16
|
+
assignee_id: zod.z.string().describe("The ID of the user to assign the issue to.").optional(),
|
|
17
|
+
requester_id: zod.z.string().describe("The ID of the requester (contact) that this issue is on behalf of.").optional()
|
|
18
|
+
});
|
|
19
|
+
const PylonMcpCreateIssueOutput = zod.z.object({
|
|
20
|
+
issue: zod.z.object({
|
|
21
|
+
id: zod.z.string().describe("The unique ID of the issue."),
|
|
22
|
+
tags: zod.z.array(zod.z.string()).describe("Tags on the issue.").nullable().optional(),
|
|
23
|
+
type: zod.z.string().describe("The type (Conversation or Ticket)."),
|
|
24
|
+
state: zod.z.string().describe("The state of the issue."),
|
|
25
|
+
title: zod.z.string().describe("The title of the issue."),
|
|
26
|
+
number: zod.z.number().int().describe("The issue number."),
|
|
27
|
+
source: zod.z.string().describe("The source of the issue."),
|
|
28
|
+
account_id: zod.z.string().describe("The associated account ID.").nullable().optional(),
|
|
29
|
+
created_at: zod.z.string().describe("When the issue was created."),
|
|
30
|
+
assignee_id: zod.z.string().describe("The assigned user ID.").nullable().optional(),
|
|
31
|
+
latest_message_time: zod.z.string().describe("Time of the latest message.").nullable().optional()
|
|
32
|
+
}).describe("The created issue summary. Use issue://{orgId}/{id} resource for full details."),
|
|
33
|
+
success: zod.z.boolean().describe("Whether the creation was successful.")
|
|
34
|
+
});
|
|
35
|
+
const pylonMcpCreateIssue = require_action.action("PYLON_MCP_CREATE_ISSUE", {
|
|
36
|
+
slug: "pylon_mcp-create-issue",
|
|
37
|
+
name: "Create issue",
|
|
38
|
+
description: "Create a new issue/ticket in Pylon. Requires an organization ID, account ID, title, and body HTML. Optionally specify requester, priority, assignee, team, and tags.",
|
|
39
|
+
input: PylonMcpCreateIssueInput,
|
|
40
|
+
output: PylonMcpCreateIssueOutput
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.pylonMcpCreateIssue = pylonMcpCreateIssue;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=create-issue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-issue.cjs","names":["z","action"],"sources":["../../src/actions/create-issue.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpCreateIssueInput: z.ZodTypeAny = z.object({\n tags: z.unknown().describe(\"An array of tags to set on the issue.\").optional(),\n title: z.string().describe(\"The title of the issue. Required.\"),\n team_id: z.string().describe(\"The ID of the team to assign the issue to.\").optional(),\n priority: z.enum([\"urgent\", \"high\", \"medium\", \"low\"]).describe(\"The priority of the issue.\").optional(),\n body_html: z.string().describe(\"The HTML content of the body of the issue. Required.\"),\n account_id: z.string().describe(\"The ID of the account that this issue belongs to. Required.\"),\n assignee_id: z.string().describe(\"The ID of the user to assign the issue to.\").optional(),\n requester_id: z.string().describe(\"The ID of the requester (contact) that this issue is on behalf of.\").optional(),\n});\nexport const PylonMcpCreateIssueOutput: z.ZodTypeAny = z.object({\n issue: z.object({\n id: z.string().describe(\"The unique ID of the issue.\"),\n tags: z.array(z.string()).describe(\"Tags on the issue.\").nullable().optional(),\n type: z.string().describe(\"The type (Conversation or Ticket).\"),\n state: z.string().describe(\"The state of the issue.\"),\n title: z.string().describe(\"The title of the issue.\"),\n number: z.number().int().describe(\"The issue number.\"),\n source: z.string().describe(\"The source of the issue.\"),\n account_id: z.string().describe(\"The associated account ID.\").nullable().optional(),\n created_at: z.string().describe(\"When the issue was created.\"),\n assignee_id: z.string().describe(\"The assigned user ID.\").nullable().optional(),\n latest_message_time: z.string().describe(\"Time of the latest message.\").nullable().optional(),\n}).describe(\"The created issue summary. Use issue://{orgId}/{id} resource for full details.\"),\n success: z.boolean().describe(\"Whether the creation was successful.\"),\n});\n\nexport const pylonMcpCreateIssue = action(\"PYLON_MCP_CREATE_ISSUE\", {\n slug: \"pylon_mcp-create-issue\",\n name: \"Create issue\",\n description: \"Create a new issue/ticket in Pylon. Requires an organization ID, account ID, title, and body HTML. Optionally specify requester, priority, assignee, team, and tags.\",\n input: PylonMcpCreateIssueInput,\n output: PylonMcpCreateIssueOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAU;CAAK,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACrD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,gFAAgF;CAC1F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-issue.d.ts
|
|
4
|
+
declare const PylonMcpCreateIssueInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpCreateIssueOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpCreateIssue: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpCreateIssue };
|
|
9
|
+
//# sourceMappingURL=create-issue.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-issue.d.cts","names":[],"sources":["../../src/actions/create-issue.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAexC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-issue.d.ts
|
|
4
|
+
declare const PylonMcpCreateIssueInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpCreateIssueOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpCreateIssue: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpCreateIssue };
|
|
9
|
+
//# sourceMappingURL=create-issue.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-issue.d.mts","names":[],"sources":["../../src/actions/create-issue.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAexC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pylonMcpCreateIssue = action("PYLON_MCP_CREATE_ISSUE", {
|
|
4
|
+
slug: "pylon_mcp-create-issue",
|
|
5
|
+
name: "Create issue",
|
|
6
|
+
description: "Create a new issue/ticket in Pylon. Requires an organization ID, account ID, title, and body HTML. Optionally specify requester, priority, assignee, team, and tags.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
tags: z.unknown().describe("An array of tags to set on the issue.").optional(),
|
|
9
|
+
title: z.string().describe("The title of the issue. Required."),
|
|
10
|
+
team_id: z.string().describe("The ID of the team to assign the issue to.").optional(),
|
|
11
|
+
priority: z.enum([
|
|
12
|
+
"urgent",
|
|
13
|
+
"high",
|
|
14
|
+
"medium",
|
|
15
|
+
"low"
|
|
16
|
+
]).describe("The priority of the issue.").optional(),
|
|
17
|
+
body_html: z.string().describe("The HTML content of the body of the issue. Required."),
|
|
18
|
+
account_id: z.string().describe("The ID of the account that this issue belongs to. Required."),
|
|
19
|
+
assignee_id: z.string().describe("The ID of the user to assign the issue to.").optional(),
|
|
20
|
+
requester_id: z.string().describe("The ID of the requester (contact) that this issue is on behalf of.").optional()
|
|
21
|
+
}),
|
|
22
|
+
output: z.object({
|
|
23
|
+
issue: z.object({
|
|
24
|
+
id: z.string().describe("The unique ID of the issue."),
|
|
25
|
+
tags: z.array(z.string()).describe("Tags on the issue.").nullable().optional(),
|
|
26
|
+
type: z.string().describe("The type (Conversation or Ticket)."),
|
|
27
|
+
state: z.string().describe("The state of the issue."),
|
|
28
|
+
title: z.string().describe("The title of the issue."),
|
|
29
|
+
number: z.number().int().describe("The issue number."),
|
|
30
|
+
source: z.string().describe("The source of the issue."),
|
|
31
|
+
account_id: z.string().describe("The associated account ID.").nullable().optional(),
|
|
32
|
+
created_at: z.string().describe("When the issue was created."),
|
|
33
|
+
assignee_id: z.string().describe("The assigned user ID.").nullable().optional(),
|
|
34
|
+
latest_message_time: z.string().describe("Time of the latest message.").nullable().optional()
|
|
35
|
+
}).describe("The created issue summary. Use issue://{orgId}/{id} resource for full details."),
|
|
36
|
+
success: z.boolean().describe("Whether the creation was successful.")
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { pylonMcpCreateIssue };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=create-issue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-issue.mjs","names":[],"sources":["../../src/actions/create-issue.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpCreateIssueInput: z.ZodTypeAny = z.object({\n tags: z.unknown().describe(\"An array of tags to set on the issue.\").optional(),\n title: z.string().describe(\"The title of the issue. Required.\"),\n team_id: z.string().describe(\"The ID of the team to assign the issue to.\").optional(),\n priority: z.enum([\"urgent\", \"high\", \"medium\", \"low\"]).describe(\"The priority of the issue.\").optional(),\n body_html: z.string().describe(\"The HTML content of the body of the issue. Required.\"),\n account_id: z.string().describe(\"The ID of the account that this issue belongs to. Required.\"),\n assignee_id: z.string().describe(\"The ID of the user to assign the issue to.\").optional(),\n requester_id: z.string().describe(\"The ID of the requester (contact) that this issue is on behalf of.\").optional(),\n});\nexport const PylonMcpCreateIssueOutput: z.ZodTypeAny = z.object({\n issue: z.object({\n id: z.string().describe(\"The unique ID of the issue.\"),\n tags: z.array(z.string()).describe(\"Tags on the issue.\").nullable().optional(),\n type: z.string().describe(\"The type (Conversation or Ticket).\"),\n state: z.string().describe(\"The state of the issue.\"),\n title: z.string().describe(\"The title of the issue.\"),\n number: z.number().int().describe(\"The issue number.\"),\n source: z.string().describe(\"The source of the issue.\"),\n account_id: z.string().describe(\"The associated account ID.\").nullable().optional(),\n created_at: z.string().describe(\"When the issue was created.\"),\n assignee_id: z.string().describe(\"The assigned user ID.\").nullable().optional(),\n latest_message_time: z.string().describe(\"Time of the latest message.\").nullable().optional(),\n}).describe(\"The created issue summary. Use issue://{orgId}/{id} resource for full details.\"),\n success: z.boolean().describe(\"Whether the creation was successful.\"),\n});\n\nexport const pylonMcpCreateIssue = action(\"PYLON_MCP_CREATE_ISSUE\", {\n slug: \"pylon_mcp-create-issue\",\n name: \"Create issue\",\n description: \"Create a new issue/ticket in Pylon. Requires an organization ID, account ID, title, and body HTML. Optionally specify requester, priority, assignee, team, and tags.\",\n input: PylonMcpCreateIssueInput,\n output: PylonMcpCreateIssueOutput,\n});\n"],"mappings":";;AA+BA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BoD,EAAE,OAAO;EAC7D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACpF,UAAU,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAU;EAAK,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACnH,CAsBS;CACP,QAtBqD,EAAE,OAAO;EAC9D,OAAO,EAAE,OAAO;GAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GACrD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;GACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;GACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;GACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;GACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC9E,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,CAAC,CAAC,CAAC,SAAS,gFAAgF;EAC1F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACtE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-account.ts
|
|
4
|
+
const PylonMcpGetAccountInput = zod.z.object({ account: zod.z.string().describe("The account ID (UUID) or external ID.") });
|
|
5
|
+
const PylonMcpGetAccountOutput = zod.z.object({}).describe("Full account details including name, domain, owner, tags, custom fields, and linked channels.");
|
|
6
|
+
const pylonMcpGetAccount = require_action.action("PYLON_MCP_GET_ACCOUNT", {
|
|
7
|
+
slug: "pylon_mcp-get-account",
|
|
8
|
+
name: "Get account",
|
|
9
|
+
description: "Get full details for a Pylon customer account. Pass either the account ID (UUID) or external ID. Returns account details including name, domain, owner, tags, custom fields, and linked channels.",
|
|
10
|
+
input: PylonMcpGetAccountInput,
|
|
11
|
+
output: PylonMcpGetAccountOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.pylonMcpGetAccount = pylonMcpGetAccount;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-account.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account.cjs","names":["z","action"],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetAccountInput: z.ZodTypeAny = z.object({\n account: z.string().describe(\"The account ID (UUID) or external ID.\"),\n});\nexport const PylonMcpGetAccountOutput: z.ZodTypeAny = z.object({}).describe(\"Full account details including name, domain, owner, tags, custom fields, and linked channels.\");\n\nexport const pylonMcpGetAccount = action(\"PYLON_MCP_GET_ACCOUNT\", {\n slug: \"pylon_mcp-get-account\",\n name: \"Get account\",\n description: \"Get full details for a Pylon customer account. Pass either the account ID (UUID) or external ID. Returns account details including name, domain, owner, tags, custom fields, and linked channels.\",\n input: PylonMcpGetAccountInput,\n output: PylonMcpGetAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACtE,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAE3K,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,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-account.d.ts
|
|
4
|
+
declare const PylonMcpGetAccountInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetAccountOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetAccount };
|
|
9
|
+
//# sourceMappingURL=get-account.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAAmI;AAAA,cAE/J,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-account.d.ts
|
|
4
|
+
declare const PylonMcpGetAccountInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetAccountOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetAccount };
|
|
9
|
+
//# sourceMappingURL=get-account.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAAmI;AAAA,cAE/J,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pylonMcpGetAccount = action("PYLON_MCP_GET_ACCOUNT", {
|
|
4
|
+
slug: "pylon_mcp-get-account",
|
|
5
|
+
name: "Get account",
|
|
6
|
+
description: "Get full details for a Pylon customer account. Pass either the account ID (UUID) or external ID. Returns account details including name, domain, owner, tags, custom fields, and linked channels.",
|
|
7
|
+
input: z.object({ account: z.string().describe("The account ID (UUID) or external ID.") }),
|
|
8
|
+
output: z.object({}).describe("Full account details including name, domain, owner, tags, custom fields, and linked channels.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { pylonMcpGetAccount };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=get-account.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account.mjs","names":[],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetAccountInput: z.ZodTypeAny = z.object({\n account: z.string().describe(\"The account ID (UUID) or external ID.\"),\n});\nexport const PylonMcpGetAccountOutput: z.ZodTypeAny = z.object({}).describe(\"Full account details including name, domain, owner, tags, custom fields, and linked channels.\");\n\nexport const pylonMcpGetAccount = action(\"PYLON_MCP_GET_ACCOUNT\", {\n slug: \"pylon_mcp-get-account\",\n name: \"Get account\",\n description: \"Get full details for a Pylon customer account. Pass either the account ID (UUID) or external ID. Returns account details including name, domain, owner, tags, custom fields, and linked channels.\",\n input: PylonMcpGetAccountInput,\n output: PylonMcpGetAccountOutput,\n});\n"],"mappings":";;AASA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATmD,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACtE,CAOS;CACP,QAPoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAOlE;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-contact.ts
|
|
4
|
+
const PylonMcpGetContactInput = zod.z.object({ contact: zod.z.string().describe("The contact ID (UUID).") });
|
|
5
|
+
const PylonMcpGetContactOutput = zod.z.object({}).describe("Full contact details including name, email, account, and custom fields.");
|
|
6
|
+
const pylonMcpGetContact = require_action.action("PYLON_MCP_GET_CONTACT", {
|
|
7
|
+
slug: "pylon_mcp-get-contact",
|
|
8
|
+
name: "Get contact",
|
|
9
|
+
description: "Get full details for a Pylon contact (customer). Pass the contact ID (UUID). Returns contact details including name, email, account, and custom fields.",
|
|
10
|
+
input: PylonMcpGetContactInput,
|
|
11
|
+
output: PylonMcpGetContactOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.pylonMcpGetContact = pylonMcpGetContact;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-contact.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetContactInput: z.ZodTypeAny = z.object({\n contact: z.string().describe(\"The contact ID (UUID).\"),\n});\nexport const PylonMcpGetContactOutput: z.ZodTypeAny = z.object({}).describe(\"Full contact details including name, email, account, and custom fields.\");\n\nexport const pylonMcpGetContact = action(\"PYLON_MCP_GET_CONTACT\", {\n slug: \"pylon_mcp-get-contact\",\n name: \"Get contact\",\n description: \"Get full details for a Pylon contact (customer). Pass the contact ID (UUID). Returns contact details including name, email, account, and custom fields.\",\n input: PylonMcpGetContactInput,\n output: PylonMcpGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EACvD,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErJ,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,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-contact.d.ts
|
|
4
|
+
declare const PylonMcpGetContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetContact };
|
|
9
|
+
//# sourceMappingURL=get-contact.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAA6G;AAAA,cAEzI,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-contact.d.ts
|
|
4
|
+
declare const PylonMcpGetContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetContact };
|
|
9
|
+
//# sourceMappingURL=get-contact.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAA6G;AAAA,cAEzI,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pylonMcpGetContact = action("PYLON_MCP_GET_CONTACT", {
|
|
4
|
+
slug: "pylon_mcp-get-contact",
|
|
5
|
+
name: "Get contact",
|
|
6
|
+
description: "Get full details for a Pylon contact (customer). Pass the contact ID (UUID). Returns contact details including name, email, account, and custom fields.",
|
|
7
|
+
input: z.object({ contact: z.string().describe("The contact ID (UUID).") }),
|
|
8
|
+
output: z.object({}).describe("Full contact details including name, email, account, and custom fields.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { pylonMcpGetContact };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=get-contact.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetContactInput: z.ZodTypeAny = z.object({\n contact: z.string().describe(\"The contact ID (UUID).\"),\n});\nexport const PylonMcpGetContactOutput: z.ZodTypeAny = z.object({}).describe(\"Full contact details including name, email, account, and custom fields.\");\n\nexport const pylonMcpGetContact = action(\"PYLON_MCP_GET_CONTACT\", {\n slug: \"pylon_mcp-get-contact\",\n name: \"Get contact\",\n description: \"Get full details for a Pylon contact (customer). Pass the contact ID (UUID). Returns contact details including name, email, account, and custom fields.\",\n input: PylonMcpGetContactInput,\n output: PylonMcpGetContactOutput,\n});\n"],"mappings":";;AASA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATmD,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EACvD,CAOS;CACP,QAPoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yEAOlE;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-issue-messages.ts
|
|
4
|
+
const PylonMcpGetIssueMessagesInput = zod.z.object({ issue: zod.z.string().describe("The issue ID (UUID) or issue number.") });
|
|
5
|
+
const PylonMcpGetIssueMessagesOutput = zod.z.object({
|
|
6
|
+
count: zod.z.number().int().describe("Number of messages."),
|
|
7
|
+
issue_id: zod.z.string().describe("The issue ID."),
|
|
8
|
+
messages: zod.z.array(zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("Message ID.").nullable().optional(),
|
|
10
|
+
source: zod.z.string().describe("Message source (email, slack, etc).").nullable().optional(),
|
|
11
|
+
sent_at: zod.z.string().describe("When the message was sent.").nullable().optional(),
|
|
12
|
+
author_id: zod.z.string().describe("Author ID (user or contact).").nullable().optional(),
|
|
13
|
+
body_html: zod.z.string().describe("Message body in HTML.").nullable().optional(),
|
|
14
|
+
thread_id: zod.z.string().describe("The ID of the internal thread this message belongs to, if any.").nullable().optional(),
|
|
15
|
+
is_private: zod.z.boolean().describe("Whether this is an internal note.").nullable().optional(),
|
|
16
|
+
author_type: zod.z.string().describe("Author type: user, contact, or system.").nullable().optional(),
|
|
17
|
+
from_customer: zod.z.boolean().describe("Whether the message is from a customer.").nullable().optional()
|
|
18
|
+
})).describe("Messages in chronological order.")
|
|
19
|
+
});
|
|
20
|
+
const pylonMcpGetIssueMessages = require_action.action("PYLON_MCP_GET_ISSUE_MESSAGES", {
|
|
21
|
+
slug: "pylon_mcp-get-issue-messages",
|
|
22
|
+
name: "Get issue messages",
|
|
23
|
+
description: "Get the full message history for a Pylon issue. Pass either the issue ID (UUID) or issue number. Returns all messages in chronological order with author info.",
|
|
24
|
+
input: PylonMcpGetIssueMessagesInput,
|
|
25
|
+
output: PylonMcpGetIssueMessagesOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.pylonMcpGetIssueMessages = pylonMcpGetIssueMessages;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=get-issue-messages.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue-messages.cjs","names":["z","action"],"sources":["../../src/actions/get-issue-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetIssueMessagesInput: z.ZodTypeAny = z.object({\n issue: z.string().describe(\"The issue ID (UUID) or issue number.\"),\n});\nexport const PylonMcpGetIssueMessagesOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of messages.\"),\n issue_id: z.string().describe(\"The issue ID.\"),\n messages: z.array(z.object({\n id: z.string().describe(\"Message ID.\").nullable().optional(),\n source: z.string().describe(\"Message source (email, slack, etc).\").nullable().optional(),\n sent_at: z.string().describe(\"When the message was sent.\").nullable().optional(),\n author_id: z.string().describe(\"Author ID (user or contact).\").nullable().optional(),\n body_html: z.string().describe(\"Message body in HTML.\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the internal thread this message belongs to, if any.\").nullable().optional(),\n is_private: z.boolean().describe(\"Whether this is an internal note.\").nullable().optional(),\n author_type: z.string().describe(\"Author type: user, contact, or system.\").nullable().optional(),\n from_customer: z.boolean().describe(\"Whether the message is from a customer.\").nullable().optional(),\n})).describe(\"Messages in chronological order.\"),\n});\n\nexport const pylonMcpGetIssueMessages = action(\"PYLON_MCP_GET_ISSUE_MESSAGES\", {\n slug: \"pylon_mcp-get-issue-messages\",\n name: \"Get issue messages\",\n description: \"Get the full message history for a Pylon issue. Pass either the issue ID (UUID) or issue number. Returns all messages in chronological order with author info.\",\n input: PylonMcpGetIssueMessagesInput,\n output: PylonMcpGetIssueMessagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACnE,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC7C,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC/C,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,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-issue-messages.d.ts
|
|
4
|
+
declare const PylonMcpGetIssueMessagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetIssueMessagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetIssueMessages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetIssueMessages };
|
|
9
|
+
//# sourceMappingURL=get-issue-messages.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue-messages.d.cts","names":[],"sources":["../../src/actions/get-issue-messages.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAc7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-issue-messages.d.ts
|
|
4
|
+
declare const PylonMcpGetIssueMessagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetIssueMessagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetIssueMessages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetIssueMessages };
|
|
9
|
+
//# sourceMappingURL=get-issue-messages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue-messages.d.mts","names":[],"sources":["../../src/actions/get-issue-messages.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAc7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pylonMcpGetIssueMessages = action("PYLON_MCP_GET_ISSUE_MESSAGES", {
|
|
4
|
+
slug: "pylon_mcp-get-issue-messages",
|
|
5
|
+
name: "Get issue messages",
|
|
6
|
+
description: "Get the full message history for a Pylon issue. Pass either the issue ID (UUID) or issue number. Returns all messages in chronological order with author info.",
|
|
7
|
+
input: z.object({ issue: z.string().describe("The issue ID (UUID) or issue number.") }),
|
|
8
|
+
output: z.object({
|
|
9
|
+
count: z.number().int().describe("Number of messages."),
|
|
10
|
+
issue_id: z.string().describe("The issue ID."),
|
|
11
|
+
messages: z.array(z.object({
|
|
12
|
+
id: z.string().describe("Message ID.").nullable().optional(),
|
|
13
|
+
source: z.string().describe("Message source (email, slack, etc).").nullable().optional(),
|
|
14
|
+
sent_at: z.string().describe("When the message was sent.").nullable().optional(),
|
|
15
|
+
author_id: z.string().describe("Author ID (user or contact).").nullable().optional(),
|
|
16
|
+
body_html: z.string().describe("Message body in HTML.").nullable().optional(),
|
|
17
|
+
thread_id: z.string().describe("The ID of the internal thread this message belongs to, if any.").nullable().optional(),
|
|
18
|
+
is_private: z.boolean().describe("Whether this is an internal note.").nullable().optional(),
|
|
19
|
+
author_type: z.string().describe("Author type: user, contact, or system.").nullable().optional(),
|
|
20
|
+
from_customer: z.boolean().describe("Whether the message is from a customer.").nullable().optional()
|
|
21
|
+
})).describe("Messages in chronological order.")
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { pylonMcpGetIssueMessages };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=get-issue-messages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue-messages.mjs","names":[],"sources":["../../src/actions/get-issue-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetIssueMessagesInput: z.ZodTypeAny = z.object({\n issue: z.string().describe(\"The issue ID (UUID) or issue number.\"),\n});\nexport const PylonMcpGetIssueMessagesOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of messages.\"),\n issue_id: z.string().describe(\"The issue ID.\"),\n messages: z.array(z.object({\n id: z.string().describe(\"Message ID.\").nullable().optional(),\n source: z.string().describe(\"Message source (email, slack, etc).\").nullable().optional(),\n sent_at: z.string().describe(\"When the message was sent.\").nullable().optional(),\n author_id: z.string().describe(\"Author ID (user or contact).\").nullable().optional(),\n body_html: z.string().describe(\"Message body in HTML.\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the internal thread this message belongs to, if any.\").nullable().optional(),\n is_private: z.boolean().describe(\"Whether this is an internal note.\").nullable().optional(),\n author_type: z.string().describe(\"Author type: user, contact, or system.\").nullable().optional(),\n from_customer: z.boolean().describe(\"Whether the message is from a customer.\").nullable().optional(),\n})).describe(\"Messages in chronological order.\"),\n});\n\nexport const pylonMcpGetIssueMessages = action(\"PYLON_MCP_GET_ISSUE_MESSAGES\", {\n slug: \"pylon_mcp-get-issue-messages\",\n name: \"Get issue messages\",\n description: \"Get the full message history for a Pylon issue. Pass either the issue ID (UUID) or issue number. Returns all messages in chronological order with author info.\",\n input: PylonMcpGetIssueMessagesInput,\n output: PylonMcpGetIssueMessagesOutput,\n});\n"],"mappings":";;AAuBA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvByD,EAAE,OAAO,EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACnE,CAqBS;CACP,QArB0D,EAAE,OAAO;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC7C,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACrH,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC/F,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC;CAC/C,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-issue.ts
|
|
4
|
+
const PylonMcpGetIssueInput = zod.z.object({ issue: zod.z.string().describe("The issue ID (UUID) or issue number.") });
|
|
5
|
+
const PylonMcpGetIssueOutput = zod.z.object({}).describe("Full issue details including title, body, state, metadata, custom fields, and nested account/assignee/requester info.");
|
|
6
|
+
const pylonMcpGetIssue = require_action.action("PYLON_MCP_GET_ISSUE", {
|
|
7
|
+
slug: "pylon_mcp-get-issue",
|
|
8
|
+
name: "Get issue",
|
|
9
|
+
description: "Get full details for a Pylon support issue/ticket. Pass either the issue ID (UUID) or issue number. Returns title, body, state, metadata, custom fields, and nested account/assignee/requester info.",
|
|
10
|
+
input: PylonMcpGetIssueInput,
|
|
11
|
+
output: PylonMcpGetIssueOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.pylonMcpGetIssue = pylonMcpGetIssue;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-issue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue.cjs","names":["z","action"],"sources":["../../src/actions/get-issue.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetIssueInput: z.ZodTypeAny = z.object({\n issue: z.string().describe(\"The issue ID (UUID) or issue number.\"),\n});\nexport const PylonMcpGetIssueOutput: z.ZodTypeAny = z.object({}).describe(\"Full issue details including title, body, state, metadata, custom fields, and nested account/assignee/requester info.\");\n\nexport const pylonMcpGetIssue = action(\"PYLON_MCP_GET_ISSUE\", {\n slug: \"pylon_mcp-get-issue\",\n name: \"Get issue\",\n description: \"Get full details for a Pylon support issue/ticket. Pass either the issue ID (UUID) or issue number. Returns title, body, state, metadata, custom fields, and nested account/assignee/requester info.\",\n input: PylonMcpGetIssueInput,\n output: PylonMcpGetIssueOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACnE,CAAC;AACD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH;AAEjM,MAAa,mBAAmBC,eAAAA,OAAO,uBAAuB;CAC5D,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-issue.d.ts
|
|
4
|
+
declare const PylonMcpGetIssueInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetIssueOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetIssue: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetIssue };
|
|
9
|
+
//# sourceMappingURL=get-issue.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue.d.cts","names":[],"sources":["../../src/actions/get-issue.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEpC;AAAA,cACW,sBAAA,EAAwB,CAAA,CAAE,UAA2J;AAAA,cAErL,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-issue.d.ts
|
|
4
|
+
declare const PylonMcpGetIssueInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetIssueOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetIssue: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetIssue };
|
|
9
|
+
//# sourceMappingURL=get-issue.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue.d.mts","names":[],"sources":["../../src/actions/get-issue.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEpC;AAAA,cACW,sBAAA,EAAwB,CAAA,CAAE,UAA2J;AAAA,cAErL,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pylonMcpGetIssue = action("PYLON_MCP_GET_ISSUE", {
|
|
4
|
+
slug: "pylon_mcp-get-issue",
|
|
5
|
+
name: "Get issue",
|
|
6
|
+
description: "Get full details for a Pylon support issue/ticket. Pass either the issue ID (UUID) or issue number. Returns title, body, state, metadata, custom fields, and nested account/assignee/requester info.",
|
|
7
|
+
input: z.object({ issue: z.string().describe("The issue ID (UUID) or issue number.") }),
|
|
8
|
+
output: z.object({}).describe("Full issue details including title, body, state, metadata, custom fields, and nested account/assignee/requester info.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { pylonMcpGetIssue };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=get-issue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue.mjs","names":[],"sources":["../../src/actions/get-issue.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetIssueInput: z.ZodTypeAny = z.object({\n issue: z.string().describe(\"The issue ID (UUID) or issue number.\"),\n});\nexport const PylonMcpGetIssueOutput: z.ZodTypeAny = z.object({}).describe(\"Full issue details including title, body, state, metadata, custom fields, and nested account/assignee/requester info.\");\n\nexport const pylonMcpGetIssue = action(\"PYLON_MCP_GET_ISSUE\", {\n slug: \"pylon_mcp-get-issue\",\n name: \"Get issue\",\n description: \"Get full details for a Pylon support issue/ticket. Pass either the issue ID (UUID) or issue number. Returns title, body, state, metadata, custom fields, and nested account/assignee/requester info.\",\n input: PylonMcpGetIssueInput,\n output: PylonMcpGetIssueOutput,\n});\n"],"mappings":";;AASA,MAAa,mBAAmB,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATiD,EAAE,OAAO,EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACnE,CAOS;CACP,QAPkD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uHAOhE;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-me.ts
|
|
4
|
+
const PylonMcpGetMeInput = zod.z.object({});
|
|
5
|
+
const PylonMcpGetMeOutput = zod.z.object({}).describe("Full user details including name, email, role, and teams.");
|
|
6
|
+
const pylonMcpGetMe = require_action.action("PYLON_MCP_GET_ME", {
|
|
7
|
+
slug: "pylon_mcp-get-me",
|
|
8
|
+
name: "Get me",
|
|
9
|
+
description: "Get the currently authenticated user's details. Returns the user's name, email, role, and teams. No parameters required.",
|
|
10
|
+
input: PylonMcpGetMeInput,
|
|
11
|
+
output: PylonMcpGetMeOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.pylonMcpGetMe = pylonMcpGetMe;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-me.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-me.cjs","names":["z","action"],"sources":["../../src/actions/get-me.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PylonMcpGetMeInput: z.ZodTypeAny = z.object({});\nexport const PylonMcpGetMeOutput: z.ZodTypeAny = z.object({}).describe(\"Full user details including name, email, role, and teams.\");\n\nexport const pylonMcpGetMe = action(\"PYLON_MCP_GET_ME\", {\n slug: \"pylon_mcp-get-me\",\n name: \"Get me\",\n description: \"Get the currently authenticated user's details. Returns the user's name, email, role, and teams. No parameters required.\",\n input: PylonMcpGetMeInput,\n output: PylonMcpGetMeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAC3D,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAElI,MAAa,gBAAgBC,eAAAA,OAAO,oBAAoB;CACtD,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-me.d.ts
|
|
4
|
+
declare const PylonMcpGetMeInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetMeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetMe: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetMe };
|
|
9
|
+
//# sourceMappingURL=get-me.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-me.d.cts","names":[],"sources":["../../src/actions/get-me.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAAyB;AAAA,cAC/C,mBAAA,EAAqB,CAAA,CAAE,UAA+F;AAAA,cAEtH,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-me.d.ts
|
|
4
|
+
declare const PylonMcpGetMeInput: z.ZodTypeAny;
|
|
5
|
+
declare const PylonMcpGetMeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pylonMcpGetMe: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pylonMcpGetMe };
|
|
9
|
+
//# sourceMappingURL=get-me.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-me.d.mts","names":[],"sources":["../../src/actions/get-me.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAAyB;AAAA,cAC/C,mBAAA,EAAqB,CAAA,CAAE,UAA+F;AAAA,cAEtH,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|