parallel-web 0.2.3 → 0.2.4

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 (39) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +1 -1
  3. package/resources/beta/beta.d.mts +4 -0
  4. package/resources/beta/beta.d.mts.map +1 -1
  5. package/resources/beta/beta.d.ts +4 -0
  6. package/resources/beta/beta.d.ts.map +1 -1
  7. package/resources/beta/beta.js +4 -0
  8. package/resources/beta/beta.js.map +1 -1
  9. package/resources/beta/beta.mjs +4 -0
  10. package/resources/beta/beta.mjs.map +1 -1
  11. package/resources/beta/findall.d.mts +979 -0
  12. package/resources/beta/findall.d.mts.map +1 -0
  13. package/resources/beta/findall.d.ts +979 -0
  14. package/resources/beta/findall.d.ts.map +1 -0
  15. package/resources/beta/findall.js +155 -0
  16. package/resources/beta/findall.js.map +1 -0
  17. package/resources/beta/findall.mjs +151 -0
  18. package/resources/beta/findall.mjs.map +1 -0
  19. package/resources/beta/index.d.mts +1 -0
  20. package/resources/beta/index.d.mts.map +1 -1
  21. package/resources/beta/index.d.ts +1 -0
  22. package/resources/beta/index.d.ts.map +1 -1
  23. package/resources/beta/index.js +3 -1
  24. package/resources/beta/index.js.map +1 -1
  25. package/resources/beta/index.mjs +1 -0
  26. package/resources/beta/index.mjs.map +1 -1
  27. package/resources/beta/task-run.d.mts +1 -1
  28. package/resources/beta/task-run.d.mts.map +1 -1
  29. package/resources/beta/task-run.d.ts +1 -1
  30. package/resources/beta/task-run.d.ts.map +1 -1
  31. package/src/resources/beta/beta.ts +54 -0
  32. package/src/resources/beta/findall.ts +1295 -0
  33. package/src/resources/beta/index.ts +25 -0
  34. package/src/resources/beta/task-run.ts +2 -0
  35. package/src/version.ts +1 -1
  36. package/version.d.mts +1 -1
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
  39. package/version.mjs +1 -1
