@keystrokehq/shorten_rest 0.1.0 → 0.1.2
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 +2 -2
- package/dist/actions/create-alias.cjs.map +1 -1
- package/dist/actions/create-alias.d.cts +39 -3
- package/dist/actions/create-alias.d.cts.map +1 -1
- package/dist/actions/create-alias.d.mts +39 -3
- package/dist/actions/create-alias.d.mts.map +1 -1
- package/dist/actions/create-alias.mjs +2 -2
- package/dist/actions/create-alias.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs.map +1 -1
- package/dist/actions/delete-alias.d.cts +11 -3
- package/dist/actions/delete-alias.d.cts.map +1 -1
- package/dist/actions/delete-alias.d.mts +11 -3
- package/dist/actions/delete-alias.d.mts.map +1 -1
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/get-aliases.cjs +6 -6
- package/dist/actions/get-aliases.cjs.map +1 -1
- package/dist/actions/get-aliases.d.cts +30 -3
- package/dist/actions/get-aliases.d.cts.map +1 -1
- package/dist/actions/get-aliases.d.mts +30 -3
- package/dist/actions/get-aliases.d.mts.map +1 -1
- package/dist/actions/get-aliases.mjs +6 -6
- package/dist/actions/get-aliases.mjs.map +1 -1
- package/dist/actions/get-clicks.cjs.map +1 -1
- package/dist/actions/get-clicks.d.cts +20 -3
- package/dist/actions/get-clicks.d.cts.map +1 -1
- package/dist/actions/get-clicks.d.mts +20 -3
- package/dist/actions/get-clicks.d.mts.map +1 -1
- package/dist/actions/get-clicks.mjs.map +1 -1
- package/dist/actions/list-aliases-by-domain.cjs.map +1 -1
- package/dist/actions/list-aliases-by-domain.d.cts +14 -3
- package/dist/actions/list-aliases-by-domain.d.cts.map +1 -1
- package/dist/actions/list-aliases-by-domain.d.mts +14 -3
- package/dist/actions/list-aliases-by-domain.d.mts.map +1 -1
- package/dist/actions/list-aliases-by-domain.mjs.map +1 -1
- package/dist/actions/update-alias.cjs.map +1 -1
- package/dist/actions/update-alias.d.cts +37 -3
- package/dist/actions/update-alias.d.cts.map +1 -1
- package/dist/actions/update-alias.d.mts +37 -3
- package/dist/actions/update-alias.d.mts.map +1 -1
- package/dist/actions/update-alias.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return shortenRest.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeShortenRestTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return shortenRest.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeShortenRestTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
|
@@ -19,8 +19,8 @@ const ShortenRestCreateAliasInput = zod.z.object({
|
|
|
19
19
|
}).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs with optional geo-targeting. At least one destination is required")
|
|
20
20
|
}).describe("Request parameters for creating a new shortened URL alias.");
|
|
21
21
|
const ShortenRestCreateAliasOutput = zod.z.object({
|
|
22
|
-
shortUrl: zod.z.string().describe("The complete short URL"),
|
|
23
|
-
aliasName: zod.z.string().describe("The generated or specified alias name"),
|
|
22
|
+
shortUrl: zod.z.string().describe("The complete short URL").nullable(),
|
|
23
|
+
aliasName: zod.z.string().describe("The generated or specified alias name").nullable(),
|
|
24
24
|
domainName: zod.z.string().describe("The domain name for the short URL").nullable().optional()
|
|
25
25
|
}).describe("Response schema for creating a new alias.");
|
|
26
26
|
const shortenRestCreateAlias = require_action.action("SHORTEN_REST_CREATE_ALIAS", {
|
|
@@ -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
|
|
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}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags for the alias. Use to override domain-level meta tags\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of tracking snippets for the alias. Use to override domain-level tracking snippets\").optional(),\n aliasName: z.string().describe(\"Alias name (without `/` at the beginning). If not specified, a random alias will be generated\").optional(),\n domainName: z.string().describe(\"Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system\").optional(),\n url: z.string().describe(\"The destination URL where the short link will redirect\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs with optional geo-targeting. At least one destination is required\"),\n}).describe(\"Request parameters for creating a new shortened URL alias.\");\nexport const ShortenRestCreateAliasOutput = z.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}).describe(\"Response schema for creating a new alias.\");\n\nexport const shortenRestCreateAlias = action(\"SHORTEN_REST_CREATE_ALIAS\", {\n slug: \"shorten_rest-create-alias\",\n name: \"Create Alias\",\n description: \"Tool to create a new alias (short URL) under a specified domain. Use when you need to shorten a URL. If no domain is specified, the alias will be attached to the default domain Short.fyi. You can override domain-level Meta Tags and Tracking Snippets by specifying them for each URL.\",\n input: ShortenRestCreateAliasInput,\n output: ShortenRestCreateAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC9I,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC/J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAC9J,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,4FAA4F;AAC/K,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,+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,SAAS,2CAA2C;AAEvD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-alias.d.ts
|
|
4
|
-
declare const ShortenRestCreateAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestCreateAliasInput: z.ZodObject<{
|
|
5
|
+
metatags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
parameters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
aliasName: z.ZodOptional<z.ZodString>;
|
|
14
|
+
domainName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
16
|
+
os: z.ZodOptional<z.ZodString>;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
country: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ShortenRestCreateAliasOutput: z.ZodObject<{
|
|
22
|
+
shortUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
aliasName: z.ZodNullable<z.ZodString>;
|
|
24
|
+
domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const shortenRestCreateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
destinations: {
|
|
28
|
+
url: string;
|
|
29
|
+
os?: string | undefined;
|
|
30
|
+
country?: string | undefined;
|
|
31
|
+
}[];
|
|
32
|
+
metatags?: {
|
|
33
|
+
name: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
snippets?: {
|
|
37
|
+
id: string;
|
|
38
|
+
parameters?: Record<string, never> | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
aliasName?: string | undefined;
|
|
41
|
+
domainName?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { shortenRestCreateAlias };
|
|
9
45
|
//# sourceMappingURL=create-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-alias.d.cts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-alias.d.cts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;iBAMjC,MAAA;EAAA"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-alias.d.ts
|
|
4
|
-
declare const ShortenRestCreateAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestCreateAliasInput: z.ZodObject<{
|
|
5
|
+
metatags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
parameters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
aliasName: z.ZodOptional<z.ZodString>;
|
|
14
|
+
domainName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
16
|
+
os: z.ZodOptional<z.ZodString>;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
country: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ShortenRestCreateAliasOutput: z.ZodObject<{
|
|
22
|
+
shortUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
aliasName: z.ZodNullable<z.ZodString>;
|
|
24
|
+
domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const shortenRestCreateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
destinations: {
|
|
28
|
+
url: string;
|
|
29
|
+
os?: string | undefined;
|
|
30
|
+
country?: string | undefined;
|
|
31
|
+
}[];
|
|
32
|
+
metatags?: {
|
|
33
|
+
name: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
snippets?: {
|
|
37
|
+
id: string;
|
|
38
|
+
parameters?: Record<string, never> | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
aliasName?: string | undefined;
|
|
41
|
+
domainName?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { shortenRestCreateAlias };
|
|
9
45
|
//# sourceMappingURL=create-alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-alias.d.mts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-alias.d.mts","names":[],"sources":["../../src/actions/create-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;iBAMjC,MAAA;EAAA"}
|
|
@@ -22,8 +22,8 @@ const shortenRestCreateAlias = action("SHORTEN_REST_CREATE_ALIAS", {
|
|
|
22
22
|
}).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs with optional geo-targeting. At least one destination is required")
|
|
23
23
|
}).describe("Request parameters for creating a new shortened URL alias."),
|
|
24
24
|
output: z.object({
|
|
25
|
-
shortUrl: z.string().describe("The complete short URL"),
|
|
26
|
-
aliasName: z.string().describe("The generated or specified alias name"),
|
|
25
|
+
shortUrl: z.string().describe("The complete short URL").nullable(),
|
|
26
|
+
aliasName: z.string().describe("The generated or specified alias name").nullable(),
|
|
27
27
|
domainName: z.string().describe("The domain name for the short URL").nullable().optional()
|
|
28
28
|
}).describe("Response schema for creating a new alias.")
|
|
29
29
|
});
|
|
@@ -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
|
|
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}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags for the alias. Use to override domain-level meta tags\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of tracking snippets for the alias. Use to override domain-level tracking snippets\").optional(),\n aliasName: z.string().describe(\"Alias name (without `/` at the beginning). If not specified, a random alias will be generated\").optional(),\n domainName: z.string().describe(\"Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system\").optional(),\n url: z.string().describe(\"The destination URL where the short link will redirect\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs with optional geo-targeting. At least one destination is required\"),\n}).describe(\"Request parameters for creating a new shortened URL alias.\");\nexport const ShortenRestCreateAliasOutput = z.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}).describe(\"Response schema for creating a new alias.\");\n\nexport const shortenRestCreateAlias = action(\"SHORTEN_REST_CREATE_ALIAS\", {\n slug: \"shorten_rest-create-alias\",\n name: \"Create Alias\",\n description: \"Tool to create a new alias (short URL) under a specified domain. Use when you need to shorten a URL. If no domain is specified, the alias will be attached to the default domain Short.fyi. You can override domain-level Meta Tags and Tracking Snippets by specifying them for each URL.\",\n input: ShortenRestCreateAliasInput,\n output: ShortenRestCreateAliasOutput,\n});\n"],"mappings":";;AA2BA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3ByC,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,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC9I,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACzI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;EAC9J,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;GACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACvF,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,4FAA4F;CAC/K,CAAC,CAAC,CAAC,SAAS,4DAWH;CACP,QAX0C,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,SAAS,2CAOF;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
|
|
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}).describe(\"Response schema for deleting an alias. The API returns an empty response on success.\");\n\nexport const shortenRestDeleteAlias = action(\"SHORTEN_REST_DELETE_ALIAS\", {\n slug: \"shorten_rest-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete a single alias by providing alias and domain. Use when you need to remove an existing shortened URL. If no domain is provided, the API searches for the matching alias within the Short.fyi domain.\",\n input: ShortenRestDeleteAliasInput,\n output: ShortenRestDeleteAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,sFAAsF;AAElG,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-alias.d.ts
|
|
4
|
-
declare const ShortenRestDeleteAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestDeleteAliasInput: z.ZodObject<{
|
|
5
|
+
aliasName: z.ZodString;
|
|
6
|
+
domainName: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ShortenRestDeleteAliasOutput: z.ZodObject<{
|
|
9
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const shortenRestDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
aliasName: string;
|
|
13
|
+
domainName?: string | undefined;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { shortenRestDeleteAlias };
|
|
9
17
|
//# sourceMappingURL=delete-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-alias.d.ts
|
|
4
|
-
declare const ShortenRestDeleteAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestDeleteAliasInput: z.ZodObject<{
|
|
5
|
+
aliasName: z.ZodString;
|
|
6
|
+
domainName: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ShortenRestDeleteAliasOutput: z.ZodObject<{
|
|
9
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const shortenRestDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
aliasName: string;
|
|
13
|
+
domainName?: string | undefined;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { shortenRestDeleteAlias };
|
|
9
17
|
//# sourceMappingURL=delete-alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -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
|
|
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}).describe(\"Response schema for deleting an alias. The API returns an empty response on success.\");\n\nexport const shortenRestDeleteAlias = action(\"SHORTEN_REST_DELETE_ALIAS\", {\n slug: \"shorten_rest-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete a single alias by providing alias and domain. Use when you need to remove an existing shortened URL. If no domain is provided, the API searches for the matching alias within the Short.fyi domain.\",\n input: ShortenRestDeleteAliasInput,\n output: ShortenRestDeleteAliasOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,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,iDASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
|
|
@@ -6,23 +6,23 @@ const ShortenRestGetAliasesInput = zod.z.object({
|
|
|
6
6
|
cursor: zod.z.string().describe("Cursor token for pagination to fetch the next set of aliases").optional()
|
|
7
7
|
}).describe("Query parameters for retrieving aliases with optional pagination.");
|
|
8
8
|
const ShortenRestGetAliases_MetatagSchema = zod.z.object({
|
|
9
|
-
name: zod.z.string().describe("Name of the metatag"),
|
|
10
|
-
content: zod.z.string().describe("Content of the metatag")
|
|
9
|
+
name: zod.z.string().describe("Name of the metatag").nullable(),
|
|
10
|
+
content: zod.z.string().describe("Content of the metatag").nullable()
|
|
11
11
|
}).describe("Represents a metatag for the alias.");
|
|
12
12
|
const ShortenRestGetAliases_SnippetSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Snippet identifier"),
|
|
13
|
+
id: zod.z.string().describe("Snippet identifier").nullable(),
|
|
14
14
|
parameters: zod.z.object({}).describe("Snippet parameters").nullable().optional()
|
|
15
15
|
}).describe("Represents a snippet configuration.");
|
|
16
16
|
const ShortenRestGetAliases_DestinationSchema = zod.z.object({
|
|
17
17
|
os: zod.z.string().describe("Target operating system").nullable().optional(),
|
|
18
|
-
url: zod.z.string().describe("The destination URL"),
|
|
18
|
+
url: zod.z.string().describe("The destination URL").nullable(),
|
|
19
19
|
country: zod.z.string().describe("Target country for geo-targeting (ISO code)").nullable().optional()
|
|
20
20
|
}).describe("Represents a destination URL with optional geo-targeting.");
|
|
21
21
|
const ShortenRestGetAliases_AliasSchema = zod.z.object({
|
|
22
|
-
name: zod.z.string().describe("The alias name/identifier (e.g., 'aBcDe012')"),
|
|
22
|
+
name: zod.z.string().describe("The alias name/identifier (e.g., 'aBcDe012')").nullable(),
|
|
23
23
|
metatags: zod.z.array(ShortenRestGetAliases_MetatagSchema).describe("List of metatags for the alias").nullable().optional(),
|
|
24
24
|
snippets: zod.z.array(ShortenRestGetAliases_SnippetSchema).describe("List of snippets associated with the alias").nullable().optional(),
|
|
25
|
-
createdAt: zod.z.number().int().describe("Timestamp when the alias was created (Unix milliseconds)"),
|
|
25
|
+
createdAt: zod.z.number().int().describe("Timestamp when the alias was created (Unix milliseconds)").nullable(),
|
|
26
26
|
updatedAt: zod.z.number().int().describe("Timestamp when the alias was last updated (Unix milliseconds)").nullable().optional(),
|
|
27
27
|
domainName: zod.z.string().describe("The domain name for the short URL").nullable().optional(),
|
|
28
28
|
destinations: zod.z.array(ShortenRestGetAliases_DestinationSchema).describe("List of destination URLs with optional geo-targeting").nullable().optional()
|
|
@@ -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
|
|
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}).describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.object({}).describe(\"Snippet parameters\").nullable().optional(),\n}).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}).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}).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}).describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases = action(\"SHORTEN_REST_GET_ALIASES\", {\n slug: \"shorten_rest-get-aliases\",\n name: \"Get Aliases\",\n description: \"Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).\",\n input: ShortenRestGetAliasesInput,\n output: ShortenRestGetAliasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,qCAAqC;AACjD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,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,SAAS,2DAA2D;AACvE,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,SAAS,8EAA8E;AAC1F,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,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-aliases.d.ts
|
|
4
|
-
declare const ShortenRestGetAliasesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestGetAliasesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ShortenRestGetAliasesOutput: z.ZodObject<{
|
|
9
|
+
aliases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
metatags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
content: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>>>;
|
|
15
|
+
snippets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>>>>;
|
|
19
|
+
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
destinations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
url: z.ZodNullable<z.ZodString>;
|
|
25
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>>>>;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
declare const shortenRestGetAliases: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
cursor?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { shortenRestGetAliases };
|
|
9
36
|
//# sourceMappingURL=get-aliases.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-aliases.d.cts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-aliases.d.cts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-aliases.d.ts
|
|
4
|
-
declare const ShortenRestGetAliasesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestGetAliasesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ShortenRestGetAliasesOutput: z.ZodObject<{
|
|
9
|
+
aliases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
metatags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
content: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>>>;
|
|
15
|
+
snippets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>>>>;
|
|
19
|
+
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
destinations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
url: z.ZodNullable<z.ZodString>;
|
|
25
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>>>>;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
declare const shortenRestGetAliases: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
cursor?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { shortenRestGetAliases };
|
|
9
36
|
//# sourceMappingURL=get-aliases.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-aliases.d.mts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-aliases.d.mts","names":[],"sources":["../../src/actions/get-aliases.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -6,23 +6,23 @@ const ShortenRestGetAliasesInput = z.object({
|
|
|
6
6
|
cursor: z.string().describe("Cursor token for pagination to fetch the next set of aliases").optional()
|
|
7
7
|
}).describe("Query parameters for retrieving aliases with optional pagination.");
|
|
8
8
|
const ShortenRestGetAliases_MetatagSchema = z.object({
|
|
9
|
-
name: z.string().describe("Name of the metatag"),
|
|
10
|
-
content: z.string().describe("Content of the metatag")
|
|
9
|
+
name: z.string().describe("Name of the metatag").nullable(),
|
|
10
|
+
content: z.string().describe("Content of the metatag").nullable()
|
|
11
11
|
}).describe("Represents a metatag for the alias.");
|
|
12
12
|
const ShortenRestGetAliases_SnippetSchema = z.object({
|
|
13
|
-
id: z.string().describe("Snippet identifier"),
|
|
13
|
+
id: z.string().describe("Snippet identifier").nullable(),
|
|
14
14
|
parameters: z.object({}).describe("Snippet parameters").nullable().optional()
|
|
15
15
|
}).describe("Represents a snippet configuration.");
|
|
16
16
|
const ShortenRestGetAliases_DestinationSchema = z.object({
|
|
17
17
|
os: z.string().describe("Target operating system").nullable().optional(),
|
|
18
|
-
url: z.string().describe("The destination URL"),
|
|
18
|
+
url: z.string().describe("The destination URL").nullable(),
|
|
19
19
|
country: z.string().describe("Target country for geo-targeting (ISO code)").nullable().optional()
|
|
20
20
|
}).describe("Represents a destination URL with optional geo-targeting.");
|
|
21
21
|
const ShortenRestGetAliases_AliasSchema = z.object({
|
|
22
|
-
name: z.string().describe("The alias name/identifier (e.g., 'aBcDe012')"),
|
|
22
|
+
name: z.string().describe("The alias name/identifier (e.g., 'aBcDe012')").nullable(),
|
|
23
23
|
metatags: z.array(ShortenRestGetAliases_MetatagSchema).describe("List of metatags for the alias").nullable().optional(),
|
|
24
24
|
snippets: z.array(ShortenRestGetAliases_SnippetSchema).describe("List of snippets associated with the alias").nullable().optional(),
|
|
25
|
-
createdAt: z.number().int().describe("Timestamp when the alias was created (Unix milliseconds)"),
|
|
25
|
+
createdAt: z.number().int().describe("Timestamp when the alias was created (Unix milliseconds)").nullable(),
|
|
26
26
|
updatedAt: z.number().int().describe("Timestamp when the alias was last updated (Unix milliseconds)").nullable().optional(),
|
|
27
27
|
domainName: z.string().describe("The domain name for the short URL").nullable().optional(),
|
|
28
28
|
destinations: z.array(ShortenRestGetAliases_DestinationSchema).describe("List of destination URLs with optional geo-targeting").nullable().optional()
|
|
@@ -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
|
|
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}).describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.object({}).describe(\"Snippet parameters\").nullable().optional(),\n}).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}).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}).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}).describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases = action(\"SHORTEN_REST_GET_ALIASES\", {\n slug: \"shorten_rest-get-aliases\",\n name: \"Get Aliases\",\n description: \"Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).\",\n input: ShortenRestGetAliasesInput,\n output: ShortenRestGetAliasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,qCAAqC;AACjD,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,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,SAAS,2DAA2D;AACvE,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,SAAS,8EAA8E;AAM1F,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,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,SAAS,4CAOF;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
|
|
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}).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}).describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,yCAAyC;AACrD,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,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-clicks.d.ts
|
|
4
|
-
declare const ShortenRestGetClicksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestGetClicksInput: z.ZodObject<{
|
|
5
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ShortenRestGetClicksOutput: z.ZodObject<{
|
|
10
|
+
clicks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
referrer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
17
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const shortenRestGetClicks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { shortenRestGetClicks };
|
|
9
26
|
//# sourceMappingURL=get-clicks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-clicks.d.cts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-clicks.d.cts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-clicks.d.ts
|
|
4
|
-
declare const ShortenRestGetClicksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestGetClicksInput: z.ZodObject<{
|
|
5
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ShortenRestGetClicksOutput: z.ZodObject<{
|
|
10
|
+
clicks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
referrer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
17
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const shortenRestGetClicks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { shortenRestGetClicks };
|
|
9
26
|
//# sourceMappingURL=get-clicks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-clicks.d.mts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-clicks.d.mts","names":[],"sources":["../../src/actions/get-clicks.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -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
|
|
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}).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}).describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,yCAAyC;AAMrD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,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,SAAS,mDAOF;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
|
|
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}).describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,yEAAyE;AAErF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-aliases-by-domain.d.ts
|
|
4
|
-
declare const ShortenRestListAliasesByDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestListAliasesByDomainInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
domain_name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
continue_from: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ShortenRestListAliasesByDomainOutput: z.ZodObject<{
|
|
10
|
+
aliases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
last_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const shortenRestListAliasesByDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { shortenRestListAliasesByDomain };
|
|
9
20
|
//# 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":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"list-aliases-by-domain.d.cts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-aliases-by-domain.d.ts
|
|
4
|
-
declare const ShortenRestListAliasesByDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestListAliasesByDomainInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
domain_name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
continue_from: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ShortenRestListAliasesByDomainOutput: z.ZodObject<{
|
|
10
|
+
aliases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
last_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const shortenRestListAliasesByDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { shortenRestListAliasesByDomain };
|
|
9
20
|
//# 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":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"list-aliases-by-domain.d.mts","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -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
|
|
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}).describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;AAcA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdiD,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,kFAUH;CACP,QAVkD,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,SAAS,yEAOF;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
|
|
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}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACzN,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACzN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpK,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACpH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;AAChR,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAa,+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,SAAS,wEAAwE;AAEpF,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-alias.d.ts
|
|
4
|
-
declare const ShortenRestUpdateAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestUpdateAliasInput: z.ZodObject<{
|
|
5
|
+
metatags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
parameters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
aliasName: z.ZodString;
|
|
14
|
+
domainName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
15
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
os: z.ZodOptional<z.ZodString>;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
country: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ShortenRestUpdateAliasOutput: z.ZodObject<{
|
|
22
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
aliasName: string;
|
|
26
|
+
metatags?: {
|
|
27
|
+
name: string;
|
|
28
|
+
content: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
snippets?: {
|
|
31
|
+
id: string;
|
|
32
|
+
parameters?: Record<string, never> | undefined;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
domainName?: string | undefined;
|
|
35
|
+
destinations?: {
|
|
36
|
+
url: string;
|
|
37
|
+
os?: string | undefined;
|
|
38
|
+
country?: string | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { shortenRestUpdateAlias };
|
|
9
43
|
//# sourceMappingURL=update-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-alias.d.cts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"update-alias.d.cts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA;;;;;;;;iBAMjC,MAAA;EAAA"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-alias.d.ts
|
|
4
|
-
declare const ShortenRestUpdateAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortenRestUpdateAliasInput: z.ZodObject<{
|
|
5
|
+
metatags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
parameters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
aliasName: z.ZodString;
|
|
14
|
+
domainName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
15
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
os: z.ZodOptional<z.ZodString>;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
country: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ShortenRestUpdateAliasOutput: z.ZodObject<{
|
|
22
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
aliasName: string;
|
|
26
|
+
metatags?: {
|
|
27
|
+
name: string;
|
|
28
|
+
content: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
snippets?: {
|
|
31
|
+
id: string;
|
|
32
|
+
parameters?: Record<string, never> | undefined;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
domainName?: string | undefined;
|
|
35
|
+
destinations?: {
|
|
36
|
+
url: string;
|
|
37
|
+
os?: string | undefined;
|
|
38
|
+
country?: string | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { shortenRestUpdateAlias };
|
|
9
43
|
//# sourceMappingURL=update-alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-alias.d.mts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"update-alias.d.mts","names":[],"sources":["../../src/actions/update-alias.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA;;;;;;;;iBAMjC,MAAA;EAAA"}
|
|
@@ -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
|
|
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}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;AAyBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzByC,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,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACzN,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACtF,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACzN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACpK,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;GACpH,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;GAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAChR,CAAC,CAAC,CAAC,SAAS,+GASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const shortenRestCatalog = {
|
|
|
7
7
|
"category": "URL Shortener",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/shorten_rest",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Shorten.REST API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The API key required for authenticating requests to the Shorten.REST API."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.shortenRestCatalog = shortenRestCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortenRestCatalog = {\n \"slug\": \"shorten_rest\",\n \"name\": \"Shorten.REST\",\n \"description\": \"Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/shorten_rest\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortenRestCatalog = {\n \"slug\": \"shorten_rest\",\n \"name\": \"Shorten.REST\",\n \"description\": \"Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/shorten_rest\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Shorten.REST API Key\",\n \"secret\": true,\n \"description\": \"The API key required for authenticating requests to the Shorten.REST API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const shortenRestCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/shorten_rest";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Shorten.REST API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The API key required for authenticating requests to the Shorten.REST API.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { shortenRestCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const shortenRestCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/shorten_rest";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Shorten.REST API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The API key required for authenticating requests to the Shorten.REST API.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { shortenRestCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const shortenRestCatalog = {
|
|
|
7
7
|
"category": "URL Shortener",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/shorten_rest",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Shorten.REST API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The API key required for authenticating requests to the Shorten.REST API."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { shortenRestCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortenRestCatalog = {\n \"slug\": \"shorten_rest\",\n \"name\": \"Shorten.REST\",\n \"description\": \"Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/shorten_rest\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortenRestCatalog = {\n \"slug\": \"shorten_rest\",\n \"name\": \"Shorten.REST\",\n \"description\": \"Shorten.REST is a link shortening and management app that allows you to generate unique, branded URLs with advanced tracking capabilities.\",\n \"category\": \"URL Shortener\",\n \"logo\": \"https://logos.composio.dev/api/shorten_rest\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Shorten.REST API Key\",\n \"secret\": true,\n \"description\": \"The API key required for authenticating requests to the Shorten.REST API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/shorten_rest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|