parallel-web 0.4.1 → 0.5.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.
- package/CHANGELOG.md +26 -0
- package/client.d.mts +29 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -8
- package/client.d.ts.map +1 -1
- package/client.js +34 -4
- package/client.js.map +1 -1
- package/client.mjs +34 -4
- package/client.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/query.d.mts +0 -3
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts +0 -3
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +3 -16
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +2 -16
- package/internal/utils/query.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +11 -19
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +11 -19
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +2 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +2 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/findall.d.mts +127 -177
- package/resources/beta/findall.d.mts.map +1 -1
- package/resources/beta/findall.d.ts +127 -177
- package/resources/beta/findall.d.ts.map +1 -1
- package/resources/beta/findall.js +2 -4
- package/resources/beta/findall.js.map +1 -1
- package/resources/beta/findall.mjs +2 -4
- package/resources/beta/findall.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/task-group.d.mts +22 -143
- package/resources/beta/task-group.d.mts.map +1 -1
- package/resources/beta/task-group.d.ts +22 -143
- package/resources/beta/task-group.d.ts.map +1 -1
- package/resources/beta/task-group.js +7 -42
- package/resources/beta/task-group.js.map +1 -1
- package/resources/beta/task-group.mjs +7 -42
- package/resources/beta/task-group.mjs.map +1 -1
- package/resources/beta/task-run.d.mts +22 -70
- package/resources/beta/task-run.d.mts.map +1 -1
- package/resources/beta/task-run.d.ts +22 -70
- package/resources/beta/task-run.d.ts.map +1 -1
- package/resources/beta/task-run.js +1 -1
- package/resources/beta/task-run.mjs +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/monitor.d.mts +625 -0
- package/resources/monitor.d.mts.map +1 -0
- package/resources/monitor.d.ts +625 -0
- package/resources/monitor.d.ts.map +1 -0
- package/resources/monitor.js +140 -0
- package/resources/monitor.js.map +1 -0
- package/resources/monitor.mjs +136 -0
- package/resources/monitor.mjs.map +1 -0
- package/resources/task-group.d.mts +213 -0
- package/resources/task-group.d.mts.map +1 -0
- package/resources/task-group.d.ts +213 -0
- package/resources/task-group.d.ts.map +1 -0
- package/resources/task-group.js +95 -0
- package/resources/task-group.js.map +1 -0
- package/resources/task-group.mjs +91 -0
- package/resources/task-group.mjs.map +1 -0
- package/resources/task-run.d.mts +97 -80
- package/resources/task-run.d.mts.map +1 -1
- package/resources/task-run.d.ts +97 -80
- package/resources/task-run.d.ts.map +1 -1
- package/resources/task-run.js +14 -1
- package/resources/task-run.js.map +1 -1
- package/resources/task-run.mjs +14 -1
- package/resources/task-run.mjs.map +1 -1
- package/resources/top-level.d.mts +19 -15
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +19 -15
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +120 -4
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/query.ts +2 -18
- package/src/resources/beta/api.md +9 -5
- package/src/resources/beta/beta.ts +26 -20
- package/src/resources/beta/findall.ts +153 -202
- package/src/resources/beta/index.ts +7 -4
- package/src/resources/beta/task-group.ts +30 -157
- package/src/resources/beta/task-run.ts +26 -86
- package/src/resources/index.ts +42 -0
- package/src/resources/monitor.ts +752 -0
- package/src/resources/task-group.ts +315 -0
- package/src/resources/task-run.ts +122 -95
- package/src/resources/top-level.ts +23 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -86,21 +86,19 @@ export class FindAll extends APIResource {
|
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```ts
|
|
89
|
-
*
|
|
90
|
-
* 'findall_id',
|
|
91
|
-
* );
|
|
89
|
+
* await client.beta.findall.cancel('findall_id');
|
|
92
90
|
* ```
|
|
93
91
|
*/
|
|
94
92
|
cancel(
|
|
95
93
|
findallID: string,
|
|
96
94
|
params: FindAllCancelParams | null | undefined = {},
|
|
97
95
|
options?: RequestOptions,
|
|
98
|
-
): APIPromise<
|
|
96
|
+
): APIPromise<void> {
|
|
99
97
|
const { betas } = params ?? {};
|
|
100
98
|
return this._client.post(path`/v1beta/findall/runs/${findallID}/cancel`, {
|
|
101
99
|
...options,
|
|
102
100
|
headers: buildHeaders([
|
|
103
|
-
{ 'parallel-beta': [...(betas ?? []), 'findall-2025-09-15'].toString() },
|
|
101
|
+
{ 'parallel-beta': [...(betas ?? []), 'findall-2025-09-15'].toString(), Accept: '*/*' },
|
|
104
102
|
options?.headers,
|
|
105
103
|
]),
|
|
106
104
|
});
|
|
@@ -304,6 +302,52 @@ export class FindAll extends APIResource {
|
|
|
304
302
|
}
|
|
305
303
|
}
|
|
306
304
|
|
|
305
|
+
/**
|
|
306
|
+
* Candidate for a find all run that may end up as a match.
|
|
307
|
+
*
|
|
308
|
+
* Contains all the candidate's metadata and the output of the match conditions. A
|
|
309
|
+
* candidate is a match if all match conditions are satisfied.
|
|
310
|
+
*/
|
|
311
|
+
export interface FindAllCandidate {
|
|
312
|
+
/**
|
|
313
|
+
* ID of the candidate.
|
|
314
|
+
*/
|
|
315
|
+
candidate_id: string;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Status of the candidate. One of generated, matched, unmatched, discarded.
|
|
319
|
+
*/
|
|
320
|
+
match_status: 'generated' | 'matched' | 'unmatched' | 'discarded';
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Name of the candidate.
|
|
324
|
+
*/
|
|
325
|
+
name: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* URL that provides context or details of the entity for disambiguation.
|
|
329
|
+
*/
|
|
330
|
+
url: string;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* List of FieldBasis objects supporting the output.
|
|
334
|
+
*/
|
|
335
|
+
basis?: Array<TaskRunAPI.FieldBasis> | null;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Brief description of the entity that can help answer whether entity satisfies
|
|
339
|
+
* the query.
|
|
340
|
+
*/
|
|
341
|
+
description?: string | null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Results of the match condition evaluations for this candidate. This object
|
|
345
|
+
* contains the structured output that determines whether the candidate matches the
|
|
346
|
+
* overall FindAll objective.
|
|
347
|
+
*/
|
|
348
|
+
output?: { [key: string]: unknown } | null;
|
|
349
|
+
}
|
|
350
|
+
|
|
307
351
|
/**
|
|
308
352
|
* Event containing a candidate whose match status has changed.
|
|
309
353
|
*/
|
|
@@ -311,7 +355,7 @@ export interface FindAllCandidateMatchStatusEvent {
|
|
|
311
355
|
/**
|
|
312
356
|
* The candidate whose match status has been updated.
|
|
313
357
|
*/
|
|
314
|
-
data:
|
|
358
|
+
data: FindAllCandidate;
|
|
315
359
|
|
|
316
360
|
/**
|
|
317
361
|
* Unique event identifier for the event.
|
|
@@ -336,49 +380,19 @@ export interface FindAllCandidateMatchStatusEvent {
|
|
|
336
380
|
| 'findall.candidate.enriched';
|
|
337
381
|
}
|
|
338
382
|
|
|
339
|
-
|
|
383
|
+
/**
|
|
384
|
+
* Metrics object for FindAll run.
|
|
385
|
+
*/
|
|
386
|
+
export interface FindAllCandidateMetrics {
|
|
340
387
|
/**
|
|
341
|
-
*
|
|
388
|
+
* Number of candidates that were selected.
|
|
342
389
|
*/
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* ID of the candidate.
|
|
346
|
-
*/
|
|
347
|
-
candidate_id: string;
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Status of the candidate. One of generated, matched, unmatched, discarded.
|
|
351
|
-
*/
|
|
352
|
-
match_status: 'generated' | 'matched' | 'unmatched' | 'discarded';
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Name of the candidate.
|
|
356
|
-
*/
|
|
357
|
-
name: string;
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* URL that provides context or details of the entity for disambiguation.
|
|
361
|
-
*/
|
|
362
|
-
url: string;
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* List of FieldBasis objects supporting the output.
|
|
366
|
-
*/
|
|
367
|
-
basis?: Array<TaskRunAPI.FieldBasis> | null;
|
|
390
|
+
generated_candidates_count?: number;
|
|
368
391
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
description?: string | null;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Results of the match condition evaluations for this candidate. This object
|
|
377
|
-
* contains the structured output that determines whether the candidate matches the
|
|
378
|
-
* overall FindAll objective.
|
|
379
|
-
*/
|
|
380
|
-
output?: { [key: string]: unknown } | null;
|
|
381
|
-
}
|
|
392
|
+
/**
|
|
393
|
+
* Number of candidates that evaluated to matched.
|
|
394
|
+
*/
|
|
395
|
+
matched_candidates_count?: number;
|
|
382
396
|
}
|
|
383
397
|
|
|
384
398
|
export interface FindAllCandidatesRequest {
|
|
@@ -480,7 +494,7 @@ export interface FindAllRun {
|
|
|
480
494
|
/**
|
|
481
495
|
* Status object for the FindAll run.
|
|
482
496
|
*/
|
|
483
|
-
status:
|
|
497
|
+
status: FindAllRunStatus;
|
|
484
498
|
|
|
485
499
|
/**
|
|
486
500
|
* Timestamp of the creation of the run, in RFC 3339 format.
|
|
@@ -499,58 +513,6 @@ export interface FindAllRun {
|
|
|
499
513
|
modified_at?: string | null;
|
|
500
514
|
}
|
|
501
515
|
|
|
502
|
-
export namespace FindAllRun {
|
|
503
|
-
/**
|
|
504
|
-
* Status object for the FindAll run.
|
|
505
|
-
*/
|
|
506
|
-
export interface Status {
|
|
507
|
-
/**
|
|
508
|
-
* Whether the FindAll run is active
|
|
509
|
-
*/
|
|
510
|
-
is_active: boolean;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* Candidate metrics for the FindAll run.
|
|
514
|
-
*/
|
|
515
|
-
metrics: Status.Metrics;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* Status of the FindAll run.
|
|
519
|
-
*/
|
|
520
|
-
status: 'queued' | 'action_required' | 'running' | 'completed' | 'failed' | 'cancelling' | 'cancelled';
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* Reason for termination when FindAll run is in terminal status.
|
|
524
|
-
*/
|
|
525
|
-
termination_reason?:
|
|
526
|
-
| 'low_match_rate'
|
|
527
|
-
| 'match_limit_met'
|
|
528
|
-
| 'candidates_exhausted'
|
|
529
|
-
| 'user_cancelled'
|
|
530
|
-
| 'error_occurred'
|
|
531
|
-
| 'timeout'
|
|
532
|
-
| 'insufficient_funds'
|
|
533
|
-
| null;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
export namespace Status {
|
|
537
|
-
/**
|
|
538
|
-
* Candidate metrics for the FindAll run.
|
|
539
|
-
*/
|
|
540
|
-
export interface Metrics {
|
|
541
|
-
/**
|
|
542
|
-
* Number of candidates that were selected.
|
|
543
|
-
*/
|
|
544
|
-
generated_candidates_count?: number;
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Number of candidates that evaluated to matched.
|
|
548
|
-
*/
|
|
549
|
-
matched_candidates_count?: number;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
516
|
/**
|
|
555
517
|
* Input model for FindAll run.
|
|
556
518
|
*/
|
|
@@ -568,7 +530,7 @@ export interface FindAllRunInput {
|
|
|
568
530
|
/**
|
|
569
531
|
* List of match conditions for the FindAll run.
|
|
570
532
|
*/
|
|
571
|
-
match_conditions: Array<
|
|
533
|
+
match_conditions: Array<MatchCondition>;
|
|
572
534
|
|
|
573
535
|
/**
|
|
574
536
|
* Maximum number of matches to find for this FindAll run. Must be between 5 and
|
|
@@ -598,23 +560,6 @@ export interface FindAllRunInput {
|
|
|
598
560
|
}
|
|
599
561
|
|
|
600
562
|
export namespace FindAllRunInput {
|
|
601
|
-
/**
|
|
602
|
-
* Match condition model for FindAll ingest.
|
|
603
|
-
*/
|
|
604
|
-
export interface MatchCondition {
|
|
605
|
-
/**
|
|
606
|
-
* Detailed description of the match condition. Include as much specific
|
|
607
|
-
* information as possible to help improve the quality and accuracy of Find All run
|
|
608
|
-
* results.
|
|
609
|
-
*/
|
|
610
|
-
description: string;
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Name of the match condition.
|
|
614
|
-
*/
|
|
615
|
-
name: string;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
563
|
/**
|
|
619
564
|
* Exclude candidate input model for FindAll run.
|
|
620
565
|
*/
|
|
@@ -642,7 +587,7 @@ export interface FindAllRunResult {
|
|
|
642
587
|
/**
|
|
643
588
|
* All evaluated candidates at the time of the snapshot.
|
|
644
589
|
*/
|
|
645
|
-
candidates: Array<
|
|
590
|
+
candidates: Array<FindAllCandidate>;
|
|
646
591
|
|
|
647
592
|
/**
|
|
648
593
|
* FindAll run object.
|
|
@@ -656,52 +601,37 @@ export interface FindAllRunResult {
|
|
|
656
601
|
last_event_id?: string | null;
|
|
657
602
|
}
|
|
658
603
|
|
|
659
|
-
|
|
604
|
+
/**
|
|
605
|
+
* Status object for FindAll run.
|
|
606
|
+
*/
|
|
607
|
+
export interface FindAllRunStatus {
|
|
660
608
|
/**
|
|
661
|
-
*
|
|
662
|
-
*
|
|
663
|
-
* Contains all the candidate's metadata and the output of the match conditions. A
|
|
664
|
-
* candidate is a match if all match conditions are satisfied.
|
|
609
|
+
* Whether the FindAll run is active
|
|
665
610
|
*/
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* ID of the candidate.
|
|
669
|
-
*/
|
|
670
|
-
candidate_id: string;
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Status of the candidate. One of generated, matched, unmatched, discarded.
|
|
674
|
-
*/
|
|
675
|
-
match_status: 'generated' | 'matched' | 'unmatched' | 'discarded';
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Name of the candidate.
|
|
679
|
-
*/
|
|
680
|
-
name: string;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* URL that provides context or details of the entity for disambiguation.
|
|
684
|
-
*/
|
|
685
|
-
url: string;
|
|
611
|
+
is_active: boolean;
|
|
686
612
|
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
613
|
+
/**
|
|
614
|
+
* Candidate metrics for the FindAll run.
|
|
615
|
+
*/
|
|
616
|
+
metrics: FindAllCandidateMetrics;
|
|
691
617
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
description?: string | null;
|
|
618
|
+
/**
|
|
619
|
+
* Status of the FindAll run.
|
|
620
|
+
*/
|
|
621
|
+
status: 'queued' | 'action_required' | 'running' | 'completed' | 'failed' | 'cancelling' | 'cancelled';
|
|
697
622
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
623
|
+
/**
|
|
624
|
+
* Reason for termination when FindAll run is in terminal status.
|
|
625
|
+
*/
|
|
626
|
+
termination_reason?:
|
|
627
|
+
| 'low_match_rate'
|
|
628
|
+
| 'match_limit_met'
|
|
629
|
+
| 'candidates_exhausted'
|
|
630
|
+
| 'user_cancelled'
|
|
631
|
+
| 'error_occurred'
|
|
632
|
+
| 'timeout'
|
|
633
|
+
| 'insufficient_funds'
|
|
634
|
+
| null;
|
|
705
635
|
}
|
|
706
636
|
|
|
707
637
|
/**
|
|
@@ -741,7 +671,7 @@ export interface FindAllSchema {
|
|
|
741
671
|
/**
|
|
742
672
|
* List of match conditions for the FindAll run.
|
|
743
673
|
*/
|
|
744
|
-
match_conditions: Array<
|
|
674
|
+
match_conditions: Array<MatchCondition>;
|
|
745
675
|
|
|
746
676
|
/**
|
|
747
677
|
* Natural language objective of the FindAll run.
|
|
@@ -764,25 +694,6 @@ export interface FindAllSchema {
|
|
|
764
694
|
match_limit?: number | null;
|
|
765
695
|
}
|
|
766
696
|
|
|
767
|
-
export namespace FindAllSchema {
|
|
768
|
-
/**
|
|
769
|
-
* Match condition model for FindAll ingest.
|
|
770
|
-
*/
|
|
771
|
-
export interface MatchCondition {
|
|
772
|
-
/**
|
|
773
|
-
* Detailed description of the match condition. Include as much specific
|
|
774
|
-
* information as possible to help improve the quality and accuracy of Find All run
|
|
775
|
-
* results.
|
|
776
|
-
*/
|
|
777
|
-
description: string;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Name of the match condition.
|
|
781
|
-
*/
|
|
782
|
-
name: string;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
|
|
786
697
|
/**
|
|
787
698
|
* Event containing full snapshot of FindAll run state.
|
|
788
699
|
*/
|
|
@@ -818,7 +729,22 @@ export interface IngestInput {
|
|
|
818
729
|
objective: string;
|
|
819
730
|
}
|
|
820
731
|
|
|
821
|
-
|
|
732
|
+
/**
|
|
733
|
+
* Match condition model for FindAll ingest.
|
|
734
|
+
*/
|
|
735
|
+
export interface MatchCondition {
|
|
736
|
+
/**
|
|
737
|
+
* Detailed description of the match condition. Include as much specific
|
|
738
|
+
* information as possible to help improve the quality and accuracy of Find All run
|
|
739
|
+
* results.
|
|
740
|
+
*/
|
|
741
|
+
description: string;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Name of the match condition.
|
|
745
|
+
*/
|
|
746
|
+
name: string;
|
|
747
|
+
}
|
|
822
748
|
|
|
823
749
|
/**
|
|
824
750
|
* Event containing full snapshot of FindAll run state.
|
|
@@ -843,7 +769,7 @@ export interface FindAllCreateParams {
|
|
|
843
769
|
/**
|
|
844
770
|
* Body param: List of match conditions for the FindAll run.
|
|
845
771
|
*/
|
|
846
|
-
match_conditions: Array<
|
|
772
|
+
match_conditions: Array<MatchCondition>;
|
|
847
773
|
|
|
848
774
|
/**
|
|
849
775
|
* Body param: Maximum number of matches to find for this FindAll run. Must be
|
|
@@ -878,23 +804,6 @@ export interface FindAllCreateParams {
|
|
|
878
804
|
}
|
|
879
805
|
|
|
880
806
|
export namespace FindAllCreateParams {
|
|
881
|
-
/**
|
|
882
|
-
* Match condition model for FindAll ingest.
|
|
883
|
-
*/
|
|
884
|
-
export interface MatchCondition {
|
|
885
|
-
/**
|
|
886
|
-
* Detailed description of the match condition. Include as much specific
|
|
887
|
-
* information as possible to help improve the quality and accuracy of Find All run
|
|
888
|
-
* results.
|
|
889
|
-
*/
|
|
890
|
-
description: string;
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* Name of the match condition.
|
|
894
|
-
*/
|
|
895
|
-
name: string;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
807
|
/**
|
|
899
808
|
* Exclude candidate input model for FindAll run.
|
|
900
809
|
*/
|
|
@@ -1024,7 +933,9 @@ export interface FindAllSchemaParams {
|
|
|
1024
933
|
|
|
1025
934
|
export declare namespace FindAll {
|
|
1026
935
|
export {
|
|
936
|
+
type FindAllCandidate as FindAllCandidate,
|
|
1027
937
|
type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent,
|
|
938
|
+
type FindAllCandidateMetrics as FindAllCandidateMetrics,
|
|
1028
939
|
type FindAllCandidatesRequest as FindAllCandidatesRequest,
|
|
1029
940
|
type FindAllCandidatesResponse as FindAllCandidatesResponse,
|
|
1030
941
|
type FindAllEnrichInput as FindAllEnrichInput,
|
|
@@ -1032,11 +943,12 @@ export declare namespace FindAll {
|
|
|
1032
943
|
type FindAllRun as FindAllRun,
|
|
1033
944
|
type FindAllRunInput as FindAllRunInput,
|
|
1034
945
|
type FindAllRunResult as FindAllRunResult,
|
|
946
|
+
type FindAllRunStatus as FindAllRunStatus,
|
|
1035
947
|
type FindAllRunStatusEvent as FindAllRunStatusEvent,
|
|
1036
948
|
type FindAllSchema as FindAllSchema,
|
|
1037
949
|
type FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent,
|
|
1038
950
|
type IngestInput as IngestInput,
|
|
1039
|
-
type
|
|
951
|
+
type MatchCondition as MatchCondition,
|
|
1040
952
|
type FindAllEventsResponse as FindAllEventsResponse,
|
|
1041
953
|
type FindAllCreateParams as FindAllCreateParams,
|
|
1042
954
|
type FindAllRetrieveParams as FindAllRetrieveParams,
|
|
@@ -1079,8 +991,6 @@ export type FindallSchema = FindAllSchema;
|
|
|
1079
991
|
export type FindallSchemaUpdatedEvent = FindAllSchemaUpdatedEvent;
|
|
1080
992
|
/** @deprecated Use `IngestInput` instead. */
|
|
1081
993
|
export type FindallIngestInput = IngestInput;
|
|
1082
|
-
/** @deprecated Use `FindAllCancelResponse` instead. */
|
|
1083
|
-
export type FindallCancelResponse = FindAllCancelResponse;
|
|
1084
994
|
/** @deprecated Use `FindAllEventsResponse` instead. */
|
|
1085
995
|
export type FindallEventsResponse = FindAllEventsResponse;
|
|
1086
996
|
/** @deprecated Use `FindAllCreateParams` instead. */
|
|
@@ -1114,7 +1024,6 @@ export declare namespace Findall {
|
|
|
1114
1024
|
type FindallSchema as FindallSchema,
|
|
1115
1025
|
type FindallSchemaUpdatedEvent as FindallSchemaUpdatedEvent,
|
|
1116
1026
|
type FindallIngestInput as FindallIngestInput,
|
|
1117
|
-
type FindallCancelResponse as FindallCancelResponse,
|
|
1118
1027
|
type FindallEventsResponse as FindallEventsResponse,
|
|
1119
1028
|
type FindallCreateParams as FindallCreateParams,
|
|
1120
1029
|
type FindallRetrieveParams as FindallRetrieveParams,
|
|
@@ -1127,3 +1036,45 @@ export declare namespace Findall {
|
|
|
1127
1036
|
type FindallSchemaParams as FindallSchemaParams,
|
|
1128
1037
|
};
|
|
1129
1038
|
}
|
|
1039
|
+
|
|
1040
|
+
// Backwards-compat namespace members (deprecated). Previously these types
|
|
1041
|
+
// existed as nested interfaces under their parent's namespace; they've since
|
|
1042
|
+
// moved to top-level model types. Declaration merging here preserves the old
|
|
1043
|
+
// `Parent.Member` import paths.
|
|
1044
|
+
type _FindAllCandidate = FindAllCandidate;
|
|
1045
|
+
type _FindAllRunStatus = FindAllRunStatus;
|
|
1046
|
+
type _FindAllCandidateMetrics = FindAllCandidateMetrics;
|
|
1047
|
+
type _MatchCondition = MatchCondition;
|
|
1048
|
+
export namespace FindAllCandidateMatchStatusEvent {
|
|
1049
|
+
/** @deprecated Use the top-level `FindAllCandidate` instead. */
|
|
1050
|
+
export type Data = _FindAllCandidate;
|
|
1051
|
+
}
|
|
1052
|
+
export namespace FindAllCreateParams {
|
|
1053
|
+
/** @deprecated Use the top-level `MatchCondition` instead. */
|
|
1054
|
+
export type MatchCondition = _MatchCondition;
|
|
1055
|
+
}
|
|
1056
|
+
// FindAllRunInput and FindAllSchema already declare `export namespace`s above;
|
|
1057
|
+
// these additional `export namespace` blocks merge with them via TS declaration
|
|
1058
|
+
// merging, augmenting the existing namespaces with the deprecated `MatchCondition`
|
|
1059
|
+
// member. (`declare module` would not work here — it's for ambient module
|
|
1060
|
+
// augmentation, not same-file declaration merging.)
|
|
1061
|
+
export namespace FindAllRunInput {
|
|
1062
|
+
/** @deprecated Use the top-level `MatchCondition` instead. */
|
|
1063
|
+
export type MatchCondition = _MatchCondition;
|
|
1064
|
+
}
|
|
1065
|
+
export namespace FindAllSchema {
|
|
1066
|
+
/** @deprecated Use the top-level `MatchCondition` instead. */
|
|
1067
|
+
export type MatchCondition = _MatchCondition;
|
|
1068
|
+
}
|
|
1069
|
+
export namespace FindAllRun {
|
|
1070
|
+
/** @deprecated Use the top-level `FindAllRunStatus` instead. */
|
|
1071
|
+
export type Status = _FindAllRunStatus;
|
|
1072
|
+
export namespace Status {
|
|
1073
|
+
/** @deprecated Use the top-level `FindAllCandidateMetrics` instead. */
|
|
1074
|
+
export type Metrics = _FindAllCandidateMetrics;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
export namespace FindAllRunResult {
|
|
1078
|
+
/** @deprecated Use the top-level `FindAllCandidate` instead. */
|
|
1079
|
+
export type Candidate = _FindAllCandidate;
|
|
1080
|
+
}
|
|
@@ -4,7 +4,9 @@ export { Beta } from './beta';
|
|
|
4
4
|
export {
|
|
5
5
|
FindAll,
|
|
6
6
|
Findall,
|
|
7
|
+
type FindAllCandidate,
|
|
7
8
|
type FindAllCandidateMatchStatusEvent,
|
|
9
|
+
type FindAllCandidateMetrics,
|
|
8
10
|
type FindAllCandidatesRequest,
|
|
9
11
|
type FindAllCandidatesResponse,
|
|
10
12
|
type FindAllEnrichInput,
|
|
@@ -12,11 +14,12 @@ export {
|
|
|
12
14
|
type FindAllRun,
|
|
13
15
|
type FindAllRunInput,
|
|
14
16
|
type FindAllRunResult,
|
|
17
|
+
type FindAllRunStatus,
|
|
15
18
|
type FindAllRunStatusEvent,
|
|
16
19
|
type FindAllSchema,
|
|
17
20
|
type FindAllSchemaUpdatedEvent,
|
|
18
21
|
type IngestInput,
|
|
19
|
-
type
|
|
22
|
+
type MatchCondition,
|
|
20
23
|
type FindAllEventsResponse,
|
|
21
24
|
type FindAllCreateParams,
|
|
22
25
|
type FindAllRetrieveParams,
|
|
@@ -38,7 +41,6 @@ export {
|
|
|
38
41
|
type FindallSchema,
|
|
39
42
|
type FindallSchemaUpdatedEvent,
|
|
40
43
|
type FindallIngestInput,
|
|
41
|
-
type FindallCancelResponse,
|
|
42
44
|
type FindallEventsResponse,
|
|
43
45
|
type FindallCreateParams,
|
|
44
46
|
type FindallRetrieveParams,
|
|
@@ -52,10 +54,11 @@ export {
|
|
|
52
54
|
} from './findall';
|
|
53
55
|
export {
|
|
54
56
|
TaskGroup,
|
|
55
|
-
type TaskGroupRunResponse,
|
|
56
|
-
type TaskGroupStatus,
|
|
57
57
|
type TaskGroupEventsResponse,
|
|
58
58
|
type TaskGroupGetRunsResponse,
|
|
59
|
+
type TaskGroupStatus,
|
|
60
|
+
type TaskGroupStatusEvent,
|
|
61
|
+
type TaskGroupRunResponse,
|
|
59
62
|
type TaskGroupCreateParams,
|
|
60
63
|
type TaskGroupAddRunsParams,
|
|
61
64
|
type TaskGroupEventsParams,
|