@loams/client 0.1.0 → 0.1.1
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 +78 -2
- package/dist/app.d.ts +149 -0
- package/dist/app.js +317 -0
- package/dist/builders/filter.d.ts +96 -0
- package/dist/builders/filter.js +190 -0
- package/dist/builders/schema.d.ts +50 -0
- package/dist/builders/schema.js +92 -0
- package/dist/builders/search.d.ts +159 -0
- package/dist/builders/search.js +307 -0
- package/dist/gen/facade.d.ts +267 -2
- package/dist/gen/facade.js +194 -0
- package/dist/handle.d.ts +67 -0
- package/dist/handle.js +107 -0
- package/dist/index.d.ts +12 -5
- package/dist/index.js +12 -3
- package/dist/loams.d.ts +77 -2
- package/dist/loams.js +84 -6
- package/dist/runtime/batch.d.ts +29 -0
- package/dist/runtime/batch.js +95 -0
- package/dist/runtime/call.d.ts +63 -9
- package/dist/runtime/call.js +243 -41
- package/dist/runtime/consistency.d.ts +65 -11
- package/dist/runtime/consistency.js +212 -46
- package/dist/runtime/errors.d.ts +29 -2
- package/dist/runtime/errors.js +26 -0
- package/dist/runtime/pagination.js +8 -2
- package/dist/runtime/subscribe.d.ts +37 -0
- package/dist/runtime/subscribe.js +128 -0
- package/dist/vendor/proto/collection-v1.d.ts +3 -0
- package/dist/vendor/proto/collection-v1.js +7 -0
- package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.d.ts +1610 -0
- package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.js +399 -0
- package/dist/vendor/proto/gen/loams/collection/v1/document_pb.d.ts +1054 -0
- package/dist/vendor/proto/gen/loams/collection/v1/document_pb.js +327 -0
- package/dist/vendor/proto/gen/loams/collection/v1/query_pb.d.ts +2101 -0
- package/dist/vendor/proto/gen/loams/collection/v1/query_pb.js +608 -0
- package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.d.ts +2299 -0
- package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.js +596 -0
- package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.d.ts +399 -0
- package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.js +118 -0
- package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.d.ts +182 -0
- package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.js +72 -0
- package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.d.ts +688 -0
- package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.js +180 -0
- package/package.json +2 -2
|
@@ -0,0 +1,688 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file loams/stream/v1/stream.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_loams_stream_v1_stream: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* How long a stream keeps its records; an unset limit is no limit.
|
|
9
|
+
*
|
|
10
|
+
* @generated from message loams.stream.v1.Retention
|
|
11
|
+
*/
|
|
12
|
+
export type Retention = Message<"loams.stream.v1.Retention"> & {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: optional uint64 max_age_ms = 1;
|
|
15
|
+
*/
|
|
16
|
+
maxAgeMs?: bigint | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: optional uint64 max_bytes = 2;
|
|
19
|
+
*/
|
|
20
|
+
maxBytes?: bigint | undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message loams.stream.v1.Retention.
|
|
24
|
+
* Use `create(RetentionSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export declare const RetentionSchema: GenMessage<Retention>;
|
|
27
|
+
/**
|
|
28
|
+
* One partition's offsets.
|
|
29
|
+
*
|
|
30
|
+
* @generated from message loams.stream.v1.PartitionOffsets
|
|
31
|
+
*/
|
|
32
|
+
export type PartitionOffsets = Message<"loams.stream.v1.PartitionOffsets"> & {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: uint32 partition = 1;
|
|
35
|
+
*/
|
|
36
|
+
partition: number;
|
|
37
|
+
/**
|
|
38
|
+
* The first offset still in the log.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: uint64 log_start_offset = 2;
|
|
41
|
+
*/
|
|
42
|
+
logStartOffset: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* The offset the next append gets.
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: uint64 high_watermark = 3;
|
|
47
|
+
*/
|
|
48
|
+
highWatermark: bigint;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message loams.stream.v1.PartitionOffsets.
|
|
52
|
+
* Use `create(PartitionOffsetsSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export declare const PartitionOffsetsSchema: GenMessage<PartitionOffsets>;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from message loams.stream.v1.StreamInfo
|
|
57
|
+
*/
|
|
58
|
+
export type StreamInfo = Message<"loams.stream.v1.StreamInfo"> & {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: string namespace = 1;
|
|
61
|
+
*/
|
|
62
|
+
namespace: string;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: string name = 2;
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: uint64 id = 3;
|
|
69
|
+
*/
|
|
70
|
+
id: bigint;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: uint32 partitions = 4;
|
|
73
|
+
*/
|
|
74
|
+
partitions: number;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: loams.stream.v1.Retention retention = 5;
|
|
77
|
+
*/
|
|
78
|
+
retention?: Retention | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Each partition's offsets; set by `DescribeStream` only.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: repeated loams.stream.v1.PartitionOffsets offsets = 6;
|
|
83
|
+
*/
|
|
84
|
+
offsets: PartitionOffsets[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message loams.stream.v1.StreamInfo.
|
|
88
|
+
* Use `create(StreamInfoSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export declare const StreamInfoSchema: GenMessage<StreamInfo>;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message loams.stream.v1.CreateStreamRequest
|
|
93
|
+
*/
|
|
94
|
+
export type CreateStreamRequest = Message<"loams.stream.v1.CreateStreamRequest"> & {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string namespace = 1;
|
|
97
|
+
*/
|
|
98
|
+
namespace: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string name = 2;
|
|
101
|
+
*/
|
|
102
|
+
name: string;
|
|
103
|
+
/**
|
|
104
|
+
* At least 1.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: uint32 partitions = 3;
|
|
107
|
+
*/
|
|
108
|
+
partitions: number;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: loams.stream.v1.Retention retention = 4;
|
|
111
|
+
*/
|
|
112
|
+
retention?: Retention | undefined;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message loams.stream.v1.CreateStreamRequest.
|
|
116
|
+
* Use `create(CreateStreamRequestSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export declare const CreateStreamRequestSchema: GenMessage<CreateStreamRequest>;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from message loams.stream.v1.CreateStreamResponse
|
|
121
|
+
*/
|
|
122
|
+
export type CreateStreamResponse = Message<"loams.stream.v1.CreateStreamResponse"> & {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: loams.stream.v1.StreamInfo stream = 1;
|
|
125
|
+
*/
|
|
126
|
+
stream?: StreamInfo | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* False when the stream already existed with this partition count.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: bool created = 2;
|
|
131
|
+
*/
|
|
132
|
+
created: boolean;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Describes the message loams.stream.v1.CreateStreamResponse.
|
|
136
|
+
* Use `create(CreateStreamResponseSchema)` to create a new message.
|
|
137
|
+
*/
|
|
138
|
+
export declare const CreateStreamResponseSchema: GenMessage<CreateStreamResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message loams.stream.v1.DescribeStreamRequest
|
|
141
|
+
*/
|
|
142
|
+
export type DescribeStreamRequest = Message<"loams.stream.v1.DescribeStreamRequest"> & {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: string namespace = 1;
|
|
145
|
+
*/
|
|
146
|
+
namespace: string;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: string stream = 2;
|
|
149
|
+
*/
|
|
150
|
+
stream: string;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message loams.stream.v1.DescribeStreamRequest.
|
|
154
|
+
* Use `create(DescribeStreamRequestSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
export declare const DescribeStreamRequestSchema: GenMessage<DescribeStreamRequest>;
|
|
157
|
+
/**
|
|
158
|
+
* @generated from message loams.stream.v1.DescribeStreamResponse
|
|
159
|
+
*/
|
|
160
|
+
export type DescribeStreamResponse = Message<"loams.stream.v1.DescribeStreamResponse"> & {
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: loams.stream.v1.StreamInfo stream = 1;
|
|
163
|
+
*/
|
|
164
|
+
stream?: StreamInfo | undefined;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message loams.stream.v1.DescribeStreamResponse.
|
|
168
|
+
* Use `create(DescribeStreamResponseSchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export declare const DescribeStreamResponseSchema: GenMessage<DescribeStreamResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message loams.stream.v1.ListStreamsRequest
|
|
173
|
+
*/
|
|
174
|
+
export type ListStreamsRequest = Message<"loams.stream.v1.ListStreamsRequest"> & {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string namespace = 1;
|
|
177
|
+
*/
|
|
178
|
+
namespace: string;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: int32 page_size = 2;
|
|
181
|
+
*/
|
|
182
|
+
pageSize: number;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string page_token = 3;
|
|
185
|
+
*/
|
|
186
|
+
pageToken: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message loams.stream.v1.ListStreamsRequest.
|
|
190
|
+
* Use `create(ListStreamsRequestSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export declare const ListStreamsRequestSchema: GenMessage<ListStreamsRequest>;
|
|
193
|
+
/**
|
|
194
|
+
* @generated from message loams.stream.v1.ListStreamsResponse
|
|
195
|
+
*/
|
|
196
|
+
export type ListStreamsResponse = Message<"loams.stream.v1.ListStreamsResponse"> & {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: repeated loams.stream.v1.StreamInfo streams = 1;
|
|
199
|
+
*/
|
|
200
|
+
streams: StreamInfo[];
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: string next_page_token = 2;
|
|
203
|
+
*/
|
|
204
|
+
nextPageToken: string;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Describes the message loams.stream.v1.ListStreamsResponse.
|
|
208
|
+
* Use `create(ListStreamsResponseSchema)` to create a new message.
|
|
209
|
+
*/
|
|
210
|
+
export declare const ListStreamsResponseSchema: GenMessage<ListStreamsResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* @generated from message loams.stream.v1.ProduceRequest
|
|
213
|
+
*/
|
|
214
|
+
export type ProduceRequest = Message<"loams.stream.v1.ProduceRequest"> & {
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: string namespace = 1;
|
|
217
|
+
*/
|
|
218
|
+
namespace: string;
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: string stream = 2;
|
|
221
|
+
*/
|
|
222
|
+
stream: string;
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: uint32 partition = 3;
|
|
225
|
+
*/
|
|
226
|
+
partition: number;
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: repeated loams.stream.v1.Record records = 4;
|
|
229
|
+
*/
|
|
230
|
+
records: Record[];
|
|
231
|
+
/**
|
|
232
|
+
* With `producer_seq`, makes the append idempotent: the pair is the
|
|
233
|
+
* append's key in the stream's ledger.
|
|
234
|
+
*
|
|
235
|
+
* @generated from field: optional string producer_id = 5;
|
|
236
|
+
*/
|
|
237
|
+
producerId?: string | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: optional uint64 producer_seq = 6;
|
|
240
|
+
*/
|
|
241
|
+
producerSeq?: bigint | undefined;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Describes the message loams.stream.v1.ProduceRequest.
|
|
245
|
+
* Use `create(ProduceRequestSchema)` to create a new message.
|
|
246
|
+
*/
|
|
247
|
+
export declare const ProduceRequestSchema: GenMessage<ProduceRequest>;
|
|
248
|
+
/**
|
|
249
|
+
* @generated from message loams.stream.v1.Record
|
|
250
|
+
*/
|
|
251
|
+
export type Record = Message<"loams.stream.v1.Record"> & {
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: optional bytes key = 1;
|
|
254
|
+
*/
|
|
255
|
+
key?: Uint8Array | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* @generated from field: optional bytes value = 2;
|
|
258
|
+
*/
|
|
259
|
+
value?: Uint8Array | undefined;
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: repeated loams.stream.v1.Header headers = 3;
|
|
262
|
+
*/
|
|
263
|
+
headers: Header[];
|
|
264
|
+
/**
|
|
265
|
+
* Milliseconds since the epoch; 0 or negative takes the server's clock.
|
|
266
|
+
*
|
|
267
|
+
* @generated from field: int64 timestamp_ms = 4;
|
|
268
|
+
*/
|
|
269
|
+
timestampMs: bigint;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message loams.stream.v1.Record.
|
|
273
|
+
* Use `create(RecordSchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const RecordSchema: GenMessage<Record>;
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message loams.stream.v1.Header
|
|
278
|
+
*/
|
|
279
|
+
export type Header = Message<"loams.stream.v1.Header"> & {
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: string key = 1;
|
|
282
|
+
*/
|
|
283
|
+
key: string;
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: optional bytes value = 2;
|
|
286
|
+
*/
|
|
287
|
+
value?: Uint8Array | undefined;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Describes the message loams.stream.v1.Header.
|
|
291
|
+
* Use `create(HeaderSchema)` to create a new message.
|
|
292
|
+
*/
|
|
293
|
+
export declare const HeaderSchema: GenMessage<Header>;
|
|
294
|
+
/**
|
|
295
|
+
* @generated from message loams.stream.v1.ProduceResponse
|
|
296
|
+
*/
|
|
297
|
+
export type ProduceResponse = Message<"loams.stream.v1.ProduceResponse"> & {
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: uint64 stream_id = 1;
|
|
300
|
+
*/
|
|
301
|
+
streamId: bigint;
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: uint64 base_offset = 2;
|
|
304
|
+
*/
|
|
305
|
+
baseOffset: bigint;
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: uint64 last_offset = 3;
|
|
308
|
+
*/
|
|
309
|
+
lastOffset: bigint;
|
|
310
|
+
/**
|
|
311
|
+
* The append's consistency token: a read `at_least` it sees the records.
|
|
312
|
+
*
|
|
313
|
+
* @generated from field: string consistency_token = 4;
|
|
314
|
+
*/
|
|
315
|
+
consistencyToken: string;
|
|
316
|
+
/**
|
|
317
|
+
* True when `producer_id` + `producer_seq` had already appended: the
|
|
318
|
+
* offsets are that append's, and nothing was appended now.
|
|
319
|
+
*
|
|
320
|
+
* @generated from field: bool duplicate = 5;
|
|
321
|
+
*/
|
|
322
|
+
duplicate: boolean;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Describes the message loams.stream.v1.ProduceResponse.
|
|
326
|
+
* Use `create(ProduceResponseSchema)` to create a new message.
|
|
327
|
+
*/
|
|
328
|
+
export declare const ProduceResponseSchema: GenMessage<ProduceResponse>;
|
|
329
|
+
/**
|
|
330
|
+
* @generated from message loams.stream.v1.FetchRequest
|
|
331
|
+
*/
|
|
332
|
+
export type FetchRequest = Message<"loams.stream.v1.FetchRequest"> & {
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: string namespace = 1;
|
|
335
|
+
*/
|
|
336
|
+
namespace: string;
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: string stream = 2;
|
|
339
|
+
*/
|
|
340
|
+
stream: string;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: uint32 partition = 3;
|
|
343
|
+
*/
|
|
344
|
+
partition: number;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: uint64 offset = 4;
|
|
347
|
+
*/
|
|
348
|
+
offset: bigint;
|
|
349
|
+
/**
|
|
350
|
+
* At most this many bytes (default 1 MiB, at most 16 MiB).
|
|
351
|
+
*
|
|
352
|
+
* @generated from field: optional uint32 max_bytes = 5;
|
|
353
|
+
*/
|
|
354
|
+
maxBytes?: number | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* At most this many records.
|
|
357
|
+
*
|
|
358
|
+
* @generated from field: optional uint32 max_records = 6;
|
|
359
|
+
*/
|
|
360
|
+
maxRecords?: number | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* Hold an empty fetch until a record arrives, at most this long (at most
|
|
363
|
+
* 30 000).
|
|
364
|
+
*
|
|
365
|
+
* @generated from field: optional uint32 max_wait_ms = 7;
|
|
366
|
+
*/
|
|
367
|
+
maxWaitMs?: number | undefined;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* Describes the message loams.stream.v1.FetchRequest.
|
|
371
|
+
* Use `create(FetchRequestSchema)` to create a new message.
|
|
372
|
+
*/
|
|
373
|
+
export declare const FetchRequestSchema: GenMessage<FetchRequest>;
|
|
374
|
+
/**
|
|
375
|
+
* @generated from message loams.stream.v1.FetchedRecord
|
|
376
|
+
*/
|
|
377
|
+
export type FetchedRecord = Message<"loams.stream.v1.FetchedRecord"> & {
|
|
378
|
+
/**
|
|
379
|
+
* @generated from field: uint64 offset = 1;
|
|
380
|
+
*/
|
|
381
|
+
offset: bigint;
|
|
382
|
+
/**
|
|
383
|
+
* @generated from field: optional bytes key = 2;
|
|
384
|
+
*/
|
|
385
|
+
key?: Uint8Array | undefined;
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: optional bytes value = 3;
|
|
388
|
+
*/
|
|
389
|
+
value?: Uint8Array | undefined;
|
|
390
|
+
/**
|
|
391
|
+
* @generated from field: repeated loams.stream.v1.Header headers = 4;
|
|
392
|
+
*/
|
|
393
|
+
headers: Header[];
|
|
394
|
+
/**
|
|
395
|
+
* @generated from field: int64 timestamp_ms = 5;
|
|
396
|
+
*/
|
|
397
|
+
timestampMs: bigint;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Describes the message loams.stream.v1.FetchedRecord.
|
|
401
|
+
* Use `create(FetchedRecordSchema)` to create a new message.
|
|
402
|
+
*/
|
|
403
|
+
export declare const FetchedRecordSchema: GenMessage<FetchedRecord>;
|
|
404
|
+
/**
|
|
405
|
+
* @generated from message loams.stream.v1.FetchResponse
|
|
406
|
+
*/
|
|
407
|
+
export type FetchResponse = Message<"loams.stream.v1.FetchResponse"> & {
|
|
408
|
+
/**
|
|
409
|
+
* @generated from field: repeated loams.stream.v1.FetchedRecord records = 1;
|
|
410
|
+
*/
|
|
411
|
+
records: FetchedRecord[];
|
|
412
|
+
/**
|
|
413
|
+
* Where the next fetch starts.
|
|
414
|
+
*
|
|
415
|
+
* @generated from field: uint64 next_offset = 2;
|
|
416
|
+
*/
|
|
417
|
+
nextOffset: bigint;
|
|
418
|
+
/**
|
|
419
|
+
* @generated from field: uint64 high_watermark = 3;
|
|
420
|
+
*/
|
|
421
|
+
highWatermark: bigint;
|
|
422
|
+
/**
|
|
423
|
+
* @generated from field: uint64 log_start_offset = 4;
|
|
424
|
+
*/
|
|
425
|
+
logStartOffset: bigint;
|
|
426
|
+
};
|
|
427
|
+
/**
|
|
428
|
+
* Describes the message loams.stream.v1.FetchResponse.
|
|
429
|
+
* Use `create(FetchResponseSchema)` to create a new message.
|
|
430
|
+
*/
|
|
431
|
+
export declare const FetchResponseSchema: GenMessage<FetchResponse>;
|
|
432
|
+
/**
|
|
433
|
+
* @generated from message loams.stream.v1.ProduceCloudEventsRequest
|
|
434
|
+
*/
|
|
435
|
+
export type ProduceCloudEventsRequest = Message<"loams.stream.v1.ProduceCloudEventsRequest"> & {
|
|
436
|
+
/**
|
|
437
|
+
* @generated from field: string namespace = 1;
|
|
438
|
+
*/
|
|
439
|
+
namespace: string;
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: string stream = 2;
|
|
442
|
+
*/
|
|
443
|
+
stream: string;
|
|
444
|
+
/**
|
|
445
|
+
* Every event to this partition; unset, each goes to its key's partition.
|
|
446
|
+
*
|
|
447
|
+
* @generated from field: optional uint32 partition = 3;
|
|
448
|
+
*/
|
|
449
|
+
partition?: number | undefined;
|
|
450
|
+
/**
|
|
451
|
+
* @generated from oneof loams.stream.v1.ProduceCloudEventsRequest.events
|
|
452
|
+
*/
|
|
453
|
+
events: {
|
|
454
|
+
/**
|
|
455
|
+
* An `io.cloudevents.v1.CloudEventBatch`, protobuf-encoded.
|
|
456
|
+
*
|
|
457
|
+
* @generated from field: bytes batch = 4;
|
|
458
|
+
*/
|
|
459
|
+
value: Uint8Array;
|
|
460
|
+
case: "batch";
|
|
461
|
+
} | {
|
|
462
|
+
/**
|
|
463
|
+
* A JSON batch (`application/cloudevents-batch+json`).
|
|
464
|
+
*
|
|
465
|
+
* @generated from field: bytes json_batch = 5;
|
|
466
|
+
*/
|
|
467
|
+
value: Uint8Array;
|
|
468
|
+
case: "jsonBatch";
|
|
469
|
+
} | {
|
|
470
|
+
case: undefined;
|
|
471
|
+
value?: undefined;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Describes the message loams.stream.v1.ProduceCloudEventsRequest.
|
|
476
|
+
* Use `create(ProduceCloudEventsRequestSchema)` to create a new message.
|
|
477
|
+
*/
|
|
478
|
+
export declare const ProduceCloudEventsRequestSchema: GenMessage<ProduceCloudEventsRequest>;
|
|
479
|
+
/**
|
|
480
|
+
* @generated from message loams.stream.v1.EventResult
|
|
481
|
+
*/
|
|
482
|
+
export type EventResult = Message<"loams.stream.v1.EventResult"> & {
|
|
483
|
+
/**
|
|
484
|
+
* @generated from field: loams.stream.v1.EventStatus status = 1;
|
|
485
|
+
*/
|
|
486
|
+
status: EventStatus;
|
|
487
|
+
/**
|
|
488
|
+
* @generated from field: uint32 partition = 2;
|
|
489
|
+
*/
|
|
490
|
+
partition: number;
|
|
491
|
+
/**
|
|
492
|
+
* @generated from field: uint64 offset = 3;
|
|
493
|
+
*/
|
|
494
|
+
offset: bigint;
|
|
495
|
+
/**
|
|
496
|
+
* @generated from field: uint64 retry_after_ms = 4;
|
|
497
|
+
*/
|
|
498
|
+
retryAfterMs: bigint;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Describes the message loams.stream.v1.EventResult.
|
|
502
|
+
* Use `create(EventResultSchema)` to create a new message.
|
|
503
|
+
*/
|
|
504
|
+
export declare const EventResultSchema: GenMessage<EventResult>;
|
|
505
|
+
/**
|
|
506
|
+
* @generated from message loams.stream.v1.ProduceCloudEventsResponse
|
|
507
|
+
*/
|
|
508
|
+
export type ProduceCloudEventsResponse = Message<"loams.stream.v1.ProduceCloudEventsResponse"> & {
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: repeated loams.stream.v1.EventResult results = 1;
|
|
511
|
+
*/
|
|
512
|
+
results: EventResult[];
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: string consistency_token = 2;
|
|
515
|
+
*/
|
|
516
|
+
consistencyToken: string;
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Describes the message loams.stream.v1.ProduceCloudEventsResponse.
|
|
520
|
+
* Use `create(ProduceCloudEventsResponseSchema)` to create a new message.
|
|
521
|
+
*/
|
|
522
|
+
export declare const ProduceCloudEventsResponseSchema: GenMessage<ProduceCloudEventsResponse>;
|
|
523
|
+
/**
|
|
524
|
+
* @generated from message loams.stream.v1.FetchCloudEventsRequest
|
|
525
|
+
*/
|
|
526
|
+
export type FetchCloudEventsRequest = Message<"loams.stream.v1.FetchCloudEventsRequest"> & {
|
|
527
|
+
/**
|
|
528
|
+
* @generated from field: string namespace = 1;
|
|
529
|
+
*/
|
|
530
|
+
namespace: string;
|
|
531
|
+
/**
|
|
532
|
+
* @generated from field: string stream = 2;
|
|
533
|
+
*/
|
|
534
|
+
stream: string;
|
|
535
|
+
/**
|
|
536
|
+
* @generated from field: uint32 partition = 3;
|
|
537
|
+
*/
|
|
538
|
+
partition: number;
|
|
539
|
+
/**
|
|
540
|
+
* @generated from field: uint64 offset = 4;
|
|
541
|
+
*/
|
|
542
|
+
offset: bigint;
|
|
543
|
+
/**
|
|
544
|
+
* @generated from field: optional uint32 max_bytes = 5;
|
|
545
|
+
*/
|
|
546
|
+
maxBytes?: number | undefined;
|
|
547
|
+
/**
|
|
548
|
+
* @generated from field: optional uint32 max_wait_ms = 6;
|
|
549
|
+
*/
|
|
550
|
+
maxWaitMs?: number | undefined;
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* Describes the message loams.stream.v1.FetchCloudEventsRequest.
|
|
554
|
+
* Use `create(FetchCloudEventsRequestSchema)` to create a new message.
|
|
555
|
+
*/
|
|
556
|
+
export declare const FetchCloudEventsRequestSchema: GenMessage<FetchCloudEventsRequest>;
|
|
557
|
+
/**
|
|
558
|
+
* @generated from message loams.stream.v1.FetchCloudEventsResponse
|
|
559
|
+
*/
|
|
560
|
+
export type FetchCloudEventsResponse = Message<"loams.stream.v1.FetchCloudEventsResponse"> & {
|
|
561
|
+
/**
|
|
562
|
+
* The events as a JSON batch (`application/cloudevents-batch+json`).
|
|
563
|
+
*
|
|
564
|
+
* @generated from field: bytes json_batch = 1;
|
|
565
|
+
*/
|
|
566
|
+
jsonBatch: Uint8Array;
|
|
567
|
+
/**
|
|
568
|
+
* How many events the batch holds.
|
|
569
|
+
*
|
|
570
|
+
* @generated from field: uint32 count = 2;
|
|
571
|
+
*/
|
|
572
|
+
count: number;
|
|
573
|
+
/**
|
|
574
|
+
* @generated from field: uint64 next_offset = 3;
|
|
575
|
+
*/
|
|
576
|
+
nextOffset: bigint;
|
|
577
|
+
/**
|
|
578
|
+
* @generated from field: uint64 high_watermark = 4;
|
|
579
|
+
*/
|
|
580
|
+
highWatermark: bigint;
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* Describes the message loams.stream.v1.FetchCloudEventsResponse.
|
|
584
|
+
* Use `create(FetchCloudEventsResponseSchema)` to create a new message.
|
|
585
|
+
*/
|
|
586
|
+
export declare const FetchCloudEventsResponseSchema: GenMessage<FetchCloudEventsResponse>;
|
|
587
|
+
/**
|
|
588
|
+
* @generated from enum loams.stream.v1.EventStatus
|
|
589
|
+
*/
|
|
590
|
+
export declare enum EventStatus {
|
|
591
|
+
/**
|
|
592
|
+
* @generated from enum value: EVENT_STATUS_UNSPECIFIED = 0;
|
|
593
|
+
*/
|
|
594
|
+
UNSPECIFIED = 0,
|
|
595
|
+
/**
|
|
596
|
+
* @generated from enum value: EVENT_STATUS_APPENDED = 1;
|
|
597
|
+
*/
|
|
598
|
+
APPENDED = 1,
|
|
599
|
+
/**
|
|
600
|
+
* @generated from enum value: EVENT_STATUS_DUPLICATE = 2;
|
|
601
|
+
*/
|
|
602
|
+
DUPLICATE = 2,
|
|
603
|
+
/**
|
|
604
|
+
* @generated from enum value: EVENT_STATUS_IN_FLIGHT = 3;
|
|
605
|
+
*/
|
|
606
|
+
IN_FLIGHT = 3
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Describes the enum loams.stream.v1.EventStatus.
|
|
610
|
+
*/
|
|
611
|
+
export declare const EventStatusSchema: GenEnum<EventStatus>;
|
|
612
|
+
/**
|
|
613
|
+
* @generated from service loams.stream.v1.StreamService
|
|
614
|
+
*/
|
|
615
|
+
export declare const StreamService: GenService<{
|
|
616
|
+
/**
|
|
617
|
+
* Creates a stream. Idempotent by name: the same name and partition count
|
|
618
|
+
* again answers the existing stream with `created` unset; another
|
|
619
|
+
* partition count under a taken name is `already_exists`.
|
|
620
|
+
*
|
|
621
|
+
* @generated from rpc loams.stream.v1.StreamService.CreateStream
|
|
622
|
+
*/
|
|
623
|
+
createStream: {
|
|
624
|
+
methodKind: "unary";
|
|
625
|
+
input: typeof CreateStreamRequestSchema;
|
|
626
|
+
output: typeof CreateStreamResponseSchema;
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* One stream, with each partition's offsets.
|
|
630
|
+
*
|
|
631
|
+
* @generated from rpc loams.stream.v1.StreamService.DescribeStream
|
|
632
|
+
*/
|
|
633
|
+
describeStream: {
|
|
634
|
+
methodKind: "unary";
|
|
635
|
+
input: typeof DescribeStreamRequestSchema;
|
|
636
|
+
output: typeof DescribeStreamResponseSchema;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* The namespace's streams, sorted by name, paged (AIP-158).
|
|
640
|
+
*
|
|
641
|
+
* @generated from rpc loams.stream.v1.StreamService.ListStreams
|
|
642
|
+
*/
|
|
643
|
+
listStreams: {
|
|
644
|
+
methodKind: "unary";
|
|
645
|
+
input: typeof ListStreamsRequestSchema;
|
|
646
|
+
output: typeof ListStreamsResponseSchema;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* Appends records to one partition, in order.
|
|
650
|
+
*
|
|
651
|
+
* @generated from rpc loams.stream.v1.StreamService.Produce
|
|
652
|
+
*/
|
|
653
|
+
produce: {
|
|
654
|
+
methodKind: "unary";
|
|
655
|
+
input: typeof ProduceRequestSchema;
|
|
656
|
+
output: typeof ProduceResponseSchema;
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* Reads one partition's records from an offset.
|
|
660
|
+
*
|
|
661
|
+
* @generated from rpc loams.stream.v1.StreamService.Fetch
|
|
662
|
+
*/
|
|
663
|
+
fetch: {
|
|
664
|
+
methodKind: "unary";
|
|
665
|
+
input: typeof FetchRequestSchema;
|
|
666
|
+
output: typeof FetchResponseSchema;
|
|
667
|
+
};
|
|
668
|
+
/**
|
|
669
|
+
* Appends CloudEvents, once per `source` + `id` within the dedup window.
|
|
670
|
+
*
|
|
671
|
+
* @generated from rpc loams.stream.v1.StreamService.ProduceCloudEvents
|
|
672
|
+
*/
|
|
673
|
+
produceCloudEvents: {
|
|
674
|
+
methodKind: "unary";
|
|
675
|
+
input: typeof ProduceCloudEventsRequestSchema;
|
|
676
|
+
output: typeof ProduceCloudEventsResponseSchema;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* Reads one partition's records as CloudEvents.
|
|
680
|
+
*
|
|
681
|
+
* @generated from rpc loams.stream.v1.StreamService.FetchCloudEvents
|
|
682
|
+
*/
|
|
683
|
+
fetchCloudEvents: {
|
|
684
|
+
methodKind: "unary";
|
|
685
|
+
input: typeof FetchCloudEventsRequestSchema;
|
|
686
|
+
output: typeof FetchCloudEventsResponseSchema;
|
|
687
|
+
};
|
|
688
|
+
}>;
|