@keystrokehq/exa 0.0.16 → 0.0.56
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/LICENSE +1 -1
- package/README.md +90 -2
- package/dist/actions/index.cjs +17 -0
- package/dist/actions/index.d.cts +2 -0
- package/dist/actions/index.d.mts +2 -0
- package/dist/actions/index.mjs +2 -0
- package/dist/actions-Bl-9uz6K.cjs +491 -0
- package/dist/actions-Bl-9uz6K.cjs.map +1 -0
- package/dist/actions-DnHafheX.mjs +373 -0
- package/dist/actions-DnHafheX.mjs.map +1 -0
- package/dist/credential-BWous9Uu.cjs +16 -0
- package/dist/credential-BWous9Uu.cjs.map +1 -0
- package/dist/credential-NfXyV_Vy.mjs +11 -0
- package/dist/credential-NfXyV_Vy.mjs.map +1 -0
- package/dist/index-BwCGHs6v.d.cts +357 -0
- package/dist/index-BwCGHs6v.d.cts.map +1 -0
- package/dist/index-BwCGHs6v.d.mts +357 -0
- package/dist/index-BwCGHs6v.d.mts.map +1 -0
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +20 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -5
- package/dist/mcp.cjs +57 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +16 -0
- package/dist/mcp.d.cts.map +1 -0
- package/dist/mcp.d.mts +16 -0
- package/dist/mcp.d.mts.map +1 -0
- package/dist/mcp.mjs +54 -0
- package/dist/mcp.mjs.map +1 -0
- package/package.json +49 -54
- package/dist/contents.schema-BNgTB2DN.mjs +0 -133
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/exa.credential-set-BGLENRlR.d.mts +0 -14
- package/dist/exa.credential-set-Ba-RsxL2.mjs +0 -15
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/schemas/index.d.mts +0 -2
- package/dist/schemas/index.mjs +0 -3
- package/dist/search.schema-Cw-d91N6.d.mts +0 -204
- package/dist/update-monitor.operation-D-vWJFP3.mjs +0 -478
- package/dist/update-monitor.operation-Dm50YoS7.d.mts +0 -570
package/package.json
CHANGED
|
@@ -1,72 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/exa",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "0.0.56",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/dallinbentley/keystroke.git",
|
|
7
|
+
"directory": "packages/integrations/exa"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
6
12
|
"type": "module",
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.mjs",
|
|
15
|
+
"types": "./dist/index.d.mts",
|
|
7
16
|
"exports": {
|
|
8
17
|
".": {
|
|
18
|
+
"development": "./src/index.ts",
|
|
9
19
|
"types": "./dist/index.d.mts",
|
|
10
|
-
"
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
11
22
|
},
|
|
12
|
-
"./
|
|
13
|
-
"
|
|
14
|
-
"
|
|
23
|
+
"./actions": {
|
|
24
|
+
"development": "./src/actions/index.ts",
|
|
25
|
+
"types": "./dist/actions/index.d.mts",
|
|
26
|
+
"import": "./dist/actions/index.mjs",
|
|
27
|
+
"require": "./dist/actions/index.cjs"
|
|
15
28
|
},
|
|
16
|
-
"./
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"types": "./dist/schemas/index.d.mts",
|
|
22
|
-
"default": "./dist/schemas/index.mjs"
|
|
29
|
+
"./mcp": {
|
|
30
|
+
"development": "./src/mcp.ts",
|
|
31
|
+
"types": "./dist/mcp.d.mts",
|
|
32
|
+
"import": "./dist/mcp.mjs",
|
|
33
|
+
"require": "./dist/mcp.cjs"
|
|
23
34
|
}
|
|
24
35
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"LICENSE"
|
|
29
|
-
],
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"exa-js": "^2.11.0",
|
|
32
|
-
"zod": "^4.3.6"
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"registry": "https://registry.npmjs.org"
|
|
33
39
|
},
|
|
34
|
-
"
|
|
35
|
-
"
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"ky": "^2.0.2",
|
|
42
|
+
"zod": "^4.4.3",
|
|
43
|
+
"@keystrokehq/credentials": "0.0.52",
|
|
44
|
+
"@keystrokehq/keystroke": "0.0.56",
|
|
45
|
+
"@keystrokehq/mcp": "0.0.50"
|
|
36
46
|
},
|
|
37
47
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"@keystrokehq/
|
|
44
|
-
"@keystrokehq/
|
|
45
|
-
"@keystrokehq/
|
|
46
|
-
|
|
47
|
-
"keywords": [
|
|
48
|
-
"exa",
|
|
49
|
-
"web-search",
|
|
50
|
-
"semantic-search",
|
|
51
|
-
"keystroke",
|
|
52
|
-
"integration"
|
|
53
|
-
],
|
|
54
|
-
"repository": {
|
|
55
|
-
"type": "git",
|
|
56
|
-
"url": "https://github.com/keystrokehq/integrations",
|
|
57
|
-
"directory": "integrations/exa"
|
|
58
|
-
},
|
|
59
|
-
"license": "MIT",
|
|
60
|
-
"publishConfig": {
|
|
61
|
-
"access": "public",
|
|
62
|
-
"registry": "https://registry.npmjs.org/"
|
|
48
|
+
"@types/node": "^25.9.1",
|
|
49
|
+
"oxlint": "^1.66.0",
|
|
50
|
+
"tsdown": "^0.22.0",
|
|
51
|
+
"typescript": "^6.0.3",
|
|
52
|
+
"vitest": "^4.1.7",
|
|
53
|
+
"@keystrokehq/oxlint-config": "0.0.3",
|
|
54
|
+
"@keystrokehq/tsconfig": "0.0.3",
|
|
55
|
+
"@keystrokehq/tsdown-config": "0.0.3",
|
|
56
|
+
"@keystrokehq/vitest-config": "0.0.3"
|
|
63
57
|
},
|
|
64
58
|
"scripts": {
|
|
65
59
|
"build": "tsdown",
|
|
66
|
-
"
|
|
67
|
-
"lint": "
|
|
68
|
-
"
|
|
69
|
-
"test:unit": "vitest run --
|
|
70
|
-
"test:
|
|
60
|
+
"dev": "tsdown --watch --no-clean",
|
|
61
|
+
"lint": "oxlint .",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:unit": "vitest run --project unit",
|
|
64
|
+
"test:integration": "vitest run --project integration",
|
|
65
|
+
"typecheck": "tsc --noEmit"
|
|
71
66
|
}
|
|
72
67
|
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region src/schemas/common.schema.ts
|
|
4
|
-
const exaSearchResultSchema = z.object({
|
|
5
|
-
id: z.string(),
|
|
6
|
-
url: z.string(),
|
|
7
|
-
title: z.string().nullable(),
|
|
8
|
-
publishedDate: z.string().nullable().optional(),
|
|
9
|
-
author: z.string().nullable().optional(),
|
|
10
|
-
score: z.number().optional(),
|
|
11
|
-
image: z.string().nullable().optional(),
|
|
12
|
-
favicon: z.string().nullable().optional(),
|
|
13
|
-
text: z.string().optional(),
|
|
14
|
-
highlights: z.array(z.string()).optional(),
|
|
15
|
-
highlightScores: z.array(z.number()).optional(),
|
|
16
|
-
summary: z.string().optional(),
|
|
17
|
-
subpages: z.array(z.unknown()).optional(),
|
|
18
|
-
entities: z.array(z.unknown()).optional()
|
|
19
|
-
});
|
|
20
|
-
const exaCostSchema = z.record(z.string(), z.unknown());
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/schemas/answer.schema.ts
|
|
24
|
-
const exaAnswerCitationSchema = z.object({
|
|
25
|
-
id: z.string(),
|
|
26
|
-
url: z.string(),
|
|
27
|
-
title: z.string().nullable(),
|
|
28
|
-
author: z.string().nullable().optional(),
|
|
29
|
-
publishedDate: z.string().nullable().optional(),
|
|
30
|
-
text: z.string().optional(),
|
|
31
|
-
image: z.string().nullable().optional(),
|
|
32
|
-
favicon: z.string().nullable().optional()
|
|
33
|
-
});
|
|
34
|
-
const exaAnswerResponseSchema = z.object({
|
|
35
|
-
answer: z.union([z.string(), z.record(z.string(), z.unknown())]),
|
|
36
|
-
citations: z.array(exaAnswerCitationSchema),
|
|
37
|
-
requestId: z.string().optional(),
|
|
38
|
-
costDollars: exaCostSchema.optional()
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/schemas/monitors.schema.ts
|
|
43
|
-
const exaMonitorSchema = z.object({
|
|
44
|
-
id: z.string(),
|
|
45
|
-
name: z.string().nullable().optional(),
|
|
46
|
-
status: z.string().optional(),
|
|
47
|
-
search: z.unknown().optional(),
|
|
48
|
-
trigger: z.unknown().optional(),
|
|
49
|
-
outputSchema: z.unknown().optional(),
|
|
50
|
-
metadata: z.unknown().optional(),
|
|
51
|
-
webhook: z.unknown().optional(),
|
|
52
|
-
webhookSecret: z.string().optional(),
|
|
53
|
-
nextRunAt: z.string().nullable().optional(),
|
|
54
|
-
createdAt: z.string().optional(),
|
|
55
|
-
updatedAt: z.string().optional()
|
|
56
|
-
});
|
|
57
|
-
const exaMonitorRunSchema = z.object({
|
|
58
|
-
id: z.string(),
|
|
59
|
-
monitorId: z.string(),
|
|
60
|
-
status: z.string().optional(),
|
|
61
|
-
output: z.unknown().optional(),
|
|
62
|
-
failReason: z.string().nullable().optional(),
|
|
63
|
-
startedAt: z.string().nullable().optional(),
|
|
64
|
-
completedAt: z.string().nullable().optional(),
|
|
65
|
-
durationMs: z.number().nullable().optional(),
|
|
66
|
-
createdAt: z.string().optional(),
|
|
67
|
-
updatedAt: z.string().optional()
|
|
68
|
-
});
|
|
69
|
-
const exaMonitorListResponseSchema = z.object({
|
|
70
|
-
data: z.array(exaMonitorSchema),
|
|
71
|
-
hasMore: z.boolean().optional(),
|
|
72
|
-
nextCursor: z.string().nullable().optional()
|
|
73
|
-
});
|
|
74
|
-
const exaMonitorRunListResponseSchema = z.object({
|
|
75
|
-
data: z.array(exaMonitorRunSchema),
|
|
76
|
-
hasMore: z.boolean().optional(),
|
|
77
|
-
nextCursor: z.string().nullable().optional()
|
|
78
|
-
});
|
|
79
|
-
const exaTriggerMonitorResponseSchema = z.object({ triggered: z.boolean() });
|
|
80
|
-
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/schemas/search.schema.ts
|
|
83
|
-
const exaSearchResponseSchema = z.object({
|
|
84
|
-
requestId: z.string().optional(),
|
|
85
|
-
results: z.array(exaSearchResultSchema),
|
|
86
|
-
searchType: z.string().optional(),
|
|
87
|
-
output: z.unknown().optional(),
|
|
88
|
-
costDollars: exaCostSchema.optional()
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/schemas/contents.schema.ts
|
|
93
|
-
const exaContentsResponseSchema = z.object({
|
|
94
|
-
requestId: z.string().optional(),
|
|
95
|
-
results: z.array(exaSearchResultSchema),
|
|
96
|
-
statuses: z.array(z.unknown()).optional(),
|
|
97
|
-
costDollars: exaCostSchema.optional()
|
|
98
|
-
});
|
|
99
|
-
const contentsOptionsSchema = z.object({
|
|
100
|
-
text: z.union([z.literal(true), z.object({
|
|
101
|
-
maxCharacters: z.number().optional(),
|
|
102
|
-
includeHtmlTags: z.boolean().optional(),
|
|
103
|
-
verbosity: z.enum([
|
|
104
|
-
"compact",
|
|
105
|
-
"standard",
|
|
106
|
-
"full"
|
|
107
|
-
]).optional()
|
|
108
|
-
})]).optional(),
|
|
109
|
-
highlights: z.union([z.literal(true), z.object({
|
|
110
|
-
maxCharacters: z.number().optional(),
|
|
111
|
-
query: z.string().optional()
|
|
112
|
-
})]).optional(),
|
|
113
|
-
summary: z.object({
|
|
114
|
-
query: z.string().optional(),
|
|
115
|
-
schema: z.record(z.string(), z.unknown()).optional()
|
|
116
|
-
}).optional(),
|
|
117
|
-
livecrawl: z.enum([
|
|
118
|
-
"always",
|
|
119
|
-
"fallback",
|
|
120
|
-
"never",
|
|
121
|
-
"auto",
|
|
122
|
-
"preferred"
|
|
123
|
-
]).optional(),
|
|
124
|
-
livecrawlTimeout: z.number().optional(),
|
|
125
|
-
maxAgeHours: z.number().optional(),
|
|
126
|
-
subpages: z.number().optional(),
|
|
127
|
-
subpageTarget: z.union([z.string(), z.array(z.string())]).optional(),
|
|
128
|
-
extras: z.record(z.string(), z.unknown()).optional(),
|
|
129
|
-
filterEmptyResults: z.boolean().optional()
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
//#endregion
|
|
133
|
-
export { exaMonitorRunListResponseSchema as a, exaTriggerMonitorResponseSchema as c, exaCostSchema as d, exaSearchResultSchema as f, exaMonitorListResponseSchema as i, exaAnswerCitationSchema as l, exaContentsResponseSchema as n, exaMonitorRunSchema as o, exaSearchResponseSchema as r, exaMonitorSchema as s, contentsOptionsSchema as t, exaAnswerResponseSchema as u };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
|
-
|
|
6
|
-
//#region src/credential-sets/exa.credential-set.d.ts
|
|
7
|
-
declare const exaCredentialSet: CredentialSet<"exa", z.ZodObject<{
|
|
8
|
-
EXA_API_KEY: z.ZodString;
|
|
9
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
10
|
-
EXA_API_KEY: z.ZodString;
|
|
11
|
-
}, z.core.$strip>>[] | undefined>;
|
|
12
|
-
type ExaCredentials = InferCredentialSetAuth<typeof exaCredentialSet>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { exaCredentialSet as n, ExaCredentials as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/credential-sets/exa.credential-set.ts
|
|
5
|
-
const exaAuthSchema = z.object({ EXA_API_KEY: z.string().min(1) });
|
|
6
|
-
const exaCredentialSet = new CredentialSet({
|
|
7
|
-
id: "exa",
|
|
8
|
-
name: "Exa",
|
|
9
|
-
description: "AI-native semantic web search, content extraction, and monitoring",
|
|
10
|
-
auth: exaAuthSchema,
|
|
11
|
-
proxy: { hosts: ["api.exa.ai"] }
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { exaCredentialSet as t };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as listMonitorsOperation, c as getMonitorOperation, d as findSimilarOperation, f as deleteMonitorOperation, i as searchOperation, l as getContentsOperation, m as answerOperation, n as triggerMonitorOperation, o as listMonitorRunsOperation, p as createMonitorOperation, r as searchWithContentsOperation, s as getMonitorRunOperation, t as updateMonitorOperation, u as findSimilarWithContentsOperation } from "../update-monitor.operation-Dm50YoS7.mjs";
|
|
2
|
-
export { answerOperation, answerOperation as answerTool, createMonitorOperation, createMonitorOperation as createMonitorTool, deleteMonitorOperation, deleteMonitorOperation as deleteMonitorTool, findSimilarOperation, findSimilarOperation as findSimilarTool, findSimilarWithContentsOperation, findSimilarWithContentsOperation as findSimilarWithContentsTool, getContentsOperation, getContentsOperation as getContentsTool, getMonitorOperation, getMonitorOperation as getMonitorTool, getMonitorRunOperation, getMonitorRunOperation as getMonitorRunTool, listMonitorRunsOperation, listMonitorRunsOperation as listMonitorRunsTool, listMonitorsOperation, listMonitorsOperation as listMonitorsTool, searchOperation, searchOperation as searchTool, searchWithContentsOperation, searchWithContentsOperation as searchWithContentsTool, triggerMonitorOperation, triggerMonitorOperation as triggerMonitorTool, updateMonitorOperation, updateMonitorOperation as updateMonitorTool };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { a as listMonitorsOperation, c as getMonitorOperation, d as findSimilarOperation, f as deleteMonitorOperation, i as searchOperation, l as getContentsOperation, m as answerOperation, n as triggerMonitorOperation, o as listMonitorRunsOperation, p as createMonitorOperation, r as searchWithContentsOperation, s as getMonitorRunOperation, t as updateMonitorOperation, u as findSimilarWithContentsOperation } from "../update-monitor.operation-D-vWJFP3.mjs";
|
|
2
|
-
|
|
3
|
-
export { answerOperation, answerOperation as answerTool, createMonitorOperation, createMonitorOperation as createMonitorTool, deleteMonitorOperation, deleteMonitorOperation as deleteMonitorTool, findSimilarOperation, findSimilarOperation as findSimilarTool, findSimilarWithContentsOperation, findSimilarWithContentsOperation as findSimilarWithContentsTool, getContentsOperation, getContentsOperation as getContentsTool, getMonitorOperation, getMonitorOperation as getMonitorTool, getMonitorRunOperation, getMonitorRunOperation as getMonitorRunTool, listMonitorRunsOperation, listMonitorRunsOperation as listMonitorRunsTool, listMonitorsOperation, listMonitorsOperation as listMonitorsTool, searchOperation, searchOperation as searchTool, searchWithContentsOperation, searchWithContentsOperation as searchWithContentsTool, triggerMonitorOperation, triggerMonitorOperation as triggerMonitorTool, updateMonitorOperation, updateMonitorOperation as updateMonitorTool };
|
package/dist/schemas/index.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { C as exaAnswerResponseSchema, S as exaAnswerCitationSchema, _ as ExaSearchResult, a as ExaMonitorRun, b as ExaAnswerCitation, c as exaMonitorListResponseSchema, d as exaMonitorSchema, f as exaTriggerMonitorResponseSchema, g as ExaCost, h as exaContentsResponseSchema, i as ExaMonitorListResponse, l as exaMonitorRunListResponseSchema, m as contentsOptionsSchema, n as exaSearchResponseSchema, o as ExaMonitorRunListResponse, p as ExaContentsResponse, r as ExaMonitor, s as ExaTriggerMonitorResponse, t as ExaSearchResponse, u as exaMonitorRunSchema, v as exaCostSchema, x as ExaAnswerResponse, y as exaSearchResultSchema } from "../search.schema-Cw-d91N6.mjs";
|
|
2
|
-
export { type ExaAnswerCitation, type ExaAnswerResponse, type ExaContentsResponse, type ExaCost, type ExaMonitor, type ExaMonitorListResponse, type ExaMonitorRun, type ExaMonitorRunListResponse, type ExaSearchResponse, type ExaSearchResult, type ExaTriggerMonitorResponse, contentsOptionsSchema, exaAnswerCitationSchema, exaAnswerResponseSchema, exaContentsResponseSchema, exaCostSchema, exaMonitorListResponseSchema, exaMonitorRunListResponseSchema, exaMonitorRunSchema, exaMonitorSchema, exaSearchResponseSchema, exaSearchResultSchema, exaTriggerMonitorResponseSchema };
|
package/dist/schemas/index.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { a as exaMonitorRunListResponseSchema, c as exaTriggerMonitorResponseSchema, d as exaCostSchema, f as exaSearchResultSchema, i as exaMonitorListResponseSchema, l as exaAnswerCitationSchema, n as exaContentsResponseSchema, o as exaMonitorRunSchema, r as exaSearchResponseSchema, s as exaMonitorSchema, t as contentsOptionsSchema, u as exaAnswerResponseSchema } from "../contents.schema-BNgTB2DN.mjs";
|
|
2
|
-
|
|
3
|
-
export { contentsOptionsSchema, exaAnswerCitationSchema, exaAnswerResponseSchema, exaContentsResponseSchema, exaCostSchema, exaMonitorListResponseSchema, exaMonitorRunListResponseSchema, exaMonitorRunSchema, exaMonitorSchema, exaSearchResponseSchema, exaSearchResultSchema, exaTriggerMonitorResponseSchema };
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region src/schemas/answer.schema.d.ts
|
|
4
|
-
declare const exaAnswerCitationSchema: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
url: z.ZodString;
|
|
7
|
-
title: z.ZodNullable<z.ZodString>;
|
|
8
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
text: z.ZodOptional<z.ZodString>;
|
|
11
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
type ExaAnswerCitation = z.infer<typeof exaAnswerCitationSchema>;
|
|
15
|
-
declare const exaAnswerResponseSchema: z.ZodObject<{
|
|
16
|
-
answer: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
17
|
-
citations: z.ZodArray<z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
url: z.ZodString;
|
|
20
|
-
title: z.ZodNullable<z.ZodString>;
|
|
21
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
text: z.ZodOptional<z.ZodString>;
|
|
24
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$strip>>;
|
|
27
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
28
|
-
costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
type ExaAnswerResponse = z.infer<typeof exaAnswerResponseSchema>;
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/schemas/common.schema.d.ts
|
|
33
|
-
declare const exaSearchResultSchema: z.ZodObject<{
|
|
34
|
-
id: z.ZodString;
|
|
35
|
-
url: z.ZodString;
|
|
36
|
-
title: z.ZodNullable<z.ZodString>;
|
|
37
|
-
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
text: z.ZodOptional<z.ZodString>;
|
|
43
|
-
highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
-
highlightScores: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
45
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
46
|
-
subpages: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
47
|
-
entities: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
type ExaSearchResult = z.infer<typeof exaSearchResultSchema>;
|
|
50
|
-
declare const exaCostSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
51
|
-
type ExaCost = z.infer<typeof exaCostSchema>;
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region src/schemas/contents.schema.d.ts
|
|
54
|
-
declare const exaContentsResponseSchema: z.ZodObject<{
|
|
55
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
56
|
-
results: z.ZodArray<z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
url: z.ZodString;
|
|
59
|
-
title: z.ZodNullable<z.ZodString>;
|
|
60
|
-
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
text: z.ZodOptional<z.ZodString>;
|
|
66
|
-
highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
-
highlightScores: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
68
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
69
|
-
subpages: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
70
|
-
entities: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
statuses: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
73
|
-
costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
74
|
-
}, z.core.$strip>;
|
|
75
|
-
type ExaContentsResponse = z.infer<typeof exaContentsResponseSchema>;
|
|
76
|
-
declare const contentsOptionsSchema: z.ZodObject<{
|
|
77
|
-
text: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
78
|
-
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
79
|
-
includeHtmlTags: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
verbosity: z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
compact: "compact";
|
|
82
|
-
standard: "standard";
|
|
83
|
-
full: "full";
|
|
84
|
-
}>>;
|
|
85
|
-
}, z.core.$strip>]>>;
|
|
86
|
-
highlights: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
87
|
-
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
88
|
-
query: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$strip>]>>;
|
|
90
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
91
|
-
query: z.ZodOptional<z.ZodString>;
|
|
92
|
-
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
93
|
-
}, z.core.$strip>>;
|
|
94
|
-
livecrawl: z.ZodOptional<z.ZodEnum<{
|
|
95
|
-
never: "never";
|
|
96
|
-
always: "always";
|
|
97
|
-
fallback: "fallback";
|
|
98
|
-
auto: "auto";
|
|
99
|
-
preferred: "preferred";
|
|
100
|
-
}>>;
|
|
101
|
-
livecrawlTimeout: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
maxAgeHours: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
subpages: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
subpageTarget: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
105
|
-
extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
106
|
-
filterEmptyResults: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region src/schemas/monitors.schema.d.ts
|
|
110
|
-
declare const exaMonitorSchema: z.ZodObject<{
|
|
111
|
-
id: z.ZodString;
|
|
112
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
-
status: z.ZodOptional<z.ZodString>;
|
|
114
|
-
search: z.ZodOptional<z.ZodUnknown>;
|
|
115
|
-
trigger: z.ZodOptional<z.ZodUnknown>;
|
|
116
|
-
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
117
|
-
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
118
|
-
webhook: z.ZodOptional<z.ZodUnknown>;
|
|
119
|
-
webhookSecret: z.ZodOptional<z.ZodString>;
|
|
120
|
-
nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
122
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
123
|
-
}, z.core.$strip>;
|
|
124
|
-
type ExaMonitor = z.infer<typeof exaMonitorSchema>;
|
|
125
|
-
declare const exaMonitorRunSchema: z.ZodObject<{
|
|
126
|
-
id: z.ZodString;
|
|
127
|
-
monitorId: z.ZodString;
|
|
128
|
-
status: z.ZodOptional<z.ZodString>;
|
|
129
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
130
|
-
failReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
-
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
-
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
-
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
134
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
135
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
type ExaMonitorRun = z.infer<typeof exaMonitorRunSchema>;
|
|
138
|
-
declare const exaMonitorListResponseSchema: z.ZodObject<{
|
|
139
|
-
data: z.ZodArray<z.ZodObject<{
|
|
140
|
-
id: z.ZodString;
|
|
141
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
-
status: z.ZodOptional<z.ZodString>;
|
|
143
|
-
search: z.ZodOptional<z.ZodUnknown>;
|
|
144
|
-
trigger: z.ZodOptional<z.ZodUnknown>;
|
|
145
|
-
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
146
|
-
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
147
|
-
webhook: z.ZodOptional<z.ZodUnknown>;
|
|
148
|
-
webhookSecret: z.ZodOptional<z.ZodString>;
|
|
149
|
-
nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
151
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
152
|
-
}, z.core.$strip>>;
|
|
153
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
-
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
-
}, z.core.$strip>;
|
|
156
|
-
type ExaMonitorListResponse = z.infer<typeof exaMonitorListResponseSchema>;
|
|
157
|
-
declare const exaMonitorRunListResponseSchema: z.ZodObject<{
|
|
158
|
-
data: z.ZodArray<z.ZodObject<{
|
|
159
|
-
id: z.ZodString;
|
|
160
|
-
monitorId: z.ZodString;
|
|
161
|
-
status: z.ZodOptional<z.ZodString>;
|
|
162
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
163
|
-
failReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
-
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
-
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
-
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
167
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
168
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
169
|
-
}, z.core.$strip>>;
|
|
170
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
-
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
-
}, z.core.$strip>;
|
|
173
|
-
type ExaMonitorRunListResponse = z.infer<typeof exaMonitorRunListResponseSchema>;
|
|
174
|
-
declare const exaTriggerMonitorResponseSchema: z.ZodObject<{
|
|
175
|
-
triggered: z.ZodBoolean;
|
|
176
|
-
}, z.core.$strip>;
|
|
177
|
-
type ExaTriggerMonitorResponse = z.infer<typeof exaTriggerMonitorResponseSchema>;
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/schemas/search.schema.d.ts
|
|
180
|
-
declare const exaSearchResponseSchema: z.ZodObject<{
|
|
181
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
182
|
-
results: z.ZodArray<z.ZodObject<{
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
url: z.ZodString;
|
|
185
|
-
title: z.ZodNullable<z.ZodString>;
|
|
186
|
-
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
189
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
-
favicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
-
text: z.ZodOptional<z.ZodString>;
|
|
192
|
-
highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
|
-
highlightScores: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
194
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
195
|
-
subpages: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
196
|
-
entities: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
197
|
-
}, z.core.$strip>>;
|
|
198
|
-
searchType: z.ZodOptional<z.ZodString>;
|
|
199
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
200
|
-
costDollars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
201
|
-
}, z.core.$strip>;
|
|
202
|
-
type ExaSearchResponse = z.infer<typeof exaSearchResponseSchema>;
|
|
203
|
-
//#endregion
|
|
204
|
-
export { exaAnswerResponseSchema as C, exaAnswerCitationSchema as S, ExaSearchResult as _, ExaMonitorRun as a, ExaAnswerCitation as b, exaMonitorListResponseSchema as c, exaMonitorSchema as d, exaTriggerMonitorResponseSchema as f, ExaCost as g, exaContentsResponseSchema as h, ExaMonitorListResponse as i, exaMonitorRunListResponseSchema as l, contentsOptionsSchema as m, exaSearchResponseSchema as n, ExaMonitorRunListResponse as o, ExaContentsResponse as p, ExaMonitor as r, ExaTriggerMonitorResponse as s, ExaSearchResponse as t, exaMonitorRunSchema as u, exaCostSchema as v, ExaAnswerResponse as x, exaSearchResultSchema as y };
|