@keystrokehq/perplexityai 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-async-chat-completion.cjs +1 -0
  4. package/dist/actions/create-async-chat-completion.cjs.map +1 -1
  5. package/dist/actions/create-async-chat-completion.d.cts +3 -45
  6. package/dist/actions/create-async-chat-completion.d.cts.map +1 -1
  7. package/dist/actions/create-async-chat-completion.d.mts +3 -45
  8. package/dist/actions/create-async-chat-completion.d.mts.map +1 -1
  9. package/dist/actions/create-async-chat-completion.mjs +1 -0
  10. package/dist/actions/create-async-chat-completion.mjs.map +1 -1
  11. package/dist/actions/create-chat-completion.cjs +1 -0
  12. package/dist/actions/create-chat-completion.cjs.map +1 -1
  13. package/dist/actions/create-chat-completion.d.cts +3 -55
  14. package/dist/actions/create-chat-completion.d.cts.map +1 -1
  15. package/dist/actions/create-chat-completion.d.mts +3 -55
  16. package/dist/actions/create-chat-completion.d.mts.map +1 -1
  17. package/dist/actions/create-chat-completion.mjs +1 -0
  18. package/dist/actions/create-chat-completion.mjs.map +1 -1
  19. package/dist/actions/create-contextualized-embeddings.cjs +1 -0
  20. package/dist/actions/create-contextualized-embeddings.cjs.map +1 -1
  21. package/dist/actions/create-contextualized-embeddings.d.cts +3 -18
  22. package/dist/actions/create-contextualized-embeddings.d.cts.map +1 -1
  23. package/dist/actions/create-contextualized-embeddings.d.mts +3 -18
  24. package/dist/actions/create-contextualized-embeddings.d.mts.map +1 -1
  25. package/dist/actions/create-contextualized-embeddings.mjs +1 -0
  26. package/dist/actions/create-contextualized-embeddings.mjs.map +1 -1
  27. package/dist/actions/create-embeddings.cjs +1 -0
  28. package/dist/actions/create-embeddings.cjs.map +1 -1
  29. package/dist/actions/create-embeddings.d.cts +3 -18
  30. package/dist/actions/create-embeddings.d.cts.map +1 -1
  31. package/dist/actions/create-embeddings.d.mts +3 -18
  32. package/dist/actions/create-embeddings.d.mts.map +1 -1
  33. package/dist/actions/create-embeddings.mjs +1 -0
  34. package/dist/actions/create-embeddings.mjs.map +1 -1
  35. package/dist/actions/execute-agent.cjs +1 -0
  36. package/dist/actions/execute-agent.cjs.map +1 -1
  37. package/dist/actions/execute-agent.d.cts +3 -60
  38. package/dist/actions/execute-agent.d.cts.map +1 -1
  39. package/dist/actions/execute-agent.d.mts +3 -60
  40. package/dist/actions/execute-agent.d.mts.map +1 -1
  41. package/dist/actions/execute-agent.mjs +1 -0
  42. package/dist/actions/execute-agent.mjs.map +1 -1
  43. package/dist/actions/get-async-chat-completion.cjs +1 -0
  44. package/dist/actions/get-async-chat-completion.cjs.map +1 -1
  45. package/dist/actions/get-async-chat-completion.d.cts +3 -15
  46. package/dist/actions/get-async-chat-completion.d.cts.map +1 -1
  47. package/dist/actions/get-async-chat-completion.d.mts +3 -15
  48. package/dist/actions/get-async-chat-completion.d.mts.map +1 -1
  49. package/dist/actions/get-async-chat-completion.mjs +1 -0
  50. package/dist/actions/get-async-chat-completion.mjs.map +1 -1
  51. package/dist/actions/list-async-chat-completions.cjs +1 -0
  52. package/dist/actions/list-async-chat-completions.cjs.map +1 -1
  53. package/dist/actions/list-async-chat-completions.d.cts +3 -13
  54. package/dist/actions/list-async-chat-completions.d.cts.map +1 -1
  55. package/dist/actions/list-async-chat-completions.d.mts +3 -13
  56. package/dist/actions/list-async-chat-completions.d.mts.map +1 -1
  57. package/dist/actions/list-async-chat-completions.mjs +1 -0
  58. package/dist/actions/list-async-chat-completions.mjs.map +1 -1
  59. package/dist/actions/list-models.cjs +1 -0
  60. package/dist/actions/list-models.cjs.map +1 -1
  61. package/dist/actions/list-models.d.cts +3 -13
  62. package/dist/actions/list-models.d.cts.map +1 -1
  63. package/dist/actions/list-models.d.mts +3 -13
  64. package/dist/actions/list-models.d.mts.map +1 -1
  65. package/dist/actions/list-models.mjs +1 -0
  66. package/dist/actions/list-models.mjs.map +1 -1
  67. package/dist/actions/search.cjs +1 -0
  68. package/dist/actions/search.cjs.map +1 -1
  69. package/dist/actions/search.d.cts +3 -26
  70. package/dist/actions/search.d.cts.map +1 -1
  71. package/dist/actions/search.d.mts +3 -26
  72. package/dist/actions/search.d.mts.map +1 -1
  73. package/dist/actions/search.mjs +1 -0
  74. package/dist/actions/search.mjs.map +1 -1
  75. package/dist/app.cjs +2 -2
  76. package/dist/app.cjs.map +1 -1
  77. package/dist/app.d.cts +4 -6
  78. package/dist/app.d.cts.map +1 -1
  79. package/dist/app.d.mts +4 -6
  80. package/dist/app.d.mts.map +1 -1
  81. package/dist/app.mjs +0 -1
  82. package/dist/app.mjs.map +1 -1
  83. package/dist/index.d.cts +1 -1
  84. package/dist/index.d.mts +1 -1
  85. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-async-chat-completion.d.ts
