@keystrokehq/short_menu 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-link.cjs +36 -0
- package/dist/actions/create-link.cjs.map +1 -0
- package/dist/actions/create-link.d.cts +9 -0
- package/dist/actions/create-link.d.cts.map +1 -0
- package/dist/actions/create-link.d.mts +9 -0
- package/dist/actions/create-link.d.mts.map +1 -0
- package/dist/actions/create-link.mjs +33 -0
- package/dist/actions/create-link.mjs.map +1 -0
- package/dist/actions/delete-link.cjs +16 -0
- package/dist/actions/delete-link.cjs.map +1 -0
- package/dist/actions/delete-link.d.cts +9 -0
- package/dist/actions/delete-link.d.cts.map +1 -0
- package/dist/actions/delete-link.d.mts +9 -0
- package/dist/actions/delete-link.d.mts.map +1 -0
- package/dist/actions/delete-link.mjs +13 -0
- package/dist/actions/delete-link.mjs.map +1 -0
- package/dist/actions/get-domains.cjs +21 -0
- package/dist/actions/get-domains.cjs.map +1 -0
- package/dist/actions/get-domains.d.cts +9 -0
- package/dist/actions/get-domains.d.cts.map +1 -0
- package/dist/actions/get-domains.d.mts +9 -0
- package/dist/actions/get-domains.d.mts.map +1 -0
- package/dist/actions/get-domains.mjs +20 -0
- package/dist/actions/get-domains.mjs.map +1 -0
- package/dist/actions/index.cjs +7 -0
- package/dist/actions/index.d.cts +4 -0
- package/dist/actions/index.d.mts +4 -0
- package/dist/actions/index.mjs +4 -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 +12 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +7 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/short_menu
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `short_menu`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 3
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { shortMenuCreateLink } from "@keystrokehq/short_menu/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "short_menu-agent",
|
|
15
|
+
tools: [shortMenuCreateLink],
|
|
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.shortMenu.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.executeShortMenuTool(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":["shortMenu","executeShortMenuTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shortMenu } from \"./app\";\nimport { executeShortMenuTool } 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 shortMenu.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 executeShortMenuTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { shortMenu } from "./app.mjs";
|
|
2
|
+
import { executeShortMenuTool } 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 shortMenu.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 executeShortMenuTool(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 { shortMenu } from \"./app\";\nimport { executeShortMenuTool } 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 shortMenu.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 executeShortMenuTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-link.ts
|
|
4
|
+
const ShortMenuCreateLinkInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("The original URL to be shortened"),
|
|
6
|
+
slug: zod.z.string().describe("Custom slug for the link (alphanumeric, unique). If not provided, the system will auto-generate one.").optional(),
|
|
7
|
+
tags: zod.z.array(zod.z.string()).describe("List of tags to categorize the link").optional(),
|
|
8
|
+
domain: zod.z.string().describe("Custom domain to use for the generated short link").optional(),
|
|
9
|
+
password: zod.z.string().describe("Password to protect the link (plain text)").optional(),
|
|
10
|
+
pixel_ids: zod.z.array(zod.z.string()).describe("Analytics pixel identifiers to attach to the link").optional(),
|
|
11
|
+
expires_at: zod.z.string().describe("ISO8601 timestamp when the link should expire").optional(),
|
|
12
|
+
description: zod.z.string().describe("An optional note or description for this link").optional()
|
|
13
|
+
}).describe("Input parameters to create a new shortened link.");
|
|
14
|
+
const ShortMenuCreateLinkOutput = zod.z.object({
|
|
15
|
+
id: zod.z.string().describe("Unique ID of the created link"),
|
|
16
|
+
url: zod.z.string().describe("The original URL"),
|
|
17
|
+
slug: zod.z.string().describe("The custom or auto-generated slug"),
|
|
18
|
+
tags: zod.z.array(zod.z.string()).describe("Tags assigned to the link"),
|
|
19
|
+
domain: zod.z.string().describe("Domain used for the link"),
|
|
20
|
+
short_url: zod.z.string().describe("The shortened URL"),
|
|
21
|
+
created_at: zod.z.string().describe("Link creation date/time"),
|
|
22
|
+
expires_at: zod.z.string().describe("Expiration date/time of the link").nullable().optional(),
|
|
23
|
+
description: zod.z.string().describe("Link description or note").nullable().optional(),
|
|
24
|
+
password_enabled: zod.z.boolean().describe("Whether the link is password protected")
|
|
25
|
+
}).describe("Response schema for the created link.");
|
|
26
|
+
const shortMenuCreateLink = require_action.action("SHORT_MENU_CREATE_LINK", {
|
|
27
|
+
slug: "short_menu-create-link",
|
|
28
|
+
name: "Create Short Link",
|
|
29
|
+
description: "Tool to create a new shortened link. Use when you need to generate a short URL with optional custom parameters like domain, tags, slug, etc. Use after gathering the target URL and any metadata.",
|
|
30
|
+
input: ShortMenuCreateLinkInput,
|
|
31
|
+
output: ShortMenuCreateLinkOutput
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.shortMenuCreateLink = shortMenuCreateLink;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=create-link.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-link.cjs","names":["z","action"],"sources":["../../src/actions/create-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortMenuCreateLinkInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The original URL to be shortened\"),\n slug: z.string().describe(\"Custom slug for the link (alphanumeric, unique). If not provided, the system will auto-generate one.\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to categorize the link\").optional(),\n domain: z.string().describe(\"Custom domain to use for the generated short link\").optional(),\n password: z.string().describe(\"Password to protect the link (plain text)\").optional(),\n pixel_ids: z.array(z.string()).describe(\"Analytics pixel identifiers to attach to the link\").optional(),\n expires_at: z.string().describe(\"ISO8601 timestamp when the link should expire\").optional(),\n description: z.string().describe(\"An optional note or description for this link\").optional(),\n}).describe(\"Input parameters to create a new shortened link.\");\nexport const ShortMenuCreateLinkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the created link\"),\n url: z.string().describe(\"The original URL\"),\n slug: z.string().describe(\"The custom or auto-generated slug\"),\n tags: z.array(z.string()).describe(\"Tags assigned to the link\"),\n domain: z.string().describe(\"Domain used for the link\"),\n short_url: z.string().describe(\"The shortened URL\"),\n created_at: z.string().describe(\"Link creation date/time\"),\n expires_at: z.string().describe(\"Expiration date/time of the link\").nullable().optional(),\n description: z.string().describe(\"Link description or note\").nullable().optional(),\n password_enabled: z.boolean().describe(\"Whether the link is password protected\"),\n}).describe(\"Response schema for the created link.\");\n\nexport const shortMenuCreateLink = action(\"SHORT_MENU_CREATE_LINK\", {\n slug: \"short_menu-create-link\",\n name: \"Create Short Link\",\n description: \"Tool to create a new shortened link. Use when you need to generate a short URL with optional custom parameters like domain, tags, slug, etc. Use after gathering the target URL and any metadata.\",\n input: ShortMenuCreateLinkInput,\n output: ShortMenuCreateLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3I,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2BAA2B;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACzD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;AACjF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,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-link.d.ts
|
|
4
|
+
declare const ShortMenuCreateLinkInput: z.ZodTypeAny;
|
|
5
|
+
declare const ShortMenuCreateLinkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const shortMenuCreateLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { shortMenuCreateLink };
|
|
9
|
+
//# sourceMappingURL=create-link.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-link.d.cts","names":[],"sources":["../../src/actions/create-link.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASsB;AAAA,cAClD,yBAAA,EAA2B,CAAA,CAAE,UAWU;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/create-link.d.ts
|
|
4
|
+
declare const ShortMenuCreateLinkInput: z.ZodTypeAny;
|
|
5
|
+
declare const ShortMenuCreateLinkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const shortMenuCreateLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { shortMenuCreateLink };
|
|
9
|
+
//# sourceMappingURL=create-link.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-link.d.mts","names":[],"sources":["../../src/actions/create-link.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASsB;AAAA,cAClD,yBAAA,EAA2B,CAAA,CAAE,UAWU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const shortMenuCreateLink = action("SHORT_MENU_CREATE_LINK", {
|
|
4
|
+
slug: "short_menu-create-link",
|
|
5
|
+
name: "Create Short Link",
|
|
6
|
+
description: "Tool to create a new shortened link. Use when you need to generate a short URL with optional custom parameters like domain, tags, slug, etc. Use after gathering the target URL and any metadata.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
url: z.string().describe("The original URL to be shortened"),
|
|
9
|
+
slug: z.string().describe("Custom slug for the link (alphanumeric, unique). If not provided, the system will auto-generate one.").optional(),
|
|
10
|
+
tags: z.array(z.string()).describe("List of tags to categorize the link").optional(),
|
|
11
|
+
domain: z.string().describe("Custom domain to use for the generated short link").optional(),
|
|
12
|
+
password: z.string().describe("Password to protect the link (plain text)").optional(),
|
|
13
|
+
pixel_ids: z.array(z.string()).describe("Analytics pixel identifiers to attach to the link").optional(),
|
|
14
|
+
expires_at: z.string().describe("ISO8601 timestamp when the link should expire").optional(),
|
|
15
|
+
description: z.string().describe("An optional note or description for this link").optional()
|
|
16
|
+
}).describe("Input parameters to create a new shortened link."),
|
|
17
|
+
output: z.object({
|
|
18
|
+
id: z.string().describe("Unique ID of the created link"),
|
|
19
|
+
url: z.string().describe("The original URL"),
|
|
20
|
+
slug: z.string().describe("The custom or auto-generated slug"),
|
|
21
|
+
tags: z.array(z.string()).describe("Tags assigned to the link"),
|
|
22
|
+
domain: z.string().describe("Domain used for the link"),
|
|
23
|
+
short_url: z.string().describe("The shortened URL"),
|
|
24
|
+
created_at: z.string().describe("Link creation date/time"),
|
|
25
|
+
expires_at: z.string().describe("Expiration date/time of the link").nullable().optional(),
|
|
26
|
+
description: z.string().describe("Link description or note").nullable().optional(),
|
|
27
|
+
password_enabled: z.boolean().describe("Whether the link is password protected")
|
|
28
|
+
}).describe("Response schema for the created link.")
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { shortMenuCreateLink };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=create-link.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-link.mjs","names":[],"sources":["../../src/actions/create-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortMenuCreateLinkInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The original URL to be shortened\"),\n slug: z.string().describe(\"Custom slug for the link (alphanumeric, unique). If not provided, the system will auto-generate one.\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to categorize the link\").optional(),\n domain: z.string().describe(\"Custom domain to use for the generated short link\").optional(),\n password: z.string().describe(\"Password to protect the link (plain text)\").optional(),\n pixel_ids: z.array(z.string()).describe(\"Analytics pixel identifiers to attach to the link\").optional(),\n expires_at: z.string().describe(\"ISO8601 timestamp when the link should expire\").optional(),\n description: z.string().describe(\"An optional note or description for this link\").optional(),\n}).describe(\"Input parameters to create a new shortened link.\");\nexport const ShortMenuCreateLinkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the created link\"),\n url: z.string().describe(\"The original URL\"),\n slug: z.string().describe(\"The custom or auto-generated slug\"),\n tags: z.array(z.string()).describe(\"Tags assigned to the link\"),\n domain: z.string().describe(\"Domain used for the link\"),\n short_url: z.string().describe(\"The shortened URL\"),\n created_at: z.string().describe(\"Link creation date/time\"),\n expires_at: z.string().describe(\"Expiration date/time of the link\").nullable().optional(),\n description: z.string().describe(\"Link description or note\").nullable().optional(),\n password_enabled: z.boolean().describe(\"Whether the link is password protected\"),\n}).describe(\"Response schema for the created link.\");\n\nexport const shortMenuCreateLink = action(\"SHORT_MENU_CREATE_LINK\", {\n slug: \"short_menu-create-link\",\n name: \"Create Short Link\",\n description: \"Tool to create a new shortened link. Use when you need to generate a short URL with optional custom parameters like domain, tags, slug, etc. Use after gathering the target URL and any metadata.\",\n input: ShortMenuCreateLinkInput,\n output: ShortMenuCreateLinkOutput,\n});\n"],"mappings":";;AA2BA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BoD,EAAE,OAAO;EAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC3I,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,kDAkBH;CACP,QAlBqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2BAA2B;EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACjF,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-link.ts
|
|
4
|
+
const ShortMenuDeleteLinkInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the link to delete (UUID format)") }).describe("Input parameters to delete an existing short link.");
|
|
5
|
+
const ShortMenuDeleteLinkOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates whether the deletion was successful").nullable().optional() }).describe("Response schema for successful link deletion.");
|
|
6
|
+
const shortMenuDeleteLink = require_action.action("SHORT_MENU_DELETE_LINK", {
|
|
7
|
+
slug: "short_menu-delete-link",
|
|
8
|
+
name: "Delete Short Link",
|
|
9
|
+
description: "Tool to delete an existing short link by its ID. Use when you need to remove a shortened URL from the system.",
|
|
10
|
+
input: ShortMenuDeleteLinkInput,
|
|
11
|
+
output: ShortMenuDeleteLinkOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.shortMenuDeleteLink = shortMenuDeleteLink;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-link.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-link.cjs","names":["z","action"],"sources":["../../src/actions/delete-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortMenuDeleteLinkInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the link to delete (UUID format)\"),\n}).describe(\"Input parameters to delete an existing short link.\");\nexport const ShortMenuDeleteLinkOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).describe(\"Response schema for successful link deletion.\");\n\nexport const shortMenuDeleteLink = action(\"SHORT_MENU_DELETE_LINK\", {\n slug: \"short_menu-delete-link\",\n name: \"Delete Short Link\",\n description: \"Tool to delete an existing short link by its ID. Use when you need to remove a shortened URL from the system.\",\n input: ShortMenuDeleteLinkInput,\n output: ShortMenuDeleteLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACjF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,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/delete-link.d.ts
|
|
4
|
+
declare const ShortMenuDeleteLinkInput: z.ZodTypeAny;
|
|
5
|
+
declare const ShortMenuDeleteLinkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const shortMenuDeleteLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { shortMenuDeleteLink };
|
|
9
|
+
//# sourceMappingURL=delete-link.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-link.d.cts","names":[],"sources":["../../src/actions/delete-link.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEwB;AAAA,cACpD,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-link.d.ts
|
|
4
|
+
declare const ShortMenuDeleteLinkInput: z.ZodTypeAny;
|
|
5
|
+
declare const ShortMenuDeleteLinkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const shortMenuDeleteLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { shortMenuDeleteLink };
|
|
9
|
+
//# sourceMappingURL=delete-link.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-link.d.mts","names":[],"sources":["../../src/actions/delete-link.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEwB;AAAA,cACpD,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const shortMenuDeleteLink = action("SHORT_MENU_DELETE_LINK", {
|
|
4
|
+
slug: "short_menu-delete-link",
|
|
5
|
+
name: "Delete Short Link",
|
|
6
|
+
description: "Tool to delete an existing short link by its ID. Use when you need to remove a shortened URL from the system.",
|
|
7
|
+
input: z.object({ id: z.string().describe("Unique identifier of the link to delete (UUID format)") }).describe("Input parameters to delete an existing short link."),
|
|
8
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the deletion was successful").nullable().optional() }).describe("Response schema for successful link deletion.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { shortMenuDeleteLink };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-link.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-link.mjs","names":[],"sources":["../../src/actions/delete-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortMenuDeleteLinkInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the link to delete (UUID format)\"),\n}).describe(\"Input parameters to delete an existing short link.\");\nexport const ShortMenuDeleteLinkOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).describe(\"Response schema for successful link deletion.\");\n\nexport const shortMenuDeleteLink = action(\"SHORT_MENU_DELETE_LINK\", {\n slug: \"short_menu-delete-link\",\n name: \"Delete Short Link\",\n description: \"Tool to delete an existing short link by its ID. Use when you need to remove a shortened URL from the system.\",\n input: ShortMenuDeleteLinkInput,\n output: ShortMenuDeleteLinkOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXoD,EAAE,OAAO,EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACjF,CAAC,CAAC,CAAC,SAAS,oDASH;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-domains.ts
|
|
4
|
+
const ShortMenuGetDomainsInput = zod.z.object({}).describe("No input parameters required to retrieve custom domains.");
|
|
5
|
+
const ShortMenuGetDomains_DomainSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the domain (UUID)"),
|
|
7
|
+
name: zod.z.string().describe("Custom domain name"),
|
|
8
|
+
customDomainMetadata: zod.z.unknown().describe("Additional custom domain metadata").nullable().optional()
|
|
9
|
+
});
|
|
10
|
+
const ShortMenuGetDomainsOutput = zod.z.object({ domains: zod.z.array(ShortMenuGetDomains_DomainSchema).describe("List of available custom domains") });
|
|
11
|
+
const shortMenuGetDomains = require_action.action("SHORT_MENU_GET_DOMAINS", {
|
|
12
|
+
slug: "short_menu-get-domains",
|
|
13
|
+
name: "Get Custom Domains",
|
|
14
|
+
description: "Tool to retrieve available custom domains. Use when you need to display or select a domain for shortening links.",
|
|
15
|
+
input: ShortMenuGetDomainsInput,
|
|
16
|
+
output: ShortMenuGetDomainsOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.shortMenuGetDomains = shortMenuGetDomains;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=get-domains.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-domains.cjs","names":["z","action"],"sources":["../../src/actions/get-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortMenuGetDomainsInput: z.ZodTypeAny = z.object({}).describe(\"No input parameters required to retrieve custom domains.\");\nconst ShortMenuGetDomains_DomainSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the domain (UUID)\"),\n name: z.string().describe(\"Custom domain name\"),\n customDomainMetadata: z.unknown().describe(\"Additional custom domain metadata\").nullable().optional(),\n});\nexport const ShortMenuGetDomainsOutput: z.ZodTypeAny = z.object({\n domains: z.array(ShortMenuGetDomains_DomainSchema).describe(\"List of available custom domains\"),\n});\n\nexport const shortMenuGetDomains = action(\"SHORT_MENU_GET_DOMAINS\", {\n slug: \"short_menu-get-domains\",\n name: \"Get Custom Domains\",\n description: \"Tool to retrieve available custom domains. Use when you need to display or select a domain for shortening links.\",\n input: ShortMenuGetDomainsInput,\n output: ShortMenuGetDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtI,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,kCAAkC,EAChG,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/get-domains.d.ts
|
|
4
|
+
declare const ShortMenuGetDomainsInput: z.ZodTypeAny;
|
|
5
|
+
declare const ShortMenuGetDomainsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const shortMenuGetDomains: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { shortMenuGetDomains };
|
|
9
|
+
//# sourceMappingURL=get-domains.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-domains.d.cts","names":[],"sources":["../../src/actions/get-domains.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA8F;AAAA,cAM1H,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/get-domains.d.ts
|
|
4
|
+
declare const ShortMenuGetDomainsInput: z.ZodTypeAny;
|
|
5
|
+
declare const ShortMenuGetDomainsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const shortMenuGetDomains: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { shortMenuGetDomains };
|
|
9
|
+
//# sourceMappingURL=get-domains.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-domains.d.mts","names":[],"sources":["../../src/actions/get-domains.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA8F;AAAA,cAM1H,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-domains.ts
|
|
4
|
+
const ShortMenuGetDomainsInput = z.object({}).describe("No input parameters required to retrieve custom domains.");
|
|
5
|
+
const ShortMenuGetDomains_DomainSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier for the domain (UUID)"),
|
|
7
|
+
name: z.string().describe("Custom domain name"),
|
|
8
|
+
customDomainMetadata: z.unknown().describe("Additional custom domain metadata").nullable().optional()
|
|
9
|
+
});
|
|
10
|
+
const shortMenuGetDomains = action("SHORT_MENU_GET_DOMAINS", {
|
|
11
|
+
slug: "short_menu-get-domains",
|
|
12
|
+
name: "Get Custom Domains",
|
|
13
|
+
description: "Tool to retrieve available custom domains. Use when you need to display or select a domain for shortening links.",
|
|
14
|
+
input: ShortMenuGetDomainsInput,
|
|
15
|
+
output: z.object({ domains: z.array(ShortMenuGetDomains_DomainSchema).describe("List of available custom domains") })
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { shortMenuGetDomains };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=get-domains.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-domains.mjs","names":[],"sources":["../../src/actions/get-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortMenuGetDomainsInput: z.ZodTypeAny = z.object({}).describe(\"No input parameters required to retrieve custom domains.\");\nconst ShortMenuGetDomains_DomainSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the domain (UUID)\"),\n name: z.string().describe(\"Custom domain name\"),\n customDomainMetadata: z.unknown().describe(\"Additional custom domain metadata\").nullable().optional(),\n});\nexport const ShortMenuGetDomainsOutput: z.ZodTypeAny = z.object({\n domains: z.array(ShortMenuGetDomains_DomainSchema).describe(\"List of available custom domains\"),\n});\n\nexport const shortMenuGetDomains = action(\"SHORT_MENU_GET_DOMAINS\", {\n slug: \"short_menu-get-domains\",\n name: \"Get Custom Domains\",\n description: \"Tool to retrieve available custom domains. Use when you need to display or select a domain for shortening links.\",\n input: ShortMenuGetDomainsInput,\n output: ShortMenuGetDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtI,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC;AAKD,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,kCAAkC,EAChG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_link = require("./create-link.cjs");
|
|
3
|
+
const require_delete_link = require("./delete-link.cjs");
|
|
4
|
+
const require_get_domains = require("./get-domains.cjs");
|
|
5
|
+
exports.shortMenuCreateLink = require_create_link.shortMenuCreateLink;
|
|
6
|
+
exports.shortMenuDeleteLink = require_delete_link.shortMenuDeleteLink;
|
|
7
|
+
exports.shortMenuGetDomains = require_get_domains.shortMenuGetDomains;
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortMenu = defineApp({\n slug: \"short_menu\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortMenu = defineApp({\n slug: \"short_menu\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const shortMenuCatalog = {
|
|
4
|
+
"slug": "short_menu",
|
|
5
|
+
"name": "Short Menu",
|
|
6
|
+
"description": "Short Menu is a URL shortening application that allows users to create and manage short links efficiently.",
|
|
7
|
+
"category": "URL Shortener",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/short_menu",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.shortMenuCatalog = shortMenuCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortMenuCatalog = {\n \"slug\": \"short_menu\",\n \"name\": \"Short Menu\",\n \"description\": \"Short Menu is a URL shortening application that allows users to create and manage short links efficiently.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/short_menu\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const shortMenuCatalog: {
|
|
4
|
+
readonly slug: "short_menu";
|
|
5
|
+
readonly name: "Short Menu";
|
|
6
|
+
readonly description: "Short Menu is a URL shortening application that allows users to create and manage short links efficiently.";
|
|
7
|
+
readonly category: "URL Shortener";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/short_menu";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { shortMenuCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const shortMenuCatalog: {
|
|
4
|
+
readonly slug: "short_menu";
|
|
5
|
+
readonly name: "Short Menu";
|
|
6
|
+
readonly description: "Short Menu is a URL shortening application that allows users to create and manage short links efficiently.";
|
|
7
|
+
readonly category: "URL Shortener";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/short_menu";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { shortMenuCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const shortMenuCatalog = {
|
|
4
|
+
"slug": "short_menu",
|
|
5
|
+
"name": "Short Menu",
|
|
6
|
+
"description": "Short Menu is a URL shortening application that allows users to create and manage short links efficiently.",
|
|
7
|
+
"category": "URL Shortener",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/short_menu",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { shortMenuCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortMenuCatalog = {\n \"slug\": \"short_menu\",\n \"name\": \"Short Menu\",\n \"description\": \"Short Menu is a URL shortening application that allows users to create and manage short links efficiently.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/short_menu\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "short_menu";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeShortMenuTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeShortMenuTool = executeShortMenuTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"short_menu\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeShortMenuTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "short_menu";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeShortMenuTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeShortMenuTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"short_menu\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeShortMenuTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_create_link = require("./actions/create-link.cjs");
|
|
5
|
+
const require_delete_link = require("./actions/delete-link.cjs");
|
|
6
|
+
const require_get_domains = require("./actions/get-domains.cjs");
|
|
7
|
+
require("./actions/index.cjs");
|
|
8
|
+
exports.shortMenu = require_app.shortMenu;
|
|
9
|
+
exports.shortMenuCatalog = require_catalog.shortMenuCatalog;
|
|
10
|
+
exports.shortMenuCreateLink = require_create_link.shortMenuCreateLink;
|
|
11
|
+
exports.shortMenuDeleteLink = require_delete_link.shortMenuDeleteLink;
|
|
12
|
+
exports.shortMenuGetDomains = require_get_domains.shortMenuGetDomains;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { shortMenuCreateLink } from "./actions/create-link.cjs";
|
|
2
|
+
import { shortMenuDeleteLink } from "./actions/delete-link.cjs";
|
|
3
|
+
import { shortMenuGetDomains } from "./actions/get-domains.cjs";
|
|
4
|
+
import { shortMenu } from "./app.cjs";
|
|
5
|
+
import { shortMenuCatalog } from "./catalog.cjs";
|
|
6
|
+
export { shortMenu, shortMenuCatalog, shortMenuCreateLink, shortMenuDeleteLink, shortMenuGetDomains };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { shortMenuCreateLink } from "./actions/create-link.mjs";
|
|
2
|
+
import { shortMenuDeleteLink } from "./actions/delete-link.mjs";
|
|
3
|
+
import { shortMenuGetDomains } from "./actions/get-domains.mjs";
|
|
4
|
+
import { shortMenu } from "./app.mjs";
|
|
5
|
+
import { shortMenuCatalog } from "./catalog.mjs";
|
|
6
|
+
export { shortMenu, shortMenuCatalog, shortMenuCreateLink, shortMenuDeleteLink, shortMenuGetDomains };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { shortMenu } from "./app.mjs";
|
|
2
|
+
import { shortMenuCatalog } from "./catalog.mjs";
|
|
3
|
+
import { shortMenuCreateLink } from "./actions/create-link.mjs";
|
|
4
|
+
import { shortMenuDeleteLink } from "./actions/delete-link.mjs";
|
|
5
|
+
import { shortMenuGetDomains } from "./actions/get-domains.mjs";
|
|
6
|
+
import "./actions/index.mjs";
|
|
7
|
+
export { shortMenu, shortMenuCatalog, shortMenuCreateLink, shortMenuDeleteLink, shortMenuGetDomains };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/short_menu",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/short_menu"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|