@keystrokehq/perplexityai 0.1.4 → 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 -33
  6. package/dist/actions/create-async-chat-completion.d.cts.map +1 -1
  7. package/dist/actions/create-async-chat-completion.d.mts +3 -33
  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 -43
  14. package/dist/actions/create-chat-completion.d.cts.map +1 -1
  15. package/dist/actions/create-chat-completion.d.mts +3 -43
  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 -6
  22. package/dist/actions/create-contextualized-embeddings.d.cts.map +1 -1
  23. package/dist/actions/create-contextualized-embeddings.d.mts +3 -6
  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 -6
  30. package/dist/actions/create-embeddings.d.cts.map +1 -1
  31. package/dist/actions/create-embeddings.d.mts +3 -6
  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 -48
  38. package/dist/actions/execute-agent.d.cts.map +1 -1
  39. package/dist/actions/execute-agent.d.mts +3 -48
  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 -3
  46. package/dist/actions/get-async-chat-completion.d.cts.map +1 -1
  47. package/dist/actions/get-async-chat-completion.d.mts +3 -3
  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 -1
  54. package/dist/actions/list-async-chat-completions.d.cts.map +1 -1
  55. package/dist/actions/list-async-chat-completions.d.mts +3 -1
  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 -1
  62. package/dist/actions/list-models.d.cts.map +1 -1
  63. package/dist/actions/list-models.d.mts +3 -1
  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 -14
  70. package/dist/actions/search.d.cts.map +1 -1
  71. package/dist/actions/search.d.mts +3 -14
  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 +5 -2
  76. package/dist/app.cjs.map +1 -1
  77. package/dist/app.d.cts +7 -1
  78. package/dist/app.d.cts.map +1 -1
  79. package/dist/app.d.mts +7 -1
  80. package/dist/app.d.mts.map +1 -1
  81. package/dist/app.mjs +3 -2
  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/list-async-chat-completions.d.ts
@@ -19,7 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const perplexityaiListAsyncChatCompletions: AppAction<typeof PerplexityaiListAsyncChatCompletionsInput, typeof PerplexityaiListAsyncChatCompletionsOutput, typeof perplexityai.credential>;
23
25
  //#endregion
24
26
  export { perplexityaiListAsyncChatCompletions };
25
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,4CAAA,UAAA"}
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,7 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const perplexityaiListAsyncChatCompletions: AppAction<typeof PerplexityaiListAsyncChatCompletionsInput, typeof PerplexityaiListAsyncChatCompletionsOutput, typeof perplexityai.credential>;
23
25
  //#endregion
24
26
  export { perplexityaiListAsyncChatCompletions };
25
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,4CAAA,UAAA"}
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,7 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const perplexityaiListModels: AppAction<typeof PerplexityaiListModelsInput, typeof PerplexityaiListModelsOutput, typeof perplexityai.credential>;
15
17
  //#endregion
16
18
  export { perplexityaiListModels };
17
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,4CAAA,UAAA"}
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,7 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const perplexityaiListModels: AppAction<typeof PerplexityaiListModelsInput, typeof PerplexityaiListModelsOutput, typeof perplexityai.credential>;
15
17
  //#endregion
16
18
  export { perplexityaiListModels };
17
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,4CAAA,UAAA"}
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,20 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const perplexityaiSearch: AppAction<typeof PerplexityaiSearchInput, typeof PerplexityaiSearchOutput, typeof perplexityai.credential>;
49
38
  //#endregion
50
39
  export { perplexityaiSearch };
51
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,20 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const perplexityaiSearch: AppAction<typeof PerplexityaiSearchInput, typeof PerplexityaiSearchOutput, typeof perplexityai.credential>;
49
38
  //#endregion
50
39
  export { perplexityaiSearch };
51
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,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const perplexityai = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const perplexityai = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "perplexityai",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.perplexityai = perplexityai;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const perplexityai = defineApp({\n slug: \"perplexityai\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,gBAAA,uCAAA,CAAA,CAAA,UAAA,CAAyB;CACpC,MAAM;CACN,MAAM;AACR,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,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const perplexityai: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const perplexityai: KeystrokeApp<"perplexityai", typeof credential>;
3
9
  //#endregion
4
10
  export { perplexityai };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,YAAA,6BAAY,GAAA,+BAAA,UAAA"}
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,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const perplexityai: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const perplexityai: KeystrokeApp<"perplexityai", typeof credential>;
3
9
  //#endregion
4
10
  export { perplexityai };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,YAAA,6BAAY,GAAA,+BAAA,UAAA"}
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,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const perplexityai = defineApp({
4
4
  slug: "perplexityai",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { perplexityai };
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\";\n\nexport const perplexityai = defineApp({\n slug: \"perplexityai\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,eAAe,UAAU;CACpC,MAAM;CACN,MAAM;AACR,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 };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { perplexityai } from "./app.mjs";
1
2
  import { perplexityaiCreateAsyncChatCompletion } from "./actions/create-async-chat-completion.mjs";
2
3
  import { perplexityaiCreateChatCompletion } from "./actions/create-chat-completion.mjs";
3
4
  import { perplexityaiCreateContextualizedEmbeddings } from "./actions/create-contextualized-embeddings.mjs";
@@ -7,6 +8,5 @@ import { perplexityaiGetAsyncChatCompletion } from "./actions/get-async-chat-com
7
8
  import { perplexityaiListAsyncChatCompletions } from "./actions/list-async-chat-completions.mjs";
8
9
  import { perplexityaiListModels } from "./actions/list-models.mjs";
9
10
  import { perplexityaiSearch } from "./actions/search.mjs";
10
- import { perplexityai } from "./app.mjs";
11
11
  import { perplexityaiCatalog } from "./catalog.mjs";
12
12
  export { perplexityai, perplexityaiCatalog, perplexityaiCreateAsyncChatCompletion, perplexityaiCreateChatCompletion, perplexityaiCreateContextualizedEmbeddings, perplexityaiCreateEmbeddings, perplexityaiExecuteAgent, perplexityaiGetAsyncChatCompletion, perplexityaiListAsyncChatCompletions, perplexityaiListModels, perplexityaiSearch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/perplexityai",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {