@loams/live 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +55 -2
- package/dist/gen/loams/live/v1/admin_pb.d.ts +1225 -0
- package/dist/gen/loams/live/v1/admin_pb.js +400 -0
- package/dist/gen/loams/live/v1/live_pb.d.ts +787 -0
- package/dist/gen/loams/live/v1/live_pb.js +249 -0
- package/dist/gen/loams/live/v1/value_pb.d.ts +155 -0
- package/dist/gen/loams/live/v1/value_pb.js +36 -0
- package/dist/gen/loams/options/v1/options_pb.d.ts +97 -0
- package/dist/gen/loams/options/v1/options_pb.js +47 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +18 -0
- package/dist/live.d.ts +2 -0
- package/dist/live.js +7 -0
- package/package.json +50 -4
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// The Loams Live sync API (design §20 §7, D121).
|
|
2
|
+
//
|
|
3
|
+
// A server stream (`Watch`) plus unary calls, never bidi: browsers cannot
|
|
4
|
+
// stream full duplex over fetch, and connect-rust sends no response on
|
|
5
|
+
// HTTP/1.1 until the request body ends. So one design works on HTTP/1.1 and
|
|
6
|
+
// HTTP/2, over Connect, gRPC and gRPC-Web.
|
|
7
|
+
//
|
|
8
|
+
// The server binds loopback only (D111) until LV1 moves Live to the main
|
|
9
|
+
// port (Task 12); the listener sits behind the engine's authentication
|
|
10
|
+
// layer (`LOAMS_AUTH_MODE`, off by default on loopback). Deploying and the
|
|
11
|
+
// other admin calls are `LiveAdminService` (admin.proto).
|
|
12
|
+
//
|
|
13
|
+
// `Query` and `Mutate` answer with a `loams-request-id` header: the id their
|
|
14
|
+
// function's console lines carry in `LiveAdminService.TailLogs`.
|
|
15
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
16
|
+
import { file_loams_live_v1_value } from "./value_pb.js";
|
|
17
|
+
import { file_loams_options_v1_options } from "../../options/v1/options_pb.js";
|
|
18
|
+
/**
|
|
19
|
+
* Describes the file loams/live/v1/live.proto.
|
|
20
|
+
*/
|
|
21
|
+
export const file_loams_live_v1_live = /*@__PURE__*/ fileDesc("Chhsb2Ftcy9saXZlL3YxL2xpdmUucHJvdG8SDWxvYW1zLmxpdmUudjEiPwoMU3RhdGVWZXJzaW9uEhEKCXF1ZXJ5X3NldBgBIAEoBBIQCghpZGVudGl0eRgCIAEoBBIKCgJ0cxgDIAEoBCJsCgxXYXRjaFJlcXVlc3QSKgoHaW5pdGlhbBgBIAEoCzIXLmxvYW1zLmxpdmUudjEuUXVlcnlTZXRIABInCgZyZXN1bWUYAiABKAsyFS5sb2Ftcy5saXZlLnYxLlJlc3VtZUgAQgcKBXN0YXJ0ImcKBlJlc3VtZRIxCgxsYXN0X3ZlcnNpb24YASABKAsyGy5sb2Ftcy5saXZlLnYxLlN0YXRlVmVyc2lvbhIqCglxdWVyeV9zZXQYAiABKAsyFy5sb2Ftcy5saXZlLnYxLlF1ZXJ5U2V0IkYKCFF1ZXJ5U2V0Eg8KB3ZlcnNpb24YASABKAQSKQoHcXVlcmllcxgCIAMoCzIYLmxvYW1zLmxpdmUudjEuUXVlcnlTcGVjIlMKCVF1ZXJ5U3BlYxIQCghxdWVyeV9pZBgBIAEoDRIQCghmdW5jdGlvbhgCIAEoCRIiCgRhcmdzGAMgASgLMhQubG9hbXMubGl2ZS52MS5WYWx1ZSKGAQoVTW9kaWZ5UXVlcnlTZXRSZXF1ZXN0EhIKCnNlc3Npb25faWQYASABKAkSFAoMYmFzZV92ZXJzaW9uGAIgASgEEhMKC25ld192ZXJzaW9uGAMgASgEEi4KB2NoYW5nZXMYBCADKAsyHS5sb2Ftcy5saXZlLnYxLlF1ZXJ5U2V0Q2hhbmdlIlUKDlF1ZXJ5U2V0Q2hhbmdlEicKA2FkZBgBIAEoCzIYLmxvYW1zLmxpdmUudjEuUXVlcnlTcGVjSAASEAoGcmVtb3ZlGAIgASgNS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AcSBXdhdGNoMAEScwoOTW9kaWZ5UXVlcnlTZXQSJC5sb2Ftcy5saXZlLnYxLk1vZGlmeVF1ZXJ5U2V0UmVxdWVzdBolLmxvYW1zLmxpdmUudjEuTW9kaWZ5UXVlcnlTZXRSZXNwb25zZSIUkrUYEBIObW9kaWZ5UXVlcnlTZXQSawoMQXV0aGVudGljYXRlEiIubG9hbXMubGl2ZS52MS5BdXRoZW50aWNhdGVSZXF1ZXN0GiMubG9hbXMubGl2ZS52MS5BdXRoZW50aWNhdGVSZXNwb25zZSISkrUYDhIMYXV0aGVudGljYXRlElcKBVF1ZXJ5EhsubG9hbXMubGl2ZS52MS5RdWVyeVJlcXVlc3QaHC5sb2Ftcy5saXZlLnYxLlF1ZXJ5UmVzcG9uc2UiE5K1GA8KBnRhYmxlcxIFcXVlcnkSWwoGTXV0YXRlEhwubG9hbXMubGl2ZS52MS5NdXRhdGVSZXF1ZXN0Gh0ubG9hbXMubGl2ZS52MS5NdXRhdGVSZXNwb25zZSIUkrUYEAoGdGFibGVzEgZtdXRhdGUaQIq1GDwKBGxpdmUSMkxpdmUgc3luYzogd2F0Y2ggYSBxdWVyeSBzZXQgb3ZlciBhIHNlcnZlciBzdHJlYW0uGAFiBnByb3RvMw", [file_loams_live_v1_value, file_loams_options_v1_options]);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message loams.live.v1.StateVersion.
|
|
24
|
+
* Use `create(StateVersionSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const StateVersionSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 0);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message loams.live.v1.WatchRequest.
|
|
29
|
+
* Use `create(WatchRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const WatchRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 1);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message loams.live.v1.Resume.
|
|
34
|
+
* Use `create(ResumeSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const ResumeSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 2);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message loams.live.v1.QuerySet.
|
|
39
|
+
* Use `create(QuerySetSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const QuerySetSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 3);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message loams.live.v1.QuerySpec.
|
|
44
|
+
* Use `create(QuerySpecSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const QuerySpecSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 4);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message loams.live.v1.ModifyQuerySetRequest.
|
|
49
|
+
* Use `create(ModifyQuerySetRequestSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const ModifyQuerySetRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 5);
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message loams.live.v1.QuerySetChange.
|
|
54
|
+
* Use `create(QuerySetChangeSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const QuerySetChangeSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 6);
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message loams.live.v1.ModifyQuerySetResponse.
|
|
59
|
+
* Use `create(ModifyQuerySetResponseSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const ModifyQuerySetResponseSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 7);
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message loams.live.v1.AuthenticateRequest.
|
|
64
|
+
* Use `create(AuthenticateRequestSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const AuthenticateRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 8);
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message loams.live.v1.AuthenticateResponse.
|
|
69
|
+
* Use `create(AuthenticateResponseSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export const AuthenticateResponseSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 9);
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message loams.live.v1.Transition.
|
|
74
|
+
* Use `create(TransitionSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export const TransitionSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 10);
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message loams.live.v1.QueryUpdate.
|
|
79
|
+
* Use `create(QueryUpdateSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const QueryUpdateSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 11);
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message loams.live.v1.Removed.
|
|
84
|
+
* Use `create(RemovedSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export const RemovedSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 12);
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message loams.live.v1.QueryRequest.
|
|
89
|
+
* Use `create(QueryRequestSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export const QueryRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 13);
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message loams.live.v1.QueryResponse.
|
|
94
|
+
* Use `create(QueryResponseSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export const QueryResponseSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 14);
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message loams.live.v1.MutateRequest.
|
|
99
|
+
* Use `create(MutateRequestSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export const MutateRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 15);
|
|
102
|
+
/**
|
|
103
|
+
* Describes the message loams.live.v1.MutateResponse.
|
|
104
|
+
* Use `create(MutateResponseSchema)` to create a new message.
|
|
105
|
+
*/
|
|
106
|
+
export const MutateResponseSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 16);
|
|
107
|
+
/**
|
|
108
|
+
* Describes the message loams.live.v1.Schema.
|
|
109
|
+
* Use `create(SchemaSchema)` to create a new message.
|
|
110
|
+
*/
|
|
111
|
+
export const SchemaSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 17);
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message loams.live.v1.TableSchema.
|
|
114
|
+
* Use `create(TableSchemaSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export const TableSchemaSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 18);
|
|
117
|
+
/**
|
|
118
|
+
* Describes the message loams.live.v1.IndexSchema.
|
|
119
|
+
* Use `create(IndexSchemaSchema)` to create a new message.
|
|
120
|
+
*/
|
|
121
|
+
export const IndexSchemaSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 19);
|
|
122
|
+
/**
|
|
123
|
+
* Describes the message loams.live.v1.Validator.
|
|
124
|
+
* Use `create(ValidatorSchema)` to create a new message.
|
|
125
|
+
*/
|
|
126
|
+
export const ValidatorSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 20);
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message loams.live.v1.ValidatorObject.
|
|
129
|
+
* Use `create(ValidatorObjectSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export const ValidatorObjectSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 21);
|
|
132
|
+
/**
|
|
133
|
+
* Describes the message loams.live.v1.ValidatorUnion.
|
|
134
|
+
* Use `create(ValidatorUnionSchema)` to create a new message.
|
|
135
|
+
*/
|
|
136
|
+
export const ValidatorUnionSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 22);
|
|
137
|
+
/**
|
|
138
|
+
* Describes the message loams.live.v1.LiveError.
|
|
139
|
+
* Use `create(LiveErrorSchema)` to create a new message.
|
|
140
|
+
*/
|
|
141
|
+
export const LiveErrorSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 23);
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum loams.live.v1.ValidatorPrimitive
|
|
144
|
+
*/
|
|
145
|
+
export var ValidatorPrimitive;
|
|
146
|
+
(function (ValidatorPrimitive) {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_UNSPECIFIED = 0;
|
|
149
|
+
*/
|
|
150
|
+
ValidatorPrimitive[ValidatorPrimitive["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_NULL = 1;
|
|
153
|
+
*/
|
|
154
|
+
ValidatorPrimitive[ValidatorPrimitive["NULL"] = 1] = "NULL";
|
|
155
|
+
/**
|
|
156
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_INT64 = 2;
|
|
157
|
+
*/
|
|
158
|
+
ValidatorPrimitive[ValidatorPrimitive["INT64"] = 2] = "INT64";
|
|
159
|
+
/**
|
|
160
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_FLOAT64 = 3;
|
|
161
|
+
*/
|
|
162
|
+
ValidatorPrimitive[ValidatorPrimitive["FLOAT64"] = 3] = "FLOAT64";
|
|
163
|
+
/**
|
|
164
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_BOOLEAN = 4;
|
|
165
|
+
*/
|
|
166
|
+
ValidatorPrimitive[ValidatorPrimitive["BOOLEAN"] = 4] = "BOOLEAN";
|
|
167
|
+
/**
|
|
168
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_STRING = 5;
|
|
169
|
+
*/
|
|
170
|
+
ValidatorPrimitive[ValidatorPrimitive["STRING"] = 5] = "STRING";
|
|
171
|
+
/**
|
|
172
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_BYTES = 6;
|
|
173
|
+
*/
|
|
174
|
+
ValidatorPrimitive[ValidatorPrimitive["BYTES"] = 6] = "BYTES";
|
|
175
|
+
/**
|
|
176
|
+
* @generated from enum value: VALIDATOR_PRIMITIVE_ANY = 7;
|
|
177
|
+
*/
|
|
178
|
+
ValidatorPrimitive[ValidatorPrimitive["ANY"] = 7] = "ANY";
|
|
179
|
+
})(ValidatorPrimitive || (ValidatorPrimitive = {}));
|
|
180
|
+
/**
|
|
181
|
+
* Describes the enum loams.live.v1.ValidatorPrimitive.
|
|
182
|
+
*/
|
|
183
|
+
export const ValidatorPrimitiveSchema = /*@__PURE__*/ enumDesc(file_loams_live_v1_live, 0);
|
|
184
|
+
/**
|
|
185
|
+
* @generated from enum loams.live.v1.ErrorCode
|
|
186
|
+
*/
|
|
187
|
+
export var ErrorCode;
|
|
188
|
+
(function (ErrorCode) {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
|
|
191
|
+
*/
|
|
192
|
+
ErrorCode[ErrorCode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
193
|
+
/**
|
|
194
|
+
* The arguments or a value are invalid.
|
|
195
|
+
*
|
|
196
|
+
* @generated from enum value: ERROR_CODE_INVALID_ARGUMENT = 1;
|
|
197
|
+
*/
|
|
198
|
+
ErrorCode[ErrorCode["INVALID_ARGUMENT"] = 1] = "INVALID_ARGUMENT";
|
|
199
|
+
/**
|
|
200
|
+
* The function, table or document does not exist.
|
|
201
|
+
*
|
|
202
|
+
* @generated from enum value: ERROR_CODE_NOT_FOUND = 2;
|
|
203
|
+
*/
|
|
204
|
+
ErrorCode[ErrorCode["NOT_FOUND"] = 2] = "NOT_FOUND";
|
|
205
|
+
/**
|
|
206
|
+
* @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 3;
|
|
207
|
+
*/
|
|
208
|
+
ErrorCode[ErrorCode["FAILED_PRECONDITION"] = 3] = "FAILED_PRECONDITION";
|
|
209
|
+
/**
|
|
210
|
+
* A limit (design §20 §4.1, §5.1) was exceeded; the message names it.
|
|
211
|
+
*
|
|
212
|
+
* @generated from enum value: ERROR_CODE_RESOURCE_EXHAUSTED = 4;
|
|
213
|
+
*/
|
|
214
|
+
ErrorCode[ErrorCode["RESOURCE_EXHAUSTED"] = 4] = "RESOURCE_EXHAUSTED";
|
|
215
|
+
/**
|
|
216
|
+
* The function threw.
|
|
217
|
+
*
|
|
218
|
+
* @generated from enum value: ERROR_CODE_FUNCTION_ERROR = 5;
|
|
219
|
+
*/
|
|
220
|
+
ErrorCode[ErrorCode["FUNCTION_ERROR"] = 5] = "FUNCTION_ERROR";
|
|
221
|
+
/**
|
|
222
|
+
* The function ran past its CPU limit.
|
|
223
|
+
*
|
|
224
|
+
* @generated from enum value: ERROR_CODE_FUNCTION_TIMEOUT = 6;
|
|
225
|
+
*/
|
|
226
|
+
ErrorCode[ErrorCode["FUNCTION_TIMEOUT"] = 6] = "FUNCTION_TIMEOUT";
|
|
227
|
+
/**
|
|
228
|
+
* The function ran past its memory limit.
|
|
229
|
+
*
|
|
230
|
+
* @generated from enum value: ERROR_CODE_FUNCTION_OUT_OF_MEMORY = 7;
|
|
231
|
+
*/
|
|
232
|
+
ErrorCode[ErrorCode["FUNCTION_OUT_OF_MEMORY"] = 7] = "FUNCTION_OUT_OF_MEMORY";
|
|
233
|
+
/**
|
|
234
|
+
* @generated from enum value: ERROR_CODE_UNAVAILABLE = 8;
|
|
235
|
+
*/
|
|
236
|
+
ErrorCode[ErrorCode["UNAVAILABLE"] = 8] = "UNAVAILABLE";
|
|
237
|
+
/**
|
|
238
|
+
* @generated from enum value: ERROR_CODE_INTERNAL = 9;
|
|
239
|
+
*/
|
|
240
|
+
ErrorCode[ErrorCode["INTERNAL"] = 9] = "INTERNAL";
|
|
241
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
242
|
+
/**
|
|
243
|
+
* Describes the enum loams.live.v1.ErrorCode.
|
|
244
|
+
*/
|
|
245
|
+
export const ErrorCodeSchema = /*@__PURE__*/ enumDesc(file_loams_live_v1_live, 1);
|
|
246
|
+
/**
|
|
247
|
+
* @generated from service loams.live.v1.LiveService
|
|
248
|
+
*/
|
|
249
|
+
export const LiveService = /*@__PURE__*/ serviceDesc(file_loams_live_v1_live, 0);
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file loams/live/v1/value.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_loams_live_v1_value: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* A Loams Live value.
|
|
9
|
+
*
|
|
10
|
+
* @generated from message loams.live.v1.Value
|
|
11
|
+
*/
|
|
12
|
+
export type Value = Message<"loams.live.v1.Value"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Exactly one kind is set; a Value with none set is invalid.
|
|
15
|
+
*
|
|
16
|
+
* @generated from oneof loams.live.v1.Value.kind
|
|
17
|
+
*/
|
|
18
|
+
kind: {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: loams.live.v1.Null null_value = 1;
|
|
21
|
+
*/
|
|
22
|
+
value: Null;
|
|
23
|
+
case: "nullValue";
|
|
24
|
+
} | {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: int64 int64_value = 2;
|
|
27
|
+
*/
|
|
28
|
+
value: bigint;
|
|
29
|
+
case: "int64Value";
|
|
30
|
+
} | {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: double double_value = 3;
|
|
33
|
+
*/
|
|
34
|
+
value: number;
|
|
35
|
+
case: "doubleValue";
|
|
36
|
+
} | {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: bool bool_value = 4;
|
|
39
|
+
*/
|
|
40
|
+
value: boolean;
|
|
41
|
+
case: "boolValue";
|
|
42
|
+
} | {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: string string_value = 5;
|
|
45
|
+
*/
|
|
46
|
+
value: string;
|
|
47
|
+
case: "stringValue";
|
|
48
|
+
} | {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bytes bytes_value = 6;
|
|
51
|
+
*/
|
|
52
|
+
value: Uint8Array;
|
|
53
|
+
case: "bytesValue";
|
|
54
|
+
} | {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: loams.live.v1.Array array_value = 7;
|
|
57
|
+
*/
|
|
58
|
+
value: Array;
|
|
59
|
+
case: "arrayValue";
|
|
60
|
+
} | {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: loams.live.v1.Object object_value = 8;
|
|
63
|
+
*/
|
|
64
|
+
value: Object$;
|
|
65
|
+
case: "objectValue";
|
|
66
|
+
} | {
|
|
67
|
+
case: undefined;
|
|
68
|
+
value?: undefined;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message loams.live.v1.Value.
|
|
73
|
+
* Use `create(ValueSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ValueSchema: GenMessage<Value>;
|
|
76
|
+
/**
|
|
77
|
+
* The null value. An empty message rather than an enum, so the JSON form is
|
|
78
|
+
* `{"nullValue": {}}` in every client.
|
|
79
|
+
*
|
|
80
|
+
* @generated from message loams.live.v1.Null
|
|
81
|
+
*/
|
|
82
|
+
export type Null = Message<"loams.live.v1.Null"> & {};
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message loams.live.v1.Null.
|
|
85
|
+
* Use `create(NullSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const NullSchema: GenMessage<Null>;
|
|
88
|
+
/**
|
|
89
|
+
* An ordered list of values (at most 8 192 elements in R1).
|
|
90
|
+
*
|
|
91
|
+
* @generated from message loams.live.v1.Array
|
|
92
|
+
*/
|
|
93
|
+
export type Array = Message<"loams.live.v1.Array"> & {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: repeated loams.live.v1.Value values = 1;
|
|
96
|
+
*/
|
|
97
|
+
values: Value[];
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message loams.live.v1.Array.
|
|
101
|
+
* Use `create(ArraySchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export declare const ArraySchema: GenMessage<Array>;
|
|
104
|
+
/**
|
|
105
|
+
* A map of field name to value (at most 1 024 fields in R1). Field order is
|
|
106
|
+
* not significant.
|
|
107
|
+
*
|
|
108
|
+
* @generated from message loams.live.v1.Object
|
|
109
|
+
*/
|
|
110
|
+
export type Object$ = Message<"loams.live.v1.Object"> & {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: map<string, loams.live.v1.Value> fields = 1;
|
|
113
|
+
*/
|
|
114
|
+
fields: {
|
|
115
|
+
[key: string]: Value;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Describes the message loams.live.v1.Object.
|
|
120
|
+
* Use `create(ObjectSchema)` to create a new message.
|
|
121
|
+
*/
|
|
122
|
+
export declare const ObjectSchema: GenMessage<Object$>;
|
|
123
|
+
/**
|
|
124
|
+
* A stored document: the value of a document key (§20 §4.3). The system
|
|
125
|
+
* fields `_id` and `_creationTime` are not in `fields`: the id is the key and
|
|
126
|
+
* the creation time is `creation_ms`.
|
|
127
|
+
*
|
|
128
|
+
* @generated from message loams.live.v1.DocumentRecord
|
|
129
|
+
*/
|
|
130
|
+
export type DocumentRecord = Message<"loams.live.v1.DocumentRecord"> & {
|
|
131
|
+
/**
|
|
132
|
+
* The encoding version; 1 in R1.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: uint32 format = 1;
|
|
135
|
+
*/
|
|
136
|
+
format: number;
|
|
137
|
+
/**
|
|
138
|
+
* Milliseconds since the epoch: the TSO physical time of the inserting
|
|
139
|
+
* transaction's start timestamp.
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: uint64 creation_ms = 2;
|
|
142
|
+
*/
|
|
143
|
+
creationMs: bigint;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: map<string, loams.live.v1.Value> fields = 3;
|
|
146
|
+
*/
|
|
147
|
+
fields: {
|
|
148
|
+
[key: string]: Value;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Describes the message loams.live.v1.DocumentRecord.
|
|
153
|
+
* Use `create(DocumentRecordSchema)` to create a new message.
|
|
154
|
+
*/
|
|
155
|
+
export declare const DocumentRecordSchema: GenMessage<DocumentRecord>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Loams Live values and stored documents (design §20 §4.1, §4.3; D121).
|
|
2
|
+
//
|
|
3
|
+
// One definition serves storage, the wire and every generated client, so a
|
|
4
|
+
// value means the same everywhere. `int64` and `double` are distinct types:
|
|
5
|
+
// `1` and `1.0` are different values. In the Connect JSON encoding an int64
|
|
6
|
+
// is a string ("-9223372036854775808"), so it stays lossless in JavaScript.
|
|
7
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file loams/live/v1/value.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_loams_live_v1_value = /*@__PURE__*/ fileDesc("Chlsb2Ftcy9saXZlL3YxL3ZhbHVlLnByb3RvEg1sb2Ftcy5saXZlLnYxIooCCgVWYWx1ZRIpCgpudWxsX3ZhbHVlGAEgASgLMhMubG9hbXMubGl2ZS52MS5OdWxsSAASFQoLaW50NjRfdmFsdWUYAiABKANIABIWCgxkb3VibGVfdmFsdWUYAyABKAFIABIUCgpib29sX3ZhbHVlGAQgASgISAASFgoMc3RyaW5nX3ZhbHVlGAUgASgJSAASFQoLYnl0ZXNfdmFsdWUYBiABKAxIABIrCgthcnJheV92YWx1ZRgHIAEoCzIULmxvYW1zLmxpdmUudjEuQXJyYXlIABItCgxvYmplY3RfdmFsdWUYCCABKAsyFS5sb2Ftcy5saXZlLnYxLk9iamVjdEgAQgYKBGtpbmQiBgoETnVsbCItCgVBcnJheRIkCgZ2YWx1ZXMYASADKAsyFC5sb2Ftcy5saXZlLnYxLlZhbHVlIoABCgZPYmplY3QSMQoGZmllbGRzGAEgAygLMiEubG9hbXMubGl2ZS52MS5PYmplY3QuRmllbGRzRW50cnkaQwoLRmllbGRzRW50cnkSCwoDa2V5GAEgASgJEiMKBXZhbHVlGAIgASgLMhQubG9hbXMubGl2ZS52MS5WYWx1ZToCOAEitQEKDkRvY3VtZW50UmVjb3JkEg4KBmZvcm1hdBgBIAEoDRITCgtjcmVhdGlvbl9tcxgCIAEoBBI5CgZmaWVsZHMYAyADKAsyKS5sb2Ftcy5saXZlLnYxLkRvY3VtZW50UmVjb3JkLkZpZWxkc0VudHJ5GkMKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIjCgV2YWx1ZRgCIAEoCzIULmxvYW1zLmxpdmUudjEuVmFsdWU6AjgBYgZwcm90bzM");
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message loams.live.v1.Value.
|
|
14
|
+
* Use `create(ValueSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ValueSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_value, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message loams.live.v1.Null.
|
|
19
|
+
* Use `create(NullSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const NullSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_value, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message loams.live.v1.Array.
|
|
24
|
+
* Use `create(ArraySchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const ArraySchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_value, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message loams.live.v1.Object.
|
|
29
|
+
* Use `create(ObjectSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const ObjectSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_value, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message loams.live.v1.DocumentRecord.
|
|
34
|
+
* Use `create(DocumentRecordSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const DocumentRecordSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_value, 4);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { MethodOptions, ServiceOptions } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file loams/options/v1/options.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_loams_options_v1_options: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* The SDK module a service belongs to, set on the service.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message loams.options.v1.ModuleOptions
|
|
12
|
+
*/
|
|
13
|
+
export type ModuleOptions = Message<"loams.options.v1.ModuleOptions"> & {
|
|
14
|
+
/**
|
|
15
|
+
* The module's name in `snake_case`, for example "vector" or "admin.org".
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string name = 1;
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* One line for the module's reference docs.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: string summary = 2;
|
|
24
|
+
*/
|
|
25
|
+
summary: string;
|
|
26
|
+
/**
|
|
27
|
+
* True for a package whose wire contract may still change: `buf breaking`
|
|
28
|
+
* skips it and SDKs mark the module experimental (§44 §10.3). The first
|
|
29
|
+
* such package is `loams.live.v1` (R1), which carries this option when its
|
|
30
|
+
* server-side service lands in R1 Task 12 — annotating it earlier would
|
|
31
|
+
* change the descriptor the committed `sdks/live-typescript` output was
|
|
32
|
+
* generated from.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: bool unstable = 3;
|
|
35
|
+
*/
|
|
36
|
+
unstable: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message loams.options.v1.ModuleOptions.
|
|
40
|
+
* Use `create(ModuleOptionsSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export declare const ModuleOptionsSchema: GenMessage<ModuleOptions>;
|
|
43
|
+
/**
|
|
44
|
+
* One facade call backed by a method, set on the method.
|
|
45
|
+
*
|
|
46
|
+
* `QueryService/Search` backs two calls (`loams.vector.search` and
|
|
47
|
+
* `loams.search.query`) of one RPC, so this option is repeated: the facade
|
|
48
|
+
* reads each entry as a separate method on a module (§44 §7.3).
|
|
49
|
+
*
|
|
50
|
+
* @generated from message loams.options.v1.FacadeOptions
|
|
51
|
+
*/
|
|
52
|
+
export type FacadeOptions = Message<"loams.options.v1.FacadeOptions"> & {
|
|
53
|
+
/**
|
|
54
|
+
* The module the call is exposed in; empty means the service's module.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: string module = 1;
|
|
57
|
+
*/
|
|
58
|
+
module: string;
|
|
59
|
+
/**
|
|
60
|
+
* The call's name in `snake_case`; empty means the method name.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: string name = 2;
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* Overrides the retry class the facade derives from `idempotency_level`
|
|
67
|
+
* and the presence of an `idempotency_key` (D610): true lets the SDK
|
|
68
|
+
* retry the call on its own.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: bool retry_safe = 3;
|
|
71
|
+
*/
|
|
72
|
+
retrySafe: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* AIP-158 pagination as "<items field>:<next page token field>", for
|
|
75
|
+
* example "collections:next_page_token"; the facade adds a `list_all`
|
|
76
|
+
* iterator for it.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: string pagination = 4;
|
|
79
|
+
*/
|
|
80
|
+
pagination: string;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message loams.options.v1.FacadeOptions.
|
|
84
|
+
* Use `create(FacadeOptionsSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const FacadeOptionsSchema: GenMessage<FacadeOptions>;
|
|
87
|
+
/**
|
|
88
|
+
* Extension numbers 50001-50099 are this package's; the 50000-99999 range
|
|
89
|
+
* is the one protobuf reserves for an organisation's own options.
|
|
90
|
+
*
|
|
91
|
+
* @generated from extension: loams.options.v1.ModuleOptions module = 50001;
|
|
92
|
+
*/
|
|
93
|
+
export declare const module: GenExtension<ServiceOptions, ModuleOptions>;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from extension: repeated loams.options.v1.FacadeOptions facade = 50002;
|
|
96
|
+
*/
|
|
97
|
+
export declare const facade: GenExtension<MethodOptions, FacadeOptions[]>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// The annotations that drive the SDK facade (design §44 §7.3, D606; API1
|
|
2
|
+
// Task 1).
|
|
3
|
+
//
|
|
4
|
+
// Every public `loams.<service>.v1` service names the SDK module it belongs
|
|
5
|
+
// to (`loams.collections`, `loams.vector`, `loams.admin.org`, ...), and a
|
|
6
|
+
// method may name the facade call or calls it backs.
|
|
7
|
+
// `protoc-gen-loams-facade` (SDK1 Task 3) reads these options out of the
|
|
8
|
+
// descriptor set and renders one facade per language from the templates in
|
|
9
|
+
// `sdks/templates/<lang>/`, so the thirteen SDKs cannot drift. The server
|
|
10
|
+
// ignores them at runtime: an option is metadata for the generator, never
|
|
11
|
+
// behaviour.
|
|
12
|
+
//
|
|
13
|
+
// This package is deliberately not in any SDK's wire surface: it declares no
|
|
14
|
+
// message of its own that a client sends, and no SDK method takes or returns
|
|
15
|
+
// one. `buf generate` does list it, because a service that carries these
|
|
16
|
+
// annotations has them in its descriptor and `protoc-gen-es` writes that
|
|
17
|
+
// import into the generated file. SDK2 Task 0 found this: annotating
|
|
18
|
+
// `loams.instance.v1.InstanceService` for the SDK facade made
|
|
19
|
+
// `buf.gen.apps.yaml` generate `loams/options/v1/options_pb.ts`, which
|
|
20
|
+
// `@loams/proto/options` then re-exports.
|
|
21
|
+
import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
22
|
+
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
23
|
+
/**
|
|
24
|
+
* Describes the file loams/options/v1/options.proto.
|
|
25
|
+
*/
|
|
26
|
+
export const file_loams_options_v1_options = /*@__PURE__*/ fileDesc("Ch5sb2Ftcy9vcHRpb25zL3YxL29wdGlvbnMucHJvdG8SEGxvYW1zLm9wdGlvbnMudjEiQAoNTW9kdWxlT3B0aW9ucxIMCgRuYW1lGAEgASgJEg8KB3N1bW1hcnkYAiABKAkSEAoIdW5zdGFibGUYAyABKAgiVQoNRmFjYWRlT3B0aW9ucxIOCgZtb2R1bGUYASABKAkSDAoEbmFtZRgCIAEoCRISCgpyZXRyeV9zYWZlGAMgASgIEhIKCnBhZ2luYXRpb24YBCABKAk6WgoGbW9kdWxlEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zGNGGAyABKAsyHy5sb2Ftcy5vcHRpb25zLnYxLk1vZHVsZU9wdGlvbnNSBm1vZHVsZTpZCgZmYWNhZGUSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxjShgMgAygLMh8ubG9hbXMub3B0aW9ucy52MS5GYWNhZGVPcHRpb25zUgZmYWNhZGViBnByb3RvMw", [file_google_protobuf_descriptor]);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message loams.options.v1.ModuleOptions.
|
|
29
|
+
* Use `create(ModuleOptionsSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const ModuleOptionsSchema = /*@__PURE__*/ messageDesc(file_loams_options_v1_options, 0);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message loams.options.v1.FacadeOptions.
|
|
34
|
+
* Use `create(FacadeOptionsSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const FacadeOptionsSchema = /*@__PURE__*/ messageDesc(file_loams_options_v1_options, 1);
|
|
37
|
+
/**
|
|
38
|
+
* Extension numbers 50001-50099 are this package's; the 50000-99999 range
|
|
39
|
+
* is the one protobuf reserves for an organisation's own options.
|
|
40
|
+
*
|
|
41
|
+
* @generated from extension: loams.options.v1.ModuleOptions module = 50001;
|
|
42
|
+
*/
|
|
43
|
+
export const module = /*@__PURE__*/ extDesc(file_loams_options_v1_options, 0);
|
|
44
|
+
/**
|
|
45
|
+
* @generated from extension: repeated loams.options.v1.FacadeOptions facade = 50002;
|
|
46
|
+
*/
|
|
47
|
+
export const facade = /*@__PURE__*/ extDesc(file_loams_options_v1_options, 1);
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './gen/loams/live/v1/admin_pb.js';
|
|
2
|
+
export * from './gen/loams/live/v1/live_pb.js';
|
|
3
|
+
export * from './gen/loams/live/v1/value_pb.js';
|
|
4
|
+
/** The proto package this module generates, as `GetInstance.api_versions` names it. */
|
|
5
|
+
export declare const LIVE_API_PACKAGE = "loams.live.v1";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @loams/live: the generated `loams.live.v1` messages and the `LiveService`
|
|
2
|
+
// and `LiveAdminService` descriptors that `@connectrpc/connect` turns into
|
|
3
|
+
// clients (R1 plan Task 7, LV1 plan Task 10).
|
|
4
|
+
//
|
|
5
|
+
// Everything under ./gen is written by `buf generate` from
|
|
6
|
+
// `sdks/typescript/buf.gen.live.yaml` and committed; CI regenerates and fails
|
|
7
|
+
// on a diff. The package is folded into `sdks/typescript/` (design §44 §10.2)
|
|
8
|
+
// and `@loams/client` imports its types through the `@loams/live/live` path,
|
|
9
|
+
// which is why the service's package appears in the SDK's facade bindings.
|
|
10
|
+
//
|
|
11
|
+
// The live package is `unstable` (design §44 §10.3): its wire contract may
|
|
12
|
+
// still change, `buf breaking` skips it, and an SDK marks the modules built on
|
|
13
|
+
// it experimental.
|
|
14
|
+
export * from './gen/loams/live/v1/admin_pb.js';
|
|
15
|
+
export * from './gen/loams/live/v1/live_pb.js';
|
|
16
|
+
export * from './gen/loams/live/v1/value_pb.js';
|
|
17
|
+
/** The proto package this module generates, as `GetInstance.api_versions` names it. */
|
|
18
|
+
export const LIVE_API_PACKAGE = 'loams.live.v1';
|
package/dist/live.d.ts
ADDED
package/dist/live.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// `@loams/live/live`: the `loams.live.v1` package's API messages and its two
|
|
2
|
+
// services, `LiveService` (live_pb) and `LiveAdminService` (admin_pb, LV1
|
|
3
|
+
// Task 10). The SDK facade imports the package's types from this one path
|
|
4
|
+
// (`package=loams.live.v1=@loams/live/live` in sdks/typescript/buf.gen.yaml),
|
|
5
|
+
// so it re-exports both generated files.
|
|
6
|
+
export * from './gen/loams/live/v1/admin_pb.js';
|
|
7
|
+
export * from './gen/loams/live/v1/live_pb.js';
|