@graphrefly/graphrefly 0.4.0 → 0.6.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/dist/{chunk-VPS7L64N.js → chunk-V3UACY6A.js} +900 -4
- package/dist/chunk-V3UACY6A.js.map +1 -0
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/extra/index.cjs +899 -3
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +1 -1
- package/dist/extra/index.d.ts +1 -1
- package/dist/extra/index.js +37 -1
- package/dist/{index-BHUvlQ3v.d.ts → index-B2jmzVxL.d.ts} +708 -4
- package/dist/{index-B6SsZs2h.d.cts → index-Bk_idZm1.d.cts} +708 -4
- package/dist/index.cjs +917 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +45 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/dist/chunk-VPS7L64N.js.map +0 -1
|
@@ -782,12 +782,13 @@ declare const shareReplay: typeof replay;
|
|
|
782
782
|
*
|
|
783
783
|
* **New (5.2c):** fromOTel, fromSyslog, fromStatsD, fromPrometheus,
|
|
784
784
|
* fromKafka/toKafka, fromRedisStream/toRedisStream, fromCSV, fromNDJSON,
|
|
785
|
-
* fromClickHouseWatch
|
|
785
|
+
* fromClickHouseWatch, fromPulsar/toPulsar, fromNATS/toNATS,
|
|
786
|
+
* fromRabbitMQ/toRabbitMQ.
|
|
786
787
|
*/
|
|
787
788
|
|
|
788
789
|
/** Structured callback for sink transport failures (Kafka, Redis, etc.). */
|
|
789
790
|
type SinkTransportError = {
|
|
790
|
-
stage: "serialize" | "send";
|
|
791
|
+
stage: "serialize" | "send" | "routing_key";
|
|
791
792
|
error: Error;
|
|
792
793
|
value: unknown;
|
|
793
794
|
};
|
|
@@ -1509,6 +1510,654 @@ type FromClickHouseWatchOptions = AsyncSourceOpts & {
|
|
|
1509
1510
|
* @category extra
|
|
1510
1511
|
*/
|
|
1511
1512
|
declare function fromClickHouseWatch(client: ClickHouseClientLike, query: string, opts?: FromClickHouseWatchOptions): Node<ClickHouseRow>;
|
|
1513
|
+
/** Duck-typed Pulsar consumer (compatible with pulsar-client). */
|
|
1514
|
+
type PulsarConsumerLike = {
|
|
1515
|
+
receive(): Promise<{
|
|
1516
|
+
getData(): Buffer;
|
|
1517
|
+
getMessageId(): {
|
|
1518
|
+
toString(): string;
|
|
1519
|
+
};
|
|
1520
|
+
getPartitionKey(): string;
|
|
1521
|
+
getProperties(): Record<string, string>;
|
|
1522
|
+
getPublishTimestamp(): number;
|
|
1523
|
+
getEventTimestamp(): number;
|
|
1524
|
+
getTopicName(): string;
|
|
1525
|
+
}>;
|
|
1526
|
+
acknowledge(msg: unknown): Promise<void>;
|
|
1527
|
+
close(): Promise<void>;
|
|
1528
|
+
};
|
|
1529
|
+
/** Duck-typed Pulsar producer. */
|
|
1530
|
+
type PulsarProducerLike = {
|
|
1531
|
+
send(msg: {
|
|
1532
|
+
data: Buffer;
|
|
1533
|
+
partitionKey?: string;
|
|
1534
|
+
properties?: Record<string, string>;
|
|
1535
|
+
}): Promise<void>;
|
|
1536
|
+
close(): Promise<void>;
|
|
1537
|
+
};
|
|
1538
|
+
/** Structured Pulsar message. */
|
|
1539
|
+
type PulsarMessage<T = unknown> = {
|
|
1540
|
+
topic: string;
|
|
1541
|
+
messageId: string;
|
|
1542
|
+
key: string;
|
|
1543
|
+
value: T;
|
|
1544
|
+
properties: Record<string, string>;
|
|
1545
|
+
publishTime: number;
|
|
1546
|
+
eventTime: number;
|
|
1547
|
+
timestampNs: number;
|
|
1548
|
+
};
|
|
1549
|
+
/** Options for {@link fromPulsar}. */
|
|
1550
|
+
type FromPulsarOptions = ExtraOpts$1 & {
|
|
1551
|
+
/** Deserialize message data. Default: `JSON.parse(buffer.toString())`. */
|
|
1552
|
+
deserialize?: (data: Buffer) => unknown;
|
|
1553
|
+
/** Acknowledge messages automatically. Default: `true`. */
|
|
1554
|
+
autoAck?: boolean;
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
* Apache Pulsar consumer as a reactive source (native client).
|
|
1558
|
+
*
|
|
1559
|
+
* Wraps a `pulsar-client`-compatible consumer. Each message becomes a `DATA` emission.
|
|
1560
|
+
* For Kafka-on-Pulsar (KoP), use {@link fromKafka} instead.
|
|
1561
|
+
*
|
|
1562
|
+
* @param consumer - Pulsar consumer instance (caller owns create/close lifecycle).
|
|
1563
|
+
* @param opts - Deserialization and source options.
|
|
1564
|
+
* @returns `Node<PulsarMessage<T>>` — one `DATA` per Pulsar message.
|
|
1565
|
+
*
|
|
1566
|
+
* @remarks
|
|
1567
|
+
* Teardown sets an internal flag but cannot interrupt a pending `consumer.receive()`.
|
|
1568
|
+
* The loop exits on the next message or when the consumer is closed externally.
|
|
1569
|
+
* Callers should call `consumer.close()` after unsubscribing for prompt cleanup.
|
|
1570
|
+
*
|
|
1571
|
+
* @example
|
|
1572
|
+
* ```ts
|
|
1573
|
+
* import Pulsar from "pulsar-client";
|
|
1574
|
+
* import { fromPulsar } from "@graphrefly/graphrefly-ts";
|
|
1575
|
+
*
|
|
1576
|
+
* const client = new Pulsar.Client({ serviceUrl: "pulsar://localhost:6650" });
|
|
1577
|
+
* const consumer = await client.subscribe({ topic: "events", subscription: "my-sub" });
|
|
1578
|
+
* const events$ = fromPulsar(consumer);
|
|
1579
|
+
* ```
|
|
1580
|
+
*
|
|
1581
|
+
* @category extra
|
|
1582
|
+
*/
|
|
1583
|
+
declare function fromPulsar<T = unknown>(consumer: PulsarConsumerLike, opts?: FromPulsarOptions): Node<PulsarMessage<T>>;
|
|
1584
|
+
/** Options for {@link toPulsar}. */
|
|
1585
|
+
type ToPulsarOptions<T> = ExtraOpts$1 & {
|
|
1586
|
+
/** Serialize value for Pulsar. Default: `JSON.stringify` → Buffer. */
|
|
1587
|
+
serialize?: (value: T) => Buffer;
|
|
1588
|
+
/** Extract partition key from value. Default: none. */
|
|
1589
|
+
keyExtractor?: (value: T) => string | undefined;
|
|
1590
|
+
/** Extract properties from value. */
|
|
1591
|
+
propertiesExtractor?: (value: T) => Record<string, string> | undefined;
|
|
1592
|
+
/** Called on serialization or send failures. */
|
|
1593
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1594
|
+
};
|
|
1595
|
+
/**
|
|
1596
|
+
* Pulsar producer sink — forwards upstream `DATA` to a Pulsar topic.
|
|
1597
|
+
*
|
|
1598
|
+
* @param source - Upstream node to forward.
|
|
1599
|
+
* @param pulsarProducer - Pulsar producer instance (caller owns lifecycle).
|
|
1600
|
+
* @param opts - Serialization options.
|
|
1601
|
+
* @returns Unsubscribe function.
|
|
1602
|
+
*
|
|
1603
|
+
* @category extra
|
|
1604
|
+
*/
|
|
1605
|
+
declare function toPulsar<T>(source: Node<T>, pulsarProducer: PulsarProducerLike, opts?: ToPulsarOptions<T>): () => void;
|
|
1606
|
+
/** Duck-typed NATS subscription (compatible with nats.js). */
|
|
1607
|
+
type NATSSubscriptionLike = AsyncIterable<{
|
|
1608
|
+
subject: string;
|
|
1609
|
+
data: Uint8Array;
|
|
1610
|
+
headers?: {
|
|
1611
|
+
get(key: string): string;
|
|
1612
|
+
keys(): string[];
|
|
1613
|
+
};
|
|
1614
|
+
reply?: string;
|
|
1615
|
+
sid: number;
|
|
1616
|
+
}>;
|
|
1617
|
+
/** Duck-typed NATS client (compatible with nats.js). */
|
|
1618
|
+
type NATSClientLike = {
|
|
1619
|
+
subscribe(subject: string, opts?: {
|
|
1620
|
+
queue?: string;
|
|
1621
|
+
}): NATSSubscriptionLike;
|
|
1622
|
+
publish(subject: string, data?: Uint8Array, opts?: {
|
|
1623
|
+
headers?: unknown;
|
|
1624
|
+
reply?: string;
|
|
1625
|
+
}): void;
|
|
1626
|
+
drain(): Promise<void>;
|
|
1627
|
+
};
|
|
1628
|
+
/** Structured NATS message. */
|
|
1629
|
+
type NATSMessage<T = unknown> = {
|
|
1630
|
+
subject: string;
|
|
1631
|
+
data: T;
|
|
1632
|
+
headers: Record<string, string>;
|
|
1633
|
+
reply: string | undefined;
|
|
1634
|
+
sid: number;
|
|
1635
|
+
timestampNs: number;
|
|
1636
|
+
};
|
|
1637
|
+
/** Options for {@link fromNATS}. */
|
|
1638
|
+
type FromNATSOptions = ExtraOpts$1 & {
|
|
1639
|
+
/** Queue group name for load balancing. */
|
|
1640
|
+
queue?: string;
|
|
1641
|
+
/** Deserialize message data. Default: `JSON.parse(textDecoder.decode(data))`. */
|
|
1642
|
+
deserialize?: (data: Uint8Array) => unknown;
|
|
1643
|
+
};
|
|
1644
|
+
/**
|
|
1645
|
+
* NATS consumer as a reactive source.
|
|
1646
|
+
*
|
|
1647
|
+
* Wraps a `nats.js`-compatible client subscription. Each message becomes a `DATA` emission.
|
|
1648
|
+
*
|
|
1649
|
+
* @param client - NATS client instance (caller owns connect/drain lifecycle).
|
|
1650
|
+
* @param subject - Subject to subscribe to (supports wildcards).
|
|
1651
|
+
* @param opts - Queue group, deserialization, and source options.
|
|
1652
|
+
* @returns `Node<NATSMessage<T>>` — one `DATA` per NATS message.
|
|
1653
|
+
*
|
|
1654
|
+
* @remarks
|
|
1655
|
+
* Teardown sets an internal flag but cannot break the async iterator. The loop
|
|
1656
|
+
* exits on the next message or when the subscription is drained/unsubscribed
|
|
1657
|
+
* externally. Call `client.drain()` after unsubscribing for prompt cleanup.
|
|
1658
|
+
*
|
|
1659
|
+
* @example
|
|
1660
|
+
* ```ts
|
|
1661
|
+
* import { connect } from "nats";
|
|
1662
|
+
* import { fromNATS } from "@graphrefly/graphrefly-ts";
|
|
1663
|
+
*
|
|
1664
|
+
* const nc = await connect({ servers: "localhost:4222" });
|
|
1665
|
+
* const events$ = fromNATS(nc, "events.>");
|
|
1666
|
+
* ```
|
|
1667
|
+
*
|
|
1668
|
+
* @category extra
|
|
1669
|
+
*/
|
|
1670
|
+
declare function fromNATS<T = unknown>(client: NATSClientLike, subject: string, opts?: FromNATSOptions): Node<NATSMessage<T>>;
|
|
1671
|
+
/** Options for {@link toNATS}. */
|
|
1672
|
+
type ToNATSOptions<T> = ExtraOpts$1 & {
|
|
1673
|
+
/** Serialize value for NATS. Default: `JSON.stringify` → Uint8Array. */
|
|
1674
|
+
serialize?: (value: T) => Uint8Array;
|
|
1675
|
+
/** Called on serialization failures. */
|
|
1676
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1677
|
+
};
|
|
1678
|
+
/**
|
|
1679
|
+
* NATS publisher sink — forwards upstream `DATA` to a NATS subject.
|
|
1680
|
+
*
|
|
1681
|
+
* @param source - Upstream node to forward.
|
|
1682
|
+
* @param client - NATS client instance.
|
|
1683
|
+
* @param subject - Target subject.
|
|
1684
|
+
* @param opts - Serialization options.
|
|
1685
|
+
* @returns Unsubscribe function.
|
|
1686
|
+
*
|
|
1687
|
+
* @category extra
|
|
1688
|
+
*/
|
|
1689
|
+
declare function toNATS<T>(source: Node<T>, client: NATSClientLike, subject: string, opts?: ToNATSOptions<T>): () => void;
|
|
1690
|
+
/** Duck-typed RabbitMQ channel (compatible with amqplib). */
|
|
1691
|
+
type RabbitMQChannelLike = {
|
|
1692
|
+
consume(queue: string, onMessage: (msg: {
|
|
1693
|
+
content: Buffer;
|
|
1694
|
+
fields: {
|
|
1695
|
+
routingKey: string;
|
|
1696
|
+
exchange: string;
|
|
1697
|
+
deliveryTag: number;
|
|
1698
|
+
redelivered: boolean;
|
|
1699
|
+
};
|
|
1700
|
+
properties: Record<string, unknown>;
|
|
1701
|
+
} | null) => void, opts?: {
|
|
1702
|
+
noAck?: boolean;
|
|
1703
|
+
}): Promise<{
|
|
1704
|
+
consumerTag: string;
|
|
1705
|
+
}>;
|
|
1706
|
+
cancel(consumerTag: string): Promise<void>;
|
|
1707
|
+
ack(msg: unknown): void;
|
|
1708
|
+
publish(exchange: string, routingKey: string, content: Buffer, opts?: Record<string, unknown>): boolean;
|
|
1709
|
+
sendToQueue(queue: string, content: Buffer, opts?: Record<string, unknown>): boolean;
|
|
1710
|
+
};
|
|
1711
|
+
/** Structured RabbitMQ message. */
|
|
1712
|
+
type RabbitMQMessage<T = unknown> = {
|
|
1713
|
+
queue: string;
|
|
1714
|
+
routingKey: string;
|
|
1715
|
+
exchange: string;
|
|
1716
|
+
content: T;
|
|
1717
|
+
properties: Record<string, unknown>;
|
|
1718
|
+
deliveryTag: number;
|
|
1719
|
+
redelivered: boolean;
|
|
1720
|
+
timestampNs: number;
|
|
1721
|
+
};
|
|
1722
|
+
/** Options for {@link fromRabbitMQ}. */
|
|
1723
|
+
type FromRabbitMQOptions = ExtraOpts$1 & {
|
|
1724
|
+
/** Deserialize message content. Default: `JSON.parse(buffer.toString())`. */
|
|
1725
|
+
deserialize?: (content: Buffer) => unknown;
|
|
1726
|
+
/** Auto-acknowledge messages. Default: `true`. */
|
|
1727
|
+
autoAck?: boolean;
|
|
1728
|
+
};
|
|
1729
|
+
/**
|
|
1730
|
+
* RabbitMQ consumer as a reactive source.
|
|
1731
|
+
*
|
|
1732
|
+
* Wraps an `amqplib`-compatible channel. Each message becomes a `DATA` emission.
|
|
1733
|
+
*
|
|
1734
|
+
* @param channel - AMQP channel instance (caller owns connection/channel lifecycle).
|
|
1735
|
+
* @param queue - Queue to consume from.
|
|
1736
|
+
* @param opts - Deserialization and acknowledgment options.
|
|
1737
|
+
* @returns `Node<RabbitMQMessage<T>>` — one `DATA` per RabbitMQ message.
|
|
1738
|
+
*
|
|
1739
|
+
* @remarks
|
|
1740
|
+
* When `autoAck` is `false`, the adapter opens the channel with `noAck: false`
|
|
1741
|
+
* (broker requires acks) but does not call `channel.ack()`. The caller must ack
|
|
1742
|
+
* messages externally using the `deliveryTag` from the emitted {@link RabbitMQMessage}:
|
|
1743
|
+
* ```ts
|
|
1744
|
+
* channel.ack({ fields: { deliveryTag: msg.deliveryTag } } as any);
|
|
1745
|
+
* ```
|
|
1746
|
+
*
|
|
1747
|
+
* @example
|
|
1748
|
+
* ```ts
|
|
1749
|
+
* import amqplib from "amqplib";
|
|
1750
|
+
* import { fromRabbitMQ } from "@graphrefly/graphrefly-ts";
|
|
1751
|
+
*
|
|
1752
|
+
* const conn = await amqplib.connect("amqp://localhost");
|
|
1753
|
+
* const ch = await conn.createChannel();
|
|
1754
|
+
* await ch.assertQueue("events");
|
|
1755
|
+
* const events$ = fromRabbitMQ(ch, "events");
|
|
1756
|
+
* ```
|
|
1757
|
+
*
|
|
1758
|
+
* @category extra
|
|
1759
|
+
*/
|
|
1760
|
+
declare function fromRabbitMQ<T = unknown>(channel: RabbitMQChannelLike, queue: string, opts?: FromRabbitMQOptions): Node<RabbitMQMessage<T>>;
|
|
1761
|
+
/** Options for {@link toRabbitMQ}. */
|
|
1762
|
+
type ToRabbitMQOptions<T> = ExtraOpts$1 & {
|
|
1763
|
+
/** Serialize value for RabbitMQ. Default: `Buffer.from(JSON.stringify(value))`. */
|
|
1764
|
+
serialize?: (value: T) => Buffer;
|
|
1765
|
+
/** Extract routing key from value. Default: `""`. */
|
|
1766
|
+
routingKeyExtractor?: (value: T) => string;
|
|
1767
|
+
/** Called on serialization or send failures. */
|
|
1768
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1769
|
+
};
|
|
1770
|
+
/**
|
|
1771
|
+
* RabbitMQ producer sink — forwards upstream `DATA` to a RabbitMQ exchange/queue.
|
|
1772
|
+
*
|
|
1773
|
+
* @param source - Upstream node to forward.
|
|
1774
|
+
* @param channel - AMQP channel instance.
|
|
1775
|
+
* @param exchange - Target exchange (use `""` for default exchange + queue routing).
|
|
1776
|
+
* @param opts - Serialization and routing options.
|
|
1777
|
+
* @returns Unsubscribe function.
|
|
1778
|
+
*
|
|
1779
|
+
* @category extra
|
|
1780
|
+
*/
|
|
1781
|
+
declare function toRabbitMQ<T>(source: Node<T>, channel: RabbitMQChannelLike, exchange: string, opts?: ToRabbitMQOptions<T>): () => void;
|
|
1782
|
+
/** Handle returned by buffered sinks. `flush()` drains remaining buffer. */
|
|
1783
|
+
type BufferedSinkHandle = {
|
|
1784
|
+
/** Stop the sink and cancel the flush timer. */
|
|
1785
|
+
dispose: () => void;
|
|
1786
|
+
/** Manually drain the internal buffer. */
|
|
1787
|
+
flush: () => Promise<void>;
|
|
1788
|
+
};
|
|
1789
|
+
/** Duck-typed writable file handle (compatible with `fs.createWriteStream`). */
|
|
1790
|
+
type FileWriterLike = {
|
|
1791
|
+
write(data: string | Uint8Array): boolean | void;
|
|
1792
|
+
end(): void;
|
|
1793
|
+
};
|
|
1794
|
+
/** Options for {@link toFile}. */
|
|
1795
|
+
type ToFileOptions<T> = ExtraOpts$1 & {
|
|
1796
|
+
/** Serialize a value to a string line. Default: `JSON.stringify(v) + "\n"`. */
|
|
1797
|
+
serialize?: (value: T) => string;
|
|
1798
|
+
/** `"append"` (default) or `"overwrite"` — controls initial file behavior hint. */
|
|
1799
|
+
mode?: "append" | "overwrite";
|
|
1800
|
+
/** Flush interval in ms. `0` = write-through (no buffering). Default: `0`. */
|
|
1801
|
+
flushIntervalMs?: number;
|
|
1802
|
+
/** Buffer size (item count) before auto-flush. Default: `Infinity` (timer only). */
|
|
1803
|
+
batchSize?: number;
|
|
1804
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1805
|
+
};
|
|
1806
|
+
/**
|
|
1807
|
+
* File sink — writes upstream `DATA` values to a file-like writable.
|
|
1808
|
+
*
|
|
1809
|
+
* When `flushIntervalMs > 0` or `batchSize` is set, values are buffered and
|
|
1810
|
+
* flushed in batches. Otherwise, each value is written immediately.
|
|
1811
|
+
*
|
|
1812
|
+
* @param source - Upstream node.
|
|
1813
|
+
* @param writer - Writable file handle (e.g. `fs.createWriteStream(path, { flags: "a" })`).
|
|
1814
|
+
* @param opts - Serialization, buffering, and mode options.
|
|
1815
|
+
* @returns `BufferedSinkHandle` with `dispose()` and `flush()`.
|
|
1816
|
+
*
|
|
1817
|
+
* @category extra
|
|
1818
|
+
*/
|
|
1819
|
+
declare function toFile<T>(source: Node<T>, writer: FileWriterLike, opts?: ToFileOptions<T>): BufferedSinkHandle;
|
|
1820
|
+
/** Options for {@link toCSV}. */
|
|
1821
|
+
type ToCSVOptions<T> = ExtraOpts$1 & {
|
|
1822
|
+
/** Column names. Required — determines header row and field order. */
|
|
1823
|
+
columns: string[];
|
|
1824
|
+
/** Column delimiter. Default: `","`. */
|
|
1825
|
+
delimiter?: string;
|
|
1826
|
+
/** Whether to write a header row on first flush. Default: `true`. */
|
|
1827
|
+
writeHeader?: boolean;
|
|
1828
|
+
/** Extract a cell value from the row object. Default: `String(row[col] ?? "")`. */
|
|
1829
|
+
cellExtractor?: (row: T, column: string) => string;
|
|
1830
|
+
/** Flush interval in ms. Default: `0` (write-through). */
|
|
1831
|
+
flushIntervalMs?: number;
|
|
1832
|
+
/** Buffer size before auto-flush. Default: `Infinity`. */
|
|
1833
|
+
batchSize?: number;
|
|
1834
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* CSV file sink — writes upstream `DATA` as CSV rows.
|
|
1838
|
+
*
|
|
1839
|
+
* @param source - Upstream node.
|
|
1840
|
+
* @param writer - Writable file handle.
|
|
1841
|
+
* @param opts - Column definition, delimiter, and buffering options.
|
|
1842
|
+
* @returns `BufferedSinkHandle`.
|
|
1843
|
+
*
|
|
1844
|
+
* @category extra
|
|
1845
|
+
*/
|
|
1846
|
+
declare function toCSV<T>(source: Node<T>, writer: FileWriterLike, opts: ToCSVOptions<T>): BufferedSinkHandle;
|
|
1847
|
+
/** Duck-typed ClickHouse client for batch inserts. */
|
|
1848
|
+
type ClickHouseInsertClientLike = {
|
|
1849
|
+
insert(params: {
|
|
1850
|
+
table: string;
|
|
1851
|
+
values: unknown[];
|
|
1852
|
+
format?: string;
|
|
1853
|
+
}): Promise<void>;
|
|
1854
|
+
};
|
|
1855
|
+
/** Options for {@link toClickHouse}. */
|
|
1856
|
+
type ToClickHouseOptions<T> = ExtraOpts$1 & {
|
|
1857
|
+
/** Batch size before auto-flush. Default: `1000`. */
|
|
1858
|
+
batchSize?: number;
|
|
1859
|
+
/** Flush interval in ms. Default: `5000`. */
|
|
1860
|
+
flushIntervalMs?: number;
|
|
1861
|
+
/** Insert format. Default: `"JSONEachRow"`. */
|
|
1862
|
+
format?: string;
|
|
1863
|
+
/** Transform value before insert. Default: identity. */
|
|
1864
|
+
transform?: (value: T) => unknown;
|
|
1865
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1866
|
+
};
|
|
1867
|
+
/**
|
|
1868
|
+
* ClickHouse buffered batch insert sink.
|
|
1869
|
+
*
|
|
1870
|
+
* Accumulates upstream `DATA` values and inserts in batches.
|
|
1871
|
+
*
|
|
1872
|
+
* @param source - Upstream node.
|
|
1873
|
+
* @param client - ClickHouse client with `insert()`.
|
|
1874
|
+
* @param table - Target table name.
|
|
1875
|
+
* @param opts - Batch size, flush interval, and transform options.
|
|
1876
|
+
* @returns `BufferedSinkHandle`.
|
|
1877
|
+
*
|
|
1878
|
+
* @category extra
|
|
1879
|
+
*/
|
|
1880
|
+
declare function toClickHouse<T>(source: Node<T>, client: ClickHouseInsertClientLike, table: string, opts?: ToClickHouseOptions<T>): BufferedSinkHandle;
|
|
1881
|
+
/** Duck-typed S3 client (compatible with AWS SDK v3 `S3Client.send(PutObjectCommand(...))`). */
|
|
1882
|
+
type S3ClientLike = {
|
|
1883
|
+
putObject(params: {
|
|
1884
|
+
Bucket: string;
|
|
1885
|
+
Key: string;
|
|
1886
|
+
Body: string | Uint8Array;
|
|
1887
|
+
ContentType?: string;
|
|
1888
|
+
}): Promise<unknown>;
|
|
1889
|
+
};
|
|
1890
|
+
/** Options for {@link toS3}. */
|
|
1891
|
+
type ToS3Options<T> = ExtraOpts$1 & {
|
|
1892
|
+
/** Output format. Default: `"ndjson"`. */
|
|
1893
|
+
format?: "ndjson" | "json";
|
|
1894
|
+
/** Generate the S3 key for each batch. Receives `(seq, wallClockNs)`. Default: ISO timestamp + sequence. */
|
|
1895
|
+
keyGenerator?: (seq: number, timestampNs: number) => string;
|
|
1896
|
+
/** Batch size before auto-flush. Default: `1000`. */
|
|
1897
|
+
batchSize?: number;
|
|
1898
|
+
/** Flush interval in ms. Default: `10000`. */
|
|
1899
|
+
flushIntervalMs?: number;
|
|
1900
|
+
/** Transform value before serialization. Default: identity. */
|
|
1901
|
+
transform?: (value: T) => unknown;
|
|
1902
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1903
|
+
};
|
|
1904
|
+
/**
|
|
1905
|
+
* S3 object storage sink — buffers values and uploads as NDJSON or JSON objects.
|
|
1906
|
+
*
|
|
1907
|
+
* @param source - Upstream node.
|
|
1908
|
+
* @param client - S3-compatible client with `putObject()`.
|
|
1909
|
+
* @param bucket - S3 bucket name.
|
|
1910
|
+
* @param opts - Format, key generation, batching options.
|
|
1911
|
+
* @returns `BufferedSinkHandle`.
|
|
1912
|
+
*
|
|
1913
|
+
* @category extra
|
|
1914
|
+
*/
|
|
1915
|
+
declare function toS3<T>(source: Node<T>, client: S3ClientLike, bucket: string, opts?: ToS3Options<T>): BufferedSinkHandle;
|
|
1916
|
+
/** Duck-typed Postgres client (compatible with `pg.Client` / `pg.Pool`). */
|
|
1917
|
+
type PostgresClientLike = {
|
|
1918
|
+
query(sql: string, params?: unknown[]): Promise<unknown>;
|
|
1919
|
+
};
|
|
1920
|
+
/** Options for {@link toPostgres}. */
|
|
1921
|
+
type ToPostgresOptions<T> = ExtraOpts$1 & {
|
|
1922
|
+
/** Build the SQL + params for an insert. Default: JSON insert into `table`. */
|
|
1923
|
+
toSQL?: (value: T, table: string) => {
|
|
1924
|
+
sql: string;
|
|
1925
|
+
params: unknown[];
|
|
1926
|
+
};
|
|
1927
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1928
|
+
};
|
|
1929
|
+
/**
|
|
1930
|
+
* PostgreSQL sink — inserts each upstream `DATA` value as a row.
|
|
1931
|
+
*
|
|
1932
|
+
* @param source - Upstream node.
|
|
1933
|
+
* @param client - Postgres client with `query()`.
|
|
1934
|
+
* @param table - Target table name.
|
|
1935
|
+
* @param opts - SQL builder and error options.
|
|
1936
|
+
* @returns Unsubscribe function.
|
|
1937
|
+
*
|
|
1938
|
+
* @category extra
|
|
1939
|
+
*/
|
|
1940
|
+
declare function toPostgres<T>(source: Node<T>, client: PostgresClientLike, table: string, opts?: ToPostgresOptions<T>): () => void;
|
|
1941
|
+
/** Duck-typed MongoDB collection (compatible with `mongodb` driver). */
|
|
1942
|
+
type MongoCollectionLike = {
|
|
1943
|
+
insertOne(doc: unknown): Promise<unknown>;
|
|
1944
|
+
};
|
|
1945
|
+
/** Options for {@link toMongo}. */
|
|
1946
|
+
type ToMongoOptions<T> = ExtraOpts$1 & {
|
|
1947
|
+
/** Transform value to a MongoDB document. Default: identity. */
|
|
1948
|
+
toDocument?: (value: T) => unknown;
|
|
1949
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1950
|
+
};
|
|
1951
|
+
/**
|
|
1952
|
+
* MongoDB sink — inserts each upstream `DATA` value as a document.
|
|
1953
|
+
*
|
|
1954
|
+
* @param source - Upstream node.
|
|
1955
|
+
* @param collection - MongoDB collection with `insertOne()`.
|
|
1956
|
+
* @param opts - Document transform and error options.
|
|
1957
|
+
* @returns Unsubscribe function.
|
|
1958
|
+
*
|
|
1959
|
+
* @category extra
|
|
1960
|
+
*/
|
|
1961
|
+
declare function toMongo<T>(source: Node<T>, collection: MongoCollectionLike, opts?: ToMongoOptions<T>): () => void;
|
|
1962
|
+
/** Loki log stream entry. */
|
|
1963
|
+
type LokiStream = {
|
|
1964
|
+
stream: Record<string, string>;
|
|
1965
|
+
values: [string, string][];
|
|
1966
|
+
};
|
|
1967
|
+
/** Duck-typed Loki push client (HTTP push API). */
|
|
1968
|
+
type LokiClientLike = {
|
|
1969
|
+
push(streams: {
|
|
1970
|
+
streams: LokiStream[];
|
|
1971
|
+
}): Promise<unknown>;
|
|
1972
|
+
};
|
|
1973
|
+
/** Options for {@link toLoki}. */
|
|
1974
|
+
type ToLokiOptions<T> = ExtraOpts$1 & {
|
|
1975
|
+
/** Static labels applied to every log entry. */
|
|
1976
|
+
labels?: Record<string, string>;
|
|
1977
|
+
/** Extract the log line from a value. Default: `JSON.stringify(v)`. */
|
|
1978
|
+
toLine?: (value: T) => string;
|
|
1979
|
+
/** Extract additional labels from a value. Default: none. */
|
|
1980
|
+
toLabels?: (value: T) => Record<string, string>;
|
|
1981
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
1982
|
+
};
|
|
1983
|
+
/**
|
|
1984
|
+
* Grafana Loki sink — pushes upstream `DATA` values as log entries.
|
|
1985
|
+
*
|
|
1986
|
+
* @param source - Upstream node.
|
|
1987
|
+
* @param client - Loki-compatible client with `push()`.
|
|
1988
|
+
* @param opts - Label, serialization, and error options.
|
|
1989
|
+
* @returns Unsubscribe function.
|
|
1990
|
+
*
|
|
1991
|
+
* @category extra
|
|
1992
|
+
*/
|
|
1993
|
+
declare function toLoki<T>(source: Node<T>, client: LokiClientLike, opts?: ToLokiOptions<T>): () => void;
|
|
1994
|
+
/** Duck-typed Tempo span push client (OTLP/HTTP shape). */
|
|
1995
|
+
type TempoClientLike = {
|
|
1996
|
+
push(payload: {
|
|
1997
|
+
resourceSpans: unknown[];
|
|
1998
|
+
}): Promise<unknown>;
|
|
1999
|
+
};
|
|
2000
|
+
/** Options for {@link toTempo}. */
|
|
2001
|
+
type ToTempoOptions<T> = ExtraOpts$1 & {
|
|
2002
|
+
/** Transform a value into OTLP resourceSpans entries. */
|
|
2003
|
+
toResourceSpans?: (value: T) => unknown[];
|
|
2004
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
2005
|
+
};
|
|
2006
|
+
/**
|
|
2007
|
+
* Grafana Tempo sink — pushes upstream `DATA` values as trace spans.
|
|
2008
|
+
*
|
|
2009
|
+
* @param source - Upstream node.
|
|
2010
|
+
* @param client - Tempo-compatible client with `push()`.
|
|
2011
|
+
* @param opts - Span transform and error options.
|
|
2012
|
+
* @returns Unsubscribe function.
|
|
2013
|
+
*
|
|
2014
|
+
* @category extra
|
|
2015
|
+
*/
|
|
2016
|
+
declare function toTempo<T>(source: Node<T>, client: TempoClientLike, opts?: ToTempoOptions<T>): () => void;
|
|
2017
|
+
/** Options for {@link checkpointToS3}. */
|
|
2018
|
+
type CheckpointToS3Options = {
|
|
2019
|
+
/** S3 key prefix. Default: `"checkpoints/"`. */
|
|
2020
|
+
prefix?: string;
|
|
2021
|
+
/** Debounce ms for autoCheckpoint. Default: `500`. */
|
|
2022
|
+
debounceMs?: number;
|
|
2023
|
+
/** Full snapshot compaction interval. Default: `10`. */
|
|
2024
|
+
compactEvery?: number;
|
|
2025
|
+
onError?: (error: unknown) => void;
|
|
2026
|
+
};
|
|
2027
|
+
/**
|
|
2028
|
+
* Wires `graph.autoCheckpoint()` to persist snapshots to S3.
|
|
2029
|
+
*
|
|
2030
|
+
* @param graph - Graph instance to checkpoint.
|
|
2031
|
+
* @param client - S3-compatible client with `putObject()`.
|
|
2032
|
+
* @param bucket - S3 bucket name.
|
|
2033
|
+
* @param opts - Key prefix, debounce, and compaction options.
|
|
2034
|
+
* @returns Dispose handle.
|
|
2035
|
+
*
|
|
2036
|
+
* @category extra
|
|
2037
|
+
*/
|
|
2038
|
+
declare function checkpointToS3(graph: {
|
|
2039
|
+
autoCheckpoint: (adapter: {
|
|
2040
|
+
save(data: unknown): void;
|
|
2041
|
+
}, opts?: unknown) => {
|
|
2042
|
+
dispose(): void;
|
|
2043
|
+
};
|
|
2044
|
+
name: string;
|
|
2045
|
+
}, client: S3ClientLike, bucket: string, opts?: CheckpointToS3Options): {
|
|
2046
|
+
dispose(): void;
|
|
2047
|
+
};
|
|
2048
|
+
/** Duck-typed Redis client for checkpoint storage. */
|
|
2049
|
+
type RedisCheckpointClientLike = {
|
|
2050
|
+
set(key: string, value: string): Promise<unknown>;
|
|
2051
|
+
get(key: string): Promise<string | null>;
|
|
2052
|
+
};
|
|
2053
|
+
/** Options for {@link checkpointToRedis}. */
|
|
2054
|
+
type CheckpointToRedisOptions = {
|
|
2055
|
+
/** Key prefix. Default: `"graphrefly:checkpoint:"`. */
|
|
2056
|
+
prefix?: string;
|
|
2057
|
+
/** Debounce ms for autoCheckpoint. Default: `500`. */
|
|
2058
|
+
debounceMs?: number;
|
|
2059
|
+
/** Full snapshot compaction interval. Default: `10`. */
|
|
2060
|
+
compactEvery?: number;
|
|
2061
|
+
onError?: (error: unknown) => void;
|
|
2062
|
+
};
|
|
2063
|
+
/**
|
|
2064
|
+
* Wires `graph.autoCheckpoint()` to persist snapshots to Redis.
|
|
2065
|
+
*
|
|
2066
|
+
* @param graph - Graph instance to checkpoint.
|
|
2067
|
+
* @param client - Redis client with `set()`/`get()`.
|
|
2068
|
+
* @param opts - Key prefix, debounce, and compaction options.
|
|
2069
|
+
* @returns Dispose handle.
|
|
2070
|
+
*
|
|
2071
|
+
* @category extra
|
|
2072
|
+
*/
|
|
2073
|
+
declare function checkpointToRedis(graph: {
|
|
2074
|
+
autoCheckpoint: (adapter: {
|
|
2075
|
+
save(data: unknown): void;
|
|
2076
|
+
}, opts?: unknown) => {
|
|
2077
|
+
dispose(): void;
|
|
2078
|
+
};
|
|
2079
|
+
name: string;
|
|
2080
|
+
}, client: RedisCheckpointClientLike, opts?: CheckpointToRedisOptions): {
|
|
2081
|
+
dispose(): void;
|
|
2082
|
+
};
|
|
2083
|
+
/**
|
|
2084
|
+
* Duck-typed synchronous SQLite database.
|
|
2085
|
+
*
|
|
2086
|
+
* Compatible with `better-sqlite3` (`.prepare().all()` / `.prepare().run()`)
|
|
2087
|
+
* and Node.js `node:sqlite` `DatabaseSync`. The user wraps their driver behind
|
|
2088
|
+
* this uniform contract — method name `query` matches the project-wide
|
|
2089
|
+
* convention (`PostgresClientLike.query`, `ClickHouseClientLike.query`).
|
|
2090
|
+
*/
|
|
2091
|
+
type SqliteDbLike = {
|
|
2092
|
+
query(sql: string, params?: unknown[]): unknown[];
|
|
2093
|
+
};
|
|
2094
|
+
/** Options for {@link fromSqlite}. */
|
|
2095
|
+
type FromSqliteOptions<T> = ExtraOpts$1 & {
|
|
2096
|
+
/** Map a raw row object to the desired type. Default: identity cast. */
|
|
2097
|
+
mapRow?: (row: unknown) => T;
|
|
2098
|
+
/** Bind parameters for the query. */
|
|
2099
|
+
params?: unknown[];
|
|
2100
|
+
};
|
|
2101
|
+
/**
|
|
2102
|
+
* One-shot SQLite query as a reactive source.
|
|
2103
|
+
*
|
|
2104
|
+
* Executes `query` synchronously via `db.query()`, emits one `DATA` per result
|
|
2105
|
+
* row, then `COMPLETE`. Compose with `switchMap` + `fromTimer` / `fromFSWatch`
|
|
2106
|
+
* for periodic or change-driven re-query.
|
|
2107
|
+
*
|
|
2108
|
+
* @param db - SQLite database (caller owns connection).
|
|
2109
|
+
* @param query - SQL string to execute.
|
|
2110
|
+
* @param opts - Row mapper, params, and node options.
|
|
2111
|
+
* @returns `Node<T>` — one `DATA` per row, then `COMPLETE`.
|
|
2112
|
+
*
|
|
2113
|
+
* @example
|
|
2114
|
+
* ```ts
|
|
2115
|
+
* import Database from "better-sqlite3";
|
|
2116
|
+
* import { fromSqlite } from "@graphrefly/graphrefly-ts";
|
|
2117
|
+
*
|
|
2118
|
+
* const raw = new Database("app.db");
|
|
2119
|
+
* const db = { query: (sql, params) => raw.prepare(sql).all(...(params ?? [])) };
|
|
2120
|
+
* const rows$ = fromSqlite(db, "SELECT * FROM users WHERE active = ?", { params: [1] });
|
|
2121
|
+
* ```
|
|
2122
|
+
*
|
|
2123
|
+
* @category extra
|
|
2124
|
+
*/
|
|
2125
|
+
declare function fromSqlite<T = unknown>(db: SqliteDbLike, query: string, opts?: FromSqliteOptions<T>): Node<T>;
|
|
2126
|
+
/** Options for {@link toSqlite}. */
|
|
2127
|
+
type ToSqliteOptions<T> = ExtraOpts$1 & {
|
|
2128
|
+
/** Build SQL + params for an insert. Default: JSON insert into `(data)` column. */
|
|
2129
|
+
toSQL?: (value: T, table: string) => {
|
|
2130
|
+
sql: string;
|
|
2131
|
+
params: unknown[];
|
|
2132
|
+
};
|
|
2133
|
+
onTransportError?: (err: SinkTransportError) => void;
|
|
2134
|
+
};
|
|
2135
|
+
/**
|
|
2136
|
+
* SQLite sink — inserts each upstream `DATA` value as a row.
|
|
2137
|
+
*
|
|
2138
|
+
* Follows the same pattern as {@link toPostgres} / {@link toMongo}. Since SQLite
|
|
2139
|
+
* is synchronous, errors propagate immediately (no `void promise.catch`).
|
|
2140
|
+
*
|
|
2141
|
+
* @param source - Upstream node.
|
|
2142
|
+
* @param db - SQLite database (caller owns connection).
|
|
2143
|
+
* @param table - Target table name.
|
|
2144
|
+
* @param opts - SQL builder and error options.
|
|
2145
|
+
* @returns Unsubscribe function.
|
|
2146
|
+
*
|
|
2147
|
+
* @example
|
|
2148
|
+
* ```ts
|
|
2149
|
+
* import Database from "better-sqlite3";
|
|
2150
|
+
* import { toSqlite, state } from "@graphrefly/graphrefly-ts";
|
|
2151
|
+
*
|
|
2152
|
+
* const raw = new Database("app.db");
|
|
2153
|
+
* const db = { query: (sql, params) => (raw.prepare(sql).run(...(params ?? [])), []) };
|
|
2154
|
+
* const source = state({ name: "Alice", score: 42 });
|
|
2155
|
+
* const unsub = toSqlite(source, db, "events");
|
|
2156
|
+
* ```
|
|
2157
|
+
*
|
|
2158
|
+
* @category extra
|
|
2159
|
+
*/
|
|
2160
|
+
declare function toSqlite<T>(source: Node<T>, db: SqliteDbLike, table: string, opts?: ToSqliteOptions<T>): () => void;
|
|
1512
2161
|
|
|
1513
2162
|
/**
|
|
1514
2163
|
* Watermark-based backpressure controller — reactive PAUSE/RESUME flow control.
|
|
@@ -3212,14 +3861,18 @@ type index_BackoffPreset = BackoffPreset;
|
|
|
3212
3861
|
type index_BackoffStrategy = BackoffStrategy;
|
|
3213
3862
|
type index_BatchMessage = BatchMessage;
|
|
3214
3863
|
type index_BridgeMessage = BridgeMessage;
|
|
3864
|
+
type index_BufferedSinkHandle = BufferedSinkHandle;
|
|
3215
3865
|
type index_CSVRow = CSVRow;
|
|
3216
3866
|
type index_CheckpointAdapter = CheckpointAdapter;
|
|
3867
|
+
type index_CheckpointToRedisOptions = CheckpointToRedisOptions;
|
|
3868
|
+
type index_CheckpointToS3Options = CheckpointToS3Options;
|
|
3217
3869
|
type index_CircuitBreaker = CircuitBreaker;
|
|
3218
3870
|
type index_CircuitBreakerOptions = CircuitBreakerOptions;
|
|
3219
3871
|
type index_CircuitOpenError = CircuitOpenError;
|
|
3220
3872
|
declare const index_CircuitOpenError: typeof CircuitOpenError;
|
|
3221
3873
|
type index_CircuitState = CircuitState;
|
|
3222
3874
|
type index_ClickHouseClientLike = ClickHouseClientLike;
|
|
3875
|
+
type index_ClickHouseInsertClientLike = ClickHouseInsertClientLike;
|
|
3223
3876
|
type index_ClickHouseRow = ClickHouseRow;
|
|
3224
3877
|
type index_CronSchedule = CronSchedule;
|
|
3225
3878
|
type index_DictCheckpointAdapter = DictCheckpointAdapter;
|
|
@@ -3234,6 +3887,7 @@ type index_FSEvent = FSEvent;
|
|
|
3234
3887
|
type index_FSEventType = FSEventType;
|
|
3235
3888
|
type index_FileCheckpointAdapter = FileCheckpointAdapter;
|
|
3236
3889
|
declare const index_FileCheckpointAdapter: typeof FileCheckpointAdapter;
|
|
3890
|
+
type index_FileWriterLike = FileWriterLike;
|
|
3237
3891
|
type index_FromCSVOptions = FromCSVOptions;
|
|
3238
3892
|
type index_FromClickHouseWatchOptions = FromClickHouseWatchOptions;
|
|
3239
3893
|
type index_FromCronOptions = FromCronOptions;
|
|
@@ -3242,10 +3896,14 @@ type index_FromGitHookOptions = FromGitHookOptions;
|
|
|
3242
3896
|
type index_FromHTTPOptions = FromHTTPOptions;
|
|
3243
3897
|
type index_FromKafkaOptions = FromKafkaOptions;
|
|
3244
3898
|
type index_FromMCPOptions = FromMCPOptions;
|
|
3899
|
+
type index_FromNATSOptions = FromNATSOptions;
|
|
3245
3900
|
type index_FromNDJSONOptions = FromNDJSONOptions;
|
|
3246
3901
|
type index_FromOTelOptions = FromOTelOptions;
|
|
3247
3902
|
type index_FromPrometheusOptions = FromPrometheusOptions;
|
|
3903
|
+
type index_FromPulsarOptions = FromPulsarOptions;
|
|
3904
|
+
type index_FromRabbitMQOptions = FromRabbitMQOptions;
|
|
3248
3905
|
type index_FromRedisStreamOptions = FromRedisStreamOptions;
|
|
3906
|
+
type index_FromSqliteOptions<T> = FromSqliteOptions<T>;
|
|
3249
3907
|
type index_FromStatsDOptions = FromStatsDOptions;
|
|
3250
3908
|
type index_FromSyslogOptions = FromSyslogOptions;
|
|
3251
3909
|
type index_GitEvent = GitEvent;
|
|
@@ -3258,10 +3916,16 @@ type index_JitterMode = JitterMode;
|
|
|
3258
3916
|
type index_KafkaConsumerLike = KafkaConsumerLike;
|
|
3259
3917
|
type index_KafkaMessage<T = unknown> = KafkaMessage<T>;
|
|
3260
3918
|
type index_KafkaProducerLike = KafkaProducerLike;
|
|
3919
|
+
type index_LokiClientLike = LokiClientLike;
|
|
3920
|
+
type index_LokiStream = LokiStream;
|
|
3261
3921
|
type index_MCPClientLike = MCPClientLike;
|
|
3262
3922
|
type index_MemoryCheckpointAdapter = MemoryCheckpointAdapter;
|
|
3263
3923
|
declare const index_MemoryCheckpointAdapter: typeof MemoryCheckpointAdapter;
|
|
3264
3924
|
type index_MergeMapOptions = MergeMapOptions;
|
|
3925
|
+
type index_MongoCollectionLike = MongoCollectionLike;
|
|
3926
|
+
type index_NATSClientLike = NATSClientLike;
|
|
3927
|
+
type index_NATSMessage<T = unknown> = NATSMessage<T>;
|
|
3928
|
+
type index_NATSSubscriptionLike = NATSSubscriptionLike;
|
|
3265
3929
|
declare const index_NS_PER_MS: typeof NS_PER_MS;
|
|
3266
3930
|
declare const index_NS_PER_SEC: typeof NS_PER_SEC;
|
|
3267
3931
|
type index_NodeInput<T> = NodeInput<T>;
|
|
@@ -3270,8 +3934,14 @@ type index_OTelLog = OTelLog;
|
|
|
3270
3934
|
type index_OTelMetric = OTelMetric;
|
|
3271
3935
|
type index_OTelRegister = OTelRegister;
|
|
3272
3936
|
type index_OTelSpan = OTelSpan;
|
|
3937
|
+
type index_PostgresClientLike = PostgresClientLike;
|
|
3273
3938
|
type index_PrometheusMetric = PrometheusMetric;
|
|
3274
3939
|
type index_PubSubHub = PubSubHub;
|
|
3940
|
+
type index_PulsarConsumerLike = PulsarConsumerLike;
|
|
3941
|
+
type index_PulsarMessage<T = unknown> = PulsarMessage<T>;
|
|
3942
|
+
type index_PulsarProducerLike = PulsarProducerLike;
|
|
3943
|
+
type index_RabbitMQChannelLike = RabbitMQChannelLike;
|
|
3944
|
+
type index_RabbitMQMessage<T = unknown> = RabbitMQMessage<T>;
|
|
3275
3945
|
type index_ReactiveIndexBundle<K, V = unknown> = ReactiveIndexBundle<K, V>;
|
|
3276
3946
|
type index_ReactiveIndexOptions = ReactiveIndexOptions;
|
|
3277
3947
|
type index_ReactiveIndexSnapshot<K, V = unknown> = ReactiveIndexSnapshot<K, V>;
|
|
@@ -3285,23 +3955,39 @@ type index_ReactiveMapBundle<K, V> = ReactiveMapBundle<K, V>;
|
|
|
3285
3955
|
type index_ReactiveMapOptions = ReactiveMapOptions;
|
|
3286
3956
|
type index_ReactiveMapSnapshot<K, V> = ReactiveMapSnapshot<K, V>;
|
|
3287
3957
|
type index_ReadyMessage = ReadyMessage;
|
|
3958
|
+
type index_RedisCheckpointClientLike = RedisCheckpointClientLike;
|
|
3288
3959
|
type index_RedisClientLike = RedisClientLike;
|
|
3289
3960
|
type index_RedisStreamEntry<T = unknown> = RedisStreamEntry<T>;
|
|
3290
3961
|
type index_RetryOptions = RetryOptions;
|
|
3962
|
+
type index_S3ClientLike = S3ClientLike;
|
|
3291
3963
|
type index_SignalMessage = SignalMessage;
|
|
3292
3964
|
type index_SinkTransportError = SinkTransportError;
|
|
3293
3965
|
type index_SqliteCheckpointAdapter = SqliteCheckpointAdapter;
|
|
3294
3966
|
declare const index_SqliteCheckpointAdapter: typeof SqliteCheckpointAdapter;
|
|
3967
|
+
type index_SqliteDbLike = SqliteDbLike;
|
|
3295
3968
|
type index_StatsDMetric = StatsDMetric;
|
|
3296
3969
|
type index_StatsDRegister = StatsDRegister;
|
|
3297
3970
|
type index_StatusValue = StatusValue;
|
|
3298
3971
|
type index_SyslogMessage = SyslogMessage;
|
|
3299
3972
|
type index_SyslogRegister = SyslogRegister;
|
|
3300
3973
|
type index_TapObserver<T> = TapObserver<T>;
|
|
3974
|
+
type index_TempoClientLike = TempoClientLike;
|
|
3301
3975
|
type index_ThrottleOptions = ThrottleOptions;
|
|
3976
|
+
type index_ToCSVOptions<T> = ToCSVOptions<T>;
|
|
3977
|
+
type index_ToClickHouseOptions<T> = ToClickHouseOptions<T>;
|
|
3978
|
+
type index_ToFileOptions<T> = ToFileOptions<T>;
|
|
3302
3979
|
type index_ToKafkaOptions<T> = ToKafkaOptions<T>;
|
|
3980
|
+
type index_ToLokiOptions<T> = ToLokiOptions<T>;
|
|
3981
|
+
type index_ToMongoOptions<T> = ToMongoOptions<T>;
|
|
3982
|
+
type index_ToNATSOptions<T> = ToNATSOptions<T>;
|
|
3983
|
+
type index_ToPostgresOptions<T> = ToPostgresOptions<T>;
|
|
3984
|
+
type index_ToPulsarOptions<T> = ToPulsarOptions<T>;
|
|
3985
|
+
type index_ToRabbitMQOptions<T> = ToRabbitMQOptions<T>;
|
|
3303
3986
|
type index_ToRedisStreamOptions<T> = ToRedisStreamOptions<T>;
|
|
3987
|
+
type index_ToS3Options<T> = ToS3Options<T>;
|
|
3304
3988
|
type index_ToSSEOptions = ToSSEOptions;
|
|
3989
|
+
type index_ToSqliteOptions<T> = ToSqliteOptions<T>;
|
|
3990
|
+
type index_ToTempoOptions<T> = ToTempoOptions<T>;
|
|
3305
3991
|
type index_ToWebSocketOptions<T> = ToWebSocketOptions<T>;
|
|
3306
3992
|
type index_ToWebSocketTransportError = ToWebSocketTransportError;
|
|
3307
3993
|
type index_TokenBucket = TokenBucket;
|
|
@@ -3329,6 +4015,8 @@ declare const index_bufferTime: typeof bufferTime;
|
|
|
3329
4015
|
declare const index_cached: typeof cached;
|
|
3330
4016
|
declare const index_catchError: typeof catchError;
|
|
3331
4017
|
declare const index_checkpointNodeValue: typeof checkpointNodeValue;
|
|
4018
|
+
declare const index_checkpointToRedis: typeof checkpointToRedis;
|
|
4019
|
+
declare const index_checkpointToS3: typeof checkpointToS3;
|
|
3332
4020
|
declare const index_circuitBreaker: typeof circuitBreaker;
|
|
3333
4021
|
declare const index_combine: typeof combine;
|
|
3334
4022
|
declare const index_combineLatest: typeof combineLatest;
|
|
@@ -3370,11 +4058,15 @@ declare const index_fromIDBTransaction: typeof fromIDBTransaction;
|
|
|
3370
4058
|
declare const index_fromIter: typeof fromIter;
|
|
3371
4059
|
declare const index_fromKafka: typeof fromKafka;
|
|
3372
4060
|
declare const index_fromMCP: typeof fromMCP;
|
|
4061
|
+
declare const index_fromNATS: typeof fromNATS;
|
|
3373
4062
|
declare const index_fromNDJSON: typeof fromNDJSON;
|
|
3374
4063
|
declare const index_fromOTel: typeof fromOTel;
|
|
3375
4064
|
declare const index_fromPrometheus: typeof fromPrometheus;
|
|
3376
4065
|
declare const index_fromPromise: typeof fromPromise;
|
|
4066
|
+
declare const index_fromPulsar: typeof fromPulsar;
|
|
4067
|
+
declare const index_fromRabbitMQ: typeof fromRabbitMQ;
|
|
3377
4068
|
declare const index_fromRedisStream: typeof fromRedisStream;
|
|
4069
|
+
declare const index_fromSqlite: typeof fromSqlite;
|
|
3378
4070
|
declare const index_fromStatsD: typeof fromStatsD;
|
|
3379
4071
|
declare const index_fromSyslog: typeof fromSyslog;
|
|
3380
4072
|
declare const index_fromTimer: typeof fromTimer;
|
|
@@ -3437,11 +4129,23 @@ declare const index_throttleTime: typeof throttleTime;
|
|
|
3437
4129
|
declare const index_throwError: typeof throwError;
|
|
3438
4130
|
declare const index_timeout: typeof timeout;
|
|
3439
4131
|
declare const index_toArray: typeof toArray;
|
|
4132
|
+
declare const index_toCSV: typeof toCSV;
|
|
4133
|
+
declare const index_toClickHouse: typeof toClickHouse;
|
|
4134
|
+
declare const index_toFile: typeof toFile;
|
|
3440
4135
|
declare const index_toKafka: typeof toKafka;
|
|
4136
|
+
declare const index_toLoki: typeof toLoki;
|
|
3441
4137
|
declare const index_toMessages$: typeof toMessages$;
|
|
4138
|
+
declare const index_toMongo: typeof toMongo;
|
|
4139
|
+
declare const index_toNATS: typeof toNATS;
|
|
3442
4140
|
declare const index_toObservable: typeof toObservable;
|
|
4141
|
+
declare const index_toPostgres: typeof toPostgres;
|
|
4142
|
+
declare const index_toPulsar: typeof toPulsar;
|
|
4143
|
+
declare const index_toRabbitMQ: typeof toRabbitMQ;
|
|
3443
4144
|
declare const index_toRedisStream: typeof toRedisStream;
|
|
4145
|
+
declare const index_toS3: typeof toS3;
|
|
3444
4146
|
declare const index_toSSE: typeof toSSE;
|
|
4147
|
+
declare const index_toSqlite: typeof toSqlite;
|
|
4148
|
+
declare const index_toTempo: typeof toTempo;
|
|
3445
4149
|
declare const index_toWebSocket: typeof toWebSocket;
|
|
3446
4150
|
declare const index_tokenBucket: typeof tokenBucket;
|
|
3447
4151
|
declare const index_tokenTracker: typeof tokenTracker;
|
|
@@ -3457,7 +4161,7 @@ declare const index_workerBridge: typeof workerBridge;
|
|
|
3457
4161
|
declare const index_workerSelf: typeof workerSelf;
|
|
3458
4162
|
declare const index_zip: typeof zip;
|
|
3459
4163
|
declare namespace index {
|
|
3460
|
-
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_CSVRow as CSVRow, type index_CheckpointAdapter as CheckpointAdapter, 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_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_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_FromNDJSONOptions as FromNDJSONOptions, type index_FromOTelOptions as FromOTelOptions, type index_FromPrometheusOptions as FromPrometheusOptions, 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_MCPClientLike as MCPClientLike, index_MemoryCheckpointAdapter as MemoryCheckpointAdapter, type index_MergeMapOptions as MergeMapOptions, 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_PrometheusMetric as PrometheusMetric, type index_PubSubHub as PubSubHub, 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_RedisClientLike as RedisClientLike, type index_RedisStreamEntry as RedisStreamEntry, type index_RetryOptions as RetryOptions, 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_ThrottleOptions as ThrottleOptions, type index_ToKafkaOptions as ToKafkaOptions, type index_ToRedisStreamOptions as ToRedisStreamOptions, type index_ToSSEOptions as ToSSEOptions, 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_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_fromNDJSON as fromNDJSON, index_fromOTel as fromOTel, index_fromPrometheus as fromPrometheus, index_fromPromise as fromPromise, 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_toKafka as toKafka, index_toMessages$ as toMessages$, index_toObservable as toObservable, index_toRedisStream as toRedisStream, index_toSSE as toSSE, 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 };
|
|
4164
|
+
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_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_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_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_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_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_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_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_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 };
|
|
3461
4165
|
}
|
|
3462
4166
|
|
|
3463
|
-
export {
|
|
4167
|
+
export { type HTTPBundle as $, type AdapterHandlers as A, type BackoffPreset as B, type CSVRow as C, type DistillBundle as D, type Extraction as E, type FSEvent as F, type FromClickHouseWatchOptions as G, type FromCronOptions as H, type FromFSWatchOptions as I, type FromGitHookOptions as J, type FromHTTPOptions as K, type FromKafkaOptions as L, type FromMCPOptions as M, type NodeInput as N, type FromNATSOptions as O, type FromNDJSONOptions as P, type FromOTelOptions as Q, type ReactiveListSnapshot as R, type FromPrometheusOptions as S, type FromPulsarOptions as T, type FromRabbitMQOptions as U, type FromRedisStreamOptions as V, type FromSqliteOptions as W, type FromStatsDOptions as X, type FromSyslogOptions as Y, type GitEvent as Z, type GitHookType as _, type ReactiveMapSnapshot as a, type ToPostgresOptions as a$, type IndexRow as a0, type IndexedDbCheckpointSpec as a1, type InitMessage as a2, type JitterMode as a3, type KafkaConsumerLike as a4, type KafkaMessage as a5, type KafkaProducerLike as a6, type LokiClientLike as a7, type LokiStream as a8, type MCPClientLike as a9, type ReactiveMapBundle as aA, type ReactiveMapOptions as aB, type ReadyMessage as aC, type RedisCheckpointClientLike as aD, type RedisClientLike as aE, type RedisStreamEntry as aF, type RetryOptions as aG, type S3ClientLike as aH, type SignalMessage as aI, type SinkTransportError as aJ, SqliteCheckpointAdapter as aK, type SqliteDbLike as aL, type StatsDMetric as aM, type StatsDRegister as aN, type StatusValue as aO, type SyslogMessage as aP, type SyslogRegister as aQ, type TapObserver as aR, type TempoClientLike as aS, type ThrottleOptions as aT, type ToCSVOptions as aU, type ToClickHouseOptions as aV, type ToFileOptions as aW, type ToKafkaOptions as aX, type ToLokiOptions as aY, type ToMongoOptions as aZ, type ToNATSOptions as a_, MemoryCheckpointAdapter as aa, type MergeMapOptions as ab, type MongoCollectionLike as ac, type NATSClientLike as ad, type NATSMessage as ae, type NATSSubscriptionLike as af, NS_PER_MS as ag, NS_PER_SEC as ah, type OTelBundle as ai, type OTelLog as aj, type OTelMetric as ak, type OTelRegister as al, type OTelSpan as am, type PostgresClientLike as an, type PrometheusMetric as ao, type PubSubHub as ap, type PulsarConsumerLike as aq, type PulsarMessage as ar, type PulsarProducerLike as as, type RabbitMQChannelLike as at, type RabbitMQMessage as au, type ReactiveIndexBundle as av, type ReactiveIndexOptions as aw, type ReactiveIndexSnapshot as ax, type ReactiveListBundle as ay, type ReactiveListOptions as az, type AsyncSourceOpts as b, forEach as b$, type ToPulsarOptions as b0, type ToRabbitMQOptions as b1, type ToRedisStreamOptions as b2, type ToS3Options as b3, type ToSSEOptions as b4, type ToSqliteOptions as b5, type ToTempoOptions as b6, type ToWebSocketOptions as b7, type ToWebSocketTransportError as b8, type TokenBucket as b9, circuitBreaker as bA, combine as bB, combineLatest as bC, concat as bD, concatMap as bE, constant as bF, createTransport as bG, createWatermarkController as bH, debounce as bI, debounceTime as bJ, decorrelatedJitter as bK, delay as bL, deserializeError as bM, distill as bN, distinctUntilChanged as bO, elementAt as bP, empty as bQ, escapeRegexChar as bR, exhaustMap as bS, exponential as bT, index as bU, fibonacci as bV, filter as bW, find as bX, first as bY, firstValueFrom as bZ, flatMap as b_, type ValueMessage as ba, type VerifiableBundle as bb, type VerifiableOptions as bc, type VerifyValue as bd, type WatermarkController as be, type WatermarkOptions as bf, type WebSocketLike as bg, type WebSocketMessageEventLike as bh, type WebSocketRegister as bi, type WebhookRegister as bj, type WithBreakerBundle as bk, type WithStatusBundle as bl, type WorkerBridge as bm, type WorkerBridgeOptions as bn, type WorkerSelfHandle as bo, type WorkerSelfOptions as bp, type WorkerTransport as bq, audit as br, buffer as bs, bufferCount as bt, bufferTime as bu, cached as bv, catchError as bw, checkpointNodeValue as bx, checkpointToRedis as by, checkpointToS3 as bz, type BackoffStrategy as c, saveGraphCheckpointIndexedDb as c$, fromAny as c0, fromAsyncIter as c1, fromCSV as c2, fromClickHouseWatch as c3, fromCron as c4, fromEvent as c5, fromFSWatch as c6, fromGitHook as c7, fromHTTP as c8, fromIDBRequest as c9, merge as cA, mergeMap as cB, nameToSignal as cC, never as cD, of as cE, pairwise as cF, parseCron as cG, parsePrometheusText as cH, parseStatsD as cI, parseSyslog as cJ, pausable as cK, pubsub as cL, race as cM, rateLimiter as cN, reactiveIndex as cO, reactiveList as cP, reactiveMap as cQ, reduce as cR, repeat as cS, replay as cT, rescue as cU, resolveBackoffPreset as cV, restoreGraphCheckpoint as cW, restoreGraphCheckpointIndexedDb as cX, retry as cY, sample as cZ, saveGraphCheckpoint as c_, fromIDBTransaction as ca, fromIter as cb, fromKafka as cc, fromMCP as cd, fromNATS as ce, fromNDJSON as cf, fromOTel as cg, fromPrometheus as ch, fromPromise as ci, fromPulsar as cj, fromRabbitMQ as ck, fromRedisStream as cl, fromSqlite as cm, fromStatsD as cn, fromSyslog as co, fromTimer as cp, fromWebSocket as cq, fromWebhook as cr, gate as cs, globToRegExp as ct, interval as cu, last as cv, linear as cw, map as cx, matchesAnyPattern as cy, matchesCron as cz, type BatchMessage as d, scan as d0, serializeError as d1, share as d2, shareReplay as d3, signalToName as d4, skip as d5, startWith as d6, switchMap as d7, take as d8, takeUntil as d9, verifiable as dA, window as dB, windowCount as dC, windowTime as dD, withBreaker as dE, withLatestFrom as dF, withMaxAttempts as dG, withStatus as dH, workerBridge as dI, workerSelf as dJ, zip as dK, takeWhile as da, tap as db, throttle as dc, throttleTime as dd, throwError as de, timeout as df, toArray as dg, toCSV as dh, toClickHouse as di, toFile as dj, toKafka as dk, toLoki as dl, toMongo as dm, toNATS as dn, toPostgres as dp, toPulsar as dq, toRabbitMQ as dr, toRedisStream as ds, toS3 as dt, toSSE as du, toSqlite as dv, toTempo as dw, toWebSocket as dx, tokenBucket as dy, tokenTracker as dz, type BridgeMessage as e, type BufferedSinkHandle as f, type CheckpointAdapter as g, type CheckpointToRedisOptions as h, type CheckpointToS3Options as i, type CircuitBreaker as j, type CircuitBreakerOptions as k, CircuitOpenError as l, type CircuitState as m, type ClickHouseClientLike as n, type ClickHouseInsertClientLike as o, type ClickHouseRow as p, type CronSchedule as q, DictCheckpointAdapter as r, type DistillOptions as s, type ErrorMessage as t, type EventTargetLike as u, type ExponentialBackoffOptions as v, type FSEventType as w, FileCheckpointAdapter as x, type FileWriterLike as y, type FromCSVOptions as z };
|