@loams/client 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +78 -2
  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 +12 -5
  15. package/dist/index.js +12 -3
  16. package/dist/loams.d.ts +77 -2
  17. package/dist/loams.js +84 -6
  18. package/dist/runtime/batch.d.ts +29 -0
  19. package/dist/runtime/batch.js +95 -0
  20. package/dist/runtime/call.d.ts +63 -9
  21. package/dist/runtime/call.js +243 -41
  22. package/dist/runtime/consistency.d.ts +65 -11
  23. package/dist/runtime/consistency.js +212 -46
  24. package/dist/runtime/errors.d.ts +29 -2
  25. package/dist/runtime/errors.js +26 -0
  26. package/dist/runtime/pagination.js +8 -2
  27. package/dist/runtime/subscribe.d.ts +37 -0
  28. package/dist/runtime/subscribe.js +128 -0
  29. package/dist/vendor/proto/collection-v1.d.ts +3 -0
  30. package/dist/vendor/proto/collection-v1.js +7 -0
  31. package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.d.ts +1610 -0
  32. package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.js +399 -0
  33. package/dist/vendor/proto/gen/loams/collection/v1/document_pb.d.ts +1054 -0
  34. package/dist/vendor/proto/gen/loams/collection/v1/document_pb.js +327 -0
  35. package/dist/vendor/proto/gen/loams/collection/v1/query_pb.d.ts +2101 -0
  36. package/dist/vendor/proto/gen/loams/collection/v1/query_pb.js +608 -0
  37. package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.d.ts +2299 -0
  38. package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.js +596 -0
  39. package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.d.ts +399 -0
  40. package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.js +118 -0
  41. package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.d.ts +182 -0
  42. package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.js +72 -0
  43. package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.d.ts +688 -0
  44. package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.js +180 -0
  45. package/package.json +2 -2
