@keystrokehq/exa 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -108
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/answer.cjs +81 -0
- package/dist/actions/answer.cjs.map +1 -0
- package/dist/actions/answer.d.cts +9 -0
- package/dist/actions/answer.d.cts.map +1 -0
- package/dist/actions/answer.d.mts +9 -0
- package/dist/actions/answer.d.mts.map +1 -0
- package/dist/actions/answer.mjs +80 -0
- package/dist/actions/answer.mjs.map +1 -0
- package/dist/actions/create-import.cjs +41 -0
- package/dist/actions/create-import.cjs.map +1 -0
- package/dist/actions/create-import.d.cts +9 -0
- package/dist/actions/create-import.d.cts.map +1 -0
- package/dist/actions/create-import.d.mts +9 -0
- package/dist/actions/create-import.d.mts.map +1 -0
- package/dist/actions/create-import.mjs +40 -0
- package/dist/actions/create-import.mjs.map +1 -0
- package/dist/actions/create-monitor.cjs +81 -0
- package/dist/actions/create-monitor.cjs.map +1 -0
- package/dist/actions/create-monitor.d.cts +9 -0
- package/dist/actions/create-monitor.d.cts.map +1 -0
- package/dist/actions/create-monitor.d.mts +9 -0
- package/dist/actions/create-monitor.d.mts.map +1 -0
- package/dist/actions/create-monitor.mjs +80 -0
- package/dist/actions/create-monitor.mjs.map +1 -0
- package/dist/actions/create-research.cjs +45 -0
- package/dist/actions/create-research.cjs.map +1 -0
- package/dist/actions/create-research.d.cts +9 -0
- package/dist/actions/create-research.d.cts.map +1 -0
- package/dist/actions/create-research.d.mts +9 -0
- package/dist/actions/create-research.d.mts.map +1 -0
- package/dist/actions/create-research.mjs +44 -0
- package/dist/actions/create-research.mjs.map +1 -0
- package/dist/actions/create-webset.cjs +201 -0
- package/dist/actions/create-webset.cjs.map +1 -0
- package/dist/actions/create-webset.d.cts +9 -0
- package/dist/actions/create-webset.d.cts.map +1 -0
- package/dist/actions/create-webset.d.mts +9 -0
- package/dist/actions/create-webset.d.mts.map +1 -0
- package/dist/actions/create-webset.mjs +200 -0
- package/dist/actions/create-webset.mjs.map +1 -0
- package/dist/actions/delete-import.cjs +31 -0
- package/dist/actions/delete-import.cjs.map +1 -0
- package/dist/actions/delete-import.d.cts +9 -0
- package/dist/actions/delete-import.d.cts.map +1 -0
- package/dist/actions/delete-import.d.mts +9 -0
- package/dist/actions/delete-import.d.mts.map +1 -0
- package/dist/actions/delete-import.mjs +30 -0
- package/dist/actions/delete-import.mjs.map +1 -0
- package/dist/actions/delete-webset.cjs +153 -0
- package/dist/actions/delete-webset.cjs.map +1 -0
- package/dist/actions/delete-webset.d.cts +9 -0
- package/dist/actions/delete-webset.d.cts.map +1 -0
- package/dist/actions/delete-webset.d.mts +9 -0
- package/dist/actions/delete-webset.d.mts.map +1 -0
- package/dist/actions/delete-webset.mjs +152 -0
- package/dist/actions/delete-webset.mjs.map +1 -0
- package/dist/actions/get-api-key.cjs +21 -0
- package/dist/actions/get-api-key.cjs.map +1 -0
- package/dist/actions/get-api-key.d.cts +9 -0
- package/dist/actions/get-api-key.d.cts.map +1 -0
- package/dist/actions/get-api-key.d.mts +9 -0
- package/dist/actions/get-api-key.d.mts.map +1 -0
- package/dist/actions/get-api-key.mjs +18 -0
- package/dist/actions/get-api-key.mjs.map +1 -0
- package/dist/actions/get-contents-action.cjs +75 -0
- package/dist/actions/get-contents-action.cjs.map +1 -0
- package/dist/actions/get-contents-action.d.cts +9 -0
- package/dist/actions/get-contents-action.d.cts.map +1 -0
- package/dist/actions/get-contents-action.d.mts +9 -0
- package/dist/actions/get-contents-action.d.mts.map +1 -0
- package/dist/actions/get-contents-action.mjs +74 -0
- package/dist/actions/get-contents-action.mjs.map +1 -0
- package/dist/actions/get-event.cjs +140 -0
- package/dist/actions/get-event.cjs.map +1 -0
- package/dist/actions/get-event.d.cts +9 -0
- package/dist/actions/get-event.d.cts.map +1 -0
- package/dist/actions/get-event.d.mts +9 -0
- package/dist/actions/get-event.d.mts.map +1 -0
- package/dist/actions/get-event.mjs +139 -0
- package/dist/actions/get-event.mjs.map +1 -0
- package/dist/actions/get-research.cjs +47 -0
- package/dist/actions/get-research.cjs.map +1 -0
- package/dist/actions/get-research.d.cts +9 -0
- package/dist/actions/get-research.d.cts.map +1 -0
- package/dist/actions/get-research.d.mts +9 -0
- package/dist/actions/get-research.d.mts.map +1 -0
- package/dist/actions/get-research.mjs +46 -0
- package/dist/actions/get-research.mjs.map +1 -0
- package/dist/actions/index.cjs +34 -16
- package/dist/actions/index.d.cts +18 -2
- package/dist/actions/index.d.mts +18 -2
- package/dist/actions/index.mjs +18 -2
- package/dist/actions/list-events.cjs +32 -0
- package/dist/actions/list-events.cjs.map +1 -0
- package/dist/actions/list-events.d.cts +9 -0
- package/dist/actions/list-events.d.cts.map +1 -0
- package/dist/actions/list-events.d.mts +9 -0
- package/dist/actions/list-events.d.mts.map +1 -0
- package/dist/actions/list-events.mjs +31 -0
- package/dist/actions/list-events.mjs.map +1 -0
- package/dist/actions/list-imports.cjs +54 -0
- package/dist/actions/list-imports.cjs.map +1 -0
- package/dist/actions/list-imports.d.cts +9 -0
- package/dist/actions/list-imports.d.cts.map +1 -0
- package/dist/actions/list-imports.d.mts +9 -0
- package/dist/actions/list-imports.d.mts.map +1 -0
- package/dist/actions/list-imports.mjs +53 -0
- package/dist/actions/list-imports.mjs.map +1 -0
- package/dist/actions/list-research.cjs +49 -0
- package/dist/actions/list-research.cjs.map +1 -0
- package/dist/actions/list-research.d.cts +9 -0
- package/dist/actions/list-research.d.cts.map +1 -0
- package/dist/actions/list-research.d.mts +9 -0
- package/dist/actions/list-research.d.mts.map +1 -0
- package/dist/actions/list-research.mjs +48 -0
- package/dist/actions/list-research.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +34 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +33 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/search.cjs +145 -0
- package/dist/actions/search.cjs.map +1 -0
- package/dist/actions/search.d.cts +9 -0
- package/dist/actions/search.d.cts.map +1 -0
- package/dist/actions/search.d.mts +9 -0
- package/dist/actions/search.d.mts.map +1 -0
- package/dist/actions/search.mjs +144 -0
- package/dist/actions/search.mjs.map +1 -0
- package/dist/actions/update-import.cjs +35 -0
- package/dist/actions/update-import.cjs.map +1 -0
- package/dist/actions/update-import.d.cts +9 -0
- package/dist/actions/update-import.d.cts.map +1 -0
- package/dist/actions/update-import.d.mts +9 -0
- package/dist/actions/update-import.d.mts.map +1 -0
- package/dist/actions/update-import.mjs +34 -0
- package/dist/actions/update-import.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/client.cjs +30 -2
- package/dist/client.cjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +38 -14
- package/dist/index.d.cts +20 -17
- package/dist/index.d.mts +20 -17
- package/dist/index.mjs +21 -5
- package/package.json +13 -13
- package/dist/actions-CJq1Nyt_.mjs +0 -349
- package/dist/actions-CJq1Nyt_.mjs.map +0 -1
- package/dist/actions-LoQVlbiT.cjs +0 -438
- package/dist/actions-LoQVlbiT.cjs.map +0 -1
- package/dist/app-CBLUruR0.mjs +0 -15
- package/dist/app-CBLUruR0.mjs.map +0 -1
- package/dist/app-DMujvH6I.cjs +0 -26
- package/dist/app-DMujvH6I.cjs.map +0 -1
- package/dist/client-DlwHA71b.cjs +0 -56
- package/dist/client-DlwHA71b.cjs.map +0 -1
- package/dist/index-BwCGHs6v.d.cts +0 -357
- package/dist/index-BwCGHs6v.d.cts.map +0 -1
- package/dist/index-BwCGHs6v.d.mts +0 -357
- package/dist/index-BwCGHs6v.d.mts.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/mcp.cjs +0 -57
- package/dist/mcp.cjs.map +0 -1
- package/dist/mcp.d.cts +0 -16
- package/dist/mcp.d.cts.map +0 -1
- package/dist/mcp.d.mts +0 -16
- package/dist/mcp.d.mts.map +0 -1
- package/dist/mcp.mjs +0 -54
- package/dist/mcp.mjs.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-webhooks.ts
|
|
4
|
+
const ExaListWebhooksInput = z.object({
|
|
5
|
+
limit: z.number().int().default(25).describe("Number of results to return per page.").optional(),
|
|
6
|
+
cursor: z.string().describe("Pagination cursor returned by a previous call. Must be at least 1 character if provided.").optional()
|
|
7
|
+
}).describe("Request parameters for listing webhooks.");
|
|
8
|
+
const ExaListWebhooks_WebhookSchema = z.object({
|
|
9
|
+
id: z.string().describe("Unique identifier for the webhook."),
|
|
10
|
+
url: z.string().describe("The target URL that will receive webhook POSTs."),
|
|
11
|
+
events: z.array(z.string()).describe("List of event names this webhook is subscribed to."),
|
|
12
|
+
object: z.string().describe("Type of this object, always 'webhook'."),
|
|
13
|
+
secret: z.string().describe("Secret used to sign webhook payloads."),
|
|
14
|
+
status: z.string().describe("Current status of the webhook (e.g., 'active')."),
|
|
15
|
+
metadata: z.record(z.string(), z.unknown()).describe("Arbitrary metadata object.").optional(),
|
|
16
|
+
createdAt: z.string().describe("ISO-8601 timestamp when the webhook was created."),
|
|
17
|
+
updatedAt: z.string().describe("ISO-8601 timestamp when the webhook was last updated.")
|
|
18
|
+
}).describe("Represents a single webhook object.");
|
|
19
|
+
const exaListWebhooks = action("EXA_LIST_WEBHOOKS", {
|
|
20
|
+
slug: "exa-list-webhooks",
|
|
21
|
+
name: "List webhooks",
|
|
22
|
+
description: "Tool to list all webhooks for Websets. Use when you need to view existing webhooks and paginate through results.",
|
|
23
|
+
input: ExaListWebhooksInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
data: z.array(ExaListWebhooks_WebhookSchema).describe("Array of webhook objects."),
|
|
26
|
+
hasMore: z.boolean().describe("Whether more results are available."),
|
|
27
|
+
nextCursor: z.string().describe("Cursor to use for the next page of results, if hasMore is true.").optional()
|
|
28
|
+
}).describe("Response schema for listing webhooks.")
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { exaListWebhooks };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=list-webhooks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaListWebhooksInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(25).describe(\"Number of results to return per page.\").optional(),\n cursor: z.string().describe(\"Pagination cursor returned by a previous call. Must be at least 1 character if provided.\").optional(),\n}).describe(\"Request parameters for listing webhooks.\");\nconst ExaListWebhooks_WebhookSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webhook.\"),\n url: z.string().describe(\"The target URL that will receive webhook POSTs.\"),\n events: z.array(z.string()).describe(\"List of event names this webhook is subscribed to.\"),\n object: z.string().describe(\"Type of this object, always 'webhook'.\"),\n secret: z.string().describe(\"Secret used to sign webhook payloads.\"),\n status: z.string().describe(\"Current status of the webhook (e.g., 'active').\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata object.\").optional(),\n createdAt: z.string().describe(\"ISO-8601 timestamp when the webhook was created.\"),\n updatedAt: z.string().describe(\"ISO-8601 timestamp when the webhook was last updated.\"),\n}).describe(\"Represents a single webhook object.\");\nexport const ExaListWebhooksOutput: z.ZodTypeAny = z.object({\n data: z.array(ExaListWebhooks_WebhookSchema).describe(\"Array of webhook objects.\"),\n hasMore: z.boolean().describe(\"Whether more results are available.\"),\n nextCursor: z.string().describe(\"Cursor to use for the next page of results, if hasMore is true.\").optional(),\n}).describe(\"Response schema for listing webhooks.\");\n\nexport const exaListWebhooks = action(\"EXA_LIST_WEBHOOKS\", {\n slug: \"exa-list-webhooks\",\n name: \"List webhooks\",\n description: \"Tool to list all webhooks for Websets. Use when you need to view existing webhooks and paginate through results.\",\n input: ExaListWebhooksInput,\n output: ExaListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,uCAAuC,EAAE,SAAS;CAC/F,QAAQ,EAAE,OAAO,EAAE,SAAS,0FAA0F,EAAE,SAAS;AACnI,CAAC,EAAE,SAAS,0CAA0C;AACtD,MAAM,gCAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,EAAE,SAAS,oCAAoC;CAC5D,KAAK,EAAE,OAAO,EAAE,SAAS,iDAAiD;CAC1E,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,oDAAoD;CACzF,QAAQ,EAAE,OAAO,EAAE,SAAS,wCAAwC;CACpE,QAAQ,EAAE,OAAO,EAAE,SAAS,uCAAuC;CACnE,QAAQ,EAAE,OAAO,EAAE,SAAS,iDAAiD;CAC7E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,4BAA4B,EAAE,SAAS;CAC5F,WAAW,EAAE,OAAO,EAAE,SAAS,kDAAkD;CACjF,WAAW,EAAE,OAAO,EAAE,SAAS,uDAAuD;AACxF,CAAC,EAAE,SAAS,qCAAqC;AAOjD,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,MAAM,EAAE,MAAM,6BAA6B,EAAE,SAAS,2BAA2B;EACjF,SAAS,EAAE,QAAQ,EAAE,SAAS,qCAAqC;EACnE,YAAY,EAAE,OAAO,EAAE,SAAS,iEAAiE,EAAE,SAAS;CAC9G,CAAC,EAAE,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/search.ts
|
|
4
|
+
const ExaSearchInput = zod.z.object({
|
|
5
|
+
type: zod.z.enum([
|
|
6
|
+
"auto",
|
|
7
|
+
"fast",
|
|
8
|
+
"instant",
|
|
9
|
+
"deep-lite",
|
|
10
|
+
"deep",
|
|
11
|
+
"deep-reasoning"
|
|
12
|
+
]).default("auto").describe("Types of search available in Exa.").optional(),
|
|
13
|
+
query: zod.z.string().describe("The search query string."),
|
|
14
|
+
category: zod.z.enum([
|
|
15
|
+
"company",
|
|
16
|
+
"people",
|
|
17
|
+
"research paper",
|
|
18
|
+
"news",
|
|
19
|
+
"personal site",
|
|
20
|
+
"financial report"
|
|
21
|
+
]).describe("Data categories for focused search in Exa.").optional(),
|
|
22
|
+
contents: zod.z.object({
|
|
23
|
+
text: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
24
|
+
verbosity: zod.z.enum([
|
|
25
|
+
"compact",
|
|
26
|
+
"standard",
|
|
27
|
+
"full"
|
|
28
|
+
]).nullable().optional(),
|
|
29
|
+
maxCharacters: zod.z.number().int().nullable().optional(),
|
|
30
|
+
excludeSections: zod.z.array(zod.z.enum([
|
|
31
|
+
"header",
|
|
32
|
+
"navigation",
|
|
33
|
+
"banner",
|
|
34
|
+
"body",
|
|
35
|
+
"sidebar",
|
|
36
|
+
"footer",
|
|
37
|
+
"metadata"
|
|
38
|
+
])).nullable().optional(),
|
|
39
|
+
includeHtmlTags: zod.z.boolean().nullable().optional(),
|
|
40
|
+
includeSections: zod.z.array(zod.z.enum([
|
|
41
|
+
"header",
|
|
42
|
+
"navigation",
|
|
43
|
+
"banner",
|
|
44
|
+
"body",
|
|
45
|
+
"sidebar",
|
|
46
|
+
"footer",
|
|
47
|
+
"metadata"
|
|
48
|
+
])).nullable().optional()
|
|
49
|
+
}).describe("Options for text content extraction.")]).optional(),
|
|
50
|
+
extras: zod.z.object({
|
|
51
|
+
links: zod.z.number().int().default(0).describe("Number of links to extract from the page.").optional(),
|
|
52
|
+
imageLinks: zod.z.number().int().default(0).describe("Number of image links to extract from the page.").optional()
|
|
53
|
+
}).describe("Options for extracting extra information.").optional(),
|
|
54
|
+
summary: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
55
|
+
query: zod.z.string().nullable().optional(),
|
|
56
|
+
schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Flexible model for JSON schema objects.").nullable().optional()
|
|
57
|
+
}).describe("Options for summary generation.")]).optional(),
|
|
58
|
+
subpages: zod.z.number().int().default(0).describe("Number of subpages to crawl per result.").optional(),
|
|
59
|
+
highlights: zod.z.union([zod.z.boolean(), zod.z.object({
|
|
60
|
+
query: zod.z.string().nullable().optional(),
|
|
61
|
+
maxCharacters: zod.z.number().int().nullable().optional()
|
|
62
|
+
}).describe("Options for highlights extraction.")]).optional(),
|
|
63
|
+
maxAgeHours: zod.z.number().int().describe("Maximum age of cached content in hours. 0 = always live, -1 = never live.").optional(),
|
|
64
|
+
subpageTarget: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
|
|
65
|
+
livecrawlTimeout: zod.z.number().int().default(1e4).describe("Timeout in milliseconds for live crawling.").optional()
|
|
66
|
+
}).describe("Options for per-result content retrieval, saving a separate /contents round-trip.").optional(),
|
|
67
|
+
compliance: zod.z.string().describe("Enterprise-only compliance mode. Currently only 'hipaa'.").optional(),
|
|
68
|
+
moderation: zod.z.boolean().default(false).describe("Enable content moderation to filter unsafe content.").optional(),
|
|
69
|
+
numResults: zod.z.number().int().default(10).describe("Desired number of search results. Must be between 1 and 100 (inclusive). Defaults to 10. No pagination is available; larger values increase latency without guaranteeing better coverage.").optional(),
|
|
70
|
+
excludeText: zod.z.array(zod.z.string()).describe("A list containing exactly one phrase (up to 5 words) that must NOT be present in the webpage text. Only one phrase is allowed per request. Example: ['outdated information'] (correct) vs ['outdated', 'wrong'] (incorrect - API will reject multiple phrases).").optional(),
|
|
71
|
+
includeText: zod.z.array(zod.z.string()).describe("A list containing exactly one phrase (up to 5 words) that must be present in the webpage text. Only one phrase is allowed per request. Example: ['machine learning applications'] (correct) vs ['machine', 'learning'] (incorrect - API will reject multiple phrases).").optional(),
|
|
72
|
+
outputSchema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Flexible model for JSON schema objects.").optional(),
|
|
73
|
+
systemPrompt: zod.z.string().describe("Instructions guiding synthesized output / search planning for deep variants.").optional(),
|
|
74
|
+
userLocation: zod.z.string().describe("Two-letter ISO country code of the user (e.g., 'US').").optional(),
|
|
75
|
+
excludeDomains: zod.z.array(zod.z.string()).describe("MUTUALLY EXCLUSIVE WITH includeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically exclude from the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.amazon.com') and path filtering (e.g., 'example.com/path'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.").optional(),
|
|
76
|
+
includeDomains: zod.z.array(zod.z.string()).describe("MUTUALLY EXCLUSIVE WITH excludeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically include in the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.substack.com') and path filtering (e.g., 'example.com/blog'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.").optional(),
|
|
77
|
+
endPublishedDate: zod.z.string().describe("Filters results to include only those published before this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.").optional(),
|
|
78
|
+
additionalQueries: zod.z.array(zod.z.string()).describe("Extra query variations for deep-search variants only.").optional(),
|
|
79
|
+
startPublishedDate: zod.z.string().describe("Filters results to include only those published after this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.").optional()
|
|
80
|
+
}).describe("Parameters for an Exa search query, enabling filtering and customization of results.");
|
|
81
|
+
const ExaSearch_StructuredOutputContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structured synthesized output matching the user-provided outputSchema.");
|
|
82
|
+
const ExaSearch_OutputCitationSchema = zod.z.object({
|
|
83
|
+
url: zod.z.string().describe("URL of the source.").optional(),
|
|
84
|
+
title: zod.z.string().describe("Title of the source.").optional()
|
|
85
|
+
}).describe("Citation source for synthesized output grounding.");
|
|
86
|
+
const ExaSearch_OutputGroundingSchema = zod.z.object({
|
|
87
|
+
field: zod.z.string().describe("Output field path grounded by these citations.").optional(),
|
|
88
|
+
citations: zod.z.array(ExaSearch_OutputCitationSchema).describe("Sources grounding this output field.").optional(),
|
|
89
|
+
confidence: zod.z.enum([
|
|
90
|
+
"low",
|
|
91
|
+
"medium",
|
|
92
|
+
"high"
|
|
93
|
+
]).describe("Confidence score for this grounded output field.").optional()
|
|
94
|
+
}).describe("Grounding information for synthesized output.");
|
|
95
|
+
const ExaSearch_SynthesizedOutputSchema = zod.z.object({
|
|
96
|
+
content: zod.z.union([zod.z.string(), ExaSearch_StructuredOutputContentSchema]).optional(),
|
|
97
|
+
grounding: zod.z.array(ExaSearch_OutputGroundingSchema).describe("Field-level citations and confidence scores.").optional()
|
|
98
|
+
}).describe("Synthesized output when outputSchema is provided.");
|
|
99
|
+
const ExaSearch_ExtrasResultSchema = zod.z.object({
|
|
100
|
+
links: zod.z.array(zod.z.string()).describe("List of extracted links.").optional(),
|
|
101
|
+
imageLinks: zod.z.array(zod.z.string()).describe("List of extracted image links.").optional()
|
|
102
|
+
}).describe("Extra information extracted from a search result.");
|
|
103
|
+
const ExaSearch_SearchResultSchema = zod.z.lazy(() => zod.z.object({
|
|
104
|
+
id: zod.z.string().describe("Unique identifier for the search result.").optional(),
|
|
105
|
+
url: zod.z.string().describe("URL of the search result.").optional(),
|
|
106
|
+
text: zod.z.string().describe("Extracted text content from the search result webpage (if available).").optional(),
|
|
107
|
+
image: zod.z.string().describe("URL of an image associated with the search result (if available).").optional(),
|
|
108
|
+
score: zod.z.number().describe("Relevance score of the search result, indicating how well it matches the query.").optional(),
|
|
109
|
+
title: zod.z.string().describe("Title of the search result.").optional(),
|
|
110
|
+
author: zod.z.string().describe("Author of the search result (if available).").optional(),
|
|
111
|
+
extras: ExaSearch_ExtrasResultSchema.nullable().optional(),
|
|
112
|
+
favicon: zod.z.string().describe("URL of the favicon for the website of the search result (if available).").optional(),
|
|
113
|
+
summary: zod.z.string().describe("A concise summary of the search result's content (if available).").optional(),
|
|
114
|
+
subpages: zod.z.array(ExaSearch_SearchResultSchema).describe("List of subpages or related links found within the search result (if available).").optional(),
|
|
115
|
+
highlights: zod.z.array(zod.z.string()).describe("List of highlighted text snippets from the search result that match the query.").optional(),
|
|
116
|
+
publishedDate: zod.z.string().describe("Publication date of the search result (if available).").optional()
|
|
117
|
+
}).describe("Represents an individual item from Exa search results, potentially including extracted text or highlights."));
|
|
118
|
+
const ExaSearch_CostBreakdownSchema = zod.z.object({
|
|
119
|
+
cost: zod.z.number().describe("Cost for this operation.").optional(),
|
|
120
|
+
count: zod.z.number().int().describe("Number of operations.").optional(),
|
|
121
|
+
operation: zod.z.string().describe("Type of operation.").optional()
|
|
122
|
+
}).describe("Cost breakdown by operation type.");
|
|
123
|
+
const ExaSearch_CostDollarsSchema = zod.z.object({
|
|
124
|
+
total: zod.z.number().describe("Total dollar cost.").optional(),
|
|
125
|
+
breakDown: zod.z.array(ExaSearch_CostBreakdownSchema).describe("Breakdown of costs by operation.").optional()
|
|
126
|
+
}).describe("Cost information for the request.");
|
|
127
|
+
const ExaSearchOutput = zod.z.object({
|
|
128
|
+
output: ExaSearch_SynthesizedOutputSchema.nullable().optional(),
|
|
129
|
+
results: zod.z.array(ExaSearch_SearchResultSchema).describe("A list of `SearchResult` objects, each representing an individual item found by the search."),
|
|
130
|
+
requestId: zod.z.string().describe("A unique identifier for this specific search request."),
|
|
131
|
+
searchType: zod.z.string().describe("For auto searches, indicates which search type was selected.").optional(),
|
|
132
|
+
costDollars: ExaSearch_CostDollarsSchema.nullable().optional(),
|
|
133
|
+
composio_execution_message: zod.z.string().describe("Message from Composio explaining any modifications made to the request parameters during execution.").optional()
|
|
134
|
+
}).describe("Contains Exa search results, including found documents and search metadata.");
|
|
135
|
+
const exaSearch = require_action.action("EXA_SEARCH", {
|
|
136
|
+
slug: "exa-search",
|
|
137
|
+
name: "Search",
|
|
138
|
+
description: "Web search via the Exa engine. Returns ranked results with optional per-result text/highlights/summary (set the nested `contents` object). For agent workflows prefer `contents.highlights=true` — 10× fewer tokens than full text. Pick `type` by latency tier: `instant`~250 ms · `fast`~450 ms · `auto`~1 s (default) · `deep-lite` ~4 s · `deep` 4–15 s · `deep-reasoning` 12–40 s. `includeDomains` and `excludeDomains` are mutually exclusive (max 1200 each). For `category=company` or `category=people`, date filters / `excludeDomains` are NOT supported and will 400.",
|
|
139
|
+
input: ExaSearchInput,
|
|
140
|
+
output: ExaSearchOutput
|
|
141
|
+
});
|
|
142
|
+
//#endregion
|
|
143
|
+
exports.exaSearch = exaSearch;
|
|
144
|
+
|
|
145
|
+
//# sourceMappingURL=search.cjs.map
|
|
@@ -0,0 +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 ExaSearchInput: z.ZodTypeAny = z.object({\n type: z.enum([\"auto\", \"fast\", \"instant\", \"deep-lite\", \"deep\", \"deep-reasoning\"]).default(\"auto\").describe(\"Types of search available in Exa.\").optional(),\n query: z.string().describe(\"The search query string.\"),\n category: z.enum([\"company\", \"people\", \"research paper\", \"news\", \"personal site\", \"financial report\"]).describe(\"Data categories for focused search in Exa.\").optional(),\n contents: z.object({\n text: z.union([z.boolean(), z.object({\n verbosity: z.enum([\"compact\", \"standard\", \"full\"]).nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n excludeSections: z.array(z.enum([\"header\", \"navigation\", \"banner\", \"body\", \"sidebar\", \"footer\", \"metadata\"])).nullable().optional(),\n includeHtmlTags: z.boolean().nullable().optional(),\n includeSections: z.array(z.enum([\"header\", \"navigation\", \"banner\", \"body\", \"sidebar\", \"footer\", \"metadata\"])).nullable().optional(),\n}).describe(\"Options for text content extraction.\")]).optional(),\n extras: z.object({\n links: z.number().int().default(0).describe(\"Number of links to extract from the page.\").optional(),\n imageLinks: z.number().int().default(0).describe(\"Number of image links to extract from the page.\").optional(),\n}).describe(\"Options for extracting extra information.\").optional(),\n summary: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n schema: z.record(z.string(), z.unknown()).describe(\"Flexible model for JSON schema objects.\").nullable().optional(),\n}).describe(\"Options for summary generation.\")]).optional(),\n subpages: z.number().int().default(0).describe(\"Number of subpages to crawl per result.\").optional(),\n highlights: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n}).describe(\"Options for highlights extraction.\")]).optional(),\n maxAgeHours: z.number().int().describe(\"Maximum age of cached content in hours. 0 = always live, -1 = never live.\").optional(),\n subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),\n livecrawlTimeout: z.number().int().default(10000).describe(\"Timeout in milliseconds for live crawling.\").optional(),\n}).describe(\"Options for per-result content retrieval, saving a separate /contents round-trip.\").optional(),\n compliance: z.string().describe(\"Enterprise-only compliance mode. Currently only 'hipaa'.\").optional(),\n moderation: z.boolean().default(false).describe(\"Enable content moderation to filter unsafe content.\").optional(),\n numResults: z.number().int().default(10).describe(\"Desired number of search results. Must be between 1 and 100 (inclusive). Defaults to 10. No pagination is available; larger values increase latency without guaranteeing better coverage.\").optional(),\n excludeText: z.array(z.string()).describe(\"A list containing exactly one phrase (up to 5 words) that must NOT be present in the webpage text. Only one phrase is allowed per request. Example: ['outdated information'] (correct) vs ['outdated', 'wrong'] (incorrect - API will reject multiple phrases).\").optional(),\n includeText: z.array(z.string()).describe(\"A list containing exactly one phrase (up to 5 words) that must be present in the webpage text. Only one phrase is allowed per request. Example: ['machine learning applications'] (correct) vs ['machine', 'learning'] (incorrect - API will reject multiple phrases).\").optional(),\n outputSchema: z.record(z.string(), z.unknown()).describe(\"Flexible model for JSON schema objects.\").optional(),\n systemPrompt: z.string().describe(\"Instructions guiding synthesized output / search planning for deep variants.\").optional(),\n userLocation: z.string().describe(\"Two-letter ISO country code of the user (e.g., 'US').\").optional(),\n excludeDomains: z.array(z.string()).describe(\"MUTUALLY EXCLUSIVE WITH includeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically exclude from the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.amazon.com') and path filtering (e.g., 'example.com/path'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.\").optional(),\n includeDomains: z.array(z.string()).describe(\"MUTUALLY EXCLUSIVE WITH excludeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically include in the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.substack.com') and path filtering (e.g., 'example.com/blog'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.\").optional(),\n endPublishedDate: z.string().describe(\"Filters results to include only those published before this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.\").optional(),\n additionalQueries: z.array(z.string()).describe(\"Extra query variations for deep-search variants only.\").optional(),\n startPublishedDate: z.string().describe(\"Filters results to include only those published after this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.\").optional(),\n}).describe(\"Parameters for an Exa search query, enabling filtering and customization of results.\");\nconst ExaSearch_StructuredOutputContentSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Structured synthesized output matching the user-provided outputSchema.\");\nconst ExaSearch_OutputCitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source.\").optional(),\n title: z.string().describe(\"Title of the source.\").optional(),\n}).describe(\"Citation source for synthesized output grounding.\");\nconst ExaSearch_OutputGroundingSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Output field path grounded by these citations.\").optional(),\n citations: z.array(ExaSearch_OutputCitationSchema).describe(\"Sources grounding this output field.\").optional(),\n confidence: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Confidence score for this grounded output field.\").optional(),\n}).describe(\"Grounding information for synthesized output.\");\nconst ExaSearch_SynthesizedOutputSchema: z.ZodTypeAny = z.object({\n content: z.union([z.string(), ExaSearch_StructuredOutputContentSchema]).optional(),\n grounding: z.array(ExaSearch_OutputGroundingSchema).describe(\"Field-level citations and confidence scores.\").optional(),\n}).describe(\"Synthesized output when outputSchema is provided.\");\nconst ExaSearch_ExtrasResultSchema: z.ZodTypeAny = z.object({\n links: z.array(z.string()).describe(\"List of extracted links.\").optional(),\n imageLinks: z.array(z.string()).describe(\"List of extracted image links.\").optional(),\n}).describe(\"Extra information extracted from a search result.\");\nconst ExaSearch_SearchResultSchema: z.ZodTypeAny = z.lazy((): z.ZodTypeAny => z.object({\n id: z.string().describe(\"Unique identifier for the search result.\").optional(),\n url: z.string().describe(\"URL of the search result.\").optional(),\n text: z.string().describe(\"Extracted text content from the search result webpage (if available).\").optional(),\n image: z.string().describe(\"URL of an image associated with the search result (if available).\").optional(),\n score: z.number().describe(\"Relevance score of the search result, indicating how well it matches the query.\").optional(),\n title: z.string().describe(\"Title of the search result.\").optional(),\n author: z.string().describe(\"Author of the search result (if available).\").optional(),\n extras: ExaSearch_ExtrasResultSchema.nullable().optional(),\n favicon: z.string().describe(\"URL of the favicon for the website of the search result (if available).\").optional(),\n summary: z.string().describe(\"A concise summary of the search result's content (if available).\").optional(),\n subpages: z.array((ExaSearch_SearchResultSchema as z.ZodTypeAny)).describe(\"List of subpages or related links found within the search result (if available).\").optional(),\n highlights: z.array(z.string()).describe(\"List of highlighted text snippets from the search result that match the query.\").optional(),\n publishedDate: z.string().describe(\"Publication date of the search result (if available).\").optional(),\n}).describe(\"Represents an individual item from Exa search results, potentially including extracted text or highlights.\")) as z.ZodTypeAny;\nconst ExaSearch_CostBreakdownSchema: z.ZodTypeAny = z.object({\n cost: z.number().describe(\"Cost for this operation.\").optional(),\n count: z.number().int().describe(\"Number of operations.\").optional(),\n operation: z.string().describe(\"Type of operation.\").optional(),\n}).describe(\"Cost breakdown by operation type.\");\nconst ExaSearch_CostDollarsSchema: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total dollar cost.\").optional(),\n breakDown: z.array(ExaSearch_CostBreakdownSchema).describe(\"Breakdown of costs by operation.\").optional(),\n}).describe(\"Cost information for the request.\");\nexport const ExaSearchOutput: z.ZodTypeAny = z.object({\n output: ExaSearch_SynthesizedOutputSchema.nullable().optional(),\n results: z.array((ExaSearch_SearchResultSchema as z.ZodTypeAny)).describe(\"A list of `SearchResult` objects, each representing an individual item found by the search.\"),\n requestId: z.string().describe(\"A unique identifier for this specific search request.\"),\n searchType: z.string().describe(\"For auto searches, indicates which search type was selected.\").optional(),\n costDollars: ExaSearch_CostDollarsSchema.nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from Composio explaining any modifications made to the request parameters during execution.\").optional(),\n}).describe(\"Contains Exa search results, including found documents and search metadata.\");\n\nexport const exaSearch = action(\"EXA_SEARCH\", {\n slug: \"exa-search\",\n name: \"Search\",\n description: \"Web search via the Exa engine. Returns ranked results with optional per-result text/highlights/summary (set the nested `contents` object). For agent workflows prefer `contents.highlights=true` — 10× fewer tokens than full text. Pick `type` by latency tier: `instant`~250 ms · `fast`~450 ms · `auto`~1 s (default) · `deep-lite` ~4 s · `deep` 4–15 s · `deep-reasoning` 12–40 s. `includeDomains` and `excludeDomains` are mutually exclusive (max 1200 each). For `category=company` or `category=people`, date filters / `excludeDomains` are NOT supported and will 400.\",\n input: ExaSearchInput,\n output: ExaSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAW;EAAa;EAAQ;CAAgB,CAAC,EAAE,QAAQ,MAAM,EAAE,SAAS,mCAAmC,EAAE,SAAS;CACxJ,OAAOA,IAAAA,EAAE,OAAO,EAAE,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;EAAkB;EAAQ;EAAiB;CAAkB,CAAC,EAAE,SAAS,4CAA4C,EAAE,SAAS;CACvK,UAAUA,IAAAA,EAAE,OAAO;EACnB,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO;GACrC,WAAWA,IAAAA,EAAE,KAAK;IAAC;IAAW;IAAY;GAAM,CAAC,EAAE,SAAS,EAAE,SAAS;GACvE,eAAeA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS;GACpD,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;IAAC;IAAU;IAAc;IAAU;IAAQ;IAAW;IAAU;GAAU,CAAC,CAAC,EAAE,SAAS,EAAE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OAAOA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,uBAAuB,EAAE,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,oBAAoB,EAAE,SAAS;AAChE,CAAC,EAAE,SAAS,mCAAmC;AAC/C,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,EAAE,SAAS,oBAAoB,EAAE,SAAS;CAC1D,WAAWA,IAAAA,EAAE,MAAM,6BAA6B,EAAE,SAAS,kCAAkC,EAAE,SAAS;AAC1G,CAAC,EAAE,SAAS,mCAAmC;AAC/C,MAAa,kBAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQ,kCAAkC,SAAS,EAAE,SAAS;CAC9D,SAASA,IAAAA,EAAE,MAAO,4BAA6C,EAAE,SAAS,6FAA6F;CACvK,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,uDAAuD;CACtF,YAAYA,IAAAA,EAAE,OAAO,EAAE,SAAS,8DAA8D,EAAE,SAAS;CACzG,aAAa,4BAA4B,SAAS,EAAE,SAAS;CAC7D,4BAA4BA,IAAAA,EAAE,OAAO,EAAE,SAAS,qGAAqG,EAAE,SAAS;AAClK,CAAC,EAAE,SAAS,6EAA6E;AAEzF,MAAa,YAAYC,eAAAA,OAAO,cAAc;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search.d.ts
|
|
4
|
+
declare const ExaSearchInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaSearchOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaSearch };
|
|
9
|
+
//# sourceMappingURL=search.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UA0CoE;AAAA,cA2CtF,eAAA,EAAiB,CAAA,CAAE,UAO0D;AAAA,cAE7E,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search.d.ts
|
|
4
|
+
declare const ExaSearchInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaSearchOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaSearch };
|
|
9
|
+
//# sourceMappingURL=search.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UA0CoE;AAAA,cA2CtF,eAAA,EAAiB,CAAA,CAAE,UAO0D;AAAA,cAE7E,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search.ts
|
|
4
|
+
const ExaSearchInput = z.object({
|
|
5
|
+
type: z.enum([
|
|
6
|
+
"auto",
|
|
7
|
+
"fast",
|
|
8
|
+
"instant",
|
|
9
|
+
"deep-lite",
|
|
10
|
+
"deep",
|
|
11
|
+
"deep-reasoning"
|
|
12
|
+
]).default("auto").describe("Types of search available in Exa.").optional(),
|
|
13
|
+
query: z.string().describe("The search query string."),
|
|
14
|
+
category: z.enum([
|
|
15
|
+
"company",
|
|
16
|
+
"people",
|
|
17
|
+
"research paper",
|
|
18
|
+
"news",
|
|
19
|
+
"personal site",
|
|
20
|
+
"financial report"
|
|
21
|
+
]).describe("Data categories for focused search in Exa.").optional(),
|
|
22
|
+
contents: z.object({
|
|
23
|
+
text: z.union([z.boolean(), z.object({
|
|
24
|
+
verbosity: z.enum([
|
|
25
|
+
"compact",
|
|
26
|
+
"standard",
|
|
27
|
+
"full"
|
|
28
|
+
]).nullable().optional(),
|
|
29
|
+
maxCharacters: z.number().int().nullable().optional(),
|
|
30
|
+
excludeSections: z.array(z.enum([
|
|
31
|
+
"header",
|
|
32
|
+
"navigation",
|
|
33
|
+
"banner",
|
|
34
|
+
"body",
|
|
35
|
+
"sidebar",
|
|
36
|
+
"footer",
|
|
37
|
+
"metadata"
|
|
38
|
+
])).nullable().optional(),
|
|
39
|
+
includeHtmlTags: z.boolean().nullable().optional(),
|
|
40
|
+
includeSections: z.array(z.enum([
|
|
41
|
+
"header",
|
|
42
|
+
"navigation",
|
|
43
|
+
"banner",
|
|
44
|
+
"body",
|
|
45
|
+
"sidebar",
|
|
46
|
+
"footer",
|
|
47
|
+
"metadata"
|
|
48
|
+
])).nullable().optional()
|
|
49
|
+
}).describe("Options for text content extraction.")]).optional(),
|
|
50
|
+
extras: z.object({
|
|
51
|
+
links: z.number().int().default(0).describe("Number of links to extract from the page.").optional(),
|
|
52
|
+
imageLinks: z.number().int().default(0).describe("Number of image links to extract from the page.").optional()
|
|
53
|
+
}).describe("Options for extracting extra information.").optional(),
|
|
54
|
+
summary: z.union([z.boolean(), z.object({
|
|
55
|
+
query: z.string().nullable().optional(),
|
|
56
|
+
schema: z.record(z.string(), z.unknown()).describe("Flexible model for JSON schema objects.").nullable().optional()
|
|
57
|
+
}).describe("Options for summary generation.")]).optional(),
|
|
58
|
+
subpages: z.number().int().default(0).describe("Number of subpages to crawl per result.").optional(),
|
|
59
|
+
highlights: z.union([z.boolean(), z.object({
|
|
60
|
+
query: z.string().nullable().optional(),
|
|
61
|
+
maxCharacters: z.number().int().nullable().optional()
|
|
62
|
+
}).describe("Options for highlights extraction.")]).optional(),
|
|
63
|
+
maxAgeHours: z.number().int().describe("Maximum age of cached content in hours. 0 = always live, -1 = never live.").optional(),
|
|
64
|
+
subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),
|
|
65
|
+
livecrawlTimeout: z.number().int().default(1e4).describe("Timeout in milliseconds for live crawling.").optional()
|
|
66
|
+
}).describe("Options for per-result content retrieval, saving a separate /contents round-trip.").optional(),
|
|
67
|
+
compliance: z.string().describe("Enterprise-only compliance mode. Currently only 'hipaa'.").optional(),
|
|
68
|
+
moderation: z.boolean().default(false).describe("Enable content moderation to filter unsafe content.").optional(),
|
|
69
|
+
numResults: z.number().int().default(10).describe("Desired number of search results. Must be between 1 and 100 (inclusive). Defaults to 10. No pagination is available; larger values increase latency without guaranteeing better coverage.").optional(),
|
|
70
|
+
excludeText: z.array(z.string()).describe("A list containing exactly one phrase (up to 5 words) that must NOT be present in the webpage text. Only one phrase is allowed per request. Example: ['outdated information'] (correct) vs ['outdated', 'wrong'] (incorrect - API will reject multiple phrases).").optional(),
|
|
71
|
+
includeText: z.array(z.string()).describe("A list containing exactly one phrase (up to 5 words) that must be present in the webpage text. Only one phrase is allowed per request. Example: ['machine learning applications'] (correct) vs ['machine', 'learning'] (incorrect - API will reject multiple phrases).").optional(),
|
|
72
|
+
outputSchema: z.record(z.string(), z.unknown()).describe("Flexible model for JSON schema objects.").optional(),
|
|
73
|
+
systemPrompt: z.string().describe("Instructions guiding synthesized output / search planning for deep variants.").optional(),
|
|
74
|
+
userLocation: z.string().describe("Two-letter ISO country code of the user (e.g., 'US').").optional(),
|
|
75
|
+
excludeDomains: z.array(z.string()).describe("MUTUALLY EXCLUSIVE WITH includeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically exclude from the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.amazon.com') and path filtering (e.g., 'example.com/path'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.").optional(),
|
|
76
|
+
includeDomains: z.array(z.string()).describe("MUTUALLY EXCLUSIVE WITH excludeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically include in the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.substack.com') and path filtering (e.g., 'example.com/blog'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.").optional(),
|
|
77
|
+
endPublishedDate: z.string().describe("Filters results to include only those published before this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.").optional(),
|
|
78
|
+
additionalQueries: z.array(z.string()).describe("Extra query variations for deep-search variants only.").optional(),
|
|
79
|
+
startPublishedDate: z.string().describe("Filters results to include only those published after this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.").optional()
|
|
80
|
+
}).describe("Parameters for an Exa search query, enabling filtering and customization of results.");
|
|
81
|
+
const ExaSearch_StructuredOutputContentSchema = z.record(z.string(), z.unknown()).describe("Structured synthesized output matching the user-provided outputSchema.");
|
|
82
|
+
const ExaSearch_OutputCitationSchema = z.object({
|
|
83
|
+
url: z.string().describe("URL of the source.").optional(),
|
|
84
|
+
title: z.string().describe("Title of the source.").optional()
|
|
85
|
+
}).describe("Citation source for synthesized output grounding.");
|
|
86
|
+
const ExaSearch_OutputGroundingSchema = z.object({
|
|
87
|
+
field: z.string().describe("Output field path grounded by these citations.").optional(),
|
|
88
|
+
citations: z.array(ExaSearch_OutputCitationSchema).describe("Sources grounding this output field.").optional(),
|
|
89
|
+
confidence: z.enum([
|
|
90
|
+
"low",
|
|
91
|
+
"medium",
|
|
92
|
+
"high"
|
|
93
|
+
]).describe("Confidence score for this grounded output field.").optional()
|
|
94
|
+
}).describe("Grounding information for synthesized output.");
|
|
95
|
+
const ExaSearch_SynthesizedOutputSchema = z.object({
|
|
96
|
+
content: z.union([z.string(), ExaSearch_StructuredOutputContentSchema]).optional(),
|
|
97
|
+
grounding: z.array(ExaSearch_OutputGroundingSchema).describe("Field-level citations and confidence scores.").optional()
|
|
98
|
+
}).describe("Synthesized output when outputSchema is provided.");
|
|
99
|
+
const ExaSearch_ExtrasResultSchema = z.object({
|
|
100
|
+
links: z.array(z.string()).describe("List of extracted links.").optional(),
|
|
101
|
+
imageLinks: z.array(z.string()).describe("List of extracted image links.").optional()
|
|
102
|
+
}).describe("Extra information extracted from a search result.");
|
|
103
|
+
const ExaSearch_SearchResultSchema = z.lazy(() => z.object({
|
|
104
|
+
id: z.string().describe("Unique identifier for the search result.").optional(),
|
|
105
|
+
url: z.string().describe("URL of the search result.").optional(),
|
|
106
|
+
text: z.string().describe("Extracted text content from the search result webpage (if available).").optional(),
|
|
107
|
+
image: z.string().describe("URL of an image associated with the search result (if available).").optional(),
|
|
108
|
+
score: z.number().describe("Relevance score of the search result, indicating how well it matches the query.").optional(),
|
|
109
|
+
title: z.string().describe("Title of the search result.").optional(),
|
|
110
|
+
author: z.string().describe("Author of the search result (if available).").optional(),
|
|
111
|
+
extras: ExaSearch_ExtrasResultSchema.nullable().optional(),
|
|
112
|
+
favicon: z.string().describe("URL of the favicon for the website of the search result (if available).").optional(),
|
|
113
|
+
summary: z.string().describe("A concise summary of the search result's content (if available).").optional(),
|
|
114
|
+
subpages: z.array(ExaSearch_SearchResultSchema).describe("List of subpages or related links found within the search result (if available).").optional(),
|
|
115
|
+
highlights: z.array(z.string()).describe("List of highlighted text snippets from the search result that match the query.").optional(),
|
|
116
|
+
publishedDate: z.string().describe("Publication date of the search result (if available).").optional()
|
|
117
|
+
}).describe("Represents an individual item from Exa search results, potentially including extracted text or highlights."));
|
|
118
|
+
const ExaSearch_CostBreakdownSchema = z.object({
|
|
119
|
+
cost: z.number().describe("Cost for this operation.").optional(),
|
|
120
|
+
count: z.number().int().describe("Number of operations.").optional(),
|
|
121
|
+
operation: z.string().describe("Type of operation.").optional()
|
|
122
|
+
}).describe("Cost breakdown by operation type.");
|
|
123
|
+
const ExaSearch_CostDollarsSchema = z.object({
|
|
124
|
+
total: z.number().describe("Total dollar cost.").optional(),
|
|
125
|
+
breakDown: z.array(ExaSearch_CostBreakdownSchema).describe("Breakdown of costs by operation.").optional()
|
|
126
|
+
}).describe("Cost information for the request.");
|
|
127
|
+
const exaSearch = action("EXA_SEARCH", {
|
|
128
|
+
slug: "exa-search",
|
|
129
|
+
name: "Search",
|
|
130
|
+
description: "Web search via the Exa engine. Returns ranked results with optional per-result text/highlights/summary (set the nested `contents` object). For agent workflows prefer `contents.highlights=true` — 10× fewer tokens than full text. Pick `type` by latency tier: `instant`~250 ms · `fast`~450 ms · `auto`~1 s (default) · `deep-lite` ~4 s · `deep` 4–15 s · `deep-reasoning` 12–40 s. `includeDomains` and `excludeDomains` are mutually exclusive (max 1200 each). For `category=company` or `category=people`, date filters / `excludeDomains` are NOT supported and will 400.",
|
|
131
|
+
input: ExaSearchInput,
|
|
132
|
+
output: z.object({
|
|
133
|
+
output: ExaSearch_SynthesizedOutputSchema.nullable().optional(),
|
|
134
|
+
results: z.array(ExaSearch_SearchResultSchema).describe("A list of `SearchResult` objects, each representing an individual item found by the search."),
|
|
135
|
+
requestId: z.string().describe("A unique identifier for this specific search request."),
|
|
136
|
+
searchType: z.string().describe("For auto searches, indicates which search type was selected.").optional(),
|
|
137
|
+
costDollars: ExaSearch_CostDollarsSchema.nullable().optional(),
|
|
138
|
+
composio_execution_message: z.string().describe("Message from Composio explaining any modifications made to the request parameters during execution.").optional()
|
|
139
|
+
}).describe("Contains Exa search results, including found documents and search metadata.")
|
|
140
|
+
});
|
|
141
|
+
//#endregion
|
|
142
|
+
export { exaSearch };
|
|
143
|
+
|
|
144
|
+
//# sourceMappingURL=search.mjs.map
|
|
@@ -0,0 +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 ExaSearchInput: z.ZodTypeAny = z.object({\n type: z.enum([\"auto\", \"fast\", \"instant\", \"deep-lite\", \"deep\", \"deep-reasoning\"]).default(\"auto\").describe(\"Types of search available in Exa.\").optional(),\n query: z.string().describe(\"The search query string.\"),\n category: z.enum([\"company\", \"people\", \"research paper\", \"news\", \"personal site\", \"financial report\"]).describe(\"Data categories for focused search in Exa.\").optional(),\n contents: z.object({\n text: z.union([z.boolean(), z.object({\n verbosity: z.enum([\"compact\", \"standard\", \"full\"]).nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n excludeSections: z.array(z.enum([\"header\", \"navigation\", \"banner\", \"body\", \"sidebar\", \"footer\", \"metadata\"])).nullable().optional(),\n includeHtmlTags: z.boolean().nullable().optional(),\n includeSections: z.array(z.enum([\"header\", \"navigation\", \"banner\", \"body\", \"sidebar\", \"footer\", \"metadata\"])).nullable().optional(),\n}).describe(\"Options for text content extraction.\")]).optional(),\n extras: z.object({\n links: z.number().int().default(0).describe(\"Number of links to extract from the page.\").optional(),\n imageLinks: z.number().int().default(0).describe(\"Number of image links to extract from the page.\").optional(),\n}).describe(\"Options for extracting extra information.\").optional(),\n summary: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n schema: z.record(z.string(), z.unknown()).describe(\"Flexible model for JSON schema objects.\").nullable().optional(),\n}).describe(\"Options for summary generation.\")]).optional(),\n subpages: z.number().int().default(0).describe(\"Number of subpages to crawl per result.\").optional(),\n highlights: z.union([z.boolean(), z.object({\n query: z.string().nullable().optional(),\n maxCharacters: z.number().int().nullable().optional(),\n}).describe(\"Options for highlights extraction.\")]).optional(),\n maxAgeHours: z.number().int().describe(\"Maximum age of cached content in hours. 0 = always live, -1 = never live.\").optional(),\n subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),\n livecrawlTimeout: z.number().int().default(10000).describe(\"Timeout in milliseconds for live crawling.\").optional(),\n}).describe(\"Options for per-result content retrieval, saving a separate /contents round-trip.\").optional(),\n compliance: z.string().describe(\"Enterprise-only compliance mode. Currently only 'hipaa'.\").optional(),\n moderation: z.boolean().default(false).describe(\"Enable content moderation to filter unsafe content.\").optional(),\n numResults: z.number().int().default(10).describe(\"Desired number of search results. Must be between 1 and 100 (inclusive). Defaults to 10. No pagination is available; larger values increase latency without guaranteeing better coverage.\").optional(),\n excludeText: z.array(z.string()).describe(\"A list containing exactly one phrase (up to 5 words) that must NOT be present in the webpage text. Only one phrase is allowed per request. Example: ['outdated information'] (correct) vs ['outdated', 'wrong'] (incorrect - API will reject multiple phrases).\").optional(),\n includeText: z.array(z.string()).describe(\"A list containing exactly one phrase (up to 5 words) that must be present in the webpage text. Only one phrase is allowed per request. Example: ['machine learning applications'] (correct) vs ['machine', 'learning'] (incorrect - API will reject multiple phrases).\").optional(),\n outputSchema: z.record(z.string(), z.unknown()).describe(\"Flexible model for JSON schema objects.\").optional(),\n systemPrompt: z.string().describe(\"Instructions guiding synthesized output / search planning for deep variants.\").optional(),\n userLocation: z.string().describe(\"Two-letter ISO country code of the user (e.g., 'US').\").optional(),\n excludeDomains: z.array(z.string()).describe(\"MUTUALLY EXCLUSIVE WITH includeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically exclude from the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.amazon.com') and path filtering (e.g., 'example.com/path'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.\").optional(),\n includeDomains: z.array(z.string()).describe(\"MUTUALLY EXCLUSIVE WITH excludeDomains - provide ONLY ONE of includeDomains or excludeDomains, never both. A list of domain names to specifically include in the search results (max 1200). Must be valid domain names containing at least one dot (e.g., 'example.com', 'www.example.com' are valid). Supports subdomain wildcards (e.g., '*.substack.com') and path filtering (e.g., 'example.com/blog'). Must be without protocol (e.g., 'example.com' not 'https://example.com') and without angle brackets.\").optional(),\n endPublishedDate: z.string().describe(\"Filters results to include only those published before this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.\").optional(),\n additionalQueries: z.array(z.string()).describe(\"Extra query variations for deep-search variants only.\").optional(),\n startPublishedDate: z.string().describe(\"Filters results to include only those published after this ISO 8601 date. NOTE: This filter is NOT supported when category='company' and will be ignored.\").optional(),\n}).describe(\"Parameters for an Exa search query, enabling filtering and customization of results.\");\nconst ExaSearch_StructuredOutputContentSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Structured synthesized output matching the user-provided outputSchema.\");\nconst ExaSearch_OutputCitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source.\").optional(),\n title: z.string().describe(\"Title of the source.\").optional(),\n}).describe(\"Citation source for synthesized output grounding.\");\nconst ExaSearch_OutputGroundingSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"Output field path grounded by these citations.\").optional(),\n citations: z.array(ExaSearch_OutputCitationSchema).describe(\"Sources grounding this output field.\").optional(),\n confidence: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Confidence score for this grounded output field.\").optional(),\n}).describe(\"Grounding information for synthesized output.\");\nconst ExaSearch_SynthesizedOutputSchema: z.ZodTypeAny = z.object({\n content: z.union([z.string(), ExaSearch_StructuredOutputContentSchema]).optional(),\n grounding: z.array(ExaSearch_OutputGroundingSchema).describe(\"Field-level citations and confidence scores.\").optional(),\n}).describe(\"Synthesized output when outputSchema is provided.\");\nconst ExaSearch_ExtrasResultSchema: z.ZodTypeAny = z.object({\n links: z.array(z.string()).describe(\"List of extracted links.\").optional(),\n imageLinks: z.array(z.string()).describe(\"List of extracted image links.\").optional(),\n}).describe(\"Extra information extracted from a search result.\");\nconst ExaSearch_SearchResultSchema: z.ZodTypeAny = z.lazy((): z.ZodTypeAny => z.object({\n id: z.string().describe(\"Unique identifier for the search result.\").optional(),\n url: z.string().describe(\"URL of the search result.\").optional(),\n text: z.string().describe(\"Extracted text content from the search result webpage (if available).\").optional(),\n image: z.string().describe(\"URL of an image associated with the search result (if available).\").optional(),\n score: z.number().describe(\"Relevance score of the search result, indicating how well it matches the query.\").optional(),\n title: z.string().describe(\"Title of the search result.\").optional(),\n author: z.string().describe(\"Author of the search result (if available).\").optional(),\n extras: ExaSearch_ExtrasResultSchema.nullable().optional(),\n favicon: z.string().describe(\"URL of the favicon for the website of the search result (if available).\").optional(),\n summary: z.string().describe(\"A concise summary of the search result's content (if available).\").optional(),\n subpages: z.array((ExaSearch_SearchResultSchema as z.ZodTypeAny)).describe(\"List of subpages or related links found within the search result (if available).\").optional(),\n highlights: z.array(z.string()).describe(\"List of highlighted text snippets from the search result that match the query.\").optional(),\n publishedDate: z.string().describe(\"Publication date of the search result (if available).\").optional(),\n}).describe(\"Represents an individual item from Exa search results, potentially including extracted text or highlights.\")) as z.ZodTypeAny;\nconst ExaSearch_CostBreakdownSchema: z.ZodTypeAny = z.object({\n cost: z.number().describe(\"Cost for this operation.\").optional(),\n count: z.number().int().describe(\"Number of operations.\").optional(),\n operation: z.string().describe(\"Type of operation.\").optional(),\n}).describe(\"Cost breakdown by operation type.\");\nconst ExaSearch_CostDollarsSchema: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total dollar cost.\").optional(),\n breakDown: z.array(ExaSearch_CostBreakdownSchema).describe(\"Breakdown of costs by operation.\").optional(),\n}).describe(\"Cost information for the request.\");\nexport const ExaSearchOutput: z.ZodTypeAny = z.object({\n output: ExaSearch_SynthesizedOutputSchema.nullable().optional(),\n results: z.array((ExaSearch_SearchResultSchema as z.ZodTypeAny)).describe(\"A list of `SearchResult` objects, each representing an individual item found by the search.\"),\n requestId: z.string().describe(\"A unique identifier for this specific search request.\"),\n searchType: z.string().describe(\"For auto searches, indicates which search type was selected.\").optional(),\n costDollars: ExaSearch_CostDollarsSchema.nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from Composio explaining any modifications made to the request parameters during execution.\").optional(),\n}).describe(\"Contains Exa search results, including found documents and search metadata.\");\n\nexport const exaSearch = action(\"EXA_SEARCH\", {\n slug: \"exa-search\",\n name: \"Search\",\n description: \"Web search via the Exa engine. Returns ranked results with optional per-result text/highlights/summary (set the nested `contents` object). For agent workflows prefer `contents.highlights=true` — 10× fewer tokens than full text. Pick `type` by latency tier: `instant`~250 ms · `fast`~450 ms · `auto`~1 s (default) · `deep-lite` ~4 s · `deep` 4–15 s · `deep-reasoning` 12–40 s. `includeDomains` and `excludeDomains` are mutually exclusive (max 1200 each). For `category=company` or `category=people`, date filters / `excludeDomains` are NOT supported and will 400.\",\n input: ExaSearchInput,\n output: ExaSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAW;EAAa;EAAQ;CAAgB,CAAC,EAAE,QAAQ,MAAM,EAAE,SAAS,mCAAmC,EAAE,SAAS;CACxJ,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B;CACrD,UAAU,EAAE,KAAK;EAAC;EAAW;EAAU;EAAkB;EAAQ;EAAiB;CAAkB,CAAC,EAAE,SAAS,4CAA4C,EAAE,SAAS;CACvK,UAAU,EAAE,OAAO;EACnB,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO;GACrC,WAAW,EAAE,KAAK;IAAC;IAAW;IAAY;GAAM,CAAC,EAAE,SAAS,EAAE,SAAS;GACvE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS;GACpD,iBAAiB,EAAE,MAAM,EAAE,KAAK;IAAC;IAAU;IAAc;IAAU;IAAQ;IAAW;IAAU;GAAU,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS;GAClI,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS;GACjD,iBAAiB,EAAE,MAAM,EAAE,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6EAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-import.ts
|
|
4
|
+
const ExaUpdateImportInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The ID of the import to update."),
|
|
6
|
+
title: zod.z.string().describe("New title for the import. Leave null if unchanged.").optional(),
|
|
7
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs to attach to the import. Leave null if unchanged.").optional()
|
|
8
|
+
}).describe("Request model for updating an import configuration.");
|
|
9
|
+
const ExaUpdateImport_EntitySchema = zod.z.object({ type: zod.z.string().describe("The type of entity the import contains (e.g., 'company').") }).describe("Represents the entity type contained in the import object.");
|
|
10
|
+
const ExaUpdateImportOutput = zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("The unique identifier for the import."),
|
|
12
|
+
count: zod.z.number().int().describe("The number of entities in the import."),
|
|
13
|
+
title: zod.z.string().describe("The title of the import.").optional(),
|
|
14
|
+
entity: ExaUpdateImport_EntitySchema.nullable(),
|
|
15
|
+
format: zod.z.string().describe("The format of the import (csv or webset)."),
|
|
16
|
+
object: zod.z.string().describe("The type of object, always 'import'."),
|
|
17
|
+
status: zod.z.string().describe("The status of the import (pending, processing, completed, or failed)."),
|
|
18
|
+
failedAt: zod.z.string().describe("Timestamp when the import failed, if applicable.").optional(),
|
|
19
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs associated with this import object."),
|
|
20
|
+
createdAt: zod.z.string().describe("Timestamp when the import was created."),
|
|
21
|
+
updatedAt: zod.z.string().describe("Timestamp when the import was last updated."),
|
|
22
|
+
failedReason: zod.z.string().describe("Reason the import failed, if applicable (invalid_format, missing_identifier, etc).").optional(),
|
|
23
|
+
failedMessage: zod.z.string().describe("A message describing why the import failed, if any.").optional()
|
|
24
|
+
}).describe("Response model returned after updating an import.");
|
|
25
|
+
const exaUpdateImport = require_action.action("EXA_UPDATE_IMPORT", {
|
|
26
|
+
slug: "exa-update-import",
|
|
27
|
+
name: "Update import",
|
|
28
|
+
description: "Tool to update an import configuration by ID. Use when you need to modify an import's title or metadata.",
|
|
29
|
+
input: ExaUpdateImportInput,
|
|
30
|
+
output: ExaUpdateImportOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.exaUpdateImport = exaUpdateImport;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=update-import.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-import.cjs","names":["z","action"],"sources":["../../src/actions/update-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaUpdateImportInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the import to update.\"),\n title: z.string().describe(\"New title for the import. Leave null if unchanged.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs to attach to the import. Leave null if unchanged.\").optional(),\n}).describe(\"Request model for updating an import configuration.\");\nconst ExaUpdateImport_EntitySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of entity the import contains (e.g., 'company').\"),\n}).describe(\"Represents the entity type contained in the import object.\");\nexport const ExaUpdateImportOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the import.\"),\n count: z.number().int().describe(\"The number of entities in the import.\"),\n title: z.string().describe(\"The title of the import.\").optional(),\n entity: ExaUpdateImport_EntitySchema.nullable(),\n format: z.string().describe(\"The format of the import (csv or webset).\"),\n object: z.string().describe(\"The type of object, always 'import'.\"),\n status: z.string().describe(\"The status of the import (pending, processing, completed, or failed).\"),\n failedAt: z.string().describe(\"Timestamp when the import failed, if applicable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs associated with this import object.\"),\n createdAt: z.string().describe(\"Timestamp when the import was created.\"),\n updatedAt: z.string().describe(\"Timestamp when the import was last updated.\"),\n failedReason: z.string().describe(\"Reason the import failed, if applicable (invalid_format, missing_identifier, etc).\").optional(),\n failedMessage: z.string().describe(\"A message describing why the import failed, if any.\").optional(),\n}).describe(\"Response model returned after updating an import.\");\n\nexport const exaUpdateImport = action(\"EXA_UPDATE_IMPORT\", {\n slug: \"exa-update-import\",\n name: \"Update import\",\n description: \"Tool to update an import configuration by ID. Use when you need to modify an import's title or metadata.\",\n input: ExaUpdateImportInput,\n output: ExaUpdateImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,iCAAiC;CACzD,OAAOA,IAAAA,EAAE,OAAO,EAAE,SAAS,oDAAoD,EAAE,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,EAAE,SAAS,mEAAmE,EAAE,SAAS;AACrI,CAAC,EAAE,SAAS,qDAAqD;AACjE,MAAM,+BAA6CA,IAAAA,EAAE,OAAO,EAC1D,MAAMA,IAAAA,EAAE,OAAO,EAAE,SAAS,2DAA2D,EACvF,CAAC,EAAE,SAAS,4DAA4D;AACxE,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,EAAE,SAAS,uCAAuC;CAC/D,OAAOA,IAAAA,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,uCAAuC;CACxE,OAAOA,IAAAA,EAAE,OAAO,EAAE,SAAS,0BAA0B,EAAE,SAAS;CAChE,QAAQ,6BAA6B,SAAS;CAC9C,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,2CAA2C;CACvE,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,sCAAsC;CAClE,QAAQA,IAAAA,EAAE,OAAO,EAAE,SAAS,uEAAuE;CACnG,UAAUA,IAAAA,EAAE,OAAO,EAAE,SAAS,kDAAkD,EAAE,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,EAAE,SAAS,qDAAqD;CAC1G,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,wCAAwC;CACvE,WAAWA,IAAAA,EAAE,OAAO,EAAE,SAAS,6CAA6C;CAC5E,cAAcA,IAAAA,EAAE,OAAO,EAAE,SAAS,oFAAoF,EAAE,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,EAAE,SAAS,qDAAqD,EAAE,SAAS;AACrG,CAAC,EAAE,SAAS,mDAAmD;AAE/D,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-import.d.ts
|
|
4
|
+
declare const ExaUpdateImportInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaUpdateImportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaUpdateImport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaUpdateImport };
|
|
9
|
+
//# sourceMappingURL=update-import.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-import.d.cts","names":[],"sources":["../../src/actions/update-import.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAI6B;AAAA,cAIrD,qBAAA,EAAuB,CAAA,CAAE,UAc0B;AAAA,cAEnD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-import.d.ts
|
|
4
|
+
declare const ExaUpdateImportInput: z.ZodTypeAny;
|
|
5
|
+
declare const ExaUpdateImportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const exaUpdateImport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exaUpdateImport };
|
|
9
|
+
//# sourceMappingURL=update-import.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-import.d.mts","names":[],"sources":["../../src/actions/update-import.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAI6B;AAAA,cAIrD,qBAAA,EAAuB,CAAA,CAAE,UAc0B;AAAA,cAEnD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-import.ts
|
|
4
|
+
const ExaUpdateImportInput = z.object({
|
|
5
|
+
id: z.string().describe("The ID of the import to update."),
|
|
6
|
+
title: z.string().describe("New title for the import. Leave null if unchanged.").optional(),
|
|
7
|
+
metadata: z.record(z.string(), z.unknown()).describe("Key-value pairs to attach to the import. Leave null if unchanged.").optional()
|
|
8
|
+
}).describe("Request model for updating an import configuration.");
|
|
9
|
+
const ExaUpdateImport_EntitySchema = z.object({ type: z.string().describe("The type of entity the import contains (e.g., 'company').") }).describe("Represents the entity type contained in the import object.");
|
|
10
|
+
const exaUpdateImport = action("EXA_UPDATE_IMPORT", {
|
|
11
|
+
slug: "exa-update-import",
|
|
12
|
+
name: "Update import",
|
|
13
|
+
description: "Tool to update an import configuration by ID. Use when you need to modify an import's title or metadata.",
|
|
14
|
+
input: ExaUpdateImportInput,
|
|
15
|
+
output: z.object({
|
|
16
|
+
id: z.string().describe("The unique identifier for the import."),
|
|
17
|
+
count: z.number().int().describe("The number of entities in the import."),
|
|
18
|
+
title: z.string().describe("The title of the import.").optional(),
|
|
19
|
+
entity: ExaUpdateImport_EntitySchema.nullable(),
|
|
20
|
+
format: z.string().describe("The format of the import (csv or webset)."),
|
|
21
|
+
object: z.string().describe("The type of object, always 'import'."),
|
|
22
|
+
status: z.string().describe("The status of the import (pending, processing, completed, or failed)."),
|
|
23
|
+
failedAt: z.string().describe("Timestamp when the import failed, if applicable.").optional(),
|
|
24
|
+
metadata: z.record(z.string(), z.unknown()).describe("Key-value pairs associated with this import object."),
|
|
25
|
+
createdAt: z.string().describe("Timestamp when the import was created."),
|
|
26
|
+
updatedAt: z.string().describe("Timestamp when the import was last updated."),
|
|
27
|
+
failedReason: z.string().describe("Reason the import failed, if applicable (invalid_format, missing_identifier, etc).").optional(),
|
|
28
|
+
failedMessage: z.string().describe("A message describing why the import failed, if any.").optional()
|
|
29
|
+
}).describe("Response model returned after updating an import.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { exaUpdateImport };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=update-import.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-import.mjs","names":[],"sources":["../../src/actions/update-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaUpdateImportInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the import to update.\"),\n title: z.string().describe(\"New title for the import. Leave null if unchanged.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs to attach to the import. Leave null if unchanged.\").optional(),\n}).describe(\"Request model for updating an import configuration.\");\nconst ExaUpdateImport_EntitySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of entity the import contains (e.g., 'company').\"),\n}).describe(\"Represents the entity type contained in the import object.\");\nexport const ExaUpdateImportOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the import.\"),\n count: z.number().int().describe(\"The number of entities in the import.\"),\n title: z.string().describe(\"The title of the import.\").optional(),\n entity: ExaUpdateImport_EntitySchema.nullable(),\n format: z.string().describe(\"The format of the import (csv or webset).\"),\n object: z.string().describe(\"The type of object, always 'import'.\"),\n status: z.string().describe(\"The status of the import (pending, processing, completed, or failed).\"),\n failedAt: z.string().describe(\"Timestamp when the import failed, if applicable.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Key-value pairs associated with this import object.\"),\n createdAt: z.string().describe(\"Timestamp when the import was created.\"),\n updatedAt: z.string().describe(\"Timestamp when the import was last updated.\"),\n failedReason: z.string().describe(\"Reason the import failed, if applicable (invalid_format, missing_identifier, etc).\").optional(),\n failedMessage: z.string().describe(\"A message describing why the import failed, if any.\").optional(),\n}).describe(\"Response model returned after updating an import.\");\n\nexport const exaUpdateImport = action(\"EXA_UPDATE_IMPORT\", {\n slug: \"exa-update-import\",\n name: \"Update import\",\n description: \"Tool to update an import configuration by ID. Use when you need to modify an import's title or metadata.\",\n input: ExaUpdateImportInput,\n output: ExaUpdateImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,EAAE,SAAS,iCAAiC;CACzD,OAAO,EAAE,OAAO,EAAE,SAAS,oDAAoD,EAAE,SAAS;CAC1F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,mEAAmE,EAAE,SAAS;AACrI,CAAC,EAAE,SAAS,qDAAqD;AACjE,MAAM,+BAA6C,EAAE,OAAO,EAC1D,MAAM,EAAE,OAAO,EAAE,SAAS,2DAA2D,EACvF,CAAC,EAAE,SAAS,4DAA4D;AAiBxE,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,EAAE,SAAS,uCAAuC;EAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,uCAAuC;EACxE,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B,EAAE,SAAS;EAChE,QAAQ,6BAA6B,SAAS;EAC9C,QAAQ,EAAE,OAAO,EAAE,SAAS,2CAA2C;EACvE,QAAQ,EAAE,OAAO,EAAE,SAAS,sCAAsC;EAClE,QAAQ,EAAE,OAAO,EAAE,SAAS,uEAAuE;EACnG,UAAU,EAAE,OAAO,EAAE,SAAS,kDAAkD,EAAE,SAAS;EAC3F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,qDAAqD;EAC1G,WAAW,EAAE,OAAO,EAAE,SAAS,wCAAwC;EACvE,WAAW,EAAE,OAAO,EAAE,SAAS,6CAA6C;EAC5E,cAAc,EAAE,OAAO,EAAE,SAAS,oFAAoF,EAAE,SAAS;EACjI,eAAe,EAAE,OAAO,EAAE,SAAS,qDAAqD,EAAE,SAAS;CACrG,CAAC,EAAE,SAAS,mDAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const exa = defineApp({\n slug: \"exa\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,OAAA,uCAAA,EAAA,WAAgB;CAC3B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,GAAA,6BAAG,GAAA,+BAAA,UAAA"}
|