@keystrokehq/perplexityai 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-async-chat-completion.cjs +2 -2
- package/dist/actions/create-async-chat-completion.cjs.map +1 -1
- package/dist/actions/create-async-chat-completion.d.cts +5 -4
- package/dist/actions/create-async-chat-completion.d.mts +5 -4
- package/dist/actions/create-async-chat-completion.mjs +2 -2
- package/dist/actions/create-async-chat-completion.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +8 -8
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +12 -11
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +12 -11
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +8 -8
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.cjs +4 -4
- package/dist/actions/create-contextualized-embeddings.cjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.cts +4 -4
- package/dist/actions/create-contextualized-embeddings.d.mts +4 -4
- package/dist/actions/create-contextualized-embeddings.mjs +4 -4
- package/dist/actions/create-contextualized-embeddings.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +4 -4
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +4 -4
- package/dist/actions/create-embeddings.d.mts +4 -4
- package/dist/actions/create-embeddings.mjs +4 -4
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/execute-agent.cjs +5 -5
- package/dist/actions/execute-agent.cjs.map +1 -1
- package/dist/actions/execute-agent.d.cts +9 -5
- package/dist/actions/execute-agent.d.cts.map +1 -1
- package/dist/actions/execute-agent.d.mts +9 -5
- package/dist/actions/execute-agent.d.mts.map +1 -1
- package/dist/actions/execute-agent.mjs +5 -5
- package/dist/actions/execute-agent.mjs.map +1 -1
- package/dist/actions/get-async-chat-completion.cjs +1 -1
- package/dist/actions/get-async-chat-completion.cjs.map +1 -1
- package/dist/actions/get-async-chat-completion.d.cts +1 -1
- package/dist/actions/get-async-chat-completion.d.mts +1 -1
- package/dist/actions/get-async-chat-completion.mjs +1 -1
- package/dist/actions/get-async-chat-completion.mjs.map +1 -1
- package/dist/actions/list-async-chat-completions.cjs +2 -2
- package/dist/actions/list-async-chat-completions.cjs.map +1 -1
- package/dist/actions/list-async-chat-completions.d.cts +2 -2
- package/dist/actions/list-async-chat-completions.d.mts +2 -2
- package/dist/actions/list-async-chat-completions.mjs +2 -2
- package/dist/actions/list-async-chat-completions.mjs.map +1 -1
- package/dist/actions/list-models.cjs +2 -2
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +2 -2
- package/dist/actions/list-models.d.mts +2 -2
- package/dist/actions/list-models.mjs +2 -2
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/search.cjs +2 -2
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +2 -2
- package/dist/actions/search.d.mts +2 -2
- package/dist/actions/search.mjs +2 -2
- package/dist/actions/search.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -13,19 +13,19 @@ declare const PerplexityaiExecuteAgentInput: z.ZodObject<{
|
|
|
13
13
|
last_updated_after_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
search_before_date_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
last_updated_before_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
17
|
max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
max_tokens_per_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
20
20
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
21
21
|
max_urls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
23
23
|
name: z.ZodString;
|
|
24
24
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
25
25
|
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
27
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>]>>>;
|
|
29
29
|
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
30
|
preset: z.ZodOptional<z.ZodString>;
|
|
31
31
|
max_steps: z.ZodOptional<z.ZodNumber>;
|
|
@@ -55,13 +55,15 @@ declare const PerplexityaiExecuteAgentOutput: z.ZodObject<{
|
|
|
55
55
|
status: z.ZodNullable<z.ZodString>;
|
|
56
56
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
57
|
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$loose>;
|
|
59
59
|
declare const perplexityaiExecuteAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
60
|
input: string;
|
|
61
61
|
model?: string | undefined;
|
|
62
62
|
tools?: ({
|
|
63
|
+
[x: string]: unknown;
|
|
63
64
|
type?: string | undefined;
|
|
64
65
|
filters?: {
|
|
66
|
+
[x: string]: unknown;
|
|
65
67
|
search_domain_filter?: string[] | null | undefined;
|
|
66
68
|
search_recency_filter?: string | null | undefined;
|
|
67
69
|
search_after_date_filter?: string | null | undefined;
|
|
@@ -72,9 +74,11 @@ declare const perplexityaiExecuteAgent: import("@keystrokehq/action").WorkflowAc
|
|
|
72
74
|
max_tokens?: number | null | undefined;
|
|
73
75
|
max_tokens_per_page?: number | null | undefined;
|
|
74
76
|
} | {
|
|
77
|
+
[x: string]: unknown;
|
|
75
78
|
type?: string | undefined;
|
|
76
79
|
max_urls?: number | null | undefined;
|
|
77
80
|
} | {
|
|
81
|
+
[x: string]: unknown;
|
|
78
82
|
name: string;
|
|
79
83
|
type?: string | undefined;
|
|
80
84
|
strict?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.d.mts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY9B,wBAAA,gCAAwB,wBAAA
|
|
1
|
+
{"version":3,"file":"execute-agent.d.mts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY9B,wBAAA,gCAAwB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnC,MAAA;;;;;;;;;;;;;;cAAA,MAAA"}
|
|
@@ -17,21 +17,21 @@ const perplexityaiExecuteAgent = action("PERPLEXITYAI_EXECUTE_AGENT", {
|
|
|
17
17
|
last_updated_after_filter: z.string().nullable().optional(),
|
|
18
18
|
search_before_date_filter: z.string().nullable().optional(),
|
|
19
19
|
last_updated_before_filter: z.string().nullable().optional()
|
|
20
|
-
}).describe("Filters for the web search tool.").nullable().optional(),
|
|
20
|
+
}).passthrough().describe("Filters for the web search tool.").nullable().optional(),
|
|
21
21
|
max_tokens: z.number().int().nullable().optional(),
|
|
22
22
|
max_tokens_per_page: z.number().int().nullable().optional()
|
|
23
|
-
}).describe("Web search tool configuration."),
|
|
23
|
+
}).passthrough().describe("Web search tool configuration."),
|
|
24
24
|
z.object({
|
|
25
25
|
type: z.string().default("fetch_url").describe("Must be 'fetch_url'").optional(),
|
|
26
26
|
max_urls: z.number().int().nullable().optional()
|
|
27
|
-
}).describe("URL fetching tool configuration."),
|
|
27
|
+
}).passthrough().describe("URL fetching tool configuration."),
|
|
28
28
|
z.object({
|
|
29
29
|
name: z.string().describe("Name of the function"),
|
|
30
30
|
type: z.string().default("function").describe("Must be 'function'").optional(),
|
|
31
31
|
strict: z.boolean().nullable().optional(),
|
|
32
32
|
parameters: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
33
33
|
description: z.string().nullable().optional()
|
|
34
|
-
}).describe("Function calling tool configuration.")
|
|
34
|
+
}).passthrough().describe("Function calling tool configuration.")
|
|
35
35
|
])).describe("Tools available to the agent: web_search, fetch_url, function.").optional(),
|
|
36
36
|
models: z.array(z.string()).describe("Fallback chain of models (min 1, max 5). API tries each in order if prior fails. At least one of model, models, or preset is required.").optional(),
|
|
37
37
|
preset: z.string().describe("Preset configuration: 'fast-search', 'pro-search', 'deep-research'. 'deep-research' generates very long responses (10K-100K+ words). At least one of model, models, or preset is required.").optional(),
|
|
@@ -60,7 +60,7 @@ const perplexityaiExecuteAgent = action("PERPLEXITYAI_EXECUTE_AGENT", {
|
|
|
60
60
|
status: z.string().describe("Status: 'completed', 'failed', 'in_progress', 'requires_action'").nullable(),
|
|
61
61
|
created_at: z.number().int().describe("Unix timestamp of creation").nullable().optional(),
|
|
62
62
|
output_text: z.string().describe("Extracted text output (convenience field)").nullable().optional()
|
|
63
|
-
}).describe("Response model for the Agent API.")
|
|
63
|
+
}).passthrough().describe("Response model for the Agent API.")
|
|
64
64
|
});
|
|
65
65
|
//#endregion
|
|
66
66
|
export { perplexityaiExecuteAgent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.mjs","names":[],"sources":["../../src/actions/execute-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiExecuteAgentInput = z.object({\n input: z.string().describe(\"The user's input/query to process.\"),\n model: z.string().describe(\"Model identifier (e.g. 'openai/gpt-5.2', 'perplexity/sonar'). Provider/model format. At least one of model, models, or preset is required.\").optional(),\n tools: z.array(z.union([z.object({\n type: z.string().default(\"web_search\").describe(\"Must be 'web_search'\").optional(),\n filters: z.object({\n search_domain_filter: z.array(z.string()).nullable().optional(),\n search_recency_filter: z.string().nullable().optional(),\n search_after_date_filter: z.string().nullable().optional(),\n last_updated_after_filter: z.string().nullable().optional(),\n search_before_date_filter: z.string().nullable().optional(),\n last_updated_before_filter: z.string().nullable().optional(),\n}).describe(\"Filters for the web search tool.\").nullable().optional(),\n max_tokens: z.number().int().nullable().optional(),\n max_tokens_per_page: z.number().int().nullable().optional(),\n}).describe(\"Web search tool configuration.\"), z.object({\n type: z.string().default(\"fetch_url\").describe(\"Must be 'fetch_url'\").optional(),\n max_urls: z.number().int().nullable().optional(),\n}).describe(\"URL fetching tool configuration.\"), z.object({\n name: z.string().describe(\"Name of the function\"),\n type: z.string().default(\"function\").describe(\"Must be 'function'\").optional(),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).describe(\"Function calling tool configuration.\")])).describe(\"Tools available to the agent: web_search, fetch_url, function.\").optional(),\n models: z.array(z.string()).describe(\"Fallback chain of models (min 1, max 5). API tries each in order if prior fails. At least one of model, models, or preset is required.\").optional(),\n preset: z.string().describe(\"Preset configuration: 'fast-search', 'pro-search', 'deep-research'. 'deep-research' generates very long responses (10K-100K+ words). At least one of model, models, or preset is required.\").optional(),\n max_steps: z.number().int().describe(\"Maximum number of agent steps (1-10).\").optional(),\n reasoning: z.object({\n effort: z.string().describe(\"Reasoning effort: 'low', 'medium', 'high'\"),\n}).describe(\"Configuration for reasoning behavior.\").optional(),\n instructions: z.string().describe(\"System instructions to guide the agent's behavior.\").optional(),\n response_format: z.object({\n type: z.string().describe(\"Must be 'json_schema'\"),\n json_schema: z.object({\n name: z.string().describe(\"Schema name (1-64 alphanumeric)\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition\"),\n strict: z.boolean().describe(\"Enforce strict validation\").optional(),\n description: z.string().describe(\"Schema description\").optional(),\n}).describe(\"JSON schema for structured output.\").optional(),\n}).describe(\"Response format for structured output.\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum output tokens.\").optional(),\n language_preference: z.string().describe(\"Preferred response language as ISO 639-1 code.\").optional(),\n}).describe(\"Request model for the Agent API.\");\nexport const PerplexityaiExecuteAgentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the response\").nullable(),\n error: z.record(z.string(), z.unknown()).describe(\"Error info if status is 'failed'\").nullable().optional(),\n model: z.string().describe(\"Model used\").nullable(),\n usage: z.record(z.string(), z.unknown()).describe(\"Token usage and cost information\").nullable().optional(),\n object: z.string().describe(\"Object type, typically 'response'\").nullable().optional(),\n output: z.array(z.record(z.string(), z.unknown())).describe(\"Output items (messages, search results, function calls)\").nullable().optional(),\n status: z.string().describe(\"Status: 'completed', 'failed', 'in_progress', 'requires_action'\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of creation\").nullable().optional(),\n output_text: z.string().describe(\"Extracted text output (convenience field)\").nullable().optional(),\n}).describe(\"Response model for the Agent API.\");\n\nexport const perplexityaiExecuteAgent = action(\"PERPLEXITYAI_EXECUTE_AGENT\", {\n slug: \"perplexityai-execute-agent\",\n name: \"Execute Agent\",\n description: \"Create Agent Response (POST /v1/agent). Orchestrates multi-step agentic workflows with built-in tools (web search, URL fetching, function calling), reasoning, and multi-model support. Streaming is not supported by this action. At least one of 'model', 'models', or 'preset' must be provided. Available presets: 'fast-search', 'pro-search', 'deep-research'. The 'deep-research' preset generates very long responses (10K-100K+ words) with exhaustive multi-source analysis. Available models include Perplexity Sonar, OpenAI, Anthropic, Google, xAI, and NVIDIA models at direct provider rates. Use the List Models action to see available model identifiers.\",\n input: PerplexityaiExecuteAgentInput,\n output: PerplexityaiExecuteAgentOutput,\n});\n"],"mappings":";;AA4DA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5D2C,EAAE,OAAO;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EAClL,OAAO,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;IACjC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;IACjF,SAAS,EAAE,OAAO;KAClB,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;KAC9D,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;KACtD,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;KACzD,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;KAC1D,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;KAC1D,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;IAC7D,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"execute-agent.mjs","names":[],"sources":["../../src/actions/execute-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiExecuteAgentInput = z.object({\n input: z.string().describe(\"The user's input/query to process.\"),\n model: z.string().describe(\"Model identifier (e.g. 'openai/gpt-5.2', 'perplexity/sonar'). Provider/model format. At least one of model, models, or preset is required.\").optional(),\n tools: z.array(z.union([z.object({\n type: z.string().default(\"web_search\").describe(\"Must be 'web_search'\").optional(),\n filters: z.object({\n search_domain_filter: z.array(z.string()).nullable().optional(),\n search_recency_filter: z.string().nullable().optional(),\n search_after_date_filter: z.string().nullable().optional(),\n last_updated_after_filter: z.string().nullable().optional(),\n search_before_date_filter: z.string().nullable().optional(),\n last_updated_before_filter: z.string().nullable().optional(),\n}).passthrough().describe(\"Filters for the web search tool.\").nullable().optional(),\n max_tokens: z.number().int().nullable().optional(),\n max_tokens_per_page: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Web search tool configuration.\"), z.object({\n type: z.string().default(\"fetch_url\").describe(\"Must be 'fetch_url'\").optional(),\n max_urls: z.number().int().nullable().optional(),\n}).passthrough().describe(\"URL fetching tool configuration.\"), z.object({\n name: z.string().describe(\"Name of the function\"),\n type: z.string().default(\"function\").describe(\"Must be 'function'\").optional(),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Function calling tool configuration.\")])).describe(\"Tools available to the agent: web_search, fetch_url, function.\").optional(),\n models: z.array(z.string()).describe(\"Fallback chain of models (min 1, max 5). API tries each in order if prior fails. At least one of model, models, or preset is required.\").optional(),\n preset: z.string().describe(\"Preset configuration: 'fast-search', 'pro-search', 'deep-research'. 'deep-research' generates very long responses (10K-100K+ words). At least one of model, models, or preset is required.\").optional(),\n max_steps: z.number().int().describe(\"Maximum number of agent steps (1-10).\").optional(),\n reasoning: z.object({\n effort: z.string().describe(\"Reasoning effort: 'low', 'medium', 'high'\"),\n}).describe(\"Configuration for reasoning behavior.\").optional(),\n instructions: z.string().describe(\"System instructions to guide the agent's behavior.\").optional(),\n response_format: z.object({\n type: z.string().describe(\"Must be 'json_schema'\"),\n json_schema: z.object({\n name: z.string().describe(\"Schema name (1-64 alphanumeric)\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition\"),\n strict: z.boolean().describe(\"Enforce strict validation\").optional(),\n description: z.string().describe(\"Schema description\").optional(),\n}).describe(\"JSON schema for structured output.\").optional(),\n}).describe(\"Response format for structured output.\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum output tokens.\").optional(),\n language_preference: z.string().describe(\"Preferred response language as ISO 639-1 code.\").optional(),\n}).describe(\"Request model for the Agent API.\");\nexport const PerplexityaiExecuteAgentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the response\").nullable(),\n error: z.record(z.string(), z.unknown()).describe(\"Error info if status is 'failed'\").nullable().optional(),\n model: z.string().describe(\"Model used\").nullable(),\n usage: z.record(z.string(), z.unknown()).describe(\"Token usage and cost information\").nullable().optional(),\n object: z.string().describe(\"Object type, typically 'response'\").nullable().optional(),\n output: z.array(z.record(z.string(), z.unknown())).describe(\"Output items (messages, search results, function calls)\").nullable().optional(),\n status: z.string().describe(\"Status: 'completed', 'failed', 'in_progress', 'requires_action'\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of creation\").nullable().optional(),\n output_text: z.string().describe(\"Extracted text output (convenience field)\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Agent API.\");\n\nexport const perplexityaiExecuteAgent = action(\"PERPLEXITYAI_EXECUTE_AGENT\", {\n slug: \"perplexityai-execute-agent\",\n name: \"Execute Agent\",\n description: \"Create Agent Response (POST /v1/agent). Orchestrates multi-step agentic workflows with built-in tools (web search, URL fetching, function calling), reasoning, and multi-model support. Streaming is not supported by this action. At least one of 'model', 'models', or 'preset' must be provided. Available presets: 'fast-search', 'pro-search', 'deep-research'. The 'deep-research' preset generates very long responses (10K-100K+ words) with exhaustive multi-source analysis. Available models include Perplexity Sonar, OpenAI, Anthropic, Google, xAI, and NVIDIA models at direct provider rates. Use the List Models action to see available model identifiers.\",\n input: PerplexityaiExecuteAgentInput,\n output: PerplexityaiExecuteAgentOutput,\n});\n"],"mappings":";;AA4DA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN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SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAOhB;AACV,CAAC"}
|
|
@@ -18,7 +18,7 @@ const PerplexityaiGetAsyncChatCompletionOutput = zod.z.object({
|
|
|
18
18
|
started_at: zod.z.number().int().describe("Unix timestamp when processing started").nullable().optional(),
|
|
19
19
|
completed_at: zod.z.number().int().describe("Unix timestamp when completed").nullable().optional(),
|
|
20
20
|
error_message: zod.z.string().describe("Error message if job failed").nullable().optional()
|
|
21
|
-
}).describe("Response model for an async chat completion result.");
|
|
21
|
+
}).passthrough().describe("Response model for an async chat completion result.");
|
|
22
22
|
const perplexityaiGetAsyncChatCompletion = require_action.action("PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION", {
|
|
23
23
|
slug: "perplexityai-get-async-chat-completion",
|
|
24
24
|
name: "Get Async Chat Completion",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC3G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,iEAAiEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAC/K,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,+DAA+D,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,qDAAqD;
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC3G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,iEAAiEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAC/K,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,+DAA+D,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
|
|
|
19
19
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
21
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const perplexityaiGetAsyncChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
request_id: string;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -19,7 +19,7 @@ declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
|
|
|
19
19
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
21
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const perplexityaiGetAsyncChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
request_id: string;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -23,7 +23,7 @@ const perplexityaiGetAsyncChatCompletion = action("PERPLEXITYAI_GET_ASYNC_CHAT_C
|
|
|
23
23
|
started_at: z.number().int().describe("Unix timestamp when processing started").nullable().optional(),
|
|
24
24
|
completed_at: z.number().int().describe("Unix timestamp when completed").nullable().optional(),
|
|
25
25
|
error_message: z.string().describe("Error message if job failed").nullable().optional()
|
|
26
|
-
}).describe("Response model for an async chat completion result.")
|
|
26
|
+
}).passthrough().describe("Response model for an async chat completion result.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { perplexityaiGetAsyncChatCompletion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.mjs","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC3G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,iEAAiE,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAa/K,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,QAAQ,+DAA+D,SAAS;EAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.mjs","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC3G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,iEAAiE,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAa/K,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,QAAQ,+DAA+D,SAAS;EAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -16,11 +16,11 @@ const PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = zod.z.obj
|
|
|
16
16
|
created_at: zod.z.number().int().describe("Unix timestamp when the request was created").nullable(),
|
|
17
17
|
started_at: zod.z.number().int().describe("Unix timestamp when processing started").nullable().optional(),
|
|
18
18
|
completed_at: zod.z.number().int().describe("Unix timestamp when completed").nullable().optional()
|
|
19
|
-
}).describe("Summary of an async chat completion request.");
|
|
19
|
+
}).passthrough().describe("Summary of an async chat completion request.");
|
|
20
20
|
const PerplexityaiListAsyncChatCompletionsOutput = zod.z.object({
|
|
21
21
|
requests: zod.z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe("List of async request summaries"),
|
|
22
22
|
next_token: zod.z.string().describe("Pagination token for the next page").nullable().optional()
|
|
23
|
-
}).describe("Response model for listing async chat completions.");
|
|
23
|
+
}).passthrough().describe("Response model for listing async chat completions.");
|
|
24
24
|
const perplexityaiListAsyncChatCompletions = require_action.action("PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS", {
|
|
25
25
|
slug: "perplexityai-list-async-chat-completions",
|
|
26
26
|
name: "List Async Chat Completions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-async-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListAsyncChatCompletionsInput = z.object({}).describe(\"Request model for listing async chat completions. No parameters required.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({\n id: z.string().describe(\"Unique identifier for the request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n}).describe(\"Summary of an async chat completion request.\");\nexport const PerplexityaiListAsyncChatCompletionsOutput = z.object({\n requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe(\"List of async request summaries\"),\n next_token: z.string().describe(\"Pagination token for the next page\").nullable().optional(),\n}).describe(\"Response model for listing async chat completions.\");\n\nexport const perplexityaiListAsyncChatCompletions = action(\"PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS\", {\n slug: \"perplexityai-list-async-chat-completions\",\n name: \"List Async Chat Completions\",\n description: \"List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.\",\n input: PerplexityaiListAsyncChatCompletionsInput,\n output: PerplexityaiListAsyncChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,mEAAmEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjL,MAAM,iEAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,iEAAiE,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"list-async-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListAsyncChatCompletionsInput = z.object({}).describe(\"Request model for listing async chat completions. No parameters required.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({\n id: z.string().describe(\"Unique identifier for the request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n}).passthrough().describe(\"Summary of an async chat completion request.\");\nexport const PerplexityaiListAsyncChatCompletionsOutput = z.object({\n requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe(\"List of async request summaries\"),\n next_token: z.string().describe(\"Pagination token for the next page\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing async chat completions.\");\n\nexport const perplexityaiListAsyncChatCompletions = action(\"PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS\", {\n slug: \"perplexityai-list-async-chat-completions\",\n name: \"List Async Chat Completions\",\n description: \"List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.\",\n input: PerplexityaiListAsyncChatCompletionsInput,\n output: PerplexityaiListAsyncChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,mEAAmEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjL,MAAM,iEAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,iEAAiE,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,iCAAiC;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,9 +16,9 @@ declare const PerplexityaiListAsyncChatCompletionsOutput: z.ZodObject<{
|
|
|
16
16
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
17
17
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
next_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const perplexityaiListAsyncChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { perplexityaiListAsyncChatCompletions };
|
|
@@ -16,9 +16,9 @@ declare const PerplexityaiListAsyncChatCompletionsOutput: z.ZodObject<{
|
|
|
16
16
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
17
17
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
next_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const perplexityaiListAsyncChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { perplexityaiListAsyncChatCompletions };
|
|
@@ -16,7 +16,7 @@ const PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object(
|
|
|
16
16
|
created_at: z.number().int().describe("Unix timestamp when the request was created").nullable(),
|
|
17
17
|
started_at: z.number().int().describe("Unix timestamp when processing started").nullable().optional(),
|
|
18
18
|
completed_at: z.number().int().describe("Unix timestamp when completed").nullable().optional()
|
|
19
|
-
}).describe("Summary of an async chat completion request.");
|
|
19
|
+
}).passthrough().describe("Summary of an async chat completion request.");
|
|
20
20
|
const perplexityaiListAsyncChatCompletions = action("PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS", {
|
|
21
21
|
slug: "perplexityai-list-async-chat-completions",
|
|
22
22
|
name: "List Async Chat Completions",
|
|
@@ -25,7 +25,7 @@ const perplexityaiListAsyncChatCompletions = action("PERPLEXITYAI_LIST_ASYNC_CHA
|
|
|
25
25
|
output: z.object({
|
|
26
26
|
requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe("List of async request summaries"),
|
|
27
27
|
next_token: z.string().describe("Pagination token for the next page").nullable().optional()
|
|
28
|
-
}).describe("Response model for listing async chat completions.")
|
|
28
|
+
}).passthrough().describe("Response model for listing async chat completions.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { perplexityaiListAsyncChatCompletions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-async-chat-completions.mjs","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListAsyncChatCompletionsInput = z.object({}).describe(\"Request model for listing async chat completions. No parameters required.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({\n id: z.string().describe(\"Unique identifier for the request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n}).describe(\"Summary of an async chat completion request.\");\nexport const PerplexityaiListAsyncChatCompletionsOutput = z.object({\n requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe(\"List of async request summaries\"),\n next_token: z.string().describe(\"Pagination token for the next page\").nullable().optional(),\n}).describe(\"Response model for listing async chat completions.\");\n\nexport const perplexityaiListAsyncChatCompletions = action(\"PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS\", {\n slug: \"perplexityai-list-async-chat-completions\",\n name: \"List Async Chat Completions\",\n description: \"List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.\",\n input: PerplexityaiListAsyncChatCompletionsInput,\n output: PerplexityaiListAsyncChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,mEAAmE,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjL,MAAM,iEAAiE,EAAE,OAAO;CAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,iEAAiE,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"list-async-chat-completions.mjs","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListAsyncChatCompletionsInput = z.object({}).describe(\"Request model for listing async chat completions. No parameters required.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({\n id: z.string().describe(\"Unique identifier for the request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n}).passthrough().describe(\"Summary of an async chat completion request.\");\nexport const PerplexityaiListAsyncChatCompletionsOutput = z.object({\n requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe(\"List of async request summaries\"),\n next_token: z.string().describe(\"Pagination token for the next page\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing async chat completions.\");\n\nexport const perplexityaiListAsyncChatCompletions = action(\"PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS\", {\n slug: \"perplexityai-list-async-chat-completions\",\n name: \"List Async Chat Completions\",\n description: \"List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.\",\n input: PerplexityaiListAsyncChatCompletionsInput,\n output: PerplexityaiListAsyncChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,mEAAmE,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjL,MAAM,iEAAiE,EAAE,OAAO;CAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,iEAAiE,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAMxE,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,UAAU,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,iCAAiC;EAC5H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -7,11 +7,11 @@ const PerplexityaiListModels_ModelInfoSchema = zod.z.object({
|
|
|
7
7
|
object: zod.z.string().describe("Object type, always 'model'").nullable(),
|
|
8
8
|
created: zod.z.number().int().describe("Unix timestamp when the model was added").nullable(),
|
|
9
9
|
owned_by: zod.z.string().describe("Provider name (e.g. 'anthropic', 'openai')").nullable()
|
|
10
|
-
}).describe("Information about an available model.");
|
|
10
|
+
}).passthrough().describe("Information about an available model.");
|
|
11
11
|
const PerplexityaiListModelsOutput = zod.z.object({
|
|
12
12
|
data: zod.z.array(PerplexityaiListModels_ModelInfoSchema).describe("List of available models"),
|
|
13
13
|
object: zod.z.string().describe("Object type, always 'list'").nullable()
|
|
14
|
-
}).describe("Response model for listing available models.");
|
|
14
|
+
}).passthrough().describe("Response model for listing available models.");
|
|
15
15
|
const perplexityaiListModels = require_action.action("PERPLEXITYAI_LIST_MODELS", {
|
|
16
16
|
slug: "perplexityai-list-models",
|
|
17
17
|
name: "List Models",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListModelsInput = z.object({}).describe(\"Request model for listing available models. No parameters required.\");\nconst PerplexityaiListModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Model identifier (e.g. 'anthropic/claude-sonnet-4-6')\").nullable(),\n object: z.string().describe(\"Object type, always 'model'\").nullable(),\n created: z.number().int().describe(\"Unix timestamp when the model was added\").nullable(),\n owned_by: z.string().describe(\"Provider name (e.g. 'anthropic', 'openai')\").nullable(),\n}).describe(\"Information about an available model.\");\nexport const PerplexityaiListModelsOutput = z.object({\n data: z.array(PerplexityaiListModels_ModelInfoSchema).describe(\"List of available models\"),\n object: z.string().describe(\"Object type, always 'list'\").nullable(),\n}).describe(\"Response model for listing available models.\");\n\nexport const perplexityaiListModels = action(\"PERPLEXITYAI_LIST_MODELS\", {\n slug: \"perplexityai-list-models\",\n name: \"List Models\",\n description: \"List Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint. The response follows the OpenAI List Models format for compatibility. This is a public endpoint that does not require authentication.\",\n input: PerplexityaiListModelsInput,\n output: PerplexityaiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACtI,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListModelsInput = z.object({}).describe(\"Request model for listing available models. No parameters required.\");\nconst PerplexityaiListModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Model identifier (e.g. 'anthropic/claude-sonnet-4-6')\").nullable(),\n object: z.string().describe(\"Object type, always 'model'\").nullable(),\n created: z.number().int().describe(\"Unix timestamp when the model was added\").nullable(),\n owned_by: z.string().describe(\"Provider name (e.g. 'anthropic', 'openai')\").nullable(),\n}).passthrough().describe(\"Information about an available model.\");\nexport const PerplexityaiListModelsOutput = z.object({\n data: z.array(PerplexityaiListModels_ModelInfoSchema).describe(\"List of available models\"),\n object: z.string().describe(\"Object type, always 'list'\").nullable(),\n}).passthrough().describe(\"Response model for listing available models.\");\n\nexport const perplexityaiListModels = action(\"PERPLEXITYAI_LIST_MODELS\", {\n slug: \"perplexityai-list-models\",\n name: \"List Models\",\n description: \"List Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint. The response follows the OpenAI List Models format for compatibility. This is a public endpoint that does not require authentication.\",\n input: PerplexityaiListModelsInput,\n output: PerplexityaiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACtI,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0BAA0B;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,9 +8,9 @@ declare const PerplexityaiListModelsOutput: z.ZodObject<{
|
|
|
8
8
|
object: z.ZodNullable<z.ZodString>;
|
|
9
9
|
created: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
owned_by: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
object: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const perplexityaiListModels: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { perplexityaiListModels };
|
|
@@ -8,9 +8,9 @@ declare const PerplexityaiListModelsOutput: z.ZodObject<{
|
|
|
8
8
|
object: z.ZodNullable<z.ZodString>;
|
|
9
9
|
created: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
owned_by: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
object: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const perplexityaiListModels: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { perplexityaiListModels };
|
|
@@ -7,7 +7,7 @@ const PerplexityaiListModels_ModelInfoSchema = z.object({
|
|
|
7
7
|
object: z.string().describe("Object type, always 'model'").nullable(),
|
|
8
8
|
created: z.number().int().describe("Unix timestamp when the model was added").nullable(),
|
|
9
9
|
owned_by: z.string().describe("Provider name (e.g. 'anthropic', 'openai')").nullable()
|
|
10
|
-
}).describe("Information about an available model.");
|
|
10
|
+
}).passthrough().describe("Information about an available model.");
|
|
11
11
|
const perplexityaiListModels = action("PERPLEXITYAI_LIST_MODELS", {
|
|
12
12
|
slug: "perplexityai-list-models",
|
|
13
13
|
name: "List Models",
|
|
@@ -16,7 +16,7 @@ const perplexityaiListModels = action("PERPLEXITYAI_LIST_MODELS", {
|
|
|
16
16
|
output: z.object({
|
|
17
17
|
data: z.array(PerplexityaiListModels_ModelInfoSchema).describe("List of available models"),
|
|
18
18
|
object: z.string().describe("Object type, always 'list'").nullable()
|
|
19
|
-
}).describe("Response model for listing available models.")
|
|
19
|
+
}).passthrough().describe("Response model for listing available models.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { perplexityaiListModels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListModelsInput = z.object({}).describe(\"Request model for listing available models. No parameters required.\");\nconst PerplexityaiListModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Model identifier (e.g. 'anthropic/claude-sonnet-4-6')\").nullable(),\n object: z.string().describe(\"Object type, always 'model'\").nullable(),\n created: z.number().int().describe(\"Unix timestamp when the model was added\").nullable(),\n owned_by: z.string().describe(\"Provider name (e.g. 'anthropic', 'openai')\").nullable(),\n}).describe(\"Information about an available model.\");\nexport const PerplexityaiListModelsOutput = z.object({\n data: z.array(PerplexityaiListModels_ModelInfoSchema).describe(\"List of available models\"),\n object: z.string().describe(\"Object type, always 'list'\").nullable(),\n}).describe(\"Response model for listing available models.\");\n\nexport const perplexityaiListModels = action(\"PERPLEXITYAI_LIST_MODELS\", {\n slug: \"perplexityai-list-models\",\n name: \"List Models\",\n description: \"List Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint. The response follows the OpenAI List Models format for compatibility. This is a public endpoint that does not require authentication.\",\n input: PerplexityaiListModelsInput,\n output: PerplexityaiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACtI,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListModelsInput = z.object({}).describe(\"Request model for listing available models. No parameters required.\");\nconst PerplexityaiListModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Model identifier (e.g. 'anthropic/claude-sonnet-4-6')\").nullable(),\n object: z.string().describe(\"Object type, always 'model'\").nullable(),\n created: z.number().int().describe(\"Unix timestamp when the model was added\").nullable(),\n owned_by: z.string().describe(\"Provider name (e.g. 'anthropic', 'openai')\").nullable(),\n}).passthrough().describe(\"Information about an available model.\");\nexport const PerplexityaiListModelsOutput = z.object({\n data: z.array(PerplexityaiListModels_ModelInfoSchema).describe(\"List of available models\"),\n object: z.string().describe(\"Object type, always 'list'\").nullable(),\n}).passthrough().describe(\"Response model for listing available models.\");\n\nexport const perplexityaiListModels = action(\"PERPLEXITYAI_LIST_MODELS\", {\n slug: \"perplexityai-list-models\",\n name: \"List Models\",\n description: \"List Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint. The response follows the OpenAI List Models format for compatibility. This is a public endpoint that does not require authentication.\",\n input: PerplexityaiListModelsInput,\n output: PerplexityaiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACtI,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0BAA0B;EACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
package/dist/actions/search.cjs
CHANGED
|
@@ -27,12 +27,12 @@ const PerplexityaiSearch_SearchResultItemSchema = zod.z.object({
|
|
|
27
27
|
title: zod.z.string().describe("Title of the search result").nullable(),
|
|
28
28
|
snippet: zod.z.string().describe("Text snippet from the search result").nullable(),
|
|
29
29
|
last_updated: zod.z.string().describe("Last updated date").nullable().optional()
|
|
30
|
-
}).describe("Individual search result.");
|
|
30
|
+
}).passthrough().describe("Individual search result.");
|
|
31
31
|
const PerplexityaiSearchOutput = zod.z.object({
|
|
32
32
|
id: zod.z.string().describe("Request identifier").nullable().optional(),
|
|
33
33
|
results: zod.z.array(PerplexityaiSearch_SearchResultItemSchema).describe("List of ranked web search results"),
|
|
34
34
|
server_time: zod.z.string().describe("Server timestamp").nullable().optional()
|
|
35
|
-
}).describe("Response model for the Search API.");
|
|
35
|
+
}).passthrough().describe("Response model for the Search API.");
|
|
36
36
|
const perplexityaiSearch = require_action.action("PERPLEXITYAI_SEARCH", {
|
|
37
37
|
slug: "perplexityai-search",
|
|
38
38
|
name: "Perplexity Search (Raw Results)",
|
|
@@ -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 PerplexityaiSearchInput = z.object({\n query: z.union([z.string(), z.array(z.string())]),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE').\").optional(),\n max_tokens: z.number().int().default(10000).describe(\"Maximum total tokens of webpage content returned (1-1000000).\").optional(),\n max_results: z.number().int().default(10).describe(\"Maximum number of search results to return (1-20).\").optional(),\n max_tokens_per_page: z.number().int().default(4096).describe(\"Maximum tokens retrieved from each webpage (1-1000000).\").optional(),\n search_domain_filter: z.array(z.string()).describe(\"Domains to restrict search results to (max 20).\").optional(),\n search_recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\"]).describe(\"Filter for search recency.\").optional(),\n search_language_filter: z.array(z.string()).describe(\"ISO 639-1 language codes to filter results (max 20, 2 chars each).\").optional(),\n search_after_date_filter: z.string().describe(\"Only include results published after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_after_filter: z.string().describe(\"Only include results last updated after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n search_before_date_filter: z.string().describe(\"Only include results published before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_before_filter: z.string().describe(\"Only include results last updated before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n}).describe(\"Request model for the Search API.\");\nconst PerplexityaiSearch_SearchResultItemSchema = z.object({\n url: z.string().describe(\"URL of the search result\").nullable(),\n date: z.string().describe(\"Publication date\").nullable().optional(),\n title: z.string().describe(\"Title of the search result\").nullable(),\n snippet: z.string().describe(\"Text snippet from the search result\").nullable(),\n last_updated: z.string().describe(\"Last updated date\").nullable().optional(),\n}).describe(\"Individual search result.\");\nexport const PerplexityaiSearchOutput = z.object({\n id: z.string().describe(\"Request identifier\").nullable().optional(),\n results: z.array(PerplexityaiSearch_SearchResultItemSchema).describe(\"List of ranked web search results\"),\n server_time: z.string().describe(\"Server timestamp\").nullable().optional(),\n}).describe(\"Response model for the Search API.\");\n\nexport const perplexityaiSearch = action(\"PERPLEXITYAI_SEARCH\", {\n slug: \"perplexityai-search\",\n name: \"Perplexity Search (Raw Results)\",\n description: \"Search the Web (POST /search). Returns raw, ranked web search results directly from Perplexity's index without LLM processing. Faster and cheaper than chat completions when you need raw results. Supports filtering by domain, date, language, country, and recency. Max 20 results per request. Important: search_recency_filter and date filters (search_after_date_filter, search_before_date_filter, last_updated_after_filter, last_updated_before_filter) are mutually exclusive. Use one or the other, not both.\",\n input: PerplexityaiSearchInput,\n output: PerplexityaiSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAK,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC/H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAClH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjI,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,uBAAuBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;CAAM,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxH,wBAAwBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpI,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClK,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtK,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACpK,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,2BAA2B;
|
|
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 PerplexityaiSearchInput = z.object({\n query: z.union([z.string(), z.array(z.string())]),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE').\").optional(),\n max_tokens: z.number().int().default(10000).describe(\"Maximum total tokens of webpage content returned (1-1000000).\").optional(),\n max_results: z.number().int().default(10).describe(\"Maximum number of search results to return (1-20).\").optional(),\n max_tokens_per_page: z.number().int().default(4096).describe(\"Maximum tokens retrieved from each webpage (1-1000000).\").optional(),\n search_domain_filter: z.array(z.string()).describe(\"Domains to restrict search results to (max 20).\").optional(),\n search_recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\"]).describe(\"Filter for search recency.\").optional(),\n search_language_filter: z.array(z.string()).describe(\"ISO 639-1 language codes to filter results (max 20, 2 chars each).\").optional(),\n search_after_date_filter: z.string().describe(\"Only include results published after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_after_filter: z.string().describe(\"Only include results last updated after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n search_before_date_filter: z.string().describe(\"Only include results published before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_before_filter: z.string().describe(\"Only include results last updated before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n}).describe(\"Request model for the Search API.\");\nconst PerplexityaiSearch_SearchResultItemSchema = z.object({\n url: z.string().describe(\"URL of the search result\").nullable(),\n date: z.string().describe(\"Publication date\").nullable().optional(),\n title: z.string().describe(\"Title of the search result\").nullable(),\n snippet: z.string().describe(\"Text snippet from the search result\").nullable(),\n last_updated: z.string().describe(\"Last updated date\").nullable().optional(),\n}).passthrough().describe(\"Individual search result.\");\nexport const PerplexityaiSearchOutput = z.object({\n id: z.string().describe(\"Request identifier\").nullable().optional(),\n results: z.array(PerplexityaiSearch_SearchResultItemSchema).describe(\"List of ranked web search results\"),\n server_time: z.string().describe(\"Server timestamp\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Search API.\");\n\nexport const perplexityaiSearch = action(\"PERPLEXITYAI_SEARCH\", {\n slug: \"perplexityai-search\",\n name: \"Perplexity Search (Raw Results)\",\n description: \"Search the Web (POST /search). Returns raw, ranked web search results directly from Perplexity's index without LLM processing. Faster and cheaper than chat completions when you need raw results. Supports filtering by domain, date, language, country, and recency. Max 20 results per request. Important: search_recency_filter and date filters (search_after_date_filter, search_before_date_filter, last_updated_after_filter, last_updated_before_filter) are mutually exclusive. Use one or the other, not both.\",\n input: PerplexityaiSearchInput,\n output: PerplexityaiSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAK,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC/H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAClH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjI,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,uBAAuBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;CAAM,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxH,wBAAwBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpI,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClK,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,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
|
@@ -29,9 +29,9 @@ declare const PerplexityaiSearchOutput: z.ZodObject<{
|
|
|
29
29
|
title: z.ZodNullable<z.ZodString>;
|
|
30
30
|
snippet: z.ZodNullable<z.ZodString>;
|
|
31
31
|
last_updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
server_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const perplexityaiSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
query: string | string[];
|
|
37
37
|
country?: string | undefined;
|
|
@@ -29,9 +29,9 @@ declare const PerplexityaiSearchOutput: z.ZodObject<{
|
|
|
29
29
|
title: z.ZodNullable<z.ZodString>;
|
|
30
30
|
snippet: z.ZodNullable<z.ZodString>;
|
|
31
31
|
last_updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
server_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const perplexityaiSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
query: string | string[];
|
|
37
37
|
country?: string | undefined;
|
package/dist/actions/search.mjs
CHANGED
|
@@ -27,7 +27,7 @@ const PerplexityaiSearch_SearchResultItemSchema = z.object({
|
|
|
27
27
|
title: z.string().describe("Title of the search result").nullable(),
|
|
28
28
|
snippet: z.string().describe("Text snippet from the search result").nullable(),
|
|
29
29
|
last_updated: z.string().describe("Last updated date").nullable().optional()
|
|
30
|
-
}).describe("Individual search result.");
|
|
30
|
+
}).passthrough().describe("Individual search result.");
|
|
31
31
|
const perplexityaiSearch = action("PERPLEXITYAI_SEARCH", {
|
|
32
32
|
slug: "perplexityai-search",
|
|
33
33
|
name: "Perplexity Search (Raw Results)",
|
|
@@ -37,7 +37,7 @@ const perplexityaiSearch = action("PERPLEXITYAI_SEARCH", {
|
|
|
37
37
|
id: z.string().describe("Request identifier").nullable().optional(),
|
|
38
38
|
results: z.array(PerplexityaiSearch_SearchResultItemSchema).describe("List of ranked web search results"),
|
|
39
39
|
server_time: z.string().describe("Server timestamp").nullable().optional()
|
|
40
|
-
}).describe("Response model for the Search API.")
|
|
40
|
+
}).passthrough().describe("Response model for the Search API.")
|
|
41
41
|
});
|
|
42
42
|
//#endregion
|
|
43
43
|
export { perplexityaiSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiSearchInput = z.object({\n query: z.union([z.string(), z.array(z.string())]),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE').\").optional(),\n max_tokens: z.number().int().default(10000).describe(\"Maximum total tokens of webpage content returned (1-1000000).\").optional(),\n max_results: z.number().int().default(10).describe(\"Maximum number of search results to return (1-20).\").optional(),\n max_tokens_per_page: z.number().int().default(4096).describe(\"Maximum tokens retrieved from each webpage (1-1000000).\").optional(),\n search_domain_filter: z.array(z.string()).describe(\"Domains to restrict search results to (max 20).\").optional(),\n search_recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\"]).describe(\"Filter for search recency.\").optional(),\n search_language_filter: z.array(z.string()).describe(\"ISO 639-1 language codes to filter results (max 20, 2 chars each).\").optional(),\n search_after_date_filter: z.string().describe(\"Only include results published after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_after_filter: z.string().describe(\"Only include results last updated after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n search_before_date_filter: z.string().describe(\"Only include results published before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_before_filter: z.string().describe(\"Only include results last updated before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n}).describe(\"Request model for the Search API.\");\nconst PerplexityaiSearch_SearchResultItemSchema = z.object({\n url: z.string().describe(\"URL of the search result\").nullable(),\n date: z.string().describe(\"Publication date\").nullable().optional(),\n title: z.string().describe(\"Title of the search result\").nullable(),\n snippet: z.string().describe(\"Text snippet from the search result\").nullable(),\n last_updated: z.string().describe(\"Last updated date\").nullable().optional(),\n}).describe(\"Individual search result.\");\nexport const PerplexityaiSearchOutput = z.object({\n id: z.string().describe(\"Request identifier\").nullable().optional(),\n results: z.array(PerplexityaiSearch_SearchResultItemSchema).describe(\"List of ranked web search results\"),\n server_time: z.string().describe(\"Server timestamp\").nullable().optional(),\n}).describe(\"Response model for the Search API.\");\n\nexport const perplexityaiSearch = action(\"PERPLEXITYAI_SEARCH\", {\n slug: \"perplexityai-search\",\n name: \"Perplexity Search (Raw Results)\",\n description: \"Search the Web (POST /search). Returns raw, ranked web search results directly from Perplexity's index without LLM processing. Faster and cheaper than chat completions when you need raw results. Supports filtering by domain, date, language, country, and recency. Max 20 results per request. Important: search_recency_filter and date filters (search_after_date_filter, search_before_date_filter, last_updated_after_filter, last_updated_before_filter) are mutually exclusive. Use one or the other, not both.\",\n input: PerplexityaiSearchInput,\n output: PerplexityaiSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAK,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC/H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,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
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiSearchInput = z.object({\n query: z.union([z.string(), z.array(z.string())]),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE').\").optional(),\n max_tokens: z.number().int().default(10000).describe(\"Maximum total tokens of webpage content returned (1-1000000).\").optional(),\n max_results: z.number().int().default(10).describe(\"Maximum number of search results to return (1-20).\").optional(),\n max_tokens_per_page: z.number().int().default(4096).describe(\"Maximum tokens retrieved from each webpage (1-1000000).\").optional(),\n search_domain_filter: z.array(z.string()).describe(\"Domains to restrict search results to (max 20).\").optional(),\n search_recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\"]).describe(\"Filter for search recency.\").optional(),\n search_language_filter: z.array(z.string()).describe(\"ISO 639-1 language codes to filter results (max 20, 2 chars each).\").optional(),\n search_after_date_filter: z.string().describe(\"Only include results published after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_after_filter: z.string().describe(\"Only include results last updated after this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n search_before_date_filter: z.string().describe(\"Only include results published before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n last_updated_before_filter: z.string().describe(\"Only include results last updated before this date (MM/DD/YYYY). Cannot be used with search_recency_filter.\").optional(),\n}).describe(\"Request model for the Search API.\");\nconst PerplexityaiSearch_SearchResultItemSchema = z.object({\n url: z.string().describe(\"URL of the search result\").nullable(),\n date: z.string().describe(\"Publication date\").nullable().optional(),\n title: z.string().describe(\"Title of the search result\").nullable(),\n snippet: z.string().describe(\"Text snippet from the search result\").nullable(),\n last_updated: z.string().describe(\"Last updated date\").nullable().optional(),\n}).passthrough().describe(\"Individual search result.\");\nexport const PerplexityaiSearchOutput = z.object({\n id: z.string().describe(\"Request identifier\").nullable().optional(),\n results: z.array(PerplexityaiSearch_SearchResultItemSchema).describe(\"List of ranked web search results\"),\n server_time: z.string().describe(\"Server timestamp\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Search API.\");\n\nexport const perplexityaiSearch = action(\"PERPLEXITYAI_SEARCH\", {\n slug: \"perplexityai-search\",\n name: \"Perplexity Search (Raw Results)\",\n description: \"Search the Web (POST /search). Returns raw, ranked web search results directly from Perplexity's index without LLM processing. Faster and cheaper than chat completions when you need raw results. Supports filtering by domain, date, language, country, and recency. Max 20 results per request. Important: search_recency_filter and date filters (search_after_date_filter, search_before_date_filter, last_updated_after_filter, last_updated_before_filter) are mutually exclusive. Use one or the other, not both.\",\n input: PerplexityaiSearchInput,\n output: PerplexityaiSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAK,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC/H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAClH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjI,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,uBAAuB,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;CAAM,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxH,wBAAwB,EAAE,MAAM,EAAE,OAAO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