@keystrokehq/openperplex 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/custom-search-stream.cjs +1 -0
- package/dist/actions/custom-search-stream.cjs.map +1 -1
- package/dist/actions/custom-search-stream.d.cts +3 -24
- package/dist/actions/custom-search-stream.d.cts.map +1 -1
- package/dist/actions/custom-search-stream.d.mts +3 -24
- package/dist/actions/custom-search-stream.d.mts.map +1 -1
- package/dist/actions/custom-search-stream.mjs +1 -0
- package/dist/actions/custom-search-stream.mjs.map +1 -1
- package/dist/actions/custom-search.cjs +1 -0
- package/dist/actions/custom-search.cjs.map +1 -1
- package/dist/actions/custom-search.d.cts +3 -21
- package/dist/actions/custom-search.d.cts.map +1 -1
- package/dist/actions/custom-search.d.mts +3 -21
- package/dist/actions/custom-search.d.mts.map +1 -1
- package/dist/actions/custom-search.mjs +1 -0
- package/dist/actions/custom-search.mjs.map +1 -1
- package/dist/actions/get-website-markdown.cjs +1 -0
- package/dist/actions/get-website-markdown.cjs.map +1 -1
- package/dist/actions/get-website-markdown.d.cts +3 -16
- package/dist/actions/get-website-markdown.d.cts.map +1 -1
- package/dist/actions/get-website-markdown.d.mts +3 -16
- package/dist/actions/get-website-markdown.d.mts.map +1 -1
- package/dist/actions/get-website-markdown.mjs +1 -0
- package/dist/actions/get-website-markdown.mjs.map +1 -1
- package/dist/actions/get-website-screenshot.cjs +1 -0
- package/dist/actions/get-website-screenshot.cjs.map +1 -1
- package/dist/actions/get-website-screenshot.d.cts +3 -18
- package/dist/actions/get-website-screenshot.d.cts.map +1 -1
- package/dist/actions/get-website-screenshot.d.mts +3 -18
- package/dist/actions/get-website-screenshot.d.mts.map +1 -1
- package/dist/actions/get-website-screenshot.mjs +1 -0
- package/dist/actions/get-website-screenshot.mjs.map +1 -1
- package/dist/actions/get-website-text.cjs +1 -0
- package/dist/actions/get-website-text.cjs.map +1 -1
- package/dist/actions/get-website-text.d.cts +4 -19
- package/dist/actions/get-website-text.d.cts.map +1 -1
- package/dist/actions/get-website-text.d.mts +4 -19
- package/dist/actions/get-website-text.d.mts.map +1 -1
- package/dist/actions/get-website-text.mjs +1 -0
- package/dist/actions/get-website-text.mjs.map +1 -1
- package/dist/actions/query-from-url.cjs +1 -0
- package/dist/actions/query-from-url.cjs.map +1 -1
- package/dist/actions/query-from-url.d.cts +4 -20
- package/dist/actions/query-from-url.d.cts.map +1 -1
- package/dist/actions/query-from-url.d.mts +4 -20
- package/dist/actions/query-from-url.d.mts.map +1 -1
- package/dist/actions/query-from-url.mjs +1 -0
- package/dist/actions/query-from-url.mjs.map +1 -1
- package/dist/actions/search-stream.cjs +1 -0
- package/dist/actions/search-stream.cjs.map +1 -1
- package/dist/actions/search-stream.d.cts +4 -26
- package/dist/actions/search-stream.d.cts.map +1 -1
- package/dist/actions/search-stream.d.mts +4 -26
- package/dist/actions/search-stream.d.mts.map +1 -1
- package/dist/actions/search-stream.mjs +1 -0
- package/dist/actions/search-stream.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +4 -26
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +4 -26
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-text.d.ts
|
|
@@ -7,32 +9,15 @@ declare const OpenperplexGetWebsiteTextInput: z.ZodObject<{
|
|
|
7
9
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
8
10
|
return_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
11
|
markdown: "markdown";
|
|
10
|
-
plain: "plain";
|
|
11
12
|
html: "html";
|
|
13
|
+
plain: "plain";
|
|
12
14
|
}>>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const OpenperplexGetWebsiteTextOutput: z.ZodObject<{
|
|
15
17
|
text: z.ZodNullable<z.ZodString>;
|
|
16
18
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openperplexGetWebsiteText:
|
|
19
|
-
url: string;
|
|
20
|
-
clean?: boolean | undefined;
|
|
21
|
-
max_length?: number | undefined;
|
|
22
|
-
return_type?: "markdown" | "plain" | "html" | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const openperplexGetWebsiteText: AppAction<typeof OpenperplexGetWebsiteTextInput, typeof OpenperplexGetWebsiteTextOutput, typeof openperplex.credential>;
|
|
36
21
|
//#endregion
|
|
37
22
|
export { openperplexGetWebsiteText };
|
|
38
23
|
//# sourceMappingURL=get-website-text.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.d.cts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.d.cts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-text.d.ts
|
|
@@ -7,32 +9,15 @@ declare const OpenperplexGetWebsiteTextInput: z.ZodObject<{
|
|
|
7
9
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
8
10
|
return_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
11
|
markdown: "markdown";
|
|
10
|
-
plain: "plain";
|
|
11
12
|
html: "html";
|
|
13
|
+
plain: "plain";
|
|
12
14
|
}>>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const OpenperplexGetWebsiteTextOutput: z.ZodObject<{
|
|
15
17
|
text: z.ZodNullable<z.ZodString>;
|
|
16
18
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openperplexGetWebsiteText:
|
|
19
|
-
url: string;
|
|
20
|
-
clean?: boolean | undefined;
|
|
21
|
-
max_length?: number | undefined;
|
|
22
|
-
return_type?: "markdown" | "plain" | "html" | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const openperplexGetWebsiteText: AppAction<typeof OpenperplexGetWebsiteTextInput, typeof OpenperplexGetWebsiteTextOutput, typeof openperplex.credential>;
|
|
36
21
|
//#endregion
|
|
37
22
|
export { openperplexGetWebsiteText };
|
|
38
23
|
//# sourceMappingURL=get-website-text.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.d.mts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.d.mts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.mjs","names":[],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.mjs","names":[],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText: AppAction<\n typeof OpenperplexGetWebsiteTextInput,\n typeof OpenperplexGetWebsiteTextOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,KAAK;GAAC;GAAS;GAAQ;EAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,gDAcH;CACP,QAd6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.cjs","names":["z","action"],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.cjs","names":["z","action"],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl: AppAction<\n typeof OpenperplexQueryFromUrlInput,\n typeof OpenperplexQueryFromUrlOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AAC1M,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-from-url.d.ts
|
|
@@ -6,9 +8,9 @@ declare const OpenperplexQueryFromUrlInput: z.ZodObject<{
|
|
|
6
8
|
model: z.ZodOptional<z.ZodString>;
|
|
7
9
|
query: z.ZodString;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
text: "text";
|
|
9
12
|
markdown: "markdown";
|
|
10
13
|
html: "html";
|
|
11
|
-
text: "text";
|
|
12
14
|
}>>;
|
|
13
15
|
response_language: z.ZodOptional<z.ZodString>;
|
|
14
16
|
}, z.core.$strip>;
|
|
@@ -16,25 +18,7 @@ declare const OpenperplexQueryFromUrlOutput: z.ZodObject<{
|
|
|
16
18
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
17
19
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const openperplexQueryFromUrl:
|
|
20
|
-
url: string;
|
|
21
|
-
query: string;
|
|
22
|
-
model?: string | undefined;
|
|
23
|
-
answer_type?: "markdown" | "html" | "text" | undefined;
|
|
24
|
-
response_language?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const openperplexQueryFromUrl: AppAction<typeof OpenperplexQueryFromUrlInput, typeof OpenperplexQueryFromUrlOutput, typeof openperplex.credential>;
|
|
38
22
|
//#endregion
|
|
39
23
|
export { openperplexQueryFromUrl };
|
|
40
24
|
//# sourceMappingURL=query-from-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.d.cts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.d.cts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-from-url.d.ts
|
|
@@ -6,9 +8,9 @@ declare const OpenperplexQueryFromUrlInput: z.ZodObject<{
|
|
|
6
8
|
model: z.ZodOptional<z.ZodString>;
|
|
7
9
|
query: z.ZodString;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
text: "text";
|
|
9
12
|
markdown: "markdown";
|
|
10
13
|
html: "html";
|
|
11
|
-
text: "text";
|
|
12
14
|
}>>;
|
|
13
15
|
response_language: z.ZodOptional<z.ZodString>;
|
|
14
16
|
}, z.core.$strip>;
|
|
@@ -16,25 +18,7 @@ declare const OpenperplexQueryFromUrlOutput: z.ZodObject<{
|
|
|
16
18
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
17
19
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const openperplexQueryFromUrl:
|
|
20
|
-
url: string;
|
|
21
|
-
query: string;
|
|
22
|
-
model?: string | undefined;
|
|
23
|
-
answer_type?: "markdown" | "html" | "text" | undefined;
|
|
24
|
-
response_language?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const openperplexQueryFromUrl: AppAction<typeof OpenperplexQueryFromUrlInput, typeof OpenperplexQueryFromUrlOutput, typeof openperplex.credential>;
|
|
38
22
|
//#endregion
|
|
39
23
|
export { openperplexQueryFromUrl };
|
|
40
24
|
//# sourceMappingURL=query-from-url.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.d.mts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.d.mts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.mjs","names":[],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.mjs","names":[],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl: AppAction<\n typeof OpenperplexQueryFromUrlInput,\n typeof OpenperplexQueryFromUrlOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EAC/J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,aAAa,EAAE,KAAK;GAAC;GAAQ;GAAY;EAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACxJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC1M,CAAC,CAAC,CAAC,SAAS,mDAcH;CACP,QAd2C,EAAE,OAAO;EACpD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.cjs","names":["z","action"],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.cjs","names":["z","action"],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream: AppAction<\n typeof OpenperplexSearchStreamInput,\n typeof OpenperplexSearchStreamOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CACpL,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5G,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;AACtM,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/search-stream.d.ts
|
|
@@ -6,9 +8,9 @@ declare const OpenperplexSearchStreamInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
text: "text";
|
|
9
12
|
markdown: "markdown";
|
|
10
13
|
html: "html";
|
|
11
|
-
text: "text";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
16
|
general: "general";
|
|
@@ -38,31 +40,7 @@ declare const OpenperplexSearchStreamOutput: z.ZodObject<{
|
|
|
38
40
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
41
|
response_text: z.ZodNullable<z.ZodString>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const openperplexSearchStream:
|
|
42
|
-
query: string;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
location?: string | undefined;
|
|
45
|
-
answer_type?: "markdown" | "html" | "text" | undefined;
|
|
46
|
-
search_type?: "general" | "news" | undefined;
|
|
47
|
-
date_context?: string | undefined;
|
|
48
|
-
return_images?: boolean | undefined;
|
|
49
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
50
|
-
return_sources?: boolean | undefined;
|
|
51
|
-
return_citations?: boolean | undefined;
|
|
52
|
-
response_language?: string | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
60
|
-
connectionId: z.ZodString;
|
|
61
|
-
entityId: z.ZodString;
|
|
62
|
-
instanceId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
generic_api_key: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
43
|
+
declare const openperplexSearchStream: AppAction<typeof OpenperplexSearchStreamInput, typeof OpenperplexSearchStreamOutput, typeof openperplex.credential>;
|
|
66
44
|
//#endregion
|
|
67
45
|
export { openperplexSearchStream };
|
|
68
46
|
//# sourceMappingURL=search-stream.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.d.cts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.d.cts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/search-stream.d.ts
|
|
@@ -6,9 +8,9 @@ declare const OpenperplexSearchStreamInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
text: "text";
|
|
9
12
|
markdown: "markdown";
|
|
10
13
|
html: "html";
|
|
11
|
-
text: "text";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
16
|
general: "general";
|
|
@@ -38,31 +40,7 @@ declare const OpenperplexSearchStreamOutput: z.ZodObject<{
|
|
|
38
40
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
41
|
response_text: z.ZodNullable<z.ZodString>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const openperplexSearchStream:
|
|
42
|
-
query: string;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
location?: string | undefined;
|
|
45
|
-
answer_type?: "markdown" | "html" | "text" | undefined;
|
|
46
|
-
search_type?: "general" | "news" | undefined;
|
|
47
|
-
date_context?: string | undefined;
|
|
48
|
-
return_images?: boolean | undefined;
|
|
49
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
50
|
-
return_sources?: boolean | undefined;
|
|
51
|
-
return_citations?: boolean | undefined;
|
|
52
|
-
response_language?: string | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
60
|
-
connectionId: z.ZodString;
|
|
61
|
-
entityId: z.ZodString;
|
|
62
|
-
instanceId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
generic_api_key: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
43
|
+
declare const openperplexSearchStream: AppAction<typeof OpenperplexSearchStreamInput, typeof OpenperplexSearchStreamOutput, typeof openperplex.credential>;
|
|
66
44
|
//#endregion
|
|
67
45
|
export { openperplexSearchStream };
|
|
68
46
|
//# sourceMappingURL=search-stream.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.d.mts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.d.mts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.mjs","names":[],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.mjs","names":[],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream: AppAction<\n typeof OpenperplexSearchStreamInput,\n typeof OpenperplexSearchStreamOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CACpL,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,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;CAC5G,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChH,mBAAmB,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;AACtM,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,2CAA2C,EAAE,OAAO;CACxD,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,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB2C,EAAE,OAAO;EACpD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
package/dist/actions/search.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_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}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexSearchOutput = 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(OpenperplexSearch_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}).passthrough().describe(\"Response model for a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_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}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexSearchOutput = 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(OpenperplexSearch_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}).passthrough().describe(\"Response model for a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch: AppAction<\n typeof OpenperplexSearchInput,\n typeof OpenperplexSearchOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrJ,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACvN,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC3M,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9G,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,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,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,oBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/search.d.ts
|
|
@@ -6,9 +8,9 @@ declare const OpenperplexSearchInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
text: "text";
|
|
9
12
|
markdown: "markdown";
|
|
10
13
|
html: "html";
|
|
11
|
-
text: "text";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
16
|
general: "general";
|
|
@@ -39,31 +41,7 @@ declare const OpenperplexSearchOutput: z.ZodObject<{
|
|
|
39
41
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
40
42
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const openperplexSearch:
|
|
43
|
-
query: string;
|
|
44
|
-
model?: string | undefined;
|
|
45
|
-
location?: string | undefined;
|
|
46
|
-
answer_type?: "markdown" | "html" | "text" | undefined;
|
|
47
|
-
search_type?: "general" | "news" | undefined;
|
|
48
|
-
date_context?: string | undefined;
|
|
49
|
-
return_images?: boolean | undefined;
|
|
50
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
51
|
-
return_sources?: boolean | undefined;
|
|
52
|
-
return_citations?: boolean | undefined;
|
|
53
|
-
response_language?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const openperplexSearch: AppAction<typeof OpenperplexSearchInput, typeof OpenperplexSearchOutput, typeof openperplex.credential>;
|
|
67
45
|
//#endregion
|
|
68
46
|
export { openperplexSearch };
|
|
69
47
|
//# sourceMappingURL=search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/search.d.ts
|
|
@@ -6,9 +8,9 @@ declare const OpenperplexSearchInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
text: "text";
|
|
9
12
|
markdown: "markdown";
|
|
10
13
|
html: "html";
|
|
11
|
-
text: "text";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
16
|
general: "general";
|
|
@@ -39,31 +41,7 @@ declare const OpenperplexSearchOutput: z.ZodObject<{
|
|
|
39
41
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
40
42
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const openperplexSearch:
|
|
43
|
-
query: string;
|
|
44
|
-
model?: string | undefined;
|
|
45
|
-
location?: string | undefined;
|
|
46
|
-
answer_type?: "markdown" | "html" | "text" | undefined;
|
|
47
|
-
search_type?: "general" | "news" | undefined;
|
|
48
|
-
date_context?: string | undefined;
|
|
49
|
-
return_images?: boolean | undefined;
|
|
50
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
51
|
-
return_sources?: boolean | undefined;
|
|
52
|
-
return_citations?: boolean | undefined;
|
|
53
|
-
response_language?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openperplex", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const openperplexSearch: AppAction<typeof OpenperplexSearchInput, typeof OpenperplexSearchOutput, typeof openperplex.credential>;
|
|
67
45
|
//#endregion
|
|
68
46
|
export { openperplexSearch };
|
|
69
47
|
//# sourceMappingURL=search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,WAAA,CAAY,UAAA"}
|
package/dist/actions/search.mjs
CHANGED