@loams/live 0.0.0-stage → 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.
@@ -0,0 +1,787 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Value } from "./value_pb.js";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file loams/live/v1/live.proto.
6
+ */
7
+ export declare const file_loams_live_v1_live: GenFile;
8
+ /**
9
+ * A session's state: (query-set version, identity version, ts). A client
10
+ * applies a Transition only if its `start` equals the client's current
11
+ * version; a gap means it resumes. The zero version is {0, 0, 0}.
12
+ *
13
+ * @generated from message loams.live.v1.StateVersion
14
+ */
15
+ export type StateVersion = Message<"loams.live.v1.StateVersion"> & {
16
+ /**
17
+ * @generated from field: uint64 query_set = 1;
18
+ */
19
+ querySet: bigint;
20
+ /**
21
+ * @generated from field: uint64 identity = 2;
22
+ */
23
+ identity: bigint;
24
+ /**
25
+ * The TSO timestamp every query of the session was evaluated at.
26
+ *
27
+ * @generated from field: uint64 ts = 3;
28
+ */
29
+ ts: bigint;
30
+ };
31
+ /**
32
+ * Describes the message loams.live.v1.StateVersion.
33
+ * Use `create(StateVersionSchema)` to create a new message.
34
+ */
35
+ export declare const StateVersionSchema: GenMessage<StateVersion>;
36
+ /**
37
+ * @generated from message loams.live.v1.WatchRequest
38
+ */
39
+ export type WatchRequest = Message<"loams.live.v1.WatchRequest"> & {
40
+ /**
41
+ * @generated from oneof loams.live.v1.WatchRequest.start
42
+ */
43
+ start: {
44
+ /**
45
+ * A new session with this query set.
46
+ *
47
+ * @generated from field: loams.live.v1.QuerySet initial = 1;
48
+ */
49
+ value: QuerySet;
50
+ case: "initial";
51
+ } | {
52
+ /**
53
+ * A reconnect: rerun the set at a tick at or after `last_version.ts`
54
+ * and send full results.
55
+ *
56
+ * @generated from field: loams.live.v1.Resume resume = 2;
57
+ */
58
+ value: Resume;
59
+ case: "resume";
60
+ } | {
61
+ case: undefined;
62
+ value?: undefined;
63
+ };
64
+ };
65
+ /**
66
+ * Describes the message loams.live.v1.WatchRequest.
67
+ * Use `create(WatchRequestSchema)` to create a new message.
68
+ */
69
+ export declare const WatchRequestSchema: GenMessage<WatchRequest>;
70
+ /**
71
+ * @generated from message loams.live.v1.Resume
72
+ */
73
+ export type Resume = Message<"loams.live.v1.Resume"> & {
74
+ /**
75
+ * @generated from field: loams.live.v1.StateVersion last_version = 1;
76
+ */
77
+ lastVersion?: StateVersion | undefined;
78
+ /**
79
+ * @generated from field: loams.live.v1.QuerySet query_set = 2;
80
+ */
81
+ querySet?: QuerySet | undefined;
82
+ };
83
+ /**
84
+ * Describes the message loams.live.v1.Resume.
85
+ * Use `create(ResumeSchema)` to create a new message.
86
+ */
87
+ export declare const ResumeSchema: GenMessage<Resume>;
88
+ /**
89
+ * @generated from message loams.live.v1.QuerySet
90
+ */
91
+ export type QuerySet = Message<"loams.live.v1.QuerySet"> & {
92
+ /**
93
+ * @generated from field: uint64 version = 1;
94
+ */
95
+ version: bigint;
96
+ /**
97
+ * @generated from field: repeated loams.live.v1.QuerySpec queries = 2;
98
+ */
99
+ queries: QuerySpec[];
100
+ };
101
+ /**
102
+ * Describes the message loams.live.v1.QuerySet.
103
+ * Use `create(QuerySetSchema)` to create a new message.
104
+ */
105
+ export declare const QuerySetSchema: GenMessage<QuerySet>;
106
+ /**
107
+ * @generated from message loams.live.v1.QuerySpec
108
+ */
109
+ export type QuerySpec = Message<"loams.live.v1.QuerySpec"> & {
110
+ /**
111
+ * Chosen by the client, unique within its session.
112
+ *
113
+ * @generated from field: uint32 query_id = 1;
114
+ */
115
+ queryId: number;
116
+ /**
117
+ * "module:export", or a built-in such as "_system:query".
118
+ *
119
+ * @generated from field: string function = 2;
120
+ */
121
+ function: string;
122
+ /**
123
+ * @generated from field: loams.live.v1.Value args = 3;
124
+ */
125
+ args?: Value | undefined;
126
+ };
127
+ /**
128
+ * Describes the message loams.live.v1.QuerySpec.
129
+ * Use `create(QuerySpecSchema)` to create a new message.
130
+ */
131
+ export declare const QuerySpecSchema: GenMessage<QuerySpec>;
132
+ /**
133
+ * @generated from message loams.live.v1.ModifyQuerySetRequest
134
+ */
135
+ export type ModifyQuerySetRequest = Message<"loams.live.v1.ModifyQuerySetRequest"> & {
136
+ /**
137
+ * @generated from field: string session_id = 1;
138
+ */
139
+ sessionId: string;
140
+ /**
141
+ * Must equal the session's current query-set version, else
142
+ * FailedPrecondition.
143
+ *
144
+ * @generated from field: uint64 base_version = 2;
145
+ */
146
+ baseVersion: bigint;
147
+ /**
148
+ * @generated from field: uint64 new_version = 3;
149
+ */
150
+ newVersion: bigint;
151
+ /**
152
+ * @generated from field: repeated loams.live.v1.QuerySetChange changes = 4;
153
+ */
154
+ changes: QuerySetChange[];
155
+ };
156
+ /**
157
+ * Describes the message loams.live.v1.ModifyQuerySetRequest.
158
+ * Use `create(ModifyQuerySetRequestSchema)` to create a new message.
159
+ */
160
+ export declare const ModifyQuerySetRequestSchema: GenMessage<ModifyQuerySetRequest>;
161
+ /**
162
+ * @generated from message loams.live.v1.QuerySetChange
163
+ */
164
+ export type QuerySetChange = Message<"loams.live.v1.QuerySetChange"> & {
165
+ /**
166
+ * @generated from oneof loams.live.v1.QuerySetChange.change
167
+ */
168
+ change: {
169
+ /**
170
+ * @generated from field: loams.live.v1.QuerySpec add = 1;
171
+ */
172
+ value: QuerySpec;
173
+ case: "add";
174
+ } | {
175
+ /**
176
+ * The query id to remove.
177
+ *
178
+ * @generated from field: uint32 remove = 2;
179
+ */
180
+ value: number;
181
+ case: "remove";
182
+ } | {
183
+ case: undefined;
184
+ value?: undefined;
185
+ };
186
+ };
187
+ /**
188
+ * Describes the message loams.live.v1.QuerySetChange.
189
+ * Use `create(QuerySetChangeSchema)` to create a new message.
190
+ */
191
+ export declare const QuerySetChangeSchema: GenMessage<QuerySetChange>;
192
+ /**
193
+ * @generated from message loams.live.v1.ModifyQuerySetResponse
194
+ */
195
+ export type ModifyQuerySetResponse = Message<"loams.live.v1.ModifyQuerySetResponse"> & {};
196
+ /**
197
+ * Describes the message loams.live.v1.ModifyQuerySetResponse.
198
+ * Use `create(ModifyQuerySetResponseSchema)` to create a new message.
199
+ */
200
+ export declare const ModifyQuerySetResponseSchema: GenMessage<ModifyQuerySetResponse>;
201
+ /**
202
+ * @generated from message loams.live.v1.AuthenticateRequest
203
+ */
204
+ export type AuthenticateRequest = Message<"loams.live.v1.AuthenticateRequest"> & {
205
+ /**
206
+ * @generated from field: string session_id = 1;
207
+ */
208
+ sessionId: string;
209
+ };
210
+ /**
211
+ * Describes the message loams.live.v1.AuthenticateRequest.
212
+ * Use `create(AuthenticateRequestSchema)` to create a new message.
213
+ */
214
+ export declare const AuthenticateRequestSchema: GenMessage<AuthenticateRequest>;
215
+ /**
216
+ * @generated from message loams.live.v1.AuthenticateResponse
217
+ */
218
+ export type AuthenticateResponse = Message<"loams.live.v1.AuthenticateResponse"> & {
219
+ /**
220
+ * The session's identity version after the call.
221
+ *
222
+ * @generated from field: uint64 identity = 1;
223
+ */
224
+ identity: bigint;
225
+ };
226
+ /**
227
+ * Describes the message loams.live.v1.AuthenticateResponse.
228
+ * Use `create(AuthenticateResponseSchema)` to create a new message.
229
+ */
230
+ export declare const AuthenticateResponseSchema: GenMessage<AuthenticateResponse>;
231
+ /**
232
+ * One step of a session, from `start` to `end`.
233
+ *
234
+ * @generated from message loams.live.v1.Transition
235
+ */
236
+ export type Transition = Message<"loams.live.v1.Transition"> & {
237
+ /**
238
+ * @generated from field: string session_id = 1;
239
+ */
240
+ sessionId: string;
241
+ /**
242
+ * Must equal the client's current version.
243
+ *
244
+ * @generated from field: loams.live.v1.StateVersion start = 2;
245
+ */
246
+ start?: StateVersion | undefined;
247
+ /**
248
+ * @generated from field: loams.live.v1.StateVersion end = 3;
249
+ */
250
+ end?: StateVersion | undefined;
251
+ /**
252
+ * Per query id: a value, an error, or removed.
253
+ *
254
+ * @generated from field: repeated loams.live.v1.QueryUpdate updates = 4;
255
+ */
256
+ updates: QueryUpdate[];
257
+ /**
258
+ * Chunked: more Transition messages with the same `end` follow, and the
259
+ * client applies them together.
260
+ *
261
+ * @generated from field: bool more = 5;
262
+ */
263
+ more: boolean;
264
+ };
265
+ /**
266
+ * Describes the message loams.live.v1.Transition.
267
+ * Use `create(TransitionSchema)` to create a new message.
268
+ */
269
+ export declare const TransitionSchema: GenMessage<Transition>;
270
+ /**
271
+ * @generated from message loams.live.v1.QueryUpdate
272
+ */
273
+ export type QueryUpdate = Message<"loams.live.v1.QueryUpdate"> & {
274
+ /**
275
+ * @generated from field: uint32 query_id = 1;
276
+ */
277
+ queryId: number;
278
+ /**
279
+ * @generated from oneof loams.live.v1.QueryUpdate.update
280
+ */
281
+ update: {
282
+ /**
283
+ * @generated from field: loams.live.v1.Value value = 2;
284
+ */
285
+ value: Value;
286
+ case: "value";
287
+ } | {
288
+ /**
289
+ * @generated from field: loams.live.v1.LiveError error = 3;
290
+ */
291
+ value: LiveError;
292
+ case: "error";
293
+ } | {
294
+ /**
295
+ * @generated from field: loams.live.v1.Removed removed = 4;
296
+ */
297
+ value: Removed;
298
+ case: "removed";
299
+ } | {
300
+ case: undefined;
301
+ value?: undefined;
302
+ };
303
+ };
304
+ /**
305
+ * Describes the message loams.live.v1.QueryUpdate.
306
+ * Use `create(QueryUpdateSchema)` to create a new message.
307
+ */
308
+ export declare const QueryUpdateSchema: GenMessage<QueryUpdate>;
309
+ /**
310
+ * The query left the query set.
311
+ *
312
+ * @generated from message loams.live.v1.Removed
313
+ */
314
+ export type Removed = Message<"loams.live.v1.Removed"> & {};
315
+ /**
316
+ * Describes the message loams.live.v1.Removed.
317
+ * Use `create(RemovedSchema)` to create a new message.
318
+ */
319
+ export declare const RemovedSchema: GenMessage<Removed>;
320
+ /**
321
+ * @generated from message loams.live.v1.QueryRequest
322
+ */
323
+ export type QueryRequest = Message<"loams.live.v1.QueryRequest"> & {
324
+ /**
325
+ * @generated from field: string function = 1;
326
+ */
327
+ function: string;
328
+ /**
329
+ * @generated from field: loams.live.v1.Value args = 2;
330
+ */
331
+ args?: Value | undefined;
332
+ /**
333
+ * A TSO timestamp to read at; the latest tick when unset.
334
+ *
335
+ * @generated from field: optional uint64 ts = 3;
336
+ */
337
+ ts?: bigint | undefined;
338
+ };
339
+ /**
340
+ * Describes the message loams.live.v1.QueryRequest.
341
+ * Use `create(QueryRequestSchema)` to create a new message.
342
+ */
343
+ export declare const QueryRequestSchema: GenMessage<QueryRequest>;
344
+ /**
345
+ * @generated from message loams.live.v1.QueryResponse
346
+ */
347
+ export type QueryResponse = Message<"loams.live.v1.QueryResponse"> & {
348
+ /**
349
+ * The timestamp the query was evaluated at.
350
+ *
351
+ * @generated from field: uint64 ts = 1;
352
+ */
353
+ ts: bigint;
354
+ /**
355
+ * @generated from field: loams.live.v1.Value result = 2;
356
+ */
357
+ result?: Value | undefined;
358
+ };
359
+ /**
360
+ * Describes the message loams.live.v1.QueryResponse.
361
+ * Use `create(QueryResponseSchema)` to create a new message.
362
+ */
363
+ export declare const QueryResponseSchema: GenMessage<QueryResponse>;
364
+ /**
365
+ * @generated from message loams.live.v1.MutateRequest
366
+ */
367
+ export type MutateRequest = Message<"loams.live.v1.MutateRequest"> & {
368
+ /**
369
+ * @generated from field: string function = 1;
370
+ */
371
+ function: string;
372
+ /**
373
+ * @generated from field: loams.live.v1.Value args = 2;
374
+ */
375
+ args?: Value | undefined;
376
+ /**
377
+ * A retried call with the same key returns the recorded commit timestamp
378
+ * and result instead of running again (§20 §5.1).
379
+ *
380
+ * @generated from field: optional string idempotency_key = 3;
381
+ */
382
+ idempotencyKey?: string | undefined;
383
+ };
384
+ /**
385
+ * Describes the message loams.live.v1.MutateRequest.
386
+ * Use `create(MutateRequestSchema)` to create a new message.
387
+ */
388
+ export declare const MutateRequestSchema: GenMessage<MutateRequest>;
389
+ /**
390
+ * @generated from message loams.live.v1.MutateResponse
391
+ */
392
+ export type MutateResponse = Message<"loams.live.v1.MutateResponse"> & {
393
+ /**
394
+ * @generated from field: uint64 commit_ts = 1;
395
+ */
396
+ commitTs: bigint;
397
+ /**
398
+ * @generated from field: loams.live.v1.Value result = 2;
399
+ */
400
+ result?: Value | undefined;
401
+ };
402
+ /**
403
+ * Describes the message loams.live.v1.MutateResponse.
404
+ * Use `create(MutateResponseSchema)` to create a new message.
405
+ */
406
+ export declare const MutateResponseSchema: GenMessage<MutateResponse>;
407
+ /**
408
+ * A deployed schema: tables, their indexes and their validators.
409
+ *
410
+ * @generated from message loams.live.v1.Schema
411
+ */
412
+ export type Schema = Message<"loams.live.v1.Schema"> & {
413
+ /**
414
+ * @generated from field: repeated loams.live.v1.TableSchema tables = 1;
415
+ */
416
+ tables: TableSchema[];
417
+ };
418
+ /**
419
+ * Describes the message loams.live.v1.Schema.
420
+ * Use `create(SchemaSchema)` to create a new message.
421
+ */
422
+ export declare const SchemaSchema: GenMessage<Schema>;
423
+ /**
424
+ * @generated from message loams.live.v1.TableSchema
425
+ */
426
+ export type TableSchema = Message<"loams.live.v1.TableSchema"> & {
427
+ /**
428
+ * @generated from field: string name = 1;
429
+ */
430
+ name: string;
431
+ /**
432
+ * User indexes; `by_id` and `by_creation_time` are implicit.
433
+ *
434
+ * @generated from field: repeated loams.live.v1.IndexSchema indexes = 2;
435
+ */
436
+ indexes: IndexSchema[];
437
+ /**
438
+ * The validator every write to the table must match (design §45 §4.1,
439
+ * D684): a `v.object(…)`, or a `v.union(…)` of them, over the document's
440
+ * own fields (not `_id` or `_creationTime`). Absent: any document.
441
+ *
442
+ * @generated from field: loams.live.v1.Validator validator = 3;
443
+ */
444
+ validator?: Validator | undefined;
445
+ /**
446
+ * Whether a deploy that makes the validator stricter checks the table's
447
+ * existing documents first (absent: true). With `false` the new validator
448
+ * applies at once to new writes only, as Convex's `schemaValidation`.
449
+ *
450
+ * @generated from field: optional bool schema_validation = 4;
451
+ */
452
+ schemaValidation?: boolean | undefined;
453
+ };
454
+ /**
455
+ * Describes the message loams.live.v1.TableSchema.
456
+ * Use `create(TableSchemaSchema)` to create a new message.
457
+ */
458
+ export declare const TableSchemaSchema: GenMessage<TableSchema>;
459
+ /**
460
+ * @generated from message loams.live.v1.IndexSchema
461
+ */
462
+ export type IndexSchema = Message<"loams.live.v1.IndexSchema"> & {
463
+ /**
464
+ * @generated from field: string name = 1;
465
+ */
466
+ name: string;
467
+ /**
468
+ * Up to 16 field names; `_creationTime` and `_id` are appended.
469
+ *
470
+ * @generated from field: repeated string fields = 2;
471
+ */
472
+ fields: string[];
473
+ };
474
+ /**
475
+ * Describes the message loams.live.v1.IndexSchema.
476
+ * Use `create(IndexSchemaSchema)` to create a new message.
477
+ */
478
+ export declare const IndexSchemaSchema: GenMessage<IndexSchema>;
479
+ /**
480
+ * A validator (design §45 §4.1, D684): the `v.*` vocabulary of
481
+ * `loams:server`. Values match strictly: `int64` takes only an int64 and
482
+ * `float64` only a double; an object has exactly its fields, except that an
483
+ * `optional` field may be missing.
484
+ *
485
+ * @generated from message loams.live.v1.Validator
486
+ */
487
+ export type Validator = Message<"loams.live.v1.Validator"> & {
488
+ /**
489
+ * Exactly one is set; a Validator with none set is invalid.
490
+ *
491
+ * @generated from oneof loams.live.v1.Validator.kind
492
+ */
493
+ kind: {
494
+ /**
495
+ * `v.null()`, `v.int64()`, `v.float64()`, `v.boolean()`, `v.string()`,
496
+ * `v.bytes()` or `v.any()`.
497
+ *
498
+ * @generated from field: loams.live.v1.ValidatorPrimitive primitive = 1;
499
+ */
500
+ value: ValidatorPrimitive;
501
+ case: "primitive";
502
+ } | {
503
+ /**
504
+ * `v.array(element)`: every element matches.
505
+ *
506
+ * @generated from field: loams.live.v1.Validator array = 2;
507
+ */
508
+ value: Validator;
509
+ case: "array";
510
+ } | {
511
+ /**
512
+ * `v.object(fields)`.
513
+ *
514
+ * @generated from field: loams.live.v1.ValidatorObject object = 3;
515
+ */
516
+ value: ValidatorObject;
517
+ case: "object";
518
+ } | {
519
+ /**
520
+ * `v.literal(value)`: exactly this scalar (null, boolean, int64, a
521
+ * finite double or a string).
522
+ *
523
+ * @generated from field: loams.live.v1.Value literal = 4;
524
+ */
525
+ value: Value;
526
+ case: "literal";
527
+ } | {
528
+ /**
529
+ * `v.union(...members)`: at least one member matches.
530
+ *
531
+ * @generated from field: loams.live.v1.ValidatorUnion union = 5;
532
+ */
533
+ value: ValidatorUnion;
534
+ case: "union";
535
+ } | {
536
+ /**
537
+ * `v.optional(inner)`: an object field that may be missing; only valid
538
+ * as a field of `object`.
539
+ *
540
+ * @generated from field: loams.live.v1.Validator optional = 6;
541
+ */
542
+ value: Validator;
543
+ case: "optional";
544
+ } | {
545
+ /**
546
+ * `v.id(table)`: a document id (its text form) of the named table.
547
+ *
548
+ * @generated from field: string id = 7;
549
+ */
550
+ value: string;
551
+ case: "id";
552
+ } | {
553
+ case: undefined;
554
+ value?: undefined;
555
+ };
556
+ };
557
+ /**
558
+ * Describes the message loams.live.v1.Validator.
559
+ * Use `create(ValidatorSchema)` to create a new message.
560
+ */
561
+ export declare const ValidatorSchema: GenMessage<Validator>;
562
+ /**
563
+ * @generated from message loams.live.v1.ValidatorObject
564
+ */
565
+ export type ValidatorObject = Message<"loams.live.v1.ValidatorObject"> & {
566
+ /**
567
+ * @generated from field: map<string, loams.live.v1.Validator> fields = 1;
568
+ */
569
+ fields: {
570
+ [key: string]: Validator;
571
+ };
572
+ };
573
+ /**
574
+ * Describes the message loams.live.v1.ValidatorObject.
575
+ * Use `create(ValidatorObjectSchema)` to create a new message.
576
+ */
577
+ export declare const ValidatorObjectSchema: GenMessage<ValidatorObject>;
578
+ /**
579
+ * @generated from message loams.live.v1.ValidatorUnion
580
+ */
581
+ export type ValidatorUnion = Message<"loams.live.v1.ValidatorUnion"> & {
582
+ /**
583
+ * At least one.
584
+ *
585
+ * @generated from field: repeated loams.live.v1.Validator members = 1;
586
+ */
587
+ members: Validator[];
588
+ };
589
+ /**
590
+ * Describes the message loams.live.v1.ValidatorUnion.
591
+ * Use `create(ValidatorUnionSchema)` to create a new message.
592
+ */
593
+ export declare const ValidatorUnionSchema: GenMessage<ValidatorUnion>;
594
+ /**
595
+ * An error for one query in a Transition. Call errors use the Connect error
596
+ * codes; this carries the same meaning inside a stream that stays open.
597
+ *
598
+ * @generated from message loams.live.v1.LiveError
599
+ */
600
+ export type LiveError = Message<"loams.live.v1.LiveError"> & {
601
+ /**
602
+ * @generated from field: loams.live.v1.ErrorCode code = 1;
603
+ */
604
+ code: ErrorCode;
605
+ /**
606
+ * @generated from field: string message = 2;
607
+ */
608
+ message: string;
609
+ };
610
+ /**
611
+ * Describes the message loams.live.v1.LiveError.
612
+ * Use `create(LiveErrorSchema)` to create a new message.
613
+ */
614
+ export declare const LiveErrorSchema: GenMessage<LiveError>;
615
+ /**
616
+ * @generated from enum loams.live.v1.ValidatorPrimitive
617
+ */
618
+ export declare enum ValidatorPrimitive {
619
+ /**
620
+ * @generated from enum value: VALIDATOR_PRIMITIVE_UNSPECIFIED = 0;
621
+ */
622
+ UNSPECIFIED = 0,
623
+ /**
624
+ * @generated from enum value: VALIDATOR_PRIMITIVE_NULL = 1;
625
+ */
626
+ NULL = 1,
627
+ /**
628
+ * @generated from enum value: VALIDATOR_PRIMITIVE_INT64 = 2;
629
+ */
630
+ INT64 = 2,
631
+ /**
632
+ * @generated from enum value: VALIDATOR_PRIMITIVE_FLOAT64 = 3;
633
+ */
634
+ FLOAT64 = 3,
635
+ /**
636
+ * @generated from enum value: VALIDATOR_PRIMITIVE_BOOLEAN = 4;
637
+ */
638
+ BOOLEAN = 4,
639
+ /**
640
+ * @generated from enum value: VALIDATOR_PRIMITIVE_STRING = 5;
641
+ */
642
+ STRING = 5,
643
+ /**
644
+ * @generated from enum value: VALIDATOR_PRIMITIVE_BYTES = 6;
645
+ */
646
+ BYTES = 6,
647
+ /**
648
+ * @generated from enum value: VALIDATOR_PRIMITIVE_ANY = 7;
649
+ */
650
+ ANY = 7
651
+ }
652
+ /**
653
+ * Describes the enum loams.live.v1.ValidatorPrimitive.
654
+ */
655
+ export declare const ValidatorPrimitiveSchema: GenEnum<ValidatorPrimitive>;
656
+ /**
657
+ * @generated from enum loams.live.v1.ErrorCode
658
+ */
659
+ export declare enum ErrorCode {
660
+ /**
661
+ * @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
662
+ */
663
+ UNSPECIFIED = 0,
664
+ /**
665
+ * The arguments or a value are invalid.
666
+ *
667
+ * @generated from enum value: ERROR_CODE_INVALID_ARGUMENT = 1;
668
+ */
669
+ INVALID_ARGUMENT = 1,
670
+ /**
671
+ * The function, table or document does not exist.
672
+ *
673
+ * @generated from enum value: ERROR_CODE_NOT_FOUND = 2;
674
+ */
675
+ NOT_FOUND = 2,
676
+ /**
677
+ * @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 3;
678
+ */
679
+ FAILED_PRECONDITION = 3,
680
+ /**
681
+ * A limit (design §20 §4.1, §5.1) was exceeded; the message names it.
682
+ *
683
+ * @generated from enum value: ERROR_CODE_RESOURCE_EXHAUSTED = 4;
684
+ */
685
+ RESOURCE_EXHAUSTED = 4,
686
+ /**
687
+ * The function threw.
688
+ *
689
+ * @generated from enum value: ERROR_CODE_FUNCTION_ERROR = 5;
690
+ */
691
+ FUNCTION_ERROR = 5,
692
+ /**
693
+ * The function ran past its CPU limit.
694
+ *
695
+ * @generated from enum value: ERROR_CODE_FUNCTION_TIMEOUT = 6;
696
+ */
697
+ FUNCTION_TIMEOUT = 6,
698
+ /**
699
+ * The function ran past its memory limit.
700
+ *
701
+ * @generated from enum value: ERROR_CODE_FUNCTION_OUT_OF_MEMORY = 7;
702
+ */
703
+ FUNCTION_OUT_OF_MEMORY = 7,
704
+ /**
705
+ * @generated from enum value: ERROR_CODE_UNAVAILABLE = 8;
706
+ */
707
+ UNAVAILABLE = 8,
708
+ /**
709
+ * @generated from enum value: ERROR_CODE_INTERNAL = 9;
710
+ */
711
+ INTERNAL = 9
712
+ }
713
+ /**
714
+ * Describes the enum loams.live.v1.ErrorCode.
715
+ */
716
+ export declare const ErrorCodeSchema: GenEnum<ErrorCode>;
717
+ /**
718
+ * @generated from service loams.live.v1.LiveService
719
+ */
720
+ export declare const LiveService: GenService<{
721
+ /**
722
+ * Opens a session. The first Transition starts from the zero version and
723
+ * carries every query's result; later ones carry only changed queries.
724
+ * Heartbeats are empty Transitions every 15 s.
725
+ *
726
+ * buf lint: the response is `Transition`, not `WatchResponse`, because it
727
+ * is the protocol's unit (§20 §7.1); RPC_RESPONSE_STANDARD_NAME is
728
+ * excepted for this file in buf.yaml.
729
+ *
730
+ * @generated from rpc loams.live.v1.LiveService.Watch
731
+ */
732
+ watch: {
733
+ methodKind: "server_streaming";
734
+ input: typeof WatchRequestSchema;
735
+ output: typeof TransitionSchema;
736
+ };
737
+ /**
738
+ * Adds and removes queries in an open session. The next Transition
739
+ * reflects the change.
740
+ *
741
+ * @generated from rpc loams.live.v1.LiveService.ModifyQuerySet
742
+ */
743
+ modifyQuerySet: {
744
+ methodKind: "unary";
745
+ input: typeof ModifyQuerySetRequestSchema;
746
+ output: typeof ModifyQuerySetResponseSchema;
747
+ };
748
+ /**
749
+ * Replaces an open session's identity with this request's credential
750
+ * (its `Authorization` header; design §45 §5.4, LV1 plan Task 17). The
751
+ * same caller only extends the session's expiry; another caller (a
752
+ * sign-in or a sign-out) increments the identity version, and the next
753
+ * Transition reruns every query as the new caller. Answered once that
754
+ * Transition is queued. An unknown session is NOT_FOUND.
755
+ *
756
+ * @generated from rpc loams.live.v1.LiveService.Authenticate
757
+ */
758
+ authenticate: {
759
+ methodKind: "unary";
760
+ input: typeof AuthenticateRequestSchema;
761
+ output: typeof AuthenticateResponseSchema;
762
+ };
763
+ /**
764
+ * A one-shot query, at the latest tick or at a given timestamp.
765
+ *
766
+ * Exposed on `loams.tables`, not on `loams.live`: §44 §7.2 splits the
767
+ * service into the session half (watch, modify) and the table half (query,
768
+ * mutate), and both are facade names for these RPCs.
769
+ *
770
+ * @generated from rpc loams.live.v1.LiveService.Query
771
+ */
772
+ query: {
773
+ methodKind: "unary";
774
+ input: typeof QueryRequestSchema;
775
+ output: typeof QueryResponseSchema;
776
+ };
777
+ /**
778
+ * Runs a mutation; returns its commit timestamp and result.
779
+ *
780
+ * @generated from rpc loams.live.v1.LiveService.Mutate
781
+ */
782
+ mutate: {
783
+ methodKind: "unary";
784
+ input: typeof MutateRequestSchema;
785
+ output: typeof MutateResponseSchema;
786
+ };
787
+ }>;