@keystrokehq/shorten_rest 0.1.0 → 0.1.3
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 +7 -7
- package/dist/actions/create-alias.cjs.map +1 -1
- package/dist/actions/create-alias.d.cts +42 -3
- package/dist/actions/create-alias.d.cts.map +1 -1
- package/dist/actions/create-alias.d.mts +42 -3
- package/dist/actions/create-alias.d.mts.map +1 -1
- package/dist/actions/create-alias.mjs +7 -7
- package/dist/actions/create-alias.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs +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 +1 -1
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/get-aliases.cjs +12 -12
- 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 +12 -12
- package/dist/actions/get-aliases.mjs.map +1 -1
- package/dist/actions/get-clicks.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-clicks.mjs.map +1 -1
- package/dist/actions/list-aliases-by-domain.cjs +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 +1 -1
- package/dist/actions/list-aliases-by-domain.mjs.map +1 -1
- package/dist/actions/update-alias.cjs +5 -5
- package/dist/actions/update-alias.cjs.map +1 -1
- package/dist/actions/update-alias.d.cts +40 -3
- package/dist/actions/update-alias.d.cts.map +1 -1
- package/dist/actions/update-alias.d.mts +40 -3
- package/dist/actions/update-alias.d.mts.map +1 -1
- package/dist/actions/update-alias.mjs +5 -5
- 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"}
|
|
@@ -5,24 +5,24 @@ const ShortenRestCreateAliasInput = zod.z.object({
|
|
|
5
5
|
metatags: zod.z.array(zod.z.object({
|
|
6
6
|
name: zod.z.string().describe("Name of the metatag"),
|
|
7
7
|
content: zod.z.string().describe("Content of the metatag")
|
|
8
|
-
}).describe("Represents a metatag for the alias.")).describe("List of metatags for the alias. Use to override domain-level meta tags").optional(),
|
|
8
|
+
}).passthrough().describe("Represents a metatag for the alias.")).describe("List of metatags for the alias. Use to override domain-level meta tags").optional(),
|
|
9
9
|
snippets: zod.z.array(zod.z.object({
|
|
10
10
|
id: zod.z.string().describe("Snippet identifier"),
|
|
11
|
-
parameters: zod.z.
|
|
12
|
-
}).describe("Represents a snippet configuration.")).describe("List of tracking snippets for the alias. Use to override domain-level tracking snippets").optional(),
|
|
11
|
+
parameters: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Snippet parameters").optional()
|
|
12
|
+
}).passthrough().describe("Represents a snippet configuration.")).describe("List of tracking snippets for the alias. Use to override domain-level tracking snippets").optional(),
|
|
13
13
|
aliasName: zod.z.string().describe("Alias name (without `/` at the beginning). If not specified, a random alias will be generated").optional(),
|
|
14
14
|
domainName: zod.z.string().describe("Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'").optional(),
|
|
15
15
|
destinations: zod.z.array(zod.z.object({
|
|
16
16
|
os: zod.z.string().describe("Target operating system").optional(),
|
|
17
17
|
url: zod.z.string().describe("The destination URL where the short link will redirect"),
|
|
18
18
|
country: zod.z.string().describe("Target country for geo-targeting (ISO code)").optional()
|
|
19
|
-
}).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs with optional geo-targeting. At least one destination is required")
|
|
19
|
+
}).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")
|
|
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
|
-
}).describe("Response schema for creating a new alias.");
|
|
25
|
+
}).passthrough().describe("Response schema for creating a new alias.");
|
|
26
26
|
const shortenRestCreateAlias = require_action.action("SHORTEN_REST_CREATE_ALIAS", {
|
|
27
27
|
slug: "shorten_rest-create-alias",
|
|
28
28
|
name: "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}).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":";;;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,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,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,48 @@
|
|
|
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.$loose>>>;
|
|
9
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>>>;
|
|
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.$loose>>;
|
|
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.$loose>;
|
|
26
|
+
declare const shortenRestCreateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { shortenRestCreateAlias };
|
|
9
48
|
//# 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,48 @@
|
|
|
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.$loose>>>;
|
|
9
|
+
snippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>>>;
|
|
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.$loose>>;
|
|
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.$loose>;
|
|
26
|
+
declare const shortenRestCreateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { shortenRestCreateAlias };
|
|
9
48
|
//# 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"}
|
|
@@ -8,24 +8,24 @@ const shortenRestCreateAlias = action("SHORTEN_REST_CREATE_ALIAS", {
|
|
|
8
8
|
metatags: z.array(z.object({
|
|
9
9
|
name: z.string().describe("Name of the metatag"),
|
|
10
10
|
content: z.string().describe("Content of the metatag")
|
|
11
|
-
}).describe("Represents a metatag for the alias.")).describe("List of metatags for the alias. Use to override domain-level meta tags").optional(),
|
|
11
|
+
}).passthrough().describe("Represents a metatag for the alias.")).describe("List of metatags for the alias. Use to override domain-level meta tags").optional(),
|
|
12
12
|
snippets: z.array(z.object({
|
|
13
13
|
id: z.string().describe("Snippet identifier"),
|
|
14
|
-
parameters: z.
|
|
15
|
-
}).describe("Represents a snippet configuration.")).describe("List of tracking snippets for the alias. Use to override domain-level tracking snippets").optional(),
|
|
14
|
+
parameters: z.record(z.string(), z.unknown()).describe("Snippet parameters").optional()
|
|
15
|
+
}).passthrough().describe("Represents a snippet configuration.")).describe("List of tracking snippets for the alias. Use to override domain-level tracking snippets").optional(),
|
|
16
16
|
aliasName: z.string().describe("Alias name (without `/` at the beginning). If not specified, a random alias will be generated").optional(),
|
|
17
17
|
domainName: z.string().describe("Domain which alias will belong to (string without `http/https` or `/`). If not specified, defaults to 'short.fyi'").optional(),
|
|
18
18
|
destinations: z.array(z.object({
|
|
19
19
|
os: z.string().describe("Target operating system").optional(),
|
|
20
20
|
url: z.string().describe("The destination URL where the short link will redirect"),
|
|
21
21
|
country: z.string().describe("Target country for geo-targeting (ISO code)").optional()
|
|
22
|
-
}).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs with optional geo-targeting. At least one destination is required")
|
|
22
|
+
}).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")
|
|
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
|
-
}).describe("Response schema for creating a new alias.")
|
|
28
|
+
}).passthrough().describe("Response schema for creating a new alias.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { shortenRestCreateAlias };
|
|
@@ -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}).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":";;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,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,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,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const ShortenRestDeleteAliasInput = zod.z.object({
|
|
|
5
5
|
aliasName: zod.z.string().describe("Alias to delete (without `/` at the beginning). This is the short code identifier for the URL."),
|
|
6
6
|
domainName: zod.z.string().describe("Domain which alias belongs to (string without `http/https` or `/`). If not provided, defaults to short.fyi.").optional()
|
|
7
7
|
}).describe("Request parameters for deleting a single alias.");
|
|
8
|
-
const ShortenRestDeleteAliasOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates if the deletion was successful").nullable().optional() }).describe("Response schema for deleting an alias. The API returns an empty response on success.");
|
|
8
|
+
const ShortenRestDeleteAliasOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates if the deletion was successful").nullable().optional() }).passthrough().describe("Response schema for deleting an alias. The API returns an empty response on success.");
|
|
9
9
|
const shortenRestDeleteAlias = require_action.action("SHORTEN_REST_DELETE_ALIAS", {
|
|
10
10
|
slug: "shorten_rest-delete-alias",
|
|
11
11
|
name: "Delete Alias",
|
|
@@ -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}).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":";;;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,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,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.$loose>;
|
|
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.$loose>;
|
|
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"}
|
|
@@ -8,7 +8,7 @@ const shortenRestDeleteAlias = action("SHORTEN_REST_DELETE_ALIAS", {
|
|
|
8
8
|
aliasName: z.string().describe("Alias to delete (without `/` at the beginning). This is the short code identifier for the URL."),
|
|
9
9
|
domainName: z.string().describe("Domain which alias belongs to (string without `http/https` or `/`). If not provided, defaults to short.fyi.").optional()
|
|
10
10
|
}).describe("Request parameters for deleting a single alias."),
|
|
11
|
-
output: z.object({ success: z.boolean().default(true).describe("Indicates if the deletion was successful").nullable().optional() }).describe("Response schema for deleting an alias. The API returns an empty response on success.")
|
|
11
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates if the deletion was successful").nullable().optional() }).passthrough().describe("Response schema for deleting an alias. The API returns an empty response on success.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { shortenRestDeleteAlias };
|
|
@@ -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}).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":";;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,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
|
|
@@ -6,31 +6,31 @@ 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")
|
|
11
|
-
}).describe("Represents a metatag for the alias.");
|
|
9
|
+
name: zod.z.string().describe("Name of the metatag").nullable(),
|
|
10
|
+
content: zod.z.string().describe("Content of the metatag").nullable()
|
|
11
|
+
}).passthrough().describe("Represents a metatag for the alias.");
|
|
12
12
|
const ShortenRestGetAliases_SnippetSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Snippet identifier"),
|
|
14
|
-
parameters: zod.z.
|
|
15
|
-
}).describe("Represents a snippet configuration.");
|
|
13
|
+
id: zod.z.string().describe("Snippet identifier").nullable(),
|
|
14
|
+
parameters: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Snippet parameters").nullable().optional()
|
|
15
|
+
}).passthrough().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
|
-
}).describe("Represents a destination URL with optional geo-targeting.");
|
|
20
|
+
}).passthrough().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()
|
|
29
|
-
}).describe("Represents a single shortened URL alias as returned by the Shorten.REST API.");
|
|
29
|
+
}).passthrough().describe("Represents a single shortened URL alias as returned by the Shorten.REST API.");
|
|
30
30
|
const ShortenRestGetAliasesOutput = zod.z.object({
|
|
31
31
|
aliases: zod.z.array(ShortenRestGetAliases_AliasSchema).describe("List of alias objects (empty if no aliases exist)").nullable().optional(),
|
|
32
32
|
next_cursor: zod.z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
|
|
33
|
-
}).describe("Response model for retrieving URL aliases.");
|
|
33
|
+
}).passthrough().describe("Response model for retrieving URL aliases.");
|
|
34
34
|
const shortenRestGetAliases = require_action.action("SHORTEN_REST_GET_ALIASES", {
|
|
35
35
|
slug: "shorten_rest-get-aliases",
|
|
36
36
|
name: "Get Aliases",
|
|
@@ -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}).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":";;;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,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,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.$loose>>>>;
|
|
15
|
+
snippets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
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.$loose>>>>;
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
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.$loose>>>>;
|
|
15
|
+
snippets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
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.$loose>>>>;
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
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,27 +6,27 @@ 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")
|
|
11
|
-
}).describe("Represents a metatag for the alias.");
|
|
9
|
+
name: z.string().describe("Name of the metatag").nullable(),
|
|
10
|
+
content: z.string().describe("Content of the metatag").nullable()
|
|
11
|
+
}).passthrough().describe("Represents a metatag for the alias.");
|
|
12
12
|
const ShortenRestGetAliases_SnippetSchema = z.object({
|
|
13
|
-
id: z.string().describe("Snippet identifier"),
|
|
14
|
-
parameters: z.
|
|
15
|
-
}).describe("Represents a snippet configuration.");
|
|
13
|
+
id: z.string().describe("Snippet identifier").nullable(),
|
|
14
|
+
parameters: z.record(z.string(), z.unknown()).describe("Snippet parameters").nullable().optional()
|
|
15
|
+
}).passthrough().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
|
-
}).describe("Represents a destination URL with optional geo-targeting.");
|
|
20
|
+
}).passthrough().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()
|
|
29
|
-
}).describe("Represents a single shortened URL alias as returned by the Shorten.REST API.");
|
|
29
|
+
}).passthrough().describe("Represents a single shortened URL alias as returned by the Shorten.REST API.");
|
|
30
30
|
const shortenRestGetAliases = action("SHORTEN_REST_GET_ALIASES", {
|
|
31
31
|
slug: "shorten_rest-get-aliases",
|
|
32
32
|
name: "Get Aliases",
|
|
@@ -35,7 +35,7 @@ const shortenRestGetAliases = action("SHORTEN_REST_GET_ALIASES", {
|
|
|
35
35
|
output: z.object({
|
|
36
36
|
aliases: z.array(ShortenRestGetAliases_AliasSchema).describe("List of alias objects (empty if no aliases exist)").nullable().optional(),
|
|
37
37
|
next_cursor: z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
|
|
38
|
-
}).describe("Response model for retrieving URL aliases.")
|
|
38
|
+
}).passthrough().describe("Response model for retrieving URL aliases.")
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
41
41
|
export { shortenRestGetAliases };
|