@@ -0,0 +1,979 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as TaskRunAPI from "../task-run.mjs";
3
+ import * as BetaTaskRunAPI from "./task-run.mjs";
4
+ import { APIPromise } from "../../core/api-promise.mjs";
5
+ import { Stream } from "../../core/streaming.mjs";
6
+ import { RequestOptions } from "../../internal/request-options.mjs";
7
+ export declare class Findall extends APIResource {
8
+ /**
9
+ * Starts a FindAll run.
10
+ *
11
+ * This endpoint immediately returns a FindAll run object with status set to
12
+ * 'queued'. You can get the run result snapshot using the GET
13
+ * /v1beta/findall/runs/{findall_id}/result endpoint. You can track the progress of
14
+ * the run by:
15
+ *
16
+ * - Polling the status using the GET /v1beta/findall/runs/{findall_id} endpoint,
17
+ * - Subscribing to real-time updates via the
18
+ * /v1beta/findall/runs/{findall_id}/events endpoint,
19
+ * - Or specifying a webhook with relevant event types during run creation to
20
+ * receive notifications.
21
+ */
22
+ create(params: FindallCreateParams, options?: RequestOptions): APIPromise<FindallRun>;
23
+ /**
24
+ * Retrieve a FindAll run.
25
+ */
26
+ retrieve(findallID: string, params?: FindallRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<FindallRetrieveResponse>;
27
+ /**
28
+ * Cancel a FindAll run.
29
+ */
30
+ cancel(findallID: string, params?: FindallCancelParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
31
+ /**
32
+ * Add an enrichment to a FindAll run.
33
+ */
34
+ enrich(findallID: string, params: FindallEnrichParams, options?: RequestOptions): APIPromise<FindallSchema>;
35
+ /**
36
+ * Stream events from a FindAll run.
37
+ *
38
+ * Args: request: The Shapi request findall_id: The FindAll run ID last_event_id:
39
+ * Optional event ID to resume from. timeout: Optional timeout in seconds. If None,
40
+ * keep connection alive as long as the run is going. If set, stop after specified
41
+ * duration.
42
+ */
43
+ events(findallID: string, params?: FindallEventsParams | undefined, options?: RequestOptions): APIPromise<Stream<FindallEventsResponse>>;
44
+ /**
45
+ * Extend a FindAll run by adding additional matches to the current match limit.
46
+ */
47
+ extend(findallID: string, params: FindallExtendParams, options?: RequestOptions): APIPromise<FindallSchema>;
48
+ /**
49
+ * Transforms a natural language search objective into a structured FindAll spec.
50
+ *
51
+ * Note: Access to this endpoint requires the parallel-beta header.
52
+ *
53
+ * The generated specification serves as a suggested starting point and can be
54
+ * further customized by the user.
55
+ */
56
+ ingest(params: FindallIngestParams, options?: RequestOptions): APIPromise<FindallSchema>;
57
+ /**
58
+ * Retrieve the FindAll run result at the time of the request.
59
+ */
60
+ result(findallID: string, params?: FindallResultParams | null | undefined, options?: RequestOptions): APIPromise<FindallRunResult>;
61
+ /**
62
+ * Get FindAll Run Schema
63
+ */
64
+ schema(findallID: string, params?: FindallSchemaParams | null | undefined, options?: RequestOptions): APIPromise<FindallSchema>;
65
+ }
66
+ /**
67
+ * Event containing a candidate whose match status has changed.
68
+ */
69
+ export interface FindallCandidateMatchStatusEvent {
70
+ /**
71
+ * Candidate for a find all run that may end up as a match.
72
+ *
73
+ * Contains all the candidate's metadata and the output of the match conditions. A
74
+ * candidate is a match if all match conditions are satisfied.
75
+ */
76
+ data: FindallCandidateMatchStatusEvent.Data;
77
+ /**
78
+ * Unique event identifier for the event.
79
+ */
80
+ event_id: string;
81
+ /**
82
+ * Timestamp of the event.
83
+ */
84
+ timestamp: string;
85
+ /**
86
+ * Event type; one of findall.candidate.generated, findall.candidate.matched,
87
+ * findall.candidate.unmatched, findall.candidate.discarded,
88
+ * findall.candidate.enriched.
89
+ */
90
+ type: 'findall.candidate.generated' | 'findall.candidate.matched' | 'findall.candidate.unmatched' | 'findall.candidate.discarded' | 'findall.candidate.enriched';
91
+ }
92
+ export declare namespace FindallCandidateMatchStatusEvent {
93
+ /**
94
+ * Candidate for a find all run that may end up as a match.
95
+ *
96
+ * Contains all the candidate's metadata and the output of the match conditions. A
97
+ * candidate is a match if all match conditions are satisfied.
98
+ */
99
+ interface Data {
100
+ /**
101
+ * ID of the candidate.
102
+ */
103
+ candidate_id: string;
104
+ /**
105
+ * Status of the candidate. One of generated, matched, unmatched, discarded.
106
+ */
107
+ match_status: 'generated' | 'matched' | 'unmatched' | 'discarded';
108
+ /**
109
+ * Name of the candidate.
110
+ */
111
+ name: string;
112
+ /**
113
+ * URL that provides context or details of the entity for disambiguation.
114
+ */
115
+ url: string;
116
+ /**
117
+ * List of FieldBasis objects supporting the output.
118
+ */
119
+ basis?: Array<TaskRunAPI.FieldBasis> | null;
120
+ /**
121
+ * Brief description of the entity that can help answer whether entity satisfies
122
+ * the query.
123
+ */
124
+ description?: string | null;
125
+ /**
126
+ * Results of the match condition evaluations for this candidate. This object
127
+ * contains the structured output that determines whether the candidate matches the
128
+ * overall FindAll objective.
129
+ */
130
+ output?: {
131
+ [key: string]: unknown;
132
+ } | null;
133
+ }
134
+ }
135
+ /**
136
+ * Input model for FindAll enrich.
137
+ */
138
+ export interface FindallEnrichInput {
139
+ /**
140
+ * JSON schema for a task input or output.
141
+ */
142
+ output_schema: TaskRunAPI.JsonSchema;
143
+ /**
144
+ * List of MCP servers to use for the task.
145
+ */
146
+ mcp_servers?: Array<BetaTaskRunAPI.McpServer> | null;
147
+ /**
148
+ * Processor to use for the task.
149
+ */
150
+ processor?: string;
151
+ }
152
+ /**
153
+ * Input model for FindAll extend.
154
+ */
155
+ export interface FindallExtendInput {
156
+ /**
157
+ * Additional number of matches to find for this FindAll run. This value will be
158
+ * added to the current match limit to determine the new total match limit. Must be
159
+ * greater than 0.
160
+ */
161
+ additional_match_limit: number;
162
+ }
163
+ /**
164
+ * FindAll run object with status and metadata.
165
+ */
166
+ export interface FindallRun {
167
+ /**
168
+ * ID of the FindAll run.
169
+ */
170
+ findall_id: string;
171
+ /**
172
+ * Generator for the FindAll run.
173
+ */
174
+ generator: 'base' | 'core' | 'pro' | 'preview';
175
+ /**
176
+ * Status object for FindAll run.
177
+ */
178
+ status: FindallRun.Status;
179
+ /**
180
+ * Timestamp of the creation of the run, in RFC 3339 format.
181
+ */
182
+ created_at?: string | null;
183
+ /**
184
+ * Metadata for the FindAll run.
185
+ */
186
+ metadata?: {
187
+ [key: string]: string | number | boolean;
188
+ } | null;
189
+ /**
190
+ * Timestamp of the latest modification to the FindAll run result, in RFC 3339
191
+ * format.
192
+ */
193
+ modified_at?: string | null;
194
+ }
195
+ export declare namespace FindallRun {
196
+ /**
197
+ * Status object for FindAll run.
198
+ */
199
+ interface Status {
200
+ /**
201
+ * Whether the FindAll run is active
202
+ */
203
+ is_active: boolean;
204
+ /**
205
+ * Metrics object for FindAll run.
206
+ */
207
+ metrics: Status.Metrics;
208
+ /**
209
+ * Status of the FindAll run.
210
+ */
211
+ status: 'queued' | 'action_required' | 'running' | 'completed' | 'failed' | 'cancelling' | 'cancelled';
212
+ /**
213
+ * Reason for termination when FindAll run is in terminal status.
214
+ */
215
+ termination_reason?: string | null;
216
+ }
217
+ namespace Status {
218
+ /**
219
+ * Metrics object for FindAll run.
220
+ */
221
+ interface Metrics {
222
+ /**
223
+ * Number of candidates that were selected.
224
+ */
225
+ generated_candidates_count?: number;
226
+ /**
227
+ * Number of candidates that evaluated to matched.
228
+ */
229
+ matched_candidates_count?: number;
230
+ }
231
+ }
232
+ }
233
+ /**
234
+ * Input model for FindAll run.
235
+ */
236
+ export interface FindallRunInput {
237
+ /**
238
+ * Type of the entity for the FindAll run.
239
+ */
240
+ entity_type: string;
241
+ /**
242
+ * Generator for the FindAll run.
243
+ */
244
+ generator: 'base' | 'core' | 'pro' | 'preview';
245
+ /**
246
+ * List of match conditions for the FindAll run.
247
+ */
248
+ match_conditions: Array<FindallRunInput.MatchCondition>;
249
+ /**
250
+ * Maximum number of matches to find for this FindAll run.
251
+ */
252
+ match_limit: number;
253
+ /**
254
+ * Natural language objective of the FindAll run.
255
+ */
256
+ objective: string;
257
+ /**
258
+ * List of entity names/IDs to exclude from results.
259
+ */
260
+ exclude_list?: Array<FindallRunInput.ExcludeList> | null;
261
+ /**
262
+ * Metadata for the FindAll run.
263
+ */
264
+ metadata?: {
265
+ [key: string]: string | number | boolean;
266
+ } | null;
267
+ /**
268
+ * Webhooks for Task Runs.
269
+ */
270
+ webhook?: BetaTaskRunAPI.Webhook | null;
271
+ }
272
+ export declare namespace FindallRunInput {
273
+ /**
274
+ * Match condition model for FindAll ingest.
275
+ */
276
+ interface MatchCondition {
277
+ /**
278
+ * Detailed description of the match condition. Include as much specific
279
+ * information as possible to help improve the quality and accuracy of Find All run
280
+ * results.
281
+ */
282
+ description: string;
283
+ /**
284
+ * Name of the match condition.
285
+ */
286
+ name: string;
287
+ }
288
+ /**
289
+ * Exclude candidate input model for FindAll run.
290
+ */
291
+ interface ExcludeList {
292
+ /**
293
+ * Name of the entity to exclude from results.
294
+ */
295
+ name: string;
296
+ /**
297
+ * URL of the entity to exclude from results.
298
+ */
299
+ url: string;
300
+ }
301
+ }
302
+ /**
303
+ * Complete FindAll search results.
304
+ *
305
+ * Represents a snapshot of a FindAll run, including run metadata and a list of
306
+ * candidate entities with their match status and details at the time the snapshot
307
+ * was taken.
308
+ */
309
+ export interface FindallRunResult {
310
+ /**
311
+ * All evaluated candidates at the time of the snapshot.
312
+ */
313
+ candidates: Array<FindallRunResult.Candidate>;
314
+ /**
315
+ * FindAll run object with status and metadata.
316
+ */
317
+ run: FindallRun;
318
+ /**
319
+ * ID of the last event of the run at the time of the request. This can be used to
320
+ * resume streaming from the last event.
321
+ */
322
+ last_event_id?: string | null;
323
+ }
324
+ export declare namespace FindallRunResult {
325
+ /**
326
+ * Candidate for a find all run that may end up as a match.
327
+ *
328
+ * Contains all the candidate's metadata and the output of the match conditions. A
329
+ * candidate is a match if all match conditions are satisfied.
330
+ */
331
+ interface Candidate {
332
+ /**
333
+ * ID of the candidate.
334
+ */
335
+ candidate_id: string;
336
+ /**
337
+ * Status of the candidate. One of generated, matched, unmatched, discarded.
338
+ */
339
+ match_status: 'generated' | 'matched' | 'unmatched' | 'discarded';
340
+ /**
341
+ * Name of the candidate.
342
+ */
343
+ name: string;
344
+ /**
345
+ * URL that provides context or details of the entity for disambiguation.
346
+ */
347
+ url: string;
348
+ /**
349
+ * List of FieldBasis objects supporting the output.
350
+ */
351
+ basis?: Array<TaskRunAPI.FieldBasis> | null;
352
+ /**
353
+ * Brief description of the entity that can help answer whether entity satisfies
354
+ * the query.
355
+ */
356
+ description?: string | null;
357
+ /**
358
+ * Results of the match condition evaluations for this candidate. This object
359
+ * contains the structured output that determines whether the candidate matches the
360
+ * overall FindAll objective.
361
+ */
362
+ output?: {
363
+ [key: string]: unknown;
364
+ } | null;
365
+ }
366
+ }
367
+ /**
368
+ * Event containing status update for FindAll run.
369
+ */
370
+ export interface FindallRunStatusEvent {
371
+ /**
372
+ * FindAll run object with status and metadata.
373
+ */
374
+ data: FindallRun;
375
+ /**
376
+ * Unique event identifier for the event.
377
+ */
378
+ event_id: string;
379
+ /**
380
+ * Timestamp of the event.
381
+ */
382
+ timestamp: string;
383
+ /**
384
+ * Event type; always 'findall.status'.
385
+ */
386
+ type: 'findall.status';
387
+ }
388
+ /**
389
+ * Response model for FindAll ingest.
390
+ */
391
+ export interface FindallSchema {
392
+ /**
393
+ * Type of the entity for the FindAll run.
394
+ */
395
+ entity_type: string;
396
+ /**
397
+ * List of match conditions for the FindAll run.
398
+ */
399
+ match_conditions: Array<FindallSchema.MatchCondition>;
400
+ /**
401
+ * Natural language objective of the FindAll run.
402
+ */
403
+ objective: string;
404
+ /**
405
+ * List of enrichment inputs for the FindAll run.
406
+ */
407
+ enrichments?: Array<FindallEnrichInput> | null;
408
+ /**
409
+ * The generator of the FindAll run.
410
+ */
411
+ generator?: 'base' | 'core' | 'pro' | 'preview';
412
+ /**
413
+ * Max number of candidates to evaluate
414
+ */
415
+ match_limit?: number | null;
416
+ }
417
+ export declare namespace FindallSchema {
418
+ /**
419
+ * Match condition model for FindAll ingest.
420
+ */
421
+ interface MatchCondition {
422
+ /**
423
+ * Detailed description of the match condition. Include as much specific
424
+ * information as possible to help improve the quality and accuracy of Find All run
425
+ * results.
426
+ */
427
+ description: string;
428
+ /**
429
+ * Name of the match condition.
430
+ */
431
+ name: string;
432
+ }
433
+ }
434
+ /**
435
+ * Event containing full snapshot of FindAll run state.
436
+ */
437
+ export interface FindallSchemaUpdatedEvent {
438
+ /**
439
+ * Response model for FindAll ingest.
440
+ */
441
+ data: FindallSchema;
442
+ /**
443
+ * Unique event identifier for the event.
444
+ */
445
+ event_id: string;
446
+ /**
447
+ * Timestamp of the event.
448
+ */
449
+ timestamp: string;
450
+ /**
451
+ * Event type; always 'findall.schema.updated'.
452
+ */
453
+ type: 'findall.schema.updated';
454
+ }
455
+ /**
456
+ * Input model for FindAll ingest.
457
+ */
458
+ export interface IngestInput {
459
+ /**
460
+ * Natural language objective to create a FindAll run spec.
461
+ */
462
+ objective: string;
463
+ }
464
+ /**
465
+ * FindAll run object with status and metadata.
466
+ */
467
+ export type FindallRetrieveResponse = FindallRun | FindallRetrieveResponse.FindAllPollResponse;
468
+ export declare namespace FindallRetrieveResponse {
469
+ /**
470
+ * Response format for polling a FindAll run status.
471
+ */
472
+ interface FindAllPollResponse {
473
+ /**
474
+ * Billing metrics for the run.
475
+ */
476
+ billing_metrics: FindAllPollResponse.BillingMetrics;
477
+ /**
478
+ * List of candidates being processed
479
+ */
480
+ candidates: Array<FindAllPollResponse.Candidate>;
481
+ /**
482
+ * List of enrichments derived from the query
483
+ */
484
+ enrichments: Array<FindAllPollResponse.Enrichment>;
485
+ /**
486
+ * List of filters derived from the query
487
+ */
488
+ filters: Array<FindAllPollResponse.Filter>;
489
+ /**
490
+ * True if the run is still processing candidates
491
+ */
492
+ is_active: boolean;
493
+ /**
494
+ * Max results processed for the run
495
+ */
496
+ max_results: number;
497
+ /**
498
+ * Query for the run
499
+ */
500
+ query: string;
501
+ /**
502
+ * List of entities which are fully processed
503
+ */
504
+ results: Array<FindAllPollResponse.Result>;
505
+ /**
506
+ * View model for the run.
507
+ */
508
+ spec: FindAllPollResponse.Spec;
509
+ /**
510
+ * Derived overall status (e.g., 'running', 'completed', 'failed')
511
+ */
512
+ status: string;
513
+ /**
514
+ * List of processing steps undertaken with their status
515
+ */
516
+ steps: Array<FindAllPollResponse.Step>;
517
+ /**
518
+ * Title of the run
519
+ */
520
+ title: string;
521
+ /**
522
+ * True if enrichments are still being processed
523
+ */
524
+ are_enrichments_active?: boolean;
525
+ /**
526
+ * Timestamp of the request
527
+ */
528
+ created_at?: string | null;
529
+ /**
530
+ * List of recommended enrichments that could be added
531
+ */
532
+ enrichment_recommendations?: Array<FindAllPollResponse.EnrichmentRecommendation>;
533
+ /**
534
+ * Timestamp of the last status update
535
+ */
536
+ modified_at?: string | null;
537
+ /**
538
+ * Number of web pages considered for this entity
539
+ */
540
+ pages_considered?: number | null;
541
+ /**
542
+ * Number of web pages read for this entity
543
+ */
544
+ pages_read?: number | null;
545
+ }
546
+ namespace FindAllPollResponse {
547
+ /**
548
+ * Billing metrics for the run.
549
+ */
550
+ interface BillingMetrics {
551
+ /**
552
+ * Number of enrichment cells processed
553
+ */
554
+ enrichment_cells: number;
555
+ /**
556
+ * Number of rows processed
557
+ */
558
+ rows_processed: number;
559
+ cost_mode?: 'lite' | 'base' | 'pro' | 'preview';
560
+ }
561
+ /**
562
+ * Simplified entity model for candidates.
563
+ */
564
+ interface Candidate {
565
+ /**
566
+ * Unique entity identifier
567
+ */
568
+ entity_id: string;
569
+ /**
570
+ * Entity name
571
+ */
572
+ name: string;
573
+ }
574
+ /**
575
+ * Column model for filters and enrichments.
576
+ */
577
+ interface Enrichment {
578
+ /**
579
+ * Human-readable description of the column
580
+ */
581
+ description: string;
582
+ /**
583
+ * Column identifier
584
+ */
585
+ name: string;
586
+ /**
587
+ * Column type ('enrichment' or 'filter')
588
+ */
589
+ type: string;
590
+ /**
591
+ * Status of the column ('running', 'done', 'failed')
592
+ */
593
+ status?: string | null;
594
+ }
595
+ /**
596
+ * Column model for filters and enrichments.
597
+ */
598
+ interface Filter {
599
+ /**
600
+ * Human-readable description of the column
601
+ */
602
+ description: string;
603
+ /**
604
+ * Column identifier
605
+ */
606
+ name: string;
607
+ /**
608
+ * Column type ('enrichment' or 'filter')
609
+ */
610
+ type: string;
611
+ /**
612
+ * Status of the column ('running', 'done', 'failed')
613
+ */
614
+ status?: string | null;
615
+ }
616
+ /**
617
+ * Entity model for results and candidates.
618
+ */
619
+ interface Result {
620
+ /**
621
+ * Unique entity identifier
622
+ */
623
+ entity_id: string;
624
+ /**
625
+ * Entity name
626
+ */
627
+ name: string;
628
+ /**
629
+ * Entity description if available
630
+ */
631
+ description?: string | null;
632
+ /**
633
+ * List of enrichment results
634
+ */
635
+ enrichment_results?: Array<Result.EnrichmentResult>;
636
+ /**
637
+ * List of filter results
638
+ */
639
+ filter_results?: Array<Result.FilterResult>;
640
+ /**
641
+ * Confidence score (positive real number)
642
+ */
643
+ score?: number | null;
644
+ /**
645
+ * Entity URL if available
646
+ */
647
+ url?: string | null;
648
+ }
649
+ namespace Result {
650
+ /**
651
+ * Result model for filter and enrichment results.
652
+ */
653
+ interface EnrichmentResult {
654
+ /**
655
+ * Name of column
656
+ */
657
+ key: string;
658
+ /**
659
+ * Result of column
660
+ */
661
+ value: string;
662
+ /**
663
+ * Space separated list of citation urls
664
+ */
665
+ citations?: string | null;
666
+ /**
667
+ * Confidence score (e.g. 'high', 'medium', 'low')
668
+ */
669
+ confidence?: string | null;
670
+ /**
671
+ * List of enhanced citations with title and excerpts
672
+ */
673
+ enhanced_citations?: Array<EnrichmentResult.EnhancedCitation>;
674
+ /**
675
+ * Reasoning behind the value
676
+ */
677
+ reasoning?: string | null;
678
+ }
679
+ namespace EnrichmentResult {
680
+ /**
681
+ * Enhanced citation model with title, excerpts, and URL for UI.
682
+ */
683
+ interface EnhancedCitation {
684
+ /**
685
+ * Citation URL
686
+ */
687
+ url: string;
688
+ /**
689
+ * List of relevant excerpts from the cited page
690
+ */
691
+ excerpts?: Array<string>;
692
+ /**
693
+ * Title of the cited page
694
+ */
695
+ title?: string | null;
696
+ }
697
+ }
698
+ /**
699
+ * Result model for filter and enrichment results.
700
+ */
701
+ interface FilterResult {
702
+ /**
703
+ * Name of column
704
+ */
705
+ key: string;
706
+ /**
707
+ * Result of column
708
+ */
709
+ value: string;
710
+ /**
711
+ * Space separated list of citation urls
712
+ */
713
+ citations?: string | null;
714
+ /**
715
+ * Confidence score (e.g. 'high', 'medium', 'low')
716
+ */
717
+ confidence?: string | null;
718
+ /**
719
+ * List of enhanced citations with title and excerpts
720
+ */
721
+ enhanced_citations?: Array<FilterResult.EnhancedCitation>;
722
+ /**
723
+ * Reasoning behind the value
724
+ */
725
+ reasoning?: string | null;
726
+ }
727
+ namespace FilterResult {
728
+ /**
729
+ * Enhanced citation model with title, excerpts, and URL for UI.
730
+ */
731
+ interface EnhancedCitation {
732
+ /**
733
+ * Citation URL
734
+ */
735
+ url: string;
736
+ /**
737
+ * List of relevant excerpts from the cited page
738
+ */
739
+ excerpts?: Array<string>;
740
+ /**
741
+ * Title of the cited page
742
+ */
743
+ title?: string | null;
744
+ }
745
+ }
746
+ }
747
+ /**
748
+ * View model for the run.
749
+ */
750
+ interface Spec {
751
+ /**
752
+ * List of columns in the view
753
+ */
754
+ columns: Array<Spec.Column>;
755
+ /**
756
+ * Name of the view
757
+ */
758
+ name: string;
759
+ }
760
+ namespace Spec {
761
+ /**
762
+ * Column model for filters and enrichments.
763
+ */
764
+ interface Column {
765
+ /**
766
+ * Human-readable description of the column
767
+ */
768
+ description: string;
769
+ /**
770
+ * Column identifier
771
+ */
772
+ name: string;
773
+ /**
774
+ * Column type ('enrichment' or 'filter')
775
+ */
776
+ type: string;
777
+ /**
778
+ * Status of the column ('running', 'done', 'failed')
779
+ */
780
+ status?: string | null;
781
+ }
782
+ }
783
+ /**
784
+ * Step model for tracking progress of FindAll operations.
785
+ */
786
+ interface Step {
787
+ /**
788
+ * Human-readable description of the step
789
+ */
790
+ description: string;
791
+ /**
792
+ * Step identifier
793
+ */
794
+ name: string;
795
+ /**
796
+ * Current status of the step
797
+ */
798
+ status: string;
799
+ }
800
+ /**
801
+ * Enrichment recommendation model.
802
+ */
803
+ interface EnrichmentRecommendation {
804
+ /**
805
+ * Recommended column name
806
+ */
807
+ column_name: string;
808
+ /**
809
+ * Description of the recommended enrichment
810
+ */
811
+ description: string;
812
+ /**
813
+ * Run ID that generated this recommendation
814
+ */
815
+ recommendation_run_id: string;
816
+ /**
817
+ * Task ID that generated this recommendation
818
+ */
819
+ recommendation_task_id: string;
820
+ }
821
+ }
822
+ }
823
+ export type FindallCancelResponse = unknown;
824
+ /**
825
+ * Event containing full snapshot of FindAll run state.
826
+ */
827
+ export type FindallEventsResponse = FindallSchemaUpdatedEvent | FindallRunStatusEvent | FindallCandidateMatchStatusEvent | BetaTaskRunAPI.ErrorEvent;
828
+ export interface FindallCreateParams {
829
+ /**
830
+ * Body param: Type of the entity for the FindAll run.
831
+ */
832
+ entity_type: string;
833
+ /**
834
+ * Body param: Generator for the FindAll run.
835
+ */
836
+ generator: 'base' | 'core' | 'pro' | 'preview';
837
+ /**
838
+ * Body param: List of match conditions for the FindAll run.
839
+ */
840
+ match_conditions: Array<FindallCreateParams.MatchCondition>;
841
+ /**
842
+ * Body param: Maximum number of matches to find for this FindAll run.
843
+ */
844
+ match_limit: number;
845
+ /**
846
+ * Body param: Natural language objective of the FindAll run.
847
+ */
848
+ objective: string;
849
+ /**
850
+ * Body param: List of entity names/IDs to exclude from results.
851
+ */
852
+ exclude_list?: Array<FindallCreateParams.ExcludeList> | null;
853
+ /**
854
+ * Body param: Metadata for the FindAll run.
855
+ */
856
+ metadata?: {
857
+ [key: string]: string | number | boolean;
858
+ } | null;
859
+ /**
860
+ * Body param: Webhooks for Task Runs.
861
+ */
862
+ webhook?: BetaTaskRunAPI.Webhook | null;
863
+ /**
864
+ * Header param: Optional header to specify the beta version(s) to enable.
865
+ */
866
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
867
+ }
868
+ export declare namespace FindallCreateParams {
869
+ /**
870
+ * Match condition model for FindAll ingest.
871
+ */
872
+ interface MatchCondition {
873
+ /**
874
+ * Detailed description of the match condition. Include as much specific
875
+ * information as possible to help improve the quality and accuracy of Find All run
876
+ * results.
877
+ */
878
+ description: string;
879
+ /**
880
+ * Name of the match condition.
881
+ */
882
+ name: string;
883
+ }
884
+ /**
885
+ * Exclude candidate input model for FindAll run.
886
+ */
887
+ interface ExcludeList {
888
+ /**
889
+ * Name of the entity to exclude from results.
890
+ */
891
+ name: string;
892
+ /**
893
+ * URL of the entity to exclude from results.
894
+ */
895
+ url: string;
896
+ }
897
+ }
898
+ export interface FindallRetrieveParams {
899
+ /**
900
+ * Optional header to specify the beta version(s) to enable.
901
+ */
902
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
903
+ }
904
+ export interface FindallCancelParams {
905
+ /**
906
+ * Optional header to specify the beta version(s) to enable.
907
+ */
908
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
909
+ }
910
+ export interface FindallEnrichParams {
911
+ /**
912
+ * Body param: JSON schema for a task input or output.
913
+ */
914
+ output_schema: TaskRunAPI.JsonSchema;
915
+ /**
916
+ * Body param: List of MCP servers to use for the task.
917
+ */
918
+ mcp_servers?: Array<BetaTaskRunAPI.McpServer> | null;
919
+ /**
920
+ * Body param: Processor to use for the task.
921
+ */
922
+ processor?: string;
923
+ /**
924
+ * Header param: Optional header to specify the beta version(s) to enable.
925
+ */
926
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
927
+ }
928
+ export interface FindallEventsParams {
929
+ /**
930
+ * Query param:
931
+ */
932
+ last_event_id?: string | null;
933
+ /**
934
+ * Query param:
935
+ */
936
+ timeout?: number | null;
937
+ /**
938
+ * Header param: Optional header to specify the beta version(s) to enable.
939
+ */
940
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
941
+ }
942
+ export interface FindallExtendParams {
943
+ /**
944
+ * Body param: Additional number of matches to find for this FindAll run. This
945
+ * value will be added to the current match limit to determine the new total match
946
+ * limit. Must be greater than 0.
947
+ */
948
+ additional_match_limit: number;
949
+ /**
950
+ * Header param: Optional header to specify the beta version(s) to enable.
951
+ */
952
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
953
+ }
954
+ export interface FindallIngestParams {
955
+ /**
956
+ * Body param: Natural language objective to create a FindAll run spec.
957
+ */
958
+ objective: string;
959
+ /**
960
+ * Header param: Optional header to specify the beta version(s) to enable.
961
+ */
962
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
963
+ }
964
+ export interface FindallResultParams {
965
+ /**
966
+ * Optional header to specify the beta version(s) to enable.
967
+ */
968
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
969
+ }
970
+ export interface FindallSchemaParams {
971
+ /**
972
+ * Optional header to specify the beta version(s) to enable.
973
+ */
974
+ betas?: Array<BetaTaskRunAPI.ParallelBeta>;
975
+ }
976
+ export declare namespace Findall {
977
+ export { type FindallCandidateMatchStatusEvent as FindallCandidateMatchStatusEvent, type FindallEnrichInput as FindallEnrichInput, type FindallExtendInput as FindallExtendInput, type FindallRun as FindallRun, type FindallRunInput as FindallRunInput, type FindallRunResult as FindallRunResult, type FindallRunStatusEvent as FindallRunStatusEvent, type FindallSchema as FindallSchema, type FindallSchemaUpdatedEvent as FindallSchemaUpdatedEvent, type IngestInput as IngestInput, type FindallRetrieveResponse as FindallRetrieveResponse, type FindallCancelResponse as FindallCancelResponse, type FindallEventsResponse as FindallEventsResponse, type FindallCreateParams as FindallCreateParams, type FindallRetrieveParams as FindallRetrieveParams, type FindallCancelParams as FindallCancelParams, type FindallEnrichParams as FindallEnrichParams, type FindallEventsParams as FindallEventsParams, type FindallExtendParams as FindallExtendParams, type FindallIngestParams as FindallIngestParams, type FindallResultParams as FindallResultParams, type FindallSchemaParams as FindallSchemaParams, };
978
+ }
979
+ //# sourceMappingURL=findall.d.mts.map