@loams/client 0.1.0 → 0.1.2

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.
Files changed (56) hide show
  1. package/README.md +104 -4
  2. package/dist/app.d.ts +149 -0
  3. package/dist/app.js +317 -0
  4. package/dist/builders/filter.d.ts +96 -0
  5. package/dist/builders/filter.js +190 -0
  6. package/dist/builders/schema.d.ts +50 -0
  7. package/dist/builders/schema.js +92 -0
  8. package/dist/builders/search.d.ts +159 -0
  9. package/dist/builders/search.js +307 -0
  10. package/dist/gen/facade.d.ts +267 -2
  11. package/dist/gen/facade.js +194 -0
  12. package/dist/handle.d.ts +67 -0
  13. package/dist/handle.js +107 -0
  14. package/dist/index.d.ts +13 -5
  15. package/dist/index.js +13 -3
  16. package/dist/loams.d.ts +78 -3
  17. package/dist/loams.js +84 -6
  18. package/dist/node.js +1 -1
  19. package/dist/runtime/batch.d.ts +29 -0
  20. package/dist/runtime/batch.js +95 -0
  21. package/dist/runtime/call.d.ts +63 -9
  22. package/dist/runtime/call.js +243 -41
  23. package/dist/runtime/consistency.d.ts +65 -11
  24. package/dist/runtime/consistency.js +212 -46
  25. package/dist/runtime/errors.d.ts +29 -2
  26. package/dist/runtime/errors.js +26 -0
  27. package/dist/runtime/machine-key.d.ts +33 -0
  28. package/dist/runtime/machine-key.js +174 -0
  29. package/dist/runtime/pagination.js +8 -2
  30. package/dist/runtime/subscribe.d.ts +37 -0
  31. package/dist/runtime/subscribe.js +128 -0
  32. package/dist/runtime/token-source.d.ts +1 -1
  33. package/dist/runtime/token-source.js +1 -1
  34. package/dist/runtime/transports.d.ts +22 -1
  35. package/dist/runtime/transports.js +28 -2
  36. package/dist/vendor/proto/collection-v1.d.ts +3 -0
  37. package/dist/vendor/proto/collection-v1.js +7 -0
  38. package/dist/vendor/proto/gen/loams/auth/v1/auth_pb.d.ts +7 -2
  39. package/dist/vendor/proto/gen/loams/auth/v1/auth_pb.js +5 -1
  40. package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.d.ts +1610 -0
  41. package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.js +399 -0
  42. package/dist/vendor/proto/gen/loams/collection/v1/document_pb.d.ts +1054 -0
  43. package/dist/vendor/proto/gen/loams/collection/v1/document_pb.js +327 -0
  44. package/dist/vendor/proto/gen/loams/collection/v1/query_pb.d.ts +2101 -0
  45. package/dist/vendor/proto/gen/loams/collection/v1/query_pb.js +608 -0
  46. package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.d.ts +2299 -0
  47. package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.js +596 -0
  48. package/dist/vendor/proto/gen/loams/instance/v1/instance_pb.d.ts +23 -7
  49. package/dist/vendor/proto/gen/loams/instance/v1/instance_pb.js +20 -5
  50. package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.d.ts +399 -0
  51. package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.js +118 -0
  52. package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.d.ts +182 -0
  53. package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.js +72 -0
  54. package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.d.ts +688 -0
  55. package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.js +180 -0
  56. package/package.json +2 -2
