exa-js 1.7.3 → 1.7.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.
- package/dist/index.d.mts +338 -22
- package/dist/index.d.ts +338 -22
- package/dist/index.js +117 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +114 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -79,6 +79,25 @@ interface components {
|
|
|
79
79
|
label: string;
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
CreateStreamParameters: {
|
|
83
|
+
/** @description Behavior to perform when stream runs */
|
|
84
|
+
behavior: components["schemas"]["StreamBehaviorSearch"] | components["schemas"]["StreamBehaviorRefresh"];
|
|
85
|
+
/** @description How often the stream will run */
|
|
86
|
+
cadence: {
|
|
87
|
+
/** @description Cron expression for stream cadence (must be a valid Unix cron with 5 fields). The schedule must trigger at most once per day. */
|
|
88
|
+
cron: string;
|
|
89
|
+
/**
|
|
90
|
+
* @description IANA timezone (e.g., "America/New_York")
|
|
91
|
+
* @default Etc/UTC
|
|
92
|
+
*/
|
|
93
|
+
timezone: string;
|
|
94
|
+
};
|
|
95
|
+
metadata?: {
|
|
96
|
+
[key: string]: string;
|
|
97
|
+
};
|
|
98
|
+
/** @description The id of the Webset */
|
|
99
|
+
websetId: string;
|
|
100
|
+
};
|
|
82
101
|
CreateWebhookParameters: {
|
|
83
102
|
/** @description The events to trigger the webhook */
|
|
84
103
|
events: components["schemas"]["EventType"][];
|
|
@@ -130,14 +149,13 @@ interface components {
|
|
|
130
149
|
};
|
|
131
150
|
CreateWebsetSearchParameters: {
|
|
132
151
|
/**
|
|
133
|
-
*
|
|
134
|
-
* @description The behaviour of the Search when it is added to a Webset.
|
|
152
|
+
* @description The behavior of the Search when it is added to a Webset.
|
|
135
153
|
*
|
|
136
|
-
* - `override`: the search will
|
|
154
|
+
* - `override`: the search will replace the existing Items found in the Webset and evaluate them against the new criteria. Any Items that don't match the new criteria will be discarded.
|
|
155
|
+
* - `append`: the search will add the new Items found to the existing Webset. Any Items that don't match the new criteria will be discarded.
|
|
137
156
|
* @default override
|
|
138
|
-
* @enum {string}
|
|
139
157
|
*/
|
|
140
|
-
|
|
158
|
+
behavior: WebsetSearchBehavior;
|
|
141
159
|
/** @description Number of Items the Search will attempt to find.
|
|
142
160
|
*
|
|
143
161
|
* The actual number of Items found may be less than this number depending on the query complexity. */
|
|
@@ -162,7 +180,7 @@ interface components {
|
|
|
162
180
|
EnrichmentResult: {
|
|
163
181
|
/** @description The id of the Enrichment that generated the result */
|
|
164
182
|
enrichmentId: string;
|
|
165
|
-
format:
|
|
183
|
+
format: WebsetEnrichmentFormat;
|
|
166
184
|
/**
|
|
167
185
|
* @default enrichment_result
|
|
168
186
|
* @constant
|
|
@@ -388,6 +406,22 @@ interface components {
|
|
|
388
406
|
/** @description The cursor to paginate through the next set of results */
|
|
389
407
|
nextCursor: string | null;
|
|
390
408
|
};
|
|
409
|
+
ListStreamRunsResponse: {
|
|
410
|
+
/** @description The list of stream runs */
|
|
411
|
+
data: components["schemas"]["StreamRun"][];
|
|
412
|
+
/** @description Whether there are more results to paginate through */
|
|
413
|
+
hasMore: boolean;
|
|
414
|
+
/** @description The cursor to paginate through the next set of results */
|
|
415
|
+
nextCursor: string | null;
|
|
416
|
+
};
|
|
417
|
+
ListStreamsResponse: {
|
|
418
|
+
/** @description The list of streams */
|
|
419
|
+
data: components["schemas"]["Stream"][];
|
|
420
|
+
/** @description Whether there are more results to paginate through */
|
|
421
|
+
hasMore: boolean;
|
|
422
|
+
/** @description The cursor to paginate through the next set of results */
|
|
423
|
+
nextCursor: string | null;
|
|
424
|
+
};
|
|
391
425
|
ListWebhookAttemptsResponse: {
|
|
392
426
|
/** @description The list of webhook attempts */
|
|
393
427
|
data: components["schemas"]["WebhookAttempt"][];
|
|
@@ -420,6 +454,172 @@ interface components {
|
|
|
420
454
|
/** @description The cursor to paginate through the next set of results */
|
|
421
455
|
nextCursor: string | null;
|
|
422
456
|
};
|
|
457
|
+
Stream: {
|
|
458
|
+
/** @description Behavior to perform when stream runs */
|
|
459
|
+
behavior: components["schemas"]["StreamBehaviorSearch"] | components["schemas"]["StreamBehaviorRefresh"];
|
|
460
|
+
/** @description How often the stream will run */
|
|
461
|
+
cadence: {
|
|
462
|
+
/** @description Cron expression for stream cadence (must be a valid Unix cron with 5 fields). The schedule must trigger at most once per day. */
|
|
463
|
+
cron: string;
|
|
464
|
+
/**
|
|
465
|
+
* @description IANA timezone (e.g., "America/New_York")
|
|
466
|
+
* @default Etc/UTC
|
|
467
|
+
*/
|
|
468
|
+
timezone: string;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Format: date-time
|
|
472
|
+
* @description When the stream was created
|
|
473
|
+
*/
|
|
474
|
+
createdAt: string;
|
|
475
|
+
/** @description The unique identifier for the Stream */
|
|
476
|
+
id: string;
|
|
477
|
+
/**
|
|
478
|
+
* StreamRun
|
|
479
|
+
* @description The last run of the stream
|
|
480
|
+
*/
|
|
481
|
+
lastRun: components["schemas"]["StreamRun"];
|
|
482
|
+
/** @description Set of key-value pairs you want to associate with this object. */
|
|
483
|
+
metadata: {
|
|
484
|
+
[key: string]: string;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Format: date-time
|
|
488
|
+
* @description When the next run will occur
|
|
489
|
+
*/
|
|
490
|
+
nextRunAt: string | null;
|
|
491
|
+
/**
|
|
492
|
+
* @description The type of object
|
|
493
|
+
* @enum {string}
|
|
494
|
+
*/
|
|
495
|
+
object: StreamObject;
|
|
496
|
+
/**
|
|
497
|
+
* @description The status of the Stream
|
|
498
|
+
* @enum {string}
|
|
499
|
+
*/
|
|
500
|
+
status: StreamStatus;
|
|
501
|
+
/**
|
|
502
|
+
* Format: date-time
|
|
503
|
+
* @description When the stream was last updated
|
|
504
|
+
*/
|
|
505
|
+
updatedAt: string;
|
|
506
|
+
/** @description The id of the Webset the Stream belongs to */
|
|
507
|
+
websetId: string;
|
|
508
|
+
};
|
|
509
|
+
StreamBehaviorRefresh: {
|
|
510
|
+
/** @description Specify the target of the refresh */
|
|
511
|
+
config: components["schemas"]["StreamRefreshBehaviorEnrichmentsConfig"] | components["schemas"]["StreamRefreshBehaviorContentsConfig"];
|
|
512
|
+
/**
|
|
513
|
+
* @default refresh
|
|
514
|
+
* @constant
|
|
515
|
+
*/
|
|
516
|
+
type: "refresh";
|
|
517
|
+
};
|
|
518
|
+
StreamBehaviorSearch: {
|
|
519
|
+
config: {
|
|
520
|
+
/**
|
|
521
|
+
* @description The behaviour of the Search when it is added to a Webset.
|
|
522
|
+
* @default append
|
|
523
|
+
*/
|
|
524
|
+
behavior?: WebsetSearchBehavior;
|
|
525
|
+
/** @description The maximum number of results to find */
|
|
526
|
+
count: number;
|
|
527
|
+
criteria: {
|
|
528
|
+
description: string;
|
|
529
|
+
}[];
|
|
530
|
+
/** WebsetEntity */
|
|
531
|
+
entity: components["schemas"]["WebsetEntity"];
|
|
532
|
+
query: string;
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* @default search
|
|
536
|
+
* @constant
|
|
537
|
+
*/
|
|
538
|
+
type: "search";
|
|
539
|
+
};
|
|
540
|
+
StreamCadence: {
|
|
541
|
+
/** @description Cron expression for stream cadence (must be a valid Unix cron with 5 fields). The schedule must trigger at most once per day. */
|
|
542
|
+
cron: string;
|
|
543
|
+
/**
|
|
544
|
+
* @description IANA timezone (e.g., "America/New_York")
|
|
545
|
+
* @default Etc/UTC
|
|
546
|
+
*/
|
|
547
|
+
timezone: string;
|
|
548
|
+
};
|
|
549
|
+
StreamRefreshBehaviorContentsConfig: {
|
|
550
|
+
/**
|
|
551
|
+
* @default contents
|
|
552
|
+
* @constant
|
|
553
|
+
*/
|
|
554
|
+
target: "contents";
|
|
555
|
+
};
|
|
556
|
+
StreamRefreshBehaviorEnrichmentsConfig: {
|
|
557
|
+
/** @description Only refresh specific enrichments */
|
|
558
|
+
enrichments?: {
|
|
559
|
+
ids?: string[];
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* @default enrichments
|
|
563
|
+
* @constant
|
|
564
|
+
*/
|
|
565
|
+
target: "enrichments";
|
|
566
|
+
};
|
|
567
|
+
StreamRun: {
|
|
568
|
+
/**
|
|
569
|
+
* Format: date-time
|
|
570
|
+
* @description When the run was canceled
|
|
571
|
+
*/
|
|
572
|
+
canceledAt: string | null;
|
|
573
|
+
/**
|
|
574
|
+
* Format: date-time
|
|
575
|
+
* @description When the run completed
|
|
576
|
+
*/
|
|
577
|
+
completedAt: string | null;
|
|
578
|
+
/**
|
|
579
|
+
* Format: date-time
|
|
580
|
+
* @description When the run was created
|
|
581
|
+
*/
|
|
582
|
+
createdAt: string;
|
|
583
|
+
/**
|
|
584
|
+
* Format: date-time
|
|
585
|
+
* @description When the run failed
|
|
586
|
+
*/
|
|
587
|
+
failedAt: string | null;
|
|
588
|
+
/** @description The unique identifier for the Stream Run */
|
|
589
|
+
id: string;
|
|
590
|
+
/**
|
|
591
|
+
* @description The type of object
|
|
592
|
+
* @enum {string}
|
|
593
|
+
*/
|
|
594
|
+
object: StreamRunObject;
|
|
595
|
+
/**
|
|
596
|
+
* @description The status of the Stream Run
|
|
597
|
+
* @enum {string}
|
|
598
|
+
*/
|
|
599
|
+
status: StreamRunStatus;
|
|
600
|
+
/** @description The stream that the run is associated with */
|
|
601
|
+
streamId: string;
|
|
602
|
+
/**
|
|
603
|
+
* @description The type of the Stream Run
|
|
604
|
+
* @enum {string}
|
|
605
|
+
*/
|
|
606
|
+
type: StreamRunType;
|
|
607
|
+
/**
|
|
608
|
+
* Format: date-time
|
|
609
|
+
* @description When the run was last updated
|
|
610
|
+
*/
|
|
611
|
+
updatedAt: string;
|
|
612
|
+
};
|
|
613
|
+
UpdateStream: {
|
|
614
|
+
metadata?: {
|
|
615
|
+
[key: string]: string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* @description The status of the stream.
|
|
619
|
+
* @enum {string}
|
|
620
|
+
*/
|
|
621
|
+
status?: UpdateStreamStatus;
|
|
622
|
+
};
|
|
423
623
|
UpdateWebhookParameters: {
|
|
424
624
|
/** @description The events to trigger the webhook */
|
|
425
625
|
events?: components["schemas"]["EventType"][];
|
|
@@ -549,6 +749,8 @@ interface components {
|
|
|
549
749
|
* @enum {string}
|
|
550
750
|
*/
|
|
551
751
|
status: WebsetStatus;
|
|
752
|
+
/** @description The Streams for the Webset. */
|
|
753
|
+
streams: components["schemas"]["Stream"][];
|
|
552
754
|
/**
|
|
553
755
|
* Format: date-time
|
|
554
756
|
* @description The date and time the webset was updated
|
|
@@ -589,7 +791,7 @@ interface components {
|
|
|
589
791
|
/** @description The description of the enrichment task provided during the creation of the enrichment. */
|
|
590
792
|
description: string;
|
|
591
793
|
/** @description The format of the enrichment response. */
|
|
592
|
-
format:
|
|
794
|
+
format: WebsetEnrichmentFormat;
|
|
593
795
|
/** @description The unique identifier for the enrichment */
|
|
594
796
|
id: string;
|
|
595
797
|
/** @description The instructions for the enrichment Agent.
|
|
@@ -635,7 +837,6 @@ interface components {
|
|
|
635
837
|
websetId: string;
|
|
636
838
|
};
|
|
637
839
|
/** @enum {string} */
|
|
638
|
-
WebsetEnrichmentFormat: WebsetEnrichmentFormat;
|
|
639
840
|
WebsetEntity: components["schemas"]["WebsetCompanyEntity"] | components["schemas"]["WebsetPersonEntity"] | components["schemas"]["WebsetArticleEntity"] | components["schemas"]["WebsetResearchPaperEntity"] | components["schemas"]["WebsetCustomEntity"];
|
|
640
841
|
WebsetItem: {
|
|
641
842
|
/**
|
|
@@ -840,16 +1041,21 @@ interface components {
|
|
|
840
1041
|
type: "research_paper";
|
|
841
1042
|
};
|
|
842
1043
|
WebsetSearch: {
|
|
1044
|
+
/**
|
|
1045
|
+
* @description The behavior of the search when it is added to a Webset.
|
|
1046
|
+
*
|
|
1047
|
+
* - `override`: the search will replace the existing Items found in the Webset and evaluate them against the new criteria. Any Items that don't match the new criteria will be discarded.
|
|
1048
|
+
* - `append`: the search will add the new Items found to the existing Webset. Any Items that don't match the new criteria will be discarded.
|
|
1049
|
+
* @default override
|
|
1050
|
+
*/
|
|
1051
|
+
behavior: WebsetSearchBehavior;
|
|
843
1052
|
/**
|
|
844
1053
|
* Format: date-time
|
|
845
1054
|
* @description The date and time the search was canceled
|
|
846
1055
|
*/
|
|
847
1056
|
canceledAt: string | null;
|
|
848
|
-
/**
|
|
849
|
-
|
|
850
|
-
* @enum {string|null}
|
|
851
|
-
*/
|
|
852
|
-
canceledReason: WebsetSearchCanceledReason;
|
|
1057
|
+
/** @description The reason the search was canceled */
|
|
1058
|
+
canceledReason: WebsetSearchCanceledReason | null;
|
|
853
1059
|
/** @description The number of results the search will attempt to find. The actual number of results may be less than this number depending on the search complexity. */
|
|
854
1060
|
count: number;
|
|
855
1061
|
/**
|
|
@@ -911,6 +1117,7 @@ interface components {
|
|
|
911
1117
|
pathItems: never;
|
|
912
1118
|
}
|
|
913
1119
|
type CreateEnrichmentParameters = components["schemas"]["CreateEnrichmentParameters"];
|
|
1120
|
+
type CreateStreamParameters = components["schemas"]["CreateStreamParameters"];
|
|
914
1121
|
type CreateWebhookParameters = components["schemas"]["CreateWebhookParameters"];
|
|
915
1122
|
type CreateWebsetParameters = components["schemas"]["CreateWebsetParameters"];
|
|
916
1123
|
type CreateWebsetSearchParameters = components["schemas"]["CreateWebsetSearchParameters"];
|
|
@@ -918,10 +1125,15 @@ type EnrichmentResult = components["schemas"]["EnrichmentResult"];
|
|
|
918
1125
|
type Event = components["schemas"]["Event"];
|
|
919
1126
|
type GetWebsetResponse = components["schemas"]["GetWebsetResponse"];
|
|
920
1127
|
type ListEventsResponse = components["schemas"]["ListEventsResponse"];
|
|
1128
|
+
type ListStreamRunsResponse = components["schemas"]["ListStreamRunsResponse"];
|
|
1129
|
+
type ListStreamsResponse = components["schemas"]["ListStreamsResponse"];
|
|
921
1130
|
type ListWebhookAttemptsResponse = components["schemas"]["ListWebhookAttemptsResponse"];
|
|
922
1131
|
type ListWebhooksResponse = components["schemas"]["ListWebhooksResponse"];
|
|
923
1132
|
type ListWebsetItemResponse = components["schemas"]["ListWebsetItemResponse"];
|
|
924
1133
|
type ListWebsetsResponse = components["schemas"]["ListWebsetsResponse"];
|
|
1134
|
+
type Stream = components["schemas"]["Stream"];
|
|
1135
|
+
type StreamRun = components["schemas"]["StreamRun"];
|
|
1136
|
+
type UpdateStream = components["schemas"]["UpdateStream"];
|
|
925
1137
|
type UpdateWebhookParameters = components["schemas"]["UpdateWebhookParameters"];
|
|
926
1138
|
type UpdateWebsetRequest = components["schemas"]["UpdateWebsetRequest"];
|
|
927
1139
|
type Webhook = components["schemas"]["Webhook"];
|
|
@@ -938,9 +1150,6 @@ declare enum CreateEnrichmentParametersFormat {
|
|
|
938
1150
|
email = "email",
|
|
939
1151
|
phone = "phone"
|
|
940
1152
|
}
|
|
941
|
-
declare enum CreateWebsetSearchParametersBehaviour {
|
|
942
|
-
override = "override"
|
|
943
|
-
}
|
|
944
1153
|
declare enum EventType {
|
|
945
1154
|
webset_created = "webset.created",
|
|
946
1155
|
webset_deleted = "webset.deleted",
|
|
@@ -955,6 +1164,30 @@ declare enum EventType {
|
|
|
955
1164
|
webset_item_created = "webset.item.created",
|
|
956
1165
|
webset_item_enriched = "webset.item.enriched"
|
|
957
1166
|
}
|
|
1167
|
+
declare enum StreamObject {
|
|
1168
|
+
stream = "stream"
|
|
1169
|
+
}
|
|
1170
|
+
declare enum StreamStatus {
|
|
1171
|
+
open = "open",
|
|
1172
|
+
closed = "closed"
|
|
1173
|
+
}
|
|
1174
|
+
declare enum StreamRunObject {
|
|
1175
|
+
stream_run = "stream_run"
|
|
1176
|
+
}
|
|
1177
|
+
declare enum StreamRunStatus {
|
|
1178
|
+
created = "created",
|
|
1179
|
+
running = "running",
|
|
1180
|
+
completed = "completed",
|
|
1181
|
+
canceled = "canceled"
|
|
1182
|
+
}
|
|
1183
|
+
declare enum StreamRunType {
|
|
1184
|
+
search = "search",
|
|
1185
|
+
refresh = "refresh"
|
|
1186
|
+
}
|
|
1187
|
+
declare enum UpdateStreamStatus {
|
|
1188
|
+
open = "open",
|
|
1189
|
+
closed = "closed"
|
|
1190
|
+
}
|
|
958
1191
|
declare enum WebhookStatus {
|
|
959
1192
|
active = "active",
|
|
960
1193
|
inactive = "inactive"
|
|
@@ -978,23 +1211,28 @@ declare enum WebsetEnrichmentFormat {
|
|
|
978
1211
|
phone = "phone"
|
|
979
1212
|
}
|
|
980
1213
|
declare enum WebsetItemSource {
|
|
981
|
-
search = "search"
|
|
1214
|
+
search = "search",
|
|
1215
|
+
import = "import"
|
|
982
1216
|
}
|
|
983
1217
|
declare enum WebsetItemEvaluationSatisfied {
|
|
984
1218
|
yes = "yes",
|
|
985
1219
|
no = "no",
|
|
986
1220
|
unclear = "unclear"
|
|
987
1221
|
}
|
|
988
|
-
declare enum WebsetSearchCanceledReason {
|
|
989
|
-
webset_deleted = "webset_deleted",
|
|
990
|
-
webset_canceled = "webset_canceled"
|
|
991
|
-
}
|
|
992
1222
|
declare enum WebsetSearchStatus {
|
|
993
1223
|
created = "created",
|
|
994
1224
|
running = "running",
|
|
995
1225
|
completed = "completed",
|
|
996
1226
|
canceled = "canceled"
|
|
997
1227
|
}
|
|
1228
|
+
declare enum WebsetSearchBehavior {
|
|
1229
|
+
override = "override",
|
|
1230
|
+
append = "append"
|
|
1231
|
+
}
|
|
1232
|
+
declare enum WebsetSearchCanceledReason {
|
|
1233
|
+
webset_deleted = "webset_deleted",
|
|
1234
|
+
webset_canceled = "webset_canceled"
|
|
1235
|
+
}
|
|
998
1236
|
|
|
999
1237
|
/**
|
|
1000
1238
|
* Client for managing Webset Enrichments
|
|
@@ -1150,6 +1388,80 @@ declare class WebsetSearchesClient extends WebsetsBaseClient {
|
|
|
1150
1388
|
cancel(websetId: string, id: string): Promise<WebsetSearch>;
|
|
1151
1389
|
}
|
|
1152
1390
|
|
|
1391
|
+
/**
|
|
1392
|
+
* Client for managing Webset Streams
|
|
1393
|
+
*/
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Options for listing streams
|
|
1397
|
+
*/
|
|
1398
|
+
interface ListStreamsOptions extends PaginationParams {
|
|
1399
|
+
/**
|
|
1400
|
+
* The id of the Webset to list streams for
|
|
1401
|
+
*/
|
|
1402
|
+
websetId?: string;
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Client for managing Stream Runs
|
|
1406
|
+
*/
|
|
1407
|
+
declare class WebsetStreamRunsClient extends WebsetsBaseClient {
|
|
1408
|
+
/**
|
|
1409
|
+
* List all runs for a Stream
|
|
1410
|
+
* @param streamId The ID of the Stream
|
|
1411
|
+
* @param options Pagination options
|
|
1412
|
+
* @returns The list of Stream runs
|
|
1413
|
+
*/
|
|
1414
|
+
list(streamId: string, options?: PaginationParams): Promise<ListStreamRunsResponse>;
|
|
1415
|
+
/**
|
|
1416
|
+
* Get a specific Stream run
|
|
1417
|
+
* @param streamId The ID of the Stream
|
|
1418
|
+
* @param runId The ID of the Stream run
|
|
1419
|
+
* @returns The Stream run
|
|
1420
|
+
*/
|
|
1421
|
+
get(streamId: string, runId: string): Promise<StreamRun>;
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Client for managing Webset Streams
|
|
1425
|
+
*/
|
|
1426
|
+
declare class WebsetStreamsClient extends WebsetsBaseClient {
|
|
1427
|
+
/**
|
|
1428
|
+
* Client for managing Stream Runs
|
|
1429
|
+
*/
|
|
1430
|
+
runs: WebsetStreamRunsClient;
|
|
1431
|
+
constructor(client: Exa);
|
|
1432
|
+
/**
|
|
1433
|
+
* Create a Stream
|
|
1434
|
+
* @param params The stream parameters
|
|
1435
|
+
* @returns The created Stream
|
|
1436
|
+
*/
|
|
1437
|
+
create(params: CreateStreamParameters): Promise<Stream>;
|
|
1438
|
+
/**
|
|
1439
|
+
* Get a Stream by ID
|
|
1440
|
+
* @param id The ID of the Stream
|
|
1441
|
+
* @returns The Stream
|
|
1442
|
+
*/
|
|
1443
|
+
get(id: string): Promise<Stream>;
|
|
1444
|
+
/**
|
|
1445
|
+
* List all Streams
|
|
1446
|
+
* @param options Pagination and filtering options
|
|
1447
|
+
* @returns The list of Streams
|
|
1448
|
+
*/
|
|
1449
|
+
list(options?: ListStreamsOptions): Promise<ListStreamsResponse>;
|
|
1450
|
+
/**
|
|
1451
|
+
* Update a Stream
|
|
1452
|
+
* @param id The ID of the Stream
|
|
1453
|
+
* @param params The stream update parameters (status, metadata)
|
|
1454
|
+
* @returns The updated Stream
|
|
1455
|
+
*/
|
|
1456
|
+
update(id: string, params: UpdateStream): Promise<Stream>;
|
|
1457
|
+
/**
|
|
1458
|
+
* Delete a Stream
|
|
1459
|
+
* @param id The ID of the Stream
|
|
1460
|
+
* @returns The deleted Stream
|
|
1461
|
+
*/
|
|
1462
|
+
delete(id: string): Promise<Stream>;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1153
1465
|
/**
|
|
1154
1466
|
* Client for managing Webset Webhooks
|
|
1155
1467
|
*/
|
|
@@ -1267,6 +1579,10 @@ declare class WebsetsClient extends WebsetsBaseClient {
|
|
|
1267
1579
|
* Client for managing Webset Enrichments
|
|
1268
1580
|
*/
|
|
1269
1581
|
enrichments: WebsetEnrichmentsClient;
|
|
1582
|
+
/**
|
|
1583
|
+
* Client for managing Webset Streams
|
|
1584
|
+
*/
|
|
1585
|
+
streams: WebsetStreamsClient;
|
|
1270
1586
|
/**
|
|
1271
1587
|
* Client for managing Webset Webhooks
|
|
1272
1588
|
*/
|
|
@@ -1914,4 +2230,4 @@ declare class Exa {
|
|
|
1914
2230
|
private parseSSEStream;
|
|
1915
2231
|
}
|
|
1916
2232
|
|
|
1917
|
-
export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters,
|
|
2233
|
+
export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateStreamParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListStreamRunsResponse, type ListStreamsOptions, type ListStreamsResponse, type ListWebhooksOptions, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsOptions, type ListWebsetsResponse, type LivecrawlOptions, type RegularSearchOptions, ResearchClient, ResearchStatus, type ResearchTask, type SearchResponse, type SearchResult, type Stream, type StreamRun, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateStream, UpdateStreamStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetItem, WebsetItemEvaluationSatisfied, WebsetItemSource, WebsetItemsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetStreamsClient, WebsetWebhooksClient, WebsetsClient, Exa as default };
|