@@ -20,21 +22,7 @@ declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
20
22
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, 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<"perplexityai", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
25
+ declare const perplexityaiGetAsyncChatCompletion: AppAction<typeof PerplexityaiGetAsyncChatCompletionInput, typeof PerplexityaiGetAsyncChatCompletionOutput, typeof perplexityai.credential>;
38
26
  //#endregion
39
27
  export { perplexityaiGetAsyncChatCompletion };
40
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,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,gCAAkC,wBAAA"}
1
+ {"version":3,"file":"get-async-chat-completion.d.cts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-async-chat-completion.d.ts
@@ -20,21 +22,7 @@ declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
20
22
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, 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<"perplexityai", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
25
+ declare const perplexityaiGetAsyncChatCompletion: AppAction<typeof PerplexityaiGetAsyncChatCompletionInput, typeof PerplexityaiGetAsyncChatCompletionOutput, typeof perplexityai.credential>;
38
26
  //#endregion
39
27
  export { perplexityaiGetAsyncChatCompletion };
40
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,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,gCAAkC,wBAAA"}
1
+ {"version":3,"file":"get-async-chat-completion.d.mts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-async-chat-completion.ts
@@ -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}).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"}
1
+ {"version":3,"file":"get-async-chat-completion.mjs","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiGetAsyncChatCompletionInput,\n typeof PerplexityaiGetAsyncChatCompletionOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,qCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBsD,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,qDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-async-chat-completions.ts
@@ -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}).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
+ {"version":3,"file":"list-async-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiListAsyncChatCompletionsInput,\n typeof PerplexityaiListAsyncChatCompletionsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,uCAITC,eAAAA,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-async-chat-completions.d.ts
@@ -19,19 +21,7 @@ declare const PerplexityaiListAsyncChatCompletionsOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>;
20
22
  next_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  }, z.core.$loose>;
22
- declare const perplexityaiListAsyncChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>;
24
+ declare const perplexityaiListAsyncChatCompletions: AppAction<typeof PerplexityaiListAsyncChatCompletionsInput, typeof PerplexityaiListAsyncChatCompletionsOutput, typeof perplexityai.credential>;
35
25
  //#endregion
36
26
  export { perplexityaiListAsyncChatCompletions };
37
27
  //# 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,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,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-async-chat-completions.d.cts","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAK1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-async-chat-completions.d.ts
