@corsair-dev/exa 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +10 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/answer.d.ts +3 -0
  5. package/dist/endpoints/answer.d.ts.map +1 -0
  6. package/dist/endpoints/contents.d.ts +3 -0
  7. package/dist/endpoints/contents.d.ts.map +1 -0
  8. package/dist/endpoints/events.d.ts +4 -0
  9. package/dist/endpoints/events.d.ts.map +1 -0
  10. package/dist/endpoints/imports.d.ts +5 -0
  11. package/dist/endpoints/imports.d.ts.map +1 -0
  12. package/dist/endpoints/index.d.ts +360 -0
  13. package/dist/endpoints/index.d.ts.map +1 -0
  14. package/dist/endpoints/monitors.d.ts +3 -0
  15. package/dist/endpoints/monitors.d.ts.map +1 -0
  16. package/dist/endpoints/search.d.ts +4 -0
  17. package/dist/endpoints/search.d.ts.map +1 -0
  18. package/dist/endpoints/types.d.ts +2829 -0
  19. package/dist/endpoints/types.d.ts.map +1 -0
  20. package/dist/endpoints/webhooks-api.d.ts +3 -0
  21. package/dist/endpoints/webhooks-api.d.ts.map +1 -0
  22. package/dist/endpoints/websets.d.ts +5 -0
  23. package/dist/endpoints/websets.d.ts.map +1 -0
  24. package/dist/error-handlers.d.ts +46 -0
  25. package/dist/error-handlers.d.ts.map +1 -0
  26. package/dist/index.d.ts +1659 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/schema/database.d.ts +146 -0
  30. package/dist/schema/database.d.ts.map +1 -0
  31. package/dist/schema/index.d.ts +144 -0
  32. package/dist/schema/index.d.ts.map +1 -0
  33. package/dist/tsup.config.d.ts +3 -0
  34. package/dist/tsup.config.d.ts.map +1 -0
  35. package/dist/webhooks/content-indexed.d.ts +3 -0
  36. package/dist/webhooks/content-indexed.d.ts.map +1 -0
  37. package/dist/webhooks/index.d.ts +162 -0
  38. package/dist/webhooks/index.d.ts.map +1 -0
  39. package/dist/webhooks/search-alert.d.ts +3 -0
  40. package/dist/webhooks/search-alert.d.ts.map +1 -0
  41. package/dist/webhooks/types.d.ts +626 -0
  42. package/dist/webhooks/types.d.ts.map +1 -0
  43. package/dist/webhooks/webset-items-found.d.ts +3 -0
  44. package/dist/webhooks/webset-items-found.d.ts.map +1 -0
  45. package/dist/webhooks/webset-search-completed.d.ts +3 -0
  46. package/dist/webhooks/webset-search-completed.d.ts.map +1 -0
  47. package/package.json +40 -0
