@keystrokehq/short_menu 0.1.5 → 0.1.6
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-link.cjs +1 -0
- package/dist/actions/create-link.cjs.map +1 -1
- package/dist/actions/create-link.d.cts +3 -22
- package/dist/actions/create-link.d.cts.map +1 -1
- package/dist/actions/create-link.d.mts +3 -22
- package/dist/actions/create-link.d.mts.map +1 -1
- package/dist/actions/create-link.mjs +1 -0
- package/dist/actions/create-link.mjs.map +1 -1
- package/dist/actions/delete-link.cjs +1 -0
- package/dist/actions/delete-link.cjs.map +1 -1
- package/dist/actions/delete-link.d.cts +3 -15
- package/dist/actions/delete-link.d.cts.map +1 -1
- package/dist/actions/delete-link.d.mts +3 -15
- package/dist/actions/delete-link.d.mts.map +1 -1
- package/dist/actions/delete-link.mjs +1 -0
- package/dist/actions/delete-link.mjs.map +1 -1
- package/dist/actions/get-domains.cjs +1 -0
- package/dist/actions/get-domains.cjs.map +1 -1
- package/dist/actions/get-domains.d.cts +3 -13
- package/dist/actions/get-domains.d.cts.map +1 -1
- package/dist/actions/get-domains.d.mts +3 -13
- package/dist/actions/get-domains.d.mts.map +1 -1
- package/dist/actions/get-domains.mjs +1 -0
- package/dist/actions/get-domains.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["shortMenu","executeShortMenuTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof shortMenu.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof shortMenu.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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"}
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique ID of the created link\").nullable(),\n url: z.string().describe(\"The original URL\").nullable(),\n slug: z.string().describe(\"The custom or auto-generated slug\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the link\"),\n domain: z.string().describe(\"Domain used for the link\").nullable(),\n short_url: z.string().describe(\"The shortened URL\").nullable(),\n created_at: z.string().describe(\"Link creation date/time\").nullable(),\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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-link.cjs","names":["z","action"],"sources":["../../src/actions/create-link.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortMenu } from \"../app\";\n\nexport const ShortMenuCreateLinkInput = 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.object({\n id: z.string().describe(\"Unique ID of the created link\").nullable(),\n url: z.string().describe(\"The original URL\").nullable(),\n slug: z.string().describe(\"The custom or auto-generated slug\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the link\"),\n domain: z.string().describe(\"Domain used for the link\").nullable(),\n short_url: z.string().describe(\"The shortened URL\").nullable(),\n created_at: z.string().describe(\"Link creation date/time\").nullable(),\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\").nullable(),\n}).passthrough().describe(\"Response schema for the created link.\");\n\nexport const shortMenuCreateLink: AppAction<\n typeof ShortMenuCreateLinkInput,\n typeof ShortMenuCreateLinkOutput,\n typeof shortMenu.credential\n> = 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":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2BAA2B;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACpE,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,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortMenu } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-link.d.ts
|
|
@@ -23,28 +25,7 @@ declare const ShortMenuCreateLinkOutput: z.ZodObject<{
|
|
|
23
25
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
26
|
password_enabled: z.ZodNullable<z.ZodBoolean>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const shortMenuCreateLink:
|
|
27
|
-
url: string;
|
|
28
|
-
slug?: string | undefined;
|
|
29
|
-
tags?: string[] | undefined;
|
|
30
|
-
domain?: string | undefined;
|
|
31
|
-
password?: string | undefined;
|
|
32
|
-
pixel_ids?: string[] | undefined;
|
|
33
|
-
expires_at?: string | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const shortMenuCreateLink: AppAction<typeof ShortMenuCreateLinkInput, typeof ShortMenuCreateLinkOutput, typeof shortMenu.credential>;
|
|
48
29
|
//#endregion
|
|
49
30
|
export { shortMenuCreateLink };
|
|
50
31
|
//# sourceMappingURL=create-link.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-link.d.cts","names":[],"sources":["../../src/actions/create-link.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-link.d.cts","names":[],"sources":["../../src/actions/create-link.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAazB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortMenu } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-link.d.ts
|
|
@@ -23,28 +25,7 @@ declare const ShortMenuCreateLinkOutput: z.ZodObject<{
|
|
|
23
25
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
26
|
password_enabled: z.ZodNullable<z.ZodBoolean>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const shortMenuCreateLink:
|
|
27
|
-
url: string;
|
|
28
|
-
slug?: string | undefined;
|
|
29
|
-
tags?: string[] | undefined;
|
|
30
|
-
domain?: string | undefined;
|
|
31
|
-
password?: string | undefined;
|
|
32
|
-
pixel_ids?: string[] | undefined;
|
|
33
|
-
expires_at?: string | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const shortMenuCreateLink: AppAction<typeof ShortMenuCreateLinkInput, typeof ShortMenuCreateLinkOutput, typeof shortMenu.credential>;
|
|
48
29
|
//#endregion
|
|
49
30
|
export { shortMenuCreateLink };
|
|
50
31
|
//# sourceMappingURL=create-link.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-link.d.mts","names":[],"sources":["../../src/actions/create-link.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-link.d.mts","names":[],"sources":["../../src/actions/create-link.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAazB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique ID of the created link\").nullable(),\n url: z.string().describe(\"The original URL\").nullable(),\n slug: z.string().describe(\"The custom or auto-generated slug\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the link\"),\n domain: z.string().describe(\"Domain used for the link\").nullable(),\n short_url: z.string().describe(\"The shortened URL\").nullable(),\n created_at: z.string().describe(\"Link creation date/time\").nullable(),\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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-link.mjs","names":[],"sources":["../../src/actions/create-link.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortMenu } from \"../app\";\n\nexport const ShortMenuCreateLinkInput = 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.object({\n id: z.string().describe(\"Unique ID of the created link\").nullable(),\n url: z.string().describe(\"The original URL\").nullable(),\n slug: z.string().describe(\"The custom or auto-generated slug\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the link\"),\n domain: z.string().describe(\"Domain used for the link\").nullable(),\n short_url: z.string().describe(\"The shortened URL\").nullable(),\n created_at: z.string().describe(\"Link creation date/time\").nullable(),\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\").nullable(),\n}).passthrough().describe(\"Response schema for the created link.\");\n\nexport const shortMenuCreateLink: AppAction<\n typeof ShortMenuCreateLinkInput,\n typeof ShortMenuCreateLinkOutput,\n typeof shortMenu.credential\n> = 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":";;;AA6BA,MAAa,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BsC,EAAE,OAAO;EAC/C,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,kDAsBH;CACP,QAtBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2BAA2B;EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACpE,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,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n success: z.boolean().default(true).describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"delete-link.cjs","names":["z","action"],"sources":["../../src/actions/delete-link.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortMenu } from \"../app\";\n\nexport const ShortMenuDeleteLinkInput = 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.object({\n success: z.boolean().default(true).describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful link deletion.\");\n\nexport const shortMenuDeleteLink: AppAction<\n typeof ShortMenuDeleteLinkInput,\n typeof ShortMenuDeleteLinkOutput,\n typeof shortMenu.credential\n> = 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":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACjF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortMenu } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-link.d.ts
|
|
@@ -7,21 +9,7 @@ declare const ShortMenuDeleteLinkInput: z.ZodObject<{
|
|
|
7
9
|
declare const ShortMenuDeleteLinkOutput: z.ZodObject<{
|
|
8
10
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const shortMenuDeleteLink:
|
|
11
|
-
id: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const shortMenuDeleteLink: AppAction<typeof ShortMenuDeleteLinkInput, typeof ShortMenuDeleteLinkOutput, typeof shortMenu.credential>;
|
|
25
13
|
//#endregion
|
|
26
14
|
export { shortMenuDeleteLink };
|
|
27
15
|
//# sourceMappingURL=delete-link.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-link.d.cts","names":[],"sources":["../../src/actions/delete-link.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-link.d.cts","names":[],"sources":["../../src/actions/delete-link.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortMenu } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-link.d.ts
|
|
@@ -7,21 +9,7 @@ declare const ShortMenuDeleteLinkInput: z.ZodObject<{
|
|
|
7
9
|
declare const ShortMenuDeleteLinkOutput: z.ZodObject<{
|
|
8
10
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const shortMenuDeleteLink:
|
|
11
|
-
id: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const shortMenuDeleteLink: AppAction<typeof ShortMenuDeleteLinkInput, typeof ShortMenuDeleteLinkOutput, typeof shortMenu.credential>;
|
|
25
13
|
//#endregion
|
|
26
14
|
export { shortMenuDeleteLink };
|
|
27
15
|
//# sourceMappingURL=delete-link.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-link.d.mts","names":[],"sources":["../../src/actions/delete-link.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-link.d.mts","names":[],"sources":["../../src/actions/delete-link.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +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.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.object({\n success: z.boolean().default(true).describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"delete-link.mjs","names":[],"sources":["../../src/actions/delete-link.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortMenu } from \"../app\";\n\nexport const ShortMenuDeleteLinkInput = 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.object({\n success: z.boolean().default(true).describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful link deletion.\");\n\nexport const shortMenuDeleteLink: AppAction<\n typeof ShortMenuDeleteLinkInput,\n typeof ShortMenuDeleteLinkOutput,\n typeof shortMenu.credential\n> = 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":";;;AAaA,MAAa,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfsC,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACjF,CAAC,CAAC,CAAC,SAAS,oDAaH;CACP,QAbuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
|
|
@@ -1 +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.object({}).describe(\"No input parameters required to retrieve custom domains.\");\nconst ShortMenuGetDomains_DomainSchema = z.object({\n id: z.string().describe(\"Unique identifier for the domain (UUID)\").nullable(),\n name: z.string().describe(\"Custom domain name\").nullable(),\n customDomainMetadata: z.unknown().describe(\"Additional custom domain metadata\").nullable().optional(),\n}).passthrough();\nexport const ShortMenuGetDomainsOutput = z.object({\n domains: z.array(ShortMenuGetDomains_DomainSchema).describe(\"List of available custom domains\"),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get-domains.cjs","names":["z","action"],"sources":["../../src/actions/get-domains.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortMenu } from \"../app\";\n\nexport const ShortMenuGetDomainsInput = z.object({}).describe(\"No input parameters required to retrieve custom domains.\");\nconst ShortMenuGetDomains_DomainSchema = z.object({\n id: z.string().describe(\"Unique identifier for the domain (UUID)\").nullable(),\n name: z.string().describe(\"Custom domain name\").nullable(),\n customDomainMetadata: z.unknown().describe(\"Additional custom domain metadata\").nullable().optional(),\n}).passthrough();\nexport const ShortMenuGetDomainsOutput = z.object({\n domains: z.array(ShortMenuGetDomains_DomainSchema).describe(\"List of available custom domains\"),\n}).passthrough();\n\nexport const shortMenuGetDomains: AppAction<\n typeof ShortMenuGetDomainsInput,\n typeof ShortMenuGetDomainsOutput,\n typeof shortMenu.credential\n> = 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":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACxH,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,kCAAkC,EAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortMenu } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-domains.d.ts
|
|
@@ -9,19 +11,7 @@ declare const ShortMenuGetDomainsOutput: z.ZodObject<{
|
|
|
9
11
|
customDomainMetadata: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const shortMenuGetDomains:
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const shortMenuGetDomains: AppAction<typeof ShortMenuGetDomainsInput, typeof ShortMenuGetDomainsOutput, typeof shortMenu.credential>;
|
|
25
15
|
//#endregion
|
|
26
16
|
export { shortMenuGetDomains };
|
|
27
17
|
//# sourceMappingURL=get-domains.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-domains.d.cts","names":[],"sources":["../../src/actions/get-domains.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-domains.d.cts","names":[],"sources":["../../src/actions/get-domains.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortMenu } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-domains.d.ts
|
|
@@ -9,19 +11,7 @@ declare const ShortMenuGetDomainsOutput: z.ZodObject<{
|
|
|
9
11
|
customDomainMetadata: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const shortMenuGetDomains:
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"short_menu", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const shortMenuGetDomains: AppAction<typeof ShortMenuGetDomainsInput, typeof ShortMenuGetDomainsOutput, typeof shortMenu.credential>;
|
|
25
15
|
//#endregion
|
|
26
16
|
export { shortMenuGetDomains };
|
|
27
17
|
//# sourceMappingURL=get-domains.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-domains.d.mts","names":[],"sources":["../../src/actions/get-domains.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-domains.d.mts","names":[],"sources":["../../src/actions/get-domains.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +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.object({}).describe(\"No input parameters required to retrieve custom domains.\");\nconst ShortMenuGetDomains_DomainSchema = z.object({\n id: z.string().describe(\"Unique identifier for the domain (UUID)\").nullable(),\n name: z.string().describe(\"Custom domain name\").nullable(),\n customDomainMetadata: z.unknown().describe(\"Additional custom domain metadata\").nullable().optional(),\n}).passthrough();\nexport const ShortMenuGetDomainsOutput = z.object({\n domains: z.array(ShortMenuGetDomains_DomainSchema).describe(\"List of available custom domains\"),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get-domains.mjs","names":[],"sources":["../../src/actions/get-domains.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortMenu } from \"../app\";\n\nexport const ShortMenuGetDomainsInput = z.object({}).describe(\"No input parameters required to retrieve custom domains.\");\nconst ShortMenuGetDomains_DomainSchema = z.object({\n id: z.string().describe(\"Unique identifier for the domain (UUID)\").nullable(),\n name: z.string().describe(\"Custom domain name\").nullable(),\n customDomainMetadata: z.unknown().describe(\"Additional custom domain metadata\").nullable().optional(),\n}).passthrough();\nexport const ShortMenuGetDomainsOutput = z.object({\n domains: z.array(ShortMenuGetDomains_DomainSchema).describe(\"List of available custom domains\"),\n}).passthrough();\n\nexport const shortMenuGetDomains: AppAction<\n typeof ShortMenuGetDomainsInput,\n typeof ShortMenuGetDomainsOutput,\n typeof shortMenu.credential\n> = 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":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACxH,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,kCAAkC,EAChG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const shortMenu = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "short_menu",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.shortMenu = shortMenu;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const shortMenu = defineApp({\n slug: \"short_menu\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const shortMenu: KeystrokeApp<\"short_menu\", typeof credential> = defineApp({\n slug: \"short_menu\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAqE;CAChF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const shortMenu: KeystrokeApp<"short_menu", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { shortMenu };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,sBAAsB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const shortMenu: KeystrokeApp<"short_menu", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { shortMenu };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,sBAAsB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const shortMenu = defineApp({\n slug: \"short_menu\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const shortMenu: KeystrokeApp<\"short_menu\", typeof credential> = defineApp({\n slug: \"short_menu\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,YAA2D,UAAU;CAChF,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { shortMenu } from "./app.cjs";
|
|
1
2
|
import { shortMenuCreateLink } from "./actions/create-link.cjs";
|
|
2
3
|
import { shortMenuDeleteLink } from "./actions/delete-link.cjs";
|
|
3
4
|
import { shortMenuGetDomains } from "./actions/get-domains.cjs";
|
|
4
|
-
import { shortMenu } from "./app.cjs";
|
|
5
5
|
import { shortMenuCatalog } from "./catalog.cjs";
|
|
6
6
|
export { shortMenu, shortMenuCatalog, shortMenuCreateLink, shortMenuDeleteLink, shortMenuGetDomains };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { shortMenu } from "./app.mjs";
|
|
1
2
|
import { shortMenuCreateLink } from "./actions/create-link.mjs";
|
|
2
3
|
import { shortMenuDeleteLink } from "./actions/delete-link.mjs";
|
|
3
4
|
import { shortMenuGetDomains } from "./actions/get-domains.mjs";
|
|
4
|
-
import { shortMenu } from "./app.mjs";
|
|
5
5
|
import { shortMenuCatalog } from "./catalog.mjs";
|
|
6
6
|
export { shortMenu, shortMenuCatalog, shortMenuCreateLink, shortMenuDeleteLink, shortMenuGetDomains };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/short_menu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|