@@ -0,0 +1,399 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file loams/operations/v1/operations.proto.
6
+ */
7
+ export declare const file_loams_operations_v1_operations: GenFile;
8
+ /**
9
+ * @generated from message loams.operations.v1.Operation
10
+ */
11
+ export type Operation = Message<"loams.operations.v1.Operation"> & {
12
+ /**
13
+ * "op-" + 26 hex characters (D146).
14
+ *
15
+ * @generated from field: string id = 1;
16
+ */
17
+ id: string;
18
+ /**
19
+ * For example "collection.import", "collection.drop", "restore".
20
+ *
21
+ * @generated from field: string kind = 2;
22
+ */
23
+ kind: string;
24
+ /**
25
+ * @generated from field: string namespace = 3;
26
+ */
27
+ namespace: string;
28
+ /**
29
+ * Structured target, for example {"collection": "docs"}.
30
+ *
31
+ * @generated from field: map<string, string> target = 4;
32
+ */
33
+ target: {
34
+ [key: string]: string;
35
+ };
36
+ /**
37
+ * @generated from field: loams.operations.v1.OperationState state = 5;
38
+ */
39
+ state: OperationState;
40
+ /**
41
+ * @generated from field: loams.operations.v1.Progress progress = 6;
42
+ */
43
+ progress?: Progress | undefined;
44
+ /**
45
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
46
+ */
47
+ createdAt?: Timestamp | undefined;
48
+ /**
49
+ * @generated from field: google.protobuf.Timestamp updated_at = 8;
50
+ */
51
+ updatedAt?: Timestamp | undefined;
52
+ /**
53
+ * The kind-specific result once SUCCEEDED.
54
+ *
55
+ * @generated from field: google.protobuf.Struct result = 9;
56
+ */
57
+ result?: JsonObject | undefined;
58
+ /**
59
+ * @generated from field: loams.operations.v1.OperationError error = 10;
60
+ */
61
+ error?: OperationError | undefined;
62
+ /**
63
+ * Set while AWAITING_APPROVAL (loams.approvals.v1).
64
+ *
65
+ * @generated from field: string approval_id = 11;
66
+ */
67
+ approvalId: string;
68
+ };
69
+ /**
70
+ * Describes the message loams.operations.v1.Operation.
71
+ * Use `create(OperationSchema)` to create a new message.
72
+ */
73
+ export declare const OperationSchema: GenMessage<Operation>;
74
+ /**
75
+ * @generated from message loams.operations.v1.Progress
76
+ */
77
+ export type Progress = Message<"loams.operations.v1.Progress"> & {
78
+ /**
79
+ * @generated from field: uint64 done = 1;
80
+ */
81
+ done: bigint;
82
+ /**
83
+ * 0 when unknown.
84
+ *
85
+ * @generated from field: uint64 total = 2;
86
+ */
87
+ total: bigint;
88
+ /**
89
+ * "documents", "bytes", "steps".
90
+ *
91
+ * @generated from field: string unit = 3;
92
+ */
93
+ unit: string;
94
+ /**
95
+ * A server-rendered phase label, for example "indexing".
96
+ *
97
+ * @generated from field: string phase = 4;
98
+ */
99
+ phase: string;
100
+ };
101
+ /**
102
+ * Describes the message loams.operations.v1.Progress.
103
+ * Use `create(ProgressSchema)` to create a new message.
104
+ */
105
+ export declare const ProgressSchema: GenMessage<Progress>;
106
+ /**
107
+ * @generated from message loams.operations.v1.OperationError
108
+ */
109
+ export type OperationError = Message<"loams.operations.v1.OperationError"> & {
110
+ /**
111
+ * @generated from field: string code = 1;
112
+ */
113
+ code: string;
114
+ /**
115
+ * @generated from field: string message = 2;
116
+ */
117
+ message: string;
118
+ };
119
+ /**
120
+ * Describes the message loams.operations.v1.OperationError.
121
+ * Use `create(OperationErrorSchema)` to create a new message.
122
+ */
123
+ export declare const OperationErrorSchema: GenMessage<OperationError>;
124
+ /**
125
+ * @generated from message loams.operations.v1.GetOperationRequest
126
+ */
127
+ export type GetOperationRequest = Message<"loams.operations.v1.GetOperationRequest"> & {
128
+ /**
129
+ * @generated from field: string operation_id = 1;
130
+ */
131
+ operationId: string;
132
+ };
133
+ /**
134
+ * Describes the message loams.operations.v1.GetOperationRequest.
135
+ * Use `create(GetOperationRequestSchema)` to create a new message.
136
+ */
137
+ export declare const GetOperationRequestSchema: GenMessage<GetOperationRequest>;
138
+ /**
139
+ * @generated from message loams.operations.v1.GetOperationResponse
140
+ */
141
+ export type GetOperationResponse = Message<"loams.operations.v1.GetOperationResponse"> & {
142
+ /**
143
+ * @generated from field: loams.operations.v1.Operation operation = 1;
144
+ */
145
+ operation?: Operation | undefined;
146
+ };
147
+ /**
148
+ * Describes the message loams.operations.v1.GetOperationResponse.
149
+ * Use `create(GetOperationResponseSchema)` to create a new message.
150
+ */
151
+ export declare const GetOperationResponseSchema: GenMessage<GetOperationResponse>;
152
+ /**
153
+ * @generated from message loams.operations.v1.ListOperationsRequest
154
+ */
155
+ export type ListOperationsRequest = Message<"loams.operations.v1.ListOperationsRequest"> & {
156
+ /**
157
+ * Empty = every namespace the caller can see.
158
+ *
159
+ * @generated from field: string namespace = 1;
160
+ */
161
+ namespace: string;
162
+ /**
163
+ * @generated from field: repeated loams.operations.v1.OperationState states = 2;
164
+ */
165
+ states: OperationState[];
166
+ /**
167
+ * @generated from field: uint32 page_size = 3;
168
+ */
169
+ pageSize: number;
170
+ /**
171
+ * @generated from field: string page_token = 4;
172
+ */
173
+ pageToken: string;
174
+ };
175
+ /**
176
+ * Describes the message loams.operations.v1.ListOperationsRequest.
177
+ * Use `create(ListOperationsRequestSchema)` to create a new message.
178
+ */
179
+ export declare const ListOperationsRequestSchema: GenMessage<ListOperationsRequest>;
180
+ /**
181
+ * @generated from message loams.operations.v1.ListOperationsResponse
182
+ */
183
+ export type ListOperationsResponse = Message<"loams.operations.v1.ListOperationsResponse"> & {
184
+ /**
185
+ * @generated from field: repeated loams.operations.v1.Operation operations = 1;
186
+ */
187
+ operations: Operation[];
188
+ /**
189
+ * @generated from field: string next_page_token = 2;
190
+ */
191
+ nextPageToken: string;
192
+ };
193
+ /**
194
+ * Describes the message loams.operations.v1.ListOperationsResponse.
195
+ * Use `create(ListOperationsResponseSchema)` to create a new message.
196
+ */
197
+ export declare const ListOperationsResponseSchema: GenMessage<ListOperationsResponse>;
198
+ /**
199
+ * @generated from message loams.operations.v1.WatchOperationsRequest
200
+ */
201
+ export type WatchOperationsRequest = Message<"loams.operations.v1.WatchOperationsRequest"> & {
202
+ /**
203
+ * @generated from field: string namespace = 1;
204
+ */
205
+ namespace: string;
206
+ /**
207
+ * @generated from field: repeated loams.operations.v1.OperationState states = 2;
208
+ */
209
+ states: OperationState[];
210
+ /**
211
+ * @generated from field: string resume_cursor = 3;
212
+ */
213
+ resumeCursor: string;
214
+ };
215
+ /**
216
+ * Describes the message loams.operations.v1.WatchOperationsRequest.
217
+ * Use `create(WatchOperationsRequestSchema)` to create a new message.
218
+ */
219
+ export declare const WatchOperationsRequestSchema: GenMessage<WatchOperationsRequest>;
220
+ /**
221
+ * @generated from message loams.operations.v1.WatchOperationsResponse
222
+ */
223
+ export type WatchOperationsResponse = Message<"loams.operations.v1.WatchOperationsResponse"> & {
224
+ /**
225
+ * @generated from oneof loams.operations.v1.WatchOperationsResponse.event
226
+ */
227
+ event: {
228
+ /**
229
+ * @generated from field: loams.operations.v1.OperationSnapshot snapshot = 1;
230
+ */
231
+ value: OperationSnapshot;
232
+ case: "snapshot";
233
+ } | {
234
+ /**
235
+ * @generated from field: loams.operations.v1.Operation upsert = 2;
236
+ */
237
+ value: Operation;
238
+ case: "upsert";
239
+ } | {
240
+ /**
241
+ * @generated from field: string remove = 3;
242
+ */
243
+ value: string;
244
+ case: "remove";
245
+ } | {
246
+ /**
247
+ * @generated from field: loams.operations.v1.Heartbeat heartbeat = 4;
248
+ */
249
+ value: Heartbeat;
250
+ case: "heartbeat";
251
+ } | {
252
+ case: undefined;
253
+ value?: undefined;
254
+ };
255
+ /**
256
+ * @generated from field: string cursor = 5;
257
+ */
258
+ cursor: string;
259
+ /**
260
+ * @generated from field: bool snapshot_reset = 6;
261
+ */
262
+ snapshotReset: boolean;
263
+ };
264
+ /**
265
+ * Describes the message loams.operations.v1.WatchOperationsResponse.
266
+ * Use `create(WatchOperationsResponseSchema)` to create a new message.
267
+ */
268
+ export declare const WatchOperationsResponseSchema: GenMessage<WatchOperationsResponse>;
269
+ /**
270
+ * @generated from message loams.operations.v1.OperationSnapshot
271
+ */
272
+ export type OperationSnapshot = Message<"loams.operations.v1.OperationSnapshot"> & {
273
+ /**
274
+ * @generated from field: repeated loams.operations.v1.Operation operations = 1;
275
+ */
276
+ operations: Operation[];
277
+ };
278
+ /**
279
+ * Describes the message loams.operations.v1.OperationSnapshot.
280
+ * Use `create(OperationSnapshotSchema)` to create a new message.
281
+ */
282
+ export declare const OperationSnapshotSchema: GenMessage<OperationSnapshot>;
283
+ /**
284
+ * @generated from message loams.operations.v1.Heartbeat
285
+ */
286
+ export type Heartbeat = Message<"loams.operations.v1.Heartbeat"> & {};
287
+ /**
288
+ * Describes the message loams.operations.v1.Heartbeat.
289
+ * Use `create(HeartbeatSchema)` to create a new message.
290
+ */
291
+ export declare const HeartbeatSchema: GenMessage<Heartbeat>;
292
+ /**
293
+ * @generated from message loams.operations.v1.CancelOperationRequest
294
+ */
295
+ export type CancelOperationRequest = Message<"loams.operations.v1.CancelOperationRequest"> & {
296
+ /**
297
+ * @generated from field: string operation_id = 1;
298
+ */
299
+ operationId: string;
300
+ /**
301
+ * @generated from field: string idempotency_key = 2;
302
+ */
303
+ idempotencyKey: string;
304
+ };
305
+ /**
306
+ * Describes the message loams.operations.v1.CancelOperationRequest.
307
+ * Use `create(CancelOperationRequestSchema)` to create a new message.
308
+ */
309
+ export declare const CancelOperationRequestSchema: GenMessage<CancelOperationRequest>;
310
+ /**
311
+ * @generated from message loams.operations.v1.CancelOperationResponse
312
+ */
313
+ export type CancelOperationResponse = Message<"loams.operations.v1.CancelOperationResponse"> & {
314
+ /**
315
+ * @generated from field: loams.operations.v1.Operation operation = 1;
316
+ */
317
+ operation?: Operation | undefined;
318
+ };
319
+ /**
320
+ * Describes the message loams.operations.v1.CancelOperationResponse.
321
+ * Use `create(CancelOperationResponseSchema)` to create a new message.
322
+ */
323
+ export declare const CancelOperationResponseSchema: GenMessage<CancelOperationResponse>;
324
+ /**
325
+ * @generated from enum loams.operations.v1.OperationState
326
+ */
327
+ export declare enum OperationState {
328
+ /**
329
+ * @generated from enum value: OPERATION_STATE_UNSPECIFIED = 0;
330
+ */
331
+ UNSPECIFIED = 0,
332
+ /**
333
+ * @generated from enum value: OPERATION_STATE_PENDING = 1;
334
+ */
335
+ PENDING = 1,
336
+ /**
337
+ * @generated from enum value: OPERATION_STATE_AWAITING_APPROVAL = 2;
338
+ */
339
+ AWAITING_APPROVAL = 2,
340
+ /**
341
+ * @generated from enum value: OPERATION_STATE_RUNNING = 3;
342
+ */
343
+ RUNNING = 3,
344
+ /**
345
+ * @generated from enum value: OPERATION_STATE_SUCCEEDED = 4;
346
+ */
347
+ SUCCEEDED = 4,
348
+ /**
349
+ * @generated from enum value: OPERATION_STATE_FAILED = 5;
350
+ */
351
+ FAILED = 5,
352
+ /**
353
+ * @generated from enum value: OPERATION_STATE_CANCELED = 6;
354
+ */
355
+ CANCELED = 6
356
+ }
357
+ /**
358
+ * Describes the enum loams.operations.v1.OperationState.
359
+ */
360
+ export declare const OperationStateSchema: GenEnum<OperationState>;
361
+ /**
362
+ * @generated from service loams.operations.v1.OperationsService
363
+ */
364
+ export declare const OperationsService: GenService<{
365
+ /**
366
+ * @generated from rpc loams.operations.v1.OperationsService.GetOperation
367
+ */
368
+ getOperation: {
369
+ methodKind: "unary";
370
+ input: typeof GetOperationRequestSchema;
371
+ output: typeof GetOperationResponseSchema;
372
+ };
373
+ /**
374
+ * @generated from rpc loams.operations.v1.OperationsService.ListOperations
375
+ */
376
+ listOperations: {
377
+ methodKind: "unary";
378
+ input: typeof ListOperationsRequestSchema;
379
+ output: typeof ListOperationsResponseSchema;
380
+ };
381
+ /**
382
+ * A snapshot, then changes, then a heartbeat every 15 s (AP0 Ruling 3).
383
+ *
384
+ * @generated from rpc loams.operations.v1.OperationsService.WatchOperations
385
+ */
386
+ watchOperations: {
387
+ methodKind: "server_streaming";
388
+ input: typeof WatchOperationsRequestSchema;
389
+ output: typeof WatchOperationsResponseSchema;
390
+ };
391
+ /**
392
+ * @generated from rpc loams.operations.v1.OperationsService.CancelOperation
393
+ */
394
+ cancelOperation: {
395
+ methodKind: "unary";
396
+ input: typeof CancelOperationRequestSchema;
397
+ output: typeof CancelOperationResponseSchema;
398
+ };
399
+ }>;
@@ -0,0 +1,118 @@
1
+ // Operations: the Connect face of D146's REST operations API (design §21
2
+ // §6.4, §37 §8.2; AP0 Task 4).
3
+ //
4
+ // An operation is a durable promise: an import, a restore, a drop awaiting
5
+ // approval. The REST routes and this service read the same state.
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
8
+ /**
9
+ * Describes the file loams/operations/v1/operations.proto.
10
+ */
11
+ export const file_loams_operations_v1_operations = /*@__PURE__*/ fileDesc("CiRsb2Ftcy9vcGVyYXRpb25zL3YxL29wZXJhdGlvbnMucHJvdG8SE2xvYW1zLm9wZXJhdGlvbnMudjEi2gMKCU9wZXJhdGlvbhIKCgJpZBgBIAEoCRIMCgRraW5kGAIgASgJEhEKCW5hbWVzcGFjZRgDIAEoCRI6CgZ0YXJnZXQYBCADKAsyKi5sb2Ftcy5vcGVyYXRpb25zLnYxLk9wZXJhdGlvbi5UYXJnZXRFbnRyeRIyCgVzdGF0ZRgFIAEoDjIjLmxvYW1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T05fU1RBVEVfU1VDQ0VFREVEEAQSGgoWT1BFUkFUSU9OX1NUQVRFX0ZBSUxFRBAFEhwKGE9QRVJBVElPTl9TVEFURV9DQU5DRUxFRBAGMssDChFPcGVyYXRpb25zU2VydmljZRJoCgxHZXRPcGVyYXRpb24SKC5sb2Ftcy5vcGVyYXRpb25zLnYxLkdldE9wZXJhdGlvblJlcXVlc3QaKS5sb2Ftcy5vcGVyYXRpb25zLnYxLkdldE9wZXJhdGlvblJlc3BvbnNlIgOQAgESbgoOTGlzdE9wZXJhdGlvbnMSKi5sb2Ftcy5vcGVyYXRpb25zLnYxLkxpc3RPcGVyYXRpb25zUmVxdWVzdBorLmxvYW1zLm9wZXJhdGlvbnMudjEuTGlzdE9wZXJhdGlvbnNSZXNwb25zZSIDkAIBEm4KD1dhdGNoT3BlcmF0aW9ucxIrLmxvYW1zLm9wZXJhdGlvbnMudjEuV2F0Y2hPcGVyYXRpb25zUmVxdWVzdBosLmxvYW1zLm9wZXJhdGlvbnMudjEuV2F0Y2hPcGVyYXRpb25zUmVzcG9uc2UwARJsCg9DYW5jZWxPcGVyYXRpb24SKy5sb2Ftcy5vcGVyYXRpb25zLnYxLkNhbmNlbE9wZXJhdGlvblJlcXVlc3QaLC5sb2Ftcy5vcGVyYXRpb25zLnYxLkNhbmNlbE9wZXJhdGlvblJlc3BvbnNlYgZwcm90bzM", [file_google_protobuf_struct, file_google_protobuf_timestamp]);
12
+ /**
13
+ * Describes the message loams.operations.v1.Operation.
14
+ * Use `create(OperationSchema)` to create a new message.
15
+ */
16
+ export const OperationSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 0);
17
+ /**
18
+ * Describes the message loams.operations.v1.Progress.
19
+ * Use `create(ProgressSchema)` to create a new message.
20
+ */
21
+ export const ProgressSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 1);
22
+ /**
23
+ * Describes the message loams.operations.v1.OperationError.
24
+ * Use `create(OperationErrorSchema)` to create a new message.
25
+ */
26
+ export const OperationErrorSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 2);
27
+ /**
28
+ * Describes the message loams.operations.v1.GetOperationRequest.
29
+ * Use `create(GetOperationRequestSchema)` to create a new message.
30
+ */
31
+ export const GetOperationRequestSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 3);
32
+ /**
33
+ * Describes the message loams.operations.v1.GetOperationResponse.
34
+ * Use `create(GetOperationResponseSchema)` to create a new message.
35
+ */
36
+ export const GetOperationResponseSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 4);
37
+ /**
38
+ * Describes the message loams.operations.v1.ListOperationsRequest.
39
+ * Use `create(ListOperationsRequestSchema)` to create a new message.
40
+ */
41
+ export const ListOperationsRequestSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 5);
42
+ /**
43
+ * Describes the message loams.operations.v1.ListOperationsResponse.
44
+ * Use `create(ListOperationsResponseSchema)` to create a new message.
45
+ */
46
+ export const ListOperationsResponseSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 6);
47
+ /**
48
+ * Describes the message loams.operations.v1.WatchOperationsRequest.
49
+ * Use `create(WatchOperationsRequestSchema)` to create a new message.
50
+ */
51
+ export const WatchOperationsRequestSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 7);
52
+ /**
53
+ * Describes the message loams.operations.v1.WatchOperationsResponse.
54
+ * Use `create(WatchOperationsResponseSchema)` to create a new message.
55
+ */
56
+ export const WatchOperationsResponseSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 8);
57
+ /**
58
+ * Describes the message loams.operations.v1.OperationSnapshot.
59
+ * Use `create(OperationSnapshotSchema)` to create a new message.
60
+ */
61
+ export const OperationSnapshotSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 9);
62
+ /**
63
+ * Describes the message loams.operations.v1.Heartbeat.
64
+ * Use `create(HeartbeatSchema)` to create a new message.
65
+ */
66
+ export const HeartbeatSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 10);
67
+ /**
68
+ * Describes the message loams.operations.v1.CancelOperationRequest.
69
+ * Use `create(CancelOperationRequestSchema)` to create a new message.
70
+ */
71
+ export const CancelOperationRequestSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 11);
72
+ /**
73
+ * Describes the message loams.operations.v1.CancelOperationResponse.
74
+ * Use `create(CancelOperationResponseSchema)` to create a new message.
75
+ */
76
+ export const CancelOperationResponseSchema = /*@__PURE__*/ messageDesc(file_loams_operations_v1_operations, 12);
77
+ /**
78
+ * @generated from enum loams.operations.v1.OperationState
79
+ */
80
+ export var OperationState;
81
+ (function (OperationState) {
82
+ /**
83
+ * @generated from enum value: OPERATION_STATE_UNSPECIFIED = 0;
84
+ */
85
+ OperationState[OperationState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
86
+ /**
87
+ * @generated from enum value: OPERATION_STATE_PENDING = 1;
88
+ */
89
+ OperationState[OperationState["PENDING"] = 1] = "PENDING";
90
+ /**
91
+ * @generated from enum value: OPERATION_STATE_AWAITING_APPROVAL = 2;
92
+ */
93
+ OperationState[OperationState["AWAITING_APPROVAL"] = 2] = "AWAITING_APPROVAL";
94
+ /**
95
+ * @generated from enum value: OPERATION_STATE_RUNNING = 3;
96
+ */
97
+ OperationState[OperationState["RUNNING"] = 3] = "RUNNING";
98
+ /**
99
+ * @generated from enum value: OPERATION_STATE_SUCCEEDED = 4;
100
+ */
101
+ OperationState[OperationState["SUCCEEDED"] = 4] = "SUCCEEDED";
102
+ /**
103
+ * @generated from enum value: OPERATION_STATE_FAILED = 5;
104
+ */
105
+ OperationState[OperationState["FAILED"] = 5] = "FAILED";
106
+ /**
107
+ * @generated from enum value: OPERATION_STATE_CANCELED = 6;
108
+ */
109
+ OperationState[OperationState["CANCELED"] = 6] = "CANCELED";
110
+ })(OperationState || (OperationState = {}));
111
+ /**
112
+ * Describes the enum loams.operations.v1.OperationState.
113
+ */
114
+ export const OperationStateSchema = /*@__PURE__*/ enumDesc(file_loams_operations_v1_operations, 0);
115
+ /**
116
+ * @generated from service loams.operations.v1.OperationsService
117
+ */
118
+ export const OperationsService = /*@__PURE__*/ serviceDesc(file_loams_operations_v1_operations, 0);
@@ -0,0 +1,182 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { ListValue, Value } from "@bufbuild/protobuf/wkt";
3
+ import type { Consistency } from "../../collection/v1/document_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file loams/sql/v1/sql.proto.
7
+ */
8
+ export declare const file_loams_sql_v1_sql: GenFile;
9
+ /**
10
+ * @generated from message loams.sql.v1.QueryRequest
11
+ */
12
+ export type QueryRequest = Message<"loams.sql.v1.QueryRequest"> & {
13
+ /**
14
+ * The namespace whose collections are the statement's tables.
15
+ *
16
+ * @generated from field: string namespace = 1;
17
+ */
18
+ namespace: string;
19
+ /**
20
+ * One read-only SQL statement.
21
+ *
22
+ * @generated from field: string sql = 2;
23
+ */
24
+ sql: string;
25
+ /**
26
+ * The values of `$1…$n`, in order.
27
+ *
28
+ * @generated from field: repeated google.protobuf.Value params = 3;
29
+ */
30
+ params: Value[];
31
+ /**
32
+ * How fresh the read is; strong when unset.
33
+ *
34
+ * @generated from field: loams.collection.v1.Consistency consistency = 4;
35
+ */
36
+ consistency?: Consistency | undefined;
37
+ /**
38
+ * At most this many rows (default 10 000, at most 100 000).
39
+ *
40
+ * @generated from field: optional uint32 max_rows = 5;
41
+ */
42
+ maxRows?: number | undefined;
43
+ };
44
+ /**
45
+ * Describes the message loams.sql.v1.QueryRequest.
46
+ * Use `create(QueryRequestSchema)` to create a new message.
47
+ */
48
+ export declare const QueryRequestSchema: GenMessage<QueryRequest>;
49
+ /**
50
+ * One result column: its name and its Arrow type, as Arrow prints it
51
+ * (`Int64`, `Utf8`, `List(Float32)`).
52
+ *
53
+ * @generated from message loams.sql.v1.Column
54
+ */
55
+ export type Column = Message<"loams.sql.v1.Column"> & {
56
+ /**
57
+ * @generated from field: string name = 1;
58
+ */
59
+ name: string;
60
+ /**
61
+ * @generated from field: string type = 2;
62
+ */
63
+ type: string;
64
+ };
65
+ /**
66
+ * Describes the message loams.sql.v1.Column.
67
+ * Use `create(ColumnSchema)` to create a new message.
68
+ */
69
+ export declare const ColumnSchema: GenMessage<Column>;
70
+ /**
71
+ * @generated from message loams.sql.v1.QueryResponse
72
+ */
73
+ export type QueryResponse = Message<"loams.sql.v1.QueryResponse"> & {
74
+ /**
75
+ * @generated from field: repeated loams.sql.v1.Column columns = 1;
76
+ */
77
+ columns: Column[];
78
+ /**
79
+ * One list per row, one value per column, in column order. A 64-bit
80
+ * integer past 2^53 is a decimal string, so it stays exact.
81
+ *
82
+ * @generated from field: repeated google.protobuf.ListValue rows = 2;
83
+ */
84
+ rows: ListValue[];
85
+ /**
86
+ * More rows existed than `max_rows` allowed.
87
+ *
88
+ * @generated from field: bool truncated = 3;
89
+ */
90
+ truncated: boolean;
91
+ /**
92
+ * The token the read was answered at, when it waited for one.
93
+ *
94
+ * @generated from field: string consistency_token = 4;
95
+ */
96
+ consistencyToken: string;
97
+ };
98
+ /**
99
+ * Describes the message loams.sql.v1.QueryResponse.
100
+ * Use `create(QueryResponseSchema)` to create a new message.
101
+ */
102
+ export declare const QueryResponseSchema: GenMessage<QueryResponse>;
103
+ /**
104
+ * @generated from message loams.sql.v1.QueryArrowRequest
105
+ */
106
+ export type QueryArrowRequest = Message<"loams.sql.v1.QueryArrowRequest"> & {
107
+ /**
108
+ * @generated from field: string namespace = 1;
109
+ */
110
+ namespace: string;
111
+ /**
112
+ * @generated from field: string sql = 2;
113
+ */
114
+ sql: string;
115
+ /**
116
+ * @generated from field: repeated google.protobuf.Value params = 3;
117
+ */
118
+ params: Value[];
119
+ /**
120
+ * @generated from field: loams.collection.v1.Consistency consistency = 4;
121
+ */
122
+ consistency?: Consistency | undefined;
123
+ /**
124
+ * @generated from field: optional uint32 max_rows = 5;
125
+ */
126
+ maxRows?: number | undefined;
127
+ };
128
+ /**
129
+ * Describes the message loams.sql.v1.QueryArrowRequest.
130
+ * Use `create(QueryArrowRequestSchema)` to create a new message.
131
+ */
132
+ export declare const QueryArrowRequestSchema: GenMessage<QueryArrowRequest>;
133
+ /**
134
+ * @generated from message loams.sql.v1.QueryArrowResponse
135
+ */
136
+ export type QueryArrowResponse = Message<"loams.sql.v1.QueryArrowResponse"> & {
137
+ /**
138
+ * The result as one Arrow IPC stream: the schema, then the batches.
139
+ *
140
+ * @generated from field: bytes arrow_ipc = 1;
141
+ */
142
+ arrowIpc: Uint8Array;
143
+ /**
144
+ * @generated from field: bool truncated = 2;
145
+ */
146
+ truncated: boolean;
147
+ /**
148
+ * @generated from field: string consistency_token = 3;
149
+ */
150
+ consistencyToken: string;
151
+ };
152
+ /**
153
+ * Describes the message loams.sql.v1.QueryArrowResponse.
154
+ * Use `create(QueryArrowResponseSchema)` to create a new message.
155
+ */
156
+ export declare const QueryArrowResponseSchema: GenMessage<QueryArrowResponse>;
157
+ /**
158
+ * @generated from service loams.sql.v1.SqlService
159
+ */
160
+ export declare const SqlService: GenService<{
161
+ /**
162
+ * Runs one read-only statement and answers its rows.
163
+ *
164
+ * @generated from rpc loams.sql.v1.SqlService.Query
165
+ */
166
+ query: {
167
+ methodKind: "unary";
168
+ input: typeof QueryRequestSchema;
169
+ output: typeof QueryResponseSchema;
170
+ };
171
+ /**
172
+ * Runs one read-only statement and answers its result as an Arrow IPC
173
+ * stream.
174
+ *
175
+ * @generated from rpc loams.sql.v1.SqlService.QueryArrow
176
+ */
177
+ queryArrow: {
178
+ methodKind: "unary";
179
+ input: typeof QueryArrowRequestSchema;
180
+ output: typeof QueryArrowResponseSchema;
181
+ };
182
+ }>;