@keystrokehq/shorten_rest 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.
Files changed (82) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-alias.cjs +36 -0
  7. package/dist/actions/create-alias.cjs.map +1 -0
  8. package/dist/actions/create-alias.d.cts +9 -0
  9. package/dist/actions/create-alias.d.cts.map +1 -0
  10. package/dist/actions/create-alias.d.mts +9 -0
  11. package/dist/actions/create-alias.d.mts.map +1 -0
  12. package/dist/actions/create-alias.mjs +33 -0
  13. package/dist/actions/create-alias.mjs.map +1 -0
  14. package/dist/actions/delete-alias.cjs +19 -0
  15. package/dist/actions/delete-alias.cjs.map +1 -0
  16. package/dist/actions/delete-alias.d.cts +9 -0
  17. package/dist/actions/delete-alias.d.cts.map +1 -0
  18. package/dist/actions/delete-alias.d.mts +9 -0
  19. package/dist/actions/delete-alias.d.mts.map +1 -0
  20. package/dist/actions/delete-alias.mjs +16 -0
  21. package/dist/actions/delete-alias.mjs.map +1 -0
  22. package/dist/actions/get-aliases.cjs +44 -0
  23. package/dist/actions/get-aliases.cjs.map +1 -0
  24. package/dist/actions/get-aliases.d.cts +9 -0
  25. package/dist/actions/get-aliases.d.cts.map +1 -0
  26. package/dist/actions/get-aliases.d.mts +9 -0
  27. package/dist/actions/get-aliases.d.mts.map +1 -0
  28. package/dist/actions/get-aliases.mjs +43 -0
  29. package/dist/actions/get-aliases.mjs.map +1 -0
  30. package/dist/actions/get-clicks.cjs +30 -0
  31. package/dist/actions/get-clicks.cjs.map +1 -0
  32. package/dist/actions/get-clicks.d.cts +9 -0
  33. package/dist/actions/get-clicks.d.cts.map +1 -0
  34. package/dist/actions/get-clicks.d.mts +9 -0
  35. package/dist/actions/get-clicks.d.mts.map +1 -0
  36. package/dist/actions/get-clicks.mjs +29 -0
  37. package/dist/actions/get-clicks.mjs.map +1 -0
  38. package/dist/actions/index.cjs +13 -0
  39. package/dist/actions/index.d.cts +7 -0
  40. package/dist/actions/index.d.mts +7 -0
  41. package/dist/actions/index.mjs +7 -0
  42. package/dist/actions/list-aliases-by-domain.cjs +23 -0
  43. package/dist/actions/list-aliases-by-domain.cjs.map +1 -0
  44. package/dist/actions/list-aliases-by-domain.d.cts +9 -0
  45. package/dist/actions/list-aliases-by-domain.d.cts.map +1 -0
  46. package/dist/actions/list-aliases-by-domain.d.mts +9 -0
  47. package/dist/actions/list-aliases-by-domain.d.mts.map +1 -0
  48. package/dist/actions/list-aliases-by-domain.mjs +20 -0
  49. package/dist/actions/list-aliases-by-domain.mjs.map +1 -0
  50. package/dist/actions/update-alias.cjs +32 -0
  51. package/dist/actions/update-alias.cjs.map +1 -0
  52. package/dist/actions/update-alias.d.cts +9 -0
  53. package/dist/actions/update-alias.d.cts.map +1 -0
  54. package/dist/actions/update-alias.d.mts +9 -0
  55. package/dist/actions/update-alias.d.mts.map +1 -0
  56. package/dist/actions/update-alias.mjs +29 -0
  57. package/dist/actions/update-alias.mjs.map +1 -0
  58. package/dist/app.cjs +9 -0
  59. package/dist/app.cjs.map +1 -0
  60. package/dist/app.d.cts +5 -0
  61. package/dist/app.d.cts.map +1 -0
  62. package/dist/app.d.mts +5 -0
  63. package/dist/app.d.mts.map +1 -0
  64. package/dist/app.mjs +10 -0
  65. package/dist/app.mjs.map +1 -0
  66. package/dist/catalog.cjs +15 -0
  67. package/dist/catalog.cjs.map +1 -0
  68. package/dist/catalog.d.cts +14 -0
  69. package/dist/catalog.d.cts.map +1 -0
  70. package/dist/catalog.d.mts +14 -0
  71. package/dist/catalog.d.mts.map +1 -0
  72. package/dist/catalog.mjs +15 -0
  73. package/dist/catalog.mjs.map +1 -0
  74. package/dist/execute.cjs +18 -0
  75. package/dist/execute.cjs.map +1 -0
  76. package/dist/execute.mjs +18 -0
  77. package/dist/execute.mjs.map +1 -0
  78. package/dist/index.cjs +18 -0
  79. package/dist/index.d.cts +9 -0
  80. package/dist/index.d.mts +9 -0
  81. package/dist/index.mjs +10 -0
  82. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/shorten_rest
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `shorten_rest`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 6
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { shortenRestCreateAlias } from "@keystrokehq/shorten_rest/actions";
12
+
13
+ export default defineAgent({
14
+ key: "shorten_rest-agent",
15
+ tools: [shortenRestCreateAlias],
16
+ });
17
+ ```
@@ -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.shortenRest.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.executeShortenRestTool(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":["shortenRest","executeShortenRestTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shortenRest } from \"./app\";\nimport { executeShortenRestTool } 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 shortenRest.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 executeShortenRestTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,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,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { shortenRest } from "./app.mjs";
2
+ import { executeShortenRestTool } 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 shortenRest.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 executeShortenRestTool(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 { shortenRest } from \"./app\";\nimport { executeShortenRestTool } 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 shortenRest.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 executeShortenRestTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-alias.ts
4
+ const ShortenRestCreateAliasInput = zod.z.object({
5
+ metatags: zod.z.array(zod.z.object({
6
+ name: zod.z.string().describe("Name of the metatag"),
7
+ content: zod.z.string().describe("Content of the metatag")
8
+ }).describe("Represents a metatag for the alias.")).describe("List of metatags for the alias. Use to override domain-level meta tags").optional(),
9
+ snippets: zod.z.array(zod.z.object({
10
+ id: zod.z.string().describe("Snippet identifier"),
11
+ parameters: zod.z.object({}).describe("Snippet parameters").optional()
12
+ }).describe("Represents a snippet configuration.")).describe("List of tracking snippets for the alias. Use to override domain-level tracking snippets").optional(),
13
+ aliasName: zod.z.string().describe("Alias name (without `/` at the beginning). If not specified, a random alias will be generated").optional(),
14
+ domainName: zod.z.string().describe("Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'").optional(),
15
+ destinations: zod.z.array(zod.z.object({
16
+ os: zod.z.string().describe("Target operating system").optional(),
17
+ url: zod.z.string().describe("The destination URL where the short link will redirect"),
18
+ country: zod.z.string().describe("Target country for geo-targeting (ISO code)").optional()
19
+ }).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs with optional geo-targeting. At least one destination is required")
20
+ }).describe("Request parameters for creating a new shortened URL alias.");
21
+ const ShortenRestCreateAliasOutput = zod.z.object({
22
+ shortUrl: zod.z.string().describe("The complete short URL"),
23
+ aliasName: zod.z.string().describe("The generated or specified alias name"),
24
+ domainName: zod.z.string().describe("The domain name for the short URL").nullable().optional()
25
+ }).describe("Response schema for creating a new alias.");
26
+ const shortenRestCreateAlias = require_action.action("SHORTEN_REST_CREATE_ALIAS", {
27
+ slug: "shorten_rest-create-alias",
28
+ name: "Create Alias",
29
+ description: "Tool to create a new alias (short URL) under a specified domain. Use when you need to shorten a URL. If no domain is specified, the alias will be attached to the default domain Short.fyi. You can override domain-level Meta Tags and Tracking Snippets by specifying them for each URL.",
30
+ input: ShortenRestCreateAliasInput,
31
+ output: ShortenRestCreateAliasOutput
32
+ });
33
+ //#endregion
34
+ exports.shortenRestCreateAlias = shortenRestCreateAlias;
35
+
36
+ //# sourceMappingURL=create-alias.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-alias.cjs","names":["z","action"],"sources":["../../src/actions/create-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestCreateAliasInput: z.ZodTypeAny = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag\"),\n content: z.string().describe(\"Content of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags for the alias. Use to override domain-level meta tags\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of tracking snippets for the alias. Use to override domain-level tracking snippets\").optional(),\n aliasName: z.string().describe(\"Alias name (without `/` at the beginning). If not specified, a random alias will be generated\").optional(),\n domainName: z.string().describe(\"Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system\").optional(),\n url: z.string().describe(\"The destination URL where the short link will redirect\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs with optional geo-targeting. At least one destination is required\"),\n}).describe(\"Request parameters for creating a new shortened URL alias.\");\nexport const ShortenRestCreateAliasOutput: z.ZodTypeAny = z.object({\n shortUrl: z.string().describe(\"The complete short URL\"),\n aliasName: z.string().describe(\"The generated or specified alias name\"),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n}).describe(\"Response schema for creating a new alias.\");\n\nexport const shortenRestCreateAlias = action(\"SHORTEN_REST_CREATE_ALIAS\", {\n slug: \"shorten_rest-create-alias\",\n name: \"Create Alias\",\n description: \"Tool to create a new alias (short URL) under a specified domain. Use when you need to shorten a URL. If no domain is specified, the alias will be attached to the default domain Short.fyi. You can override domain-level Meta Tags and Tracking Snippets by specifying them for each URL.\",\n input: ShortenRestCreateAliasInput,\n output: ShortenRestCreateAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACvD,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC9I,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC/J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAC9J,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,4FAA4F;AAC/K,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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-alias.d.ts
4
+ declare const ShortenRestCreateAliasInput: z.ZodTypeAny;
5
+ declare const ShortenRestCreateAliasOutput: z.ZodTypeAny;
6
+ declare const shortenRestCreateAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestCreateAlias };
9
+ //# sourceMappingURL=create-alias.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-alias.d.cts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAgB6B;AAAA,cAC5D,4BAAA,EAA8B,CAAA,CAAE,UAIW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-alias.d.ts
4
+ declare const ShortenRestCreateAliasInput: z.ZodTypeAny;
5
+ declare const ShortenRestCreateAliasOutput: z.ZodTypeAny;
6
+ declare const shortenRestCreateAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestCreateAlias };
9
+ //# sourceMappingURL=create-alias.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-alias.d.mts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAgB6B;AAAA,cAC5D,4BAAA,EAA8B,CAAA,CAAE,UAIW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortenRestCreateAlias = action("SHORTEN_REST_CREATE_ALIAS", {
4
+ slug: "shorten_rest-create-alias",
5
+ name: "Create Alias",
6
+ description: "Tool to create a new alias (short URL) under a specified domain. Use when you need to shorten a URL. If no domain is specified, the alias will be attached to the default domain Short.fyi. You can override domain-level Meta Tags and Tracking Snippets by specifying them for each URL.",
7
+ input: z.object({
8
+ metatags: z.array(z.object({
9
+ name: z.string().describe("Name of the metatag"),
10
+ content: z.string().describe("Content of the metatag")
11
+ }).describe("Represents a metatag for the alias.")).describe("List of metatags for the alias. Use to override domain-level meta tags").optional(),
12
+ snippets: z.array(z.object({
13
+ id: z.string().describe("Snippet identifier"),
14
+ parameters: z.object({}).describe("Snippet parameters").optional()
15
+ }).describe("Represents a snippet configuration.")).describe("List of tracking snippets for the alias. Use to override domain-level tracking snippets").optional(),
16
+ aliasName: z.string().describe("Alias name (without `/` at the beginning). If not specified, a random alias will be generated").optional(),
17
+ domainName: z.string().describe("Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'").optional(),
18
+ destinations: z.array(z.object({
19
+ os: z.string().describe("Target operating system").optional(),
20
+ url: z.string().describe("The destination URL where the short link will redirect"),
21
+ country: z.string().describe("Target country for geo-targeting (ISO code)").optional()
22
+ }).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs with optional geo-targeting. At least one destination is required")
23
+ }).describe("Request parameters for creating a new shortened URL alias."),
24
+ output: z.object({
25
+ shortUrl: z.string().describe("The complete short URL"),
26
+ aliasName: z.string().describe("The generated or specified alias name"),
27
+ domainName: z.string().describe("The domain name for the short URL").nullable().optional()
28
+ }).describe("Response schema for creating a new alias.")
29
+ });
30
+ //#endregion
31
+ export { shortenRestCreateAlias };
32
+
33
+ //# sourceMappingURL=create-alias.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-alias.mjs","names":[],"sources":["../../src/actions/create-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestCreateAliasInput: z.ZodTypeAny = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag\"),\n content: z.string().describe(\"Content of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags for the alias. Use to override domain-level meta tags\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of tracking snippets for the alias. Use to override domain-level tracking snippets\").optional(),\n aliasName: z.string().describe(\"Alias name (without `/` at the beginning). If not specified, a random alias will be generated\").optional(),\n domainName: z.string().describe(\"Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system\").optional(),\n url: z.string().describe(\"The destination URL where the short link will redirect\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs with optional geo-targeting. At least one destination is required\"),\n}).describe(\"Request parameters for creating a new shortened URL alias.\");\nexport const ShortenRestCreateAliasOutput: z.ZodTypeAny = z.object({\n shortUrl: z.string().describe(\"The complete short URL\"),\n aliasName: z.string().describe(\"The generated or specified alias name\"),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n}).describe(\"Response schema for creating a new alias.\");\n\nexport const shortenRestCreateAlias = action(\"SHORTEN_REST_CREATE_ALIAS\", {\n slug: \"shorten_rest-create-alias\",\n name: \"Create Alias\",\n description: \"Tool to create a new alias (short URL) under a specified domain. Use when you need to shorten a URL. If no domain is specified, the alias will be attached to the default domain Short.fyi. You can override domain-level Meta Tags and Tracking Snippets by specifying them for each URL.\",\n input: ShortenRestCreateAliasInput,\n output: ShortenRestCreateAliasOutput,\n});\n"],"mappings":";;AA2BA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BuD,EAAE,OAAO;EAChE,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;GAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACvD,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC9I,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACzI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;EAC9J,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;GACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACvF,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,4FAA4F;CAC/K,CAAC,CAAC,CAAC,SAAS,4DAWH;CACP,QAXwD,EAAE,OAAO;EACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-alias.ts
4
+ const ShortenRestDeleteAliasInput = zod.z.object({
5
+ aliasName: zod.z.string().describe("Alias to delete (without `/` at the beginning). This is the short code identifier for the URL."),
6
+ domainName: zod.z.string().describe("Domain which alias belongs to (string without `http/https` or `/`). If not provided, defaults to short.fyi.").optional()
7
+ }).describe("Request parameters for deleting a single alias.");
8
+ const ShortenRestDeleteAliasOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates if the deletion was successful").nullable().optional() }).describe("Response schema for deleting an alias. The API returns an empty response on success.");
9
+ const shortenRestDeleteAlias = require_action.action("SHORTEN_REST_DELETE_ALIAS", {
10
+ slug: "shorten_rest-delete-alias",
11
+ name: "Delete Alias",
12
+ description: "Tool to delete a single alias by providing alias and domain. Use when you need to remove an existing shortened URL. If no domain is provided, the API searches for the matching alias within the Short.fyi domain.",
13
+ input: ShortenRestDeleteAliasInput,
14
+ output: ShortenRestDeleteAliasOutput
15
+ });
16
+ //#endregion
17
+ exports.shortenRestDeleteAlias = shortenRestDeleteAlias;
18
+
19
+ //# sourceMappingURL=delete-alias.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestDeleteAliasInput: z.ZodTypeAny = z.object({\n aliasName: z.string().describe(\"Alias to delete (without `/` at the beginning). This is the short code identifier for the URL.\"),\n domainName: z.string().describe(\"Domain which alias belongs to (string without `http/https` or `/`). If not provided, defaults to short.fyi.\").optional(),\n}).describe(\"Request parameters for deleting a single alias.\");\nexport const ShortenRestDeleteAliasOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates if the deletion was successful\").nullable().optional(),\n}).describe(\"Response schema for deleting an alias. The API returns an empty response on success.\");\n\nexport const shortenRestDeleteAlias = action(\"SHORTEN_REST_DELETE_ALIAS\", {\n slug: \"shorten_rest-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete a single alias by providing alias and domain. Use when you need to remove an existing shortened URL. If no domain is provided, the API searches for the matching alias within the Short.fyi domain.\",\n input: ShortenRestDeleteAliasInput,\n output: ShortenRestDeleteAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC/H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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-alias.d.ts
4
+ declare const ShortenRestDeleteAliasInput: z.ZodTypeAny;
5
+ declare const ShortenRestDeleteAliasOutput: z.ZodTypeAny;
6
+ declare const shortenRestDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestDeleteAlias };
9
+ //# sourceMappingURL=delete-alias.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGkB;AAAA,cACjD,4BAAA,EAA8B,CAAA,CAAE,UAEsD;AAAA,cAEtF,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-alias.d.ts
4
+ declare const ShortenRestDeleteAliasInput: z.ZodTypeAny;
5
+ declare const ShortenRestDeleteAliasOutput: z.ZodTypeAny;
6
+ declare const shortenRestDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestDeleteAlias };
9
+ //# sourceMappingURL=delete-alias.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGkB;AAAA,cACjD,4BAAA,EAA8B,CAAA,CAAE,UAEsD;AAAA,cAEtF,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortenRestDeleteAlias = action("SHORTEN_REST_DELETE_ALIAS", {
4
+ slug: "shorten_rest-delete-alias",
5
+ name: "Delete Alias",
6
+ description: "Tool to delete a single alias by providing alias and domain. Use when you need to remove an existing shortened URL. If no domain is provided, the API searches for the matching alias within the Short.fyi domain.",
7
+ input: z.object({
8
+ aliasName: z.string().describe("Alias to delete (without `/` at the beginning). This is the short code identifier for the URL."),
9
+ domainName: z.string().describe("Domain which alias belongs to (string without `http/https` or `/`). If not provided, defaults to short.fyi.").optional()
10
+ }).describe("Request parameters for deleting a single alias."),
11
+ output: z.object({ success: z.boolean().default(true).describe("Indicates if the deletion was successful").nullable().optional() }).describe("Response schema for deleting an alias. The API returns an empty response on success.")
12
+ });
13
+ //#endregion
14
+ export { shortenRestDeleteAlias };
15
+
16
+ //# sourceMappingURL=delete-alias.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-alias.mjs","names":[],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestDeleteAliasInput: z.ZodTypeAny = z.object({\n aliasName: z.string().describe(\"Alias to delete (without `/` at the beginning). This is the short code identifier for the URL.\"),\n domainName: z.string().describe(\"Domain which alias belongs to (string without `http/https` or `/`). If not provided, defaults to short.fyi.\").optional(),\n}).describe(\"Request parameters for deleting a single alias.\");\nexport const ShortenRestDeleteAliasOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates if the deletion was successful\").nullable().optional(),\n}).describe(\"Response schema for deleting an alias. The API returns an empty response on success.\");\n\nexport const shortenRestDeleteAlias = action(\"SHORTEN_REST_DELETE_ALIAS\", {\n slug: \"shorten_rest-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete a single alias by providing alias and domain. Use when you need to remove an existing shortened URL. If no domain is provided, the API searches for the matching alias within the Short.fyi domain.\",\n input: ShortenRestDeleteAliasInput,\n output: ShortenRestDeleteAliasOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO;EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC/H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,iDASH;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
@@ -0,0 +1,44 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-aliases.ts
4
+ const ShortenRestGetAliasesInput = zod.z.object({
5
+ limit: zod.z.number().int().describe("Maximum number of aliases to return per page (must be ≥ 1)").optional(),
6
+ cursor: zod.z.string().describe("Cursor token for pagination to fetch the next set of aliases").optional()
7
+ }).describe("Query parameters for retrieving aliases with optional pagination.");
8
+ const ShortenRestGetAliases_MetatagSchema = zod.z.object({
9
+ name: zod.z.string().describe("Name of the metatag"),
10
+ content: zod.z.string().describe("Content of the metatag")
11
+ }).describe("Represents a metatag for the alias.");
12
+ const ShortenRestGetAliases_SnippetSchema = zod.z.object({
13
+ id: zod.z.string().describe("Snippet identifier"),
14
+ parameters: zod.z.object({}).describe("Snippet parameters").nullable().optional()
15
+ }).describe("Represents a snippet configuration.");
16
+ const ShortenRestGetAliases_DestinationSchema = zod.z.object({
17
+ os: zod.z.string().describe("Target operating system").nullable().optional(),
18
+ url: zod.z.string().describe("The destination URL"),
19
+ country: zod.z.string().describe("Target country for geo-targeting (ISO code)").nullable().optional()
20
+ }).describe("Represents a destination URL with optional geo-targeting.");
21
+ const ShortenRestGetAliases_AliasSchema = zod.z.object({
22
+ name: zod.z.string().describe("The alias name/identifier (e.g., 'aBcDe012')"),
23
+ metatags: zod.z.array(ShortenRestGetAliases_MetatagSchema).describe("List of metatags for the alias").nullable().optional(),
24
+ snippets: zod.z.array(ShortenRestGetAliases_SnippetSchema).describe("List of snippets associated with the alias").nullable().optional(),
25
+ createdAt: zod.z.number().int().describe("Timestamp when the alias was created (Unix milliseconds)"),
26
+ updatedAt: zod.z.number().int().describe("Timestamp when the alias was last updated (Unix milliseconds)").nullable().optional(),
27
+ domainName: zod.z.string().describe("The domain name for the short URL").nullable().optional(),
28
+ destinations: zod.z.array(ShortenRestGetAliases_DestinationSchema).describe("List of destination URLs with optional geo-targeting").nullable().optional()
29
+ }).describe("Represents a single shortened URL alias as returned by the Shorten.REST API.");
30
+ const ShortenRestGetAliasesOutput = zod.z.object({
31
+ aliases: zod.z.array(ShortenRestGetAliases_AliasSchema).describe("List of alias objects (empty if no aliases exist)").nullable().optional(),
32
+ next_cursor: zod.z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
33
+ }).describe("Response model for retrieving URL aliases.");
34
+ const shortenRestGetAliases = require_action.action("SHORTEN_REST_GET_ALIASES", {
35
+ slug: "shorten_rest-get-aliases",
36
+ name: "Get Aliases",
37
+ description: "Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).",
38
+ input: ShortenRestGetAliasesInput,
39
+ output: ShortenRestGetAliasesOutput
40
+ });
41
+ //#endregion
42
+ exports.shortenRestGetAliases = shortenRestGetAliases;
43
+
44
+ //# sourceMappingURL=get-aliases.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-aliases.cjs","names":["z","action"],"sources":["../../src/actions/get-aliases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetAliasesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of aliases to return per page (must be ≥ 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of aliases\").optional(),\n}).describe(\"Query parameters for retrieving aliases with optional pagination.\");\nconst ShortenRestGetAliases_MetatagSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the metatag\"),\n content: z.string().describe(\"Content of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").nullable().optional(),\n}).describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\"),\n metatags: z.array(ShortenRestGetAliases_MetatagSchema).describe(\"List of metatags for the alias\").nullable().optional(),\n snippets: z.array(ShortenRestGetAliases_SnippetSchema).describe(\"List of snippets associated with the alias\").nullable().optional(),\n createdAt: z.number().int().describe(\"Timestamp when the alias was created (Unix milliseconds)\"),\n updatedAt: z.number().int().describe(\"Timestamp when the alias was last updated (Unix milliseconds)\").nullable().optional(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n destinations: z.array(ShortenRestGetAliases_DestinationSchema).describe(\"List of destination URLs with optional geo-targeting\").nullable().optional(),\n}).describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput: z.ZodTypeAny = z.object({\n aliases: z.array(ShortenRestGetAliases_AliasSchema).describe(\"List of alias objects (empty if no aliases exist)\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases = action(\"SHORTEN_REST_GET_ALIASES\", {\n slug: \"shorten_rest-get-aliases\",\n name: \"Get Aliases\",\n description: \"Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).\",\n input: ShortenRestGetAliasesInput,\n output: ShortenRestGetAliasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACvD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,UAAUA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,UAAUA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-aliases.d.ts
4
+ declare const ShortenRestGetAliasesInput: z.ZodTypeAny;
5
+ declare const ShortenRestGetAliasesOutput: z.ZodTypeAny;
6
+ declare const shortenRestGetAliases: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestGetAliases };
9
+ //# sourceMappingURL=get-aliases.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-aliases.d.cts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGqC;AAAA,cAuBnE,2BAAA,EAA6B,CAAA,CAAE,UAGa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-aliases.d.ts
4
+ declare const ShortenRestGetAliasesInput: z.ZodTypeAny;
5
+ declare const ShortenRestGetAliasesOutput: z.ZodTypeAny;
6
+ declare const shortenRestGetAliases: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestGetAliases };
9
+ //# sourceMappingURL=get-aliases.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-aliases.d.mts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGqC;AAAA,cAuBnE,2BAAA,EAA6B,CAAA,CAAE,UAGa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,43 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-aliases.ts
4
+ const ShortenRestGetAliasesInput = z.object({
5
+ limit: z.number().int().describe("Maximum number of aliases to return per page (must be ≥ 1)").optional(),
6
+ cursor: z.string().describe("Cursor token for pagination to fetch the next set of aliases").optional()
7
+ }).describe("Query parameters for retrieving aliases with optional pagination.");
8
+ const ShortenRestGetAliases_MetatagSchema = z.object({
9
+ name: z.string().describe("Name of the metatag"),
10
+ content: z.string().describe("Content of the metatag")
11
+ }).describe("Represents a metatag for the alias.");
12
+ const ShortenRestGetAliases_SnippetSchema = z.object({
13
+ id: z.string().describe("Snippet identifier"),
14
+ parameters: z.object({}).describe("Snippet parameters").nullable().optional()
15
+ }).describe("Represents a snippet configuration.");
16
+ const ShortenRestGetAliases_DestinationSchema = z.object({
17
+ os: z.string().describe("Target operating system").nullable().optional(),
18
+ url: z.string().describe("The destination URL"),
19
+ country: z.string().describe("Target country for geo-targeting (ISO code)").nullable().optional()
20
+ }).describe("Represents a destination URL with optional geo-targeting.");
21
+ const ShortenRestGetAliases_AliasSchema = z.object({
22
+ name: z.string().describe("The alias name/identifier (e.g., 'aBcDe012')"),
23
+ metatags: z.array(ShortenRestGetAliases_MetatagSchema).describe("List of metatags for the alias").nullable().optional(),
24
+ snippets: z.array(ShortenRestGetAliases_SnippetSchema).describe("List of snippets associated with the alias").nullable().optional(),
25
+ createdAt: z.number().int().describe("Timestamp when the alias was created (Unix milliseconds)"),
26
+ updatedAt: z.number().int().describe("Timestamp when the alias was last updated (Unix milliseconds)").nullable().optional(),
27
+ domainName: z.string().describe("The domain name for the short URL").nullable().optional(),
28
+ destinations: z.array(ShortenRestGetAliases_DestinationSchema).describe("List of destination URLs with optional geo-targeting").nullable().optional()
29
+ }).describe("Represents a single shortened URL alias as returned by the Shorten.REST API.");
30
+ const shortenRestGetAliases = action("SHORTEN_REST_GET_ALIASES", {
31
+ slug: "shorten_rest-get-aliases",
32
+ name: "Get Aliases",
33
+ description: "Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).",
34
+ input: ShortenRestGetAliasesInput,
35
+ output: z.object({
36
+ aliases: z.array(ShortenRestGetAliases_AliasSchema).describe("List of alias objects (empty if no aliases exist)").nullable().optional(),
37
+ next_cursor: z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
38
+ }).describe("Response model for retrieving URL aliases.")
39
+ });
40
+ //#endregion
41
+ export { shortenRestGetAliases };
42
+
43
+ //# sourceMappingURL=get-aliases.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-aliases.mjs","names":[],"sources":["../../src/actions/get-aliases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetAliasesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of aliases to return per page (must be ≥ 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of aliases\").optional(),\n}).describe(\"Query parameters for retrieving aliases with optional pagination.\");\nconst ShortenRestGetAliases_MetatagSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the metatag\"),\n content: z.string().describe(\"Content of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").nullable().optional(),\n}).describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\"),\n metatags: z.array(ShortenRestGetAliases_MetatagSchema).describe(\"List of metatags for the alias\").nullable().optional(),\n snippets: z.array(ShortenRestGetAliases_SnippetSchema).describe(\"List of snippets associated with the alias\").nullable().optional(),\n createdAt: z.number().int().describe(\"Timestamp when the alias was created (Unix milliseconds)\"),\n updatedAt: z.number().int().describe(\"Timestamp when the alias was last updated (Unix milliseconds)\").nullable().optional(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n destinations: z.array(ShortenRestGetAliases_DestinationSchema).describe(\"List of destination URLs with optional geo-targeting\").nullable().optional(),\n}).describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput: z.ZodTypeAny = z.object({\n aliases: z.array(ShortenRestGetAliases_AliasSchema).describe(\"List of alias objects (empty if no aliases exist)\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases = action(\"SHORTEN_REST_GET_ALIASES\", {\n slug: \"shorten_rest-get-aliases\",\n name: \"Get Aliases\",\n description: \"Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).\",\n input: ShortenRestGetAliasesInput,\n output: ShortenRestGetAliasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACvD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,oCAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAM1F,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-clicks.ts
4
+ const ShortenRestGetClicksInput = zod.z.object({
5
+ alias: zod.z.string().describe("The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.").optional(),
6
+ limit: zod.z.number().int().describe("Maximum number of click records to return (must be >= 1)").optional(),
7
+ cursor: zod.z.string().describe("Cursor token for pagination to fetch the next set of clicks").optional()
8
+ }).describe("Request parameters for retrieving click data for shortened URLs.");
9
+ const ShortenRestGetClicks_ClickRecordSchema = zod.z.object({
10
+ os: zod.z.string().describe("Operating system of the visitor").nullable().optional(),
11
+ alias: zod.z.string().describe("The alias that was clicked").nullable().optional(),
12
+ country: zod.z.string().describe("Country code of the visitor").nullable().optional(),
13
+ referrer: zod.z.string().describe("Referrer URL if available").nullable().optional(),
14
+ timestamp: zod.z.string().describe("Timestamp when the click occurred").nullable().optional()
15
+ }).describe("Represents a single click event record.");
16
+ const ShortenRestGetClicksOutput = zod.z.object({
17
+ clicks: zod.z.array(ShortenRestGetClicks_ClickRecordSchema).describe("List of click records. Each record contains details about a click event.").nullable().optional(),
18
+ next_cursor: zod.z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
19
+ }).describe("Response schema for click data of shortened URLs.");
20
+ const shortenRestGetClicks = require_action.action("SHORTEN_REST_GET_CLICKS", {
21
+ slug: "shorten_rest-get-clicks",
22
+ name: "Get click data for aliases",
23
+ description: "Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.",
24
+ input: ShortenRestGetClicksInput,
25
+ output: ShortenRestGetClicksOutput
26
+ });
27
+ //#endregion
28
+ exports.shortenRestGetClicks = shortenRestGetClicks;
29
+
30
+ //# sourceMappingURL=get-clicks.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-clicks.cjs","names":["z","action"],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetClicksInput: z.ZodTypeAny = z.object({\n alias: z.string().describe(\"The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.\").optional(),\n limit: z.number().int().describe(\"Maximum number of click records to return (must be >= 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of clicks\").optional(),\n}).describe(\"Request parameters for retrieving click data for shortened URLs.\");\nconst ShortenRestGetClicks_ClickRecordSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system of the visitor\").nullable().optional(),\n alias: z.string().describe(\"The alias that was clicked\").nullable().optional(),\n country: z.string().describe(\"Country code of the visitor\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL if available\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the click occurred\").nullable().optional(),\n}).describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput: z.ZodTypeAny = z.object({\n clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe(\"List of click records. Each record contains details about a click event.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,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-clicks.d.ts
4
+ declare const ShortenRestGetClicksInput: z.ZodTypeAny;
5
+ declare const ShortenRestGetClicksOutput: z.ZodTypeAny;
6
+ declare const shortenRestGetClicks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestGetClicks };
9
+ //# sourceMappingURL=get-clicks.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-clicks.d.cts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIqC;AAAA,cAQlE,0BAAA,EAA4B,CAAA,CAAE,UAGqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-clicks.d.ts
4
+ declare const ShortenRestGetClicksInput: z.ZodTypeAny;
5
+ declare const ShortenRestGetClicksOutput: z.ZodTypeAny;
6
+ declare const shortenRestGetClicks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestGetClicks };
9
+ //# sourceMappingURL=get-clicks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-clicks.d.mts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIqC;AAAA,cAQlE,0BAAA,EAA4B,CAAA,CAAE,UAGqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-clicks.ts
4
+ const ShortenRestGetClicksInput = z.object({
5
+ alias: z.string().describe("The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.").optional(),
6
+ limit: z.number().int().describe("Maximum number of click records to return (must be >= 1)").optional(),
7
+ cursor: z.string().describe("Cursor token for pagination to fetch the next set of clicks").optional()
8
+ }).describe("Request parameters for retrieving click data for shortened URLs.");
9
+ const ShortenRestGetClicks_ClickRecordSchema = z.object({
10
+ os: z.string().describe("Operating system of the visitor").nullable().optional(),
11
+ alias: z.string().describe("The alias that was clicked").nullable().optional(),
12
+ country: z.string().describe("Country code of the visitor").nullable().optional(),
13
+ referrer: z.string().describe("Referrer URL if available").nullable().optional(),
14
+ timestamp: z.string().describe("Timestamp when the click occurred").nullable().optional()
15
+ }).describe("Represents a single click event record.");
16
+ const shortenRestGetClicks = action("SHORTEN_REST_GET_CLICKS", {
17
+ slug: "shorten_rest-get-clicks",
18
+ name: "Get click data for aliases",
19
+ description: "Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.",
20
+ input: ShortenRestGetClicksInput,
21
+ output: z.object({
22
+ clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe("List of click records. Each record contains details about a click event.").nullable().optional(),
23
+ next_cursor: z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
24
+ }).describe("Response schema for click data of shortened URLs.")
25
+ });
26
+ //#endregion
27
+ export { shortenRestGetClicks };
28
+
29
+ //# sourceMappingURL=get-clicks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-clicks.mjs","names":[],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetClicksInput: z.ZodTypeAny = z.object({\n alias: z.string().describe(\"The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.\").optional(),\n limit: z.number().int().describe(\"Maximum number of click records to return (must be >= 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of clicks\").optional(),\n}).describe(\"Request parameters for retrieving click data for shortened URLs.\");\nconst ShortenRestGetClicks_ClickRecordSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system of the visitor\").nullable().optional(),\n alias: z.string().describe(\"The alias that was clicked\").nullable().optional(),\n country: z.string().describe(\"Country code of the visitor\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL if available\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the click occurred\").nullable().optional(),\n}).describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput: z.ZodTypeAny = z.object({\n clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe(\"List of click records. Each record contains details about a click event.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAMrD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_alias = require("./create-alias.cjs");
3
+ const require_delete_alias = require("./delete-alias.cjs");
4
+ const require_get_aliases = require("./get-aliases.cjs");
5
+ const require_get_clicks = require("./get-clicks.cjs");
6
+ const require_list_aliases_by_domain = require("./list-aliases-by-domain.cjs");
7
+ const require_update_alias = require("./update-alias.cjs");
8
+ exports.shortenRestCreateAlias = require_create_alias.shortenRestCreateAlias;
9
+ exports.shortenRestDeleteAlias = require_delete_alias.shortenRestDeleteAlias;
10
+ exports.shortenRestGetAliases = require_get_aliases.shortenRestGetAliases;
11
+ exports.shortenRestGetClicks = require_get_clicks.shortenRestGetClicks;
12
+ exports.shortenRestListAliasesByDomain = require_list_aliases_by_domain.shortenRestListAliasesByDomain;
13
+ exports.shortenRestUpdateAlias = require_update_alias.shortenRestUpdateAlias;
@@ -0,0 +1,7 @@
1
+ import { shortenRestCreateAlias } from "./create-alias.cjs";
2
+ import { shortenRestDeleteAlias } from "./delete-alias.cjs";
3
+ import { shortenRestGetAliases } from "./get-aliases.cjs";
4
+ import { shortenRestGetClicks } from "./get-clicks.cjs";
5
+ import { shortenRestListAliasesByDomain } from "./list-aliases-by-domain.cjs";
6
+ import { shortenRestUpdateAlias } from "./update-alias.cjs";
7
+ export { shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
@@ -0,0 +1,7 @@
1
+ import { shortenRestCreateAlias } from "./create-alias.mjs";
2
+ import { shortenRestDeleteAlias } from "./delete-alias.mjs";
3
+ import { shortenRestGetAliases } from "./get-aliases.mjs";
4
+ import { shortenRestGetClicks } from "./get-clicks.mjs";
5
+ import { shortenRestListAliasesByDomain } from "./list-aliases-by-domain.mjs";
6
+ import { shortenRestUpdateAlias } from "./update-alias.mjs";
7
+ export { shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
@@ -0,0 +1,7 @@
1
+ import { shortenRestCreateAlias } from "./create-alias.mjs";
2
+ import { shortenRestDeleteAlias } from "./delete-alias.mjs";
3
+ import { shortenRestGetAliases } from "./get-aliases.mjs";
4
+ import { shortenRestGetClicks } from "./get-clicks.mjs";
5
+ import { shortenRestListAliasesByDomain } from "./list-aliases-by-domain.mjs";
6
+ import { shortenRestUpdateAlias } from "./update-alias.mjs";
7
+ export { shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
@@ -0,0 +1,23 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-aliases-by-domain.ts
4
+ const ShortenRestListAliasesByDomainInput = zod.z.object({
5
+ limit: zod.z.number().int().describe("Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.").optional(),
6
+ domain_name: zod.z.string().describe("The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.").optional(),
7
+ continue_from: zod.z.string().describe("An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.").optional()
8
+ }).describe("Request parameters for retrieving alias names by domain with pagination support.");
9
+ const ShortenRestListAliasesByDomainOutput = zod.z.object({
10
+ aliases: zod.z.array(zod.z.string()).describe("List of alias names (short codes) associated with the domain").nullable().optional(),
11
+ last_id: zod.z.string().describe("ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.").nullable().optional()
12
+ }).describe("Response schema containing a list of alias names and pagination cursor.");
13
+ const shortenRestListAliasesByDomain = require_action.action("SHORTEN_REST_LIST_ALIASES_BY_DOMAIN", {
14
+ slug: "shorten_rest-list-aliases-by-domain",
15
+ name: "List aliases by domain",
16
+ description: "Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.",
17
+ input: ShortenRestListAliasesByDomainInput,
18
+ output: ShortenRestListAliasesByDomainOutput
19
+ });
20
+ //#endregion
21
+ exports.shortenRestListAliasesByDomain = shortenRestListAliasesByDomain;
22
+
23
+ //# sourceMappingURL=list-aliases-by-domain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-aliases-by-domain.cjs","names":["z","action"],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestListAliasesByDomainInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.\").optional(),\n domain_name: z.string().describe(\"The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.\").optional(),\n continue_from: z.string().describe(\"An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.\").optional(),\n}).describe(\"Request parameters for retrieving alias names by domain with pagination support.\");\nexport const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny = z.object({\n aliases: z.array(z.string()).describe(\"List of alias names (short codes) associated with the domain\").nullable().optional(),\n last_id: z.string().describe(\"ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.\").nullable().optional(),\n}).describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACpK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,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/list-aliases-by-domain.d.ts
4
+ declare const ShortenRestListAliasesByDomainInput: z.ZodTypeAny;
5
+ declare const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny;
6
+ declare const shortenRestListAliasesByDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestListAliasesByDomain };
9
+ //# sourceMappingURL=list-aliases-by-domain.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-aliases-by-domain.d.cts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAI2C;AAAA,cAClF,oCAAA,EAAsC,CAAA,CAAE,UAGiC;AAAA,cAEzE,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-aliases-by-domain.d.ts
4
+ declare const ShortenRestListAliasesByDomainInput: z.ZodTypeAny;
5
+ declare const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny;
6
+ declare const shortenRestListAliasesByDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestListAliasesByDomain };
9
+ //# sourceMappingURL=list-aliases-by-domain.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-aliases-by-domain.d.mts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAI2C;AAAA,cAClF,oCAAA,EAAsC,CAAA,CAAE,UAGiC;AAAA,cAEzE,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortenRestListAliasesByDomain = action("SHORTEN_REST_LIST_ALIASES_BY_DOMAIN", {
4
+ slug: "shorten_rest-list-aliases-by-domain",
5
+ name: "List aliases by domain",
6
+ description: "Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.",
7
+ input: z.object({
8
+ limit: z.number().int().describe("Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.").optional(),
9
+ domain_name: z.string().describe("The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.").optional(),
10
+ continue_from: z.string().describe("An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.").optional()
11
+ }).describe("Request parameters for retrieving alias names by domain with pagination support."),
12
+ output: z.object({
13
+ aliases: z.array(z.string()).describe("List of alias names (short codes) associated with the domain").nullable().optional(),
14
+ last_id: z.string().describe("ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.").nullable().optional()
15
+ }).describe("Response schema containing a list of alias names and pagination cursor.")
16
+ });
17
+ //#endregion
18
+ export { shortenRestListAliasesByDomain };
19
+
20
+ //# sourceMappingURL=list-aliases-by-domain.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-aliases-by-domain.mjs","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestListAliasesByDomainInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.\").optional(),\n domain_name: z.string().describe(\"The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.\").optional(),\n continue_from: z.string().describe(\"An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.\").optional(),\n}).describe(\"Request parameters for retrieving alias names by domain with pagination support.\");\nexport const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny = z.object({\n aliases: z.array(z.string()).describe(\"List of alias names (short codes) associated with the domain\").nullable().optional(),\n last_id: z.string().describe(\"ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.\").nullable().optional(),\n}).describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;AAcA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+D,EAAE,OAAO;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EACxI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EACpK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAClK,CAAC,CAAC,CAAC,SAAS,kFAUH;CACP,QAVgE,EAAE,OAAO;EACzE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,yEAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-alias.ts
4
+ const ShortenRestUpdateAliasInput = zod.z.object({
5
+ metatags: zod.z.array(zod.z.object({
6
+ name: zod.z.string().describe("Name of the metatag (e.g., 'og:title', 'description')"),
7
+ content: zod.z.string().describe("Content/value of the metatag")
8
+ }).describe("Represents a metatag for the alias.")).describe("List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
9
+ snippets: zod.z.array(zod.z.object({
10
+ id: zod.z.string().describe("Snippet identifier"),
11
+ parameters: zod.z.object({}).describe("Snippet parameters as key-value pairs").optional()
12
+ }).describe("Represents a snippet configuration.")).describe("List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
13
+ aliasName: zod.z.string().describe("The alias name to update (without leading slash, e.g., 'aBcDe012')"),
14
+ domainName: zod.z.string().default("short.fyi").describe("Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.").optional(),
15
+ destinations: zod.z.array(zod.z.object({
16
+ os: zod.z.string().describe("Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')").optional(),
17
+ url: zod.z.string().describe("The destination URL where the alias redirects to"),
18
+ country: zod.z.string().describe("Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')").optional()
19
+ }).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.").optional()
20
+ }).describe("Request parameters for updating a URL alias.\nQuery parameters identify the alias, body contains the updates.");
21
+ const ShortenRestUpdateAliasOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates successful update operation").nullable().optional() }).describe("Response model for updating an alias. Returns empty object on success.");
22
+ const shortenRestUpdateAlias = require_action.action("SHORTEN_REST_UPDATE_ALIAS", {
23
+ slug: "shorten_rest-update-alias",
24
+ name: "Update Alias",
25
+ description: "Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.",
26
+ input: ShortenRestUpdateAliasInput,
27
+ output: ShortenRestUpdateAliasOutput
28
+ });
29
+ //#endregion
30
+ exports.shortenRestUpdateAlias = shortenRestUpdateAlias;
31
+
32
+ //# sourceMappingURL=update-alias.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-alias.cjs","names":["z","action"],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestUpdateAliasInput: z.ZodTypeAny = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag (e.g., 'og:title', 'description')\"),\n content: z.string().describe(\"Content/value of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC7D,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACzN,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACzN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpK,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACpH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;AAChR,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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/update-alias.d.ts
4
+ declare const ShortenRestUpdateAliasInput: z.ZodTypeAny;
5
+ declare const ShortenRestUpdateAliasOutput: z.ZodTypeAny;
6
+ declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestUpdateAlias };
9
+ //# sourceMappingURL=update-alias.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-alias.d.cts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAgBgF;AAAA,cAC/G,4BAAA,EAA8B,CAAA,CAAE,UAEwC;AAAA,cAExE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-alias.d.ts
4
+ declare const ShortenRestUpdateAliasInput: z.ZodTypeAny;
5
+ declare const ShortenRestUpdateAliasOutput: z.ZodTypeAny;
6
+ declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortenRestUpdateAlias };
9
+ //# sourceMappingURL=update-alias.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-alias.d.mts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAgBgF;AAAA,cAC/G,4BAAA,EAA8B,CAAA,CAAE,UAEwC;AAAA,cAExE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortenRestUpdateAlias = action("SHORTEN_REST_UPDATE_ALIAS", {
4
+ slug: "shorten_rest-update-alias",
5
+ name: "Update Alias",
6
+ description: "Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.",
7
+ input: z.object({
8
+ metatags: z.array(z.object({
9
+ name: z.string().describe("Name of the metatag (e.g., 'og:title', 'description')"),
10
+ content: z.string().describe("Content/value of the metatag")
11
+ }).describe("Represents a metatag for the alias.")).describe("List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
12
+ snippets: z.array(z.object({
13
+ id: z.string().describe("Snippet identifier"),
14
+ parameters: z.object({}).describe("Snippet parameters as key-value pairs").optional()
15
+ }).describe("Represents a snippet configuration.")).describe("List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
16
+ aliasName: z.string().describe("The alias name to update (without leading slash, e.g., 'aBcDe012')"),
17
+ domainName: z.string().default("short.fyi").describe("Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.").optional(),
18
+ destinations: z.array(z.object({
19
+ os: z.string().describe("Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')").optional(),
20
+ url: z.string().describe("The destination URL where the alias redirects to"),
21
+ country: z.string().describe("Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')").optional()
22
+ }).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.").optional()
23
+ }).describe("Request parameters for updating a URL alias.\nQuery parameters identify the alias, body contains the updates."),
24
+ output: z.object({ success: z.boolean().default(true).describe("Indicates successful update operation").nullable().optional() }).describe("Response model for updating an alias. Returns empty object on success.")
25
+ });
26
+ //#endregion
27
+ export { shortenRestUpdateAlias };
28
+
29
+ //# sourceMappingURL=update-alias.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-alias.mjs","names":[],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestUpdateAliasInput: z.ZodTypeAny = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag (e.g., 'og:title', 'description')\"),\n content: z.string().describe(\"Content/value of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;AAyBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBuD,EAAE,OAAO;EAChE,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;GACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC7D,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACzN,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACtF,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACzN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACpK,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;GACpH,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;GAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAChR,CAAC,CAAC,CAAC,SAAS,+GASH;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const shortenRest = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "shorten_rest",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.shortenRest = shortenRest;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortenRest = defineApp({\n slug: \"shorten_rest\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,eAAA,uCAAA,CAAA,CAAA,UAAA,CAAwB;CACnC,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const shortenRest: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { shortenRest };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,WAAA,6BAAW,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const shortenRest: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { shortenRest };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,WAAA,6BAAW,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const shortenRest = defineApp({
4
+ slug: "shorten_rest",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { shortenRest };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortenRest = defineApp({\n slug: \"shorten_rest\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,cAAc,UAAU;CACnC,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const shortenRestCatalog = {
4
+ "slug": "shorten_rest",
5
+ "name": "Shorten.REST",
6
+ "description": "Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.",
7
+ "category": "URL Shortener",
8
+ "logo": "https://logos.composio.dev/api/shorten_rest",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.shortenRestCatalog = shortenRestCatalog;
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 shortenRestCatalog = {\n \"slug\": \"shorten_rest\",\n \"name\": \"Shorten.REST\",\n \"description\": \"Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/shorten_rest\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,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 shortenRestCatalog: {
4
+ readonly slug: "shorten_rest";
5
+ readonly name: "Shorten.REST";
6
+ readonly description: "Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.";
7
+ readonly category: "URL Shortener";
8
+ readonly logo: "https://logos.composio.dev/api/shorten_rest";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { shortenRestCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,kBAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const shortenRestCatalog: {
4
+ readonly slug: "shorten_rest";
5
+ readonly name: "Shorten.REST";
6
+ readonly description: "Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.";
7
+ readonly category: "URL Shortener";
8
+ readonly logo: "https://logos.composio.dev/api/shorten_rest";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { shortenRestCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,kBAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const shortenRestCatalog = {
4
+ "slug": "shorten_rest",
5
+ "name": "Shorten.REST",
6
+ "description": "Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.",
7
+ "category": "URL Shortener",
8
+ "logo": "https://logos.composio.dev/api/shorten_rest",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { shortenRestCatalog };
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 shortenRestCatalog = {\n \"slug\": \"shorten_rest\",\n \"name\": \"Shorten.REST\",\n \"description\": \"Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/shorten_rest\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "shorten_rest";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeShortenRestTool(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.executeShortenRestTool = executeShortenRestTool;
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 = \"shorten_rest\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeShortenRestTool(\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,uBACpB,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"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "shorten_rest";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeShortenRestTool(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 { executeShortenRestTool };
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 = \"shorten_rest\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeShortenRestTool(\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,uBACpB,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,18 @@
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_alias = require("./actions/create-alias.cjs");
5
+ const require_delete_alias = require("./actions/delete-alias.cjs");
6
+ const require_get_aliases = require("./actions/get-aliases.cjs");
7
+ const require_get_clicks = require("./actions/get-clicks.cjs");
8
+ const require_list_aliases_by_domain = require("./actions/list-aliases-by-domain.cjs");
9
+ const require_update_alias = require("./actions/update-alias.cjs");
10
+ require("./actions/index.cjs");
11
+ exports.shortenRest = require_app.shortenRest;
12
+ exports.shortenRestCatalog = require_catalog.shortenRestCatalog;
13
+ exports.shortenRestCreateAlias = require_create_alias.shortenRestCreateAlias;
14
+ exports.shortenRestDeleteAlias = require_delete_alias.shortenRestDeleteAlias;
15
+ exports.shortenRestGetAliases = require_get_aliases.shortenRestGetAliases;
16
+ exports.shortenRestGetClicks = require_get_clicks.shortenRestGetClicks;
17
+ exports.shortenRestListAliasesByDomain = require_list_aliases_by_domain.shortenRestListAliasesByDomain;
18
+ exports.shortenRestUpdateAlias = require_update_alias.shortenRestUpdateAlias;
@@ -0,0 +1,9 @@
1
+ import { shortenRestCreateAlias } from "./actions/create-alias.cjs";
2
+ import { shortenRestDeleteAlias } from "./actions/delete-alias.cjs";
3
+ import { shortenRestGetAliases } from "./actions/get-aliases.cjs";
4
+ import { shortenRestGetClicks } from "./actions/get-clicks.cjs";
5
+ import { shortenRestListAliasesByDomain } from "./actions/list-aliases-by-domain.cjs";
6
+ import { shortenRestUpdateAlias } from "./actions/update-alias.cjs";
7
+ import { shortenRest } from "./app.cjs";
8
+ import { shortenRestCatalog } from "./catalog.cjs";
9
+ export { shortenRest, shortenRestCatalog, shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
@@ -0,0 +1,9 @@
1
+ import { shortenRestCreateAlias } from "./actions/create-alias.mjs";
2
+ import { shortenRestDeleteAlias } from "./actions/delete-alias.mjs";
3
+ import { shortenRestGetAliases } from "./actions/get-aliases.mjs";
4
+ import { shortenRestGetClicks } from "./actions/get-clicks.mjs";
5
+ import { shortenRestListAliasesByDomain } from "./actions/list-aliases-by-domain.mjs";
6
+ import { shortenRestUpdateAlias } from "./actions/update-alias.mjs";
7
+ import { shortenRest } from "./app.mjs";
8
+ import { shortenRestCatalog } from "./catalog.mjs";
9
+ export { shortenRest, shortenRestCatalog, shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
package/dist/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { shortenRest } from "./app.mjs";
2
+ import { shortenRestCatalog } from "./catalog.mjs";
3
+ import { shortenRestCreateAlias } from "./actions/create-alias.mjs";
4
+ import { shortenRestDeleteAlias } from "./actions/delete-alias.mjs";
5
+ import { shortenRestGetAliases } from "./actions/get-aliases.mjs";
6
+ import { shortenRestGetClicks } from "./actions/get-clicks.mjs";
7
+ import { shortenRestListAliasesByDomain } from "./actions/list-aliases-by-domain.mjs";
8
+ import { shortenRestUpdateAlias } from "./actions/update-alias.mjs";
9
+ import "./actions/index.mjs";
10
+ export { shortenRest, shortenRestCatalog, shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@keystrokehq/shorten_rest",
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/shorten_rest"
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
+ }