@keystrokehq/perplexityai 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-async-chat-completion.cjs +5 -5
- package/dist/actions/create-async-chat-completion.cjs.map +1 -1
- package/dist/actions/create-async-chat-completion.d.cts +91 -3
- package/dist/actions/create-async-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-async-chat-completion.d.mts +91 -3
- package/dist/actions/create-async-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-async-chat-completion.mjs +5 -5
- package/dist/actions/create-async-chat-completion.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +20 -20
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +148 -3
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +148 -3
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +20 -20
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.cjs +13 -13
- package/dist/actions/create-contextualized-embeddings.cjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.cts +35 -3
- package/dist/actions/create-contextualized-embeddings.d.cts.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.mts +35 -3
- package/dist/actions/create-contextualized-embeddings.d.mts.map +1 -1
- package/dist/actions/create-contextualized-embeddings.mjs +13 -13
- package/dist/actions/create-contextualized-embeddings.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +14 -14
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +36 -3
- package/dist/actions/create-embeddings.d.cts.map +1 -1
- package/dist/actions/create-embeddings.d.mts +36 -3
- package/dist/actions/create-embeddings.d.mts.map +1 -1
- package/dist/actions/create-embeddings.mjs +14 -14
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/execute-agent.cjs +8 -8
- package/dist/actions/execute-agent.cjs.map +1 -1
- package/dist/actions/execute-agent.d.cts +103 -3
- package/dist/actions/execute-agent.d.cts.map +1 -1
- package/dist/actions/execute-agent.d.mts +103 -3
- package/dist/actions/execute-agent.d.mts.map +1 -1
- package/dist/actions/execute-agent.mjs +8 -8
- package/dist/actions/execute-agent.mjs.map +1 -1
- package/dist/actions/get-async-chat-completion.cjs +4 -4
- package/dist/actions/get-async-chat-completion.cjs.map +1 -1
- package/dist/actions/get-async-chat-completion.d.cts +22 -3
- package/dist/actions/get-async-chat-completion.d.cts.map +1 -1
- package/dist/actions/get-async-chat-completion.d.mts +22 -3
- package/dist/actions/get-async-chat-completion.d.mts.map +1 -1
- package/dist/actions/get-async-chat-completion.mjs +4 -4
- package/dist/actions/get-async-chat-completion.mjs.map +1 -1
- package/dist/actions/list-async-chat-completions.cjs +5 -5
- package/dist/actions/list-async-chat-completions.cjs.map +1 -1
- package/dist/actions/list-async-chat-completions.d.cts +19 -3
- package/dist/actions/list-async-chat-completions.d.cts.map +1 -1
- package/dist/actions/list-async-chat-completions.d.mts +19 -3
- package/dist/actions/list-async-chat-completions.d.mts.map +1 -1
- package/dist/actions/list-async-chat-completions.mjs +5 -5
- package/dist/actions/list-async-chat-completions.mjs.map +1 -1
- package/dist/actions/list-models.cjs +7 -7
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +11 -3
- package/dist/actions/list-models.d.cts.map +1 -1
- package/dist/actions/list-models.d.mts +11 -3
- package/dist/actions/list-models.d.mts.map +1 -1
- package/dist/actions/list-models.mjs +7 -7
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/search.cjs +5 -5
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +45 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +45 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +5 -5
- package/dist/actions/search.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,109 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/execute-agent.d.ts
|
|
4
|
-
declare const PerplexityaiExecuteAgentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiExecuteAgentInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodString;
|
|
6
|
+
model: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
search_domain_filter: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
search_recency_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
search_after_date_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
last_updated_after_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
search_before_date_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
last_updated_before_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
max_tokens_per_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
20
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
21
|
+
max_urls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
25
|
+
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>]>>>;
|
|
29
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
31
|
+
max_steps: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
effort: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
36
|
+
response_format: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
type: z.ZodString;
|
|
38
|
+
json_schema: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
41
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
max_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
language_preference: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const PerplexityaiExecuteAgentOutput: z.ZodObject<{
|
|
49
|
+
id: z.ZodNullable<z.ZodString>;
|
|
50
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
model: z.ZodNullable<z.ZodString>;
|
|
52
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
53
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
55
|
+
status: z.ZodNullable<z.ZodString>;
|
|
56
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
declare const perplexityaiExecuteAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
|
+
input: string;
|
|
61
|
+
model?: string | undefined;
|
|
62
|
+
tools?: ({
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
type?: string | undefined;
|
|
65
|
+
filters?: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
search_domain_filter?: string[] | null | undefined;
|
|
68
|
+
search_recency_filter?: string | null | undefined;
|
|
69
|
+
search_after_date_filter?: string | null | undefined;
|
|
70
|
+
last_updated_after_filter?: string | null | undefined;
|
|
71
|
+
search_before_date_filter?: string | null | undefined;
|
|
72
|
+
last_updated_before_filter?: string | null | undefined;
|
|
73
|
+
} | null | undefined;
|
|
74
|
+
max_tokens?: number | null | undefined;
|
|
75
|
+
max_tokens_per_page?: number | null | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
type?: string | undefined;
|
|
79
|
+
max_urls?: number | null | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
name: string;
|
|
83
|
+
type?: string | undefined;
|
|
84
|
+
strict?: boolean | null | undefined;
|
|
85
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
86
|
+
description?: string | null | undefined;
|
|
87
|
+
})[] | undefined;
|
|
88
|
+
models?: string[] | undefined;
|
|
89
|
+
preset?: string | undefined;
|
|
90
|
+
max_steps?: number | undefined;
|
|
91
|
+
reasoning?: {
|
|
92
|
+
effort: string;
|
|
93
|
+
} | undefined;
|
|
94
|
+
instructions?: string | undefined;
|
|
95
|
+
response_format?: {
|
|
96
|
+
type: string;
|
|
97
|
+
json_schema?: {
|
|
98
|
+
name: string;
|
|
99
|
+
schema: Record<string, unknown>;
|
|
100
|
+
strict?: boolean | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
max_output_tokens?: number | undefined;
|
|
105
|
+
language_preference?: string | undefined;
|
|
106
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
107
|
//#endregion
|
|
8
108
|
export { perplexityaiExecuteAgent };
|
|
9
109
|
//# sourceMappingURL=execute-agent.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.d.mts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;cAIa,6BAAA,
|
|
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(),
|
|
@@ -51,16 +51,16 @@ const perplexityaiExecuteAgent = action("PERPLEXITYAI_EXECUTE_AGENT", {
|
|
|
51
51
|
language_preference: z.string().describe("Preferred response language as ISO 639-1 code.").optional()
|
|
52
52
|
}).describe("Request model for the Agent API."),
|
|
53
53
|
output: z.object({
|
|
54
|
-
id: z.string().describe("Unique identifier for the response"),
|
|
54
|
+
id: z.string().describe("Unique identifier for the response").nullable(),
|
|
55
55
|
error: z.record(z.string(), z.unknown()).describe("Error info if status is 'failed'").nullable().optional(),
|
|
56
|
-
model: z.string().describe("Model used"),
|
|
56
|
+
model: z.string().describe("Model used").nullable(),
|
|
57
57
|
usage: z.record(z.string(), z.unknown()).describe("Token usage and cost information").nullable().optional(),
|
|
58
58
|
object: z.string().describe("Object type, typically 'response'").nullable().optional(),
|
|
59
59
|
output: z.array(z.record(z.string(), z.unknown())).describe("Output items (messages, search results, function calls)").nullable().optional(),
|
|
60
|
-
status: z.string().describe("Status: 'completed', 'failed', 'in_progress', 'requires_action'"),
|
|
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
|
|
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,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;G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hB;AACV,CAAC"}
|
|
@@ -9,16 +9,16 @@ const PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = zod.z.enu
|
|
|
9
9
|
"FAILED"
|
|
10
10
|
]).describe("Status of the async processing job.");
|
|
11
11
|
const PerplexityaiGetAsyncChatCompletionOutput = zod.z.object({
|
|
12
|
-
id: zod.z.string().describe("Unique identifier for the async request"),
|
|
13
|
-
model: zod.z.string().describe("Model used for the request"),
|
|
12
|
+
id: zod.z.string().describe("Unique identifier for the async request").nullable(),
|
|
13
|
+
model: zod.z.string().describe("Model used for the request").nullable(),
|
|
14
14
|
status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),
|
|
15
15
|
response: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The completion response when status is COMPLETED").nullable().optional(),
|
|
16
16
|
failed_at: zod.z.number().int().describe("Unix timestamp when failed").nullable().optional(),
|
|
17
|
-
created_at: zod.z.number().int().describe("Unix timestamp when the request was created"),
|
|
17
|
+
created_at: zod.z.number().int().describe("Unix timestamp when the request was created").nullable(),
|
|
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
|
|
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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QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-async-chat-completion.d.ts
|
|
4
|
-
declare const PerplexityaiGetAsyncChatCompletionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiGetAsyncChatCompletionInput: z.ZodObject<{
|
|
5
|
+
request_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
model: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
CREATED: "CREATED";
|
|
12
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
13
|
+
COMPLETED: "COMPLETED";
|
|
14
|
+
FAILED: "FAILED";
|
|
15
|
+
}>>;
|
|
16
|
+
response: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
failed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const perplexityaiGetAsyncChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
request_id: string;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { perplexityaiGetAsyncChatCompletion };
|
|
9
28
|
//# sourceMappingURL=get-async-chat-completion.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.d.cts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.d.cts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-async-chat-completion.d.ts
|
|
4
|
-
declare const PerplexityaiGetAsyncChatCompletionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiGetAsyncChatCompletionInput: z.ZodObject<{
|
|
5
|
+
request_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
model: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
CREATED: "CREATED";
|
|
12
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
13
|
+
COMPLETED: "COMPLETED";
|
|
14
|
+
FAILED: "FAILED";
|
|
15
|
+
}>>;
|
|
16
|
+
response: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
failed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const perplexityaiGetAsyncChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
request_id: string;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { perplexityaiGetAsyncChatCompletion };
|
|
9
28
|
//# sourceMappingURL=get-async-chat-completion.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.d.mts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.d.mts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -14,16 +14,16 @@ const perplexityaiGetAsyncChatCompletion = action("PERPLEXITYAI_GET_ASYNC_CHAT_C
|
|
|
14
14
|
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.",
|
|
15
15
|
input: PerplexityaiGetAsyncChatCompletionInput,
|
|
16
16
|
output: z.object({
|
|
17
|
-
id: z.string().describe("Unique identifier for the async request"),
|
|
18
|
-
model: z.string().describe("Model used for the request"),
|
|
17
|
+
id: z.string().describe("Unique identifier for the async request").nullable(),
|
|
18
|
+
model: z.string().describe("Model used for the request").nullable(),
|
|
19
19
|
status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),
|
|
20
20
|
response: z.record(z.string(), z.unknown()).describe("The completion response when status is COMPLETED").nullable().optional(),
|
|
21
21
|
failed_at: z.number().int().describe("Unix timestamp when failed").nullable().optional(),
|
|
22
|
-
created_at: z.number().int().describe("Unix timestamp when the request was created"),
|
|
22
|
+
created_at: z.number().int().describe("Unix timestamp when the request was created").nullable(),
|
|
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
|
|
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"}
|
|
@@ -9,18 +9,18 @@ const PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = zod.z.e
|
|
|
9
9
|
"FAILED"
|
|
10
10
|
]).describe("Status of the async processing job.");
|
|
11
11
|
const PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = zod.z.object({
|
|
12
|
-
id: zod.z.string().describe("Unique identifier for the request"),
|
|
13
|
-
model: zod.z.string().describe("Model used for the request"),
|
|
12
|
+
id: zod.z.string().describe("Unique identifier for the request").nullable(),
|
|
13
|
+
model: zod.z.string().describe("Model used for the request").nullable(),
|
|
14
14
|
status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),
|
|
15
15
|
failed_at: zod.z.number().int().describe("Unix timestamp when failed").nullable().optional(),
|
|
16
|
-
created_at: zod.z.number().int().describe("Unix timestamp when the request was created"),
|
|
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
|
|
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"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-async-chat-completions.d.ts
|
|
4
|
-
declare const PerplexityaiListAsyncChatCompletionsInput: z.
|
|
5
|
-
declare const PerplexityaiListAsyncChatCompletionsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiListAsyncChatCompletionsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PerplexityaiListAsyncChatCompletionsOutput: z.ZodObject<{
|
|
6
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
model: z.ZodNullable<z.ZodString>;
|
|
9
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
10
|
+
CREATED: "CREATED";
|
|
11
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
12
|
+
COMPLETED: "COMPLETED";
|
|
13
|
+
FAILED: "FAILED";
|
|
14
|
+
}>>;
|
|
15
|
+
failed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
next_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
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]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { perplexityaiListAsyncChatCompletions };
|
|
9
25
|
//# sourceMappingURL=list-async-chat-completions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-async-chat-completions.d.cts","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"mappings":";;;cAIa,yCAAA,
|
|
1
|
+
{"version":3,"file":"list-async-chat-completions.d.cts","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-async-chat-completions.d.ts
|
|
4
|
-
declare const PerplexityaiListAsyncChatCompletionsInput: z.
|
|
5
|
-
declare const PerplexityaiListAsyncChatCompletionsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiListAsyncChatCompletionsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PerplexityaiListAsyncChatCompletionsOutput: z.ZodObject<{
|
|
6
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
model: z.ZodNullable<z.ZodString>;
|
|
9
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
10
|
+
CREATED: "CREATED";
|
|
11
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
12
|
+
COMPLETED: "COMPLETED";
|
|
13
|
+
FAILED: "FAILED";
|
|
14
|
+
}>>;
|
|
15
|
+
failed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
next_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
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]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { perplexityaiListAsyncChatCompletions };
|
|
9
25
|
//# sourceMappingURL=list-async-chat-completions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-async-chat-completions.d.mts","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"mappings":";;;cAIa,yCAAA,
|
|
1
|
+
{"version":3,"file":"list-async-chat-completions.d.mts","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -9,14 +9,14 @@ const PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum(
|
|
|
9
9
|
"FAILED"
|
|
10
10
|
]).describe("Status of the async processing job.");
|
|
11
11
|
const PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({
|
|
12
|
-
id: z.string().describe("Unique identifier for the request"),
|
|
13
|
-
model: z.string().describe("Model used for the request"),
|
|
12
|
+
id: z.string().describe("Unique identifier for the request").nullable(),
|
|
13
|
+
model: z.string().describe("Model used for the request").nullable(),
|
|
14
14
|
status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),
|
|
15
15
|
failed_at: z.number().int().describe("Unix timestamp when failed").nullable().optional(),
|
|
16
|
-
created_at: z.number().int().describe("Unix timestamp when the request was created"),
|
|
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
|
|
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"}
|
|
@@ -3,15 +3,15 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-models.ts
|
|
4
4
|
const PerplexityaiListModelsInput = zod.z.object({}).describe("Request model for listing available models. No parameters required.");
|
|
5
5
|
const PerplexityaiListModels_ModelInfoSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Model identifier (e.g. 'anthropic/claude-sonnet-4-6')"),
|
|
7
|
-
object: zod.z.string().describe("Object type, always 'model'"),
|
|
8
|
-
created: zod.z.number().int().describe("Unix timestamp when the model was added"),
|
|
9
|
-
owned_by: zod.z.string().describe("Provider name (e.g. 'anthropic', 'openai')")
|
|
10
|
-
}).describe("Information about an available model.");
|
|
6
|
+
id: zod.z.string().describe("Model identifier (e.g. 'anthropic/claude-sonnet-4-6')").nullable(),
|
|
7
|
+
object: zod.z.string().describe("Object type, always 'model'").nullable(),
|
|
8
|
+
created: zod.z.number().int().describe("Unix timestamp when the model was added").nullable(),
|
|
9
|
+
owned_by: zod.z.string().describe("Provider name (e.g. 'anthropic', 'openai')").nullable()
|
|
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
|
-
object: zod.z.string().describe("Object type, always 'list'")
|
|
14
|
-
}).describe("Response model for listing available models.");
|
|
13
|
+
object: zod.z.string().describe("Object type, always 'list'").nullable()
|
|
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
|
|
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"}
|