@loams/live 0.0.0-stage → 0.1.0-preview.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.
@@ -0,0 +1,239 @@
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("Chhsb2Ftcy9saXZlL3YxL2xpdmUucHJvdG8SDWxvYW1zLmxpdmUudjEiPwoMU3RhdGVWZXJzaW9uEhEKCXF1ZXJ5X3NldBgBIAEoBBIQCghpZGVudGl0eRgCIAEoBBIKCgJ0cxgDIAEoBCJsCgxXYXRjaFJlcXVlc3QSKgoHaW5pdGlhbBgBIAEoCzIXLmxvYW1zLmxpdmUudjEuUXVlcnlTZXRIABInCgZyZXN1bWUYAiABKAsyFS5sb2Ftcy5saXZlLnYxLlJlc3VtZUgAQgcKBXN0YXJ0ImcKBlJlc3VtZRIxCgxsYXN0X3ZlcnNpb24YASABKAsyGy5sb2Ftcy5saXZlLnYxLlN0YXRlVmVyc2l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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.Transition.
64
+ * Use `create(TransitionSchema)` to create a new message.
65
+ */
66
+ export const TransitionSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 8);
67
+ /**
68
+ * Describes the message loams.live.v1.QueryUpdate.
69
+ * Use `create(QueryUpdateSchema)` to create a new message.
70
+ */
71
+ export const QueryUpdateSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 9);
72
+ /**
73
+ * Describes the message loams.live.v1.Removed.
74
+ * Use `create(RemovedSchema)` to create a new message.
75
+ */
76
+ export const RemovedSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 10);
77
+ /**
78
+ * Describes the message loams.live.v1.QueryRequest.
79
+ * Use `create(QueryRequestSchema)` to create a new message.
80
+ */
81
+ export const QueryRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 11);
82
+ /**
83
+ * Describes the message loams.live.v1.QueryResponse.
84
+ * Use `create(QueryResponseSchema)` to create a new message.
85
+ */
86
+ export const QueryResponseSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 12);
87
+ /**
88
+ * Describes the message loams.live.v1.MutateRequest.
89
+ * Use `create(MutateRequestSchema)` to create a new message.
90
+ */
91
+ export const MutateRequestSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 13);
92
+ /**
93
+ * Describes the message loams.live.v1.MutateResponse.
94
+ * Use `create(MutateResponseSchema)` to create a new message.
95
+ */
96
+ export const MutateResponseSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 14);
97
+ /**
98
+ * Describes the message loams.live.v1.Schema.
99
+ * Use `create(SchemaSchema)` to create a new message.
100
+ */
101
+ export const SchemaSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 15);
102
+ /**
103
+ * Describes the message loams.live.v1.TableSchema.
104
+ * Use `create(TableSchemaSchema)` to create a new message.
105
+ */
106
+ export const TableSchemaSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 16);
107
+ /**
108
+ * Describes the message loams.live.v1.IndexSchema.
109
+ * Use `create(IndexSchemaSchema)` to create a new message.
110
+ */
111
+ export const IndexSchemaSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 17);
112
+ /**
113
+ * Describes the message loams.live.v1.Validator.
114
+ * Use `create(ValidatorSchema)` to create a new message.
115
+ */
116
+ export const ValidatorSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 18);
117
+ /**
118
+ * Describes the message loams.live.v1.ValidatorObject.
119
+ * Use `create(ValidatorObjectSchema)` to create a new message.
120
+ */
121
+ export const ValidatorObjectSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 19);
122
+ /**
123
+ * Describes the message loams.live.v1.ValidatorUnion.
124
+ * Use `create(ValidatorUnionSchema)` to create a new message.
125
+ */
126
+ export const ValidatorUnionSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 20);
127
+ /**
128
+ * Describes the message loams.live.v1.LiveError.
129
+ * Use `create(LiveErrorSchema)` to create a new message.
130
+ */
131
+ export const LiveErrorSchema = /*@__PURE__*/ messageDesc(file_loams_live_v1_live, 21);
132
+ /**
133
+ * @generated from enum loams.live.v1.ValidatorPrimitive
134
+ */
135
+ export var ValidatorPrimitive;
136
+ (function (ValidatorPrimitive) {
137
+ /**
138
+ * @generated from enum value: VALIDATOR_PRIMITIVE_UNSPECIFIED = 0;
139
+ */
140
+ ValidatorPrimitive[ValidatorPrimitive["UNSPECIFIED"] = 0] = "UNSPECIFIED";
141
+ /**
142
+ * @generated from enum value: VALIDATOR_PRIMITIVE_NULL = 1;
143
+ */
144
+ ValidatorPrimitive[ValidatorPrimitive["NULL"] = 1] = "NULL";
145
+ /**
146
+ * @generated from enum value: VALIDATOR_PRIMITIVE_INT64 = 2;
147
+ */
148
+ ValidatorPrimitive[ValidatorPrimitive["INT64"] = 2] = "INT64";
149
+ /**
150
+ * @generated from enum value: VALIDATOR_PRIMITIVE_FLOAT64 = 3;
151
+ */
152
+ ValidatorPrimitive[ValidatorPrimitive["FLOAT64"] = 3] = "FLOAT64";
153
+ /**
154
+ * @generated from enum value: VALIDATOR_PRIMITIVE_BOOLEAN = 4;
155
+ */
156
+ ValidatorPrimitive[ValidatorPrimitive["BOOLEAN"] = 4] = "BOOLEAN";
157
+ /**
158
+ * @generated from enum value: VALIDATOR_PRIMITIVE_STRING = 5;
159
+ */
160
+ ValidatorPrimitive[ValidatorPrimitive["STRING"] = 5] = "STRING";
161
+ /**
162
+ * @generated from enum value: VALIDATOR_PRIMITIVE_BYTES = 6;
163
+ */
164
+ ValidatorPrimitive[ValidatorPrimitive["BYTES"] = 6] = "BYTES";
165
+ /**
166
+ * @generated from enum value: VALIDATOR_PRIMITIVE_ANY = 7;
167
+ */
168
+ ValidatorPrimitive[ValidatorPrimitive["ANY"] = 7] = "ANY";
169
+ })(ValidatorPrimitive || (ValidatorPrimitive = {}));
170
+ /**
171
+ * Describes the enum loams.live.v1.ValidatorPrimitive.
172
+ */
173
+ export const ValidatorPrimitiveSchema = /*@__PURE__*/ enumDesc(file_loams_live_v1_live, 0);
174
+ /**
175
+ * @generated from enum loams.live.v1.ErrorCode
176
+ */
177
+ export var ErrorCode;
178
+ (function (ErrorCode) {
179
+ /**
180
+ * @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
181
+ */
182
+ ErrorCode[ErrorCode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
183
+ /**
184
+ * The arguments or a value are invalid.
185
+ *
186
+ * @generated from enum value: ERROR_CODE_INVALID_ARGUMENT = 1;
187
+ */
188
+ ErrorCode[ErrorCode["INVALID_ARGUMENT"] = 1] = "INVALID_ARGUMENT";
189
+ /**
190
+ * The function, table or document does not exist.
191
+ *
192
+ * @generated from enum value: ERROR_CODE_NOT_FOUND = 2;
193
+ */
194
+ ErrorCode[ErrorCode["NOT_FOUND"] = 2] = "NOT_FOUND";
195
+ /**
196
+ * @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 3;
197
+ */
198
+ ErrorCode[ErrorCode["FAILED_PRECONDITION"] = 3] = "FAILED_PRECONDITION";
199
+ /**
200
+ * A limit (design §20 §4.1, §5.1) was exceeded; the message names it.
201
+ *
202
+ * @generated from enum value: ERROR_CODE_RESOURCE_EXHAUSTED = 4;
203
+ */
204
+ ErrorCode[ErrorCode["RESOURCE_EXHAUSTED"] = 4] = "RESOURCE_EXHAUSTED";
205
+ /**
206
+ * The function threw.
207
+ *
208
+ * @generated from enum value: ERROR_CODE_FUNCTION_ERROR = 5;
209
+ */
210
+ ErrorCode[ErrorCode["FUNCTION_ERROR"] = 5] = "FUNCTION_ERROR";
211
+ /**
212
+ * The function ran past its CPU limit.
213
+ *
214
+ * @generated from enum value: ERROR_CODE_FUNCTION_TIMEOUT = 6;
215
+ */
216
+ ErrorCode[ErrorCode["FUNCTION_TIMEOUT"] = 6] = "FUNCTION_TIMEOUT";
217
+ /**
218
+ * The function ran past its memory limit.
219
+ *
220
+ * @generated from enum value: ERROR_CODE_FUNCTION_OUT_OF_MEMORY = 7;
221
+ */
222
+ ErrorCode[ErrorCode["FUNCTION_OUT_OF_MEMORY"] = 7] = "FUNCTION_OUT_OF_MEMORY";
223
+ /**
224
+ * @generated from enum value: ERROR_CODE_UNAVAILABLE = 8;
225
+ */
226
+ ErrorCode[ErrorCode["UNAVAILABLE"] = 8] = "UNAVAILABLE";
227
+ /**
228
+ * @generated from enum value: ERROR_CODE_INTERNAL = 9;
229
+ */
230
+ ErrorCode[ErrorCode["INTERNAL"] = 9] = "INTERNAL";
231
+ })(ErrorCode || (ErrorCode = {}));
232
+ /**
233
+ * Describes the enum loams.live.v1.ErrorCode.
234
+ */
235
+ export const ErrorCodeSchema = /*@__PURE__*/ enumDesc(file_loams_live_v1_live, 1);
236
+ /**
237
+ * @generated from service loams.live.v1.LiveService
238
+ */
239
+ 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);
@@ -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
@@ -0,0 +1,2 @@
1
+ export * from './gen/loams/live/v1/admin_pb.js';
2
+ export * from './gen/loams/live/v1/live_pb.js';
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';