@keystrokehq/shorten_rest 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-alias.cjs +1 -0
- package/dist/actions/create-alias.cjs.map +1 -1
- package/dist/actions/create-alias.d.cts +3 -20
- package/dist/actions/create-alias.d.cts.map +1 -1
- package/dist/actions/create-alias.d.mts +3 -20
- package/dist/actions/create-alias.d.mts.map +1 -1
- package/dist/actions/create-alias.mjs +1 -0
- package/dist/actions/create-alias.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs +1 -0
- package/dist/actions/delete-alias.cjs.map +1 -1
- package/dist/actions/delete-alias.d.cts +3 -4
- package/dist/actions/delete-alias.d.cts.map +1 -1
- package/dist/actions/delete-alias.d.mts +3 -4
- package/dist/actions/delete-alias.d.mts.map +1 -1
- package/dist/actions/delete-alias.mjs +1 -0
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/get-aliases.cjs +1 -0
- package/dist/actions/get-aliases.cjs.map +1 -1
- package/dist/actions/get-aliases.d.cts +3 -4
- package/dist/actions/get-aliases.d.cts.map +1 -1
- package/dist/actions/get-aliases.d.mts +3 -4
- package/dist/actions/get-aliases.d.mts.map +1 -1
- package/dist/actions/get-aliases.mjs +1 -0
- package/dist/actions/get-aliases.mjs.map +1 -1
- package/dist/actions/get-clicks.cjs +1 -0
- package/dist/actions/get-clicks.cjs.map +1 -1
- package/dist/actions/get-clicks.d.cts +3 -5
- package/dist/actions/get-clicks.d.cts.map +1 -1
- package/dist/actions/get-clicks.d.mts +3 -5
- package/dist/actions/get-clicks.d.mts.map +1 -1
- package/dist/actions/get-clicks.mjs +1 -0
- package/dist/actions/get-clicks.mjs.map +1 -1
- package/dist/actions/list-aliases-by-domain.cjs +1 -0
- package/dist/actions/list-aliases-by-domain.cjs.map +1 -1
- package/dist/actions/list-aliases-by-domain.d.cts +3 -5
- package/dist/actions/list-aliases-by-domain.d.cts.map +1 -1
- package/dist/actions/list-aliases-by-domain.d.mts +3 -5
- package/dist/actions/list-aliases-by-domain.d.mts.map +1 -1
- package/dist/actions/list-aliases-by-domain.mjs +1 -0
- package/dist/actions/list-aliases-by-domain.mjs.map +1 -1
- package/dist/actions/update-alias.cjs +1 -0
- package/dist/actions/update-alias.cjs.map +1 -1
- package/dist/actions/update-alias.d.cts +3 -20
- package/dist/actions/update-alias.d.cts.map +1 -1
- package/dist/actions/update-alias.d.mts +3 -20
- package/dist/actions/update-alias.d.mts.map +1 -1
- package/dist/actions/update-alias.mjs +1 -0
- package/dist/actions/update-alias.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["shortenRest","executeShortenRestTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof shortenRest.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAO2D;CAC3D,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"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { 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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof shortenRest.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAO2D;CAC3D,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"}
|
|
@@ -1 +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.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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters\").optional(),\n}).passthrough().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}).passthrough().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.object({\n shortUrl: z.string().describe(\"The complete short URL\").nullable(),\n aliasName: z.string().describe(\"The generated or specified alias name\").nullable(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-alias.cjs","names":["z","action"],"sources":["../../src/actions/create-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestCreateAliasInput = 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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters\").optional(),\n}).passthrough().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}).passthrough().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.object({\n shortUrl: z.string().describe(\"The complete short URL\").nullable(),\n aliasName: z.string().describe(\"The generated or specified alias name\").nullable(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new alias.\");\n\nexport const shortenRestCreateAlias: AppAction<\n typeof ShortenRestCreateAliasInput,\n typeof ShortenRestCreateAliasOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC5J,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC7K,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,YAAY,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,4FAA4F;AAC7L,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-alias.d.ts
|
|
@@ -23,26 +25,7 @@ declare const ShortenRestCreateAliasOutput: z.ZodObject<{
|
|
|
23
25
|
aliasName: z.ZodNullable<z.ZodString>;
|
|
24
26
|
domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const shortenRestCreateAlias:
|
|
27
|
-
destinations: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
url: string;
|
|
30
|
-
os?: string | undefined;
|
|
31
|
-
country?: string | undefined;
|
|
32
|
-
}[];
|
|
33
|
-
metatags?: {
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
name: string;
|
|
36
|
-
content: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
snippets?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
id: string;
|
|
41
|
-
parameters?: Record<string, unknown> | undefined;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
aliasName?: string | undefined;
|
|
44
|
-
domainName?: string | undefined;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const shortenRestCreateAlias: AppAction<typeof ShortenRestCreateAliasInput, typeof ShortenRestCreateAliasOutput, typeof shortenRest.credential>;
|
|
46
29
|
//#endregion
|
|
47
30
|
export { shortenRestCreateAlias };
|
|
48
31
|
//# sourceMappingURL=create-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-alias.d.cts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-alias.d.cts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-alias.d.ts
|
|
@@ -23,26 +25,7 @@ declare const ShortenRestCreateAliasOutput: z.ZodObject<{
|
|
|
23
25
|
aliasName: z.ZodNullable<z.ZodString>;
|
|
24
26
|
domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const shortenRestCreateAlias:
|
|
27
|
-
destinations: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
url: string;
|
|
30
|
-
os?: string | undefined;
|
|
31
|
-
country?: string | undefined;
|
|
32
|
-
}[];
|
|
33
|
-
metatags?: {
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
name: string;
|
|
36
|
-
content: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
snippets?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
id: string;
|
|
41
|
-
parameters?: Record<string, unknown> | undefined;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
aliasName?: string | undefined;
|
|
44
|
-
domainName?: string | undefined;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const shortenRestCreateAlias: AppAction<typeof ShortenRestCreateAliasInput, typeof ShortenRestCreateAliasOutput, typeof shortenRest.credential>;
|
|
46
29
|
//#endregion
|
|
47
30
|
export { shortenRestCreateAlias };
|
|
48
31
|
//# sourceMappingURL=create-alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-alias.d.mts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-alias.d.mts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters\").optional(),\n}).passthrough().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}).passthrough().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.object({\n shortUrl: z.string().describe(\"The complete short URL\").nullable(),\n aliasName: z.string().describe(\"The generated or specified alias name\").nullable(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-alias.mjs","names":[],"sources":["../../src/actions/create-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestCreateAliasInput = 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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters\").optional(),\n}).passthrough().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}).passthrough().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.object({\n shortUrl: z.string().describe(\"The complete short URL\").nullable(),\n aliasName: z.string().describe(\"The generated or specified alias name\").nullable(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new alias.\");\n\nexport const shortenRestCreateAlias: AppAction<\n typeof ShortenRestCreateAliasInput,\n typeof ShortenRestCreateAliasOutput,\n typeof shortenRest.credential\n> = 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":";;;AA6BA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/ByC,EAAE,OAAO;EAClD,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,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC5J,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAC7K,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,YAAY,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,4FAA4F;CAC7L,CAAC,CAAC,CAAC,SAAS,4DAeH;CACP,QAf0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n success: z.boolean().default(true).describe(\"Indicates if the deletion was successful\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestDeleteAliasInput = 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.object({\n success: z.boolean().default(true).describe(\"Indicates if the deletion was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting an alias. The API returns an empty response on success.\");\n\nexport const shortenRestDeleteAlias: AppAction<\n typeof ShortenRestDeleteAliasInput,\n typeof ShortenRestDeleteAliasOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-alias.d.ts
|
|
@@ -8,10 +10,7 @@ declare const ShortenRestDeleteAliasInput: z.ZodObject<{
|
|
|
8
10
|
declare const ShortenRestDeleteAliasOutput: z.ZodObject<{
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const shortenRestDeleteAlias:
|
|
12
|
-
aliasName: string;
|
|
13
|
-
domainName?: string | undefined;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const shortenRestDeleteAlias: AppAction<typeof ShortenRestDeleteAliasInput, typeof ShortenRestDeleteAliasOutput, typeof shortenRest.credential>;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { shortenRestDeleteAlias };
|
|
17
16
|
//# sourceMappingURL=delete-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-alias.d.ts
|
|
@@ -8,10 +10,7 @@ declare const ShortenRestDeleteAliasInput: z.ZodObject<{
|
|
|
8
10
|
declare const ShortenRestDeleteAliasOutput: z.ZodObject<{
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const shortenRestDeleteAlias:
|
|
12
|
-
aliasName: string;
|
|
13
|
-
domainName?: string | undefined;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const shortenRestDeleteAlias: AppAction<typeof ShortenRestDeleteAliasInput, typeof ShortenRestDeleteAliasOutput, typeof shortenRest.credential>;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { shortenRestDeleteAlias };
|
|
17
16
|
//# sourceMappingURL=delete-alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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.object({\n success: z.boolean().default(true).describe(\"Indicates if the deletion was successful\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"delete-alias.mjs","names":[],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestDeleteAliasInput = 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.object({\n success: z.boolean().default(true).describe(\"Indicates if the deletion was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting an alias. The API returns an empty response on success.\");\n\nexport const shortenRestDeleteAlias: AppAction<\n typeof ShortenRestDeleteAliasInput,\n typeof ShortenRestDeleteAliasOutput,\n typeof shortenRest.credential\n> = 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":";;;AAcA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC/H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,iDAaH;CACP,QAb0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n name: z.string().describe(\"Name of the metatag\").nullable(),\n content: z.string().describe(\"Content of the metatag\").nullable(),\n}).passthrough().describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters\").nullable().optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\").nullable(),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\").nullable(),\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)\").nullable(),\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}).passthrough().describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput = 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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-aliases.cjs","names":["z","action"],"sources":["../../src/actions/get-aliases.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestGetAliasesInput = 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.object({\n name: z.string().describe(\"Name of the metatag\").nullable(),\n content: z.string().describe(\"Content of the metatag\").nullable(),\n}).passthrough().describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters\").nullable().optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\").nullable(),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\").nullable(),\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)\").nullable(),\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}).passthrough().describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput = 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}).passthrough().describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases: AppAction<\n typeof ShortenRestGetAliasesInput,\n typeof ShortenRestGetAliasesOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,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,CAAC,CAAC,SAAS;CAC1G,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,YAAY,CAAC,CAAC,SAAS,8EAA8E;AACxG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-aliases.d.ts
|
|
@@ -27,10 +29,7 @@ declare const ShortenRestGetAliasesOutput: z.ZodObject<{
|
|
|
27
29
|
}, z.core.$loose>>>>;
|
|
28
30
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const shortenRestGetAliases:
|
|
31
|
-
limit?: number | undefined;
|
|
32
|
-
cursor?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const shortenRestGetAliases: AppAction<typeof ShortenRestGetAliasesInput, typeof ShortenRestGetAliasesOutput, typeof shortenRest.credential>;
|
|
34
33
|
//#endregion
|
|
35
34
|
export { shortenRestGetAliases };
|
|
36
35
|
//# sourceMappingURL=get-aliases.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-aliases.d.cts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-aliases.d.cts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-aliases.d.ts
|
|
@@ -27,10 +29,7 @@ declare const ShortenRestGetAliasesOutput: z.ZodObject<{
|
|
|
27
29
|
}, z.core.$loose>>>>;
|
|
28
30
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const shortenRestGetAliases:
|
|
31
|
-
limit?: number | undefined;
|
|
32
|
-
cursor?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const shortenRestGetAliases: AppAction<typeof ShortenRestGetAliasesInput, typeof ShortenRestGetAliasesOutput, typeof shortenRest.credential>;
|
|
34
33
|
//#endregion
|
|
35
34
|
export { shortenRestGetAliases };
|
|
36
35
|
//# sourceMappingURL=get-aliases.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-aliases.d.mts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-aliases.d.mts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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.object({\n name: z.string().describe(\"Name of the metatag\").nullable(),\n content: z.string().describe(\"Content of the metatag\").nullable(),\n}).passthrough().describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters\").nullable().optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\").nullable(),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\").nullable(),\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)\").nullable(),\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}).passthrough().describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput = 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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-aliases.mjs","names":[],"sources":["../../src/actions/get-aliases.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestGetAliasesInput = 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.object({\n name: z.string().describe(\"Name of the metatag\").nullable(),\n content: z.string().describe(\"Content of the metatag\").nullable(),\n}).passthrough().describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters\").nullable().optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\").nullable(),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\").nullable(),\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)\").nullable(),\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}).passthrough().describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput = 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}).passthrough().describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases: AppAction<\n typeof ShortenRestGetAliasesInput,\n typeof ShortenRestGetAliasesOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,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,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,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,CAAC,CAAC,SAAS;CAC1G,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,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAMxG,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,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,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.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}).passthrough().describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput = 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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-clicks.cjs","names":["z","action"],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestGetClicksInput = 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.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}).passthrough().describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput = 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}).passthrough().describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks: AppAction<\n typeof ShortenRestGetClicksInput,\n typeof ShortenRestGetClicksOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,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,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-clicks.d.ts
|
|
@@ -16,11 +18,7 @@ declare const ShortenRestGetClicksOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>>>;
|
|
17
19
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const shortenRestGetClicks:
|
|
20
|
-
alias?: string | undefined;
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const shortenRestGetClicks: AppAction<typeof ShortenRestGetClicksInput, typeof ShortenRestGetClicksOutput, typeof shortenRest.credential>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { shortenRestGetClicks };
|
|
26
24
|
//# sourceMappingURL=get-clicks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-clicks.d.cts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-clicks.d.cts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-clicks.d.ts
|
|
@@ -16,11 +18,7 @@ declare const ShortenRestGetClicksOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>>>;
|
|
17
19
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const shortenRestGetClicks:
|
|
20
|
-
alias?: string | undefined;
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const shortenRestGetClicks: AppAction<typeof ShortenRestGetClicksInput, typeof ShortenRestGetClicksOutput, typeof shortenRest.credential>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { shortenRestGetClicks };
|
|
26
24
|
//# sourceMappingURL=get-clicks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-clicks.d.mts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-clicks.d.mts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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.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}).passthrough().describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput = 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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-clicks.mjs","names":[],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestGetClicksInput = 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.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}).passthrough().describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput = 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}).passthrough().describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks: AppAction<\n typeof ShortenRestGetClicksInput,\n typeof ShortenRestGetClicksOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,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,yCAAyC,EAAE,OAAO;CACtD,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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwC,EAAE,OAAO;EACjD,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,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-aliases-by-domain.cjs","names":["z","action"],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestListAliasesByDomainInput = 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.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}).passthrough().describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain: AppAction<\n typeof ShortenRestListAliasesByDomainInput,\n typeof ShortenRestListAliasesByDomainOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,iCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-aliases-by-domain.d.ts
|
|
@@ -10,11 +12,7 @@ declare const ShortenRestListAliasesByDomainOutput: z.ZodObject<{
|
|
|
10
12
|
aliases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
13
|
last_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const shortenRestListAliasesByDomain:
|
|
14
|
-
limit?: number | undefined;
|
|
15
|
-
domain_name?: string | undefined;
|
|
16
|
-
continue_from?: string | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const shortenRestListAliasesByDomain: AppAction<typeof ShortenRestListAliasesByDomainInput, typeof ShortenRestListAliasesByDomainOutput, typeof shortenRest.credential>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { shortenRestListAliasesByDomain };
|
|
20
18
|
//# sourceMappingURL=list-aliases-by-domain.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-aliases-by-domain.d.cts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-aliases-by-domain.d.cts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-aliases-by-domain.d.ts
|
|
@@ -10,11 +12,7 @@ declare const ShortenRestListAliasesByDomainOutput: z.ZodObject<{
|
|
|
10
12
|
aliases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
13
|
last_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const shortenRestListAliasesByDomain:
|
|
14
|
-
limit?: number | undefined;
|
|
15
|
-
domain_name?: string | undefined;
|
|
16
|
-
continue_from?: string | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const shortenRestListAliasesByDomain: AppAction<typeof ShortenRestListAliasesByDomainInput, typeof ShortenRestListAliasesByDomainOutput, typeof shortenRest.credential>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { shortenRestListAliasesByDomain };
|
|
20
18
|
//# sourceMappingURL=list-aliases-by-domain.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-aliases-by-domain.d.mts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-aliases-by-domain.d.mts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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.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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-aliases-by-domain.mjs","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestListAliasesByDomainInput = 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.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}).passthrough().describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain: AppAction<\n typeof ShortenRestListAliasesByDomainInput,\n typeof ShortenRestListAliasesByDomainOutput,\n typeof shortenRest.credential\n> = 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":";;;AAgBA,MAAa,iCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBiD,EAAE,OAAO;EAC1D,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,kFAcH;CACP,QAdkD,EAAE,OAAO;EAC3D,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,YAAY,CAAC,CAAC,SAAS,yEAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).passthrough().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}).passthrough().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.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"update-alias.cjs","names":["z","action"],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestUpdateAliasInput = 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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).passthrough().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}).passthrough().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.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias: AppAction<\n typeof ShortenRestUpdateAliasInput,\n typeof ShortenRestUpdateAliasOutput,\n typeof shortenRest.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACvO,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACvO,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,YAAY,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;AAC9R,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-alias.d.ts
|
|
@@ -21,26 +23,7 @@ declare const ShortenRestUpdateAliasInput: z.ZodObject<{
|
|
|
21
23
|
declare const ShortenRestUpdateAliasOutput: z.ZodObject<{
|
|
22
24
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const shortenRestUpdateAlias:
|
|
25
|
-
aliasName: string;
|
|
26
|
-
metatags?: {
|
|
27
|
-
[x: string]: unknown;
|
|
28
|
-
name: string;
|
|
29
|
-
content: string;
|
|
30
|
-
}[] | undefined;
|
|
31
|
-
snippets?: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
id: string;
|
|
34
|
-
parameters?: Record<string, unknown> | undefined;
|
|
35
|
-
}[] | undefined;
|
|
36
|
-
domainName?: string | undefined;
|
|
37
|
-
destinations?: {
|
|
38
|
-
[x: string]: unknown;
|
|
39
|
-
url: string;
|
|
40
|
-
os?: string | undefined;
|
|
41
|
-
country?: string | undefined;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const shortenRestUpdateAlias: AppAction<typeof ShortenRestUpdateAliasInput, typeof ShortenRestUpdateAliasOutput, typeof shortenRest.credential>;
|
|
44
27
|
//#endregion
|
|
45
28
|
export { shortenRestUpdateAlias };
|
|
46
29
|
//# sourceMappingURL=update-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-alias.d.cts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-alias.d.cts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shortenRest } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-alias.d.ts
|
|
@@ -21,26 +23,7 @@ declare const ShortenRestUpdateAliasInput: z.ZodObject<{
|
|
|
21
23
|
declare const ShortenRestUpdateAliasOutput: z.ZodObject<{
|
|
22
24
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const shortenRestUpdateAlias:
|
|
25
|
-
aliasName: string;
|
|
26
|
-
metatags?: {
|
|
27
|
-
[x: string]: unknown;
|
|
28
|
-
name: string;
|
|
29
|
-
content: string;
|
|
30
|
-
}[] | undefined;
|
|
31
|
-
snippets?: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
id: string;
|
|
34
|
-
parameters?: Record<string, unknown> | undefined;
|
|
35
|
-
}[] | undefined;
|
|
36
|
-
domainName?: string | undefined;
|
|
37
|
-
destinations?: {
|
|
38
|
-
[x: string]: unknown;
|
|
39
|
-
url: string;
|
|
40
|
-
os?: string | undefined;
|
|
41
|
-
country?: string | undefined;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const shortenRestUpdateAlias: AppAction<typeof ShortenRestUpdateAliasInput, typeof ShortenRestUpdateAliasOutput, typeof shortenRest.credential>;
|
|
44
27
|
//#endregion
|
|
45
28
|
export { shortenRestUpdateAlias };
|
|
46
29
|
//# sourceMappingURL=update-alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-alias.d.mts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-alias.d.mts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).passthrough().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}).passthrough().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.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"update-alias.mjs","names":[],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortenRest } from \"../app\";\n\nexport const ShortenRestUpdateAliasInput = 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}).passthrough().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.record(z.string(), z.unknown()).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).passthrough().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}).passthrough().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.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias: AppAction<\n typeof ShortenRestUpdateAliasInput,\n typeof ShortenRestUpdateAliasOutput,\n typeof shortenRest.credential\n> = 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":";;;AA2BA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7ByC,EAAE,OAAO;EAClD,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,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACvO,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACvO,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,YAAY,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC9R,CAAC,CAAC,CAAC,SAAS,+GAaH;CACP,QAb0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
|
+
const shortenRest = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "shorten_rest",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.shortenRest = shortenRest;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const shortenRest: KeystrokeApp<\"shorten_rest\", typeof credential> = defineApp({\n slug: \"shorten_rest\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,eAAA,GAAA,2BAAA,UAAA,CAAyE;CACpF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const shortenRest: KeystrokeApp<"shorten_rest", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { shortenRest };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,wBAAwB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const shortenRest: KeystrokeApp<"shorten_rest", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { shortenRest };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,wBAAwB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const shortenRest = defineApp({
|
|
4
4
|
slug: "shorten_rest",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { generic_api_key: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { shortenRest };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortenRest = defineApp({\n slug: \"shorten_rest\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const shortenRest: KeystrokeApp<\"shorten_rest\", typeof credential> = defineApp({\n slug: \"shorten_rest\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,cAA+D,UAAU;CACpF,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { shortenRest } from "./app.cjs";
|
|
1
2
|
import { shortenRestCreateAlias } from "./actions/create-alias.cjs";
|
|
2
3
|
import { shortenRestDeleteAlias } from "./actions/delete-alias.cjs";
|
|
3
4
|
import { shortenRestGetAliases } from "./actions/get-aliases.cjs";
|
|
4
5
|
import { shortenRestGetClicks } from "./actions/get-clicks.cjs";
|
|
5
6
|
import { shortenRestListAliasesByDomain } from "./actions/list-aliases-by-domain.cjs";
|
|
6
7
|
import { shortenRestUpdateAlias } from "./actions/update-alias.cjs";
|
|
7
|
-
import { shortenRest } from "./app.cjs";
|
|
8
8
|
import { shortenRestCatalog } from "./catalog.cjs";
|
|
9
9
|
export { shortenRest, shortenRestCatalog, shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { shortenRest } from "./app.mjs";
|
|
1
2
|
import { shortenRestCreateAlias } from "./actions/create-alias.mjs";
|
|
2
3
|
import { shortenRestDeleteAlias } from "./actions/delete-alias.mjs";
|
|
3
4
|
import { shortenRestGetAliases } from "./actions/get-aliases.mjs";
|
|
4
5
|
import { shortenRestGetClicks } from "./actions/get-clicks.mjs";
|
|
5
6
|
import { shortenRestListAliasesByDomain } from "./actions/list-aliases-by-domain.mjs";
|
|
6
7
|
import { shortenRestUpdateAlias } from "./actions/update-alias.mjs";
|
|
7
|
-
import { shortenRest } from "./app.mjs";
|
|
8
8
|
import { shortenRestCatalog } from "./catalog.mjs";
|
|
9
9
|
export { shortenRest, shortenRestCatalog, shortenRestCreateAlias, shortenRestDeleteAlias, shortenRestGetAliases, shortenRestGetClicks, shortenRestListAliasesByDomain, shortenRestUpdateAlias };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/shorten_rest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|