@@ -19,19 +21,7 @@ declare const PerplexityaiListAsyncChatCompletionsOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>;
20
22
  next_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  }, z.core.$loose>;
22
- declare const perplexityaiListAsyncChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>;
24
+ declare const perplexityaiListAsyncChatCompletions: AppAction<typeof PerplexityaiListAsyncChatCompletionsInput, typeof PerplexityaiListAsyncChatCompletionsOutput, typeof perplexityai.credential>;
35
25
  //#endregion
36
26
  export { perplexityaiListAsyncChatCompletions };
37
27
  //# 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,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,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-async-chat-completions.d.mts","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAK1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-async-chat-completions.ts
@@ -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}).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"}
1
+ {"version":3,"file":"list-async-chat-completions.mjs","names":[],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiListAsyncChatCompletionsInput,\n typeof PerplexityaiListAsyncChatCompletionsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,uCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwD,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,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-models.ts
@@ -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}).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"}
1
+ {"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiListModelsInput,\n typeof PerplexityaiListModelsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-models.d.ts
@@ -11,19 +13,7 @@ declare const PerplexityaiListModelsOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  object: z.ZodNullable<z.ZodString>;
13
15
  }, z.core.$loose>;
14
- declare const perplexityaiListModels: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
16
+ declare const perplexityaiListModels: AppAction<typeof PerplexityaiListModelsInput, typeof PerplexityaiListModelsOutput, typeof perplexityai.credential>;
27
17
  //#endregion
28
18
  export { perplexityaiListModels };
29
19
  //# sourceMappingURL=list-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-models.d.cts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-models.d.cts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-models.d.ts
@@ -11,19 +13,7 @@ declare const PerplexityaiListModelsOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  object: z.ZodNullable<z.ZodString>;
13
15
  }, z.core.$loose>;
14
- declare const perplexityaiListModels: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
16
+ declare const perplexityaiListModels: AppAction<typeof PerplexityaiListModelsInput, typeof PerplexityaiListModelsOutput, typeof perplexityai.credential>;
27
17
  //#endregion
28
18
  export { perplexityaiListModels };
29
19
  //# sourceMappingURL=list-models.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-models.d.mts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-models.d.mts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-models.ts
@@ -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}).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"}
1
+ {"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiListModelsInput,\n typeof PerplexityaiListModelsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,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,8CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/search.ts
@@ -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}).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,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,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,mCAAmC;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,qBAAqBC,eAAAA,OAAO,uBAAuB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiSearchInput,\n typeof PerplexityaiSearchOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,mCAAmC;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,qBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search.d.ts
@@ -32,32 +34,7 @@ declare const PerplexityaiSearchOutput: z.ZodObject<{
32
34
  }, z.core.$loose>>;
33
35
  server_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
36
  }, z.core.$loose>;
35
- declare const perplexityaiSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- query: string | string[];
37
- country?: string | undefined;
38
- max_tokens?: number | undefined;
39
- max_results?: number | undefined;
40
- max_tokens_per_page?: number | undefined;
41
- search_domain_filter?: string[] | undefined;
42
- search_recency_filter?: "hour" | "day" | "week" | "month" | "year" | undefined;
43
- search_language_filter?: string[] | undefined;
44
- search_after_date_filter?: string | undefined;
45
- last_updated_after_filter?: string | undefined;
46
- search_before_date_filter?: string | undefined;
47
- last_updated_before_filter?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_api_key: z.ZodString;
60
- }, z.core.$strip>>]>;
37
+ declare const perplexityaiSearch: AppAction<typeof PerplexityaiSearchInput, typeof PerplexityaiSearchOutput, typeof perplexityai.credential>;
61
38
  //#endregion
62
39
  export { perplexityaiSearch };
63
40
  //# sourceMappingURL=search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { perplexityai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search.d.ts
@@ -32,32 +34,7 @@ declare const PerplexityaiSearchOutput: z.ZodObject<{
32
34
  }, z.core.$loose>>;
33
35
  server_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
36
  }, z.core.$loose>;
