nats.do 0.1.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 +298 -0
- package/dist/env-Ds3wIkQg.d.cts +28 -0
- package/dist/env-Ds3wIkQg.d.ts +28 -0
- package/dist/index.cjs +235 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +34 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +230 -0
- package/dist/index.js.map +1 -0
- package/dist/types.cjs +169 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +444 -0
- package/dist/types.d.ts +444 -0
- package/dist/types.js +155 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.cjs +362 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +214 -0
- package/dist/utils.d.ts +214 -0
- package/dist/utils.js +338 -0
- package/dist/utils.js.map +1 -0
- package/package.json +87 -0
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
export { E as Env } from './env-Ds3wIkQg.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Core NATS Types
|
|
5
|
+
*
|
|
6
|
+
* Implements types compatible with the nats.js library.
|
|
7
|
+
*/
|
|
8
|
+
interface ConnectionOptions {
|
|
9
|
+
servers: string | string[];
|
|
10
|
+
name?: string;
|
|
11
|
+
token?: string;
|
|
12
|
+
user?: string;
|
|
13
|
+
pass?: string;
|
|
14
|
+
timeout?: number;
|
|
15
|
+
reconnect?: boolean;
|
|
16
|
+
maxReconnectAttempts?: number;
|
|
17
|
+
reconnectTimeWait?: number;
|
|
18
|
+
}
|
|
19
|
+
interface MsgHdrs {
|
|
20
|
+
get(key: string): string | undefined;
|
|
21
|
+
set(key: string, value: string): void;
|
|
22
|
+
append(key: string, value: string): void;
|
|
23
|
+
has(key: string): boolean;
|
|
24
|
+
delete(key: string): void;
|
|
25
|
+
keys(): IterableIterator<string>;
|
|
26
|
+
values(key: string): string[];
|
|
27
|
+
code?: number;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
declare function createHeaders(): MsgHdrs;
|
|
31
|
+
interface Msg {
|
|
32
|
+
subject: string;
|
|
33
|
+
data: Uint8Array;
|
|
34
|
+
sid: number;
|
|
35
|
+
reply?: string;
|
|
36
|
+
headers?: MsgHdrs;
|
|
37
|
+
respond(data?: Uint8Array, opts?: PublishOptions): boolean;
|
|
38
|
+
string(): string;
|
|
39
|
+
json<T = unknown>(): T;
|
|
40
|
+
}
|
|
41
|
+
interface PublishOptions {
|
|
42
|
+
reply?: string;
|
|
43
|
+
headers?: MsgHdrs;
|
|
44
|
+
}
|
|
45
|
+
interface SubscriptionOptions {
|
|
46
|
+
queue?: string;
|
|
47
|
+
max?: number;
|
|
48
|
+
callback?: (err: Error | null, msg: Msg) => void;
|
|
49
|
+
timeout?: number;
|
|
50
|
+
}
|
|
51
|
+
interface RequestOptions {
|
|
52
|
+
timeout?: number;
|
|
53
|
+
headers?: MsgHdrs;
|
|
54
|
+
noMux?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface Subscription extends AsyncIterable<Msg> {
|
|
57
|
+
getSubject(): string;
|
|
58
|
+
unsubscribe(max?: number): void;
|
|
59
|
+
drain(): Promise<void>;
|
|
60
|
+
isClosed(): boolean;
|
|
61
|
+
getReceived(): number;
|
|
62
|
+
getMax(): number | undefined;
|
|
63
|
+
}
|
|
64
|
+
interface QueuedIterator<T> extends AsyncIterator<T> {
|
|
65
|
+
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
66
|
+
stop(): void;
|
|
67
|
+
}
|
|
68
|
+
type StatusType = 'disconnect' | 'reconnecting' | 'reconnect' | 'update' | 'ldm' | 'error';
|
|
69
|
+
interface Status {
|
|
70
|
+
type: StatusType;
|
|
71
|
+
data?: string | Error | {
|
|
72
|
+
added?: string[];
|
|
73
|
+
deleted?: string[];
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
interface ServerInfo {
|
|
77
|
+
server_id: string;
|
|
78
|
+
server_name: string;
|
|
79
|
+
version: string;
|
|
80
|
+
proto: number;
|
|
81
|
+
host: string;
|
|
82
|
+
port: number;
|
|
83
|
+
max_payload: number;
|
|
84
|
+
jetstream?: boolean;
|
|
85
|
+
client_id?: number;
|
|
86
|
+
client_ip?: string;
|
|
87
|
+
}
|
|
88
|
+
interface NatsConnection {
|
|
89
|
+
publish(subject: string, data?: Uint8Array, opts?: PublishOptions): void;
|
|
90
|
+
subscribe(subject: string, opts?: SubscriptionOptions): Subscription;
|
|
91
|
+
request(subject: string, data?: Uint8Array, opts?: RequestOptions): Promise<Msg>;
|
|
92
|
+
flush(): Promise<void>;
|
|
93
|
+
drain(): Promise<void>;
|
|
94
|
+
close(): Promise<void>;
|
|
95
|
+
closed(): Promise<void | Error>;
|
|
96
|
+
status(): AsyncIterable<Status>;
|
|
97
|
+
isClosed(): boolean;
|
|
98
|
+
isDraining(): boolean;
|
|
99
|
+
getServer(): string;
|
|
100
|
+
info?: ServerInfo;
|
|
101
|
+
}
|
|
102
|
+
interface Codec<T> {
|
|
103
|
+
encode(data: T): Uint8Array;
|
|
104
|
+
decode(data: Uint8Array): T;
|
|
105
|
+
}
|
|
106
|
+
declare function StringCodec(): Codec<string>;
|
|
107
|
+
declare function JSONCodec<T = unknown>(): Codec<T>;
|
|
108
|
+
declare const Empty: Uint8Array;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* JetStream Types
|
|
112
|
+
*
|
|
113
|
+
* Implements types compatible with @nats-io/jetstream library.
|
|
114
|
+
*/
|
|
115
|
+
type RetentionPolicy = 'limits' | 'interest' | 'workqueue';
|
|
116
|
+
type StorageType = 'file' | 'memory';
|
|
117
|
+
type DiscardPolicy = 'old' | 'new';
|
|
118
|
+
type AckPolicy = 'none' | 'all' | 'explicit';
|
|
119
|
+
type DeliverPolicy = 'all' | 'last' | 'new' | 'by_start_sequence' | 'by_start_time' | 'last_per_subject';
|
|
120
|
+
type ReplayPolicy = 'instant' | 'original';
|
|
121
|
+
interface StreamConfig {
|
|
122
|
+
name: string;
|
|
123
|
+
subjects: string[];
|
|
124
|
+
description?: string;
|
|
125
|
+
retention?: RetentionPolicy;
|
|
126
|
+
storage?: StorageType;
|
|
127
|
+
max_msgs?: number;
|
|
128
|
+
max_bytes?: number;
|
|
129
|
+
max_age?: number;
|
|
130
|
+
max_msg_size?: number;
|
|
131
|
+
max_msgs_per_subject?: number;
|
|
132
|
+
max_consumers?: number;
|
|
133
|
+
discard?: DiscardPolicy;
|
|
134
|
+
discard_new_per_subject?: boolean;
|
|
135
|
+
duplicate_window?: number;
|
|
136
|
+
num_replicas?: number;
|
|
137
|
+
deny_delete?: boolean;
|
|
138
|
+
deny_purge?: boolean;
|
|
139
|
+
allow_rollup_hdrs?: boolean;
|
|
140
|
+
allow_direct?: boolean;
|
|
141
|
+
mirror_direct?: boolean;
|
|
142
|
+
sealed?: boolean;
|
|
143
|
+
placement?: {
|
|
144
|
+
cluster?: string;
|
|
145
|
+
tags?: string[];
|
|
146
|
+
};
|
|
147
|
+
mirror?: {
|
|
148
|
+
name: string;
|
|
149
|
+
opt_start_seq?: number;
|
|
150
|
+
opt_start_time?: string;
|
|
151
|
+
filter_subject?: string;
|
|
152
|
+
};
|
|
153
|
+
sources?: Array<{
|
|
154
|
+
name: string;
|
|
155
|
+
opt_start_seq?: number;
|
|
156
|
+
opt_start_time?: string;
|
|
157
|
+
filter_subject?: string;
|
|
158
|
+
}>;
|
|
159
|
+
republish?: {
|
|
160
|
+
src: string;
|
|
161
|
+
dest: string;
|
|
162
|
+
headers_only?: boolean;
|
|
163
|
+
};
|
|
164
|
+
subject_transform?: {
|
|
165
|
+
src: string;
|
|
166
|
+
dest: string;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
declare function defaultStreamConfig(name: string): StreamConfig;
|
|
170
|
+
interface StreamState {
|
|
171
|
+
messages: number;
|
|
172
|
+
bytes: number;
|
|
173
|
+
first_seq: number;
|
|
174
|
+
first_ts?: string;
|
|
175
|
+
last_seq: number;
|
|
176
|
+
last_ts?: string;
|
|
177
|
+
consumer_count: number;
|
|
178
|
+
num_deleted?: number;
|
|
179
|
+
num_subjects?: number;
|
|
180
|
+
subjects?: Record<string, number>;
|
|
181
|
+
}
|
|
182
|
+
interface StreamInfo {
|
|
183
|
+
config: StreamConfig;
|
|
184
|
+
state: StreamState;
|
|
185
|
+
created: string;
|
|
186
|
+
cluster?: {
|
|
187
|
+
name?: string;
|
|
188
|
+
leader?: string;
|
|
189
|
+
replicas?: Array<{
|
|
190
|
+
name: string;
|
|
191
|
+
current: boolean;
|
|
192
|
+
active: number;
|
|
193
|
+
lag: number;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
196
|
+
mirror?: {
|
|
197
|
+
name: string;
|
|
198
|
+
lag: number;
|
|
199
|
+
active: number;
|
|
200
|
+
};
|
|
201
|
+
sources?: Array<{
|
|
202
|
+
name: string;
|
|
203
|
+
lag: number;
|
|
204
|
+
active: number;
|
|
205
|
+
}>;
|
|
206
|
+
}
|
|
207
|
+
interface ConsumerConfig {
|
|
208
|
+
name?: string;
|
|
209
|
+
durable_name?: string;
|
|
210
|
+
description?: string;
|
|
211
|
+
deliver_policy?: DeliverPolicy;
|
|
212
|
+
opt_start_seq?: number;
|
|
213
|
+
opt_start_time?: string;
|
|
214
|
+
ack_policy: AckPolicy;
|
|
215
|
+
ack_wait?: number;
|
|
216
|
+
max_deliver?: number;
|
|
217
|
+
filter_subject?: string;
|
|
218
|
+
filter_subjects?: string[];
|
|
219
|
+
replay_policy?: ReplayPolicy;
|
|
220
|
+
rate_limit_bps?: number;
|
|
221
|
+
sample_freq?: string;
|
|
222
|
+
max_waiting?: number;
|
|
223
|
+
max_ack_pending?: number;
|
|
224
|
+
headers_only?: boolean;
|
|
225
|
+
max_batch?: number;
|
|
226
|
+
max_expires?: number;
|
|
227
|
+
max_bytes?: number;
|
|
228
|
+
inactive_threshold?: number;
|
|
229
|
+
backoff?: number[];
|
|
230
|
+
num_replicas?: number;
|
|
231
|
+
mem_storage?: boolean;
|
|
232
|
+
metadata?: Record<string, string>;
|
|
233
|
+
}
|
|
234
|
+
declare function defaultConsumerConfig(): ConsumerConfig;
|
|
235
|
+
interface SequencePair {
|
|
236
|
+
consumer_seq: number;
|
|
237
|
+
stream_seq: number;
|
|
238
|
+
}
|
|
239
|
+
interface ConsumerInfo {
|
|
240
|
+
stream_name: string;
|
|
241
|
+
name: string;
|
|
242
|
+
config: ConsumerConfig;
|
|
243
|
+
created: string;
|
|
244
|
+
delivered: SequencePair;
|
|
245
|
+
ack_floor: SequencePair;
|
|
246
|
+
num_ack_pending: number;
|
|
247
|
+
num_redelivered: number;
|
|
248
|
+
num_waiting: number;
|
|
249
|
+
num_pending: number;
|
|
250
|
+
cluster?: {
|
|
251
|
+
name?: string;
|
|
252
|
+
leader?: string;
|
|
253
|
+
};
|
|
254
|
+
push_bound?: boolean;
|
|
255
|
+
}
|
|
256
|
+
interface PubAck {
|
|
257
|
+
stream: string;
|
|
258
|
+
seq: number;
|
|
259
|
+
duplicate?: boolean;
|
|
260
|
+
domain?: string;
|
|
261
|
+
}
|
|
262
|
+
interface JsMsgInfo {
|
|
263
|
+
stream: string;
|
|
264
|
+
consumer: string;
|
|
265
|
+
delivered: number;
|
|
266
|
+
streamSequence: number;
|
|
267
|
+
consumerSequence: number;
|
|
268
|
+
timestampNanos: bigint;
|
|
269
|
+
pending: number;
|
|
270
|
+
redelivered: boolean;
|
|
271
|
+
redeliveryCount?: number;
|
|
272
|
+
}
|
|
273
|
+
interface JsMsg {
|
|
274
|
+
subject: string;
|
|
275
|
+
data: Uint8Array;
|
|
276
|
+
headers?: MsgHdrs;
|
|
277
|
+
seq: number;
|
|
278
|
+
info: JsMsgInfo;
|
|
279
|
+
ack(): void;
|
|
280
|
+
nak(delay?: number): void;
|
|
281
|
+
working(): void;
|
|
282
|
+
term(reason?: string): void;
|
|
283
|
+
ackAck(): Promise<boolean>;
|
|
284
|
+
string?(): string;
|
|
285
|
+
json?<T = unknown>(): T;
|
|
286
|
+
}
|
|
287
|
+
interface PullOptions {
|
|
288
|
+
max_messages?: number;
|
|
289
|
+
max_bytes?: number;
|
|
290
|
+
expires?: number;
|
|
291
|
+
idle_heartbeat?: number;
|
|
292
|
+
batch?: number;
|
|
293
|
+
no_wait?: boolean;
|
|
294
|
+
}
|
|
295
|
+
interface ConsumeOptions {
|
|
296
|
+
max_messages?: number;
|
|
297
|
+
max_bytes?: number;
|
|
298
|
+
expires?: number;
|
|
299
|
+
idle_heartbeat?: number;
|
|
300
|
+
callback?: (msg: JsMsg) => void | Promise<void>;
|
|
301
|
+
}
|
|
302
|
+
interface ConsumerMessages extends AsyncIterable<JsMsg> {
|
|
303
|
+
close(): Promise<void>;
|
|
304
|
+
stop(): Promise<void>;
|
|
305
|
+
}
|
|
306
|
+
interface Stream {
|
|
307
|
+
info(cached?: boolean): Promise<StreamInfo>;
|
|
308
|
+
getMessage(query: {
|
|
309
|
+
seq?: number;
|
|
310
|
+
last_by_subj?: string;
|
|
311
|
+
next_by_subj?: string;
|
|
312
|
+
}): Promise<StoredMsg | null>;
|
|
313
|
+
deleteMessage(seq: number, erase?: boolean): Promise<boolean>;
|
|
314
|
+
}
|
|
315
|
+
interface StoredMsg {
|
|
316
|
+
subject: string;
|
|
317
|
+
data: Uint8Array;
|
|
318
|
+
headers?: MsgHdrs;
|
|
319
|
+
seq: number;
|
|
320
|
+
time: string;
|
|
321
|
+
}
|
|
322
|
+
interface Consumer {
|
|
323
|
+
info(cached?: boolean): Promise<ConsumerInfo>;
|
|
324
|
+
consume(opts?: ConsumeOptions): Promise<ConsumerMessages>;
|
|
325
|
+
fetch(opts?: PullOptions): Promise<ConsumerMessages>;
|
|
326
|
+
delete(): Promise<boolean>;
|
|
327
|
+
}
|
|
328
|
+
interface PurgeResponse {
|
|
329
|
+
success: boolean;
|
|
330
|
+
purged: number;
|
|
331
|
+
}
|
|
332
|
+
interface StreamsAPI {
|
|
333
|
+
add(config: StreamConfig): Promise<StreamInfo>;
|
|
334
|
+
update(config: StreamConfig): Promise<StreamInfo>;
|
|
335
|
+
delete(stream: string): Promise<boolean>;
|
|
336
|
+
get(stream: string): Promise<Stream>;
|
|
337
|
+
list(): AsyncIterable<StreamInfo>;
|
|
338
|
+
info(stream: string): Promise<StreamInfo>;
|
|
339
|
+
names(): AsyncIterable<string>;
|
|
340
|
+
purge(stream: string, opts?: {
|
|
341
|
+
filter?: string;
|
|
342
|
+
seq?: number;
|
|
343
|
+
keep?: number;
|
|
344
|
+
}): Promise<PurgeResponse>;
|
|
345
|
+
}
|
|
346
|
+
interface ConsumersAPI {
|
|
347
|
+
add(stream: string, config: ConsumerConfig): Promise<ConsumerInfo>;
|
|
348
|
+
update(stream: string, config: ConsumerConfig): Promise<ConsumerInfo>;
|
|
349
|
+
delete(stream: string, consumer: string): Promise<boolean>;
|
|
350
|
+
list(stream: string): AsyncIterable<ConsumerInfo>;
|
|
351
|
+
info(stream: string, consumer: string): Promise<ConsumerInfo>;
|
|
352
|
+
}
|
|
353
|
+
interface JetStreamManager {
|
|
354
|
+
streams: StreamsAPI;
|
|
355
|
+
consumers: ConsumersAPI;
|
|
356
|
+
}
|
|
357
|
+
interface ConsumersAccessor {
|
|
358
|
+
get(stream: string, consumer: string): Promise<Consumer>;
|
|
359
|
+
}
|
|
360
|
+
interface StreamsAccessor {
|
|
361
|
+
get(stream: string): Promise<Stream>;
|
|
362
|
+
}
|
|
363
|
+
interface JetStreamPublishOptions {
|
|
364
|
+
msgID?: string;
|
|
365
|
+
expect?: {
|
|
366
|
+
lastMsgID?: string;
|
|
367
|
+
lastSequence?: number;
|
|
368
|
+
lastSubjectSequence?: number;
|
|
369
|
+
streamName?: string;
|
|
370
|
+
};
|
|
371
|
+
headers?: MsgHdrs;
|
|
372
|
+
timeout?: number;
|
|
373
|
+
}
|
|
374
|
+
interface JetStreamClient {
|
|
375
|
+
publish(subject: string, data?: Uint8Array, opts?: JetStreamPublishOptions): Promise<PubAck>;
|
|
376
|
+
consumers: ConsumersAccessor;
|
|
377
|
+
streams: StreamsAccessor;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* RPC Types
|
|
382
|
+
*
|
|
383
|
+
* JSON-RPC 2.0 types for NatDO communication.
|
|
384
|
+
*/
|
|
385
|
+
type RpcId = string | number;
|
|
386
|
+
interface RpcRequest {
|
|
387
|
+
jsonrpc: '2.0';
|
|
388
|
+
method: string;
|
|
389
|
+
params?: Record<string, unknown> | unknown[];
|
|
390
|
+
id: RpcId;
|
|
391
|
+
}
|
|
392
|
+
interface RpcNotification {
|
|
393
|
+
jsonrpc: '2.0';
|
|
394
|
+
method: string;
|
|
395
|
+
params?: Record<string, unknown> | unknown[];
|
|
396
|
+
}
|
|
397
|
+
interface RpcError {
|
|
398
|
+
code: number;
|
|
399
|
+
message: string;
|
|
400
|
+
data?: unknown;
|
|
401
|
+
}
|
|
402
|
+
interface RpcResponse {
|
|
403
|
+
jsonrpc: '2.0';
|
|
404
|
+
result?: unknown;
|
|
405
|
+
error?: RpcError;
|
|
406
|
+
id: RpcId | null;
|
|
407
|
+
}
|
|
408
|
+
type RpcBatchRequest = Array<RpcRequest | RpcNotification>;
|
|
409
|
+
type RpcBatchResponse = RpcResponse[];
|
|
410
|
+
declare const RPC_ERROR_CODES: {
|
|
411
|
+
readonly PARSE_ERROR: -32700;
|
|
412
|
+
readonly INVALID_REQUEST: -32600;
|
|
413
|
+
readonly METHOD_NOT_FOUND: -32601;
|
|
414
|
+
readonly INVALID_PARAMS: -32602;
|
|
415
|
+
readonly INTERNAL_ERROR: -32603;
|
|
416
|
+
readonly STREAM_NOT_FOUND: -32001;
|
|
417
|
+
readonly CONSUMER_NOT_FOUND: -32002;
|
|
418
|
+
readonly NO_RESPONDERS: -32003;
|
|
419
|
+
readonly TIMEOUT: -32004;
|
|
420
|
+
readonly MESSAGE_NOT_FOUND: -32005;
|
|
421
|
+
readonly STREAM_EXISTS: -32006;
|
|
422
|
+
readonly CONSUMER_EXISTS: -32007;
|
|
423
|
+
readonly INVALID_SUBJECT: -32008;
|
|
424
|
+
readonly PERMISSION_DENIED: -32009;
|
|
425
|
+
readonly MAX_PAYLOAD_EXCEEDED: -32010;
|
|
426
|
+
readonly DUPLICATE_MESSAGE: -32011;
|
|
427
|
+
readonly STREAM_SEALED: -32012;
|
|
428
|
+
readonly CONSUMER_DELETED: -32013;
|
|
429
|
+
};
|
|
430
|
+
declare function isRpcError(response: RpcResponse): response is RpcResponse & {
|
|
431
|
+
error: RpcError;
|
|
432
|
+
};
|
|
433
|
+
declare function isRpcSuccess(response: RpcResponse): response is RpcResponse & {
|
|
434
|
+
result: unknown;
|
|
435
|
+
};
|
|
436
|
+
declare function createRpcRequest(method: string, opts?: {
|
|
437
|
+
params?: Record<string, unknown> | unknown[];
|
|
438
|
+
id?: RpcId;
|
|
439
|
+
}): RpcRequest;
|
|
440
|
+
declare function createRpcError(code: number, message: string, id?: RpcId | null, data?: unknown): RpcResponse;
|
|
441
|
+
declare function createRpcSuccess(result: unknown, id: RpcId): RpcResponse;
|
|
442
|
+
declare function resetRequestIdCounter(): void;
|
|
443
|
+
|
|
444
|
+
export { type AckPolicy, type Codec, type ConnectionOptions, type ConsumeOptions, type Consumer, type ConsumerConfig, type ConsumerInfo, type ConsumerMessages, type ConsumersAPI, type ConsumersAccessor, type DeliverPolicy, type DiscardPolicy, Empty, JSONCodec, type JetStreamClient, type JetStreamManager, type JetStreamPublishOptions, type JsMsg, type JsMsgInfo, type Msg, type MsgHdrs, type NatsConnection, type PubAck, type PublishOptions, type PullOptions, type PurgeResponse, type QueuedIterator, RPC_ERROR_CODES, type ReplayPolicy, type RequestOptions, type RetentionPolicy, type RpcBatchRequest, type RpcBatchResponse, type RpcError, type RpcId, type RpcNotification, type RpcRequest, type RpcResponse, type SequencePair, type ServerInfo, type Status, type StatusType, type StorageType, type StoredMsg, type Stream, type StreamConfig, type StreamInfo, type StreamState, type StreamsAPI, type StreamsAccessor, StringCodec, type Subscription, type SubscriptionOptions, createHeaders, createRpcError, createRpcRequest, createRpcSuccess, defaultConsumerConfig, defaultStreamConfig, isRpcError, isRpcSuccess, resetRequestIdCounter };
|