@keystrokehq/openperplex 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/custom-search-stream.cjs +1 -1
  4. package/dist/actions/custom-search-stream.cjs.map +1 -1
  5. package/dist/actions/custom-search-stream.d.cts +43 -3
  6. package/dist/actions/custom-search-stream.d.cts.map +1 -1
  7. package/dist/actions/custom-search-stream.d.mts +43 -3
  8. package/dist/actions/custom-search-stream.d.mts.map +1 -1
  9. package/dist/actions/custom-search-stream.mjs +1 -1
  10. package/dist/actions/custom-search-stream.mjs.map +1 -1
  11. package/dist/actions/custom-search.cjs +1 -1
  12. package/dist/actions/custom-search.cjs.map +1 -1
  13. package/dist/actions/custom-search.d.cts +29 -3
  14. package/dist/actions/custom-search.d.cts.map +1 -1
  15. package/dist/actions/custom-search.d.mts +29 -3
  16. package/dist/actions/custom-search.d.mts.map +1 -1
  17. package/dist/actions/custom-search.mjs +1 -1
  18. package/dist/actions/custom-search.mjs.map +1 -1
  19. package/dist/actions/get-website-markdown.cjs +1 -1
  20. package/dist/actions/get-website-markdown.cjs.map +1 -1
  21. package/dist/actions/get-website-markdown.d.cts +15 -3
  22. package/dist/actions/get-website-markdown.d.cts.map +1 -1
  23. package/dist/actions/get-website-markdown.d.mts +15 -3
  24. package/dist/actions/get-website-markdown.d.mts.map +1 -1
  25. package/dist/actions/get-website-markdown.mjs +1 -1
  26. package/dist/actions/get-website-markdown.mjs.map +1 -1
  27. package/dist/actions/get-website-screenshot.cjs +2 -2
  28. package/dist/actions/get-website-screenshot.cjs.map +1 -1
  29. package/dist/actions/get-website-screenshot.d.cts +16 -3
  30. package/dist/actions/get-website-screenshot.d.cts.map +1 -1
  31. package/dist/actions/get-website-screenshot.d.mts +16 -3
  32. package/dist/actions/get-website-screenshot.d.mts.map +1 -1
  33. package/dist/actions/get-website-screenshot.mjs +2 -2
  34. package/dist/actions/get-website-screenshot.mjs.map +1 -1
  35. package/dist/actions/get-website-text.cjs +1 -1
  36. package/dist/actions/get-website-text.cjs.map +1 -1
  37. package/dist/actions/get-website-text.d.cts +20 -3
  38. package/dist/actions/get-website-text.d.cts.map +1 -1
  39. package/dist/actions/get-website-text.d.mts +20 -3
  40. package/dist/actions/get-website-text.d.mts.map +1 -1
  41. package/dist/actions/get-website-text.mjs +1 -1
  42. package/dist/actions/get-website-text.mjs.map +1 -1
  43. package/dist/actions/query-from-url.cjs +2 -2
  44. package/dist/actions/query-from-url.cjs.map +1 -1
  45. package/dist/actions/query-from-url.d.cts +22 -3
  46. package/dist/actions/query-from-url.d.cts.map +1 -1
  47. package/dist/actions/query-from-url.d.mts +22 -3
  48. package/dist/actions/query-from-url.d.mts.map +1 -1
  49. package/dist/actions/query-from-url.mjs +2 -2
  50. package/dist/actions/query-from-url.mjs.map +1 -1
  51. package/dist/actions/search-stream.cjs +1 -1
  52. package/dist/actions/search-stream.cjs.map +1 -1
  53. package/dist/actions/search-stream.d.cts +50 -3
  54. package/dist/actions/search-stream.d.cts.map +1 -1
  55. package/dist/actions/search-stream.d.mts +50 -3
  56. package/dist/actions/search-stream.d.mts.map +1 -1
  57. package/dist/actions/search-stream.mjs +1 -1
  58. package/dist/actions/search-stream.mjs.map +1 -1
  59. package/dist/actions/search.cjs +1 -1
  60. package/dist/actions/search.cjs.map +1 -1
  61. package/dist/actions/search.d.cts +51 -3
  62. package/dist/actions/search.d.cts.map +1 -1
  63. package/dist/actions/search.d.mts +51 -3
  64. package/dist/actions/search.d.mts.map +1 -1
  65. package/dist/actions/search.mjs +1 -1
  66. package/dist/actions/search.mjs.map +1 -1
  67. package/dist/catalog.cjs +7 -1
  68. package/dist/catalog.cjs.map +1 -1
  69. package/dist/catalog.d.cts +8 -0
  70. package/dist/catalog.d.mts +8 -0
  71. package/dist/catalog.mjs +7 -1
  72. package/dist/catalog.mjs.map +1 -1
  73. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["openperplex","executeOpenperplexTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } 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 openperplex.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 executeOpenperplexTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["openperplex","executeOpenperplexTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return openperplex.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeOpenperplexTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } 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 openperplex.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 executeOpenperplexTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return openperplex.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeOpenperplexTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -28,7 +28,7 @@ const OpenperplexCustomSearchStream_SourceItemSchema = zod.z.object({
28
28
  const OpenperplexCustomSearchStreamOutput = zod.z.object({
29
29
  images: zod.z.array(zod.z.string()).describe("List of image URLs if return_images was enabled.").nullable().optional(),
30
30
  sources: zod.z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
31
- response_text: zod.z.string().describe("The full response text aggregated from LLM streaming chunks.")
31
+ response_text: zod.z.string().describe("The full response text aggregated from LLM streaming chunks.").nullable()
32
32
  }).describe("Response model for custom streaming search.");
33
33
  const openperplexCustomSearchStream = require_action.action("OPENPERPLEX_CUSTOM_SEARCH_STREAM", {
34
34
  slug: "openperplex-custom-search-stream",
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search-stream.cjs","names":["z","action"],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput: z.ZodTypeAny = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\"),\n}).describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAA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;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"custom-search-stream.cjs","names":["z","action"],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SA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C,SAAS,CAAC,CAAC,SAAS;CAChJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,49 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/custom-search-stream.d.ts
4
- declare const OpenperplexCustomSearchStreamInput: z.ZodTypeAny;
5
- declare const OpenperplexCustomSearchStreamOutput: z.ZodTypeAny;
6
- declare const openperplexCustomSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexCustomSearchStreamInput: z.ZodObject<{
5
+ model: z.ZodOptional<z.ZodString>;
6
+ top_p: z.ZodOptional<z.ZodNumber>;
7
+ location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
8
+ search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
+ general: "general";
10
+ news: "news";
11
+ }>>>;
12
+ temperature: z.ZodOptional<z.ZodNumber>;
13
+ user_prompt: z.ZodString;
14
+ return_images: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ system_prompt: z.ZodString;
16
+ recency_filter: z.ZodOptional<z.ZodEnum<{
17
+ hour: "hour";
18
+ day: "day";
19
+ week: "week";
20
+ month: "month";
21
+ year: "year";
22
+ anytime: "anytime";
23
+ }>>;
24
+ return_sources: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
25
+ }, z.core.$strip>;
26
+ declare const OpenperplexCustomSearchStreamOutput: z.ZodObject<{
27
+ images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
28
+ sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
29
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$strip>>>>;
33
+ response_text: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>;
35
+ declare const openperplexCustomSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ user_prompt: string;
37
+ system_prompt: string;
38
+ model?: string | undefined;
39
+ top_p?: number | undefined;
40
+ location?: string | undefined;
41
+ search_type?: "general" | "news" | undefined;
42
+ temperature?: number | undefined;
43
+ return_images?: boolean | undefined;
44
+ recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
45
+ return_sources?: boolean | undefined;
46
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
47
  //#endregion
8
48
  export { openperplexCustomSearchStream };
9
49
  //# sourceMappingURL=custom-search-stream.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search-stream.d.cts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAWwG;AAAA,cAM9I,mCAAA,EAAqC,CAAA,CAAE,UAIM;AAAA,cAE7C,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"custom-search-stream.d.cts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,49 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/custom-search-stream.d.ts
4
- declare const OpenperplexCustomSearchStreamInput: z.ZodTypeAny;
5
- declare const OpenperplexCustomSearchStreamOutput: z.ZodTypeAny;
6
- declare const openperplexCustomSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexCustomSearchStreamInput: z.ZodObject<{
5
+ model: z.ZodOptional<z.ZodString>;
6
+ top_p: z.ZodOptional<z.ZodNumber>;
7
+ location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
8
+ search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
+ general: "general";
10
+ news: "news";
11
+ }>>>;
12
+ temperature: z.ZodOptional<z.ZodNumber>;
13
+ user_prompt: z.ZodString;
14
+ return_images: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ system_prompt: z.ZodString;
16
+ recency_filter: z.ZodOptional<z.ZodEnum<{
17
+ hour: "hour";
18
+ day: "day";
19
+ week: "week";
20
+ month: "month";
21
+ year: "year";
22
+ anytime: "anytime";
23
+ }>>;
24
+ return_sources: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
25
+ }, z.core.$strip>;
26
+ declare const OpenperplexCustomSearchStreamOutput: z.ZodObject<{
27
+ images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
28
+ sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
29
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$strip>>>>;
33
+ response_text: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>;
35
+ declare const openperplexCustomSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ user_prompt: string;
37
+ system_prompt: string;
38
+ model?: string | undefined;
39
+ top_p?: number | undefined;
40
+ location?: string | undefined;
41
+ search_type?: "general" | "news" | undefined;
42
+ temperature?: number | undefined;
43
+ return_images?: boolean | undefined;
44
+ recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
45
+ return_sources?: boolean | undefined;
46
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
47
  //#endregion
8
48
  export { openperplexCustomSearchStream };
9
49
  //# sourceMappingURL=custom-search-stream.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search-stream.d.mts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAWwG;AAAA,cAM9I,mCAAA,EAAqC,CAAA,CAAE,UAIM;AAAA,cAE7C,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"custom-search-stream.d.mts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
@@ -33,7 +33,7 @@ const openperplexCustomSearchStream = action("OPENPERPLEX_CUSTOM_SEARCH_STREAM",
33
33
  output: z.object({
34
34
  images: z.array(z.string()).describe("List of image URLs if return_images was enabled.").nullable().optional(),
35
35
  sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
36
- response_text: z.string().describe("The full response text aggregated from LLM streaming chunks.")
36
+ response_text: z.string().describe("The full response text aggregated from LLM streaming chunks.").nullable()
37
37
  }).describe("Response model for custom streaming search.")
38
38
  });
39
39
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search-stream.mjs","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput: z.ZodTypeAny = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\"),\n}).describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACnG,gBAAgB,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAM,iDAA+D,EAAE,OAAO;CAC5E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAOpD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+D,EAAE,OAAO;EACxE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACnG,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"custom-search-stream.mjs","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,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AC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
@@ -19,7 +19,7 @@ const OpenperplexCustomSearchOutput = zod.z.object({
19
19
  error: zod.z.string().describe("Error message if any error occurred during the search.").nullable().optional(),
20
20
  images: zod.z.array(zod.z.string()).describe("List of image URLs found in the search.").nullable().optional(),
21
21
  sources: zod.z.array(OpenperplexCustomSearch_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
22
- llm_response: zod.z.string().describe("The LLM-generated response based on the search results."),
22
+ llm_response: zod.z.string().describe("The LLM-generated response based on the search results.").nullable(),
23
23
  response_time: zod.z.number().describe("The time taken to generate the response in seconds.").nullable().optional()
24
24
  }).describe("Response model for the CUSTOM_SEARCH action.");
25
25
  const openperplexCustomSearch = require_action.action("OPENPERPLEX_CUSTOM_SEARCH", {
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search.cjs","names":["z","action"],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput: z.ZodTypeAny = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\"),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC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search.cjs","names":["z","action"],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,C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AASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/custom-search.d.ts
4
- declare const OpenperplexCustomSearchInput: z.ZodTypeAny;
5
- declare const OpenperplexCustomSearchOutput: z.ZodTypeAny;
6
- declare const openperplexCustomSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexCustomSearchInput: z.ZodObject<{
5
+ size: z.ZodOptional<z.ZodNumber>;
6
+ query: z.ZodString;
7
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ user_prompt: z.ZodString;
9
+ system_prompt: z.ZodString;
10
+ exclude_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ include_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ declare const OpenperplexCustomSearchOutput: z.ZodObject<{
14
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>>>>;
21
+ llm_response: z.ZodNullable<z.ZodString>;
22
+ response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ }, z.core.$strip>;
24
+ declare const openperplexCustomSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ query: string;
26
+ user_prompt: string;
27
+ system_prompt: string;
28
+ size?: number | undefined;
29
+ filter?: Record<string, unknown> | undefined;
30
+ exclude_fields?: string[] | undefined;
31
+ include_fields?: string[] | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { openperplexCustomSearch };
9
35
  //# sourceMappingURL=custom-search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search.d.cts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQa;AAAA,cAM7C,6BAAA,EAA+B,CAAA,CAAE,UAMa;AAAA,cAE9C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"custom-search.d.cts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA;;;;;WAMlC,MAAA"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/custom-search.d.ts
4
- declare const OpenperplexCustomSearchInput: z.ZodTypeAny;
5
- declare const OpenperplexCustomSearchOutput: z.ZodTypeAny;
6
- declare const openperplexCustomSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexCustomSearchInput: z.ZodObject<{
5
+ size: z.ZodOptional<z.ZodNumber>;
6
+ query: z.ZodString;
7
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ user_prompt: z.ZodString;
9
+ system_prompt: z.ZodString;
10
+ exclude_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ include_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ declare const OpenperplexCustomSearchOutput: z.ZodObject<{
14
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>>>>;
21
+ llm_response: z.ZodNullable<z.ZodString>;
22
+ response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ }, z.core.$strip>;
24
+ declare const openperplexCustomSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ query: string;
26
+ user_prompt: string;
27
+ system_prompt: string;
28
+ size?: number | undefined;
29
+ filter?: Record<string, unknown> | undefined;
30
+ exclude_fields?: string[] | undefined;
31
+ include_fields?: string[] | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { openperplexCustomSearch };
9
35
  //# sourceMappingURL=custom-search.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search.d.mts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQa;AAAA,cAM7C,6BAAA,EAA+B,CAAA,CAAE,UAMa;AAAA,cAE9C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"custom-search.d.mts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA;;;;;WAMlC,MAAA"}
@@ -24,7 +24,7 @@ const openperplexCustomSearch = action("OPENPERPLEX_CUSTOM_SEARCH", {
24
24
  error: z.string().describe("Error message if any error occurred during the search.").nullable().optional(),
25
25
  images: z.array(z.string()).describe("List of image URLs found in the search.").nullable().optional(),
26
26
  sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
27
- llm_response: z.string().describe("The LLM-generated response based on the search results."),
27
+ llm_response: z.string().describe("The LLM-generated response based on the search results.").nullable(),
28
28
  response_time: z.number().describe("The time taken to generate the response in seconds.").nullable().optional()
29
29
  }).describe("Response model for the CUSTOM_SEARCH action.")
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"custom-search.mjs","names":[],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput: z.ZodTypeAny = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\"),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,2CAAyD,EAAE,OAAO;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AASnD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"custom-search.mjs","names":[],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,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C,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -6,7 +6,7 @@ const OpenperplexGetWebsiteMarkdownInput = zod.z.object({
6
6
  markdown_format: zod.z.enum(["gfm", "commonmark"]).describe("The target markdown standard/format").optional()
7
7
  }).describe("Request schema for GET_WEBSITE_MARKDOWN action.");
8
8
  const OpenperplexGetWebsiteMarkdownOutput = zod.z.object({
9
- markdown: zod.z.string().describe("The resulting markdown content of the provided website"),
9
+ markdown: zod.z.string().describe("The resulting markdown content of the provided website").nullable(),
10
10
  response_time: zod.z.number().describe("The time taken to process the request in seconds").nullable().optional()
11
11
  }).describe("Response schema for GET_WEBSITE_MARKDOWN action.");
12
12
  const openperplexGetWebsiteMarkdown = require_action.action("OPENPERPLEX_GET_WEBSITE_MARKDOWN", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput: z.ZodTypeAny = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\"),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-website-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-website-markdown.d.ts
4
- declare const OpenperplexGetWebsiteMarkdownInput: z.ZodTypeAny;
5
- declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodTypeAny;
6
- declare const openperplexGetWebsiteMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexGetWebsiteMarkdownInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ markdown_format: z.ZodOptional<z.ZodEnum<{
7
+ gfm: "gfm";
8
+ commonmark: "commonmark";
9
+ }>>;
10
+ }, z.core.$strip>;
11
+ declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodObject<{
12
+ markdown: z.ZodNullable<z.ZodString>;
13
+ response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ }, z.core.$strip>;
15
+ declare const openperplexGetWebsiteMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ url: string;
17
+ markdown_format?: "gfm" | "commonmark" | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { openperplexGetWebsiteMarkdown };
9
21
  //# sourceMappingURL=get-website-markdown.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-markdown.d.cts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAGW;AAAA,cACjD,mCAAA,EAAqC,CAAA,CAAE,UAGW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-website-markdown.d.cts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-website-markdown.d.ts
4
- declare const OpenperplexGetWebsiteMarkdownInput: z.ZodTypeAny;
5
- declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodTypeAny;
6
- declare const openperplexGetWebsiteMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexGetWebsiteMarkdownInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ markdown_format: z.ZodOptional<z.ZodEnum<{
7
+ gfm: "gfm";
8
+ commonmark: "commonmark";
9
+ }>>;
10
+ }, z.core.$strip>;
11
+ declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodObject<{
12
+ markdown: z.ZodNullable<z.ZodString>;
13
+ response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ }, z.core.$strip>;
15
+ declare const openperplexGetWebsiteMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ url: string;
17
+ markdown_format?: "gfm" | "commonmark" | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { openperplexGetWebsiteMarkdown };
9
21
  //# sourceMappingURL=get-website-markdown.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-markdown.d.mts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAGW;AAAA,cACjD,mCAAA,EAAqC,CAAA,CAAE,UAGW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-website-markdown.d.mts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
@@ -9,7 +9,7 @@ const openperplexGetWebsiteMarkdown = action("OPENPERPLEX_GET_WEBSITE_MARKDOWN",
9
9
  markdown_format: z.enum(["gfm", "commonmark"]).describe("The target markdown standard/format").optional()
10
10
  }).describe("Request schema for GET_WEBSITE_MARKDOWN action."),
11
11
  output: z.object({
12
- markdown: z.string().describe("The resulting markdown content of the provided website"),
12
+ markdown: z.string().describe("The resulting markdown content of the provided website").nullable(),
13
13
  response_time: z.number().describe("The time taken to process the request in seconds").nullable().optional()
14
14
  }).describe("Response schema for GET_WEBSITE_MARKDOWN action.")
15
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-markdown.mjs","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput: z.ZodTypeAny = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\"),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;AAaA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8D,EAAE,OAAO;EACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACvF,iBAAiB,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV+D,EAAE,OAAO;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACtF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-website-markdown.mjs","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;AAaA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACvF,iBAAiB,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAViD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -8,8 +8,8 @@ const OpenperplexGetWebsiteScreenshotInput = zod.z.object({
8
8
  viewport_height: zod.z.number().int().describe("Height of the browser viewport in pixels.").optional()
9
9
  }).describe("Request schema for GET_WEBSITE_SCREENSHOT.");
10
10
  const OpenperplexGetWebsiteScreenshotOutput = zod.z.object({
11
- url: zod.z.string().describe("The URL to the screenshot image stored in cloud storage."),
12
- response_time: zod.z.number().describe("The time taken to capture the screenshot in seconds.")
11
+ url: zod.z.string().describe("The URL to the screenshot image stored in cloud storage.").nullable(),
12
+ response_time: zod.z.number().describe("The time taken to capture the screenshot in seconds.").nullable()
13
13
  }).describe("Response schema for GET_WEBSITE_SCREENSHOT.");
14
14
  const openperplexGetWebsiteScreenshot = require_action.action("OPENPERPLEX_GET_WEBSITE_SCREENSHOT", {
15
15
  slug: "openperplex-get-website-screenshot",
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\"),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\"),\n}).describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACnF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC3F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-website-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-website-screenshot.d.ts
4
- declare const OpenperplexGetWebsiteScreenshotInput: z.ZodTypeAny;
5
- declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodTypeAny;
6
- declare const openperplexGetWebsiteScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexGetWebsiteScreenshotInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ full_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ viewport_width: z.ZodOptional<z.ZodNumber>;
8
+ viewport_height: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodObject<{
11
+ url: z.ZodNullable<z.ZodString>;
12
+ response_time: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ declare const openperplexGetWebsiteScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ url: string;
16
+ full_page?: boolean | undefined;
17
+ viewport_width?: number | undefined;
18
+ viewport_height?: number | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { openperplexGetWebsiteScreenshot };
9
22
  //# sourceMappingURL=get-website-screenshot.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-screenshot.d.cts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAKI;AAAA,cAC5C,qCAAA,EAAuC,CAAA,CAAE,UAGI;AAAA,cAE7C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-website-screenshot.d.cts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cAMpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-website-screenshot.d.ts
4
- declare const OpenperplexGetWebsiteScreenshotInput: z.ZodTypeAny;
5
- declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodTypeAny;
6
- declare const openperplexGetWebsiteScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenperplexGetWebsiteScreenshotInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ full_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ viewport_width: z.ZodOptional<z.ZodNumber>;
8
+ viewport_height: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodObject<{
11
+ url: z.ZodNullable<z.ZodString>;
12
+ response_time: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ declare const openperplexGetWebsiteScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ url: string;
16
+ full_page?: boolean | undefined;
17
+ viewport_width?: number | undefined;
18
+ viewport_height?: number | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { openperplexGetWebsiteScreenshot };
9
22
  //# sourceMappingURL=get-website-screenshot.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-website-screenshot.d.mts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAKI;AAAA,cAC5C,qCAAA,EAAuC,CAAA,CAAE,UAGI;AAAA,cAE7C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-website-screenshot.d.mts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cAMpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -11,8 +11,8 @@ const openperplexGetWebsiteScreenshot = action("OPENPERPLEX_GET_WEBSITE_SCREENSH
11
11
  viewport_height: z.number().int().describe("Height of the browser viewport in pixels.").optional()
12
12
  }).describe("Request schema for GET_WEBSITE_SCREENSHOT."),
13
13
  output: z.object({
14
- url: z.string().describe("The URL to the screenshot image stored in cloud storage."),
15
- response_time: z.number().describe("The time taken to capture the screenshot in seconds.")
14
+ url: z.string().describe("The URL to the screenshot image stored in cloud storage.").nullable(),
15
+ response_time: z.number().describe("The time taken to capture the screenshot in seconds.").nullable()
16
16
  }).describe("Response schema for GET_WEBSITE_SCREENSHOT.")
17
17
  });
18
18
  //#endregion