35
- declare const perplexityaiSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- query: string | string[];
37
- country?: string | undefined;
38
- max_tokens?: number | undefined;
39
- max_results?: number | undefined;
40
- max_tokens_per_page?: number | undefined;
41
- search_domain_filter?: string[] | undefined;
42
- search_recency_filter?: "hour" | "day" | "week" | "month" | "year" | undefined;
43
- search_language_filter?: string[] | undefined;
44
- search_after_date_filter?: string | undefined;
45
- last_updated_after_filter?: string | undefined;
46
- search_before_date_filter?: string | undefined;
47
- last_updated_before_filter?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_api_key: z.ZodString;
60
- }, z.core.$strip>>]>;
37
+ declare const perplexityaiSearch: AppAction<typeof PerplexityaiSearchInput, typeof PerplexityaiSearchOutput, typeof perplexityai.credential>;
61
38
  //#endregion
62
39
  export { perplexityaiSearch };
63
40
  //# sourceMappingURL=search.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,YAAA,CAAa,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/search.ts
@@ -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}).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,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpI,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClK,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtK,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACpK,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAOrD,MAAa,qBAAqB,OAAO,uBAAuB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,mCAAmC;EACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiSearchInput,\n typeof PerplexityaiSearchOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpI,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAClK,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtK,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACpK,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAOrD,MAAa,qBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,mCAAmC;EACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const perplexityai = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "perplexityai",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.perplexityai = perplexityai;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const perplexityai = defineApp({\n slug: \"perplexityai\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,gBAAA,GAAA,2BAAA,UAAA,CAAyB;CACpC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const perplexityai: KeystrokeApp<\"perplexityai\", typeof credential> = defineApp({\n slug: \"perplexityai\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,gBAAA,GAAA,2BAAA,UAAA,CAA0E;CACrF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const perplexityai: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const perplexityai: KeystrokeApp<"perplexityai", typeof credential>;
11
9
  //#endregion
12
10
  export { perplexityai };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,YAAA,6BAAY,GAAA,+BAAA,UAAA,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,YAAA,EAAc,YAAY,wBAAwB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const perplexityai: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"perplexityai", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const perplexityai: KeystrokeApp<"perplexityai", typeof credential>;
11
9
  //#endregion
12
10
  export { perplexityai };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,YAAA,6BAAY,GAAA,+BAAA,UAAA,iBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,YAAA,EAAc,YAAY,wBAAwB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const perplexityai = defineApp({
5
4
  slug: "perplexityai",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const perplexityai = defineApp({\n slug: \"perplexityai\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,eAAe,UAAU;CACpC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const perplexityai: KeystrokeApp<\"perplexityai\", typeof credential> = defineApp({\n slug: \"perplexityai\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,eAAgE,UAAU;CACrF,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { perplexityai } from "./app.cjs";
1
2
  import { perplexityaiCreateAsyncChatCompletion } from "./actions/create-async-chat-completion.cjs";
2
3
  import { perplexityaiCreateChatCompletion } from "./actions/create-chat-completion.cjs";
3
4
  import { perplexityaiCreateContextualizedEmbeddings } from "./actions/create-contextualized-embeddings.cjs";
@@ -7,6 +8,5 @@ import { perplexityaiGetAsyncChatCompletion } from "./actions/get-async-chat-com
7
8
  import { perplexityaiListAsyncChatCompletions } from "./actions/list-async-chat-completions.cjs";
8
9
  import { perplexityaiListModels } from "./actions/list-models.cjs";
9
10
  import { perplexityaiSearch } from "./actions/search.cjs";
10
- import { perplexityai } from "./app.cjs";
11
11
  import { perplexityaiCatalog } from "./catalog.cjs";
12
12
  export { perplexityai, perplexityaiCatalog, perplexityaiCreateAsyncChatCompletion, perplexityaiCreateChatCompletion, perplexityaiCreateContextualizedEmbeddings, perplexityaiCreateEmbeddings, perplexityaiExecuteAgent, perplexityaiGetAsyncChatCompletion, perplexityaiListAsyncChatCompletions, perplexityaiListModels, perplexityaiSearch };