@graphrefly/graphrefly 0.5.0 → 0.7.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/README.md +30 -14
- package/dist/{chunk-5X3LAO3B.js → chunk-3EVXOI5C.js} +50 -5
- package/dist/chunk-3EVXOI5C.js.map +1 -0
- package/dist/chunk-47YJEZUJ.js +106 -0
- package/dist/chunk-47YJEZUJ.js.map +1 -0
- package/dist/{chunk-6W5SGIGB.js → chunk-BLCXEMAD.js} +129 -25
- package/dist/chunk-BLCXEMAD.js.map +1 -0
- package/dist/{chunk-QW7H3ICI.js → chunk-FGLZ5QID.js} +4 -4
- package/dist/{chunk-CP6MNKAA.js → chunk-ISGMZ2T3.js} +10 -4
- package/dist/{chunk-CP6MNKAA.js.map → chunk-ISGMZ2T3.js.map} +1 -1
- package/dist/{chunk-HP7OKEOE.js → chunk-L4J2K2RT.js} +3 -3
- package/dist/chunk-L4J2K2RT.js.map +1 -0
- package/dist/{chunk-ZERWUCGK.js → chunk-ONLYF6GA.js} +866 -206
- package/dist/chunk-ONLYF6GA.js.map +1 -0
- package/dist/{chunk-Z4Y4FMQN.js → chunk-OSR3G3DP.js} +7 -7
- package/dist/{chunk-KWXPDASV.js → chunk-PEBORXRA.js} +2 -2
- package/dist/chunk-WZ2Z2CRV.js +32 -0
- package/dist/chunk-WZ2Z2CRV.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +226 -41
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +4 -4
- package/dist/compat/nestjs/index.d.ts +4 -4
- package/dist/compat/nestjs/index.js +8 -7
- package/dist/core/index.cjs +134 -20
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +10 -4
- package/dist/extra/index.cjs +939 -209
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +4 -4
- package/dist/extra/index.d.ts +4 -4
- package/dist/extra/index.js +26 -3
- package/dist/graph/index.cjs +226 -41
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +3 -3
- package/dist/graph/index.d.ts +3 -3
- package/dist/graph/index.js +4 -4
- package/dist/{graph-CL_ZDAj9.d.cts → graph-B3BoJjcb.d.cts} +58 -7
- package/dist/{graph-D18qmsNm.d.ts → graph-CmiUuhaN.d.ts} +58 -7
- package/dist/{index-B7eOdgEx.d.ts → index-Bf2X1YSI.d.ts} +3 -3
- package/dist/{index-BvhgZRHK.d.cts → index-Bl7hJcc3.d.cts} +4 -2
- package/dist/{index-Bvy_6CaN.d.ts → index-BrgtEG-C.d.ts} +47 -4
- package/dist/{index-D_geH2Bm.d.cts → index-BsuKSs4L.d.cts} +3 -3
- package/dist/{index-BtK55IE2.d.ts → index-CsUq2rrK.d.ts} +4 -2
- package/dist/{index-C3BMRmmp.d.cts → index-D0cx-Yht.d.cts} +3 -3
- package/dist/{index-Cz8og7-L.d.cts → index-D1hgSTzr.d.cts} +488 -60
- package/dist/{index-C5mqLhMX.d.cts → index-D8NIq6om.d.cts} +47 -4
- package/dist/{index-CP_QvbWu.d.ts → index-DFFNKYig.d.ts} +3 -3
- package/dist/{index-C3LRU4jB.d.ts → index-Pm68AYPh.d.ts} +488 -60
- package/dist/index.cjs +3005 -1776
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +112 -14
- package/dist/index.d.ts +112 -14
- package/dist/index.js +396 -27
- package/dist/index.js.map +1 -1
- package/dist/{meta-BsF6Sag9.d.cts → meta-BJEU8fYz.d.cts} +31 -4
- package/dist/{meta-BsF6Sag9.d.ts → meta-BJEU8fYz.d.ts} +31 -4
- package/dist/patterns/reactive-layout/index.cjs +226 -41
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +3 -3
- package/dist/patterns/reactive-layout/index.d.ts +3 -3
- package/dist/patterns/reactive-layout/index.js +4 -4
- package/dist/{reactive-log-BfvfNWQh.d.cts → reactive-log-CAXzJ7hw.d.cts} +2 -2
- package/dist/{reactive-log-ohLmTXoZ.d.ts → reactive-log-DwNhOe0g.d.ts} +2 -2
- package/package.json +29 -18
- package/dist/chunk-5X3LAO3B.js.map +0 -1
- package/dist/chunk-6W5SGIGB.js.map +0 -1
- package/dist/chunk-HP7OKEOE.js.map +0 -1
- package/dist/chunk-O3PI7W45.js +0 -68
- package/dist/chunk-O3PI7W45.js.map +0 -1
- package/dist/chunk-ZERWUCGK.js.map +0 -1
- /package/dist/{chunk-QW7H3ICI.js.map → chunk-FGLZ5QID.js.map} +0 -0
- /package/dist/{chunk-Z4Y4FMQN.js.map → chunk-OSR3G3DP.js.map} +0 -0
- /package/dist/{chunk-KWXPDASV.js.map → chunk-PEBORXRA.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as Node, a as NodeOptions, M as Message,
|
|
2
|
-
import {
|
|
3
|
-
import { V as Versioned, a as ReactiveLogBundle, b as ReactiveLogOptions, R as ReactiveLogSnapshot, l as logSlice, o as observeGraph$, c as observeNode$, r as reactiveLog, t as toMessages$, d as toObservable } from './reactive-log-
|
|
1
|
+
import { N as Node, a as NodeOptions, M as Message, k as Messages } from './meta-BJEU8fYz.cjs';
|
|
2
|
+
import { G as Graph } from './graph-B3BoJjcb.cjs';
|
|
3
|
+
import { V as Versioned, a as ReactiveLogBundle, b as ReactiveLogOptions, R as ReactiveLogSnapshot, l as logSlice, o as observeGraph$, c as observeNode$, r as reactiveLog, t as toMessages$, d as toObservable } from './reactive-log-CAXzJ7hw.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Backoff strategies for {@link retry} (roadmap §3.1). Delays are in **nanoseconds**.
|
|
@@ -376,6 +376,83 @@ type WithStatusBundle<T> = {
|
|
|
376
376
|
declare function withStatus<T>(src: Node<T>, options?: {
|
|
377
377
|
initialStatus?: StatusValue;
|
|
378
378
|
}): WithStatusBundle<T>;
|
|
379
|
+
/**
|
|
380
|
+
* Thrown by {@link timeout} when no `DATA` arrives within the deadline.
|
|
381
|
+
*
|
|
382
|
+
* @category extra
|
|
383
|
+
*/
|
|
384
|
+
declare class TimeoutError extends Error {
|
|
385
|
+
name: string;
|
|
386
|
+
constructor(ns: number);
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* On upstream terminal `ERROR`, emit a fallback value instead of propagating the error.
|
|
390
|
+
*
|
|
391
|
+
* If `fb` is a plain value, emits `[[DATA, fb], [COMPLETE]]` on error.
|
|
392
|
+
* If `fb` is a `Node`, switches to that node's stream on error (all further messages
|
|
393
|
+
* from the fallback node are forwarded).
|
|
394
|
+
*
|
|
395
|
+
* Composes naturally with {@link retry}: `pipe(source, retry({count:3}), fallback("default"))`.
|
|
396
|
+
*
|
|
397
|
+
* @param source - Upstream node.
|
|
398
|
+
* @param fb - Fallback value or fallback node to switch to on error.
|
|
399
|
+
* @returns Node that replaces errors with the fallback.
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```ts
|
|
403
|
+
* import { fallback, throwError } from "@graphrefly/graphrefly-ts";
|
|
404
|
+
*
|
|
405
|
+
* const safe = fallback(throwError(new Error("boom")), "default");
|
|
406
|
+
* safe.get(); // "default" after subscribe
|
|
407
|
+
* ```
|
|
408
|
+
*
|
|
409
|
+
* @category extra
|
|
410
|
+
*/
|
|
411
|
+
declare function fallback<T>(source: Node<T>, fb: T | Node<T>): Node<T>;
|
|
412
|
+
/**
|
|
413
|
+
* Emits `ERROR` with {@link TimeoutError} if no `DATA` arrives within the deadline.
|
|
414
|
+
*
|
|
415
|
+
* The timer starts on subscription and resets on each `DATA`. `DIRTY` does NOT reset
|
|
416
|
+
* the timer. Terminal messages (`COMPLETE`/`ERROR`) cancel the timer.
|
|
417
|
+
*
|
|
418
|
+
* @param source - Upstream node.
|
|
419
|
+
* @param timeoutNs - Deadline in nanoseconds.
|
|
420
|
+
* @returns Node that errors on timeout.
|
|
421
|
+
*
|
|
422
|
+
* @example
|
|
423
|
+
* ```ts
|
|
424
|
+
* import { timeout, never, NS_PER_SEC } from "@graphrefly/graphrefly-ts";
|
|
425
|
+
*
|
|
426
|
+
* const t = timeout(never(), 5 * NS_PER_SEC);
|
|
427
|
+
* // After 5 seconds with no DATA: [[ERROR, TimeoutError]]
|
|
428
|
+
* ```
|
|
429
|
+
*
|
|
430
|
+
* @category extra
|
|
431
|
+
*/
|
|
432
|
+
declare function timeout<T>(source: Node<T>, timeoutNs: number): Node<T>;
|
|
433
|
+
/**
|
|
434
|
+
* Memoize the last `DATA` value with a TTL. On resubscription (or new subscriber),
|
|
435
|
+
* if a cached value exists within `ttlNs`, emit it immediately then forward live
|
|
436
|
+
* upstream messages.
|
|
437
|
+
*
|
|
438
|
+
* Stale-while-revalidate pattern: subscribers always get the cached value first
|
|
439
|
+
* (if within TTL), then see live updates as they arrive.
|
|
440
|
+
*
|
|
441
|
+
* @param source - Upstream node.
|
|
442
|
+
* @param ttlNs - Time-to-live in nanoseconds.
|
|
443
|
+
* @returns Node with TTL-based caching.
|
|
444
|
+
*
|
|
445
|
+
* @example
|
|
446
|
+
* ```ts
|
|
447
|
+
* import { cache, state, NS_PER_SEC } from "@graphrefly/graphrefly-ts";
|
|
448
|
+
*
|
|
449
|
+
* const src = state(42);
|
|
450
|
+
* const c = cache(src, 10 * NS_PER_SEC);
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* @category extra
|
|
454
|
+
*/
|
|
455
|
+
declare function cache<T>(source: Node<T>, ttlNs: number): Node<T>;
|
|
379
456
|
|
|
380
457
|
/**
|
|
381
458
|
* Core reactive sources, sinks, and utilities (roadmap §2.3).
|
|
@@ -792,6 +869,15 @@ type SinkTransportError = {
|
|
|
792
869
|
error: Error;
|
|
793
870
|
value: unknown;
|
|
794
871
|
};
|
|
872
|
+
/** Handle returned by per-record and buffered sinks. */
|
|
873
|
+
type SinkHandle = {
|
|
874
|
+
/** Stop the sink (unsubscribe from source). */
|
|
875
|
+
dispose: () => void;
|
|
876
|
+
/** Reactive node that emits the latest transport error (or `null`). */
|
|
877
|
+
errors: Node<SinkTransportError | null>;
|
|
878
|
+
/** Manually drain the internal buffer (buffered sinks only). */
|
|
879
|
+
flush?: () => Promise<void>;
|
|
880
|
+
};
|
|
795
881
|
type ExtraOpts$1 = Omit<NodeOptions, "describeKind">;
|
|
796
882
|
/** WebSocket-like transport accepted by {@link fromWebSocket} / {@link toWebSocket}. */
|
|
797
883
|
type WebSocketLike = {
|
|
@@ -1355,7 +1441,7 @@ type ToKafkaOptions<T> = ExtraOpts$1 & {
|
|
|
1355
1441
|
*
|
|
1356
1442
|
* @category extra
|
|
1357
1443
|
*/
|
|
1358
|
-
declare function toKafka<T>(source: Node<T>, kafkaProducer: KafkaProducerLike, topic: string, opts?: ToKafkaOptions<T>):
|
|
1444
|
+
declare function toKafka<T>(source: Node<T>, kafkaProducer: KafkaProducerLike, topic: string, opts?: ToKafkaOptions<T>): SinkHandle;
|
|
1359
1445
|
/** Duck-typed Redis client (compatible with ioredis, redis). */
|
|
1360
1446
|
type RedisClientLike = {
|
|
1361
1447
|
xadd(key: string, id: string, ...fieldsAndValues: string[]): Promise<string>;
|
|
@@ -1411,7 +1497,7 @@ type ToRedisStreamOptions<T> = ExtraOpts$1 & {
|
|
|
1411
1497
|
*
|
|
1412
1498
|
* @category extra
|
|
1413
1499
|
*/
|
|
1414
|
-
declare function toRedisStream<T>(source: Node<T>, client: RedisClientLike, key: string, opts?: ToRedisStreamOptions<T>):
|
|
1500
|
+
declare function toRedisStream<T>(source: Node<T>, client: RedisClientLike, key: string, opts?: ToRedisStreamOptions<T>): SinkHandle;
|
|
1415
1501
|
/** Parsed CSV row. */
|
|
1416
1502
|
type CSVRow = Record<string, string>;
|
|
1417
1503
|
/** Options for {@link fromCSV}. */
|
|
@@ -1602,7 +1688,7 @@ type ToPulsarOptions<T> = ExtraOpts$1 & {
|
|
|
1602
1688
|
*
|
|
1603
1689
|
* @category extra
|
|
1604
1690
|
*/
|
|
1605
|
-
declare function toPulsar<T>(source: Node<T>, pulsarProducer: PulsarProducerLike, opts?: ToPulsarOptions<T>):
|
|
1691
|
+
declare function toPulsar<T>(source: Node<T>, pulsarProducer: PulsarProducerLike, opts?: ToPulsarOptions<T>): SinkHandle;
|
|
1606
1692
|
/** Duck-typed NATS subscription (compatible with nats.js). */
|
|
1607
1693
|
type NATSSubscriptionLike = AsyncIterable<{
|
|
1608
1694
|
subject: string;
|
|
@@ -1686,7 +1772,7 @@ type ToNATSOptions<T> = ExtraOpts$1 & {
|
|
|
1686
1772
|
*
|
|
1687
1773
|
* @category extra
|
|
1688
1774
|
*/
|
|
1689
|
-
declare function toNATS<T>(source: Node<T>, client: NATSClientLike, subject: string, opts?: ToNATSOptions<T>):
|
|
1775
|
+
declare function toNATS<T>(source: Node<T>, client: NATSClientLike, subject: string, opts?: ToNATSOptions<T>): SinkHandle;
|
|
1690
1776
|
/** Duck-typed RabbitMQ channel (compatible with amqplib). */
|
|
1691
1777
|
type RabbitMQChannelLike = {
|
|
1692
1778
|
consume(queue: string, onMessage: (msg: {
|
|
@@ -1778,17 +1864,15 @@ type ToRabbitMQOptions<T> = ExtraOpts$1 & {
|
|
|
1778
1864
|
*
|
|
1779
1865
|
* @category extra
|
|
1780
1866
|
*/
|
|
1781
|
-
declare function toRabbitMQ<T>(source: Node<T>, channel: RabbitMQChannelLike, exchange: string, opts?: ToRabbitMQOptions<T>):
|
|
1867
|
+
declare function toRabbitMQ<T>(source: Node<T>, channel: RabbitMQChannelLike, exchange: string, opts?: ToRabbitMQOptions<T>): SinkHandle;
|
|
1782
1868
|
/** Handle returned by buffered sinks. `flush()` drains remaining buffer. */
|
|
1783
|
-
type BufferedSinkHandle = {
|
|
1784
|
-
/** Stop the sink and cancel the flush timer. */
|
|
1785
|
-
dispose: () => void;
|
|
1869
|
+
type BufferedSinkHandle = SinkHandle & {
|
|
1786
1870
|
/** Manually drain the internal buffer. */
|
|
1787
1871
|
flush: () => Promise<void>;
|
|
1788
1872
|
};
|
|
1789
1873
|
/** Duck-typed writable file handle (compatible with `fs.createWriteStream`). */
|
|
1790
1874
|
type FileWriterLike = {
|
|
1791
|
-
write(data: string | Uint8Array): boolean |
|
|
1875
|
+
write(data: string | Uint8Array): boolean | undefined;
|
|
1792
1876
|
end(): void;
|
|
1793
1877
|
};
|
|
1794
1878
|
/** Options for {@link toFile}. */
|
|
@@ -1937,7 +2021,7 @@ type ToPostgresOptions<T> = ExtraOpts$1 & {
|
|
|
1937
2021
|
*
|
|
1938
2022
|
* @category extra
|
|
1939
2023
|
*/
|
|
1940
|
-
declare function toPostgres<T>(source: Node<T>, client: PostgresClientLike, table: string, opts?: ToPostgresOptions<T>):
|
|
2024
|
+
declare function toPostgres<T>(source: Node<T>, client: PostgresClientLike, table: string, opts?: ToPostgresOptions<T>): SinkHandle;
|
|
1941
2025
|
/** Duck-typed MongoDB collection (compatible with `mongodb` driver). */
|
|
1942
2026
|
type MongoCollectionLike = {
|
|
1943
2027
|
insertOne(doc: unknown): Promise<unknown>;
|
|
@@ -1958,7 +2042,7 @@ type ToMongoOptions<T> = ExtraOpts$1 & {
|
|
|
1958
2042
|
*
|
|
1959
2043
|
* @category extra
|
|
1960
2044
|
*/
|
|
1961
|
-
declare function toMongo<T>(source: Node<T>, collection: MongoCollectionLike, opts?: ToMongoOptions<T>):
|
|
2045
|
+
declare function toMongo<T>(source: Node<T>, collection: MongoCollectionLike, opts?: ToMongoOptions<T>): SinkHandle;
|
|
1962
2046
|
/** Loki log stream entry. */
|
|
1963
2047
|
type LokiStream = {
|
|
1964
2048
|
stream: Record<string, string>;
|
|
@@ -1990,7 +2074,7 @@ type ToLokiOptions<T> = ExtraOpts$1 & {
|
|
|
1990
2074
|
*
|
|
1991
2075
|
* @category extra
|
|
1992
2076
|
*/
|
|
1993
|
-
declare function toLoki<T>(source: Node<T>, client: LokiClientLike, opts?: ToLokiOptions<T>):
|
|
2077
|
+
declare function toLoki<T>(source: Node<T>, client: LokiClientLike, opts?: ToLokiOptions<T>): SinkHandle;
|
|
1994
2078
|
/** Duck-typed Tempo span push client (OTLP/HTTP shape). */
|
|
1995
2079
|
type TempoClientLike = {
|
|
1996
2080
|
push(payload: {
|
|
@@ -2013,7 +2097,7 @@ type ToTempoOptions<T> = ExtraOpts$1 & {
|
|
|
2013
2097
|
*
|
|
2014
2098
|
* @category extra
|
|
2015
2099
|
*/
|
|
2016
|
-
declare function toTempo<T>(source: Node<T>, client: TempoClientLike, opts?: ToTempoOptions<T>):
|
|
2100
|
+
declare function toTempo<T>(source: Node<T>, client: TempoClientLike, opts?: ToTempoOptions<T>): SinkHandle;
|
|
2017
2101
|
/** Options for {@link checkpointToS3}. */
|
|
2018
2102
|
type CheckpointToS3Options = {
|
|
2019
2103
|
/** S3 key prefix. Default: `"checkpoints/"`. */
|
|
@@ -2037,7 +2121,7 @@ type CheckpointToS3Options = {
|
|
|
2037
2121
|
*/
|
|
2038
2122
|
declare function checkpointToS3(graph: {
|
|
2039
2123
|
autoCheckpoint: (adapter: {
|
|
2040
|
-
save(data: unknown): void;
|
|
2124
|
+
save(key: string, data: unknown): void;
|
|
2041
2125
|
}, opts?: unknown) => {
|
|
2042
2126
|
dispose(): void;
|
|
2043
2127
|
};
|
|
@@ -2072,7 +2156,7 @@ type CheckpointToRedisOptions = {
|
|
|
2072
2156
|
*/
|
|
2073
2157
|
declare function checkpointToRedis(graph: {
|
|
2074
2158
|
autoCheckpoint: (adapter: {
|
|
2075
|
-
save(data: unknown): void;
|
|
2159
|
+
save(key: string, data: unknown): void;
|
|
2076
2160
|
}, opts?: unknown) => {
|
|
2077
2161
|
dispose(): void;
|
|
2078
2162
|
};
|
|
@@ -2080,6 +2164,209 @@ declare function checkpointToRedis(graph: {
|
|
|
2080
2164
|
}, client: RedisCheckpointClientLike, opts?: CheckpointToRedisOptions): {
|
|
2081
2165
|
dispose(): void;
|
|
2082
2166
|
};
|
|
2167
|
+
/**
|
|
2168
|
+
* Duck-typed synchronous SQLite database.
|
|
2169
|
+
*
|
|
2170
|
+
* Compatible with `better-sqlite3` (`.prepare().all()` / `.prepare().run()`)
|
|
2171
|
+
* and Node.js `node:sqlite` `DatabaseSync`. The user wraps their driver behind
|
|
2172
|
+
* this uniform contract — method name `query` matches the project-wide
|
|
2173
|
+
* convention (`PostgresClientLike.query`, `ClickHouseClientLike.query`).
|
|
2174
|
+
*/
|
|
2175
|
+
type SqliteDbLike = {
|
|
2176
|
+
query(sql: string, params?: unknown[]): unknown[];
|
|
2177
|
+
};
|
|
2178
|
+
/** Options for {@link fromSqlite}. */
|
|
2179
|
+
type FromSqliteOptions<T> = ExtraOpts$1 & {
|
|
2180
|
+
/** Map a raw row object to the desired type. Default: identity cast. */
|
|
2181
|
+
mapRow?: (row: unknown) => T;
|
|
2182
|
+
/** Bind parameters for the query. */
|
|
2183
|
+
params?: unknown[];
|
|
2184
|
+
};
|
|
2185
|
+
/**
|
|
2186
|
+
* One-shot SQLite query as a reactive source.
|
|
2187
|
+
*
|
|
2188
|
+
* Executes `query` synchronously via `db.query()`, emits one `DATA` per result
|
|
2189
|
+
* row, then `COMPLETE`. Compose with `switchMap` + `fromTimer` / `fromFSWatch`
|
|
2190
|
+
* for periodic or change-driven re-query.
|
|
2191
|
+
*
|
|
2192
|
+
* @param db - SQLite database (caller owns connection).
|
|
2193
|
+
* @param query - SQL string to execute.
|
|
2194
|
+
* @param opts - Row mapper, params, and node options.
|
|
2195
|
+
* @returns `Node<T>` — one `DATA` per row, then `COMPLETE`.
|
|
2196
|
+
*
|
|
2197
|
+
* @example
|
|
2198
|
+
* ```ts
|
|
2199
|
+
* import Database from "better-sqlite3";
|
|
2200
|
+
* import { fromSqlite } from "@graphrefly/graphrefly-ts";
|
|
2201
|
+
*
|
|
2202
|
+
* const raw = new Database("app.db");
|
|
2203
|
+
* const db = { query: (sql, params) => raw.prepare(sql).all(...(params ?? [])) };
|
|
2204
|
+
* const rows$ = fromSqlite(db, "SELECT * FROM users WHERE active = ?", { params: [1] });
|
|
2205
|
+
* ```
|
|
2206
|
+
*
|
|
2207
|
+
* @category extra
|
|
2208
|
+
*/
|
|
2209
|
+
declare function fromSqlite<T = unknown>(db: SqliteDbLike, query: string, opts?: FromSqliteOptions<T>): Node<T>;
|
|
2210
|
+
/** Options for {@link toSqlite}. */
|
|
2211
|
+
type ToSqliteOptions<T> = ExtraOpts$1 & {
|
|
2212
|
+
/** Build SQL + params for an insert. Default: JSON insert into `(data)` column. */
|
|
2213
|
+
toSQL?: (value: T, table: string) => {
|
|
2214
|
+
sql: string;
|
|
2215
|
+
params: unknown[];
|
|
2216
|
+
};
|
|
2217
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
2218
|
+
/**
|
|
2219
|
+
* When `true`, buffer DATA values and execute all inserts inside a single
|
|
2220
|
+
* `BEGIN`/`COMMIT` transaction when the batch drains. This avoids per-row
|
|
2221
|
+
* fsync overhead and dramatically reduces event-loop blocking for
|
|
2222
|
+
* high-throughput sources. The first insert error stops the batch and
|
|
2223
|
+
* triggers a `ROLLBACK`; the error is reported via `onTransportError`.
|
|
2224
|
+
*/
|
|
2225
|
+
batchInsert?: boolean;
|
|
2226
|
+
/** Auto-flush when buffer reaches this size. Default: `1000`. Only applies when `batchInsert` is `true`. */
|
|
2227
|
+
maxBatchSize?: number;
|
|
2228
|
+
/** Periodic flush interval in ms. `0` = no timer (flush on terminal messages only). Default: `0`. Only applies when `batchInsert` is `true`. */
|
|
2229
|
+
flushIntervalMs?: number;
|
|
2230
|
+
};
|
|
2231
|
+
/**
|
|
2232
|
+
* SQLite sink — inserts each upstream `DATA` value as a row.
|
|
2233
|
+
*
|
|
2234
|
+
* Follows the same pattern as {@link toPostgres} / {@link toMongo}. Since SQLite
|
|
2235
|
+
* is synchronous, errors propagate immediately (no `void promise.catch`).
|
|
2236
|
+
*
|
|
2237
|
+
* @param source - Upstream node.
|
|
2238
|
+
* @param db - SQLite database (caller owns connection).
|
|
2239
|
+
* @param table - Target table name.
|
|
2240
|
+
* @param opts - SQL builder and error options.
|
|
2241
|
+
* @returns Unsubscribe function.
|
|
2242
|
+
*
|
|
2243
|
+
* @example
|
|
2244
|
+
* ```ts
|
|
2245
|
+
* import Database from "better-sqlite3";
|
|
2246
|
+
* import { toSqlite, state } from "@graphrefly/graphrefly-ts";
|
|
2247
|
+
*
|
|
2248
|
+
* const raw = new Database("app.db");
|
|
2249
|
+
* const db = { query: (sql, params) => (raw.prepare(sql).run(...(params ?? [])), []) };
|
|
2250
|
+
* const source = state({ name: "Alice", score: 42 });
|
|
2251
|
+
* const unsub = toSqlite(source, db, "events");
|
|
2252
|
+
* ```
|
|
2253
|
+
*
|
|
2254
|
+
* @category extra
|
|
2255
|
+
*/
|
|
2256
|
+
declare function toSqlite<T>(source: Node<T>, db: SqliteDbLike, table: string, opts?: ToSqliteOptions<T>): SinkHandle;
|
|
2257
|
+
/**
|
|
2258
|
+
* Duck-typed Prisma model delegate.
|
|
2259
|
+
*
|
|
2260
|
+
* Compatible with any Prisma model's `findMany` method (e.g. `prisma.user`).
|
|
2261
|
+
* The consumer passes the model delegate directly — no dependency on `@prisma/client`.
|
|
2262
|
+
*/
|
|
2263
|
+
type PrismaModelLike<T = unknown> = {
|
|
2264
|
+
findMany(args?: unknown): Promise<T[]>;
|
|
2265
|
+
};
|
|
2266
|
+
/** Options for {@link fromPrisma}. */
|
|
2267
|
+
type FromPrismaOptions<T, U = T> = ExtraOpts$1 & {
|
|
2268
|
+
/** Prisma `findMany` args (where, orderBy, select, include, take, skip, etc.). */
|
|
2269
|
+
args?: unknown;
|
|
2270
|
+
/** Map each row to the desired shape. Default: identity cast. */
|
|
2271
|
+
mapRow?: (row: T) => U;
|
|
2272
|
+
};
|
|
2273
|
+
/**
|
|
2274
|
+
* One-shot Prisma query as a reactive source.
|
|
2275
|
+
*
|
|
2276
|
+
* Calls `model.findMany(args)`, emits one `DATA` per result row, then `COMPLETE`.
|
|
2277
|
+
* Compose with `switchMap` + `fromTimer` for periodic re-query.
|
|
2278
|
+
*
|
|
2279
|
+
* @param model - Prisma model delegate (e.g. `prisma.user`).
|
|
2280
|
+
* @param opts - `findMany` args, row mapper, and node options.
|
|
2281
|
+
* @returns `Node<U>` — one `DATA` per row, then `COMPLETE`.
|
|
2282
|
+
*
|
|
2283
|
+
* @example
|
|
2284
|
+
* ```ts
|
|
2285
|
+
* import { PrismaClient } from "@prisma/client";
|
|
2286
|
+
* import { fromPrisma } from "@graphrefly/graphrefly-ts";
|
|
2287
|
+
*
|
|
2288
|
+
* const prisma = new PrismaClient();
|
|
2289
|
+
* const activeUsers = fromPrisma(prisma.user, {
|
|
2290
|
+
* args: { where: { active: true } },
|
|
2291
|
+
* });
|
|
2292
|
+
* ```
|
|
2293
|
+
*
|
|
2294
|
+
* @category extra
|
|
2295
|
+
*/
|
|
2296
|
+
declare function fromPrisma<T = unknown, U = T>(model: PrismaModelLike<T>, opts?: FromPrismaOptions<T, U>): Node<U>;
|
|
2297
|
+
/**
|
|
2298
|
+
* Duck-typed Drizzle query builder result.
|
|
2299
|
+
*
|
|
2300
|
+
* Drizzle query builders (e.g. `db.select().from(users)`) expose `.execute()`
|
|
2301
|
+
* which returns `Promise<T[]>`. This interface captures that contract without
|
|
2302
|
+
* depending on `drizzle-orm`.
|
|
2303
|
+
*/
|
|
2304
|
+
type DrizzleQueryLike<T = unknown> = {
|
|
2305
|
+
execute(): Promise<T[]>;
|
|
2306
|
+
};
|
|
2307
|
+
/** Options for {@link fromDrizzle}. */
|
|
2308
|
+
type FromDrizzleOptions<T, U = T> = ExtraOpts$1 & {
|
|
2309
|
+
/** Map each row to the desired shape. Default: identity cast. */
|
|
2310
|
+
mapRow?: (row: T) => U;
|
|
2311
|
+
};
|
|
2312
|
+
/**
|
|
2313
|
+
* One-shot Drizzle query as a reactive source.
|
|
2314
|
+
*
|
|
2315
|
+
* Calls `query.execute()`, emits one `DATA` per result row, then `COMPLETE`.
|
|
2316
|
+
* Compose with `switchMap` + `fromTimer` for periodic re-query.
|
|
2317
|
+
*
|
|
2318
|
+
* @param query - Drizzle query builder (e.g. `db.select().from(users).where(...)`).
|
|
2319
|
+
* @param opts - Row mapper and node options.
|
|
2320
|
+
* @returns `Node<U>` — one `DATA` per row, then `COMPLETE`.
|
|
2321
|
+
*
|
|
2322
|
+
* @example
|
|
2323
|
+
* ```ts
|
|
2324
|
+
* import { drizzle } from "drizzle-orm/node-postgres";
|
|
2325
|
+
* import { fromDrizzle } from "@graphrefly/graphrefly-ts";
|
|
2326
|
+
*
|
|
2327
|
+
* const db = drizzle(pool);
|
|
2328
|
+
* const rows$ = fromDrizzle(db.select().from(users).where(eq(users.active, true)));
|
|
2329
|
+
* ```
|
|
2330
|
+
*
|
|
2331
|
+
* @category extra
|
|
2332
|
+
*/
|
|
2333
|
+
declare function fromDrizzle<T = unknown, U = T>(query: DrizzleQueryLike<T>, opts?: FromDrizzleOptions<T, U>): Node<U>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Duck-typed Kysely query builder result.
|
|
2336
|
+
*
|
|
2337
|
+
* Kysely query builders expose `.execute()` which returns `Promise<T[]>`.
|
|
2338
|
+
* This interface captures that contract without depending on `kysely`.
|
|
2339
|
+
*/
|
|
2340
|
+
type KyselyQueryLike<T = unknown> = {
|
|
2341
|
+
execute(): Promise<T[]>;
|
|
2342
|
+
};
|
|
2343
|
+
/** Options for {@link fromKysely}. */
|
|
2344
|
+
type FromKyselyOptions<T, U = T> = ExtraOpts$1 & {
|
|
2345
|
+
/** Map each row to the desired shape. Default: identity cast. */
|
|
2346
|
+
mapRow?: (row: T) => U;
|
|
2347
|
+
};
|
|
2348
|
+
/**
|
|
2349
|
+
* One-shot Kysely query as a reactive source.
|
|
2350
|
+
*
|
|
2351
|
+
* Calls `query.execute()`, emits one `DATA` per result row, then `COMPLETE`.
|
|
2352
|
+
* Compose with `switchMap` + `fromTimer` for periodic re-query.
|
|
2353
|
+
*
|
|
2354
|
+
* @param query - Kysely query builder (e.g. `db.selectFrom("users").selectAll()`).
|
|
2355
|
+
* @param opts - Row mapper and node options.
|
|
2356
|
+
* @returns `Node<U>` — one `DATA` per row, then `COMPLETE`.
|
|
2357
|
+
*
|
|
2358
|
+
* @example
|
|
2359
|
+
* ```ts
|
|
2360
|
+
* import { Kysely, PostgresDialect } from "kysely";
|
|
2361
|
+
* import { fromKysely } from "@graphrefly/graphrefly-ts";
|
|
2362
|
+
*
|
|
2363
|
+
* const db = new Kysely<DB>({ dialect: new PostgresDialect({ pool }) });
|
|
2364
|
+
* const rows$ = fromKysely(db.selectFrom("users").selectAll().where("active", "=", true));
|
|
2365
|
+
* ```
|
|
2366
|
+
*
|
|
2367
|
+
* @category extra
|
|
2368
|
+
*/
|
|
2369
|
+
declare function fromKysely<T = unknown, U = T>(query: KyselyQueryLike<T>, opts?: FromKyselyOptions<T, U>): Node<U>;
|
|
2083
2370
|
|
|
2084
2371
|
/**
|
|
2085
2372
|
* Watermark-based backpressure controller — reactive PAUSE/RESUME flow control.
|
|
@@ -2148,11 +2435,17 @@ declare function createWatermarkController(sendUp: (messages: Messages) => void,
|
|
|
2148
2435
|
*/
|
|
2149
2436
|
|
|
2150
2437
|
/**
|
|
2151
|
-
*
|
|
2438
|
+
* Key-value persistence contract (roadmap §3.1 + §3.1c).
|
|
2439
|
+
*
|
|
2440
|
+
* Each adapter stores opaque JSON-serializable blobs under caller-provided string keys.
|
|
2441
|
+
* Used by {@link saveGraphCheckpoint}/{@link restoreGraphCheckpoint} (key = graph name),
|
|
2442
|
+
* {@link Graph.autoCheckpoint} (key = graph name), and {@link cascadingCache}/{@link tieredStorage}
|
|
2443
|
+
* (key = cache entry key).
|
|
2152
2444
|
*/
|
|
2153
2445
|
interface CheckpointAdapter {
|
|
2154
|
-
save(data:
|
|
2155
|
-
load():
|
|
2446
|
+
save(key: string, data: unknown): void;
|
|
2447
|
+
load(key: string): unknown | null;
|
|
2448
|
+
clear(key: string): void;
|
|
2156
2449
|
}
|
|
2157
2450
|
/**
|
|
2158
2451
|
* In-memory adapter (process-local; useful for tests).
|
|
@@ -2161,36 +2454,40 @@ interface CheckpointAdapter {
|
|
|
2161
2454
|
*/
|
|
2162
2455
|
declare class MemoryCheckpointAdapter implements CheckpointAdapter {
|
|
2163
2456
|
#private;
|
|
2164
|
-
save(data:
|
|
2165
|
-
load():
|
|
2457
|
+
save(key: string, data: unknown): void;
|
|
2458
|
+
load(key: string): unknown | null;
|
|
2459
|
+
clear(key: string): void;
|
|
2166
2460
|
}
|
|
2167
2461
|
/**
|
|
2168
|
-
* Stores JSON-cloned
|
|
2462
|
+
* Stores JSON-cloned values under caller keys inside a caller-owned record (tests / embedding).
|
|
2169
2463
|
*
|
|
2170
2464
|
* @category extra
|
|
2171
2465
|
*/
|
|
2172
2466
|
declare class DictCheckpointAdapter implements CheckpointAdapter {
|
|
2173
2467
|
#private;
|
|
2174
|
-
constructor(storage: Record<string, unknown
|
|
2175
|
-
save(data:
|
|
2176
|
-
load():
|
|
2468
|
+
constructor(storage: Record<string, unknown>);
|
|
2469
|
+
save(key: string, data: unknown): void;
|
|
2470
|
+
load(key: string): unknown | null;
|
|
2471
|
+
clear(key: string): void;
|
|
2177
2472
|
}
|
|
2178
2473
|
/**
|
|
2179
|
-
* Atomic JSON file persistence (
|
|
2474
|
+
* Atomic JSON file persistence (one file per key in a directory, temp + rename).
|
|
2180
2475
|
*
|
|
2181
2476
|
* @remarks
|
|
2477
|
+
* **Key mapping:** keys are sanitized to filesystem-safe names (`[^a-zA-Z0-9_-]` → `_`).
|
|
2182
2478
|
* **Errors:** `load()` returns `null` for missing files, empty files, or invalid JSON (no throw).
|
|
2183
2479
|
*
|
|
2184
2480
|
* @category extra
|
|
2185
2481
|
*/
|
|
2186
2482
|
declare class FileCheckpointAdapter implements CheckpointAdapter {
|
|
2187
2483
|
#private;
|
|
2188
|
-
constructor(
|
|
2189
|
-
save(data:
|
|
2190
|
-
load():
|
|
2484
|
+
constructor(dir: string);
|
|
2485
|
+
save(key: string, data: unknown): void;
|
|
2486
|
+
load(key: string): unknown | null;
|
|
2487
|
+
clear(key: string): void;
|
|
2191
2488
|
}
|
|
2192
2489
|
/**
|
|
2193
|
-
*
|
|
2490
|
+
* Key-value persistence using Node.js `node:sqlite` ({@link DatabaseSync}).
|
|
2194
2491
|
*
|
|
2195
2492
|
* @remarks
|
|
2196
2493
|
* **Runtime:** Requires Node 22.5+ with `node:sqlite` enabled (experimental in some releases). Call `close()` when discarding the adapter.
|
|
@@ -2199,17 +2496,18 @@ declare class FileCheckpointAdapter implements CheckpointAdapter {
|
|
|
2199
2496
|
*/
|
|
2200
2497
|
declare class SqliteCheckpointAdapter implements CheckpointAdapter {
|
|
2201
2498
|
#private;
|
|
2202
|
-
constructor(path: string
|
|
2203
|
-
save(data:
|
|
2204
|
-
load():
|
|
2499
|
+
constructor(path: string);
|
|
2500
|
+
save(key: string, data: unknown): void;
|
|
2501
|
+
load(key: string): unknown | null;
|
|
2502
|
+
clear(key: string): void;
|
|
2205
2503
|
/** Close the underlying SQLite connection (safe to call more than once). */
|
|
2206
2504
|
close(): void;
|
|
2207
2505
|
}
|
|
2208
2506
|
/**
|
|
2209
|
-
* Writes {@link Graph.snapshot} through `adapter.save
|
|
2507
|
+
* Writes {@link Graph.snapshot} through `adapter.save` using `graph.name` as key.
|
|
2210
2508
|
*
|
|
2211
2509
|
* @param graph - Target graph instance.
|
|
2212
|
-
* @param adapter - Sync persistence backend.
|
|
2510
|
+
* @param adapter - Sync key-value persistence backend.
|
|
2213
2511
|
* @returns `void` — side-effect only; the snapshot is written to `adapter`.
|
|
2214
2512
|
*
|
|
2215
2513
|
* @example
|
|
@@ -2225,10 +2523,10 @@ declare class SqliteCheckpointAdapter implements CheckpointAdapter {
|
|
|
2225
2523
|
*/
|
|
2226
2524
|
declare function saveGraphCheckpoint(graph: Graph, adapter: CheckpointAdapter): void;
|
|
2227
2525
|
/**
|
|
2228
|
-
* Loads a snapshot via `adapter.load` and applies {@link Graph.restore} when data exists.
|
|
2526
|
+
* Loads a snapshot via `adapter.load(graph.name)` and applies {@link Graph.restore} when data exists.
|
|
2229
2527
|
*
|
|
2230
2528
|
* @param graph - Graph whose topology matches the snapshot.
|
|
2231
|
-
* @param adapter - Sync persistence backend.
|
|
2529
|
+
* @param adapter - Sync key-value persistence backend.
|
|
2232
2530
|
* @returns `true` if data was present and `restore` ran; `false` if `load()` returned `null`.
|
|
2233
2531
|
*
|
|
2234
2532
|
* @example
|
|
@@ -2364,6 +2662,127 @@ declare function saveGraphCheckpointIndexedDb(graph: Graph, spec: IndexedDbCheck
|
|
|
2364
2662
|
*/
|
|
2365
2663
|
declare function restoreGraphCheckpointIndexedDb(graph: Graph, spec: IndexedDbCheckpointSpec): Node<boolean>;
|
|
2366
2664
|
|
|
2665
|
+
/** Pluggable eviction policy for {@link cascadingCache}. */
|
|
2666
|
+
interface CacheEvictionPolicy<K> {
|
|
2667
|
+
insert(key: K): void;
|
|
2668
|
+
touch(key: K): void;
|
|
2669
|
+
delete(key: K): void;
|
|
2670
|
+
evict(count: number): K[];
|
|
2671
|
+
size(): number;
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* LRU eviction policy backed by a doubly-linked list + Map.
|
|
2675
|
+
*
|
|
2676
|
+
* @returns An {@link CacheEvictionPolicy} that evicts least-recently-used entries.
|
|
2677
|
+
*
|
|
2678
|
+
* @category extra
|
|
2679
|
+
*/
|
|
2680
|
+
declare function lru<K>(): CacheEvictionPolicy<K>;
|
|
2681
|
+
/** A single lookup/storage tier for {@link cascadingCache}. */
|
|
2682
|
+
interface CacheTier<V> {
|
|
2683
|
+
/** Read a value. `undefined` / `null` = miss. */
|
|
2684
|
+
load(key: string): V | undefined | null;
|
|
2685
|
+
/** Write a value. Optional — tiers without save are read-only. */
|
|
2686
|
+
save?(key: string, value: V): void;
|
|
2687
|
+
/** Delete a value. Optional. */
|
|
2688
|
+
clear?(key: string): void;
|
|
2689
|
+
}
|
|
2690
|
+
interface CascadingCacheOptions {
|
|
2691
|
+
/** Max entries before eviction. 0 = unlimited (default). */
|
|
2692
|
+
maxSize?: number;
|
|
2693
|
+
/** Eviction policy. Default: LRU. Only used when maxSize > 0. */
|
|
2694
|
+
eviction?: CacheEvictionPolicy<string>;
|
|
2695
|
+
/** Write-through: save() writes to all tiers, not just tier 0. Default: false. */
|
|
2696
|
+
writeThrough?: boolean;
|
|
2697
|
+
}
|
|
2698
|
+
interface CascadingCache<V> {
|
|
2699
|
+
/** Get or create a singleton state node for this key. Cascades tiers on miss. */
|
|
2700
|
+
load(key: string): Node<V | undefined>;
|
|
2701
|
+
/** Write value to tier(s) and update cache node in-place. */
|
|
2702
|
+
save(key: string, value: V): void;
|
|
2703
|
+
/** Re-cascade tiers into the existing cache node (subscribers see the update). */
|
|
2704
|
+
invalidate(key: string): void;
|
|
2705
|
+
/** Remove from all tiers, teardown the node, and delete cache entry. */
|
|
2706
|
+
delete(key: string): void;
|
|
2707
|
+
/** Check if key exists in cache map. */
|
|
2708
|
+
has(key: string): boolean;
|
|
2709
|
+
/** Number of cached entries. */
|
|
2710
|
+
readonly size: number;
|
|
2711
|
+
}
|
|
2712
|
+
/**
|
|
2713
|
+
* Creates a singleton reactive cache with N-tier cascading lookup.
|
|
2714
|
+
*
|
|
2715
|
+
* Each cached entry is a `state()` node. On cache miss, tiers are tried in order
|
|
2716
|
+
* (index 0 = hottest/fastest). When a lower tier hits, the value is auto-promoted
|
|
2717
|
+
* to all faster tiers. Concurrent lookups for the same key share the same state
|
|
2718
|
+
* instance — natural dedup.
|
|
2719
|
+
*
|
|
2720
|
+
* **Note:** `undefined` is the "not yet loaded" sentinel. Tiers that return
|
|
2721
|
+
* `undefined` or `null` are treated as misses.
|
|
2722
|
+
*
|
|
2723
|
+
* @param tiers - Ordered lookup tiers, hottest first.
|
|
2724
|
+
* @param opts - Optional configuration (maxSize, eviction policy, writeThrough).
|
|
2725
|
+
* @returns A reactive cache where each entry is a `Node<V | undefined>`.
|
|
2726
|
+
*
|
|
2727
|
+
* @example
|
|
2728
|
+
* ```ts
|
|
2729
|
+
* import { cascadingCache } from "@graphrefly/graphrefly-ts";
|
|
2730
|
+
*
|
|
2731
|
+
* const cache = cascadingCache([
|
|
2732
|
+
* { load: k => memMap.get(k), save: (k, v) => memMap.set(k, v) },
|
|
2733
|
+
* { load: k => JSON.parse(fs.readFileSync(`cache/${k}`, "utf8")) },
|
|
2734
|
+
* ]);
|
|
2735
|
+
* const user = cache.load("user:42"); // Node<User | undefined>
|
|
2736
|
+
* user.subscribe(msgs => console.log(msgs));
|
|
2737
|
+
* ```
|
|
2738
|
+
*
|
|
2739
|
+
* @category extra
|
|
2740
|
+
*/
|
|
2741
|
+
declare function cascadingCache<V>(tiers: CacheTier<V>[], opts?: CascadingCacheOptions): CascadingCache<V>;
|
|
2742
|
+
interface TieredStorageOptions {
|
|
2743
|
+
/** Max entries before eviction. 0 = no limit (default). */
|
|
2744
|
+
maxSize?: number;
|
|
2745
|
+
/** Eviction policy. Default: LRU. Only used when maxSize > 0. */
|
|
2746
|
+
eviction?: CacheEvictionPolicy<string>;
|
|
2747
|
+
}
|
|
2748
|
+
interface TieredStorage {
|
|
2749
|
+
/** Get or create a singleton state node for this key. Cascades tiers on miss. */
|
|
2750
|
+
load(key: string): Node<unknown | undefined>;
|
|
2751
|
+
/** Write value to tier 0 (hottest) and update cache node in-place. */
|
|
2752
|
+
save(key: string, value: unknown): void;
|
|
2753
|
+
/** Re-cascade tiers into the existing cache node. */
|
|
2754
|
+
invalidate(key: string): void;
|
|
2755
|
+
/** Remove from all tiers and delete cache entry. */
|
|
2756
|
+
delete(key: string): void;
|
|
2757
|
+
/** Check if key exists in cache. */
|
|
2758
|
+
has(key: string): boolean;
|
|
2759
|
+
/** Number of cached entries. */
|
|
2760
|
+
readonly size: number;
|
|
2761
|
+
/** The underlying cascading cache (for advanced use). */
|
|
2762
|
+
readonly cache: CascadingCache<unknown>;
|
|
2763
|
+
}
|
|
2764
|
+
/**
|
|
2765
|
+
* Creates a reactive tiered storage cache backed by {@link CheckpointAdapter}s.
|
|
2766
|
+
*
|
|
2767
|
+
* Each cached key is a `state()` node. On cache miss, adapters are tried in order
|
|
2768
|
+
* (index 0 = hottest). Hits auto-promote to faster adapters.
|
|
2769
|
+
*
|
|
2770
|
+
* @param adapters - Ordered `CheckpointAdapter`s, hottest first.
|
|
2771
|
+
* @param opts - Optional configuration (maxSize, eviction policy).
|
|
2772
|
+
* @returns A reactive tiered storage where each entry is a `Node<unknown | undefined>`.
|
|
2773
|
+
*
|
|
2774
|
+
* @example
|
|
2775
|
+
* ```ts
|
|
2776
|
+
* import { tieredStorage, MemoryCheckpointAdapter } from "@graphrefly/graphrefly-ts";
|
|
2777
|
+
*
|
|
2778
|
+
* const storage = tieredStorage([new MemoryCheckpointAdapter()], { maxSize: 100 });
|
|
2779
|
+
* const val = storage.load("key"); // Node<unknown | undefined>
|
|
2780
|
+
* ```
|
|
2781
|
+
*
|
|
2782
|
+
* @category extra
|
|
2783
|
+
*/
|
|
2784
|
+
declare function tieredStorage(adapters: CheckpointAdapter[], opts?: TieredStorageOptions): TieredStorage;
|
|
2785
|
+
|
|
2367
2786
|
type ReactiveMapSnapshot<K, V> = Versioned<{
|
|
2368
2787
|
map: ReadonlyMap<K, V>;
|
|
2369
2788
|
}>;
|
|
@@ -3155,25 +3574,6 @@ declare function sample<T>(source: Node<T>, notifier: Node<unknown>, opts?: Extr
|
|
|
3155
3574
|
* @category extra
|
|
3156
3575
|
*/
|
|
3157
3576
|
declare function audit<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
|
|
3158
|
-
/**
|
|
3159
|
-
* Errors if no `DATA` arrives within `ms` after subscribe or after the previous `DATA`.
|
|
3160
|
-
*
|
|
3161
|
-
* @param source - Upstream node.
|
|
3162
|
-
* @param ms - Idle budget in milliseconds.
|
|
3163
|
-
* @param opts - Optional {@link NodeOptions} (excluding `describeKind`) and `with` for a custom error payload.
|
|
3164
|
-
* @returns `Node<T>` - Pass-through with idle watchdog.
|
|
3165
|
-
* @example
|
|
3166
|
-
* ```ts
|
|
3167
|
-
* import { timeout, state } from "@graphrefly/graphrefly-ts";
|
|
3168
|
-
*
|
|
3169
|
-
* timeout(state(0), 5_000);
|
|
3170
|
-
* ```
|
|
3171
|
-
*
|
|
3172
|
-
* @category extra
|
|
3173
|
-
*/
|
|
3174
|
-
declare function timeout<T>(source: Node<T>, ms: number, opts?: ExtraOpts & {
|
|
3175
|
-
with?: unknown;
|
|
3176
|
-
}): Node<T>;
|
|
3177
3577
|
/**
|
|
3178
3578
|
* Buffers source `DATA` values; flushes an array when `notifier` settles (`buffer`).
|
|
3179
3579
|
*
|
|
@@ -3785,6 +4185,10 @@ type index_BatchMessage = BatchMessage;
|
|
|
3785
4185
|
type index_BridgeMessage = BridgeMessage;
|
|
3786
4186
|
type index_BufferedSinkHandle = BufferedSinkHandle;
|
|
3787
4187
|
type index_CSVRow = CSVRow;
|
|
4188
|
+
type index_CacheEvictionPolicy<K> = CacheEvictionPolicy<K>;
|
|
4189
|
+
type index_CacheTier<V> = CacheTier<V>;
|
|
4190
|
+
type index_CascadingCache<V> = CascadingCache<V>;
|
|
4191
|
+
type index_CascadingCacheOptions = CascadingCacheOptions;
|
|
3788
4192
|
type index_CheckpointAdapter = CheckpointAdapter;
|
|
3789
4193
|
type index_CheckpointToRedisOptions = CheckpointToRedisOptions;
|
|
3790
4194
|
type index_CheckpointToS3Options = CheckpointToS3Options;
|
|
@@ -3801,6 +4205,7 @@ type index_DictCheckpointAdapter = DictCheckpointAdapter;
|
|
|
3801
4205
|
declare const index_DictCheckpointAdapter: typeof DictCheckpointAdapter;
|
|
3802
4206
|
type index_DistillBundle<TMem> = DistillBundle<TMem>;
|
|
3803
4207
|
type index_DistillOptions<TMem> = DistillOptions<TMem>;
|
|
4208
|
+
type index_DrizzleQueryLike<T = unknown> = DrizzleQueryLike<T>;
|
|
3804
4209
|
type index_ErrorMessage = ErrorMessage;
|
|
3805
4210
|
type index_EventTargetLike = EventTargetLike;
|
|
3806
4211
|
type index_ExponentialBackoffOptions = ExponentialBackoffOptions;
|
|
@@ -3813,18 +4218,22 @@ type index_FileWriterLike = FileWriterLike;
|
|
|
3813
4218
|
type index_FromCSVOptions = FromCSVOptions;
|
|
3814
4219
|
type index_FromClickHouseWatchOptions = FromClickHouseWatchOptions;
|
|
3815
4220
|
type index_FromCronOptions = FromCronOptions;
|
|
4221
|
+
type index_FromDrizzleOptions<T, U = T> = FromDrizzleOptions<T, U>;
|
|
3816
4222
|
type index_FromFSWatchOptions = FromFSWatchOptions;
|
|
3817
4223
|
type index_FromGitHookOptions = FromGitHookOptions;
|
|
3818
4224
|
type index_FromHTTPOptions = FromHTTPOptions;
|
|
3819
4225
|
type index_FromKafkaOptions = FromKafkaOptions;
|
|
4226
|
+
type index_FromKyselyOptions<T, U = T> = FromKyselyOptions<T, U>;
|
|
3820
4227
|
type index_FromMCPOptions = FromMCPOptions;
|
|
3821
4228
|
type index_FromNATSOptions = FromNATSOptions;
|
|
3822
4229
|
type index_FromNDJSONOptions = FromNDJSONOptions;
|
|
3823
4230
|
type index_FromOTelOptions = FromOTelOptions;
|
|
4231
|
+
type index_FromPrismaOptions<T, U = T> = FromPrismaOptions<T, U>;
|
|
3824
4232
|
type index_FromPrometheusOptions = FromPrometheusOptions;
|
|
3825
4233
|
type index_FromPulsarOptions = FromPulsarOptions;
|
|
3826
4234
|
type index_FromRabbitMQOptions = FromRabbitMQOptions;
|
|
3827
4235
|
type index_FromRedisStreamOptions = FromRedisStreamOptions;
|
|
4236
|
+
type index_FromSqliteOptions<T> = FromSqliteOptions<T>;
|
|
3828
4237
|
type index_FromStatsDOptions = FromStatsDOptions;
|
|
3829
4238
|
type index_FromSyslogOptions = FromSyslogOptions;
|
|
3830
4239
|
type index_GitEvent = GitEvent;
|
|
@@ -3837,6 +4246,7 @@ type index_JitterMode = JitterMode;
|
|
|
3837
4246
|
type index_KafkaConsumerLike = KafkaConsumerLike;
|
|
3838
4247
|
type index_KafkaMessage<T = unknown> = KafkaMessage<T>;
|
|
3839
4248
|
type index_KafkaProducerLike = KafkaProducerLike;
|
|
4249
|
+
type index_KyselyQueryLike<T = unknown> = KyselyQueryLike<T>;
|
|
3840
4250
|
type index_LokiClientLike = LokiClientLike;
|
|
3841
4251
|
type index_LokiStream = LokiStream;
|
|
3842
4252
|
type index_MCPClientLike = MCPClientLike;
|
|
@@ -3856,6 +4266,7 @@ type index_OTelMetric = OTelMetric;
|
|
|
3856
4266
|
type index_OTelRegister = OTelRegister;
|
|
3857
4267
|
type index_OTelSpan = OTelSpan;
|
|
3858
4268
|
type index_PostgresClientLike = PostgresClientLike;
|
|
4269
|
+
type index_PrismaModelLike<T = unknown> = PrismaModelLike<T>;
|
|
3859
4270
|
type index_PrometheusMetric = PrometheusMetric;
|
|
3860
4271
|
type index_PubSubHub = PubSubHub;
|
|
3861
4272
|
type index_PulsarConsumerLike = PulsarConsumerLike;
|
|
@@ -3882,9 +4293,11 @@ type index_RedisStreamEntry<T = unknown> = RedisStreamEntry<T>;
|
|
|
3882
4293
|
type index_RetryOptions = RetryOptions;
|
|
3883
4294
|
type index_S3ClientLike = S3ClientLike;
|
|
3884
4295
|
type index_SignalMessage = SignalMessage;
|
|
4296
|
+
type index_SinkHandle = SinkHandle;
|
|
3885
4297
|
type index_SinkTransportError = SinkTransportError;
|
|
3886
4298
|
type index_SqliteCheckpointAdapter = SqliteCheckpointAdapter;
|
|
3887
4299
|
declare const index_SqliteCheckpointAdapter: typeof SqliteCheckpointAdapter;
|
|
4300
|
+
type index_SqliteDbLike = SqliteDbLike;
|
|
3888
4301
|
type index_StatsDMetric = StatsDMetric;
|
|
3889
4302
|
type index_StatsDRegister = StatsDRegister;
|
|
3890
4303
|
type index_StatusValue = StatusValue;
|
|
@@ -3893,6 +4306,10 @@ type index_SyslogRegister = SyslogRegister;
|
|
|
3893
4306
|
type index_TapObserver<T> = TapObserver<T>;
|
|
3894
4307
|
type index_TempoClientLike = TempoClientLike;
|
|
3895
4308
|
type index_ThrottleOptions = ThrottleOptions;
|
|
4309
|
+
type index_TieredStorage = TieredStorage;
|
|
4310
|
+
type index_TieredStorageOptions = TieredStorageOptions;
|
|
4311
|
+
type index_TimeoutError = TimeoutError;
|
|
4312
|
+
declare const index_TimeoutError: typeof TimeoutError;
|
|
3896
4313
|
type index_ToCSVOptions<T> = ToCSVOptions<T>;
|
|
3897
4314
|
type index_ToClickHouseOptions<T> = ToClickHouseOptions<T>;
|
|
3898
4315
|
type index_ToFileOptions<T> = ToFileOptions<T>;
|
|
@@ -3906,6 +4323,7 @@ type index_ToRabbitMQOptions<T> = ToRabbitMQOptions<T>;
|
|
|
3906
4323
|
type index_ToRedisStreamOptions<T> = ToRedisStreamOptions<T>;
|
|
3907
4324
|
type index_ToS3Options<T> = ToS3Options<T>;
|
|
3908
4325
|
type index_ToSSEOptions = ToSSEOptions;
|
|
4326
|
+
type index_ToSqliteOptions<T> = ToSqliteOptions<T>;
|
|
3909
4327
|
type index_ToTempoOptions<T> = ToTempoOptions<T>;
|
|
3910
4328
|
type index_ToWebSocketOptions<T> = ToWebSocketOptions<T>;
|
|
3911
4329
|
type index_ToWebSocketTransportError = ToWebSocketTransportError;
|
|
@@ -3931,7 +4349,9 @@ declare const index_audit: typeof audit;
|
|
|
3931
4349
|
declare const index_buffer: typeof buffer;
|
|
3932
4350
|
declare const index_bufferCount: typeof bufferCount;
|
|
3933
4351
|
declare const index_bufferTime: typeof bufferTime;
|
|
4352
|
+
declare const index_cache: typeof cache;
|
|
3934
4353
|
declare const index_cached: typeof cached;
|
|
4354
|
+
declare const index_cascadingCache: typeof cascadingCache;
|
|
3935
4355
|
declare const index_catchError: typeof catchError;
|
|
3936
4356
|
declare const index_checkpointNodeValue: typeof checkpointNodeValue;
|
|
3937
4357
|
declare const index_checkpointToRedis: typeof checkpointToRedis;
|
|
@@ -3956,6 +4376,7 @@ declare const index_empty: typeof empty;
|
|
|
3956
4376
|
declare const index_escapeRegexChar: typeof escapeRegexChar;
|
|
3957
4377
|
declare const index_exhaustMap: typeof exhaustMap;
|
|
3958
4378
|
declare const index_exponential: typeof exponential;
|
|
4379
|
+
declare const index_fallback: typeof fallback;
|
|
3959
4380
|
declare const index_fibonacci: typeof fibonacci;
|
|
3960
4381
|
declare const index_filter: typeof filter;
|
|
3961
4382
|
declare const index_find: typeof find;
|
|
@@ -3968,6 +4389,7 @@ declare const index_fromAsyncIter: typeof fromAsyncIter;
|
|
|
3968
4389
|
declare const index_fromCSV: typeof fromCSV;
|
|
3969
4390
|
declare const index_fromClickHouseWatch: typeof fromClickHouseWatch;
|
|
3970
4391
|
declare const index_fromCron: typeof fromCron;
|
|
4392
|
+
declare const index_fromDrizzle: typeof fromDrizzle;
|
|
3971
4393
|
declare const index_fromEvent: typeof fromEvent;
|
|
3972
4394
|
declare const index_fromFSWatch: typeof fromFSWatch;
|
|
3973
4395
|
declare const index_fromGitHook: typeof fromGitHook;
|
|
@@ -3976,15 +4398,18 @@ declare const index_fromIDBRequest: typeof fromIDBRequest;
|
|
|
3976
4398
|
declare const index_fromIDBTransaction: typeof fromIDBTransaction;
|
|
3977
4399
|
declare const index_fromIter: typeof fromIter;
|
|
3978
4400
|
declare const index_fromKafka: typeof fromKafka;
|
|
4401
|
+
declare const index_fromKysely: typeof fromKysely;
|
|
3979
4402
|
declare const index_fromMCP: typeof fromMCP;
|
|
3980
4403
|
declare const index_fromNATS: typeof fromNATS;
|
|
3981
4404
|
declare const index_fromNDJSON: typeof fromNDJSON;
|
|
3982
4405
|
declare const index_fromOTel: typeof fromOTel;
|
|
4406
|
+
declare const index_fromPrisma: typeof fromPrisma;
|
|
3983
4407
|
declare const index_fromPrometheus: typeof fromPrometheus;
|
|
3984
4408
|
declare const index_fromPromise: typeof fromPromise;
|
|
3985
4409
|
declare const index_fromPulsar: typeof fromPulsar;
|
|
3986
4410
|
declare const index_fromRabbitMQ: typeof fromRabbitMQ;
|
|
3987
4411
|
declare const index_fromRedisStream: typeof fromRedisStream;
|
|
4412
|
+
declare const index_fromSqlite: typeof fromSqlite;
|
|
3988
4413
|
declare const index_fromStatsD: typeof fromStatsD;
|
|
3989
4414
|
declare const index_fromSyslog: typeof fromSyslog;
|
|
3990
4415
|
declare const index_fromTimer: typeof fromTimer;
|
|
@@ -3996,6 +4421,7 @@ declare const index_interval: typeof interval;
|
|
|
3996
4421
|
declare const index_last: typeof last;
|
|
3997
4422
|
declare const index_linear: typeof linear;
|
|
3998
4423
|
declare const index_logSlice: typeof logSlice;
|
|
4424
|
+
declare const index_lru: typeof lru;
|
|
3999
4425
|
declare const index_map: typeof map;
|
|
4000
4426
|
declare const index_matchesAnyPattern: typeof matchesAnyPattern;
|
|
4001
4427
|
declare const index_matchesCron: typeof matchesCron;
|
|
@@ -4045,6 +4471,7 @@ declare const index_tap: typeof tap;
|
|
|
4045
4471
|
declare const index_throttle: typeof throttle;
|
|
4046
4472
|
declare const index_throttleTime: typeof throttleTime;
|
|
4047
4473
|
declare const index_throwError: typeof throwError;
|
|
4474
|
+
declare const index_tieredStorage: typeof tieredStorage;
|
|
4048
4475
|
declare const index_timeout: typeof timeout;
|
|
4049
4476
|
declare const index_toArray: typeof toArray;
|
|
4050
4477
|
declare const index_toCSV: typeof toCSV;
|
|
@@ -4062,6 +4489,7 @@ declare const index_toRabbitMQ: typeof toRabbitMQ;
|
|
|
4062
4489
|
declare const index_toRedisStream: typeof toRedisStream;
|
|
4063
4490
|
declare const index_toS3: typeof toS3;
|
|
4064
4491
|
declare const index_toSSE: typeof toSSE;
|
|
4492
|
+
declare const index_toSqlite: typeof toSqlite;
|
|
4065
4493
|
declare const index_toTempo: typeof toTempo;
|
|
4066
4494
|
declare const index_toWebSocket: typeof toWebSocket;
|
|
4067
4495
|
declare const index_tokenBucket: typeof tokenBucket;
|
|
@@ -4078,7 +4506,7 @@ declare const index_workerBridge: typeof workerBridge;
|
|
|
4078
4506
|
declare const index_workerSelf: typeof workerSelf;
|
|
4079
4507
|
declare const index_zip: typeof zip;
|
|
4080
4508
|
declare namespace index {
|
|
4081
|
-
export { type index_AdapterHandlers as AdapterHandlers, type index_AsyncSourceOpts as AsyncSourceOpts, type index_BackoffPreset as BackoffPreset, type index_BackoffStrategy as BackoffStrategy, type index_BatchMessage as BatchMessage, type index_BridgeMessage as BridgeMessage, type index_BufferedSinkHandle as BufferedSinkHandle, type index_CSVRow as CSVRow, type index_CheckpointAdapter as CheckpointAdapter, type index_CheckpointToRedisOptions as CheckpointToRedisOptions, type index_CheckpointToS3Options as CheckpointToS3Options, type index_CircuitBreaker as CircuitBreaker, type index_CircuitBreakerOptions as CircuitBreakerOptions, index_CircuitOpenError as CircuitOpenError, type index_CircuitState as CircuitState, type index_ClickHouseClientLike as ClickHouseClientLike, type index_ClickHouseInsertClientLike as ClickHouseInsertClientLike, type index_ClickHouseRow as ClickHouseRow, type index_CronSchedule as CronSchedule, index_DictCheckpointAdapter as DictCheckpointAdapter, type index_DistillBundle as DistillBundle, type index_DistillOptions as DistillOptions, type index_ErrorMessage as ErrorMessage, type index_EventTargetLike as EventTargetLike, type index_ExponentialBackoffOptions as ExponentialBackoffOptions, type index_Extraction as Extraction, type index_FSEvent as FSEvent, type index_FSEventType as FSEventType, index_FileCheckpointAdapter as FileCheckpointAdapter, type index_FileWriterLike as FileWriterLike, type index_FromCSVOptions as FromCSVOptions, type index_FromClickHouseWatchOptions as FromClickHouseWatchOptions, type index_FromCronOptions as FromCronOptions, type index_FromFSWatchOptions as FromFSWatchOptions, type index_FromGitHookOptions as FromGitHookOptions, type index_FromHTTPOptions as FromHTTPOptions, type index_FromKafkaOptions as FromKafkaOptions, type index_FromMCPOptions as FromMCPOptions, type index_FromNATSOptions as FromNATSOptions, type index_FromNDJSONOptions as FromNDJSONOptions, type index_FromOTelOptions as FromOTelOptions, type index_FromPrometheusOptions as FromPrometheusOptions, type index_FromPulsarOptions as FromPulsarOptions, type index_FromRabbitMQOptions as FromRabbitMQOptions, type index_FromRedisStreamOptions as FromRedisStreamOptions, type index_FromStatsDOptions as FromStatsDOptions, type index_FromSyslogOptions as FromSyslogOptions, type index_GitEvent as GitEvent, type index_GitHookType as GitHookType, type index_HTTPBundle as HTTPBundle, type index_IndexRow as IndexRow, type index_IndexedDbCheckpointSpec as IndexedDbCheckpointSpec, type index_InitMessage as InitMessage, type index_JitterMode as JitterMode, type index_KafkaConsumerLike as KafkaConsumerLike, type index_KafkaMessage as KafkaMessage, type index_KafkaProducerLike as KafkaProducerLike, type index_LokiClientLike as LokiClientLike, type index_LokiStream as LokiStream, type index_MCPClientLike as MCPClientLike, index_MemoryCheckpointAdapter as MemoryCheckpointAdapter, type index_MergeMapOptions as MergeMapOptions, type index_MongoCollectionLike as MongoCollectionLike, type index_NATSClientLike as NATSClientLike, type index_NATSMessage as NATSMessage, type index_NATSSubscriptionLike as NATSSubscriptionLike, index_NS_PER_MS as NS_PER_MS, index_NS_PER_SEC as NS_PER_SEC, type index_NodeInput as NodeInput, type index_OTelBundle as OTelBundle, type index_OTelLog as OTelLog, type index_OTelMetric as OTelMetric, type index_OTelRegister as OTelRegister, type index_OTelSpan as OTelSpan, type index_PostgresClientLike as PostgresClientLike, type index_PrometheusMetric as PrometheusMetric, type index_PubSubHub as PubSubHub, type index_PulsarConsumerLike as PulsarConsumerLike, type index_PulsarMessage as PulsarMessage, type index_PulsarProducerLike as PulsarProducerLike, type index_RabbitMQChannelLike as RabbitMQChannelLike, type index_RabbitMQMessage as RabbitMQMessage, type index_ReactiveIndexBundle as ReactiveIndexBundle, type index_ReactiveIndexOptions as ReactiveIndexOptions, type index_ReactiveIndexSnapshot as ReactiveIndexSnapshot, type index_ReactiveListBundle as ReactiveListBundle, type index_ReactiveListOptions as ReactiveListOptions, type index_ReactiveListSnapshot as ReactiveListSnapshot, index_ReactiveLogBundle as ReactiveLogBundle, index_ReactiveLogOptions as ReactiveLogOptions, index_ReactiveLogSnapshot as ReactiveLogSnapshot, type index_ReactiveMapBundle as ReactiveMapBundle, type index_ReactiveMapOptions as ReactiveMapOptions, type index_ReactiveMapSnapshot as ReactiveMapSnapshot, type index_ReadyMessage as ReadyMessage, type index_RedisCheckpointClientLike as RedisCheckpointClientLike, type index_RedisClientLike as RedisClientLike, type index_RedisStreamEntry as RedisStreamEntry, type index_RetryOptions as RetryOptions, type index_S3ClientLike as S3ClientLike, type index_SignalMessage as SignalMessage, type index_SinkTransportError as SinkTransportError, index_SqliteCheckpointAdapter as SqliteCheckpointAdapter, type index_StatsDMetric as StatsDMetric, type index_StatsDRegister as StatsDRegister, type index_StatusValue as StatusValue, type index_SyslogMessage as SyslogMessage, type index_SyslogRegister as SyslogRegister, type index_TapObserver as TapObserver, type index_TempoClientLike as TempoClientLike, type index_ThrottleOptions as ThrottleOptions, type index_ToCSVOptions as ToCSVOptions, type index_ToClickHouseOptions as ToClickHouseOptions, type index_ToFileOptions as ToFileOptions, type index_ToKafkaOptions as ToKafkaOptions, type index_ToLokiOptions as ToLokiOptions, type index_ToMongoOptions as ToMongoOptions, type index_ToNATSOptions as ToNATSOptions, type index_ToPostgresOptions as ToPostgresOptions, type index_ToPulsarOptions as ToPulsarOptions, type index_ToRabbitMQOptions as ToRabbitMQOptions, type index_ToRedisStreamOptions as ToRedisStreamOptions, type index_ToS3Options as ToS3Options, type index_ToSSEOptions as ToSSEOptions, type index_ToTempoOptions as ToTempoOptions, type index_ToWebSocketOptions as ToWebSocketOptions, type index_ToWebSocketTransportError as ToWebSocketTransportError, type index_TokenBucket as TokenBucket, type index_ValueMessage as ValueMessage, type index_VerifiableBundle as VerifiableBundle, type index_VerifiableOptions as VerifiableOptions, type index_VerifyValue as VerifyValue, type index_WatermarkController as WatermarkController, type index_WatermarkOptions as WatermarkOptions, type index_WebSocketLike as WebSocketLike, type index_WebSocketMessageEventLike as WebSocketMessageEventLike, type index_WebSocketRegister as WebSocketRegister, type index_WebhookRegister as WebhookRegister, type index_WithBreakerBundle as WithBreakerBundle, type index_WithStatusBundle as WithStatusBundle, type index_WorkerBridge as WorkerBridge, type index_WorkerBridgeOptions as WorkerBridgeOptions, type index_WorkerSelfHandle as WorkerSelfHandle, type index_WorkerSelfOptions as WorkerSelfOptions, type index_WorkerTransport as WorkerTransport, index_audit as audit, index_buffer as buffer, index_bufferCount as bufferCount, index_bufferTime as bufferTime, index_cached as cached, index_catchError as catchError, index_checkpointNodeValue as checkpointNodeValue, index_checkpointToRedis as checkpointToRedis, index_checkpointToS3 as checkpointToS3, index_circuitBreaker as circuitBreaker, index_combine as combine, index_combineLatest as combineLatest, index_concat as concat, index_concatMap as concatMap, index_constant as constant, index_createTransport as createTransport, index_createWatermarkController as createWatermarkController, index_debounce as debounce, index_debounceTime as debounceTime, index_decorrelatedJitter as decorrelatedJitter, index_delay as delay, index_deserializeError as deserializeError, index_distill as distill, index_distinctUntilChanged as distinctUntilChanged, index_elementAt as elementAt, index_empty as empty, index_escapeRegexChar as escapeRegexChar, index_exhaustMap as exhaustMap, index_exponential as exponential, index_fibonacci as fibonacci, index_filter as filter, index_find as find, index_first as first, index_firstValueFrom as firstValueFrom, index_flatMap as flatMap, index_forEach as forEach, index_fromAny as fromAny, index_fromAsyncIter as fromAsyncIter, index_fromCSV as fromCSV, index_fromClickHouseWatch as fromClickHouseWatch, index_fromCron as fromCron, index_fromEvent as fromEvent, index_fromFSWatch as fromFSWatch, index_fromGitHook as fromGitHook, index_fromHTTP as fromHTTP, index_fromIDBRequest as fromIDBRequest, index_fromIDBTransaction as fromIDBTransaction, index_fromIter as fromIter, index_fromKafka as fromKafka, index_fromMCP as fromMCP, index_fromNATS as fromNATS, index_fromNDJSON as fromNDJSON, index_fromOTel as fromOTel, index_fromPrometheus as fromPrometheus, index_fromPromise as fromPromise, index_fromPulsar as fromPulsar, index_fromRabbitMQ as fromRabbitMQ, index_fromRedisStream as fromRedisStream, index_fromStatsD as fromStatsD, index_fromSyslog as fromSyslog, index_fromTimer as fromTimer, index_fromWebSocket as fromWebSocket, index_fromWebhook as fromWebhook, index_gate as gate, index_globToRegExp as globToRegExp, index_interval as interval, index_last as last, index_linear as linear, index_logSlice as logSlice, index_map as map, index_matchesAnyPattern as matchesAnyPattern, index_matchesCron as matchesCron, index_merge as merge, index_mergeMap as mergeMap, index_nameToSignal as nameToSignal, index_never as never, index_observeGraph$ as observeGraph$, index_observeNode$ as observeNode$, index_of as of, index_pairwise as pairwise, index_parseCron as parseCron, index_parsePrometheusText as parsePrometheusText, index_parseStatsD as parseStatsD, index_parseSyslog as parseSyslog, index_pausable as pausable, index_pubsub as pubsub, index_race as race, index_rateLimiter as rateLimiter, index_reactiveIndex as reactiveIndex, index_reactiveList as reactiveList, index_reactiveLog as reactiveLog, index_reactiveMap as reactiveMap, index_reduce as reduce, index_repeat as repeat, index_replay as replay, index_rescue as rescue, index_resolveBackoffPreset as resolveBackoffPreset, index_restoreGraphCheckpoint as restoreGraphCheckpoint, index_restoreGraphCheckpointIndexedDb as restoreGraphCheckpointIndexedDb, index_retry as retry, index_sample as sample, index_saveGraphCheckpoint as saveGraphCheckpoint, index_saveGraphCheckpointIndexedDb as saveGraphCheckpointIndexedDb, index_scan as scan, index_serializeError as serializeError, index_share as share, index_shareReplay as shareReplay, index_signalToName as signalToName, index_skip as skip, index_startWith as startWith, index_switchMap as switchMap, index_take as take, index_takeUntil as takeUntil, index_takeWhile as takeWhile, index_tap as tap, index_throttle as throttle, index_throttleTime as throttleTime, index_throwError as throwError, index_timeout as timeout, index_toArray as toArray, index_toCSV as toCSV, index_toClickHouse as toClickHouse, index_toFile as toFile, index_toKafka as toKafka, index_toLoki as toLoki, index_toMessages$ as toMessages$, index_toMongo as toMongo, index_toNATS as toNATS, index_toObservable as toObservable, index_toPostgres as toPostgres, index_toPulsar as toPulsar, index_toRabbitMQ as toRabbitMQ, index_toRedisStream as toRedisStream, index_toS3 as toS3, index_toSSE as toSSE, index_toTempo as toTempo, index_toWebSocket as toWebSocket, index_tokenBucket as tokenBucket, index_tokenTracker as tokenTracker, index_verifiable as verifiable, index_window as window, index_windowCount as windowCount, index_windowTime as windowTime, index_withBreaker as withBreaker, index_withLatestFrom as withLatestFrom, index_withMaxAttempts as withMaxAttempts, index_withStatus as withStatus, index_workerBridge as workerBridge, index_workerSelf as workerSelf, index_zip as zip };
|
|
4509
|
+
export { type index_AdapterHandlers as AdapterHandlers, type index_AsyncSourceOpts as AsyncSourceOpts, type index_BackoffPreset as BackoffPreset, type index_BackoffStrategy as BackoffStrategy, type index_BatchMessage as BatchMessage, type index_BridgeMessage as BridgeMessage, type index_BufferedSinkHandle as BufferedSinkHandle, type index_CSVRow as CSVRow, type index_CacheEvictionPolicy as CacheEvictionPolicy, type index_CacheTier as CacheTier, type index_CascadingCache as CascadingCache, type index_CascadingCacheOptions as CascadingCacheOptions, type index_CheckpointAdapter as CheckpointAdapter, type index_CheckpointToRedisOptions as CheckpointToRedisOptions, type index_CheckpointToS3Options as CheckpointToS3Options, type index_CircuitBreaker as CircuitBreaker, type index_CircuitBreakerOptions as CircuitBreakerOptions, index_CircuitOpenError as CircuitOpenError, type index_CircuitState as CircuitState, type index_ClickHouseClientLike as ClickHouseClientLike, type index_ClickHouseInsertClientLike as ClickHouseInsertClientLike, type index_ClickHouseRow as ClickHouseRow, type index_CronSchedule as CronSchedule, index_DictCheckpointAdapter as DictCheckpointAdapter, type index_DistillBundle as DistillBundle, type index_DistillOptions as DistillOptions, type index_DrizzleQueryLike as DrizzleQueryLike, type index_ErrorMessage as ErrorMessage, type index_EventTargetLike as EventTargetLike, type index_ExponentialBackoffOptions as ExponentialBackoffOptions, type index_Extraction as Extraction, type index_FSEvent as FSEvent, type index_FSEventType as FSEventType, index_FileCheckpointAdapter as FileCheckpointAdapter, type index_FileWriterLike as FileWriterLike, type index_FromCSVOptions as FromCSVOptions, type index_FromClickHouseWatchOptions as FromClickHouseWatchOptions, type index_FromCronOptions as FromCronOptions, type index_FromDrizzleOptions as FromDrizzleOptions, type index_FromFSWatchOptions as FromFSWatchOptions, type index_FromGitHookOptions as FromGitHookOptions, type index_FromHTTPOptions as FromHTTPOptions, type index_FromKafkaOptions as FromKafkaOptions, type index_FromKyselyOptions as FromKyselyOptions, type index_FromMCPOptions as FromMCPOptions, type index_FromNATSOptions as FromNATSOptions, type index_FromNDJSONOptions as FromNDJSONOptions, type index_FromOTelOptions as FromOTelOptions, type index_FromPrismaOptions as FromPrismaOptions, type index_FromPrometheusOptions as FromPrometheusOptions, type index_FromPulsarOptions as FromPulsarOptions, type index_FromRabbitMQOptions as FromRabbitMQOptions, type index_FromRedisStreamOptions as FromRedisStreamOptions, type index_FromSqliteOptions as FromSqliteOptions, type index_FromStatsDOptions as FromStatsDOptions, type index_FromSyslogOptions as FromSyslogOptions, type index_GitEvent as GitEvent, type index_GitHookType as GitHookType, type index_HTTPBundle as HTTPBundle, type index_IndexRow as IndexRow, type index_IndexedDbCheckpointSpec as IndexedDbCheckpointSpec, type index_InitMessage as InitMessage, type index_JitterMode as JitterMode, type index_KafkaConsumerLike as KafkaConsumerLike, type index_KafkaMessage as KafkaMessage, type index_KafkaProducerLike as KafkaProducerLike, type index_KyselyQueryLike as KyselyQueryLike, type index_LokiClientLike as LokiClientLike, type index_LokiStream as LokiStream, type index_MCPClientLike as MCPClientLike, index_MemoryCheckpointAdapter as MemoryCheckpointAdapter, type index_MergeMapOptions as MergeMapOptions, type index_MongoCollectionLike as MongoCollectionLike, type index_NATSClientLike as NATSClientLike, type index_NATSMessage as NATSMessage, type index_NATSSubscriptionLike as NATSSubscriptionLike, index_NS_PER_MS as NS_PER_MS, index_NS_PER_SEC as NS_PER_SEC, type index_NodeInput as NodeInput, type index_OTelBundle as OTelBundle, type index_OTelLog as OTelLog, type index_OTelMetric as OTelMetric, type index_OTelRegister as OTelRegister, type index_OTelSpan as OTelSpan, type index_PostgresClientLike as PostgresClientLike, type index_PrismaModelLike as PrismaModelLike, type index_PrometheusMetric as PrometheusMetric, type index_PubSubHub as PubSubHub, type index_PulsarConsumerLike as PulsarConsumerLike, type index_PulsarMessage as PulsarMessage, type index_PulsarProducerLike as PulsarProducerLike, type index_RabbitMQChannelLike as RabbitMQChannelLike, type index_RabbitMQMessage as RabbitMQMessage, type index_ReactiveIndexBundle as ReactiveIndexBundle, type index_ReactiveIndexOptions as ReactiveIndexOptions, type index_ReactiveIndexSnapshot as ReactiveIndexSnapshot, type index_ReactiveListBundle as ReactiveListBundle, type index_ReactiveListOptions as ReactiveListOptions, type index_ReactiveListSnapshot as ReactiveListSnapshot, index_ReactiveLogBundle as ReactiveLogBundle, index_ReactiveLogOptions as ReactiveLogOptions, index_ReactiveLogSnapshot as ReactiveLogSnapshot, type index_ReactiveMapBundle as ReactiveMapBundle, type index_ReactiveMapOptions as ReactiveMapOptions, type index_ReactiveMapSnapshot as ReactiveMapSnapshot, type index_ReadyMessage as ReadyMessage, type index_RedisCheckpointClientLike as RedisCheckpointClientLike, type index_RedisClientLike as RedisClientLike, type index_RedisStreamEntry as RedisStreamEntry, type index_RetryOptions as RetryOptions, type index_S3ClientLike as S3ClientLike, type index_SignalMessage as SignalMessage, type index_SinkHandle as SinkHandle, type index_SinkTransportError as SinkTransportError, index_SqliteCheckpointAdapter as SqliteCheckpointAdapter, type index_SqliteDbLike as SqliteDbLike, type index_StatsDMetric as StatsDMetric, type index_StatsDRegister as StatsDRegister, type index_StatusValue as StatusValue, type index_SyslogMessage as SyslogMessage, type index_SyslogRegister as SyslogRegister, type index_TapObserver as TapObserver, type index_TempoClientLike as TempoClientLike, type index_ThrottleOptions as ThrottleOptions, type index_TieredStorage as TieredStorage, type index_TieredStorageOptions as TieredStorageOptions, index_TimeoutError as TimeoutError, type index_ToCSVOptions as ToCSVOptions, type index_ToClickHouseOptions as ToClickHouseOptions, type index_ToFileOptions as ToFileOptions, type index_ToKafkaOptions as ToKafkaOptions, type index_ToLokiOptions as ToLokiOptions, type index_ToMongoOptions as ToMongoOptions, type index_ToNATSOptions as ToNATSOptions, type index_ToPostgresOptions as ToPostgresOptions, type index_ToPulsarOptions as ToPulsarOptions, type index_ToRabbitMQOptions as ToRabbitMQOptions, type index_ToRedisStreamOptions as ToRedisStreamOptions, type index_ToS3Options as ToS3Options, type index_ToSSEOptions as ToSSEOptions, type index_ToSqliteOptions as ToSqliteOptions, type index_ToTempoOptions as ToTempoOptions, type index_ToWebSocketOptions as ToWebSocketOptions, type index_ToWebSocketTransportError as ToWebSocketTransportError, type index_TokenBucket as TokenBucket, type index_ValueMessage as ValueMessage, type index_VerifiableBundle as VerifiableBundle, type index_VerifiableOptions as VerifiableOptions, type index_VerifyValue as VerifyValue, type index_WatermarkController as WatermarkController, type index_WatermarkOptions as WatermarkOptions, type index_WebSocketLike as WebSocketLike, type index_WebSocketMessageEventLike as WebSocketMessageEventLike, type index_WebSocketRegister as WebSocketRegister, type index_WebhookRegister as WebhookRegister, type index_WithBreakerBundle as WithBreakerBundle, type index_WithStatusBundle as WithStatusBundle, type index_WorkerBridge as WorkerBridge, type index_WorkerBridgeOptions as WorkerBridgeOptions, type index_WorkerSelfHandle as WorkerSelfHandle, type index_WorkerSelfOptions as WorkerSelfOptions, type index_WorkerTransport as WorkerTransport, index_audit as audit, index_buffer as buffer, index_bufferCount as bufferCount, index_bufferTime as bufferTime, index_cache as cache, index_cached as cached, index_cascadingCache as cascadingCache, index_catchError as catchError, index_checkpointNodeValue as checkpointNodeValue, index_checkpointToRedis as checkpointToRedis, index_checkpointToS3 as checkpointToS3, index_circuitBreaker as circuitBreaker, index_combine as combine, index_combineLatest as combineLatest, index_concat as concat, index_concatMap as concatMap, index_constant as constant, index_createTransport as createTransport, index_createWatermarkController as createWatermarkController, index_debounce as debounce, index_debounceTime as debounceTime, index_decorrelatedJitter as decorrelatedJitter, index_delay as delay, index_deserializeError as deserializeError, index_distill as distill, index_distinctUntilChanged as distinctUntilChanged, index_elementAt as elementAt, index_empty as empty, index_escapeRegexChar as escapeRegexChar, index_exhaustMap as exhaustMap, index_exponential as exponential, index_fallback as fallback, index_fibonacci as fibonacci, index_filter as filter, index_find as find, index_first as first, index_firstValueFrom as firstValueFrom, index_flatMap as flatMap, index_forEach as forEach, index_fromAny as fromAny, index_fromAsyncIter as fromAsyncIter, index_fromCSV as fromCSV, index_fromClickHouseWatch as fromClickHouseWatch, index_fromCron as fromCron, index_fromDrizzle as fromDrizzle, index_fromEvent as fromEvent, index_fromFSWatch as fromFSWatch, index_fromGitHook as fromGitHook, index_fromHTTP as fromHTTP, index_fromIDBRequest as fromIDBRequest, index_fromIDBTransaction as fromIDBTransaction, index_fromIter as fromIter, index_fromKafka as fromKafka, index_fromKysely as fromKysely, index_fromMCP as fromMCP, index_fromNATS as fromNATS, index_fromNDJSON as fromNDJSON, index_fromOTel as fromOTel, index_fromPrisma as fromPrisma, index_fromPrometheus as fromPrometheus, index_fromPromise as fromPromise, index_fromPulsar as fromPulsar, index_fromRabbitMQ as fromRabbitMQ, index_fromRedisStream as fromRedisStream, index_fromSqlite as fromSqlite, index_fromStatsD as fromStatsD, index_fromSyslog as fromSyslog, index_fromTimer as fromTimer, index_fromWebSocket as fromWebSocket, index_fromWebhook as fromWebhook, index_gate as gate, index_globToRegExp as globToRegExp, index_interval as interval, index_last as last, index_linear as linear, index_logSlice as logSlice, index_lru as lru, index_map as map, index_matchesAnyPattern as matchesAnyPattern, index_matchesCron as matchesCron, index_merge as merge, index_mergeMap as mergeMap, index_nameToSignal as nameToSignal, index_never as never, index_observeGraph$ as observeGraph$, index_observeNode$ as observeNode$, index_of as of, index_pairwise as pairwise, index_parseCron as parseCron, index_parsePrometheusText as parsePrometheusText, index_parseStatsD as parseStatsD, index_parseSyslog as parseSyslog, index_pausable as pausable, index_pubsub as pubsub, index_race as race, index_rateLimiter as rateLimiter, index_reactiveIndex as reactiveIndex, index_reactiveList as reactiveList, index_reactiveLog as reactiveLog, index_reactiveMap as reactiveMap, index_reduce as reduce, index_repeat as repeat, index_replay as replay, index_rescue as rescue, index_resolveBackoffPreset as resolveBackoffPreset, index_restoreGraphCheckpoint as restoreGraphCheckpoint, index_restoreGraphCheckpointIndexedDb as restoreGraphCheckpointIndexedDb, index_retry as retry, index_sample as sample, index_saveGraphCheckpoint as saveGraphCheckpoint, index_saveGraphCheckpointIndexedDb as saveGraphCheckpointIndexedDb, index_scan as scan, index_serializeError as serializeError, index_share as share, index_shareReplay as shareReplay, index_signalToName as signalToName, index_skip as skip, index_startWith as startWith, index_switchMap as switchMap, index_take as take, index_takeUntil as takeUntil, index_takeWhile as takeWhile, index_tap as tap, index_throttle as throttle, index_throttleTime as throttleTime, index_throwError as throwError, index_tieredStorage as tieredStorage, index_timeout as timeout, index_toArray as toArray, index_toCSV as toCSV, index_toClickHouse as toClickHouse, index_toFile as toFile, index_toKafka as toKafka, index_toLoki as toLoki, index_toMessages$ as toMessages$, index_toMongo as toMongo, index_toNATS as toNATS, index_toObservable as toObservable, index_toPostgres as toPostgres, index_toPulsar as toPulsar, index_toRabbitMQ as toRabbitMQ, index_toRedisStream as toRedisStream, index_toS3 as toS3, index_toSSE as toSSE, index_toSqlite as toSqlite, index_toTempo as toTempo, index_toWebSocket as toWebSocket, index_tokenBucket as tokenBucket, index_tokenTracker as tokenTracker, index_verifiable as verifiable, index_window as window, index_windowCount as windowCount, index_windowTime as windowTime, index_withBreaker as withBreaker, index_withLatestFrom as withLatestFrom, index_withMaxAttempts as withMaxAttempts, index_withStatus as withStatus, index_workerBridge as workerBridge, index_workerSelf as workerSelf, index_zip as zip };
|
|
4082
4510
|
}
|
|
4083
4511
|
|
|
4084
|
-
export { type
|
|
4512
|
+
export { type FromPulsarOptions as $, type AdapterHandlers as A, type BackoffPreset as B, type CSVRow as C, type DistillBundle as D, type Extraction as E, type ExponentialBackoffOptions as F, type FSEvent as G, type FSEventType as H, FileCheckpointAdapter as I, type FileWriterLike as J, type FromCSVOptions as K, type FromClickHouseWatchOptions as L, type FromCronOptions as M, type NodeInput as N, type FromDrizzleOptions as O, type FromFSWatchOptions as P, type FromGitHookOptions as Q, type ReactiveListSnapshot as R, type FromHTTPOptions as S, type FromKafkaOptions as T, type FromKyselyOptions as U, type FromMCPOptions as V, type FromNATSOptions as W, type FromNDJSONOptions as X, type FromOTelOptions as Y, type FromPrismaOptions as Z, type FromPrometheusOptions as _, type ReactiveMapSnapshot as a, type SyslogRegister as a$, type FromRabbitMQOptions as a0, type FromRedisStreamOptions as a1, type FromSqliteOptions as a2, type FromStatsDOptions as a3, type FromSyslogOptions as a4, type GitEvent as a5, type GitHookType as a6, type HTTPBundle as a7, type IndexRow as a8, type IndexedDbCheckpointSpec as a9, type PulsarConsumerLike as aA, type PulsarMessage as aB, type PulsarProducerLike as aC, type RabbitMQChannelLike as aD, type RabbitMQMessage as aE, type ReactiveIndexBundle as aF, type ReactiveIndexOptions as aG, type ReactiveIndexSnapshot as aH, type ReactiveListBundle as aI, type ReactiveListOptions as aJ, type ReactiveMapBundle as aK, type ReactiveMapOptions as aL, type ReadyMessage as aM, type RedisCheckpointClientLike as aN, type RedisClientLike as aO, type RedisStreamEntry as aP, type RetryOptions as aQ, type S3ClientLike as aR, type SignalMessage as aS, type SinkHandle as aT, type SinkTransportError as aU, SqliteCheckpointAdapter as aV, type SqliteDbLike as aW, type StatsDMetric as aX, type StatsDRegister as aY, type StatusValue as aZ, type SyslogMessage as a_, type InitMessage as aa, type JitterMode as ab, type KafkaConsumerLike as ac, type KafkaMessage as ad, type KafkaProducerLike as ae, type KyselyQueryLike as af, type LokiClientLike as ag, type LokiStream as ah, type MCPClientLike as ai, MemoryCheckpointAdapter as aj, type MergeMapOptions as ak, type MongoCollectionLike as al, type NATSClientLike as am, type NATSMessage as an, type NATSSubscriptionLike as ao, NS_PER_MS as ap, NS_PER_SEC as aq, type OTelBundle as ar, type OTelLog as as, type OTelMetric as at, type OTelRegister as au, type OTelSpan as av, type PostgresClientLike as aw, type PrismaModelLike as ax, type PrometheusMetric as ay, type PubSubHub as az, type AsyncSourceOpts as b, delay as b$, type TapObserver as b0, type TempoClientLike as b1, type ThrottleOptions as b2, type TieredStorage as b3, type TieredStorageOptions as b4, TimeoutError as b5, type ToCSVOptions as b6, type ToClickHouseOptions as b7, type ToFileOptions as b8, type ToKafkaOptions as b9, type WorkerBridge as bA, type WorkerBridgeOptions as bB, type WorkerSelfHandle as bC, type WorkerSelfOptions as bD, type WorkerTransport as bE, audit as bF, buffer as bG, bufferCount as bH, bufferTime as bI, cache as bJ, cached as bK, cascadingCache as bL, catchError as bM, checkpointNodeValue as bN, checkpointToRedis as bO, checkpointToS3 as bP, circuitBreaker as bQ, combine as bR, combineLatest as bS, concat as bT, concatMap as bU, constant as bV, createTransport as bW, createWatermarkController as bX, debounce as bY, debounceTime as bZ, decorrelatedJitter as b_, type ToLokiOptions as ba, type ToMongoOptions as bb, type ToNATSOptions as bc, type ToPostgresOptions as bd, type ToPulsarOptions as be, type ToRabbitMQOptions as bf, type ToRedisStreamOptions as bg, type ToS3Options as bh, type ToSSEOptions as bi, type ToSqliteOptions as bj, type ToTempoOptions as bk, type ToWebSocketOptions as bl, type ToWebSocketTransportError as bm, type TokenBucket as bn, type ValueMessage as bo, type VerifiableBundle as bp, type VerifiableOptions as bq, type VerifyValue as br, type WatermarkController as bs, type WatermarkOptions as bt, type WebSocketLike as bu, type WebSocketMessageEventLike as bv, type WebSocketRegister as bw, type WebhookRegister as bx, type WithBreakerBundle as by, type WithStatusBundle as bz, type BackoffStrategy as c, parseCron as c$, deserializeError as c0, distill as c1, distinctUntilChanged as c2, elementAt as c3, empty as c4, escapeRegexChar as c5, exhaustMap as c6, exponential as c7, index as c8, fallback as c9, fromPrisma as cA, fromPrometheus as cB, fromPromise as cC, fromPulsar as cD, fromRabbitMQ as cE, fromRedisStream as cF, fromSqlite as cG, fromStatsD as cH, fromSyslog as cI, fromTimer as cJ, fromWebSocket as cK, fromWebhook as cL, gate as cM, globToRegExp as cN, interval as cO, last as cP, linear as cQ, lru as cR, map as cS, matchesAnyPattern as cT, matchesCron as cU, merge as cV, mergeMap as cW, nameToSignal as cX, never as cY, of as cZ, pairwise as c_, fibonacci as ca, filter as cb, find as cc, first as cd, firstValueFrom as ce, flatMap as cf, forEach as cg, fromAny as ch, fromAsyncIter as ci, fromCSV as cj, fromClickHouseWatch as ck, fromCron as cl, fromDrizzle as cm, fromEvent as cn, fromFSWatch as co, fromGitHook as cp, fromHTTP as cq, fromIDBRequest as cr, fromIDBTransaction as cs, fromIter as ct, fromKafka as cu, fromKysely as cv, fromMCP as cw, fromNATS as cx, fromNDJSON as cy, fromOTel as cz, type BatchMessage as d, withLatestFrom as d$, parsePrometheusText as d0, parseStatsD as d1, parseSyslog as d2, pausable as d3, pubsub as d4, race as d5, rateLimiter as d6, reactiveIndex as d7, reactiveList as d8, reactiveMap as d9, throwError as dA, tieredStorage as dB, timeout as dC, toArray as dD, toCSV as dE, toClickHouse as dF, toFile as dG, toKafka as dH, toLoki as dI, toMongo as dJ, toNATS as dK, toPostgres as dL, toPulsar as dM, toRabbitMQ as dN, toRedisStream as dO, toS3 as dP, toSSE as dQ, toSqlite as dR, toTempo as dS, toWebSocket as dT, tokenBucket as dU, tokenTracker as dV, verifiable as dW, window as dX, windowCount as dY, windowTime as dZ, withBreaker as d_, reduce as da, repeat as db, replay as dc, rescue as dd, resolveBackoffPreset as de, restoreGraphCheckpoint as df, restoreGraphCheckpointIndexedDb as dg, retry as dh, sample as di, saveGraphCheckpoint as dj, saveGraphCheckpointIndexedDb as dk, scan as dl, serializeError as dm, share as dn, shareReplay as dp, signalToName as dq, skip as dr, startWith as ds, switchMap as dt, take as du, takeUntil as dv, takeWhile as dw, tap as dx, throttle as dy, throttleTime as dz, type BridgeMessage as e, withMaxAttempts as e0, withStatus as e1, workerBridge as e2, workerSelf as e3, zip as e4, type BufferedSinkHandle as f, type CacheEvictionPolicy as g, type CacheTier as h, type CascadingCache as i, type CascadingCacheOptions as j, type CheckpointAdapter as k, type CheckpointToRedisOptions as l, type CheckpointToS3Options as m, type CircuitBreaker as n, type CircuitBreakerOptions as o, CircuitOpenError as p, type CircuitState as q, type ClickHouseClientLike as r, type ClickHouseInsertClientLike as s, type ClickHouseRow as t, type CronSchedule as u, DictCheckpointAdapter as v, type DistillOptions as w, type DrizzleQueryLike as x, type ErrorMessage as y, type EventTargetLike as z };
|