@keystrokehq/supadata 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/get-me.cjs +21 -0
  7. package/dist/actions/get-me.cjs.map +1 -0
  8. package/dist/actions/get-me.d.cts +9 -0
  9. package/dist/actions/get-me.d.cts.map +1 -0
  10. package/dist/actions/get-me.d.mts +9 -0
  11. package/dist/actions/get-me.d.mts.map +1 -0
  12. package/dist/actions/get-me.mjs +18 -0
  13. package/dist/actions/get-me.mjs.map +1 -0
  14. package/dist/actions/get-transcript-by-job-id.cjs +39 -0
  15. package/dist/actions/get-transcript-by-job-id.cjs.map +1 -0
  16. package/dist/actions/get-transcript-by-job-id.d.cts +9 -0
  17. package/dist/actions/get-transcript-by-job-id.d.cts.map +1 -0
  18. package/dist/actions/get-transcript-by-job-id.d.mts +9 -0
  19. package/dist/actions/get-transcript-by-job-id.d.mts.map +1 -0
  20. package/dist/actions/get-transcript-by-job-id.mjs +38 -0
  21. package/dist/actions/get-transcript-by-job-id.mjs.map +1 -0
  22. package/dist/actions/get-transcript.cjs +36 -0
  23. package/dist/actions/get-transcript.cjs.map +1 -0
  24. package/dist/actions/get-transcript.d.cts +9 -0
  25. package/dist/actions/get-transcript.d.cts.map +1 -0
  26. package/dist/actions/get-transcript.d.mts +9 -0
  27. package/dist/actions/get-transcript.d.mts.map +1 -0
  28. package/dist/actions/get-transcript.mjs +35 -0
  29. package/dist/actions/get-transcript.mjs.map +1 -0
  30. package/dist/actions/get-web-map.cjs +19 -0
  31. package/dist/actions/get-web-map.cjs.map +1 -0
  32. package/dist/actions/get-web-map.d.cts +9 -0
  33. package/dist/actions/get-web-map.d.cts.map +1 -0
  34. package/dist/actions/get-web-map.d.mts +9 -0
  35. package/dist/actions/get-web-map.d.mts.map +1 -0
  36. package/dist/actions/get-web-map.mjs +16 -0
  37. package/dist/actions/get-web-map.mjs.map +1 -0
  38. package/dist/actions/get-web-scrape.cjs +28 -0
  39. package/dist/actions/get-web-scrape.cjs.map +1 -0
  40. package/dist/actions/get-web-scrape.d.cts +9 -0
  41. package/dist/actions/get-web-scrape.d.cts.map +1 -0
  42. package/dist/actions/get-web-scrape.d.mts +9 -0
  43. package/dist/actions/get-web-scrape.d.mts.map +1 -0
  44. package/dist/actions/get-web-scrape.mjs +25 -0
  45. package/dist/actions/get-web-scrape.mjs.map +1 -0
  46. package/dist/actions/get-youtube-channel-videos.cjs +29 -0
  47. package/dist/actions/get-youtube-channel-videos.cjs.map +1 -0
  48. package/dist/actions/get-youtube-channel-videos.d.cts +9 -0
  49. package/dist/actions/get-youtube-channel-videos.d.cts.map +1 -0
  50. package/dist/actions/get-youtube-channel-videos.d.mts +9 -0
  51. package/dist/actions/get-youtube-channel-videos.d.mts.map +1 -0
  52. package/dist/actions/get-youtube-channel-videos.mjs +26 -0
  53. package/dist/actions/get-youtube-channel-videos.mjs.map +1 -0
  54. package/dist/actions/get-youtube-channel.cjs +26 -0
  55. package/dist/actions/get-youtube-channel.cjs.map +1 -0
  56. package/dist/actions/get-youtube-channel.d.cts +9 -0
  57. package/dist/actions/get-youtube-channel.d.cts.map +1 -0
  58. package/dist/actions/get-youtube-channel.d.mts +9 -0
  59. package/dist/actions/get-youtube-channel.d.mts.map +1 -0
  60. package/dist/actions/get-youtube-channel.mjs +23 -0
  61. package/dist/actions/get-youtube-channel.mjs.map +1 -0
  62. package/dist/actions/get-youtube-playlist-videos.cjs +23 -0
  63. package/dist/actions/get-youtube-playlist-videos.cjs.map +1 -0
  64. package/dist/actions/get-youtube-playlist-videos.d.cts +9 -0
  65. package/dist/actions/get-youtube-playlist-videos.d.cts.map +1 -0
  66. package/dist/actions/get-youtube-playlist-videos.d.mts +9 -0
  67. package/dist/actions/get-youtube-playlist-videos.d.mts.map +1 -0
  68. package/dist/actions/get-youtube-playlist-videos.mjs +20 -0
  69. package/dist/actions/get-youtube-playlist-videos.mjs.map +1 -0
  70. package/dist/actions/get-youtube-playlist.cjs +28 -0
  71. package/dist/actions/get-youtube-playlist.cjs.map +1 -0
  72. package/dist/actions/get-youtube-playlist.d.cts +9 -0
  73. package/dist/actions/get-youtube-playlist.d.cts.map +1 -0
  74. package/dist/actions/get-youtube-playlist.d.mts +9 -0
  75. package/dist/actions/get-youtube-playlist.d.mts.map +1 -0
  76. package/dist/actions/get-youtube-playlist.mjs +27 -0
  77. package/dist/actions/get-youtube-playlist.mjs.map +1 -0
  78. package/dist/actions/get-youtube-video.cjs +33 -0
  79. package/dist/actions/get-youtube-video.cjs.map +1 -0
  80. package/dist/actions/get-youtube-video.d.cts +9 -0
  81. package/dist/actions/get-youtube-video.d.cts.map +1 -0
  82. package/dist/actions/get-youtube-video.d.mts +9 -0
  83. package/dist/actions/get-youtube-video.d.mts.map +1 -0
  84. package/dist/actions/get-youtube-video.mjs +32 -0
  85. package/dist/actions/get-youtube-video.mjs.map +1 -0
  86. package/dist/actions/index.cjs +23 -0
  87. package/dist/actions/index.d.cts +12 -0
  88. package/dist/actions/index.d.mts +12 -0
  89. package/dist/actions/index.mjs +12 -0
  90. package/dist/actions/search-youtube.cjs +29 -0
  91. package/dist/actions/search-youtube.cjs.map +1 -0
  92. package/dist/actions/search-youtube.d.cts +9 -0
  93. package/dist/actions/search-youtube.d.cts.map +1 -0
  94. package/dist/actions/search-youtube.d.mts +9 -0
  95. package/dist/actions/search-youtube.d.mts.map +1 -0
  96. package/dist/actions/search-youtube.mjs +26 -0
  97. package/dist/actions/search-youtube.mjs.map +1 -0
  98. package/dist/app.cjs +9 -0
  99. package/dist/app.cjs.map +1 -0
  100. package/dist/app.d.cts +5 -0
  101. package/dist/app.d.cts.map +1 -0
  102. package/dist/app.d.mts +5 -0
  103. package/dist/app.d.mts.map +1 -0
  104. package/dist/app.mjs +10 -0
  105. package/dist/app.mjs.map +1 -0
  106. package/dist/catalog.cjs +15 -0
  107. package/dist/catalog.cjs.map +1 -0
  108. package/dist/catalog.d.cts +14 -0
  109. package/dist/catalog.d.cts.map +1 -0
  110. package/dist/catalog.d.mts +14 -0
  111. package/dist/catalog.d.mts.map +1 -0
  112. package/dist/catalog.mjs +15 -0
  113. package/dist/catalog.mjs.map +1 -0
  114. package/dist/execute.cjs +18 -0
  115. package/dist/execute.cjs.map +1 -0
  116. package/dist/execute.mjs +18 -0
  117. package/dist/execute.mjs.map +1 -0
  118. package/dist/index.cjs +28 -0
  119. package/dist/index.d.cts +14 -0
  120. package/dist/index.d.mts +14 -0
  121. package/dist/index.mjs +15 -0
  122. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/supadata
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `supadata`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 11
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { supadataGetMe } from "@keystrokehq/supadata/actions";
12
+
13
+ export default defineAgent({
14
+ key: "supadata-agent",
15
+ tools: [supadataGetMe],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.supadata.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeSupadataTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["supadata","executeSupadataTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { supadata } from \"./app\";\nimport { executeSupadataTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return supadata.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSupadataTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,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,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { supadata } from "./app.mjs";
2
+ import { executeSupadataTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return supadata.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeSupadataTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { supadata } from \"./app\";\nimport { executeSupadataTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return supadata.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSupadataTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-me.ts
4
+ const SupadataGetMeInput = zod.z.object({}).describe("Request parameters for GET_ME.\nNo parameters required - authentication is handled via API key in headers.");
5
+ const SupadataGetMeOutput = zod.z.object({
6
+ plan: zod.z.string().describe("Subscription plan name"),
7
+ maxCredits: zod.z.number().describe("Maximum credits available for the current billing period"),
8
+ usedCredits: zod.z.number().describe("Number of credits used in the current billing period"),
9
+ organizationId: zod.z.string().describe("Unique identifier for the organization")
10
+ }).describe("Response schema for GET_ME.\nContains organization details, plan information, and credit usage.");
11
+ const supadataGetMe = require_action.action("SUPADATA_GET_ME", {
12
+ slug: "supadata-get-me",
13
+ name: "Get Account Information",
14
+ description: "Retrieve organization details, plan information, and credit usage for the authenticated account. Use this to check account status, credit balance, and subscription plan.",
15
+ input: SupadataGetMeInput,
16
+ output: SupadataGetMeOutput
17
+ });
18
+ //#endregion
19
+ exports.supadataGetMe = supadataGetMe;
20
+
21
+ //# sourceMappingURL=get-me.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-me.cjs","names":["z","action"],"sources":["../../src/actions/get-me.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetMeInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for GET_ME.\\nNo parameters required - authentication is handled via API key in headers.\");\nexport const SupadataGetMeOutput: z.ZodTypeAny = z.object({\n plan: z.string().describe(\"Subscription plan name\"),\n maxCredits: z.number().describe(\"Maximum credits available for the current billing period\"),\n usedCredits: z.number().describe(\"Number of credits used in the current billing period\"),\n organizationId: z.string().describe(\"Unique identifier for the organization\"),\n}).describe(\"Response schema for GET_ME.\\nContains organization details, plan information, and credit usage.\");\n\nexport const supadataGetMe = action(\"SUPADATA_GET_ME\", {\n slug: \"supadata-get-me\",\n name: \"Get Account Information\",\n description: \"Retrieve organization details, plan information, and credit usage for the authenticated account. Use this to check account status, credit balance, and subscription plan.\",\n input: SupadataGetMeInput,\n output: SupadataGetMeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4GAA4G;AAClL,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC9E,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAE7G,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-me.d.ts
4
+ declare const SupadataGetMeInput: z.ZodTypeAny;
5
+ declare const SupadataGetMeOutput: z.ZodTypeAny;
6
+ declare const supadataGetMe: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetMe };
9
+ //# sourceMappingURL=get-me.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-me.d.cts","names":[],"sources":["../../src/actions/get-me.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAAgJ;AAAA,cACtK,mBAAA,EAAqB,CAAA,CAAE,UAK0E;AAAA,cAEjG,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-me.d.ts
4
+ declare const SupadataGetMeInput: z.ZodTypeAny;
5
+ declare const SupadataGetMeOutput: z.ZodTypeAny;
6
+ declare const supadataGetMe: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetMe };
9
+ //# sourceMappingURL=get-me.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-me.d.mts","names":[],"sources":["../../src/actions/get-me.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAAgJ;AAAA,cACtK,mBAAA,EAAqB,CAAA,CAAE,UAK0E;AAAA,cAEjG,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,18 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const supadataGetMe = action("SUPADATA_GET_ME", {
4
+ slug: "supadata-get-me",
5
+ name: "Get Account Information",
6
+ description: "Retrieve organization details, plan information, and credit usage for the authenticated account. Use this to check account status, credit balance, and subscription plan.",
7
+ input: z.object({}).describe("Request parameters for GET_ME.\nNo parameters required - authentication is handled via API key in headers."),
8
+ output: z.object({
9
+ plan: z.string().describe("Subscription plan name"),
10
+ maxCredits: z.number().describe("Maximum credits available for the current billing period"),
11
+ usedCredits: z.number().describe("Number of credits used in the current billing period"),
12
+ organizationId: z.string().describe("Unique identifier for the organization")
13
+ }).describe("Response schema for GET_ME.\nContains organization details, plan information, and credit usage.")
14
+ });
15
+ //#endregion
16
+ export { supadataGetMe };
17
+
18
+ //# sourceMappingURL=get-me.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-me.mjs","names":[],"sources":["../../src/actions/get-me.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetMeInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for GET_ME.\\nNo parameters required - authentication is handled via API key in headers.\");\nexport const SupadataGetMeOutput: z.ZodTypeAny = z.object({\n plan: z.string().describe(\"Subscription plan name\"),\n maxCredits: z.number().describe(\"Maximum credits available for the current billing period\"),\n usedCredits: z.number().describe(\"Number of credits used in the current billing period\"),\n organizationId: z.string().describe(\"Unique identifier for the organization\"),\n}).describe(\"Response schema for GET_ME.\\nContains organization details, plan information, and credit usage.\");\n\nexport const supadataGetMe = action(\"SUPADATA_GET_ME\", {\n slug: \"supadata-get-me\",\n name: \"Get Account Information\",\n description: \"Retrieve organization details, plan information, and credit usage for the authenticated account. Use this to check account status, credit balance, and subscription plan.\",\n input: SupadataGetMeInput,\n output: SupadataGetMeOutput,\n});\n"],"mappings":";;AAYA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4GAY7D;CACP,QAZ+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC9E,CAAC,CAAC,CAAC,SAAS,iGAOF;AACV,CAAC"}
@@ -0,0 +1,39 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-transcript-by-job-id.ts
4
+ const SupadataGetTranscriptByJobIdInput = zod.z.object({ job_id: zod.z.string().describe("The unique job ID of the transcript job. This is returned when you submit a transcript request. Example: '41060930-5273-4a89-80a2-9ba5ea5bc03f'.") }).describe("Request parameters for GET_TRANSCRIPT_BY_JOB_ID.");
5
+ const SupadataGetTranscriptByJobId_ErrorInfoSchema = zod.z.object({
6
+ error: zod.z.string().describe("Error type or code."),
7
+ details: zod.z.string().describe("Additional error details."),
8
+ message: zod.z.string().describe("Human-readable error message."),
9
+ documentationUrl: zod.z.string().describe("URL to documentation about the error.").nullable().optional()
10
+ }).describe("Error information if the job failed.");
11
+ const SupadataGetTranscriptByJobId_JobStatusSchema = zod.z.enum([
12
+ "queued",
13
+ "active",
14
+ "completed",
15
+ "failed"
16
+ ]).describe("Status of the transcript job.");
17
+ const SupadataGetTranscriptByJobId_TranscriptSegmentSchema = zod.z.object({
18
+ end: zod.z.number().describe("End time in seconds.").nullable().optional(),
19
+ text: zod.z.string().describe("The text content of this segment.").nullable().optional(),
20
+ start: zod.z.number().describe("Start time in seconds.").nullable().optional()
21
+ }).describe("A segment of the transcript with timing information.");
22
+ const SupadataGetTranscriptByJobIdOutput = zod.z.object({
23
+ lang: zod.z.string().describe("ISO 639-1 language code of the transcript (e.g., 'en', 'es', 'zh-TW').").nullable().optional(),
24
+ error: SupadataGetTranscriptByJobId_ErrorInfoSchema.nullable().optional(),
25
+ status: SupadataGetTranscriptByJobId_JobStatusSchema.nullable(),
26
+ content: zod.z.union([zod.z.array(SupadataGetTranscriptByJobId_TranscriptSegmentSchema), zod.z.string()]).nullable().optional(),
27
+ availableLangs: zod.z.array(zod.z.string()).describe("List of available language codes for the transcript.").nullable().optional()
28
+ }).describe("Response schema for GET_TRANSCRIPT_BY_JOB_ID containing transcript job results.");
29
+ const supadataGetTranscriptByJobId = require_action.action("SUPADATA_GET_TRANSCRIPT_BY_JOB_ID", {
30
+ slug: "supadata-get-transcript-by-job-id",
31
+ name: "Get Transcript by Job ID",
32
+ description: "Get results for a transcript job by job ID. Use this to retrieve results of asynchronous transcript processing. Check the status field to determine if the job is complete.",
33
+ input: SupadataGetTranscriptByJobIdInput,
34
+ output: SupadataGetTranscriptByJobIdOutput
35
+ });
36
+ //#endregion
37
+ exports.supadataGetTranscriptByJobId = supadataGetTranscriptByJobId;
38
+
39
+ //# sourceMappingURL=get-transcript-by-job-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript-by-job-id.cjs","names":["z","action"],"sources":["../../src/actions/get-transcript-by-job-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetTranscriptByJobIdInput: z.ZodTypeAny = z.object({\n job_id: z.string().describe(\"The unique job ID of the transcript job. This is returned when you submit a transcript request. Example: '41060930-5273-4a89-80a2-9ba5ea5bc03f'.\"),\n}).describe(\"Request parameters for GET_TRANSCRIPT_BY_JOB_ID.\");\nconst SupadataGetTranscriptByJobId_ErrorInfoSchema: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error type or code.\"),\n details: z.string().describe(\"Additional error details.\"),\n message: z.string().describe(\"Human-readable error message.\"),\n documentationUrl: z.string().describe(\"URL to documentation about the error.\").nullable().optional(),\n}).describe(\"Error information if the job failed.\");\nconst SupadataGetTranscriptByJobId_JobStatusSchema: z.ZodTypeAny = z.enum([\"queued\", \"active\", \"completed\", \"failed\"]).describe(\"Status of the transcript job.\");\nconst SupadataGetTranscriptByJobId_TranscriptSegmentSchema: z.ZodTypeAny = z.object({\n end: z.number().describe(\"End time in seconds.\").nullable().optional(),\n text: z.string().describe(\"The text content of this segment.\").nullable().optional(),\n start: z.number().describe(\"Start time in seconds.\").nullable().optional(),\n}).describe(\"A segment of the transcript with timing information.\");\nexport const SupadataGetTranscriptByJobIdOutput: z.ZodTypeAny = z.object({\n lang: z.string().describe(\"ISO 639-1 language code of the transcript (e.g., 'en', 'es', 'zh-TW').\").nullable().optional(),\n error: SupadataGetTranscriptByJobId_ErrorInfoSchema.nullable().optional(),\n status: SupadataGetTranscriptByJobId_JobStatusSchema.nullable(),\n content: z.union([z.array(SupadataGetTranscriptByJobId_TranscriptSegmentSchema), z.string()]).nullable().optional(),\n availableLangs: z.array(z.string()).describe(\"List of available language codes for the transcript.\").nullable().optional(),\n}).describe(\"Response schema for GET_TRANSCRIPT_BY_JOB_ID containing transcript job results.\");\n\nexport const supadataGetTranscriptByJobId = action(\"SUPADATA_GET_TRANSCRIPT_BY_JOB_ID\", {\n slug: \"supadata-get-transcript-by-job-id\",\n name: \"Get Transcript by Job ID\",\n description: \"Get results for a transcript job by job ID. Use this to retrieve results of asynchronous transcript processing. Check the status field to determine if the job is complete.\",\n input: SupadataGetTranscriptByJobIdInput,\n output: SupadataGetTranscriptByJobIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,EAChL,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,+CAA6DA,IAAAA,EAAE,KAAK;CAAC;CAAU;CAAU;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC/J,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,6CAA6C,SAAS;CAC9D,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAM,oDAAoD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,+BAA+BC,eAAAA,OAAO,qCAAqC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-transcript-by-job-id.d.ts
4
+ declare const SupadataGetTranscriptByJobIdInput: z.ZodTypeAny;
5
+ declare const SupadataGetTranscriptByJobIdOutput: z.ZodTypeAny;
6
+ declare const supadataGetTranscriptByJobId: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetTranscriptByJobId };
9
+ //# sourceMappingURL=get-transcript-by-job-id.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript-by-job-id.d.cts","names":[],"sources":["../../src/actions/get-transcript-by-job-id.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEa;AAAA,cAalD,kCAAA,EAAoC,CAAA,CAAE,UAM2C;AAAA,cAEjF,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-transcript-by-job-id.d.ts
4
+ declare const SupadataGetTranscriptByJobIdInput: z.ZodTypeAny;
5
+ declare const SupadataGetTranscriptByJobIdOutput: z.ZodTypeAny;
6
+ declare const supadataGetTranscriptByJobId: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetTranscriptByJobId };
9
+ //# sourceMappingURL=get-transcript-by-job-id.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript-by-job-id.d.mts","names":[],"sources":["../../src/actions/get-transcript-by-job-id.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEa;AAAA,cAalD,kCAAA,EAAoC,CAAA,CAAE,UAM2C;AAAA,cAEjF,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,38 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-transcript-by-job-id.ts
4
+ const SupadataGetTranscriptByJobIdInput = z.object({ job_id: z.string().describe("The unique job ID of the transcript job. This is returned when you submit a transcript request. Example: '41060930-5273-4a89-80a2-9ba5ea5bc03f'.") }).describe("Request parameters for GET_TRANSCRIPT_BY_JOB_ID.");
5
+ const SupadataGetTranscriptByJobId_ErrorInfoSchema = z.object({
6
+ error: z.string().describe("Error type or code."),
7
+ details: z.string().describe("Additional error details."),
8
+ message: z.string().describe("Human-readable error message."),
9
+ documentationUrl: z.string().describe("URL to documentation about the error.").nullable().optional()
10
+ }).describe("Error information if the job failed.");
11
+ const SupadataGetTranscriptByJobId_JobStatusSchema = z.enum([
12
+ "queued",
13
+ "active",
14
+ "completed",
15
+ "failed"
16
+ ]).describe("Status of the transcript job.");
17
+ const SupadataGetTranscriptByJobId_TranscriptSegmentSchema = z.object({
18
+ end: z.number().describe("End time in seconds.").nullable().optional(),
19
+ text: z.string().describe("The text content of this segment.").nullable().optional(),
20
+ start: z.number().describe("Start time in seconds.").nullable().optional()
21
+ }).describe("A segment of the transcript with timing information.");
22
+ const supadataGetTranscriptByJobId = action("SUPADATA_GET_TRANSCRIPT_BY_JOB_ID", {
23
+ slug: "supadata-get-transcript-by-job-id",
24
+ name: "Get Transcript by Job ID",
25
+ description: "Get results for a transcript job by job ID. Use this to retrieve results of asynchronous transcript processing. Check the status field to determine if the job is complete.",
26
+ input: SupadataGetTranscriptByJobIdInput,
27
+ output: z.object({
28
+ lang: z.string().describe("ISO 639-1 language code of the transcript (e.g., 'en', 'es', 'zh-TW').").nullable().optional(),
29
+ error: SupadataGetTranscriptByJobId_ErrorInfoSchema.nullable().optional(),
30
+ status: SupadataGetTranscriptByJobId_JobStatusSchema.nullable(),
31
+ content: z.union([z.array(SupadataGetTranscriptByJobId_TranscriptSegmentSchema), z.string()]).nullable().optional(),
32
+ availableLangs: z.array(z.string()).describe("List of available language codes for the transcript.").nullable().optional()
33
+ }).describe("Response schema for GET_TRANSCRIPT_BY_JOB_ID containing transcript job results.")
34
+ });
35
+ //#endregion
36
+ export { supadataGetTranscriptByJobId };
37
+
38
+ //# sourceMappingURL=get-transcript-by-job-id.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript-by-job-id.mjs","names":[],"sources":["../../src/actions/get-transcript-by-job-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetTranscriptByJobIdInput: z.ZodTypeAny = z.object({\n job_id: z.string().describe(\"The unique job ID of the transcript job. This is returned when you submit a transcript request. Example: '41060930-5273-4a89-80a2-9ba5ea5bc03f'.\"),\n}).describe(\"Request parameters for GET_TRANSCRIPT_BY_JOB_ID.\");\nconst SupadataGetTranscriptByJobId_ErrorInfoSchema: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error type or code.\"),\n details: z.string().describe(\"Additional error details.\"),\n message: z.string().describe(\"Human-readable error message.\"),\n documentationUrl: z.string().describe(\"URL to documentation about the error.\").nullable().optional(),\n}).describe(\"Error information if the job failed.\");\nconst SupadataGetTranscriptByJobId_JobStatusSchema: z.ZodTypeAny = z.enum([\"queued\", \"active\", \"completed\", \"failed\"]).describe(\"Status of the transcript job.\");\nconst SupadataGetTranscriptByJobId_TranscriptSegmentSchema: z.ZodTypeAny = z.object({\n end: z.number().describe(\"End time in seconds.\").nullable().optional(),\n text: z.string().describe(\"The text content of this segment.\").nullable().optional(),\n start: z.number().describe(\"Start time in seconds.\").nullable().optional(),\n}).describe(\"A segment of the transcript with timing information.\");\nexport const SupadataGetTranscriptByJobIdOutput: z.ZodTypeAny = z.object({\n lang: z.string().describe(\"ISO 639-1 language code of the transcript (e.g., 'en', 'es', 'zh-TW').\").nullable().optional(),\n error: SupadataGetTranscriptByJobId_ErrorInfoSchema.nullable().optional(),\n status: SupadataGetTranscriptByJobId_JobStatusSchema.nullable(),\n content: z.union([z.array(SupadataGetTranscriptByJobId_TranscriptSegmentSchema), z.string()]).nullable().optional(),\n availableLangs: z.array(z.string()).describe(\"List of available language codes for the transcript.\").nullable().optional(),\n}).describe(\"Response schema for GET_TRANSCRIPT_BY_JOB_ID containing transcript job results.\");\n\nexport const supadataGetTranscriptByJobId = action(\"SUPADATA_GET_TRANSCRIPT_BY_JOB_ID\", {\n slug: \"supadata-get-transcript-by-job-id\",\n name: \"Get Transcript by Job ID\",\n description: \"Get results for a transcript job by job ID. Use this to retrieve results of asynchronous transcript processing. Check the status field to determine if the job is complete.\",\n input: SupadataGetTranscriptByJobIdInput,\n output: SupadataGetTranscriptByJobIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,EAChL,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,+CAA6D,EAAE,KAAK;CAAC;CAAU;CAAU;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC/J,MAAM,uDAAqE,EAAE,OAAO;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AASlE,MAAa,+BAA+B,OAAO,qCAAqC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACxE,QAAQ,6CAA6C,SAAS;EAC9D,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,oDAAoD,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-transcript.ts
4
+ const SupadataGetTranscriptInput = zod.z.object({
5
+ url: zod.z.string().describe("Video URL from any supported platform (YouTube, TikTok, Twitter, Instagram, Facebook) or a file URL. Example: 'https://youtu.be/dQw4w9WgXcQ'"),
6
+ lang: zod.z.string().describe("Preferred language code of the transcript (ISO 639-1 format like 'en', 'es', 'fr'). If not provided, the first available language will be returned. If the requested language is unavailable, the API defaults to the first available language.").optional(),
7
+ mode: zod.z.enum([
8
+ "native",
9
+ "auto",
10
+ "generate"
11
+ ]).describe("Transcript retrieval mode.").optional(),
12
+ text: zod.z.boolean().describe("When true, returns plain text transcript. When false, returns structured transcript with timestamps. Default is false.").optional(),
13
+ chunkSize: zod.z.number().int().describe("Maximum characters per transcript chunk. Only applies when text=false (structured transcript mode). Use this to split long transcripts into manageable segments.").optional()
14
+ }).describe("Request parameters for GET_TRANSCRIPT.");
15
+ const SupadataGetTranscript_TranscriptChunkSchema = zod.z.object({
16
+ text: zod.z.string().describe("The text content of this transcript chunk."),
17
+ start: zod.z.number().describe("Start time in seconds for this chunk.").nullable().optional(),
18
+ duration: zod.z.number().describe("Duration in seconds for this chunk.").nullable().optional()
19
+ }).describe("Individual transcript chunk with text and timestamp.");
20
+ const SupadataGetTranscriptOutput = zod.z.object({
21
+ lang: zod.z.string().describe("The language code of the returned transcript (ISO 639-1).").nullable().optional(),
22
+ jobId: zod.z.string().describe("Job ID for asynchronous processing. When present, use the /transcript/{jobId} endpoint to retrieve the final transcript result.").nullable().optional(),
23
+ content: zod.z.union([zod.z.string(), zod.z.array(SupadataGetTranscript_TranscriptChunkSchema)]).nullable().optional(),
24
+ availableLangs: zod.z.array(zod.z.string()).describe("List of language codes available for this video's transcript.").nullable().optional()
25
+ }).describe("Response schema for GET_TRANSCRIPT containing transcript data or job ID.\n\nThe API returns either:\n1. Immediate transcript result (synchronous) with content, language, and available languages\n2. Job ID (asynchronous) when video is too large, requiring a follow-up request to /transcript/{jobId}");
26
+ const supadataGetTranscript = require_action.action("SUPADATA_GET_TRANSCRIPT", {
27
+ slug: "supadata-get-transcript",
28
+ name: "Get Video Transcript",
29
+ description: "Get transcript from a video on supported platforms or from a file URL. Use this tool when you need to: - Retrieve transcripts from YouTube, TikTok, Twitter, Instagram, or Facebook videos - Extract transcript from video file URLs - Get transcripts in specific languages - Choose between native captions or AI-generated transcripts For large videos, the API returns a job ID. You'll need to poll the /transcript/{jobId} endpoint to get the final result. For smaller videos, the transcript is returned immediately. The response varies based on the 'text' parameter: - text=true: Returns plain text transcript as a string - text=false: Returns structured list of chunks with timestamps and text",
30
+ input: SupadataGetTranscriptInput,
31
+ output: SupadataGetTranscriptOutput
32
+ });
33
+ //#endregion
34
+ exports.supadataGetTranscript = supadataGetTranscript;
35
+
36
+ //# sourceMappingURL=get-transcript.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript.cjs","names":["z","action"],"sources":["../../src/actions/get-transcript.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetTranscriptInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Video URL from any supported platform (YouTube, TikTok, Twitter, Instagram, Facebook) or a file URL. Example: 'https://youtu.be/dQw4w9WgXcQ'\"),\n lang: z.string().describe(\"Preferred language code of the transcript (ISO 639-1 format like 'en', 'es', 'fr'). If not provided, the first available language will be returned. If the requested language is unavailable, the API defaults to the first available language.\").optional(),\n mode: z.enum([\"native\", \"auto\", \"generate\"]).describe(\"Transcript retrieval mode.\").optional(),\n text: z.boolean().describe(\"When true, returns plain text transcript. When false, returns structured transcript with timestamps. Default is false.\").optional(),\n chunkSize: z.number().int().describe(\"Maximum characters per transcript chunk. Only applies when text=false (structured transcript mode). Use this to split long transcripts into manageable segments.\").optional(),\n}).describe(\"Request parameters for GET_TRANSCRIPT.\");\nconst SupadataGetTranscript_TranscriptChunkSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text content of this transcript chunk.\"),\n start: z.number().describe(\"Start time in seconds for this chunk.\").nullable().optional(),\n duration: z.number().describe(\"Duration in seconds for this chunk.\").nullable().optional(),\n}).describe(\"Individual transcript chunk with text and timestamp.\");\nexport const SupadataGetTranscriptOutput: z.ZodTypeAny = z.object({\n lang: z.string().describe(\"The language code of the returned transcript (ISO 639-1).\").nullable().optional(),\n jobId: z.string().describe(\"Job ID for asynchronous processing. When present, use the /transcript/{jobId} endpoint to retrieve the final transcript result.\").nullable().optional(),\n content: z.union([z.string(), z.array(SupadataGetTranscript_TranscriptChunkSchema)]).nullable().optional(),\n availableLangs: z.array(z.string()).describe(\"List of language codes available for this video's transcript.\").nullable().optional(),\n}).describe(\"Response schema for GET_TRANSCRIPT containing transcript data or job ID.\\n\\nThe API returns either:\\n1. Immediate transcript result (synchronous) with content, language, and available languages\\n2. Job ID (asynchronous) when video is too large, requiring a follow-up request to /transcript/{jobId}\");\n\nexport const supadataGetTranscript = action(\"SUPADATA_GET_TRANSCRIPT\", {\n slug: \"supadata-get-transcript\",\n name: \"Get Video Transcript\",\n description: \"Get transcript from a video on supported platforms or from a file URL. Use this tool when you need to: - Retrieve transcripts from YouTube, TikTok, Twitter, Instagram, or Facebook videos - Extract transcript from video file URLs - Get transcripts in specific languages - Choose between native captions or AI-generated transcripts For large videos, the API returns a job ID. You'll need to poll the /transcript/{jobId} endpoint to get the final result. For smaller videos, the transcript is returned immediately. The response varies based on the 'text' parameter: - text=true: Returns plain text transcript as a string - text=false: Returns structured list of chunks with timestamps and text\",\n input: SupadataGetTranscriptInput,\n output: SupadataGetTranscriptOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACvK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iPAAiP,CAAC,CAAC,SAAS;CACtR,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;CAAU,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC7F,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;AACpN,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,2SAA2S;AAEvT,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-transcript.d.ts
4
+ declare const SupadataGetTranscriptInput: z.ZodTypeAny;
5
+ declare const SupadataGetTranscriptOutput: z.ZodTypeAny;
6
+ declare const supadataGetTranscript: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetTranscript };
9
+ //# sourceMappingURL=get-transcript.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript.d.cts","names":[],"sources":["../../src/actions/get-transcript.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMU;AAAA,cAMxC,2BAAA,EAA6B,CAAA,CAAE,UAK4Q;AAAA,cAE3S,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-transcript.d.ts
4
+ declare const SupadataGetTranscriptInput: z.ZodTypeAny;
5
+ declare const SupadataGetTranscriptOutput: z.ZodTypeAny;
6
+ declare const supadataGetTranscript: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetTranscript };
9
+ //# sourceMappingURL=get-transcript.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript.d.mts","names":[],"sources":["../../src/actions/get-transcript.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMU;AAAA,cAMxC,2BAAA,EAA6B,CAAA,CAAE,UAK4Q;AAAA,cAE3S,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,35 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-transcript.ts
4
+ const SupadataGetTranscriptInput = z.object({
5
+ url: z.string().describe("Video URL from any supported platform (YouTube, TikTok, Twitter, Instagram, Facebook) or a file URL. Example: 'https://youtu.be/dQw4w9WgXcQ'"),
6
+ lang: z.string().describe("Preferred language code of the transcript (ISO 639-1 format like 'en', 'es', 'fr'). If not provided, the first available language will be returned. If the requested language is unavailable, the API defaults to the first available language.").optional(),
7
+ mode: z.enum([
8
+ "native",
9
+ "auto",
10
+ "generate"
11
+ ]).describe("Transcript retrieval mode.").optional(),
12
+ text: z.boolean().describe("When true, returns plain text transcript. When false, returns structured transcript with timestamps. Default is false.").optional(),
13
+ chunkSize: z.number().int().describe("Maximum characters per transcript chunk. Only applies when text=false (structured transcript mode). Use this to split long transcripts into manageable segments.").optional()
14
+ }).describe("Request parameters for GET_TRANSCRIPT.");
15
+ const SupadataGetTranscript_TranscriptChunkSchema = z.object({
16
+ text: z.string().describe("The text content of this transcript chunk."),
17
+ start: z.number().describe("Start time in seconds for this chunk.").nullable().optional(),
18
+ duration: z.number().describe("Duration in seconds for this chunk.").nullable().optional()
19
+ }).describe("Individual transcript chunk with text and timestamp.");
20
+ const supadataGetTranscript = action("SUPADATA_GET_TRANSCRIPT", {
21
+ slug: "supadata-get-transcript",
22
+ name: "Get Video Transcript",
23
+ description: "Get transcript from a video on supported platforms or from a file URL. Use this tool when you need to: - Retrieve transcripts from YouTube, TikTok, Twitter, Instagram, or Facebook videos - Extract transcript from video file URLs - Get transcripts in specific languages - Choose between native captions or AI-generated transcripts For large videos, the API returns a job ID. You'll need to poll the /transcript/{jobId} endpoint to get the final result. For smaller videos, the transcript is returned immediately. The response varies based on the 'text' parameter: - text=true: Returns plain text transcript as a string - text=false: Returns structured list of chunks with timestamps and text",
24
+ input: SupadataGetTranscriptInput,
25
+ output: z.object({
26
+ lang: z.string().describe("The language code of the returned transcript (ISO 639-1).").nullable().optional(),
27
+ jobId: z.string().describe("Job ID for asynchronous processing. When present, use the /transcript/{jobId} endpoint to retrieve the final transcript result.").nullable().optional(),
28
+ content: z.union([z.string(), z.array(SupadataGetTranscript_TranscriptChunkSchema)]).nullable().optional(),
29
+ availableLangs: z.array(z.string()).describe("List of language codes available for this video's transcript.").nullable().optional()
30
+ }).describe("Response schema for GET_TRANSCRIPT containing transcript data or job ID.\n\nThe API returns either:\n1. Immediate transcript result (synchronous) with content, language, and available languages\n2. Job ID (asynchronous) when video is too large, requiring a follow-up request to /transcript/{jobId}")
31
+ });
32
+ //#endregion
33
+ export { supadataGetTranscript };
34
+
35
+ //# sourceMappingURL=get-transcript.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transcript.mjs","names":[],"sources":["../../src/actions/get-transcript.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetTranscriptInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Video URL from any supported platform (YouTube, TikTok, Twitter, Instagram, Facebook) or a file URL. Example: 'https://youtu.be/dQw4w9WgXcQ'\"),\n lang: z.string().describe(\"Preferred language code of the transcript (ISO 639-1 format like 'en', 'es', 'fr'). If not provided, the first available language will be returned. If the requested language is unavailable, the API defaults to the first available language.\").optional(),\n mode: z.enum([\"native\", \"auto\", \"generate\"]).describe(\"Transcript retrieval mode.\").optional(),\n text: z.boolean().describe(\"When true, returns plain text transcript. When false, returns structured transcript with timestamps. Default is false.\").optional(),\n chunkSize: z.number().int().describe(\"Maximum characters per transcript chunk. Only applies when text=false (structured transcript mode). Use this to split long transcripts into manageable segments.\").optional(),\n}).describe(\"Request parameters for GET_TRANSCRIPT.\");\nconst SupadataGetTranscript_TranscriptChunkSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text content of this transcript chunk.\"),\n start: z.number().describe(\"Start time in seconds for this chunk.\").nullable().optional(),\n duration: z.number().describe(\"Duration in seconds for this chunk.\").nullable().optional(),\n}).describe(\"Individual transcript chunk with text and timestamp.\");\nexport const SupadataGetTranscriptOutput: z.ZodTypeAny = z.object({\n lang: z.string().describe(\"The language code of the returned transcript (ISO 639-1).\").nullable().optional(),\n jobId: z.string().describe(\"Job ID for asynchronous processing. When present, use the /transcript/{jobId} endpoint to retrieve the final transcript result.\").nullable().optional(),\n content: z.union([z.string(), z.array(SupadataGetTranscript_TranscriptChunkSchema)]).nullable().optional(),\n availableLangs: z.array(z.string()).describe(\"List of language codes available for this video's transcript.\").nullable().optional(),\n}).describe(\"Response schema for GET_TRANSCRIPT containing transcript data or job ID.\\n\\nThe API returns either:\\n1. Immediate transcript result (synchronous) with content, language, and available languages\\n2. Job ID (asynchronous) when video is too large, requiring a follow-up request to /transcript/{jobId}\");\n\nexport const supadataGetTranscript = action(\"SUPADATA_GET_TRANSCRIPT\", {\n slug: \"supadata-get-transcript\",\n name: \"Get Video Transcript\",\n description: \"Get transcript from a video on supported platforms or from a file URL. Use this tool when you need to: - Retrieve transcripts from YouTube, TikTok, Twitter, Instagram, or Facebook videos - Extract transcript from video file URLs - Get transcripts in specific languages - Choose between native captions or AI-generated transcripts For large videos, the API returns a job ID. You'll need to poll the /transcript/{jobId} endpoint to get the final result. For smaller videos, the transcript is returned immediately. The response varies based on the 'text' parameter: - text=true: Returns plain text transcript as a string - text=false: Returns structured list of chunks with timestamps and text\",\n input: SupadataGetTranscriptInput,\n output: SupadataGetTranscriptOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACvK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iPAAiP,CAAC,CAAC,SAAS;CACtR,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;CAAU,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;AACpN,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAQlE,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClL,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,2CAA2C,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,SAAS,2SAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-web-map.ts
4
+ const SupadataGetWebMapInput = zod.z.object({
5
+ url: zod.z.string().describe("The URL of the website to crawl and extract all links from. Must be a valid HTTP/HTTPS URL."),
6
+ lang: zod.z.string().describe("Preferred language for the scraped content (ISO 639-1 code, e.g., 'en', 'de', 'fr'). Sets Accept-Language header to influence website language selection.").optional()
7
+ }).describe("Request parameters for the web map endpoint.");
8
+ const SupadataGetWebMapOutput = zod.z.object({ urls: zod.z.array(zod.z.string()).describe("List of all URLs discovered on the website by crawling from the provided URL.") }).describe("Response schema for the web map endpoint.");
9
+ const supadataGetWebMap = require_action.action("SUPADATA_GET_WEB_MAP", {
10
+ slug: "supadata-get-web-map",
11
+ name: "Website URL Map",
12
+ description: "Crawl a website and extract all URLs/links found on it. Use this to create a sitemap, discover all pages of a website, or prepare for content scraping across multiple pages. Returns a list of all URLs discovered during the crawl.",
13
+ input: SupadataGetWebMapInput,
14
+ output: SupadataGetWebMapOutput
15
+ });
16
+ //#endregion
17
+ exports.supadataGetWebMap = supadataGetWebMap;
18
+
19
+ //# sourceMappingURL=get-web-map.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-map.cjs","names":["z","action"],"sources":["../../src/actions/get-web-map.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetWebMapInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the website to crawl and extract all links from. Must be a valid HTTP/HTTPS URL.\"),\n lang: z.string().describe(\"Preferred language for the scraped content (ISO 639-1 code, e.g., 'en', 'de', 'fr'). Sets Accept-Language header to influence website language selection.\").optional(),\n}).describe(\"Request parameters for the web map endpoint.\");\nexport const SupadataGetWebMapOutput: z.ZodTypeAny = z.object({\n urls: z.array(z.string()).describe(\"List of all URLs discovered on the website by crawling from the provided URL.\"),\n}).describe(\"Response schema for the web map endpoint.\");\n\nexport const supadataGetWebMap = action(\"SUPADATA_GET_WEB_MAP\", {\n slug: \"supadata-get-web-map\",\n name: \"Website URL Map\",\n description: \"Crawl a website and extract all URLs/links found on it. Use this to create a sitemap, discover all pages of a website, or prepare for content scraping across multiple pages. Returns a list of all URLs discovered during the crawl.\",\n input: SupadataGetWebMapInput,\n output: SupadataGetWebMapOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACtH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,EACpH,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-web-map.d.ts
4
+ declare const SupadataGetWebMapInput: z.ZodTypeAny;
5
+ declare const SupadataGetWebMapOutput: z.ZodTypeAny;
6
+ declare const supadataGetWebMap: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetWebMap };
9
+ //# sourceMappingURL=get-web-map.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-map.d.cts","names":[],"sources":["../../src/actions/get-web-map.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGoB;AAAA,cAC9C,uBAAA,EAAyB,CAAA,CAAE,UAEgB;AAAA,cAE3C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-web-map.d.ts
4
+ declare const SupadataGetWebMapInput: z.ZodTypeAny;
5
+ declare const SupadataGetWebMapOutput: z.ZodTypeAny;
6
+ declare const supadataGetWebMap: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetWebMap };
9
+ //# sourceMappingURL=get-web-map.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-map.d.mts","names":[],"sources":["../../src/actions/get-web-map.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGoB;AAAA,cAC9C,uBAAA,EAAyB,CAAA,CAAE,UAEgB;AAAA,cAE3C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const supadataGetWebMap = action("SUPADATA_GET_WEB_MAP", {
4
+ slug: "supadata-get-web-map",
5
+ name: "Website URL Map",
6
+ description: "Crawl a website and extract all URLs/links found on it. Use this to create a sitemap, discover all pages of a website, or prepare for content scraping across multiple pages. Returns a list of all URLs discovered during the crawl.",
7
+ input: z.object({
8
+ url: z.string().describe("The URL of the website to crawl and extract all links from. Must be a valid HTTP/HTTPS URL."),
9
+ lang: z.string().describe("Preferred language for the scraped content (ISO 639-1 code, e.g., 'en', 'de', 'fr'). Sets Accept-Language header to influence website language selection.").optional()
10
+ }).describe("Request parameters for the web map endpoint."),
11
+ output: z.object({ urls: z.array(z.string()).describe("List of all URLs discovered on the website by crawling from the provided URL.") }).describe("Response schema for the web map endpoint.")
12
+ });
13
+ //#endregion
14
+ export { supadataGetWebMap };
15
+
16
+ //# sourceMappingURL=get-web-map.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-map.mjs","names":[],"sources":["../../src/actions/get-web-map.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetWebMapInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the website to crawl and extract all links from. Must be a valid HTTP/HTTPS URL.\"),\n lang: z.string().describe(\"Preferred language for the scraped content (ISO 639-1 code, e.g., 'en', 'de', 'fr'). Sets Accept-Language header to influence website language selection.\").optional(),\n}).describe(\"Request parameters for the web map endpoint.\");\nexport const SupadataGetWebMapOutput: z.ZodTypeAny = z.object({\n urls: z.array(z.string()).describe(\"List of all URLs discovered on the website by crawling from the provided URL.\"),\n}).describe(\"Response schema for the web map endpoint.\");\n\nexport const supadataGetWebMap = action(\"SUPADATA_GET_WEB_MAP\", {\n slug: \"supadata-get-web-map\",\n name: \"Website URL Map\",\n description: \"Crawl a website and extract all URLs/links found on it. Use this to create a sitemap, discover all pages of a website, or prepare for content scraping across multiple pages. Returns a list of all URLs discovered during the crawl.\",\n input: SupadataGetWebMapInput,\n output: SupadataGetWebMapOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;EACtH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CAClM,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATmD,EAAE,OAAO,EAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,EACpH,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-web-scrape.ts
4
+ const SupadataGetWebScrapeInput = zod.z.object({
5
+ url: zod.z.string().describe("The URL of the webpage to scrape. Must be a valid HTTP/HTTPS URL."),
6
+ lang: zod.z.string().describe("ISO 639-1 language code to request content in (e.g., 'en', 'es', 'fr'). Defaults to 'en'.").optional(),
7
+ no_links: zod.z.boolean().describe("If true, exclude Markdown links from the extracted content. Useful for cleaner text output.").optional()
8
+ }).describe("Request parameters for the web scrape endpoint.");
9
+ const SupadataGetWebScrapeOutput = zod.z.object({
10
+ url: zod.z.string().describe("The URL of the webpage that was scraped"),
11
+ name: zod.z.string().describe("The name/title of the webpage"),
12
+ urls: zod.z.array(zod.z.string()).describe("List of URLs/links found on the webpage"),
13
+ og_url: zod.z.string().describe("Open Graph URL for the webpage if available").nullable().optional(),
14
+ content: zod.z.string().describe("The extracted content from the webpage in Markdown format"),
15
+ description: zod.z.string().describe("A description of the webpage (from meta tags)"),
16
+ count_characters: zod.z.number().int().describe("The total number of characters in the extracted content")
17
+ }).describe("Response schema for the web scrape endpoint.");
18
+ const supadataGetWebScrape = require_action.action("SUPADATA_GET_WEB_SCRAPE", {
19
+ slug: "supadata-get-web-scrape",
20
+ name: "Scrape Web Page",
21
+ description: "Extract content from any webpage and convert it to Markdown format. Use this tool when you need to: - Read and extract text content from a web page - Get metadata (title, description) from a webpage - Discover links on a webpage - Get character counts of page content The tool returns the page content in Markdown format, making it easy to process and understand. One API credit is consumed per scrape request.",
22
+ input: SupadataGetWebScrapeInput,
23
+ output: SupadataGetWebScrapeOutput
24
+ });
25
+ //#endregion
26
+ exports.supadataGetWebScrape = supadataGetWebScrape;
27
+
28
+ //# sourceMappingURL=get-web-scrape.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-scrape.cjs","names":["z","action"],"sources":["../../src/actions/get-web-scrape.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupadataGetWebScrapeInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the webpage to scrape. Must be a valid HTTP/HTTPS URL.\"),\n lang: z.string().describe(\"ISO 639-1 language code to request content in (e.g., 'en', 'es', 'fr'). Defaults to 'en'.\").optional(),\n no_links: z.boolean().describe(\"If true, exclude Markdown links from the extracted content. Useful for cleaner text output.\").optional(),\n}).describe(\"Request parameters for the web scrape endpoint.\");\nexport const SupadataGetWebScrapeOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the webpage that was scraped\"),\n name: z.string().describe(\"The name/title of the webpage\"),\n urls: z.array(z.string()).describe(\"List of URLs/links found on the webpage\"),\n og_url: z.string().describe(\"Open Graph URL for the webpage if available\").nullable().optional(),\n content: z.string().describe(\"The extracted content from the webpage in Markdown format\"),\n description: z.string().describe(\"A description of the webpage (from meta tags)\"),\n count_characters: z.number().int().describe(\"The total number of characters in the extracted content\"),\n}).describe(\"Response schema for the web scrape endpoint.\");\n\nexport const supadataGetWebScrape = action(\"SUPADATA_GET_WEB_SCRAPE\", {\n slug: \"supadata-get-web-scrape\",\n name: \"Scrape Web Page\",\n description: \"Extract content from any webpage and convert it to Markdown format. Use this tool when you need to: - Read and extract text content from a web page - Get metadata (title, description) from a webpage - Discover links on a webpage - Get character counts of page content The tool returns the page content in Markdown format, making it easy to process and understand. One API credit is consumed per scrape request.\",\n input: SupadataGetWebScrapeInput,\n output: SupadataGetWebScrapeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;AACvG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-web-scrape.d.ts
4
+ declare const SupadataGetWebScrapeInput: z.ZodTypeAny;
5
+ declare const SupadataGetWebScrapeOutput: z.ZodTypeAny;
6
+ declare const supadataGetWebScrape: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetWebScrape };
9
+ //# sourceMappingURL=get-web-scrape.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-scrape.d.cts","names":[],"sources":["../../src/actions/get-web-scrape.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIoB;AAAA,cACjD,0BAAA,EAA4B,CAAA,CAAE,UAQgB;AAAA,cAE9C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-web-scrape.d.ts
4
+ declare const SupadataGetWebScrapeInput: z.ZodTypeAny;
5
+ declare const SupadataGetWebScrapeOutput: z.ZodTypeAny;
6
+ declare const supadataGetWebScrape: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { supadataGetWebScrape };
9
+ //# sourceMappingURL=get-web-scrape.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-scrape.d.mts","names":[],"sources":["../../src/actions/get-web-scrape.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIoB;AAAA,cACjD,0BAAA,EAA4B,CAAA,CAAE,UAQgB;AAAA,cAE9C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}