@@ -0,0 +1,2299 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { FieldMask, NullValue, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { ErrorInfo } from "../../errors/v1/errors_pb.js";
4
+ import type { OperationSchema } from "../../operations/v1/operations_pb.js";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file loams/graph/v1/graph.proto.
8
+ */
9
+ export declare const file_loams_graph_v1_graph: GenFile;
10
+ /**
11
+ * One graph.
12
+ *
13
+ * @generated from message loams.graph.v1.Graph
14
+ */
15
+ export type Graph = Message<"loams.graph.v1.Graph"> & {
16
+ /**
17
+ * @generated from field: string namespace = 1;
18
+ */
19
+ namespace: string;
20
+ /**
21
+ * Unique in the namespace: `[a-z][a-z0-9_-]{0,62}`.
22
+ *
23
+ * @generated from field: string name = 2;
24
+ */
25
+ name: string;
26
+ /**
27
+ * `gr_<ULID>`, stable for the life of the graph.
28
+ *
29
+ * @generated from field: string id = 3;
30
+ */
31
+ id: string;
32
+ /**
33
+ * @generated from field: loams.graph.v1.GraphMode mode = 4;
34
+ */
35
+ mode: GraphMode;
36
+ /**
37
+ * The languages the graph accepts. Empty means `[GQL]`.
38
+ *
39
+ * @generated from field: repeated loams.graph.v1.QueryLanguage languages = 5;
40
+ */
41
+ languages: QueryLanguage[];
42
+ /**
43
+ * LINKED only: how collections map to labels and edge types (§07 §2.1).
44
+ *
45
+ * @generated from field: loams.graph.v1.GraphMapping mapping = 6;
46
+ */
47
+ mapping?: GraphMapping | undefined;
48
+ /**
49
+ * @generated from field: loams.graph.v1.GraphLimits limits = 7;
50
+ */
51
+ limits?: GraphLimits | undefined;
52
+ /**
53
+ * Followers kept beside the owner, for `eventual` and `at_least` reads.
54
+ *
55
+ * @generated from field: uint32 replicas = 8;
56
+ */
57
+ replicas: number;
58
+ /**
59
+ * @generated from field: loams.graph.v1.GraphState state = 9;
60
+ */
61
+ state: GraphState;
62
+ /**
63
+ * @generated from field: loams.graph.v1.GraphStats stats = 10;
64
+ */
65
+ stats?: GraphStats | undefined;
66
+ /**
67
+ * @generated from field: google.protobuf.Timestamp create_time = 11;
68
+ */
69
+ createTime?: Timestamp | undefined;
70
+ /**
71
+ * The catalog entry's version, for `UpdateGraphRequest.expected_version`.
72
+ *
73
+ * @generated from field: uint64 version = 12;
74
+ */
75
+ version: bigint;
76
+ };
77
+ /**
78
+ * Describes the message loams.graph.v1.Graph.
79
+ * Use `create(GraphSchema$)` to create a new message.
80
+ */
81
+ export declare const GraphSchema$: GenMessage<Graph>;
82
+ /**
83
+ * What a graph holds, as of its durable offset.
84
+ *
85
+ * @generated from message loams.graph.v1.GraphStats
86
+ */
87
+ export type GraphStats = Message<"loams.graph.v1.GraphStats"> & {
88
+ /**
89
+ * @generated from field: uint64 nodes = 1;
90
+ */
91
+ nodes: bigint;
92
+ /**
93
+ * @generated from field: uint64 edges = 2;
94
+ */
95
+ edges: bigint;
96
+ /**
97
+ * @generated from field: uint64 stored_bytes = 3;
98
+ */
99
+ storedBytes: bigint;
100
+ /**
101
+ * The last offset of the graph's implicit stream that is durable.
102
+ *
103
+ * @generated from field: uint64 durable_offset = 4;
104
+ */
105
+ durableOffset: bigint;
106
+ };
107
+ /**
108
+ * Describes the message loams.graph.v1.GraphStats.
109
+ * Use `create(GraphStatsSchema)` to create a new message.
110
+ */
111
+ export declare const GraphStatsSchema: GenMessage<GraphStats>;
112
+ /**
113
+ * Per-statement limits (§48 §13.1). Zero takes the server's default; a value
114
+ * above the server's maximum is capped to it.
115
+ *
116
+ * @generated from message loams.graph.v1.GraphLimits
117
+ */
118
+ export type GraphLimits = Message<"loams.graph.v1.GraphLimits"> & {
119
+ /**
120
+ * @generated from field: uint32 timeout_ms = 1;
121
+ */
122
+ timeoutMs: number;
123
+ /**
124
+ * @generated from field: uint32 max_rows = 2;
125
+ */
126
+ maxRows: number;
127
+ /**
128
+ * @generated from field: uint64 max_result_bytes = 3;
129
+ */
130
+ maxResultBytes: bigint;
131
+ /**
132
+ * @generated from field: uint64 memory_bytes = 4;
133
+ */
134
+ memoryBytes: bigint;
135
+ /**
136
+ * The longest variable-length path a statement may ask for (R0.8 (b)).
137
+ *
138
+ * @generated from field: uint32 max_path_hops = 5;
139
+ */
140
+ maxPathHops: number;
141
+ };
142
+ /**
143
+ * Describes the message loams.graph.v1.GraphLimits.
144
+ * Use `create(GraphLimitsSchema)` to create a new message.
145
+ */
146
+ export declare const GraphLimitsSchema: GenMessage<GraphLimits>;
147
+ /**
148
+ * How collections and streams feed a LINKED graph (design §07 §2.1, §48
149
+ * §10.2).
150
+ *
151
+ * @generated from message loams.graph.v1.GraphMapping
152
+ */
153
+ export type GraphMapping = Message<"loams.graph.v1.GraphMapping"> & {
154
+ /**
155
+ * @generated from field: repeated loams.graph.v1.VertexMapping vertices = 1;
156
+ */
157
+ vertices: VertexMapping[];
158
+ /**
159
+ * @generated from field: repeated loams.graph.v1.EdgeMapping edges = 2;
160
+ */
161
+ edges: EdgeMapping[];
162
+ /**
163
+ * `stream → graph` links (GR1 Task 19): records of Loams streams, JSON or
164
+ * CloudEvents, mapped to node and edge operations.
165
+ *
166
+ * @generated from field: repeated loams.graph.v1.StreamMapping streams = 3;
167
+ */
168
+ streams: StreamMapping[];
169
+ };
170
+ /**
171
+ * Describes the message loams.graph.v1.GraphMapping.
172
+ * Use `create(GraphMappingSchema)` to create a new message.
173
+ */
174
+ export declare const GraphMappingSchema: GenMessage<GraphMapping>;
175
+ /**
176
+ * One stream feeding a LINKED graph. Each record is a JSON object, or a
177
+ * CloudEvent (structured mode, or binary mode with `ce_*` headers and the
178
+ * data as the value). A record is matched against the rules in order; every
179
+ * rule that matches applies. A record no rule matches is skipped; one a
180
+ * matching rule cannot read (not JSON, a key field missing or not a key) is
181
+ * dead-lettered, and the link goes on.
182
+ *
183
+ * @generated from message loams.graph.v1.StreamMapping
184
+ */
185
+ export type StreamMapping = Message<"loams.graph.v1.StreamMapping"> & {
186
+ /**
187
+ * The stream's name in the graph's namespace.
188
+ *
189
+ * @generated from field: string stream = 1;
190
+ */
191
+ stream: string;
192
+ /**
193
+ * @generated from field: repeated loams.graph.v1.StreamRule rules = 2;
194
+ */
195
+ rules: StreamRule[];
196
+ };
197
+ /**
198
+ * Describes the message loams.graph.v1.StreamMapping.
199
+ * Use `create(StreamMappingSchema)` to create a new message.
200
+ */
201
+ export declare const StreamMappingSchema: GenMessage<StreamMapping>;
202
+ /**
203
+ * One rule of a stream mapping. The `*_field` values are dot-separated field
204
+ * selectors from the record's root (not file paths): for a CloudEvent, its
205
+ * attributes (`type`, `id`, `source`) and `data.<field>`.
206
+ *
207
+ * @generated from message loams.graph.v1.StreamRule
208
+ */
209
+ export type StreamRule = Message<"loams.graph.v1.StreamRule"> & {
210
+ /**
211
+ * The rule's name, unique among the mapping's edges and rules.
212
+ *
213
+ * @generated from field: string name = 1;
214
+ */
215
+ name: string;
216
+ /**
217
+ * Applies only to CloudEvents of this `type`; empty matches every record.
218
+ *
219
+ * @generated from field: string event_type = 2;
220
+ */
221
+ eventType: string;
222
+ /**
223
+ * @generated from field: loams.graph.v1.StreamOperation operation = 3;
224
+ */
225
+ operation: StreamOperation;
226
+ /**
227
+ * Node operations: the node's label and the field holding its key.
228
+ *
229
+ * @generated from field: string label = 4;
230
+ */
231
+ label: string;
232
+ /**
233
+ * @generated from field: string key_field = 5;
234
+ */
235
+ keyField: string;
236
+ /**
237
+ * Edge operations: the endpoints' labels and the fields holding their keys.
238
+ *
239
+ * @generated from field: string source_label = 6;
240
+ */
241
+ sourceLabel: string;
242
+ /**
243
+ * @generated from field: string source_key_field = 7;
244
+ */
245
+ sourceKeyField: string;
246
+ /**
247
+ * @generated from field: string destination_label = 8;
248
+ */
249
+ destinationLabel: string;
250
+ /**
251
+ * @generated from field: string destination_key_field = 9;
252
+ */
253
+ destinationKeyField: string;
254
+ /**
255
+ * Edge operations: the edge's type, or the field holding it.
256
+ *
257
+ * @generated from field: string edge_type = 10;
258
+ */
259
+ edgeType: string;
260
+ /**
261
+ * @generated from field: string edge_type_field = 11;
262
+ */
263
+ edgeTypeField: string;
264
+ /**
265
+ * Edge operations: the field holding the edge's own key, which identifies it
266
+ * among the stream's edges (so another rule of the stream can delete it).
267
+ * Empty: the edge is identified by its type and endpoints.
268
+ *
269
+ * @generated from field: string edge_key_field = 12;
270
+ */
271
+ edgeKeyField: string;
272
+ /**
273
+ * Upserts: the field holding the object whose fields are the properties. Empty:
274
+ * `data` for a CloudEvent, the whole record otherwise.
275
+ *
276
+ * @generated from field: string properties_field = 13;
277
+ */
278
+ propertiesField: string;
279
+ };
280
+ /**
281
+ * Describes the message loams.graph.v1.StreamRule.
282
+ * Use `create(StreamRuleSchema)` to create a new message.
283
+ */
284
+ export declare const StreamRuleSchema: GenMessage<StreamRule>;
285
+ /**
286
+ * `VERTEX <label> KEY (<key_field>) FROM COLLECTION <collection>`.
287
+ *
288
+ * @generated from message loams.graph.v1.VertexMapping
289
+ */
290
+ export type VertexMapping = Message<"loams.graph.v1.VertexMapping"> & {
291
+ /**
292
+ * @generated from field: string label = 1;
293
+ */
294
+ label: string;
295
+ /**
296
+ * @generated from field: string collection = 2;
297
+ */
298
+ collection: string;
299
+ /**
300
+ * @generated from field: string key_field = 3;
301
+ */
302
+ keyField: string;
303
+ };
304
+ /**
305
+ * Describes the message loams.graph.v1.VertexMapping.
306
+ * Use `create(VertexMappingSchema)` to create a new message.
307
+ */
308
+ export declare const VertexMappingSchema: GenMessage<VertexMapping>;
309
+ /**
310
+ * `EDGE <type> SOURCE <label>(<field>) DESTINATION <label>(<field>)
311
+ * [TYPE FROM (<type_field>)] FROM COLLECTION <collection>`.
312
+ *
313
+ * @generated from message loams.graph.v1.EdgeMapping
314
+ */
315
+ export type EdgeMapping = Message<"loams.graph.v1.EdgeMapping"> & {
316
+ /**
317
+ * @generated from field: string type = 1;
318
+ */
319
+ type: string;
320
+ /**
321
+ * @generated from field: string collection = 2;
322
+ */
323
+ collection: string;
324
+ /**
325
+ * @generated from field: string source_label = 3;
326
+ */
327
+ sourceLabel: string;
328
+ /**
329
+ * @generated from field: string source_field = 4;
330
+ */
331
+ sourceField: string;
332
+ /**
333
+ * @generated from field: string destination_label = 5;
334
+ */
335
+ destinationLabel: string;
336
+ /**
337
+ * @generated from field: string destination_field = 6;
338
+ */
339
+ destinationField: string;
340
+ /**
341
+ * When set, each row's edge type is this field's value.
342
+ *
343
+ * @generated from field: string type_field = 7;
344
+ */
345
+ typeField: string;
346
+ };
347
+ /**
348
+ * Describes the message loams.graph.v1.EdgeMapping.
349
+ * Use `create(EdgeMappingSchema)` to create a new message.
350
+ */
351
+ export declare const EdgeMappingSchema: GenMessage<EdgeMapping>;
352
+ /**
353
+ * @generated from message loams.graph.v1.GetEngineInfoRequest
354
+ */
355
+ export type GetEngineInfoRequest = Message<"loams.graph.v1.GetEngineInfoRequest"> & {};
356
+ /**
357
+ * Describes the message loams.graph.v1.GetEngineInfoRequest.
358
+ * Use `create(GetEngineInfoRequestSchema)` to create a new message.
359
+ */
360
+ export declare const GetEngineInfoRequestSchema: GenMessage<GetEngineInfoRequest>;
361
+ /**
362
+ * What this build's engine is.
363
+ *
364
+ * @generated from message loams.graph.v1.EngineInfo
365
+ */
366
+ export type EngineInfo = Message<"loams.graph.v1.EngineInfo"> & {
367
+ /**
368
+ * The Grafeo version linked into this binary.
369
+ *
370
+ * @generated from field: string engine_version = 1;
371
+ */
372
+ engineVersion: string;
373
+ /**
374
+ * The languages this build can parse.
375
+ *
376
+ * @generated from field: repeated loams.graph.v1.QueryLanguage languages = 2;
377
+ */
378
+ languages: QueryLanguage[];
379
+ /**
380
+ * The GQL profile the server conforms to, for example `gql-1`.
381
+ *
382
+ * @generated from field: string gql_profile = 3;
383
+ */
384
+ gqlProfile: string;
385
+ /**
386
+ * The server's per-statement maximums.
387
+ *
388
+ * @generated from field: loams.graph.v1.GraphLimits max_limits = 4;
389
+ */
390
+ maxLimits?: GraphLimits | undefined;
391
+ };
392
+ /**
393
+ * Describes the message loams.graph.v1.EngineInfo.
394
+ * Use `create(EngineInfoSchema)` to create a new message.
395
+ */
396
+ export declare const EngineInfoSchema: GenMessage<EngineInfo>;
397
+ /**
398
+ * @generated from message loams.graph.v1.CreateGraphRequest
399
+ */
400
+ export type CreateGraphRequest = Message<"loams.graph.v1.CreateGraphRequest"> & {
401
+ /**
402
+ * @generated from field: string namespace = 1;
403
+ */
404
+ namespace: string;
405
+ /**
406
+ * @generated from field: string name = 2;
407
+ */
408
+ name: string;
409
+ /**
410
+ * @generated from field: loams.graph.v1.GraphMode mode = 3;
411
+ */
412
+ mode: GraphMode;
413
+ /**
414
+ * @generated from field: repeated loams.graph.v1.QueryLanguage languages = 4;
415
+ */
416
+ languages: QueryLanguage[];
417
+ /**
418
+ * LINKED only.
419
+ *
420
+ * @generated from field: loams.graph.v1.GraphMapping mapping = 5;
421
+ */
422
+ mapping?: GraphMapping | undefined;
423
+ /**
424
+ * @generated from field: loams.graph.v1.GraphLimits limits = 6;
425
+ */
426
+ limits?: GraphLimits | undefined;
427
+ /**
428
+ * @generated from field: uint32 replicas = 7;
429
+ */
430
+ replicas: number;
431
+ /**
432
+ * @generated from field: string idempotency_key = 8;
433
+ */
434
+ idempotencyKey: string;
435
+ };
436
+ /**
437
+ * Describes the message loams.graph.v1.CreateGraphRequest.
438
+ * Use `create(CreateGraphRequestSchema)` to create a new message.
439
+ */
440
+ export declare const CreateGraphRequestSchema: GenMessage<CreateGraphRequest>;
441
+ /**
442
+ * @generated from message loams.graph.v1.GetGraphRequest
443
+ */
444
+ export type GetGraphRequest = Message<"loams.graph.v1.GetGraphRequest"> & {
445
+ /**
446
+ * @generated from field: string namespace = 1;
447
+ */
448
+ namespace: string;
449
+ /**
450
+ * @generated from field: string name = 2;
451
+ */
452
+ name: string;
453
+ };
454
+ /**
455
+ * Describes the message loams.graph.v1.GetGraphRequest.
456
+ * Use `create(GetGraphRequestSchema)` to create a new message.
457
+ */
458
+ export declare const GetGraphRequestSchema: GenMessage<GetGraphRequest>;
459
+ /**
460
+ * @generated from message loams.graph.v1.ListGraphsRequest
461
+ */
462
+ export type ListGraphsRequest = Message<"loams.graph.v1.ListGraphsRequest"> & {
463
+ /**
464
+ * Required: graphs are listed one namespace at a time (an empty namespace
465
+ * is `invalid_argument`). Listing across namespaces would be a separate
466
+ * RPC.
467
+ *
468
+ * @generated from field: string namespace = 1;
469
+ */
470
+ namespace: string;
471
+ /**
472
+ * AIP-158 page size; 0 takes the server's default.
473
+ *
474
+ * @generated from field: int32 page_size = 2;
475
+ */
476
+ pageSize: number;
477
+ /**
478
+ * The `next_page_token` of the previous page; absent starts at the first.
479
+ *
480
+ * @generated from field: string page_token = 3;
481
+ */
482
+ pageToken: string;
483
+ };
484
+ /**
485
+ * Describes the message loams.graph.v1.ListGraphsRequest.
486
+ * Use `create(ListGraphsRequestSchema)` to create a new message.
487
+ */
488
+ export declare const ListGraphsRequestSchema: GenMessage<ListGraphsRequest>;
489
+ /**
490
+ * @generated from message loams.graph.v1.ListGraphsResponse
491
+ */
492
+ export type ListGraphsResponse = Message<"loams.graph.v1.ListGraphsResponse"> & {
493
+ /**
494
+ * By name.
495
+ *
496
+ * @generated from field: repeated loams.graph.v1.Graph graphs = 1;
497
+ */
498
+ graphs: Graph[];
499
+ /**
500
+ * Absent on the last page.
501
+ *
502
+ * @generated from field: string next_page_token = 2;
503
+ */
504
+ nextPageToken: string;
505
+ };
506
+ /**
507
+ * Describes the message loams.graph.v1.ListGraphsResponse.
508
+ * Use `create(ListGraphsResponseSchema)` to create a new message.
509
+ */
510
+ export declare const ListGraphsResponseSchema: GenMessage<ListGraphsResponse>;
511
+ /**
512
+ * @generated from message loams.graph.v1.UpdateGraphRequest
513
+ */
514
+ export type UpdateGraphRequest = Message<"loams.graph.v1.UpdateGraphRequest"> & {
515
+ /**
516
+ * Named by `namespace` and `name`; the fields in `update_mask` are taken
517
+ * from it.
518
+ *
519
+ * @generated from field: loams.graph.v1.Graph graph = 1;
520
+ */
521
+ graph?: Graph | undefined;
522
+ /**
523
+ * `languages`, `limits` and `replicas` only.
524
+ *
525
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
526
+ */
527
+ updateMask?: FieldMask | undefined;
528
+ /**
529
+ * When set, the update applies only at this `Graph.version`; otherwise
530
+ * `ABORTED` with the reason `graph_catalog_version_mismatch`.
531
+ *
532
+ * @generated from field: optional uint64 expected_version = 3;
533
+ */
534
+ expectedVersion?: bigint | undefined;
535
+ /**
536
+ * @generated from field: string idempotency_key = 4;
537
+ */
538
+ idempotencyKey: string;
539
+ };
540
+ /**
541
+ * Describes the message loams.graph.v1.UpdateGraphRequest.
542
+ * Use `create(UpdateGraphRequestSchema)` to create a new message.
543
+ */
544
+ export declare const UpdateGraphRequestSchema: GenMessage<UpdateGraphRequest>;
545
+ /**
546
+ * @generated from message loams.graph.v1.DeleteGraphRequest
547
+ */
548
+ export type DeleteGraphRequest = Message<"loams.graph.v1.DeleteGraphRequest"> & {
549
+ /**
550
+ * @generated from field: string namespace = 1;
551
+ */
552
+ namespace: string;
553
+ /**
554
+ * @generated from field: string name = 2;
555
+ */
556
+ name: string;
557
+ /**
558
+ * @generated from field: string idempotency_key = 3;
559
+ */
560
+ idempotencyKey: string;
561
+ };
562
+ /**
563
+ * Describes the message loams.graph.v1.DeleteGraphRequest.
564
+ * Use `create(DeleteGraphRequestSchema)` to create a new message.
565
+ */
566
+ export declare const DeleteGraphRequestSchema: GenMessage<DeleteGraphRequest>;
567
+ /**
568
+ * @generated from message loams.graph.v1.GetSchemaRequest
569
+ */
570
+ export type GetSchemaRequest = Message<"loams.graph.v1.GetSchemaRequest"> & {
571
+ /**
572
+ * @generated from field: string namespace = 1;
573
+ */
574
+ namespace: string;
575
+ /**
576
+ * @generated from field: string name = 2;
577
+ */
578
+ name: string;
579
+ };
580
+ /**
581
+ * Describes the message loams.graph.v1.GetSchemaRequest.
582
+ * Use `create(GetSchemaRequestSchema)` to create a new message.
583
+ */
584
+ export declare const GetSchemaRequestSchema: GenMessage<GetSchemaRequest>;
585
+ /**
586
+ * A graph's shape.
587
+ *
588
+ * @generated from message loams.graph.v1.GraphSchema
589
+ */
590
+ export type GraphSchema = Message<"loams.graph.v1.GraphSchema"> & {
591
+ /**
592
+ * @generated from field: repeated loams.graph.v1.LabelInfo labels = 1;
593
+ */
594
+ labels: LabelInfo[];
595
+ /**
596
+ * @generated from field: repeated loams.graph.v1.EdgeTypeInfo edge_types = 2;
597
+ */
598
+ edgeTypes: EdgeTypeInfo[];
599
+ /**
600
+ * Every property key in use, sorted.
601
+ *
602
+ * @generated from field: repeated string property_keys = 3;
603
+ */
604
+ propertyKeys: string[];
605
+ /**
606
+ * @generated from field: repeated loams.graph.v1.IndexInfo indexes = 4;
607
+ */
608
+ indexes: IndexInfo[];
609
+ };
610
+ /**
611
+ * Describes the message loams.graph.v1.GraphSchema.
612
+ * Use `create(GraphSchemaSchema)` to create a new message.
613
+ */
614
+ export declare const GraphSchemaSchema: GenMessage<GraphSchema>;
615
+ /**
616
+ * @generated from message loams.graph.v1.LabelInfo
617
+ */
618
+ export type LabelInfo = Message<"loams.graph.v1.LabelInfo"> & {
619
+ /**
620
+ * @generated from field: string label = 1;
621
+ */
622
+ label: string;
623
+ /**
624
+ * @generated from field: uint64 count = 2;
625
+ */
626
+ count: bigint;
627
+ };
628
+ /**
629
+ * Describes the message loams.graph.v1.LabelInfo.
630
+ * Use `create(LabelInfoSchema)` to create a new message.
631
+ */
632
+ export declare const LabelInfoSchema: GenMessage<LabelInfo>;
633
+ /**
634
+ * @generated from message loams.graph.v1.EdgeTypeInfo
635
+ */
636
+ export type EdgeTypeInfo = Message<"loams.graph.v1.EdgeTypeInfo"> & {
637
+ /**
638
+ * @generated from field: string type = 1;
639
+ */
640
+ type: string;
641
+ /**
642
+ * @generated from field: uint64 count = 2;
643
+ */
644
+ count: bigint;
645
+ };
646
+ /**
647
+ * Describes the message loams.graph.v1.EdgeTypeInfo.
648
+ * Use `create(EdgeTypeInfoSchema)` to create a new message.
649
+ */
650
+ export declare const EdgeTypeInfoSchema: GenMessage<EdgeTypeInfo>;
651
+ /**
652
+ * @generated from message loams.graph.v1.IndexInfo
653
+ */
654
+ export type IndexInfo = Message<"loams.graph.v1.IndexInfo"> & {
655
+ /**
656
+ * @generated from field: string name = 1;
657
+ */
658
+ name: string;
659
+ /**
660
+ * The label or edge type the index is on.
661
+ *
662
+ * @generated from field: string target = 2;
663
+ */
664
+ target: string;
665
+ /**
666
+ * @generated from field: repeated string properties = 3;
667
+ */
668
+ properties: string[];
669
+ /**
670
+ * The engine's own index kind, for example `hash` or `btree`.
671
+ *
672
+ * @generated from field: string kind = 4;
673
+ */
674
+ kind: string;
675
+ };
676
+ /**
677
+ * Describes the message loams.graph.v1.IndexInfo.
678
+ * Use `create(IndexInfoSchema)` to create a new message.
679
+ */
680
+ export declare const IndexInfoSchema: GenMessage<IndexInfo>;
681
+ /**
682
+ * @generated from message loams.graph.v1.RestoreGraphRequest
683
+ */
684
+ export type RestoreGraphRequest = Message<"loams.graph.v1.RestoreGraphRequest"> & {
685
+ /**
686
+ * @generated from field: string namespace = 1;
687
+ */
688
+ namespace: string;
689
+ /**
690
+ * The graph to restore from.
691
+ *
692
+ * @generated from field: string name = 2;
693
+ */
694
+ name: string;
695
+ /**
696
+ * The new graph the restore creates.
697
+ *
698
+ * @generated from field: string target_name = 3;
699
+ */
700
+ targetName: string;
701
+ /**
702
+ * The point to restore to. Neither set means the latest durable state.
703
+ *
704
+ * @generated from oneof loams.graph.v1.RestoreGraphRequest.point
705
+ */
706
+ point: {
707
+ /**
708
+ * @generated from field: string consistency_token = 4;
709
+ */
710
+ value: string;
711
+ case: "consistencyToken";
712
+ } | {
713
+ /**
714
+ * @generated from field: google.protobuf.Timestamp time = 5;
715
+ */
716
+ value: Timestamp;
717
+ case: "time";
718
+ } | {
719
+ case: undefined;
720
+ value?: undefined;
721
+ };
722
+ /**
723
+ * @generated from field: string idempotency_key = 6;
724
+ */
725
+ idempotencyKey: string;
726
+ };
727
+ /**
728
+ * Describes the message loams.graph.v1.RestoreGraphRequest.
729
+ * Use `create(RestoreGraphRequestSchema)` to create a new message.
730
+ */
731
+ export declare const RestoreGraphRequestSchema: GenMessage<RestoreGraphRequest>;
732
+ /**
733
+ * @generated from message loams.graph.v1.ExportGraphRequest
734
+ */
735
+ export type ExportGraphRequest = Message<"loams.graph.v1.ExportGraphRequest"> & {
736
+ /**
737
+ * @generated from field: string namespace = 1;
738
+ */
739
+ namespace: string;
740
+ /**
741
+ * @generated from field: string name = 2;
742
+ */
743
+ name: string;
744
+ /**
745
+ * An object key prefix under the namespace's export prefix, never a
746
+ * filesystem path or a URL. Keys outside it are refused.
747
+ *
748
+ * @generated from field: string object_prefix = 3;
749
+ */
750
+ objectPrefix: string;
751
+ /**
752
+ * Parquet only in v1.
753
+ *
754
+ * @generated from field: loams.graph.v1.DataFormat format = 4;
755
+ */
756
+ format: DataFormat;
757
+ /**
758
+ * @generated from field: string idempotency_key = 5;
759
+ */
760
+ idempotencyKey: string;
761
+ };
762
+ /**
763
+ * Describes the message loams.graph.v1.ExportGraphRequest.
764
+ * Use `create(ExportGraphRequestSchema)` to create a new message.
765
+ */
766
+ export declare const ExportGraphRequestSchema: GenMessage<ExportGraphRequest>;
767
+ /**
768
+ * @generated from message loams.graph.v1.ImportGraphRequest
769
+ */
770
+ export type ImportGraphRequest = Message<"loams.graph.v1.ImportGraphRequest"> & {
771
+ /**
772
+ * @generated from field: string namespace = 1;
773
+ */
774
+ namespace: string;
775
+ /**
776
+ * @generated from field: string name = 2;
777
+ */
778
+ name: string;
779
+ /**
780
+ * An object key under the namespace's import prefix, never a filesystem
781
+ * path or a URL. Keys outside it are refused.
782
+ *
783
+ * @generated from field: string object_key = 3;
784
+ */
785
+ objectKey: string;
786
+ /**
787
+ * @generated from field: loams.graph.v1.DataFormat format = 4;
788
+ */
789
+ format: DataFormat;
790
+ /**
791
+ * @generated from field: string idempotency_key = 5;
792
+ */
793
+ idempotencyKey: string;
794
+ };
795
+ /**
796
+ * Describes the message loams.graph.v1.ImportGraphRequest.
797
+ * Use `create(ImportGraphRequestSchema)` to create a new message.
798
+ */
799
+ export declare const ImportGraphRequestSchema: GenMessage<ImportGraphRequest>;
800
+ /**
801
+ * How fresh a read must be (§48 §7.2).
802
+ *
803
+ * @generated from message loams.graph.v1.Consistency
804
+ */
805
+ export type Consistency = Message<"loams.graph.v1.Consistency"> & {
806
+ /**
807
+ * @generated from oneof loams.graph.v1.Consistency.level
808
+ */
809
+ level: {
810
+ /**
811
+ * Read on the owner at its durable epoch (the default).
812
+ *
813
+ * @generated from field: loams.graph.v1.Strong strong = 1;
814
+ */
815
+ value: Strong;
816
+ case: "strong";
817
+ } | {
818
+ /**
819
+ * Read whatever a replica has applied.
820
+ *
821
+ * @generated from field: loams.graph.v1.Eventual eventual = 2;
822
+ */
823
+ value: Eventual;
824
+ case: "eventual";
825
+ } | {
826
+ /**
827
+ * Wait until a replica has applied this token, then read.
828
+ *
829
+ * @generated from field: string at_least = 3;
830
+ */
831
+ value: string;
832
+ case: "atLeast";
833
+ } | {
834
+ case: undefined;
835
+ value?: undefined;
836
+ };
837
+ };
838
+ /**
839
+ * Describes the message loams.graph.v1.Consistency.
840
+ * Use `create(ConsistencySchema)` to create a new message.
841
+ */
842
+ export declare const ConsistencySchema: GenMessage<Consistency>;
843
+ /**
844
+ * @generated from message loams.graph.v1.Strong
845
+ */
846
+ export type Strong = Message<"loams.graph.v1.Strong"> & {};
847
+ /**
848
+ * Describes the message loams.graph.v1.Strong.
849
+ * Use `create(StrongSchema)` to create a new message.
850
+ */
851
+ export declare const StrongSchema: GenMessage<Strong>;
852
+ /**
853
+ * @generated from message loams.graph.v1.Eventual
854
+ */
855
+ export type Eventual = Message<"loams.graph.v1.Eventual"> & {};
856
+ /**
857
+ * Describes the message loams.graph.v1.Eventual.
858
+ * Use `create(EventualSchema)` to create a new message.
859
+ */
860
+ export declare const EventualSchema: GenMessage<Eventual>;
861
+ /**
862
+ * @generated from message loams.graph.v1.ExecuteRequest
863
+ */
864
+ export type ExecuteRequest = Message<"loams.graph.v1.ExecuteRequest"> & {
865
+ /**
866
+ * @generated from field: string namespace = 1;
867
+ */
868
+ namespace: string;
869
+ /**
870
+ * @generated from field: string graph = 2;
871
+ */
872
+ graph: string;
873
+ /**
874
+ * Sent to the engine unchanged.
875
+ *
876
+ * @generated from field: string statement = 3;
877
+ */
878
+ statement: string;
879
+ /**
880
+ * @generated from field: loams.graph.v1.QueryLanguage language = 4;
881
+ */
882
+ language: QueryLanguage;
883
+ /**
884
+ * Bound as `$name`. A value is never interpolated into the statement.
885
+ *
886
+ * @generated from field: map<string, loams.graph.v1.Value> parameters = 5;
887
+ */
888
+ parameters: {
889
+ [key: string]: Value;
890
+ };
891
+ /**
892
+ * An assertion: a statement that writes is refused (`graph_read_only`).
893
+ *
894
+ * @generated from field: bool read_only = 6;
895
+ */
896
+ readOnly: boolean;
897
+ /**
898
+ * @generated from field: loams.graph.v1.Consistency consistency = 7;
899
+ */
900
+ consistency?: Consistency | undefined;
901
+ /**
902
+ * Zero takes the graph's limit; capped by the server's maximum.
903
+ *
904
+ * @generated from field: uint32 timeout_ms = 8;
905
+ */
906
+ timeoutMs: number;
907
+ /**
908
+ * @generated from field: uint32 max_rows = 9;
909
+ */
910
+ maxRows: number;
911
+ /**
912
+ * Answers an earlier run of this key instead of running again (24 hours).
913
+ * Optional in preview; required when the statement writes from GR1 Task 24
914
+ * (R11.9).
915
+ *
916
+ * @generated from field: string idempotency_key = 10;
917
+ */
918
+ idempotencyKey: string;
919
+ };
920
+ /**
921
+ * Describes the message loams.graph.v1.ExecuteRequest.
922
+ * Use `create(ExecuteRequestSchema)` to create a new message.
923
+ */
924
+ export declare const ExecuteRequestSchema: GenMessage<ExecuteRequest>;
925
+ /**
926
+ * @generated from message loams.graph.v1.ExecuteStreamRequest
927
+ */
928
+ export type ExecuteStreamRequest = Message<"loams.graph.v1.ExecuteStreamRequest"> & {
929
+ /**
930
+ * The statement, as `Execute` takes it. `max_rows` caps the whole stream.
931
+ *
932
+ * @generated from field: loams.graph.v1.ExecuteRequest request = 1;
933
+ */
934
+ request?: ExecuteRequest | undefined;
935
+ /**
936
+ * Rows per chunk; zero takes the server's default.
937
+ *
938
+ * @generated from field: uint32 chunk_rows = 2;
939
+ */
940
+ chunkRows: number;
941
+ };
942
+ /**
943
+ * Describes the message loams.graph.v1.ExecuteStreamRequest.
944
+ * Use `create(ExecuteStreamRequestSchema)` to create a new message.
945
+ */
946
+ export declare const ExecuteStreamRequestSchema: GenMessage<ExecuteStreamRequest>;
947
+ /**
948
+ * @generated from message loams.graph.v1.ExecuteResponse
949
+ */
950
+ export type ExecuteResponse = Message<"loams.graph.v1.ExecuteResponse"> & {
951
+ /**
952
+ * @generated from field: loams.graph.v1.RowSet rows = 1;
953
+ */
954
+ rows?: RowSet | undefined;
955
+ /**
956
+ * More rows existed than `max_rows` allowed. `ExecuteStream` returns more
957
+ * rows than one unary answer may carry (its own `max_rows` caps the whole
958
+ * stream).
959
+ *
960
+ * @generated from field: bool truncated = 2;
961
+ */
962
+ truncated: boolean;
963
+ /**
964
+ * @generated from field: loams.graph.v1.Counters counters = 3;
965
+ */
966
+ counters?: Counters | undefined;
967
+ /**
968
+ * Read at least this state on a later request (`Consistency.at_least`).
969
+ *
970
+ * @generated from field: string consistency_token = 4;
971
+ */
972
+ consistencyToken: string;
973
+ /**
974
+ * The engine epoch the write committed at; 0 for a read.
975
+ *
976
+ * @generated from field: uint64 commit_epoch = 5;
977
+ */
978
+ commitEpoch: bigint;
979
+ /**
980
+ * @generated from field: uint64 elapsed_nanos = 6;
981
+ */
982
+ elapsedNanos: bigint;
983
+ /**
984
+ * GQLSTATUS warnings and notes, for example `01xxx`.
985
+ *
986
+ * @generated from field: repeated loams.graph.v1.Notification notifications = 7;
987
+ */
988
+ notifications: Notification[];
989
+ };
990
+ /**
991
+ * Describes the message loams.graph.v1.ExecuteResponse.
992
+ * Use `create(ExecuteResponseSchema)` to create a new message.
993
+ */
994
+ export declare const ExecuteResponseSchema: GenMessage<ExecuteResponse>;
995
+ /**
996
+ * What a write changed, counted exactly from its change set.
997
+ *
998
+ * @generated from message loams.graph.v1.Counters
999
+ */
1000
+ export type Counters = Message<"loams.graph.v1.Counters"> & {
1001
+ /**
1002
+ * @generated from field: uint64 nodes_created = 1;
1003
+ */
1004
+ nodesCreated: bigint;
1005
+ /**
1006
+ * @generated from field: uint64 nodes_deleted = 2;
1007
+ */
1008
+ nodesDeleted: bigint;
1009
+ /**
1010
+ * @generated from field: uint64 relationships_created = 3;
1011
+ */
1012
+ relationshipsCreated: bigint;
1013
+ /**
1014
+ * @generated from field: uint64 relationships_deleted = 4;
1015
+ */
1016
+ relationshipsDeleted: bigint;
1017
+ /**
1018
+ * @generated from field: uint64 properties_set = 5;
1019
+ */
1020
+ propertiesSet: bigint;
1021
+ /**
1022
+ * @generated from field: uint64 labels_added = 6;
1023
+ */
1024
+ labelsAdded: bigint;
1025
+ /**
1026
+ * @generated from field: uint64 labels_removed = 7;
1027
+ */
1028
+ labelsRemoved: bigint;
1029
+ };
1030
+ /**
1031
+ * Describes the message loams.graph.v1.Counters.
1032
+ * Use `create(CountersSchema)` to create a new message.
1033
+ */
1034
+ export declare const CountersSchema: GenMessage<Counters>;
1035
+ /**
1036
+ * A GQLSTATUS that is not an error.
1037
+ *
1038
+ * @generated from message loams.graph.v1.Notification
1039
+ */
1040
+ export type Notification = Message<"loams.graph.v1.Notification"> & {
1041
+ /**
1042
+ * The five-character GQLSTATUS code.
1043
+ *
1044
+ * @generated from field: string gqlstatus = 1;
1045
+ */
1046
+ gqlstatus: string;
1047
+ /**
1048
+ * @generated from field: string message = 2;
1049
+ */
1050
+ message: string;
1051
+ };
1052
+ /**
1053
+ * Describes the message loams.graph.v1.Notification.
1054
+ * Use `create(NotificationSchema)` to create a new message.
1055
+ */
1056
+ export declare const NotificationSchema: GenMessage<Notification>;
1057
+ /**
1058
+ * A positional result: a graph result can repeat a key, so rows are not
1059
+ * maps.
1060
+ *
1061
+ * @generated from message loams.graph.v1.RowSet
1062
+ */
1063
+ export type RowSet = Message<"loams.graph.v1.RowSet"> & {
1064
+ /**
1065
+ * @generated from field: repeated string columns = 1;
1066
+ */
1067
+ columns: string[];
1068
+ /**
1069
+ * The engine's type name per column, for example `INT64` or `NODE`.
1070
+ *
1071
+ * @generated from field: repeated string column_types = 2;
1072
+ */
1073
+ columnTypes: string[];
1074
+ /**
1075
+ * @generated from field: repeated loams.graph.v1.Row rows = 3;
1076
+ */
1077
+ rows: Row[];
1078
+ };
1079
+ /**
1080
+ * Describes the message loams.graph.v1.RowSet.
1081
+ * Use `create(RowSetSchema)` to create a new message.
1082
+ */
1083
+ export declare const RowSetSchema: GenMessage<RowSet>;
1084
+ /**
1085
+ * @generated from message loams.graph.v1.Row
1086
+ */
1087
+ export type Row = Message<"loams.graph.v1.Row"> & {
1088
+ /**
1089
+ * One value per column.
1090
+ *
1091
+ * @generated from field: repeated loams.graph.v1.Value values = 1;
1092
+ */
1093
+ values: Value[];
1094
+ };
1095
+ /**
1096
+ * Describes the message loams.graph.v1.Row.
1097
+ * Use `create(RowSchema)` to create a new message.
1098
+ */
1099
+ export declare const RowSchema: GenMessage<Row>;
1100
+ /**
1101
+ * @generated from message loams.graph.v1.ExecuteBatchRequest
1102
+ */
1103
+ export type ExecuteBatchRequest = Message<"loams.graph.v1.ExecuteBatchRequest"> & {
1104
+ /**
1105
+ * @generated from field: string namespace = 1;
1106
+ */
1107
+ namespace: string;
1108
+ /**
1109
+ * @generated from field: string graph = 2;
1110
+ */
1111
+ graph: string;
1112
+ /**
1113
+ * @generated from field: repeated loams.graph.v1.Statement statements = 3;
1114
+ */
1115
+ statements: Statement[];
1116
+ /**
1117
+ * One transaction for every statement, or one each.
1118
+ *
1119
+ * @generated from field: bool atomic = 4;
1120
+ */
1121
+ atomic: boolean;
1122
+ /**
1123
+ * The language of a statement that names none.
1124
+ *
1125
+ * @generated from field: loams.graph.v1.QueryLanguage language = 5;
1126
+ */
1127
+ language: QueryLanguage;
1128
+ /**
1129
+ * @generated from field: loams.graph.v1.Isolation isolation = 6;
1130
+ */
1131
+ isolation: Isolation;
1132
+ /**
1133
+ * When set, the batch runs only if the graph's last durable offset is
1134
+ * this one (`graph_version_mismatch`).
1135
+ *
1136
+ * @generated from field: optional uint64 if_version = 7;
1137
+ */
1138
+ ifVersion?: bigint | undefined;
1139
+ /**
1140
+ * @generated from field: uint32 timeout_ms = 8;
1141
+ */
1142
+ timeoutMs: number;
1143
+ /**
1144
+ * @generated from field: string idempotency_key = 9;
1145
+ */
1146
+ idempotencyKey: string;
1147
+ };
1148
+ /**
1149
+ * Describes the message loams.graph.v1.ExecuteBatchRequest.
1150
+ * Use `create(ExecuteBatchRequestSchema)` to create a new message.
1151
+ */
1152
+ export declare const ExecuteBatchRequestSchema: GenMessage<ExecuteBatchRequest>;
1153
+ /**
1154
+ * @generated from message loams.graph.v1.Statement
1155
+ */
1156
+ export type Statement = Message<"loams.graph.v1.Statement"> & {
1157
+ /**
1158
+ * @generated from field: string statement = 1;
1159
+ */
1160
+ statement: string;
1161
+ /**
1162
+ * @generated from field: map<string, loams.graph.v1.Value> parameters = 2;
1163
+ */
1164
+ parameters: {
1165
+ [key: string]: Value;
1166
+ };
1167
+ /**
1168
+ * Overrides the batch's language for this statement.
1169
+ *
1170
+ * @generated from field: loams.graph.v1.QueryLanguage language = 3;
1171
+ */
1172
+ language: QueryLanguage;
1173
+ };
1174
+ /**
1175
+ * Describes the message loams.graph.v1.Statement.
1176
+ * Use `create(StatementSchema)` to create a new message.
1177
+ */
1178
+ export declare const StatementSchema: GenMessage<Statement>;
1179
+ /**
1180
+ * The answer to a batch.
1181
+ *
1182
+ * Atomic: every statement ran in one transaction. A failure of any statement
1183
+ * fails the RPC itself and nothing is written; on success `committed` is set,
1184
+ * `results` has one entry per statement and `commit_epoch` is the
1185
+ * transaction's.
1186
+ *
1187
+ * Non-atomic: each statement is its own transaction, run in order. The batch
1188
+ * stops at the first statement that fails, and the RPC still succeeds:
1189
+ * `results` holds the statements before it (all committed),
1190
+ * `committed_through` is their count, and `error` describes the failed one.
1191
+ * Statements after it did not run. A batch with no `error` ran every
1192
+ * statement.
1193
+ *
1194
+ * @generated from message loams.graph.v1.ExecuteBatchResponse
1195
+ */
1196
+ export type ExecuteBatchResponse = Message<"loams.graph.v1.ExecuteBatchResponse"> & {
1197
+ /**
1198
+ * One per statement that committed, in order.
1199
+ *
1200
+ * @generated from field: repeated loams.graph.v1.ExecuteResponse results = 1;
1201
+ */
1202
+ results: ExecuteResponse[];
1203
+ /**
1204
+ * Atomic: whether the transaction committed.
1205
+ *
1206
+ * @generated from field: bool committed = 2;
1207
+ */
1208
+ committed: boolean;
1209
+ /**
1210
+ * How many statements, from the first, committed.
1211
+ *
1212
+ * @generated from field: uint32 committed_through = 3;
1213
+ */
1214
+ committedThrough: number;
1215
+ /**
1216
+ * @generated from field: string consistency_token = 4;
1217
+ */
1218
+ consistencyToken: string;
1219
+ /**
1220
+ * Non-atomic only: the statement that failed and stopped the batch.
1221
+ *
1222
+ * @generated from field: loams.graph.v1.StatementError error = 5;
1223
+ */
1224
+ error?: StatementError | undefined;
1225
+ /**
1226
+ * Atomic: the engine epoch the transaction committed at.
1227
+ *
1228
+ * @generated from field: uint64 commit_epoch = 6;
1229
+ */
1230
+ commitEpoch: bigint;
1231
+ };
1232
+ /**
1233
+ * Describes the message loams.graph.v1.ExecuteBatchResponse.
1234
+ * Use `create(ExecuteBatchResponseSchema)` to create a new message.
1235
+ */
1236
+ export declare const ExecuteBatchResponseSchema: GenMessage<ExecuteBatchResponse>;
1237
+ /**
1238
+ * Why one statement of a non-atomic batch failed.
1239
+ *
1240
+ * @generated from message loams.graph.v1.StatementError
1241
+ */
1242
+ export type StatementError = Message<"loams.graph.v1.StatementError"> & {
1243
+ /**
1244
+ * The statement's position in `ExecuteBatchRequest.statements`.
1245
+ *
1246
+ * @generated from field: uint32 index = 1;
1247
+ */
1248
+ index: number;
1249
+ /**
1250
+ * The Connect code the statement would have failed `Execute` with, in
1251
+ * its wire spelling (`invalid_argument`).
1252
+ *
1253
+ * @generated from field: string code = 2;
1254
+ */
1255
+ code: string;
1256
+ /**
1257
+ * @generated from field: string message = 3;
1258
+ */
1259
+ message: string;
1260
+ /**
1261
+ * @generated from field: loams.errors.v1.ErrorInfo info = 4;
1262
+ */
1263
+ info?: ErrorInfo | undefined;
1264
+ };
1265
+ /**
1266
+ * Describes the message loams.graph.v1.StatementError.
1267
+ * Use `create(StatementErrorSchema)` to create a new message.
1268
+ */
1269
+ export declare const StatementErrorSchema: GenMessage<StatementError>;
1270
+ /**
1271
+ * One piece of a streamed result. The first chunk carries the columns; the
1272
+ * last (`last` set) carries what `ExecuteResponse` carries besides rows:
1273
+ * counters, the token, the commit epoch, `truncated` and notifications.
1274
+ *
1275
+ * @generated from message loams.graph.v1.ResultChunk
1276
+ */
1277
+ export type ResultChunk = Message<"loams.graph.v1.ResultChunk"> & {
1278
+ /**
1279
+ * @generated from field: repeated string columns = 1;
1280
+ */
1281
+ columns: string[];
1282
+ /**
1283
+ * @generated from field: repeated string column_types = 2;
1284
+ */
1285
+ columnTypes: string[];
1286
+ /**
1287
+ * @generated from field: repeated loams.graph.v1.Row rows = 3;
1288
+ */
1289
+ rows: Row[];
1290
+ /**
1291
+ * @generated from field: bool last = 4;
1292
+ */
1293
+ last: boolean;
1294
+ /**
1295
+ * @generated from field: loams.graph.v1.Counters counters = 5;
1296
+ */
1297
+ counters?: Counters | undefined;
1298
+ /**
1299
+ * @generated from field: string consistency_token = 6;
1300
+ */
1301
+ consistencyToken: string;
1302
+ /**
1303
+ * @generated from field: uint64 elapsed_nanos = 7;
1304
+ */
1305
+ elapsedNanos: bigint;
1306
+ /**
1307
+ * More rows existed than `max_rows` allowed.
1308
+ *
1309
+ * @generated from field: bool truncated = 8;
1310
+ */
1311
+ truncated: boolean;
1312
+ /**
1313
+ * @generated from field: uint64 commit_epoch = 9;
1314
+ */
1315
+ commitEpoch: bigint;
1316
+ /**
1317
+ * @generated from field: repeated loams.graph.v1.Notification notifications = 10;
1318
+ */
1319
+ notifications: Notification[];
1320
+ };
1321
+ /**
1322
+ * Describes the message loams.graph.v1.ResultChunk.
1323
+ * Use `create(ResultChunkSchema)` to create a new message.
1324
+ */
1325
+ export declare const ResultChunkSchema: GenMessage<ResultChunk>;
1326
+ /**
1327
+ * @generated from message loams.graph.v1.ExplainRequest
1328
+ */
1329
+ export type ExplainRequest = Message<"loams.graph.v1.ExplainRequest"> & {
1330
+ /**
1331
+ * @generated from field: string namespace = 1;
1332
+ */
1333
+ namespace: string;
1334
+ /**
1335
+ * @generated from field: string graph = 2;
1336
+ */
1337
+ graph: string;
1338
+ /**
1339
+ * @generated from field: string statement = 3;
1340
+ */
1341
+ statement: string;
1342
+ /**
1343
+ * @generated from field: loams.graph.v1.QueryLanguage language = 4;
1344
+ */
1345
+ language: QueryLanguage;
1346
+ /**
1347
+ * @generated from field: map<string, loams.graph.v1.Value> parameters = 5;
1348
+ */
1349
+ parameters: {
1350
+ [key: string]: Value;
1351
+ };
1352
+ /**
1353
+ * PROFILE: run the statement and report what each operator did. A
1354
+ * PROFILE runs the statement, so a statement that writes is refused with
1355
+ * `graph_read_only`; use EXPLAIN for a write's plan.
1356
+ *
1357
+ * @generated from field: bool profile = 6;
1358
+ */
1359
+ profile: boolean;
1360
+ /**
1361
+ * PROFILE only, as `ExecuteRequest.timeout_ms`.
1362
+ *
1363
+ * @generated from field: uint32 timeout_ms = 7;
1364
+ */
1365
+ timeoutMs: number;
1366
+ /**
1367
+ * PROFILE only, as `ExecuteRequest.consistency`.
1368
+ *
1369
+ * @generated from field: loams.graph.v1.Consistency consistency = 8;
1370
+ */
1371
+ consistency?: Consistency | undefined;
1372
+ };
1373
+ /**
1374
+ * Describes the message loams.graph.v1.ExplainRequest.
1375
+ * Use `create(ExplainRequestSchema)` to create a new message.
1376
+ */
1377
+ export declare const ExplainRequestSchema: GenMessage<ExplainRequest>;
1378
+ /**
1379
+ * A statement's plan, as a tree of operators.
1380
+ *
1381
+ * @generated from message loams.graph.v1.Plan
1382
+ */
1383
+ export type Plan = Message<"loams.graph.v1.Plan"> & {
1384
+ /**
1385
+ * @generated from field: loams.graph.v1.PlanOperator root = 1;
1386
+ */
1387
+ root?: PlanOperator | undefined;
1388
+ /**
1389
+ * The engine's own rendering of the plan.
1390
+ *
1391
+ * @generated from field: string text = 2;
1392
+ */
1393
+ text: string;
1394
+ };
1395
+ /**
1396
+ * Describes the message loams.graph.v1.Plan.
1397
+ * Use `create(PlanSchema)` to create a new message.
1398
+ */
1399
+ export declare const PlanSchema: GenMessage<Plan>;
1400
+ /**
1401
+ * @generated from message loams.graph.v1.PlanOperator
1402
+ */
1403
+ export type PlanOperator = Message<"loams.graph.v1.PlanOperator"> & {
1404
+ /**
1405
+ * @generated from field: string name = 1;
1406
+ */
1407
+ name: string;
1408
+ /**
1409
+ * Operator details, for example the label scanned.
1410
+ *
1411
+ * @generated from field: map<string, string> details = 2;
1412
+ */
1413
+ details: {
1414
+ [key: string]: string;
1415
+ };
1416
+ /**
1417
+ * @generated from field: repeated loams.graph.v1.PlanOperator children = 3;
1418
+ */
1419
+ children: PlanOperator[];
1420
+ /**
1421
+ * PROFILE only.
1422
+ *
1423
+ * @generated from field: uint64 rows = 4;
1424
+ */
1425
+ rows: bigint;
1426
+ /**
1427
+ * @generated from field: uint64 elapsed_nanos = 5;
1428
+ */
1429
+ elapsedNanos: bigint;
1430
+ };
1431
+ /**
1432
+ * Describes the message loams.graph.v1.PlanOperator.
1433
+ * Use `create(PlanOperatorSchema)` to create a new message.
1434
+ */
1435
+ export declare const PlanOperatorSchema: GenMessage<PlanOperator>;
1436
+ /**
1437
+ * One GQL value, typed (§48 §8.2). `crates/loams-graph/src/value.rs` maps it
1438
+ * to and from the engine's value without loss.
1439
+ *
1440
+ * @generated from message loams.graph.v1.Value
1441
+ */
1442
+ export type Value = Message<"loams.graph.v1.Value"> & {
1443
+ /**
1444
+ * @generated from oneof loams.graph.v1.Value.kind
1445
+ */
1446
+ kind: {
1447
+ /**
1448
+ * @generated from field: google.protobuf.NullValue null = 1;
1449
+ */
1450
+ value: NullValue;
1451
+ case: "null";
1452
+ } | {
1453
+ /**
1454
+ * @generated from field: bool boolean = 2;
1455
+ */
1456
+ value: boolean;
1457
+ case: "boolean";
1458
+ } | {
1459
+ /**
1460
+ * @generated from field: int64 int64 = 3;
1461
+ */
1462
+ value: bigint;
1463
+ case: "int64";
1464
+ } | {
1465
+ /**
1466
+ * Grafeo has no unsigned integer: a value up to 2^63-1 is stored as
1467
+ * INT64 and answered as `int64`; a larger one is refused.
1468
+ *
1469
+ * @generated from field: uint64 uint64 = 4;
1470
+ */
1471
+ value: bigint;
1472
+ case: "uint64";
1473
+ } | {
1474
+ /**
1475
+ * @generated from field: double float64 = 5;
1476
+ */
1477
+ value: number;
1478
+ case: "float64";
1479
+ } | {
1480
+ /**
1481
+ * @generated from field: string string = 6;
1482
+ */
1483
+ value: string;
1484
+ case: "string";
1485
+ } | {
1486
+ /**
1487
+ * @generated from field: bytes bytes = 7;
1488
+ */
1489
+ value: Uint8Array;
1490
+ case: "bytes";
1491
+ } | {
1492
+ /**
1493
+ * Grafeo has no decimal type; a decimal parameter is refused.
1494
+ *
1495
+ * @generated from field: loams.graph.v1.Decimal decimal = 8;
1496
+ */
1497
+ value: Decimal;
1498
+ case: "decimal";
1499
+ } | {
1500
+ /**
1501
+ * @generated from field: loams.graph.v1.Date date = 9;
1502
+ */
1503
+ value: Date;
1504
+ case: "date";
1505
+ } | {
1506
+ /**
1507
+ * @generated from field: loams.graph.v1.LocalTime local_time = 10;
1508
+ */
1509
+ value: LocalTime;
1510
+ case: "localTime";
1511
+ } | {
1512
+ /**
1513
+ * @generated from field: loams.graph.v1.ZonedTime zoned_time = 11;
1514
+ */
1515
+ value: ZonedTime;
1516
+ case: "zonedTime";
1517
+ } | {
1518
+ /**
1519
+ * @generated from field: loams.graph.v1.LocalDateTime local_datetime = 12;
1520
+ */
1521
+ value: LocalDateTime;
1522
+ case: "localDatetime";
1523
+ } | {
1524
+ /**
1525
+ * @generated from field: loams.graph.v1.ZonedDateTime zoned_datetime = 13;
1526
+ */
1527
+ value: ZonedDateTime;
1528
+ case: "zonedDatetime";
1529
+ } | {
1530
+ /**
1531
+ * @generated from field: loams.graph.v1.Duration duration = 14;
1532
+ */
1533
+ value: Duration;
1534
+ case: "duration";
1535
+ } | {
1536
+ /**
1537
+ * @generated from field: loams.graph.v1.ListValue list = 15;
1538
+ */
1539
+ value: ListValue;
1540
+ case: "list";
1541
+ } | {
1542
+ /**
1543
+ * @generated from field: loams.graph.v1.MapValue map = 16;
1544
+ */
1545
+ value: MapValue;
1546
+ case: "map";
1547
+ } | {
1548
+ /**
1549
+ * @generated from field: loams.graph.v1.Node node = 17;
1550
+ */
1551
+ value: Node;
1552
+ case: "node";
1553
+ } | {
1554
+ /**
1555
+ * @generated from field: loams.graph.v1.Relationship relationship = 18;
1556
+ */
1557
+ value: Relationship;
1558
+ case: "relationship";
1559
+ } | {
1560
+ /**
1561
+ * @generated from field: loams.graph.v1.Path path = 19;
1562
+ */
1563
+ value: Path;
1564
+ case: "path";
1565
+ } | {
1566
+ /**
1567
+ * A fixed-size float32 vector (an embedding).
1568
+ *
1569
+ * @generated from field: loams.graph.v1.Vector vector = 20;
1570
+ */
1571
+ value: Vector;
1572
+ case: "vector";
1573
+ } | {
1574
+ /**
1575
+ * A conflict-free replicated counter.
1576
+ *
1577
+ * @generated from field: loams.graph.v1.Counter counter = 21;
1578
+ */
1579
+ value: Counter;
1580
+ case: "counter";
1581
+ } | {
1582
+ case: undefined;
1583
+ value?: undefined;
1584
+ };
1585
+ };
1586
+ /**
1587
+ * Describes the message loams.graph.v1.Value.
1588
+ * Use `create(ValueSchema)` to create a new message.
1589
+ */
1590
+ export declare const ValueSchema: GenMessage<Value>;
1591
+ /**
1592
+ * An exact decimal, as its canonical text (`-12.340`).
1593
+ *
1594
+ * @generated from message loams.graph.v1.Decimal
1595
+ */
1596
+ export type Decimal = Message<"loams.graph.v1.Decimal"> & {
1597
+ /**
1598
+ * @generated from field: string value = 1;
1599
+ */
1600
+ value: string;
1601
+ };
1602
+ /**
1603
+ * Describes the message loams.graph.v1.Decimal.
1604
+ * Use `create(DecimalSchema)` to create a new message.
1605
+ */
1606
+ export declare const DecimalSchema: GenMessage<Decimal>;
1607
+ /**
1608
+ * A calendar date.
1609
+ *
1610
+ * @generated from message loams.graph.v1.Date
1611
+ */
1612
+ export type Date = Message<"loams.graph.v1.Date"> & {
1613
+ /**
1614
+ * @generated from field: int32 year = 1;
1615
+ */
1616
+ year: number;
1617
+ /**
1618
+ * @generated from field: uint32 month = 2;
1619
+ */
1620
+ month: number;
1621
+ /**
1622
+ * @generated from field: uint32 day = 3;
1623
+ */
1624
+ day: number;
1625
+ };
1626
+ /**
1627
+ * Describes the message loams.graph.v1.Date.
1628
+ * Use `create(DateSchema)` to create a new message.
1629
+ */
1630
+ export declare const DateSchema: GenMessage<Date>;
1631
+ /**
1632
+ * A time of day with no offset.
1633
+ *
1634
+ * @generated from message loams.graph.v1.LocalTime
1635
+ */
1636
+ export type LocalTime = Message<"loams.graph.v1.LocalTime"> & {
1637
+ /**
1638
+ * @generated from field: uint32 hour = 1;
1639
+ */
1640
+ hour: number;
1641
+ /**
1642
+ * @generated from field: uint32 minute = 2;
1643
+ */
1644
+ minute: number;
1645
+ /**
1646
+ * @generated from field: uint32 second = 3;
1647
+ */
1648
+ second: number;
1649
+ /**
1650
+ * @generated from field: uint32 nanosecond = 4;
1651
+ */
1652
+ nanosecond: number;
1653
+ };
1654
+ /**
1655
+ * Describes the message loams.graph.v1.LocalTime.
1656
+ * Use `create(LocalTimeSchema)` to create a new message.
1657
+ */
1658
+ export declare const LocalTimeSchema: GenMessage<LocalTime>;
1659
+ /**
1660
+ * A time of day at a UTC offset. `|offset_seconds|` is at most 64800.
1661
+ *
1662
+ * @generated from message loams.graph.v1.ZonedTime
1663
+ */
1664
+ export type ZonedTime = Message<"loams.graph.v1.ZonedTime"> & {
1665
+ /**
1666
+ * @generated from field: loams.graph.v1.LocalTime time = 1;
1667
+ */
1668
+ time?: LocalTime | undefined;
1669
+ /**
1670
+ * @generated from field: int32 offset_seconds = 2;
1671
+ */
1672
+ offsetSeconds: number;
1673
+ };
1674
+ /**
1675
+ * Describes the message loams.graph.v1.ZonedTime.
1676
+ * Use `create(ZonedTimeSchema)` to create a new message.
1677
+ */
1678
+ export declare const ZonedTimeSchema: GenMessage<ZonedTime>;
1679
+ /**
1680
+ * A date and time with no offset. Grafeo's TIMESTAMP (what `datetime()` and
1681
+ * `localdatetime()` produce) is microseconds since the Unix epoch, and is
1682
+ * answered as its **UTC** wall clock. Microsecond precision: a nanosecond
1683
+ * part that is not a whole number of microseconds is refused.
1684
+ *
1685
+ * @generated from message loams.graph.v1.LocalDateTime
1686
+ */
1687
+ export type LocalDateTime = Message<"loams.graph.v1.LocalDateTime"> & {
1688
+ /**
1689
+ * @generated from field: loams.graph.v1.Date date = 1;
1690
+ */
1691
+ date?: Date | undefined;
1692
+ /**
1693
+ * @generated from field: loams.graph.v1.LocalTime time = 2;
1694
+ */
1695
+ time?: LocalTime | undefined;
1696
+ };
1697
+ /**
1698
+ * Describes the message loams.graph.v1.LocalDateTime.
1699
+ * Use `create(LocalDateTimeSchema)` to create a new message.
1700
+ */
1701
+ export declare const LocalDateTimeSchema: GenMessage<LocalDateTime>;
1702
+ /**
1703
+ * A wall-clock date and time at a UTC offset: `local` is the clock at the
1704
+ * offset, so the instant is `local - offset_seconds`. Microsecond precision;
1705
+ * `|offset_seconds|` is at most 64800 (18 hours).
1706
+ *
1707
+ * @generated from message loams.graph.v1.ZonedDateTime
1708
+ */
1709
+ export type ZonedDateTime = Message<"loams.graph.v1.ZonedDateTime"> & {
1710
+ /**
1711
+ * @generated from field: loams.graph.v1.LocalDateTime local = 1;
1712
+ */
1713
+ local?: LocalDateTime | undefined;
1714
+ /**
1715
+ * @generated from field: int32 offset_seconds = 2;
1716
+ */
1717
+ offsetSeconds: number;
1718
+ };
1719
+ /**
1720
+ * Describes the message loams.graph.v1.ZonedDateTime.
1721
+ * Use `create(ZonedDateTimeSchema)` to create a new message.
1722
+ */
1723
+ export declare const ZonedDateTimeSchema: GenMessage<ZonedDateTime>;
1724
+ /**
1725
+ * An ISO 8601 duration: months, days and nanoseconds, kept apart because a
1726
+ * month and a day have no fixed length.
1727
+ *
1728
+ * @generated from message loams.graph.v1.Duration
1729
+ */
1730
+ export type Duration = Message<"loams.graph.v1.Duration"> & {
1731
+ /**
1732
+ * @generated from field: int64 months = 1;
1733
+ */
1734
+ months: bigint;
1735
+ /**
1736
+ * @generated from field: int64 days = 2;
1737
+ */
1738
+ days: bigint;
1739
+ /**
1740
+ * @generated from field: int64 nanos = 3;
1741
+ */
1742
+ nanos: bigint;
1743
+ };
1744
+ /**
1745
+ * Describes the message loams.graph.v1.Duration.
1746
+ * Use `create(DurationSchema)` to create a new message.
1747
+ */
1748
+ export declare const DurationSchema: GenMessage<Duration>;
1749
+ /**
1750
+ * @generated from message loams.graph.v1.ListValue
1751
+ */
1752
+ export type ListValue = Message<"loams.graph.v1.ListValue"> & {
1753
+ /**
1754
+ * @generated from field: repeated loams.graph.v1.Value values = 1;
1755
+ */
1756
+ values: Value[];
1757
+ };
1758
+ /**
1759
+ * Describes the message loams.graph.v1.ListValue.
1760
+ * Use `create(ListValueSchema)` to create a new message.
1761
+ */
1762
+ export declare const ListValueSchema: GenMessage<ListValue>;
1763
+ /**
1764
+ * @generated from message loams.graph.v1.MapValue
1765
+ */
1766
+ export type MapValue = Message<"loams.graph.v1.MapValue"> & {
1767
+ /**
1768
+ * @generated from field: map<string, loams.graph.v1.Value> entries = 1;
1769
+ */
1770
+ entries: {
1771
+ [key: string]: Value;
1772
+ };
1773
+ };
1774
+ /**
1775
+ * Describes the message loams.graph.v1.MapValue.
1776
+ * Use `create(MapValueSchema)` to create a new message.
1777
+ */
1778
+ export declare const MapValueSchema: GenMessage<MapValue>;
1779
+ /**
1780
+ * @generated from message loams.graph.v1.Node
1781
+ */
1782
+ export type Node = Message<"loams.graph.v1.Node"> & {
1783
+ /**
1784
+ * @generated from field: uint64 id = 1;
1785
+ */
1786
+ id: bigint;
1787
+ /**
1788
+ * @generated from field: repeated string labels = 2;
1789
+ */
1790
+ labels: string[];
1791
+ /**
1792
+ * @generated from field: map<string, loams.graph.v1.Value> properties = 3;
1793
+ */
1794
+ properties: {
1795
+ [key: string]: Value;
1796
+ };
1797
+ };
1798
+ /**
1799
+ * Describes the message loams.graph.v1.Node.
1800
+ * Use `create(NodeSchema)` to create a new message.
1801
+ */
1802
+ export declare const NodeSchema: GenMessage<Node>;
1803
+ /**
1804
+ * @generated from message loams.graph.v1.Relationship
1805
+ */
1806
+ export type Relationship = Message<"loams.graph.v1.Relationship"> & {
1807
+ /**
1808
+ * @generated from field: uint64 id = 1;
1809
+ */
1810
+ id: bigint;
1811
+ /**
1812
+ * @generated from field: string type = 2;
1813
+ */
1814
+ type: string;
1815
+ /**
1816
+ * The source node's id.
1817
+ *
1818
+ * @generated from field: uint64 src = 3;
1819
+ */
1820
+ src: bigint;
1821
+ /**
1822
+ * The destination node's id.
1823
+ *
1824
+ * @generated from field: uint64 dst = 4;
1825
+ */
1826
+ dst: bigint;
1827
+ /**
1828
+ * @generated from field: map<string, loams.graph.v1.Value> properties = 5;
1829
+ */
1830
+ properties: {
1831
+ [key: string]: Value;
1832
+ };
1833
+ };
1834
+ /**
1835
+ * Describes the message loams.graph.v1.Relationship.
1836
+ * Use `create(RelationshipSchema)` to create a new message.
1837
+ */
1838
+ export declare const RelationshipSchema: GenMessage<Relationship>;
1839
+ /**
1840
+ * Alternating nodes and relationships: `relationships[i]` joins `nodes[i]`
1841
+ * and `nodes[i + 1]`, in the path's own order, and keeps its stored
1842
+ * direction (`src` and `dst`), so a path walked against an edge has
1843
+ * `relationships[i].dst == nodes[i].id`. Every element is full: labels,
1844
+ * type, endpoints and properties. Grafeo 0.5.43 builds a path of element
1845
+ * ids, and the server resolves each id when it builds the row. Until the
1846
+ * durable read path (GR1 Task 11) pins a read's epoch, an element's labels
1847
+ * and properties are those current when the row is built, which a write
1848
+ * committed between the statement and the row can change; an element
1849
+ * deleted in that window is answered with its `id` only.
1850
+ *
1851
+ * @generated from message loams.graph.v1.Path
1852
+ */
1853
+ export type Path = Message<"loams.graph.v1.Path"> & {
1854
+ /**
1855
+ * @generated from field: repeated loams.graph.v1.Node nodes = 1;
1856
+ */
1857
+ nodes: Node[];
1858
+ /**
1859
+ * @generated from field: repeated loams.graph.v1.Relationship relationships = 2;
1860
+ */
1861
+ relationships: Relationship[];
1862
+ };
1863
+ /**
1864
+ * Describes the message loams.graph.v1.Path.
1865
+ * Use `create(PathSchema)` to create a new message.
1866
+ */
1867
+ export declare const PathSchema: GenMessage<Path>;
1868
+ /**
1869
+ * @generated from message loams.graph.v1.Vector
1870
+ */
1871
+ export type Vector = Message<"loams.graph.v1.Vector"> & {
1872
+ /**
1873
+ * @generated from field: repeated float values = 1;
1874
+ */
1875
+ values: number[];
1876
+ };
1877
+ /**
1878
+ * Describes the message loams.graph.v1.Vector.
1879
+ * Use `create(VectorSchema)` to create a new message.
1880
+ */
1881
+ export declare const VectorSchema: GenMessage<Vector>;
1882
+ /**
1883
+ * A grow-only counter (`negative` empty and `grow_only` set) or a
1884
+ * positive-negative counter, by replica.
1885
+ *
1886
+ * @generated from message loams.graph.v1.Counter
1887
+ */
1888
+ export type Counter = Message<"loams.graph.v1.Counter"> & {
1889
+ /**
1890
+ * @generated from field: map<string, uint64> positive = 1;
1891
+ */
1892
+ positive: {
1893
+ [key: string]: bigint;
1894
+ };
1895
+ /**
1896
+ * @generated from field: map<string, uint64> negative = 2;
1897
+ */
1898
+ negative: {
1899
+ [key: string]: bigint;
1900
+ };
1901
+ /**
1902
+ * @generated from field: bool grow_only = 3;
1903
+ */
1904
+ growOnly: boolean;
1905
+ };
1906
+ /**
1907
+ * Describes the message loams.graph.v1.Counter.
1908
+ * Use `create(CounterSchema)` to create a new message.
1909
+ */
1910
+ export declare const CounterSchema: GenMessage<Counter>;
1911
+ /**
1912
+ * A query language a graph accepts.
1913
+ *
1914
+ * @generated from enum loams.graph.v1.QueryLanguage
1915
+ */
1916
+ export declare enum QueryLanguage {
1917
+ /**
1918
+ * Read as GQL.
1919
+ *
1920
+ * @generated from enum value: QUERY_LANGUAGE_UNSPECIFIED = 0;
1921
+ */
1922
+ UNSPECIFIED = 0,
1923
+ /**
1924
+ * ISO/IEC 39075, the `gql-1` profile (§48 §9.1).
1925
+ *
1926
+ * @generated from enum value: QUERY_LANGUAGE_GQL = 1;
1927
+ */
1928
+ GQL = 1,
1929
+ /**
1930
+ * openCypher, as a compatibility dialect behind the `graph-cypher`
1931
+ * feature (D748).
1932
+ *
1933
+ * @generated from enum value: QUERY_LANGUAGE_CYPHER = 2;
1934
+ */
1935
+ CYPHER = 2,
1936
+ /**
1937
+ * SQL:2023 GRAPH_TABLE. Not built.
1938
+ *
1939
+ * @generated from enum value: QUERY_LANGUAGE_SQL_PGQ = 3;
1940
+ */
1941
+ SQL_PGQ = 3,
1942
+ /**
1943
+ * Not built.
1944
+ *
1945
+ * @generated from enum value: QUERY_LANGUAGE_GREMLIN = 4;
1946
+ */
1947
+ GREMLIN = 4,
1948
+ /**
1949
+ * Not built.
1950
+ *
1951
+ * @generated from enum value: QUERY_LANGUAGE_GRAPHQL = 5;
1952
+ */
1953
+ GRAPHQL = 5,
1954
+ /**
1955
+ * Not built.
1956
+ *
1957
+ * @generated from enum value: QUERY_LANGUAGE_SPARQL = 6;
1958
+ */
1959
+ SPARQL = 6
1960
+ }
1961
+ /**
1962
+ * Describes the enum loams.graph.v1.QueryLanguage.
1963
+ */
1964
+ export declare const QueryLanguageSchema: GenEnum<QueryLanguage>;
1965
+ /**
1966
+ * Whether the graph's data is its own or derived from collections.
1967
+ *
1968
+ * @generated from enum loams.graph.v1.GraphMode
1969
+ */
1970
+ export declare enum GraphMode {
1971
+ /**
1972
+ * Read as OWNED.
1973
+ *
1974
+ * @generated from enum value: GRAPH_MODE_UNSPECIFIED = 0;
1975
+ */
1976
+ UNSPECIFIED = 0,
1977
+ /**
1978
+ * Written with GQL; the graph is the source of truth.
1979
+ *
1980
+ * @generated from enum value: GRAPH_MODE_OWNED = 1;
1981
+ */
1982
+ OWNED = 1,
1983
+ /**
1984
+ * Fed by links from collections or streams through `mapping`; read-only
1985
+ * to GQL (`graph_is_linked`).
1986
+ *
1987
+ * @generated from enum value: GRAPH_MODE_LINKED = 2;
1988
+ */
1989
+ LINKED = 2
1990
+ }
1991
+ /**
1992
+ * Describes the enum loams.graph.v1.GraphMode.
1993
+ */
1994
+ export declare const GraphModeSchema: GenEnum<GraphMode>;
1995
+ /**
1996
+ * Where a graph is in its life.
1997
+ *
1998
+ * @generated from enum loams.graph.v1.GraphState
1999
+ */
2000
+ export declare enum GraphState {
2001
+ /**
2002
+ * Never sent.
2003
+ *
2004
+ * @generated from enum value: GRAPH_STATE_UNSPECIFIED = 0;
2005
+ */
2006
+ UNSPECIFIED = 0,
2007
+ /**
2008
+ * Serving.
2009
+ *
2010
+ * @generated from enum value: GRAPH_STATE_READY = 1;
2011
+ */
2012
+ READY = 1,
2013
+ /**
2014
+ * Being opened or recovered.
2015
+ *
2016
+ * @generated from enum value: GRAPH_STATE_OPENING = 2;
2017
+ */
2018
+ OPENING = 2,
2019
+ /**
2020
+ * Closed to free memory; the next statement reopens it.
2021
+ *
2022
+ * @generated from enum value: GRAPH_STATE_EVICTED = 3;
2023
+ */
2024
+ EVICTED = 3,
2025
+ /**
2026
+ * Being reloaded after an engine fault (`graph_reloading`).
2027
+ *
2028
+ * @generated from enum value: GRAPH_STATE_RELOADING = 4;
2029
+ */
2030
+ RELOADING = 4,
2031
+ /**
2032
+ * Deleted; storage is purged after the retention hold.
2033
+ *
2034
+ * @generated from enum value: GRAPH_STATE_DELETING = 5;
2035
+ */
2036
+ DELETING = 5,
2037
+ /**
2038
+ * An engine failure lost the graph's in-memory state and it cannot be
2039
+ * reopened from storage (an in-memory graph, or a close that failed).
2040
+ * Statements answer `graph_engine_panic`; delete and create it again.
2041
+ *
2042
+ * @generated from enum value: GRAPH_STATE_FAILED = 6;
2043
+ */
2044
+ FAILED = 6
2045
+ }
2046
+ /**
2047
+ * Describes the enum loams.graph.v1.GraphState.
2048
+ */
2049
+ export declare const GraphStateSchema: GenEnum<GraphState>;
2050
+ /**
2051
+ * What a stream rule does with a record.
2052
+ *
2053
+ * @generated from enum loams.graph.v1.StreamOperation
2054
+ */
2055
+ export declare enum StreamOperation {
2056
+ /**
2057
+ * @generated from enum value: STREAM_OPERATION_UNSPECIFIED = 0;
2058
+ */
2059
+ UNSPECIFIED = 0,
2060
+ /**
2061
+ * Creates the node, or merges the record's properties into it.
2062
+ *
2063
+ * @generated from enum value: STREAM_OPERATION_UPSERT_NODE = 1;
2064
+ */
2065
+ UPSERT_NODE = 1,
2066
+ /**
2067
+ * Deletes the node and its edges.
2068
+ *
2069
+ * @generated from enum value: STREAM_OPERATION_DELETE_NODE = 2;
2070
+ */
2071
+ DELETE_NODE = 2,
2072
+ /**
2073
+ * Creates the edge (and stub endpoints), or merges its properties.
2074
+ *
2075
+ * @generated from enum value: STREAM_OPERATION_UPSERT_EDGE = 3;
2076
+ */
2077
+ UPSERT_EDGE = 3,
2078
+ /**
2079
+ * Deletes the edge.
2080
+ *
2081
+ * @generated from enum value: STREAM_OPERATION_DELETE_EDGE = 4;
2082
+ */
2083
+ DELETE_EDGE = 4
2084
+ }
2085
+ /**
2086
+ * Describes the enum loams.graph.v1.StreamOperation.
2087
+ */
2088
+ export declare const StreamOperationSchema: GenEnum<StreamOperation>;
2089
+ /**
2090
+ * A data format for import and export.
2091
+ *
2092
+ * @generated from enum loams.graph.v1.DataFormat
2093
+ */
2094
+ export declare enum DataFormat {
2095
+ /**
2096
+ * @generated from enum value: DATA_FORMAT_UNSPECIFIED = 0;
2097
+ */
2098
+ UNSPECIFIED = 0,
2099
+ /**
2100
+ * @generated from enum value: DATA_FORMAT_PARQUET = 1;
2101
+ */
2102
+ PARQUET = 1,
2103
+ /**
2104
+ * @generated from enum value: DATA_FORMAT_CSV = 2;
2105
+ */
2106
+ CSV = 2,
2107
+ /**
2108
+ * @generated from enum value: DATA_FORMAT_JSONL = 3;
2109
+ */
2110
+ JSONL = 3
2111
+ }
2112
+ /**
2113
+ * Describes the enum loams.graph.v1.DataFormat.
2114
+ */
2115
+ export declare const DataFormatSchema: GenEnum<DataFormat>;
2116
+ /**
2117
+ * Isolation for a batch (§48 §7.3).
2118
+ *
2119
+ * @generated from enum loams.graph.v1.Isolation
2120
+ */
2121
+ export declare enum Isolation {
2122
+ /**
2123
+ * Read as SNAPSHOT.
2124
+ *
2125
+ * @generated from enum value: ISOLATION_UNSPECIFIED = 0;
2126
+ */
2127
+ UNSPECIFIED = 0,
2128
+ /**
2129
+ * @generated from enum value: ISOLATION_SNAPSHOT = 1;
2130
+ */
2131
+ SNAPSHOT = 1,
2132
+ /**
2133
+ * @generated from enum value: ISOLATION_SERIALIZABLE = 2;
2134
+ */
2135
+ SERIALIZABLE = 2
2136
+ }
2137
+ /**
2138
+ * Describes the enum loams.graph.v1.Isolation.
2139
+ */
2140
+ export declare const IsolationSchema: GenEnum<Isolation>;
2141
+ /**
2142
+ * The graph catalog and the operations on a whole graph.
2143
+ *
2144
+ * @generated from service loams.graph.v1.GraphAdminService
2145
+ */
2146
+ export declare const GraphAdminService: GenService<{
2147
+ /**
2148
+ * The engine's version, the query languages this build has, and the
2149
+ * statement limits it enforces.
2150
+ *
2151
+ * @generated from rpc loams.graph.v1.GraphAdminService.GetEngineInfo
2152
+ */
2153
+ getEngineInfo: {
2154
+ methodKind: "unary";
2155
+ input: typeof GetEngineInfoRequestSchema;
2156
+ output: typeof EngineInfoSchema;
2157
+ };
2158
+ /**
2159
+ * Creates a graph. Idempotent by `idempotency_key`: a repeat answers the
2160
+ * graph the first call made. A different graph under a taken name is
2161
+ * `already_exists`.
2162
+ *
2163
+ * @generated from rpc loams.graph.v1.GraphAdminService.CreateGraph
2164
+ */
2165
+ createGraph: {
2166
+ methodKind: "unary";
2167
+ input: typeof CreateGraphRequestSchema;
2168
+ output: typeof GraphSchema$;
2169
+ };
2170
+ /**
2171
+ * One graph, by namespace and name.
2172
+ *
2173
+ * @generated from rpc loams.graph.v1.GraphAdminService.GetGraph
2174
+ */
2175
+ getGraph: {
2176
+ methodKind: "unary";
2177
+ input: typeof GetGraphRequestSchema;
2178
+ output: typeof GraphSchema$;
2179
+ };
2180
+ /**
2181
+ * The namespace's graphs, by name (AIP-158).
2182
+ *
2183
+ * @generated from rpc loams.graph.v1.GraphAdminService.ListGraphs
2184
+ */
2185
+ listGraphs: {
2186
+ methodKind: "unary";
2187
+ input: typeof ListGraphsRequestSchema;
2188
+ output: typeof ListGraphsResponseSchema;
2189
+ };
2190
+ /**
2191
+ * Changes `languages`, `limits` or `replicas`, named by `update_mask`.
2192
+ *
2193
+ * @generated from rpc loams.graph.v1.GraphAdminService.UpdateGraph
2194
+ */
2195
+ updateGraph: {
2196
+ methodKind: "unary";
2197
+ input: typeof UpdateGraphRequestSchema;
2198
+ output: typeof GraphSchema$;
2199
+ };
2200
+ /**
2201
+ * Closes the graph and, after the retention hold, purges its storage.
2202
+ *
2203
+ * @generated from rpc loams.graph.v1.GraphAdminService.DeleteGraph
2204
+ */
2205
+ deleteGraph: {
2206
+ methodKind: "unary";
2207
+ input: typeof DeleteGraphRequestSchema;
2208
+ output: typeof OperationSchema;
2209
+ };
2210
+ /**
2211
+ * Labels, edge types, property keys, counts and indexes.
2212
+ *
2213
+ * @generated from rpc loams.graph.v1.GraphAdminService.GetSchema
2214
+ */
2215
+ getSchema: {
2216
+ methodKind: "unary";
2217
+ input: typeof GetSchemaRequestSchema;
2218
+ output: typeof GraphSchemaSchema;
2219
+ };
2220
+ /**
2221
+ * Restores a graph, at a consistency token or a time, into a new graph.
2222
+ *
2223
+ * @generated from rpc loams.graph.v1.GraphAdminService.RestoreGraph
2224
+ */
2225
+ restoreGraph: {
2226
+ methodKind: "unary";
2227
+ input: typeof RestoreGraphRequestSchema;
2228
+ output: typeof OperationSchema;
2229
+ };
2230
+ /**
2231
+ * Writes the graph as portable Parquet under the namespace's export prefix.
2232
+ *
2233
+ * @generated from rpc loams.graph.v1.GraphAdminService.ExportGraph
2234
+ */
2235
+ exportGraph: {
2236
+ methodKind: "unary";
2237
+ input: typeof ExportGraphRequestSchema;
2238
+ output: typeof OperationSchema;
2239
+ };
2240
+ /**
2241
+ * Loads Parquet, CSV or JSONL from the namespace's import prefix.
2242
+ *
2243
+ * @generated from rpc loams.graph.v1.GraphAdminService.ImportGraph
2244
+ */
2245
+ importGraph: {
2246
+ methodKind: "unary";
2247
+ input: typeof ImportGraphRequestSchema;
2248
+ output: typeof OperationSchema;
2249
+ };
2250
+ }>;
2251
+ /**
2252
+ * Statements against one graph.
2253
+ *
2254
+ * @generated from service loams.graph.v1.GraphService
2255
+ */
2256
+ export declare const GraphService: GenService<{
2257
+ /**
2258
+ * Runs one statement as one transaction.
2259
+ *
2260
+ * @generated from rpc loams.graph.v1.GraphService.Execute
2261
+ */
2262
+ execute: {
2263
+ methodKind: "unary";
2264
+ input: typeof ExecuteRequestSchema;
2265
+ output: typeof ExecuteResponseSchema;
2266
+ };
2267
+ /**
2268
+ * Runs statements, as one transaction (`atomic`) or one each.
2269
+ *
2270
+ * @generated from rpc loams.graph.v1.GraphService.ExecuteBatch
2271
+ */
2272
+ executeBatch: {
2273
+ methodKind: "unary";
2274
+ input: typeof ExecuteBatchRequestSchema;
2275
+ output: typeof ExecuteBatchResponseSchema;
2276
+ };
2277
+ /**
2278
+ * Runs one statement and streams its rows in chunks (server streaming
2279
+ * only, D420), for results past the unary row cap.
2280
+ *
2281
+ * @generated from rpc loams.graph.v1.GraphService.ExecuteStream
2282
+ */
2283
+ executeStream: {
2284
+ methodKind: "server_streaming";
2285
+ input: typeof ExecuteStreamRequestSchema;
2286
+ output: typeof ResultChunkSchema;
2287
+ };
2288
+ /**
2289
+ * The plan of a statement (`EXPLAIN`), or its profile (`PROFILE`) when
2290
+ * `profile` is set. A profile runs the statement.
2291
+ *
2292
+ * @generated from rpc loams.graph.v1.GraphService.Explain
2293
+ */
2294
+ explain: {
2295
+ methodKind: "unary";
2296
+ input: typeof ExplainRequestSchema;
2297
+ output: typeof PlanSchema;
2298
+ };
2299
+ }>;