@@ -0,0 +1,1659 @@
1
+ import type { BindEndpoints, BindWebhooks, CorsairEndpoint, CorsairErrorHandler, CorsairPlugin, CorsairPluginContext, CorsairWebhook, KeyBuilderContext, PluginPermissionsConfig } from 'corsair/core';
2
+ import type { PickAuth } from 'corsair/core';
3
+ import type { ExaEndpointInputs, ExaEndpointOutputs } from './endpoints/types';
4
+ import { ExaSchema } from './schema';
5
+ import type { ContentIndexedEvent, ExaWebhookOutputs, SearchAlertEvent, WebsetItemsFoundEvent, WebsetSearchCompletedEvent } from './webhooks/types';
6
+ export type ExaEndpoints = {
7
+ searchSearch: ExaEndpoint<'searchSearch'>;
8
+ searchFindSimilar: ExaEndpoint<'searchFindSimilar'>;
9
+ contentsGet: ExaEndpoint<'contentsGet'>;
10
+ answerGet: ExaEndpoint<'answerGet'>;
11
+ websetsCreate: ExaEndpoint<'websetsCreate'>;
12
+ websetsGet: ExaEndpoint<'websetsGet'>;
13
+ websetsDelete: ExaEndpoint<'websetsDelete'>;
14
+ importsCreate: ExaEndpoint<'importsCreate'>;
15
+ importsList: ExaEndpoint<'importsList'>;
16
+ importsDelete: ExaEndpoint<'importsDelete'>;
17
+ monitorsCreate: ExaEndpoint<'monitorsCreate'>;
18
+ eventsList: ExaEndpoint<'eventsList'>;
19
+ eventsGet: ExaEndpoint<'eventsGet'>;
20
+ webhooksApiList: ExaEndpoint<'webhooksApiList'>;
21
+ };
22
+ declare const exaEndpointsNested: {
23
+ readonly search: {
24
+ readonly search: ExaEndpoint<"searchSearch">;
25
+ readonly findSimilar: ExaEndpoint<"searchFindSimilar">;
26
+ };
27
+ readonly contents: {
28
+ readonly get: ExaEndpoint<"contentsGet">;
29
+ };
30
+ readonly answer: {
31
+ readonly get: ExaEndpoint<"answerGet">;
32
+ };
33
+ readonly websets: {
34
+ readonly create: ExaEndpoint<"websetsCreate">;
35
+ readonly get: ExaEndpoint<"websetsGet">;
36
+ readonly delete: ExaEndpoint<"websetsDelete">;
37
+ };
38
+ readonly imports: {
39
+ readonly create: ExaEndpoint<"importsCreate">;
40
+ readonly list: ExaEndpoint<"importsList">;
41
+ readonly delete: ExaEndpoint<"importsDelete">;
42
+ };
43
+ readonly monitors: {
44
+ readonly create: ExaEndpoint<"monitorsCreate">;
45
+ };
46
+ readonly events: {
47
+ readonly list: ExaEndpoint<"eventsList">;
48
+ readonly get: ExaEndpoint<"eventsGet">;
49
+ };
50
+ readonly webhooksApi: {
51
+ readonly list: ExaEndpoint<"webhooksApiList">;
52
+ };
53
+ };
54
+ export declare const exaEndpointSchemas: {
55
+ readonly 'search.search': {
56
+ readonly input: import("zod").ZodObject<{
57
+ query: import("zod").ZodString;
58
+ numResults: import("zod").ZodOptional<import("zod").ZodNumber>;
59
+ includeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
60
+ excludeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
61
+ startCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
62
+ endCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
63
+ startPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
64
+ endPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
65
+ useAutoprompt: import("zod").ZodOptional<import("zod").ZodBoolean>;
66
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["keyword", "neural", "auto"]>>;
67
+ category: import("zod").ZodOptional<import("zod").ZodString>;
68
+ contents: import("zod").ZodOptional<import("zod").ZodObject<{
69
+ text: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
70
+ maxCharacters: import("zod").ZodOptional<import("zod").ZodNumber>;
71
+ includeHtmlTags: import("zod").ZodOptional<import("zod").ZodBoolean>;
72
+ }, "strip", import("zod").ZodTypeAny, {
73
+ maxCharacters?: number | undefined;
74
+ includeHtmlTags?: boolean | undefined;
75
+ }, {
76
+ maxCharacters?: number | undefined;
77
+ includeHtmlTags?: boolean | undefined;
78
+ }>, import("zod").ZodBoolean]>>;
79
+ highlights: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
80
+ numSentences: import("zod").ZodOptional<import("zod").ZodNumber>;
81
+ highlightsPerUrl: import("zod").ZodOptional<import("zod").ZodNumber>;
82
+ query: import("zod").ZodOptional<import("zod").ZodString>;
83
+ }, "strip", import("zod").ZodTypeAny, {
84
+ query?: string | undefined;
85
+ numSentences?: number | undefined;
86
+ highlightsPerUrl?: number | undefined;
87
+ }, {
88
+ query?: string | undefined;
89
+ numSentences?: number | undefined;
90
+ highlightsPerUrl?: number | undefined;
91
+ }>, import("zod").ZodBoolean]>>;
92
+ summary: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
93
+ query: import("zod").ZodOptional<import("zod").ZodString>;
94
+ }, "strip", import("zod").ZodTypeAny, {
95
+ query?: string | undefined;
96
+ }, {
97
+ query?: string | undefined;
98
+ }>, import("zod").ZodBoolean]>>;
99
+ }, "strip", import("zod").ZodTypeAny, {
100
+ text?: boolean | {
101
+ maxCharacters?: number | undefined;
102
+ includeHtmlTags?: boolean | undefined;
103
+ } | undefined;
104
+ highlights?: boolean | {
105
+ query?: string | undefined;
106
+ numSentences?: number | undefined;
107
+ highlightsPerUrl?: number | undefined;
108
+ } | undefined;
109
+ summary?: boolean | {
110
+ query?: string | undefined;
111
+ } | undefined;
112
+ }, {
113
+ text?: boolean | {
114
+ maxCharacters?: number | undefined;
115
+ includeHtmlTags?: boolean | undefined;
116
+ } | undefined;
117
+ highlights?: boolean | {
118
+ query?: string | undefined;
119
+ numSentences?: number | undefined;
120
+ highlightsPerUrl?: number | undefined;
121
+ } | undefined;
122
+ summary?: boolean | {
123
+ query?: string | undefined;
124
+ } | undefined;
125
+ }>>;
126
+ }, "strip", import("zod").ZodTypeAny, {
127
+ query: string;
128
+ type?: "keyword" | "neural" | "auto" | undefined;
129
+ numResults?: number | undefined;
130
+ includeDomains?: string[] | undefined;
131
+ excludeDomains?: string[] | undefined;
132
+ startCrawlDate?: string | undefined;
133
+ endCrawlDate?: string | undefined;
134
+ startPublishedDate?: string | undefined;
135
+ endPublishedDate?: string | undefined;
136
+ useAutoprompt?: boolean | undefined;
137
+ category?: string | undefined;
138
+ contents?: {
139
+ text?: boolean | {
140
+ maxCharacters?: number | undefined;
141
+ includeHtmlTags?: boolean | undefined;
142
+ } | undefined;
143
+ highlights?: boolean | {
144
+ query?: string | undefined;
145
+ numSentences?: number | undefined;
146
+ highlightsPerUrl?: number | undefined;
147
+ } | undefined;
148
+ summary?: boolean | {
149
+ query?: string | undefined;
150
+ } | undefined;
151
+ } | undefined;
152
+ }, {
153
+ query: string;
154
+ type?: "keyword" | "neural" | "auto" | undefined;
155
+ numResults?: number | undefined;
156
+ includeDomains?: string[] | undefined;
157
+ excludeDomains?: string[] | undefined;
158
+ startCrawlDate?: string | undefined;
159
+ endCrawlDate?: string | undefined;
160
+ startPublishedDate?: string | undefined;
161
+ endPublishedDate?: string | undefined;
162
+ useAutoprompt?: boolean | undefined;
163
+ category?: string | undefined;
164
+ contents?: {
165
+ text?: boolean | {
166
+ maxCharacters?: number | undefined;
167
+ includeHtmlTags?: boolean | undefined;
168
+ } | undefined;
169
+ highlights?: boolean | {
170
+ query?: string | undefined;
171
+ numSentences?: number | undefined;
172
+ highlightsPerUrl?: number | undefined;
173
+ } | undefined;
174
+ summary?: boolean | {
175
+ query?: string | undefined;
176
+ } | undefined;
177
+ } | undefined;
178
+ }>;
179
+ readonly output: import("zod").ZodObject<{
180
+ results: import("zod").ZodArray<import("zod").ZodObject<{
181
+ id: import("zod").ZodString;
182
+ url: import("zod").ZodString;
183
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
184
+ publishedDate: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
185
+ author: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
186
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
187
+ text: import("zod").ZodOptional<import("zod").ZodString>;
188
+ highlights: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
189
+ highlightScores: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
190
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
191
+ }, "strip", import("zod").ZodTypeAny, {
192
+ id: string;
193
+ url: string;
194
+ text?: string | undefined;
195
+ highlights?: string[] | undefined;
196
+ summary?: string | undefined;
197
+ title?: string | null | undefined;
198
+ publishedDate?: string | null | undefined;
199
+ author?: string | null | undefined;
200
+ score?: number | undefined;
201
+ highlightScores?: number[] | undefined;
202
+ }, {
203
+ id: string;
204
+ url: string;
205
+ text?: string | undefined;
206
+ highlights?: string[] | undefined;
207
+ summary?: string | undefined;
208
+ title?: string | null | undefined;
209
+ publishedDate?: string | null | undefined;
210
+ author?: string | null | undefined;
211
+ score?: number | undefined;
212
+ highlightScores?: number[] | undefined;
213
+ }>, "many">;
214
+ autopromptString: import("zod").ZodOptional<import("zod").ZodString>;
215
+ requestId: import("zod").ZodOptional<import("zod").ZodString>;
216
+ }, "strip", import("zod").ZodTypeAny, {
217
+ results: {
218
+ id: string;
219
+ url: string;
220
+ text?: string | undefined;
221
+ highlights?: string[] | undefined;
222
+ summary?: string | undefined;
223
+ title?: string | null | undefined;
224
+ publishedDate?: string | null | undefined;
225
+ author?: string | null | undefined;
226
+ score?: number | undefined;
227
+ highlightScores?: number[] | undefined;
228
+ }[];
229
+ autopromptString?: string | undefined;
230
+ requestId?: string | undefined;
231
+ }, {
232
+ results: {
233
+ id: string;
234
+ url: string;
235
+ text?: string | undefined;
236
+ highlights?: string[] | undefined;
237
+ summary?: string | undefined;
238
+ title?: string | null | undefined;
239
+ publishedDate?: string | null | undefined;
240
+ author?: string | null | undefined;
241
+ score?: number | undefined;
242
+ highlightScores?: number[] | undefined;
243
+ }[];
244
+ autopromptString?: string | undefined;
245
+ requestId?: string | undefined;
246
+ }>;
247
+ };
248
+ readonly 'search.findSimilar': {
249
+ readonly input: import("zod").ZodObject<{
250
+ url: import("zod").ZodString;
251
+ numResults: import("zod").ZodOptional<import("zod").ZodNumber>;
252
+ includeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
253
+ excludeDomains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
254
+ startCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
255
+ endCrawlDate: import("zod").ZodOptional<import("zod").ZodString>;
256
+ startPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
257
+ endPublishedDate: import("zod").ZodOptional<import("zod").ZodString>;
258
+ excludeSourceDomain: import("zod").ZodOptional<import("zod").ZodBoolean>;
259
+ category: import("zod").ZodOptional<import("zod").ZodString>;
260
+ contents: import("zod").ZodOptional<import("zod").ZodObject<{
261
+ text: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
262
+ maxCharacters: import("zod").ZodOptional<import("zod").ZodNumber>;
263
+ includeHtmlTags: import("zod").ZodOptional<import("zod").ZodBoolean>;
264
+ }, "strip", import("zod").ZodTypeAny, {
265
+ maxCharacters?: number | undefined;
266
+ includeHtmlTags?: boolean | undefined;
267
+ }, {
268
+ maxCharacters?: number | undefined;
269
+ includeHtmlTags?: boolean | undefined;
270
+ }>, import("zod").ZodBoolean]>>;
271
+ highlights: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
272
+ numSentences: import("zod").ZodOptional<import("zod").ZodNumber>;
273
+ highlightsPerUrl: import("zod").ZodOptional<import("zod").ZodNumber>;
274
+ query: import("zod").ZodOptional<import("zod").ZodString>;
275
+ }, "strip", import("zod").ZodTypeAny, {
276
+ query?: string | undefined;
277
+ numSentences?: number | undefined;
278
+ highlightsPerUrl?: number | undefined;
279
+ }, {
280
+ query?: string | undefined;
281
+ numSentences?: number | undefined;
282
+ highlightsPerUrl?: number | undefined;
283
+ }>, import("zod").ZodBoolean]>>;
284
+ summary: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
285
+ query: import("zod").ZodOptional<import("zod").ZodString>;
286
+ }, "strip", import("zod").ZodTypeAny, {
287
+ query?: string | undefined;
288
+ }, {
289
+ query?: string | undefined;
290
+ }>, import("zod").ZodBoolean]>>;
291
+ }, "strip", import("zod").ZodTypeAny, {
292
+ text?: boolean | {
293
+ maxCharacters?: number | undefined;
294
+ includeHtmlTags?: boolean | undefined;
295
+ } | undefined;
296
+ highlights?: boolean | {
297
+ query?: string | undefined;
298
+ numSentences?: number | undefined;
299
+ highlightsPerUrl?: number | undefined;
300
+ } | undefined;
301
+ summary?: boolean | {
302
+ query?: string | undefined;
303
+ } | undefined;
304
+ }, {
305
+ text?: boolean | {
306
+ maxCharacters?: number | undefined;
307
+ includeHtmlTags?: boolean | undefined;
308
+ } | undefined;
309
+ highlights?: boolean | {
310
+ query?: string | undefined;
311
+ numSentences?: number | undefined;
312
+ highlightsPerUrl?: number | undefined;
313
+ } | undefined;
314
+ summary?: boolean | {
315
+ query?: string | undefined;
316
+ } | undefined;
317
+ }>>;
318
+ }, "strip", import("zod").ZodTypeAny, {
319
+ url: string;
320
+ numResults?: number | undefined;
321
+ includeDomains?: string[] | undefined;
322
+ excludeDomains?: string[] | undefined;
323
+ startCrawlDate?: string | undefined;
324
+ endCrawlDate?: string | undefined;
325
+ startPublishedDate?: string | undefined;
326
+ endPublishedDate?: string | undefined;
327
+ category?: string | undefined;
328
+ contents?: {
329
+ text?: boolean | {
330
+ maxCharacters?: number | undefined;
331
+ includeHtmlTags?: boolean | undefined;
332
+ } | undefined;
333
+ highlights?: boolean | {
334
+ query?: string | undefined;
335
+ numSentences?: number | undefined;
336
+ highlightsPerUrl?: number | undefined;
337
+ } | undefined;
338
+ summary?: boolean | {
339
+ query?: string | undefined;
340
+ } | undefined;
341
+ } | undefined;
342
+ excludeSourceDomain?: boolean | undefined;
343
+ }, {
344
+ url: string;
345
+ numResults?: number | undefined;
346
+ includeDomains?: string[] | undefined;
347
+ excludeDomains?: string[] | undefined;
348
+ startCrawlDate?: string | undefined;
349
+ endCrawlDate?: string | undefined;
350
+ startPublishedDate?: string | undefined;
351
+ endPublishedDate?: string | undefined;
352
+ category?: string | undefined;
353
+ contents?: {
354
+ text?: boolean | {
355
+ maxCharacters?: number | undefined;
356
+ includeHtmlTags?: boolean | undefined;
357
+ } | undefined;
358
+ highlights?: boolean | {
359
+ query?: string | undefined;
360
+ numSentences?: number | undefined;
361
+ highlightsPerUrl?: number | undefined;
362
+ } | undefined;
363
+ summary?: boolean | {
364
+ query?: string | undefined;
365
+ } | undefined;
366
+ } | undefined;
367
+ excludeSourceDomain?: boolean | undefined;
368
+ }>;
369
+ readonly output: import("zod").ZodObject<{
370
+ results: import("zod").ZodArray<import("zod").ZodObject<{
371
+ id: import("zod").ZodString;
372
+ url: import("zod").ZodString;
373
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
374
+ publishedDate: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
375
+ author: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
376
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
377
+ text: import("zod").ZodOptional<import("zod").ZodString>;
378
+ highlights: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
379
+ highlightScores: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
380
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
381
+ }, "strip", import("zod").ZodTypeAny, {
382
+ id: string;
383
+ url: string;
384
+ text?: string | undefined;
385
+ highlights?: string[] | undefined;
386
+ summary?: string | undefined;
387
+ title?: string | null | undefined;
388
+ publishedDate?: string | null | undefined;
389
+ author?: string | null | undefined;
390
+ score?: number | undefined;
391
+ highlightScores?: number[] | undefined;
392
+ }, {
393
+ id: string;
394
+ url: string;
395
+ text?: string | undefined;
396
+ highlights?: string[] | undefined;
397
+ summary?: string | undefined;
398
+ title?: string | null | undefined;
399
+ publishedDate?: string | null | undefined;
400
+ author?: string | null | undefined;
401
+ score?: number | undefined;
402
+ highlightScores?: number[] | undefined;
403
+ }>, "many">;
404
+ requestId: import("zod").ZodOptional<import("zod").ZodString>;
405
+ }, "strip", import("zod").ZodTypeAny, {
406
+ results: {
407
+ id: string;
408
+ url: string;
409
+ text?: string | undefined;
410
+ highlights?: string[] | undefined;
411
+ summary?: string | undefined;
412
+ title?: string | null | undefined;
413
+ publishedDate?: string | null | undefined;
414
+ author?: string | null | undefined;
415
+ score?: number | undefined;
416
+ highlightScores?: number[] | undefined;
417
+ }[];
418
+ requestId?: string | undefined;
419
+ }, {
420
+ results: {
421
+ id: string;
422
+ url: string;
423
+ text?: string | undefined;
424
+ highlights?: string[] | undefined;
425
+ summary?: string | undefined;
426
+ title?: string | null | undefined;
427
+ publishedDate?: string | null | undefined;
428
+ author?: string | null | undefined;
429
+ score?: number | undefined;
430
+ highlightScores?: number[] | undefined;
431
+ }[];
432
+ requestId?: string | undefined;
433
+ }>;
434
+ };
435
+ readonly 'contents.get': {
436
+ readonly input: import("zod").ZodObject<{
437
+ ids: import("zod").ZodArray<import("zod").ZodString, "many">;
438
+ text: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
439
+ maxCharacters: import("zod").ZodOptional<import("zod").ZodNumber>;
440
+ includeHtmlTags: import("zod").ZodOptional<import("zod").ZodBoolean>;
441
+ }, "strip", import("zod").ZodTypeAny, {
442
+ maxCharacters?: number | undefined;
443
+ includeHtmlTags?: boolean | undefined;
444
+ }, {
445
+ maxCharacters?: number | undefined;
446
+ includeHtmlTags?: boolean | undefined;
447
+ }>, import("zod").ZodBoolean]>>;
448
+ highlights: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
449
+ numSentences: import("zod").ZodOptional<import("zod").ZodNumber>;
450
+ highlightsPerUrl: import("zod").ZodOptional<import("zod").ZodNumber>;
451
+ query: import("zod").ZodOptional<import("zod").ZodString>;
452
+ }, "strip", import("zod").ZodTypeAny, {
453
+ query?: string | undefined;
454
+ numSentences?: number | undefined;
455
+ highlightsPerUrl?: number | undefined;
456
+ }, {
457
+ query?: string | undefined;
458
+ numSentences?: number | undefined;
459
+ highlightsPerUrl?: number | undefined;
460
+ }>, import("zod").ZodBoolean]>>;
461
+ summary: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
462
+ query: import("zod").ZodOptional<import("zod").ZodString>;
463
+ }, "strip", import("zod").ZodTypeAny, {
464
+ query?: string | undefined;
465
+ }, {
466
+ query?: string | undefined;
467
+ }>, import("zod").ZodBoolean]>>;
468
+ }, "strip", import("zod").ZodTypeAny, {
469
+ ids: string[];
470
+ text?: boolean | {
471
+ maxCharacters?: number | undefined;
472
+ includeHtmlTags?: boolean | undefined;
473
+ } | undefined;
474
+ highlights?: boolean | {
475
+ query?: string | undefined;
476
+ numSentences?: number | undefined;
477
+ highlightsPerUrl?: number | undefined;
478
+ } | undefined;
479
+ summary?: boolean | {
480
+ query?: string | undefined;
481
+ } | undefined;
482
+ }, {
483
+ ids: string[];
484
+ text?: boolean | {
485
+ maxCharacters?: number | undefined;
486
+ includeHtmlTags?: boolean | undefined;
487
+ } | undefined;
488
+ highlights?: boolean | {
489
+ query?: string | undefined;
490
+ numSentences?: number | undefined;
491
+ highlightsPerUrl?: number | undefined;
492
+ } | undefined;
493
+ summary?: boolean | {
494
+ query?: string | undefined;
495
+ } | undefined;
496
+ }>;
497
+ readonly output: import("zod").ZodObject<{
498
+ results: import("zod").ZodArray<import("zod").ZodObject<{
499
+ id: import("zod").ZodString;
500
+ url: import("zod").ZodString;
501
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
502
+ publishedDate: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
503
+ author: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
504
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
505
+ text: import("zod").ZodOptional<import("zod").ZodString>;
506
+ highlights: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
507
+ highlightScores: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
508
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
509
+ }, "strip", import("zod").ZodTypeAny, {
510
+ id: string;
511
+ url: string;
512
+ text?: string | undefined;
513
+ highlights?: string[] | undefined;
514
+ summary?: string | undefined;
515
+ title?: string | null | undefined;
516
+ publishedDate?: string | null | undefined;
517
+ author?: string | null | undefined;
518
+ score?: number | undefined;
519
+ highlightScores?: number[] | undefined;
520
+ }, {
521
+ id: string;
522
+ url: string;
523
+ text?: string | undefined;
524
+ highlights?: string[] | undefined;
525
+ summary?: string | undefined;
526
+ title?: string | null | undefined;
527
+ publishedDate?: string | null | undefined;
528
+ author?: string | null | undefined;
529
+ score?: number | undefined;
530
+ highlightScores?: number[] | undefined;
531
+ }>, "many">;
532
+ requestId: import("zod").ZodOptional<import("zod").ZodString>;
533
+ }, "strip", import("zod").ZodTypeAny, {
534
+ results: {
535
+ id: string;
536
+ url: string;
537
+ text?: string | undefined;
538
+ highlights?: string[] | undefined;
539
+ summary?: string | undefined;
540
+ title?: string | null | undefined;
541
+ publishedDate?: string | null | undefined;
542
+ author?: string | null | undefined;
543
+ score?: number | undefined;
544
+ highlightScores?: number[] | undefined;
545
+ }[];
546
+ requestId?: string | undefined;
547
+ }, {
548
+ results: {
549
+ id: string;
550
+ url: string;
551
+ text?: string | undefined;
552
+ highlights?: string[] | undefined;
553
+ summary?: string | undefined;
554
+ title?: string | null | undefined;
555
+ publishedDate?: string | null | undefined;
556
+ author?: string | null | undefined;
557
+ score?: number | undefined;
558
+ highlightScores?: number[] | undefined;
559
+ }[];
560
+ requestId?: string | undefined;
561
+ }>;
562
+ };
563
+ readonly 'answer.get': {
564
+ readonly input: import("zod").ZodObject<{
565
+ query: import("zod").ZodString;
566
+ text: import("zod").ZodOptional<import("zod").ZodBoolean>;
567
+ stream: import("zod").ZodOptional<import("zod").ZodBoolean>;
568
+ }, "strip", import("zod").ZodTypeAny, {
569
+ query: string;
570
+ text?: boolean | undefined;
571
+ stream?: boolean | undefined;
572
+ }, {
573
+ query: string;
574
+ text?: boolean | undefined;
575
+ stream?: boolean | undefined;
576
+ }>;
577
+ readonly output: import("zod").ZodObject<{
578
+ answer: import("zod").ZodString;
579
+ citations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
580
+ id: import("zod").ZodString;
581
+ url: import("zod").ZodString;
582
+ title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
583
+ publishedDate: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
584
+ author: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
585
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
586
+ text: import("zod").ZodOptional<import("zod").ZodString>;
587
+ highlights: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
588
+ highlightScores: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
589
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
590
+ }, "strip", import("zod").ZodTypeAny, {
591
+ id: string;
592
+ url: string;
593
+ text?: string | undefined;
594
+ highlights?: string[] | undefined;
595
+ summary?: string | undefined;
596
+ title?: string | null | undefined;
597
+ publishedDate?: string | null | undefined;
598
+ author?: string | null | undefined;
599
+ score?: number | undefined;
600
+ highlightScores?: number[] | undefined;
601
+ }, {
602
+ id: string;
603
+ url: string;
604
+ text?: string | undefined;
605
+ highlights?: string[] | undefined;
606
+ summary?: string | undefined;
607
+ title?: string | null | undefined;
608
+ publishedDate?: string | null | undefined;
609
+ author?: string | null | undefined;
610
+ score?: number | undefined;
611
+ highlightScores?: number[] | undefined;
612
+ }>, "many">>;
613
+ requestId: import("zod").ZodOptional<import("zod").ZodString>;
614
+ }, "strip", import("zod").ZodTypeAny, {
615
+ answer: string;
616
+ requestId?: string | undefined;
617
+ citations?: {
618
+ id: string;
619
+ url: string;
620
+ text?: string | undefined;
621
+ highlights?: string[] | undefined;
622
+ summary?: string | undefined;
623
+ title?: string | null | undefined;
624
+ publishedDate?: string | null | undefined;
625
+ author?: string | null | undefined;
626
+ score?: number | undefined;
627
+ highlightScores?: number[] | undefined;
628
+ }[] | undefined;
629
+ }, {
630
+ answer: string;
631
+ requestId?: string | undefined;
632
+ citations?: {
633
+ id: string;
634
+ url: string;
635
+ text?: string | undefined;
636
+ highlights?: string[] | undefined;
637
+ summary?: string | undefined;
638
+ title?: string | null | undefined;
639
+ publishedDate?: string | null | undefined;
640
+ author?: string | null | undefined;
641
+ score?: number | undefined;
642
+ highlightScores?: number[] | undefined;
643
+ }[] | undefined;
644
+ }>;
645
+ };
646
+ readonly 'websets.create': {
647
+ readonly input: import("zod").ZodObject<{
648
+ searches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
649
+ query: import("zod").ZodString;
650
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
651
+ entity: import("zod").ZodOptional<import("zod").ZodObject<{
652
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["company", "person", "article", "research paper", "repository", "event", "product", "video", "job", "podcast"]>>;
653
+ }, "strip", import("zod").ZodTypeAny, {
654
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
655
+ }, {
656
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
657
+ }>>;
658
+ criteria: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
659
+ description: import("zod").ZodString;
660
+ successRate: import("zod").ZodOptional<import("zod").ZodString>;
661
+ }, "strip", import("zod").ZodTypeAny, {
662
+ description: string;
663
+ successRate?: string | undefined;
664
+ }, {
665
+ description: string;
666
+ successRate?: string | undefined;
667
+ }>, "many">>;
668
+ }, "strip", import("zod").ZodTypeAny, {
669
+ query: string;
670
+ count?: number | undefined;
671
+ entity?: {
672
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
673
+ } | undefined;
674
+ criteria?: {
675
+ description: string;
676
+ successRate?: string | undefined;
677
+ }[] | undefined;
678
+ }, {
679
+ query: string;
680
+ count?: number | undefined;
681
+ entity?: {
682
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
683
+ } | undefined;
684
+ criteria?: {
685
+ description: string;
686
+ successRate?: string | undefined;
687
+ }[] | undefined;
688
+ }>, "many">>;
689
+ enrichments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
690
+ description: import("zod").ZodString;
691
+ format: import("zod").ZodOptional<import("zod").ZodEnum<["text", "date", "number", "options", "boolean"]>>;
692
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
693
+ }, "strip", import("zod").ZodTypeAny, {
694
+ description: string;
695
+ options?: string[] | undefined;
696
+ format?: "number" | "boolean" | "date" | "options" | "text" | undefined;
697
+ }, {
698
+ description: string;
699
+ options?: string[] | undefined;
700
+ format?: "number" | "boolean" | "date" | "options" | "text" | undefined;
701
+ }>, "many">>;
702
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
703
+ }, "strip", import("zod").ZodTypeAny, {
704
+ externalId?: string | undefined;
705
+ searches?: {
706
+ query: string;
707
+ count?: number | undefined;
708
+ entity?: {
709
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
710
+ } | undefined;
711
+ criteria?: {
712
+ description: string;
713
+ successRate?: string | undefined;
714
+ }[] | undefined;
715
+ }[] | undefined;
716
+ enrichments?: {
717
+ description: string;
718
+ options?: string[] | undefined;
719
+ format?: "number" | "boolean" | "date" | "options" | "text" | undefined;
720
+ }[] | undefined;
721
+ }, {
722
+ externalId?: string | undefined;
723
+ searches?: {
724
+ query: string;
725
+ count?: number | undefined;
726
+ entity?: {
727
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
728
+ } | undefined;
729
+ criteria?: {
730
+ description: string;
731
+ successRate?: string | undefined;
732
+ }[] | undefined;
733
+ }[] | undefined;
734
+ enrichments?: {
735
+ description: string;
736
+ options?: string[] | undefined;
737
+ format?: "number" | "boolean" | "date" | "options" | "text" | undefined;
738
+ }[] | undefined;
739
+ }>;
740
+ readonly output: import("zod").ZodObject<{
741
+ id: import("zod").ZodString;
742
+ object: import("zod").ZodLiteral<"webset">;
743
+ status: import("zod").ZodEnum<["idle", "running", "paused", "done"]>;
744
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
745
+ searches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
746
+ query: import("zod").ZodString;
747
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
748
+ entity: import("zod").ZodOptional<import("zod").ZodObject<{
749
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["company", "person", "article", "research paper", "repository", "event", "product", "video", "job", "podcast"]>>;
750
+ }, "strip", import("zod").ZodTypeAny, {
751
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
752
+ }, {
753
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
754
+ }>>;
755
+ criteria: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
756
+ description: import("zod").ZodString;
757
+ successRate: import("zod").ZodOptional<import("zod").ZodString>;
758
+ }, "strip", import("zod").ZodTypeAny, {
759
+ description: string;
760
+ successRate?: string | undefined;
761
+ }, {
762
+ description: string;
763
+ successRate?: string | undefined;
764
+ }>, "many">>;
765
+ }, "strip", import("zod").ZodTypeAny, {
766
+ query: string;
767
+ count?: number | undefined;
768
+ entity?: {
769
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
770
+ } | undefined;
771
+ criteria?: {
772
+ description: string;
773
+ successRate?: string | undefined;
774
+ }[] | undefined;
775
+ }, {
776
+ query: string;
777
+ count?: number | undefined;
778
+ entity?: {
779
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
780
+ } | undefined;
781
+ criteria?: {
782
+ description: string;
783
+ successRate?: string | undefined;
784
+ }[] | undefined;
785
+ }>, "many">>;
786
+ enrichments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
787
+ id: import("zod").ZodString;
788
+ description: import("zod").ZodString;
789
+ format: import("zod").ZodEnum<["text", "date", "number", "options", "boolean"]>;
790
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
791
+ createdAt: import("zod").ZodString;
792
+ updatedAt: import("zod").ZodString;
793
+ }, "strip", import("zod").ZodTypeAny, {
794
+ id: string;
795
+ description: string;
796
+ format: "number" | "boolean" | "date" | "options" | "text";
797
+ createdAt: string;
798
+ updatedAt: string;
799
+ options?: string[] | undefined;
800
+ }, {
801
+ id: string;
802
+ description: string;
803
+ format: "number" | "boolean" | "date" | "options" | "text";
804
+ createdAt: string;
805
+ updatedAt: string;
806
+ options?: string[] | undefined;
807
+ }>, "many">>;
808
+ imports: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
809
+ id: import("zod").ZodString;
810
+ object: import("zod").ZodLiteral<"import">;
811
+ websetId: import("zod").ZodString;
812
+ urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
813
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>>;
814
+ createdAt: import("zod").ZodString;
815
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
816
+ }, "strip", import("zod").ZodTypeAny, {
817
+ object: "import";
818
+ id: string;
819
+ createdAt: string;
820
+ websetId: string;
821
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
822
+ updatedAt?: string | undefined;
823
+ urls?: string[] | undefined;
824
+ }, {
825
+ object: "import";
826
+ id: string;
827
+ createdAt: string;
828
+ websetId: string;
829
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
830
+ updatedAt?: string | undefined;
831
+ urls?: string[] | undefined;
832
+ }>, "many">>;
833
+ monitors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
834
+ id: import("zod").ZodString;
835
+ object: import("zod").ZodLiteral<"monitor">;
836
+ websetId: import("zod").ZodString;
837
+ cadence: import("zod").ZodObject<{
838
+ type: import("zod").ZodEnum<["realtime", "hourly", "daily", "weekly"]>;
839
+ }, "strip", import("zod").ZodTypeAny, {
840
+ type: "realtime" | "hourly" | "daily" | "weekly";
841
+ }, {
842
+ type: "realtime" | "hourly" | "daily" | "weekly";
843
+ }>;
844
+ createdAt: import("zod").ZodString;
845
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
846
+ }, "strip", import("zod").ZodTypeAny, {
847
+ object: "monitor";
848
+ id: string;
849
+ createdAt: string;
850
+ websetId: string;
851
+ cadence: {
852
+ type: "realtime" | "hourly" | "daily" | "weekly";
853
+ };
854
+ updatedAt?: string | undefined;
855
+ }, {
856
+ object: "monitor";
857
+ id: string;
858
+ createdAt: string;
859
+ websetId: string;
860
+ cadence: {
861
+ type: "realtime" | "hourly" | "daily" | "weekly";
862
+ };
863
+ updatedAt?: string | undefined;
864
+ }>, "many">>;
865
+ createdAt: import("zod").ZodString;
866
+ updatedAt: import("zod").ZodString;
867
+ }, "strip", import("zod").ZodTypeAny, {
868
+ object: "webset";
869
+ id: string;
870
+ status: "idle" | "running" | "paused" | "done";
871
+ createdAt: string;
872
+ updatedAt: string;
873
+ externalId?: string | undefined;
874
+ searches?: {
875
+ query: string;
876
+ count?: number | undefined;
877
+ entity?: {
878
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
879
+ } | undefined;
880
+ criteria?: {
881
+ description: string;
882
+ successRate?: string | undefined;
883
+ }[] | undefined;
884
+ }[] | undefined;
885
+ enrichments?: {
886
+ id: string;
887
+ description: string;
888
+ format: "number" | "boolean" | "date" | "options" | "text";
889
+ createdAt: string;
890
+ updatedAt: string;
891
+ options?: string[] | undefined;
892
+ }[] | undefined;
893
+ imports?: {
894
+ object: "import";
895
+ id: string;
896
+ createdAt: string;
897
+ websetId: string;
898
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
899
+ updatedAt?: string | undefined;
900
+ urls?: string[] | undefined;
901
+ }[] | undefined;
902
+ monitors?: {
903
+ object: "monitor";
904
+ id: string;
905
+ createdAt: string;
906
+ websetId: string;
907
+ cadence: {
908
+ type: "realtime" | "hourly" | "daily" | "weekly";
909
+ };
910
+ updatedAt?: string | undefined;
911
+ }[] | undefined;
912
+ }, {
913
+ object: "webset";
914
+ id: string;
915
+ status: "idle" | "running" | "paused" | "done";
916
+ createdAt: string;
917
+ updatedAt: string;
918
+ externalId?: string | undefined;
919
+ searches?: {
920
+ query: string;
921
+ count?: number | undefined;
922
+ entity?: {
923
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
924
+ } | undefined;
925
+ criteria?: {
926
+ description: string;
927
+ successRate?: string | undefined;
928
+ }[] | undefined;
929
+ }[] | undefined;
930
+ enrichments?: {
931
+ id: string;
932
+ description: string;
933
+ format: "number" | "boolean" | "date" | "options" | "text";
934
+ createdAt: string;
935
+ updatedAt: string;
936
+ options?: string[] | undefined;
937
+ }[] | undefined;
938
+ imports?: {
939
+ object: "import";
940
+ id: string;
941
+ createdAt: string;
942
+ websetId: string;
943
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
944
+ updatedAt?: string | undefined;
945
+ urls?: string[] | undefined;
946
+ }[] | undefined;
947
+ monitors?: {
948
+ object: "monitor";
949
+ id: string;
950
+ createdAt: string;
951
+ websetId: string;
952
+ cadence: {
953
+ type: "realtime" | "hourly" | "daily" | "weekly";
954
+ };
955
+ updatedAt?: string | undefined;
956
+ }[] | undefined;
957
+ }>;
958
+ };
959
+ readonly 'websets.get': {
960
+ readonly input: import("zod").ZodObject<{
961
+ id: import("zod").ZodString;
962
+ }, "strip", import("zod").ZodTypeAny, {
963
+ id: string;
964
+ }, {
965
+ id: string;
966
+ }>;
967
+ readonly output: import("zod").ZodObject<{
968
+ id: import("zod").ZodString;
969
+ object: import("zod").ZodLiteral<"webset">;
970
+ status: import("zod").ZodEnum<["idle", "running", "paused", "done"]>;
971
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
972
+ searches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
973
+ query: import("zod").ZodString;
974
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
975
+ entity: import("zod").ZodOptional<import("zod").ZodObject<{
976
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["company", "person", "article", "research paper", "repository", "event", "product", "video", "job", "podcast"]>>;
977
+ }, "strip", import("zod").ZodTypeAny, {
978
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
979
+ }, {
980
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
981
+ }>>;
982
+ criteria: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
983
+ description: import("zod").ZodString;
984
+ successRate: import("zod").ZodOptional<import("zod").ZodString>;
985
+ }, "strip", import("zod").ZodTypeAny, {
986
+ description: string;
987
+ successRate?: string | undefined;
988
+ }, {
989
+ description: string;
990
+ successRate?: string | undefined;
991
+ }>, "many">>;
992
+ }, "strip", import("zod").ZodTypeAny, {
993
+ query: string;
994
+ count?: number | undefined;
995
+ entity?: {
996
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
997
+ } | undefined;
998
+ criteria?: {
999
+ description: string;
1000
+ successRate?: string | undefined;
1001
+ }[] | undefined;
1002
+ }, {
1003
+ query: string;
1004
+ count?: number | undefined;
1005
+ entity?: {
1006
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
1007
+ } | undefined;
1008
+ criteria?: {
1009
+ description: string;
1010
+ successRate?: string | undefined;
1011
+ }[] | undefined;
1012
+ }>, "many">>;
1013
+ enrichments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1014
+ id: import("zod").ZodString;
1015
+ description: import("zod").ZodString;
1016
+ format: import("zod").ZodEnum<["text", "date", "number", "options", "boolean"]>;
1017
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1018
+ createdAt: import("zod").ZodString;
1019
+ updatedAt: import("zod").ZodString;
1020
+ }, "strip", import("zod").ZodTypeAny, {
1021
+ id: string;
1022
+ description: string;
1023
+ format: "number" | "boolean" | "date" | "options" | "text";
1024
+ createdAt: string;
1025
+ updatedAt: string;
1026
+ options?: string[] | undefined;
1027
+ }, {
1028
+ id: string;
1029
+ description: string;
1030
+ format: "number" | "boolean" | "date" | "options" | "text";
1031
+ createdAt: string;
1032
+ updatedAt: string;
1033
+ options?: string[] | undefined;
1034
+ }>, "many">>;
1035
+ imports: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1036
+ id: import("zod").ZodString;
1037
+ object: import("zod").ZodLiteral<"import">;
1038
+ websetId: import("zod").ZodString;
1039
+ urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1040
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>>;
1041
+ createdAt: import("zod").ZodString;
1042
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1043
+ }, "strip", import("zod").ZodTypeAny, {
1044
+ object: "import";
1045
+ id: string;
1046
+ createdAt: string;
1047
+ websetId: string;
1048
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1049
+ updatedAt?: string | undefined;
1050
+ urls?: string[] | undefined;
1051
+ }, {
1052
+ object: "import";
1053
+ id: string;
1054
+ createdAt: string;
1055
+ websetId: string;
1056
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1057
+ updatedAt?: string | undefined;
1058
+ urls?: string[] | undefined;
1059
+ }>, "many">>;
1060
+ monitors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1061
+ id: import("zod").ZodString;
1062
+ object: import("zod").ZodLiteral<"monitor">;
1063
+ websetId: import("zod").ZodString;
1064
+ cadence: import("zod").ZodObject<{
1065
+ type: import("zod").ZodEnum<["realtime", "hourly", "daily", "weekly"]>;
1066
+ }, "strip", import("zod").ZodTypeAny, {
1067
+ type: "realtime" | "hourly" | "daily" | "weekly";
1068
+ }, {
1069
+ type: "realtime" | "hourly" | "daily" | "weekly";
1070
+ }>;
1071
+ createdAt: import("zod").ZodString;
1072
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1073
+ }, "strip", import("zod").ZodTypeAny, {
1074
+ object: "monitor";
1075
+ id: string;
1076
+ createdAt: string;
1077
+ websetId: string;
1078
+ cadence: {
1079
+ type: "realtime" | "hourly" | "daily" | "weekly";
1080
+ };
1081
+ updatedAt?: string | undefined;
1082
+ }, {
1083
+ object: "monitor";
1084
+ id: string;
1085
+ createdAt: string;
1086
+ websetId: string;
1087
+ cadence: {
1088
+ type: "realtime" | "hourly" | "daily" | "weekly";
1089
+ };
1090
+ updatedAt?: string | undefined;
1091
+ }>, "many">>;
1092
+ createdAt: import("zod").ZodString;
1093
+ updatedAt: import("zod").ZodString;
1094
+ }, "strip", import("zod").ZodTypeAny, {
1095
+ object: "webset";
1096
+ id: string;
1097
+ status: "idle" | "running" | "paused" | "done";
1098
+ createdAt: string;
1099
+ updatedAt: string;
1100
+ externalId?: string | undefined;
1101
+ searches?: {
1102
+ query: string;
1103
+ count?: number | undefined;
1104
+ entity?: {
1105
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
1106
+ } | undefined;
1107
+ criteria?: {
1108
+ description: string;
1109
+ successRate?: string | undefined;
1110
+ }[] | undefined;
1111
+ }[] | undefined;
1112
+ enrichments?: {
1113
+ id: string;
1114
+ description: string;
1115
+ format: "number" | "boolean" | "date" | "options" | "text";
1116
+ createdAt: string;
1117
+ updatedAt: string;
1118
+ options?: string[] | undefined;
1119
+ }[] | undefined;
1120
+ imports?: {
1121
+ object: "import";
1122
+ id: string;
1123
+ createdAt: string;
1124
+ websetId: string;
1125
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1126
+ updatedAt?: string | undefined;
1127
+ urls?: string[] | undefined;
1128
+ }[] | undefined;
1129
+ monitors?: {
1130
+ object: "monitor";
1131
+ id: string;
1132
+ createdAt: string;
1133
+ websetId: string;
1134
+ cadence: {
1135
+ type: "realtime" | "hourly" | "daily" | "weekly";
1136
+ };
1137
+ updatedAt?: string | undefined;
1138
+ }[] | undefined;
1139
+ }, {
1140
+ object: "webset";
1141
+ id: string;
1142
+ status: "idle" | "running" | "paused" | "done";
1143
+ createdAt: string;
1144
+ updatedAt: string;
1145
+ externalId?: string | undefined;
1146
+ searches?: {
1147
+ query: string;
1148
+ count?: number | undefined;
1149
+ entity?: {
1150
+ type?: "company" | "person" | "article" | "research paper" | "repository" | "event" | "product" | "video" | "job" | "podcast" | undefined;
1151
+ } | undefined;
1152
+ criteria?: {
1153
+ description: string;
1154
+ successRate?: string | undefined;
1155
+ }[] | undefined;
1156
+ }[] | undefined;
1157
+ enrichments?: {
1158
+ id: string;
1159
+ description: string;
1160
+ format: "number" | "boolean" | "date" | "options" | "text";
1161
+ createdAt: string;
1162
+ updatedAt: string;
1163
+ options?: string[] | undefined;
1164
+ }[] | undefined;
1165
+ imports?: {
1166
+ object: "import";
1167
+ id: string;
1168
+ createdAt: string;
1169
+ websetId: string;
1170
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1171
+ updatedAt?: string | undefined;
1172
+ urls?: string[] | undefined;
1173
+ }[] | undefined;
1174
+ monitors?: {
1175
+ object: "monitor";
1176
+ id: string;
1177
+ createdAt: string;
1178
+ websetId: string;
1179
+ cadence: {
1180
+ type: "realtime" | "hourly" | "daily" | "weekly";
1181
+ };
1182
+ updatedAt?: string | undefined;
1183
+ }[] | undefined;
1184
+ }>;
1185
+ };
1186
+ readonly 'websets.delete': {
1187
+ readonly input: import("zod").ZodObject<{
1188
+ id: import("zod").ZodString;
1189
+ }, "strip", import("zod").ZodTypeAny, {
1190
+ id: string;
1191
+ }, {
1192
+ id: string;
1193
+ }>;
1194
+ readonly output: import("zod").ZodObject<{
1195
+ id: import("zod").ZodString;
1196
+ object: import("zod").ZodLiteral<"webset">;
1197
+ deleted: import("zod").ZodBoolean;
1198
+ }, "strip", import("zod").ZodTypeAny, {
1199
+ object: "webset";
1200
+ id: string;
1201
+ deleted: boolean;
1202
+ }, {
1203
+ object: "webset";
1204
+ id: string;
1205
+ deleted: boolean;
1206
+ }>;
1207
+ };
1208
+ readonly 'imports.create': {
1209
+ readonly input: import("zod").ZodObject<{
1210
+ websetId: import("zod").ZodString;
1211
+ urls: import("zod").ZodArray<import("zod").ZodString, "many">;
1212
+ }, "strip", import("zod").ZodTypeAny, {
1213
+ websetId: string;
1214
+ urls: string[];
1215
+ }, {
1216
+ websetId: string;
1217
+ urls: string[];
1218
+ }>;
1219
+ readonly output: import("zod").ZodObject<{
1220
+ id: import("zod").ZodString;
1221
+ object: import("zod").ZodLiteral<"import">;
1222
+ websetId: import("zod").ZodString;
1223
+ urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1224
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>>;
1225
+ createdAt: import("zod").ZodString;
1226
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1227
+ }, "strip", import("zod").ZodTypeAny, {
1228
+ object: "import";
1229
+ id: string;
1230
+ createdAt: string;
1231
+ websetId: string;
1232
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1233
+ updatedAt?: string | undefined;
1234
+ urls?: string[] | undefined;
1235
+ }, {
1236
+ object: "import";
1237
+ id: string;
1238
+ createdAt: string;
1239
+ websetId: string;
1240
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1241
+ updatedAt?: string | undefined;
1242
+ urls?: string[] | undefined;
1243
+ }>;
1244
+ };
1245
+ readonly 'imports.list': {
1246
+ readonly input: import("zod").ZodObject<{
1247
+ websetId: import("zod").ZodString;
1248
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1249
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
1250
+ }, "strip", import("zod").ZodTypeAny, {
1251
+ websetId: string;
1252
+ limit?: number | undefined;
1253
+ cursor?: string | undefined;
1254
+ }, {
1255
+ websetId: string;
1256
+ limit?: number | undefined;
1257
+ cursor?: string | undefined;
1258
+ }>;
1259
+ readonly output: import("zod").ZodObject<{
1260
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1261
+ id: import("zod").ZodString;
1262
+ object: import("zod").ZodLiteral<"import">;
1263
+ websetId: import("zod").ZodString;
1264
+ urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1265
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>>;
1266
+ createdAt: import("zod").ZodString;
1267
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1268
+ }, "strip", import("zod").ZodTypeAny, {
1269
+ object: "import";
1270
+ id: string;
1271
+ createdAt: string;
1272
+ websetId: string;
1273
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1274
+ updatedAt?: string | undefined;
1275
+ urls?: string[] | undefined;
1276
+ }, {
1277
+ object: "import";
1278
+ id: string;
1279
+ createdAt: string;
1280
+ websetId: string;
1281
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1282
+ updatedAt?: string | undefined;
1283
+ urls?: string[] | undefined;
1284
+ }>, "many">;
1285
+ hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
1286
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
1287
+ }, "strip", import("zod").ZodTypeAny, {
1288
+ data: {
1289
+ object: "import";
1290
+ id: string;
1291
+ createdAt: string;
1292
+ websetId: string;
1293
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1294
+ updatedAt?: string | undefined;
1295
+ urls?: string[] | undefined;
1296
+ }[];
1297
+ hasMore?: boolean | undefined;
1298
+ nextCursor?: string | undefined;
1299
+ }, {
1300
+ data: {
1301
+ object: "import";
1302
+ id: string;
1303
+ createdAt: string;
1304
+ websetId: string;
1305
+ status?: "pending" | "processing" | "completed" | "failed" | undefined;
1306
+ updatedAt?: string | undefined;
1307
+ urls?: string[] | undefined;
1308
+ }[];
1309
+ hasMore?: boolean | undefined;
1310
+ nextCursor?: string | undefined;
1311
+ }>;
1312
+ };
1313
+ readonly 'imports.delete': {
1314
+ readonly input: import("zod").ZodObject<{
1315
+ websetId: import("zod").ZodString;
1316
+ importId: import("zod").ZodString;
1317
+ }, "strip", import("zod").ZodTypeAny, {
1318
+ websetId: string;
1319
+ importId: string;
1320
+ }, {
1321
+ websetId: string;
1322
+ importId: string;
1323
+ }>;
1324
+ readonly output: import("zod").ZodObject<{
1325
+ id: import("zod").ZodString;
1326
+ deleted: import("zod").ZodBoolean;
1327
+ }, "strip", import("zod").ZodTypeAny, {
1328
+ id: string;
1329
+ deleted: boolean;
1330
+ }, {
1331
+ id: string;
1332
+ deleted: boolean;
1333
+ }>;
1334
+ };
1335
+ readonly 'monitors.create': {
1336
+ readonly input: import("zod").ZodObject<{
1337
+ websetId: import("zod").ZodString;
1338
+ cadence: import("zod").ZodObject<{
1339
+ type: import("zod").ZodEnum<["realtime", "hourly", "daily", "weekly"]>;
1340
+ }, "strip", import("zod").ZodTypeAny, {
1341
+ type: "realtime" | "hourly" | "daily" | "weekly";
1342
+ }, {
1343
+ type: "realtime" | "hourly" | "daily" | "weekly";
1344
+ }>;
1345
+ }, "strip", import("zod").ZodTypeAny, {
1346
+ websetId: string;
1347
+ cadence: {
1348
+ type: "realtime" | "hourly" | "daily" | "weekly";
1349
+ };
1350
+ }, {
1351
+ websetId: string;
1352
+ cadence: {
1353
+ type: "realtime" | "hourly" | "daily" | "weekly";
1354
+ };
1355
+ }>;
1356
+ readonly output: import("zod").ZodObject<{
1357
+ id: import("zod").ZodString;
1358
+ object: import("zod").ZodLiteral<"monitor">;
1359
+ websetId: import("zod").ZodString;
1360
+ cadence: import("zod").ZodObject<{
1361
+ type: import("zod").ZodEnum<["realtime", "hourly", "daily", "weekly"]>;
1362
+ }, "strip", import("zod").ZodTypeAny, {
1363
+ type: "realtime" | "hourly" | "daily" | "weekly";
1364
+ }, {
1365
+ type: "realtime" | "hourly" | "daily" | "weekly";
1366
+ }>;
1367
+ createdAt: import("zod").ZodString;
1368
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1369
+ }, "strip", import("zod").ZodTypeAny, {
1370
+ object: "monitor";
1371
+ id: string;
1372
+ createdAt: string;
1373
+ websetId: string;
1374
+ cadence: {
1375
+ type: "realtime" | "hourly" | "daily" | "weekly";
1376
+ };
1377
+ updatedAt?: string | undefined;
1378
+ }, {
1379
+ object: "monitor";
1380
+ id: string;
1381
+ createdAt: string;
1382
+ websetId: string;
1383
+ cadence: {
1384
+ type: "realtime" | "hourly" | "daily" | "weekly";
1385
+ };
1386
+ updatedAt?: string | undefined;
1387
+ }>;
1388
+ };
1389
+ readonly 'events.list': {
1390
+ readonly input: import("zod").ZodObject<{
1391
+ websetId: import("zod").ZodString;
1392
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1393
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
1394
+ }, "strip", import("zod").ZodTypeAny, {
1395
+ websetId: string;
1396
+ limit?: number | undefined;
1397
+ cursor?: string | undefined;
1398
+ }, {
1399
+ websetId: string;
1400
+ limit?: number | undefined;
1401
+ cursor?: string | undefined;
1402
+ }>;
1403
+ readonly output: import("zod").ZodObject<{
1404
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1405
+ id: import("zod").ZodString;
1406
+ object: import("zod").ZodLiteral<"event">;
1407
+ type: import("zod").ZodString;
1408
+ createdAt: import("zod").ZodString;
1409
+ data: import("zod").ZodOptional<import("zod").ZodUnknown>;
1410
+ }, "strip", import("zod").ZodTypeAny, {
1411
+ object: "event";
1412
+ id: string;
1413
+ type: string;
1414
+ createdAt: string;
1415
+ data?: unknown;
1416
+ }, {
1417
+ object: "event";
1418
+ id: string;
1419
+ type: string;
1420
+ createdAt: string;
1421
+ data?: unknown;
1422
+ }>, "many">;
1423
+ hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
1424
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
1425
+ }, "strip", import("zod").ZodTypeAny, {
1426
+ data: {
1427
+ object: "event";
1428
+ id: string;
1429
+ type: string;
1430
+ createdAt: string;
1431
+ data?: unknown;
1432
+ }[];
1433
+ hasMore?: boolean | undefined;
1434
+ nextCursor?: string | undefined;
1435
+ }, {
1436
+ data: {
1437
+ object: "event";
1438
+ id: string;
1439
+ type: string;
1440
+ createdAt: string;
1441
+ data?: unknown;
1442
+ }[];
1443
+ hasMore?: boolean | undefined;
1444
+ nextCursor?: string | undefined;
1445
+ }>;
1446
+ };
1447
+ readonly 'events.get': {
1448
+ readonly input: import("zod").ZodObject<{
1449
+ websetId: import("zod").ZodString;
1450
+ eventId: import("zod").ZodString;
1451
+ }, "strip", import("zod").ZodTypeAny, {
1452
+ websetId: string;
1453
+ eventId: string;
1454
+ }, {
1455
+ websetId: string;
1456
+ eventId: string;
1457
+ }>;
1458
+ readonly output: import("zod").ZodObject<{
1459
+ id: import("zod").ZodString;
1460
+ object: import("zod").ZodLiteral<"event">;
1461
+ type: import("zod").ZodString;
1462
+ createdAt: import("zod").ZodString;
1463
+ data: import("zod").ZodOptional<import("zod").ZodUnknown>;
1464
+ }, "strip", import("zod").ZodTypeAny, {
1465
+ object: "event";
1466
+ id: string;
1467
+ type: string;
1468
+ createdAt: string;
1469
+ data?: unknown;
1470
+ }, {
1471
+ object: "event";
1472
+ id: string;
1473
+ type: string;
1474
+ createdAt: string;
1475
+ data?: unknown;
1476
+ }>;
1477
+ };
1478
+ readonly 'webhooksApi.list': {
1479
+ readonly input: import("zod").ZodObject<{
1480
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1481
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
1482
+ }, "strip", import("zod").ZodTypeAny, {
1483
+ limit?: number | undefined;
1484
+ cursor?: string | undefined;
1485
+ }, {
1486
+ limit?: number | undefined;
1487
+ cursor?: string | undefined;
1488
+ }>;
1489
+ readonly output: import("zod").ZodObject<{
1490
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1491
+ id: import("zod").ZodString;
1492
+ object: import("zod").ZodLiteral<"webhook">;
1493
+ url: import("zod").ZodString;
1494
+ events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1495
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["active", "inactive"]>>;
1496
+ createdAt: import("zod").ZodString;
1497
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1498
+ }, "strip", import("zod").ZodTypeAny, {
1499
+ object: "webhook";
1500
+ id: string;
1501
+ url: string;
1502
+ createdAt: string;
1503
+ status?: "active" | "inactive" | undefined;
1504
+ updatedAt?: string | undefined;
1505
+ events?: string[] | undefined;
1506
+ }, {
1507
+ object: "webhook";
1508
+ id: string;
1509
+ url: string;
1510
+ createdAt: string;
1511
+ status?: "active" | "inactive" | undefined;
1512
+ updatedAt?: string | undefined;
1513
+ events?: string[] | undefined;
1514
+ }>, "many">;
1515
+ hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
1516
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
1517
+ }, "strip", import("zod").ZodTypeAny, {
1518
+ data: {
1519
+ object: "webhook";
1520
+ id: string;
1521
+ url: string;
1522
+ createdAt: string;
1523
+ status?: "active" | "inactive" | undefined;
1524
+ updatedAt?: string | undefined;
1525
+ events?: string[] | undefined;
1526
+ }[];
1527
+ hasMore?: boolean | undefined;
1528
+ nextCursor?: string | undefined;
1529
+ }, {
1530
+ data: {
1531
+ object: "webhook";
1532
+ id: string;
1533
+ url: string;
1534
+ createdAt: string;
1535
+ status?: "active" | "inactive" | undefined;
1536
+ updatedAt?: string | undefined;
1537
+ events?: string[] | undefined;
1538
+ }[];
1539
+ hasMore?: boolean | undefined;
1540
+ nextCursor?: string | undefined;
1541
+ }>;
1542
+ };
1543
+ };
1544
+ export type ExaWebhooks = {
1545
+ searchAlert: ExaWebhook<'searchAlert', SearchAlertEvent>;
1546
+ contentIndexed: ExaWebhook<'contentIndexed', ContentIndexedEvent>;
1547
+ websetItemsFound: ExaWebhook<'websetItemsFound', WebsetItemsFoundEvent>;
1548
+ websetSearchCompleted: ExaWebhook<'websetSearchCompleted', WebsetSearchCompletedEvent>;
1549
+ };
1550
+ declare const exaWebhooksNested: {
1551
+ readonly search: {
1552
+ readonly searchAlert: ExaWebhook<"searchAlert", {
1553
+ id: string;
1554
+ created_at: string;
1555
+ type: "search.alert";
1556
+ data: {
1557
+ query: string;
1558
+ results: {
1559
+ id: string;
1560
+ url: string;
1561
+ text?: string | undefined;
1562
+ highlights?: string[] | undefined;
1563
+ summary?: string | undefined;
1564
+ title?: string | null | undefined;
1565
+ publishedDate?: string | null | undefined;
1566
+ author?: string | null | undefined;
1567
+ score?: number | undefined;
1568
+ }[];
1569
+ };
1570
+ }>;
1571
+ };
1572
+ readonly content: {
1573
+ readonly contentIndexed: ExaWebhook<"contentIndexed", {
1574
+ id: string;
1575
+ created_at: string;
1576
+ type: "content.indexed";
1577
+ data: {
1578
+ url: string;
1579
+ title?: string | null | undefined;
1580
+ publishedDate?: string | null | undefined;
1581
+ author?: string | null | undefined;
1582
+ };
1583
+ }>;
1584
+ };
1585
+ readonly webset: {
1586
+ readonly websetItemsFound: ExaWebhook<"websetItemsFound", {
1587
+ id: string;
1588
+ created_at: string;
1589
+ type: "webset.items_found";
1590
+ data: {
1591
+ webset: {
1592
+ object: "webset";
1593
+ id: string;
1594
+ status: "idle" | "running" | "paused" | "done";
1595
+ createdAt: string;
1596
+ updatedAt: string;
1597
+ externalId?: string | undefined;
1598
+ };
1599
+ items: {
1600
+ id: string;
1601
+ url: string;
1602
+ text?: string | undefined;
1603
+ highlights?: string[] | undefined;
1604
+ summary?: string | undefined;
1605
+ title?: string | null | undefined;
1606
+ publishedDate?: string | null | undefined;
1607
+ author?: string | null | undefined;
1608
+ score?: number | undefined;
1609
+ }[];
1610
+ itemCount?: number | undefined;
1611
+ };
1612
+ }>;
1613
+ readonly websetSearchCompleted: ExaWebhook<"websetSearchCompleted", {
1614
+ id: string;
1615
+ created_at: string;
1616
+ type: "webset.search.completed";
1617
+ data: {
1618
+ webset: {
1619
+ object: "webset";
1620
+ id: string;
1621
+ status: "idle" | "running" | "paused" | "done";
1622
+ createdAt: string;
1623
+ updatedAt: string;
1624
+ externalId?: string | undefined;
1625
+ };
1626
+ totalItems?: number | undefined;
1627
+ };
1628
+ }>;
1629
+ };
1630
+ };
1631
+ declare const defaultAuthType: "api_key";
1632
+ export declare const exaAuthConfig: {
1633
+ readonly api_key: {
1634
+ readonly account: readonly ["one"];
1635
+ };
1636
+ };
1637
+ export type ExaBoundEndpoints = BindEndpoints<typeof exaEndpointsNested>;
1638
+ type ExaEndpoint<K extends keyof ExaEndpointOutputs> = CorsairEndpoint<ExaContext, ExaEndpointInputs[K], ExaEndpointOutputs[K]>;
1639
+ type ExaWebhook<K extends keyof ExaWebhookOutputs, TEvent> = CorsairWebhook<ExaContext, TEvent, ExaWebhookOutputs[K]>;
1640
+ export type ExaBoundWebhooks = BindWebhooks<ExaWebhooks>;
1641
+ export type ExaPluginOptions = {
1642
+ authType?: PickAuth<'api_key'>;
1643
+ key?: string;
1644
+ webhookSecret?: string;
1645
+ hooks?: InternalExaPlugin['hooks'];
1646
+ webhookHooks?: InternalExaPlugin['webhookHooks'];
1647
+ errorHandlers?: CorsairErrorHandler;
1648
+ permissions?: PluginPermissionsConfig<typeof exaEndpointsNested>;
1649
+ };
1650
+ export type ExaContext = CorsairPluginContext<typeof ExaSchema, ExaPluginOptions>;
1651
+ export type ExaKeyBuilderContext = KeyBuilderContext<ExaPluginOptions>;
1652
+ export type BaseExaPlugin<T extends ExaPluginOptions> = CorsairPlugin<'exa', typeof ExaSchema, typeof exaEndpointsNested, typeof exaWebhooksNested, T, typeof defaultAuthType>;
1653
+ export type InternalExaPlugin = BaseExaPlugin<ExaPluginOptions>;
1654
+ export type ExternalExaPlugin<T extends ExaPluginOptions> = BaseExaPlugin<T>;
1655
+ export declare function exa<const T extends ExaPluginOptions>(incomingOptions?: ExaPluginOptions & T): ExternalExaPlugin<T>;
1656
+ export type { ContentIndexedEvent, ExaWebhookOutputs, SearchAlertEvent, WebsetItemsFoundEvent, WebsetSearchCompletedEvent, } from './webhooks/types';
1657
+ export { createExaEventMatch } from './webhooks/types';
1658
+ export type { EventsGetInput, EventsListInput, EventsListResponse, ExaEndpointInputs, ExaEndpointOutputs, FindSimilarInput, FindSimilarResponse, GetAnswerInput, GetAnswerResponse, GetContentsInput, GetContentsResponse, ImportsCreateInput, ImportsDeleteInput, ImportsDeleteResponse, ImportsListInput, ImportsListResponse, MonitorsCreateInput, SearchInput, SearchResponse, SearchResult, Webset, WebhookApi, WebhooksApiListInput, WebhooksApiListResponse, WebsetEvent, WebsetImport, WebsetMonitor, WebsetsCreateInput, WebsetsDeleteInput, WebsetsDeleteResponse, WebsetsGetInput, } from './endpoints/types';
1659
+ //# sourceMappingURL=index.d.ts.map