@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.
Files changed (57) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-alias.cjs +7 -7
  4. package/dist/actions/create-alias.cjs.map +1 -1
  5. package/dist/actions/create-alias.d.cts +42 -3
  6. package/dist/actions/create-alias.d.cts.map +1 -1
  7. package/dist/actions/create-alias.d.mts +42 -3
  8. package/dist/actions/create-alias.d.mts.map +1 -1
  9. package/dist/actions/create-alias.mjs +7 -7
  10. package/dist/actions/create-alias.mjs.map +1 -1
  11. package/dist/actions/delete-alias.cjs +1 -1
  12. package/dist/actions/delete-alias.cjs.map +1 -1
  13. package/dist/actions/delete-alias.d.cts +11 -3
  14. package/dist/actions/delete-alias.d.cts.map +1 -1
  15. package/dist/actions/delete-alias.d.mts +11 -3
  16. package/dist/actions/delete-alias.d.mts.map +1 -1
  17. package/dist/actions/delete-alias.mjs +1 -1
  18. package/dist/actions/delete-alias.mjs.map +1 -1
  19. package/dist/actions/get-aliases.cjs +12 -12
  20. package/dist/actions/get-aliases.cjs.map +1 -1
  21. package/dist/actions/get-aliases.d.cts +30 -3
  22. package/dist/actions/get-aliases.d.cts.map +1 -1
  23. package/dist/actions/get-aliases.d.mts +30 -3
  24. package/dist/actions/get-aliases.d.mts.map +1 -1
  25. package/dist/actions/get-aliases.mjs +12 -12
  26. package/dist/actions/get-aliases.mjs.map +1 -1
  27. package/dist/actions/get-clicks.cjs +2 -2
  28. package/dist/actions/get-clicks.cjs.map +1 -1
  29. package/dist/actions/get-clicks.d.cts +20 -3
  30. package/dist/actions/get-clicks.d.cts.map +1 -1
  31. package/dist/actions/get-clicks.d.mts +20 -3
  32. package/dist/actions/get-clicks.d.mts.map +1 -1
  33. package/dist/actions/get-clicks.mjs +2 -2
  34. package/dist/actions/get-clicks.mjs.map +1 -1
  35. package/dist/actions/list-aliases-by-domain.cjs +1 -1
  36. package/dist/actions/list-aliases-by-domain.cjs.map +1 -1
  37. package/dist/actions/list-aliases-by-domain.d.cts +14 -3
  38. package/dist/actions/list-aliases-by-domain.d.cts.map +1 -1
  39. package/dist/actions/list-aliases-by-domain.d.mts +14 -3
  40. package/dist/actions/list-aliases-by-domain.d.mts.map +1 -1
  41. package/dist/actions/list-aliases-by-domain.mjs +1 -1
  42. package/dist/actions/list-aliases-by-domain.mjs.map +1 -1
  43. package/dist/actions/update-alias.cjs +5 -5
  44. package/dist/actions/update-alias.cjs.map +1 -1
  45. package/dist/actions/update-alias.d.cts +40 -3
  46. package/dist/actions/update-alias.d.cts.map +1 -1
  47. package/dist/actions/update-alias.d.mts +40 -3
  48. package/dist/actions/update-alias.d.mts.map +1 -1
  49. package/dist/actions/update-alias.mjs +5 -5
  50. package/dist/actions/update-alias.mjs.map +1 -1
  51. package/dist/catalog.cjs +7 -1
  52. package/dist/catalog.cjs.map +1 -1
  53. package/dist/catalog.d.cts +8 -0
  54. package/dist/catalog.d.mts +8 -0
  55. package/dist/catalog.mjs +7 -1
  56. package/dist/catalog.mjs.map +1 -1
  57. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-aliases.mjs","names":[],"sources":["../../src/actions/get-aliases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetAliasesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of aliases to return per page (must be ≥ 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of aliases\").optional(),\n}).describe(\"Query parameters for retrieving aliases with optional pagination.\");\nconst ShortenRestGetAliases_MetatagSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the metatag\"),\n content: z.string().describe(\"Content of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters\").nullable().optional(),\n}).describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\"),\n metatags: z.array(ShortenRestGetAliases_MetatagSchema).describe(\"List of metatags for the alias\").nullable().optional(),\n snippets: z.array(ShortenRestGetAliases_SnippetSchema).describe(\"List of snippets associated with the alias\").nullable().optional(),\n createdAt: z.number().int().describe(\"Timestamp when the alias was created (Unix milliseconds)\"),\n updatedAt: z.number().int().describe(\"Timestamp when the alias was last updated (Unix milliseconds)\").nullable().optional(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n destinations: z.array(ShortenRestGetAliases_DestinationSchema).describe(\"List of destination URLs with optional geo-targeting\").nullable().optional(),\n}).describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput: z.ZodTypeAny = z.object({\n aliases: z.array(ShortenRestGetAliases_AliasSchema).describe(\"List of alias objects (empty if no aliases exist)\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases = action(\"SHORTEN_REST_GET_ALIASES\", {\n slug: \"shorten_rest-get-aliases\",\n name: \"Get Aliases\",\n description: \"Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).\",\n input: ShortenRestGetAliasesInput,\n output: ShortenRestGetAliasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACvD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,oCAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAM1F,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-aliases.mjs","names":[],"sources":["../../src/actions/get-aliases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetAliasesInput = z.object({\n limit: z.number().int().describe(\"Maximum number of aliases to return per page (must be ≥ 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of aliases\").optional(),\n}).describe(\"Query parameters for retrieving aliases with optional pagination.\");\nconst ShortenRestGetAliases_MetatagSchema = z.object({\n name: z.string().describe(\"Name of the metatag\").nullable(),\n content: z.string().describe(\"Content of the metatag\").nullable(),\n}).passthrough().describe(\"Represents a metatag for the alias.\");\nconst ShortenRestGetAliases_SnippetSchema = z.object({\n id: z.string().describe(\"Snippet identifier\").nullable(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters\").nullable().optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\");\nconst ShortenRestGetAliases_DestinationSchema = z.object({\n os: z.string().describe(\"Target operating system\").nullable().optional(),\n url: z.string().describe(\"The destination URL\").nullable(),\n country: z.string().describe(\"Target country for geo-targeting (ISO code)\").nullable().optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\");\nconst ShortenRestGetAliases_AliasSchema = z.object({\n name: z.string().describe(\"The alias name/identifier (e.g., 'aBcDe012')\").nullable(),\n metatags: z.array(ShortenRestGetAliases_MetatagSchema).describe(\"List of metatags for the alias\").nullable().optional(),\n snippets: z.array(ShortenRestGetAliases_SnippetSchema).describe(\"List of snippets associated with the alias\").nullable().optional(),\n createdAt: z.number().int().describe(\"Timestamp when the alias was created (Unix milliseconds)\").nullable(),\n updatedAt: z.number().int().describe(\"Timestamp when the alias was last updated (Unix milliseconds)\").nullable().optional(),\n domainName: z.string().describe(\"The domain name for the short URL\").nullable().optional(),\n destinations: z.array(ShortenRestGetAliases_DestinationSchema).describe(\"List of destination URLs with optional geo-targeting\").nullable().optional(),\n}).passthrough().describe(\"Represents a single shortened URL alias as returned by the Shorten.REST API.\");\nexport const ShortenRestGetAliasesOutput = z.object({\n aliases: z.array(ShortenRestGetAliases_AliasSchema).describe(\"List of alias objects (empty if no aliases exist)\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving URL aliases.\");\n\nexport const shortenRestGetAliases = action(\"SHORTEN_REST_GET_ALIASES\", {\n slug: \"shorten_rest-get-aliases\",\n name: \"Get Aliases\",\n description: \"Tool to retrieve all URL aliases of the authenticated user. Use when you need to list existing aliases (supports pagination).\",\n input: ShortenRestGetAliasesInput,\n output: ShortenRestGetAliasesOutput,\n});\n"],"mappings":";;;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,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAMxG,MAAa,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,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -12,11 +12,11 @@ const ShortenRestGetClicks_ClickRecordSchema = zod.z.object({
12
12
  country: zod.z.string().describe("Country code of the visitor").nullable().optional(),
13
13
  referrer: zod.z.string().describe("Referrer URL if available").nullable().optional(),
14
14
  timestamp: zod.z.string().describe("Timestamp when the click occurred").nullable().optional()
15
- }).describe("Represents a single click event record.");
15
+ }).passthrough().describe("Represents a single click event record.");
16
16
  const ShortenRestGetClicksOutput = zod.z.object({
17
17
  clicks: zod.z.array(ShortenRestGetClicks_ClickRecordSchema).describe("List of click records. Each record contains details about a click event.").nullable().optional(),
18
18
  next_cursor: zod.z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
19
- }).describe("Response schema for click data of shortened URLs.");
19
+ }).passthrough().describe("Response schema for click data of shortened URLs.");
20
20
  const shortenRestGetClicks = require_action.action("SHORTEN_REST_GET_CLICKS", {
21
21
  slug: "shorten_rest-get-clicks",
22
22
  name: "Get click data for aliases",
@@ -1 +1 @@
1
- {"version":3,"file":"get-clicks.cjs","names":["z","action"],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetClicksInput: z.ZodTypeAny = z.object({\n alias: z.string().describe(\"The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.\").optional(),\n limit: z.number().int().describe(\"Maximum number of click records to return (must be >= 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of clicks\").optional(),\n}).describe(\"Request parameters for retrieving click data for shortened URLs.\");\nconst ShortenRestGetClicks_ClickRecordSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system of the visitor\").nullable().optional(),\n alias: z.string().describe(\"The alias that was clicked\").nullable().optional(),\n country: z.string().describe(\"Country code of the visitor\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL if available\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the click occurred\").nullable().optional(),\n}).describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput: z.ZodTypeAny = z.object({\n clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe(\"List of click records. Each record contains details about a click event.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-clicks.cjs","names":["z","action"],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetClicksInput = z.object({\n alias: z.string().describe(\"The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.\").optional(),\n limit: z.number().int().describe(\"Maximum number of click records to return (must be >= 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of clicks\").optional(),\n}).describe(\"Request parameters for retrieving click data for shortened URLs.\");\nconst ShortenRestGetClicks_ClickRecordSchema = z.object({\n os: z.string().describe(\"Operating system of the visitor\").nullable().optional(),\n alias: z.string().describe(\"The alias that was clicked\").nullable().optional(),\n country: z.string().describe(\"Country code of the visitor\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL if available\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the click occurred\").nullable().optional(),\n}).passthrough().describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput = z.object({\n clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe(\"List of click records. Each record contains details about a click event.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,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.ZodTypeAny;
5
- declare const ShortenRestGetClicksOutput: z.ZodTypeAny;
6
- declare const shortenRestGetClicks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$loose>>>>;
17
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>;
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,EAA2B,CAAA,CAAE,UAIqC;AAAA,cAQlE,0BAAA,EAA4B,CAAA,CAAE,UAGqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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.ZodTypeAny;
5
- declare const ShortenRestGetClicksOutput: z.ZodTypeAny;
6
- declare const shortenRestGetClicks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$loose>>>>;
17
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>;
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,EAA2B,CAAA,CAAE,UAIqC;AAAA,cAQlE,0BAAA,EAA4B,CAAA,CAAE,UAGqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -12,7 +12,7 @@ const ShortenRestGetClicks_ClickRecordSchema = z.object({
12
12
  country: z.string().describe("Country code of the visitor").nullable().optional(),
13
13
  referrer: z.string().describe("Referrer URL if available").nullable().optional(),
14
14
  timestamp: z.string().describe("Timestamp when the click occurred").nullable().optional()
15
- }).describe("Represents a single click event record.");
15
+ }).passthrough().describe("Represents a single click event record.");
16
16
  const shortenRestGetClicks = action("SHORTEN_REST_GET_CLICKS", {
17
17
  slug: "shorten_rest-get-clicks",
18
18
  name: "Get click data for aliases",
@@ -21,7 +21,7 @@ const shortenRestGetClicks = action("SHORTEN_REST_GET_CLICKS", {
21
21
  output: z.object({
22
22
  clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe("List of click records. Each record contains details about a click event.").nullable().optional(),
23
23
  next_cursor: z.string().describe("Cursor to retrieve the next page of results, if any").nullable().optional()
24
- }).describe("Response schema for click data of shortened URLs.")
24
+ }).passthrough().describe("Response schema for click data of shortened URLs.")
25
25
  });
26
26
  //#endregion
27
27
  export { shortenRestGetClicks };
@@ -1 +1 @@
1
- {"version":3,"file":"get-clicks.mjs","names":[],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetClicksInput: z.ZodTypeAny = z.object({\n alias: z.string().describe(\"The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.\").optional(),\n limit: z.number().int().describe(\"Maximum number of click records to return (must be >= 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of clicks\").optional(),\n}).describe(\"Request parameters for retrieving click data for shortened URLs.\");\nconst ShortenRestGetClicks_ClickRecordSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system of the visitor\").nullable().optional(),\n alias: z.string().describe(\"The alias that was clicked\").nullable().optional(),\n country: z.string().describe(\"Country code of the visitor\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL if available\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the click occurred\").nullable().optional(),\n}).describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput: z.ZodTypeAny = z.object({\n clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe(\"List of click records. Each record contains details about a click event.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAMrD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-clicks.mjs","names":[],"sources":["../../src/actions/get-clicks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestGetClicksInput = z.object({\n alias: z.string().describe(\"The alias (short code) to retrieve click information for. If not provided, returns clicks for all aliases.\").optional(),\n limit: z.number().int().describe(\"Maximum number of click records to return (must be >= 1)\").optional(),\n cursor: z.string().describe(\"Cursor token for pagination to fetch the next set of clicks\").optional(),\n}).describe(\"Request parameters for retrieving click data for shortened URLs.\");\nconst ShortenRestGetClicks_ClickRecordSchema = z.object({\n os: z.string().describe(\"Operating system of the visitor\").nullable().optional(),\n alias: z.string().describe(\"The alias that was clicked\").nullable().optional(),\n country: z.string().describe(\"Country code of the visitor\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL if available\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp when the click occurred\").nullable().optional(),\n}).passthrough().describe(\"Represents a single click event record.\");\nexport const ShortenRestGetClicksOutput = z.object({\n clicks: z.array(ShortenRestGetClicks_ClickRecordSchema).describe(\"List of click records. Each record contains details about a click event.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to retrieve the next page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for click data of shortened URLs.\");\n\nexport const shortenRestGetClicks = action(\"SHORTEN_REST_GET_CLICKS\", {\n slug: \"shorten_rest-get-clicks\",\n name: \"Get click data for aliases\",\n description: \"Tool to retrieve click data for shortened URLs. Use to check click analytics for your aliases. Returns a list of click records which may be empty if no clicks have occurred yet. Returned records may represent a limited window or subset of historical clicks rather than complete per-click logs.\",\n input: ShortenRestGetClicksInput,\n output: ShortenRestGetClicksOutput,\n});\n"],"mappings":";;;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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,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,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -9,7 +9,7 @@ const ShortenRestListAliasesByDomainInput = zod.z.object({
9
9
  const ShortenRestListAliasesByDomainOutput = zod.z.object({
10
10
  aliases: zod.z.array(zod.z.string()).describe("List of alias names (short codes) associated with the domain").nullable().optional(),
11
11
  last_id: zod.z.string().describe("ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.").nullable().optional()
12
- }).describe("Response schema containing a list of alias names and pagination cursor.");
12
+ }).passthrough().describe("Response schema containing a list of alias names and pagination cursor.");
13
13
  const shortenRestListAliasesByDomain = require_action.action("SHORTEN_REST_LIST_ALIASES_BY_DOMAIN", {
14
14
  slug: "shorten_rest-list-aliases-by-domain",
15
15
  name: "List aliases by domain",
@@ -1 +1 @@
1
- {"version":3,"file":"list-aliases-by-domain.cjs","names":["z","action"],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestListAliasesByDomainInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.\").optional(),\n domain_name: z.string().describe(\"The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.\").optional(),\n continue_from: z.string().describe(\"An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.\").optional(),\n}).describe(\"Request parameters for retrieving alias names by domain with pagination support.\");\nexport const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny = z.object({\n aliases: z.array(z.string()).describe(\"List of alias names (short codes) associated with the domain\").nullable().optional(),\n last_id: z.string().describe(\"ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.\").nullable().optional(),\n}).describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACpK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-aliases-by-domain.cjs","names":["z","action"],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestListAliasesByDomainInput = z.object({\n limit: z.number().int().describe(\"Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.\").optional(),\n domain_name: z.string().describe(\"The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.\").optional(),\n continue_from: z.string().describe(\"An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.\").optional(),\n}).describe(\"Request parameters for retrieving alias names by domain with pagination support.\");\nexport const ShortenRestListAliasesByDomainOutput = z.object({\n aliases: z.array(z.string()).describe(\"List of alias names (short codes) associated with the domain\").nullable().optional(),\n last_id: z.string().describe(\"ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;;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,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,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.ZodTypeAny;
5
- declare const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny;
6
- declare const shortenRestListAliasesByDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$loose>;
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,EAAqC,CAAA,CAAE,UAI2C;AAAA,cAClF,oCAAA,EAAsC,CAAA,CAAE,UAGiC;AAAA,cAEzE,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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.ZodTypeAny;
5
- declare const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny;
6
- declare const shortenRestListAliasesByDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$loose>;
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,EAAqC,CAAA,CAAE,UAI2C;AAAA,cAClF,oCAAA,EAAsC,CAAA,CAAE,UAGiC;AAAA,cAEzE,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -12,7 +12,7 @@ const shortenRestListAliasesByDomain = action("SHORTEN_REST_LIST_ALIASES_BY_DOMA
12
12
  output: z.object({
13
13
  aliases: z.array(z.string()).describe("List of alias names (short codes) associated with the domain").nullable().optional(),
14
14
  last_id: z.string().describe("ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.").nullable().optional()
15
- }).describe("Response schema containing a list of alias names and pagination cursor.")
15
+ }).passthrough().describe("Response schema containing a list of alias names and pagination cursor.")
16
16
  });
17
17
  //#endregion
18
18
  export { shortenRestListAliasesByDomain };
@@ -1 +1 @@
1
- {"version":3,"file":"list-aliases-by-domain.mjs","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestListAliasesByDomainInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.\").optional(),\n domain_name: z.string().describe(\"The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.\").optional(),\n continue_from: z.string().describe(\"An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.\").optional(),\n}).describe(\"Request parameters for retrieving alias names by domain with pagination support.\");\nexport const ShortenRestListAliasesByDomainOutput: z.ZodTypeAny = z.object({\n aliases: z.array(z.string()).describe(\"List of alias names (short codes) associated with the domain\").nullable().optional(),\n last_id: z.string().describe(\"ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.\").nullable().optional(),\n}).describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;AAcA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+D,EAAE,OAAO;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EACxI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EACpK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAClK,CAAC,CAAC,CAAC,SAAS,kFAUH;CACP,QAVgE,EAAE,OAAO;EACzE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,yEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-aliases-by-domain.mjs","names":[],"sources":["../../src/actions/list-aliases-by-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestListAliasesByDomainInput = z.object({\n limit: z.number().int().describe(\"Number of results to return per request (must be >= 1). Defaults to 1000 if not specified.\").optional(),\n domain_name: z.string().describe(\"The domain name to get the aliases for (string without `http/https` or `/`). If not provided, defaults to 'short.fyi'.\").optional(),\n continue_from: z.string().describe(\"An ID returned by a previous query to continue aliases retrieval (see last_id in response). Used for pagination.\").optional(),\n}).describe(\"Request parameters for retrieving alias names by domain with pagination support.\");\nexport const ShortenRestListAliasesByDomainOutput = z.object({\n aliases: z.array(z.string()).describe(\"List of alias names (short codes) associated with the domain\").nullable().optional(),\n last_id: z.string().describe(\"ID of the last alias in the current result set. Use this value in the continue_from parameter to retrieve the next page.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing a list of alias names and pagination cursor.\");\n\nexport const shortenRestListAliasesByDomain = action(\"SHORTEN_REST_LIST_ALIASES_BY_DOMAIN\", {\n slug: \"shorten_rest-list-aliases-by-domain\",\n name: \"List aliases by domain\",\n description: \"Tool to retrieve all alias names associated with your account and a given domain. Results are in descending order by creation date. Use when you need to list alias names (not full details) for a specific domain with pagination support.\",\n input: ShortenRestListAliasesByDomainInput,\n output: ShortenRestListAliasesByDomainOutput,\n});\n"],"mappings":";;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,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
@@ -5,20 +5,20 @@ const ShortenRestUpdateAliasInput = zod.z.object({
5
5
  metatags: zod.z.array(zod.z.object({
6
6
  name: zod.z.string().describe("Name of the metatag (e.g., 'og:title', 'description')"),
7
7
  content: zod.z.string().describe("Content/value of the metatag")
8
- }).describe("Represents a metatag for the alias.")).describe("List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
8
+ }).passthrough().describe("Represents a metatag for the alias.")).describe("List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
9
9
  snippets: zod.z.array(zod.z.object({
10
10
  id: zod.z.string().describe("Snippet identifier"),
11
- parameters: zod.z.object({}).describe("Snippet parameters as key-value pairs").optional()
12
- }).describe("Represents a snippet configuration.")).describe("List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
11
+ parameters: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Snippet parameters as key-value pairs").optional()
12
+ }).passthrough().describe("Represents a snippet configuration.")).describe("List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
13
13
  aliasName: zod.z.string().describe("The alias name to update (without leading slash, e.g., 'aBcDe012')"),
14
14
  domainName: zod.z.string().default("short.fyi").describe("Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.").optional(),
15
15
  destinations: zod.z.array(zod.z.object({
16
16
  os: zod.z.string().describe("Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')").optional(),
17
17
  url: zod.z.string().describe("The destination URL where the alias redirects to"),
18
18
  country: zod.z.string().describe("Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')").optional()
19
- }).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.").optional()
19
+ }).passthrough().describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.").optional()
20
20
  }).describe("Request parameters for updating a URL alias.\nQuery parameters identify the alias, body contains the updates.");
21
- const ShortenRestUpdateAliasOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates successful update operation").nullable().optional() }).describe("Response model for updating an alias. Returns empty object on success.");
21
+ const ShortenRestUpdateAliasOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates successful update operation").nullable().optional() }).passthrough().describe("Response model for updating an alias. Returns empty object on success.");
22
22
  const shortenRestUpdateAlias = require_action.action("SHORTEN_REST_UPDATE_ALIAS", {
23
23
  slug: "shorten_rest-update-alias",
24
24
  name: "Update Alias",
@@ -1 +1 @@
1
- {"version":3,"file":"update-alias.cjs","names":["z","action"],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestUpdateAliasInput: z.ZodTypeAny = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag (e.g., 'og:title', 'description')\"),\n content: z.string().describe(\"Content/value of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC7D,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACzN,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACzN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpK,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACpH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;AAChR,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-alias.cjs","names":["z","action"],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestUpdateAliasInput = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag (e.g., 'og:title', 'description')\"),\n content: z.string().describe(\"Content/value of the metatag\"),\n}).passthrough().describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;;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,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACvO,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC5C,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACvO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpK,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACpH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;AAC9R,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-alias.d.ts
4
- declare const ShortenRestUpdateAliasInput: z.ZodTypeAny;
5
- declare const ShortenRestUpdateAliasOutput: z.ZodTypeAny;
6
- declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$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.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.$loose>>>;
20
+ }, z.core.$strip>;
21
+ declare const ShortenRestUpdateAliasOutput: z.ZodObject<{
22
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
23
+ }, z.core.$loose>;
24
+ declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ aliasName: string;
26
+ metatags?: {
27
+ [x: string]: unknown;
28
+ name: string;
29
+ content: string;
30
+ }[] | undefined;
31
+ snippets?: {
32
+ [x: string]: unknown;
33
+ id: string;
34
+ parameters?: Record<string, unknown> | undefined;
35
+ }[] | undefined;
36
+ domainName?: string | undefined;
37
+ destinations?: {
38
+ [x: string]: unknown;
39
+ url: string;
40
+ os?: string | undefined;
41
+ country?: string | undefined;
42
+ }[] | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { shortenRestUpdateAlias };
9
46
  //# 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,EAA6B,CAAA,CAAE,UAgBgF;AAAA,cAC/G,4BAAA,EAA8B,CAAA,CAAE,UAEwC;AAAA,cAExE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-alias.d.ts
4
- declare const ShortenRestUpdateAliasInput: z.ZodTypeAny;
5
- declare const ShortenRestUpdateAliasOutput: z.ZodTypeAny;
6
- declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$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.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.$loose>>>;
20
+ }, z.core.$strip>;
21
+ declare const ShortenRestUpdateAliasOutput: z.ZodObject<{
22
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
23
+ }, z.core.$loose>;
24
+ declare const shortenRestUpdateAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ aliasName: string;
26
+ metatags?: {
27
+ [x: string]: unknown;
28
+ name: string;
29
+ content: string;
30
+ }[] | undefined;
31
+ snippets?: {
32
+ [x: string]: unknown;
33
+ id: string;
34
+ parameters?: Record<string, unknown> | undefined;
35
+ }[] | undefined;
36
+ domainName?: string | undefined;
37
+ destinations?: {
38
+ [x: string]: unknown;
39
+ url: string;
40
+ os?: string | undefined;
41
+ country?: string | undefined;
42
+ }[] | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { shortenRestUpdateAlias };
9
46
  //# 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,EAA6B,CAAA,CAAE,UAgBgF;AAAA,cAC/G,4BAAA,EAA8B,CAAA,CAAE,UAEwC;AAAA,cAExE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -8,20 +8,20 @@ const shortenRestUpdateAlias = action("SHORTEN_REST_UPDATE_ALIAS", {
8
8
  metatags: z.array(z.object({
9
9
  name: z.string().describe("Name of the metatag (e.g., 'og:title', 'description')"),
10
10
  content: z.string().describe("Content/value of the metatag")
11
- }).describe("Represents a metatag for the alias.")).describe("List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
11
+ }).passthrough().describe("Represents a metatag for the alias.")).describe("List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
12
12
  snippets: z.array(z.object({
13
13
  id: z.string().describe("Snippet identifier"),
14
- parameters: z.object({}).describe("Snippet parameters as key-value pairs").optional()
15
- }).describe("Represents a snippet configuration.")).describe("List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
14
+ parameters: z.record(z.string(), z.unknown()).describe("Snippet parameters as key-value pairs").optional()
15
+ }).passthrough().describe("Represents a snippet configuration.")).describe("List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.").optional(),
16
16
  aliasName: z.string().describe("The alias name to update (without leading slash, e.g., 'aBcDe012')"),
17
17
  domainName: z.string().default("short.fyi").describe("Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.").optional(),
18
18
  destinations: z.array(z.object({
19
19
  os: z.string().describe("Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')").optional(),
20
20
  url: z.string().describe("The destination URL where the alias redirects to"),
21
21
  country: z.string().describe("Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')").optional()
22
- }).describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.").optional()
22
+ }).passthrough().describe("Represents a destination URL with optional geo-targeting.")).describe("List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.").optional()
23
23
  }).describe("Request parameters for updating a URL alias.\nQuery parameters identify the alias, body contains the updates."),
24
- output: z.object({ success: z.boolean().default(true).describe("Indicates successful update operation").nullable().optional() }).describe("Response model for updating an alias. Returns empty object on success.")
24
+ output: z.object({ success: z.boolean().default(true).describe("Indicates successful update operation").nullable().optional() }).passthrough().describe("Response model for updating an alias. Returns empty object on success.")
25
25
  });
26
26
  //#endregion
27
27
  export { shortenRestUpdateAlias };
@@ -1 +1 @@
1
- {"version":3,"file":"update-alias.mjs","names":[],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestUpdateAliasInput: z.ZodTypeAny = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag (e.g., 'og:title', 'description')\"),\n content: z.string().describe(\"Content/value of the metatag\"),\n}).describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.object({}).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;AAyBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBuD,EAAE,OAAO;EAChE,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;GACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC7D,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACzN,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACtF,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACzN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACpK,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;GACpH,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;GAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAChR,CAAC,CAAC,CAAC,SAAS,+GASH;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-alias.mjs","names":[],"sources":["../../src/actions/update-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortenRestUpdateAliasInput = z.object({\n metatags: z.array(z.object({\n name: z.string().describe(\"Name of the metatag (e.g., 'og:title', 'description')\"),\n content: z.string().describe(\"Content/value of the metatag\"),\n}).passthrough().describe(\"Represents a metatag for the alias.\")).describe(\"List of metatags to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n snippets: z.array(z.object({\n id: z.string().describe(\"Snippet identifier\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"Snippet parameters as key-value pairs\").optional(),\n}).passthrough().describe(\"Represents a snippet configuration.\")).describe(\"List of snippets to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep.\").optional(),\n aliasName: z.string().describe(\"The alias name to update (without leading slash, e.g., 'aBcDe012')\"),\n domainName: z.string().default(\"short.fyi\").describe(\"Domain which the alias belongs to (without http/https or trailing slash). Defaults to 'short.fyi'.\").optional(),\n destinations: z.array(z.object({\n os: z.string().describe(\"Target operating system for the destination (e.g., 'iOS', 'Android', 'Windows')\").optional(),\n url: z.string().describe(\"The destination URL where the alias redirects to\"),\n country: z.string().describe(\"Target country for geo-targeting (ISO country code, e.g., 'US', 'GB')\").optional(),\n}).passthrough().describe(\"Represents a destination URL with optional geo-targeting.\")).describe(\"List of destination URLs to update. IMPORTANT: When updating array properties, the entire block is replaced, so include all old records you want to keep to avoid deleting them.\").optional(),\n}).describe(\"Request parameters for updating a URL alias.\\nQuery parameters identify the alias, body contains the updates.\");\nexport const ShortenRestUpdateAliasOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful update operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating an alias. Returns empty object on success.\");\n\nexport const shortenRestUpdateAlias = action(\"SHORTEN_REST_UPDATE_ALIAS\", {\n slug: \"shorten_rest-update-alias\",\n name: \"Update Alias\",\n description: \"Tool to update an existing short URL alias by providing its alias name and domain. Use when you need to modify destinations, metatags, or snippets for an existing alias. IMPORTANT: When updating array properties (like destinations), the entire array is replaced, so you must include all existing records you want to keep.\",\n input: ShortenRestUpdateAliasInput,\n output: ShortenRestUpdateAliasOutput,\n});\n"],"mappings":";;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,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACvO,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GAC5C,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACvO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACpK,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;GACpH,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;GAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC9R,CAAC,CAAC,CAAC,SAAS,+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,YAAY,CAAC,CAAC,SAAS,wEAOhB;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;
@@ -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;AAClB"}
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"}
@@ -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 };
@@ -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 };
@@ -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;AAClB"}
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"}