@f-inverse/jammi-client 0.14.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/README.md +68 -0
- package/dist/gen/jammi/v1/audit_pb.d.ts +213 -0
- package/dist/gen/jammi/v1/audit_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/audit_pb.js +63 -0
- package/dist/gen/jammi/v1/audit_pb.js.map +1 -0
- package/dist/gen/jammi/v1/channel_pb.d.ts +158 -0
- package/dist/gen/jammi/v1/channel_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/channel_pb.js +87 -0
- package/dist/gen/jammi/v1/channel_pb.js.map +1 -0
- package/dist/gen/jammi/v1/embedding_pb.d.ts +514 -0
- package/dist/gen/jammi/v1/embedding_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/embedding_pb.js +178 -0
- package/dist/gen/jammi/v1/embedding_pb.js.map +1 -0
- package/dist/gen/jammi/v1/error_pb.d.ts +739 -0
- package/dist/gen/jammi/v1/error_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/error_pb.js +94 -0
- package/dist/gen/jammi/v1/error_pb.js.map +1 -0
- package/dist/gen/jammi/v1/eval_pb.d.ts +821 -0
- package/dist/gen/jammi/v1/eval_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/eval_pb.js +187 -0
- package/dist/gen/jammi/v1/eval_pb.js.map +1 -0
- package/dist/gen/jammi/v1/fine_tune_pb.d.ts +513 -0
- package/dist/gen/jammi/v1/fine_tune_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/fine_tune_pb.js +231 -0
- package/dist/gen/jammi/v1/fine_tune_pb.js.map +1 -0
- package/dist/gen/jammi/v1/inference_pb.d.ts +144 -0
- package/dist/gen/jammi/v1/inference_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/inference_pb.js +78 -0
- package/dist/gen/jammi/v1/inference_pb.js.map +1 -0
- package/dist/gen/jammi/v1/mutable_table_pb.d.ts +183 -0
- package/dist/gen/jammi/v1/mutable_table_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/mutable_table_pb.js +59 -0
- package/dist/gen/jammi/v1/mutable_table_pb.js.map +1 -0
- package/dist/gen/jammi/v1/session_pb.d.ts +104 -0
- package/dist/gen/jammi/v1/session_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/session_pb.js +38 -0
- package/dist/gen/jammi/v1/session_pb.js.map +1 -0
- package/dist/gen/jammi/v1/trigger_pb.d.ts +399 -0
- package/dist/gen/jammi/v1/trigger_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/trigger_pb.js +80 -0
- package/dist/gen/jammi/v1/trigger_pb.js.map +1 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file jammi/v1/fine_tune.proto (package jammi.v1.fine_tune, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_jammi_v1_inference } from "./inference_pb";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file jammi/v1/fine_tune.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_jammi_v1_fine_tune = /*@__PURE__*/ fileDesc("ChhqYW1taS92MS9maW5lX3R1bmUucHJvdG8SEmphbW1pLnYxLmZpbmVfdHVuZSLKAgoNRW1iZWRkaW5nTG9zcxI7Cgdjb19zZW50GAEgASgLMiguamFtbWkudjEuZmluZV90dW5lLkVtYmVkZGluZ0xvc3MuQ29TZW50SAASPAoHdHJpcGxldBgCIAEoCzIpLmphbW1pLnYxLmZpbmVfdHVuZS5FbWJlZGRpbmdMb3NzLlRyaXBsZXRIABJgChptdWx0aXBsZV9uZWd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lTWV0aG9kEiAKHEZJTkVfVFVORV9NRVRIT0RfVU5TUEVDSUZJRUQQABIICgRMT1JBEAEqTAoSQ2xhc3NpZmljYXRpb25Mb3NzEiMKH0NMQVNTSUZJQ0FUSU9OX0xPU1NfVU5TUEVDSUZJRUQQABIRCg1DUk9TU19FTlRST1BZEAEqWgoTRWFybHlTdG9wcGluZ01ldHJpYxIlCiFFQVJMWV9TVE9QUElOR19NRVRSSUNfVU5TUEVDSUZJRUQQABIMCghWQUxfTE9TUxABEg4KClRSQUlOX0xPU1MQAipbCgpMclNjaGVkdWxlEhsKF0xSX1NDSEVEVUxFX1VOU1BFQ0lGSUVEEAASDAoIQ09OU1RBTlQQARIQCgxDT1NJTkVfREVDQVkQAhIQCgxMSU5FQVJfREVDQVkQAypJCgxMb3JhSW5pdE1vZGUSHgoaTE9SQV9JTklUX01PREVfVU5TUEVDSUZJRUQQABILCgdaRVJPU19CEAESDAoIR0FVU1NJQU4QAipLCg1CYWNrYm9uZUR0eXBlEh4KGkJBQ0tCT05FX0RUWVBFX1VOU1BFQ0lGSUVEEAASBwoDRjMyEAESCAoEQkYxNhACEgcKA0YxNhADMuABCg9GaW5lVHVuZVNlcnZpY2USZAoNU3RhcnRGaW5lVHVuZRIoLmphbW1pLnYxLmZpbmVfdHVuZS5TdGFydEZpbmVUdW5lUmVxdWVzdBopLmphbW1pLnYxLmZpbmVfdHVuZS5TdGFydEZpbmVUdW5lUmVzcG9uc2USZwoORmluZVR1bmVTdGF0dXMSKS5qYW1taS52MS5maW5lX3R1bmUuRmluZVR1bmVTdGF0dXNSZXF1ZXN0GiouamFtbWkudjEuZmluZV90dW5lLkZpbmVUdW5lU3RhdHVzUmVzcG9uc2ViBnByb3RvMw", [file_jammi_v1_inference]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.
|
|
12
|
+
* Use `create(EmbeddingLossSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const EmbeddingLossSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.CoSent.
|
|
17
|
+
* Use `create(EmbeddingLoss_CoSentSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const EmbeddingLoss_CoSentSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 0, 0);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.Triplet.
|
|
22
|
+
* Use `create(EmbeddingLoss_TripletSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const EmbeddingLoss_TripletSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 0, 1);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.MultipleNegativesRanking.
|
|
27
|
+
* Use `create(EmbeddingLoss_MultipleNegativesRankingSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const EmbeddingLoss_MultipleNegativesRankingSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 0, 2);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message jammi.v1.fine_tune.LayersToTransform.
|
|
32
|
+
* Use `create(LayersToTransformSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const LayersToTransformSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 1);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message jammi.v1.fine_tune.FineTuneConfig.
|
|
37
|
+
* Use `create(FineTuneConfigSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const FineTuneConfigSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 2);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message jammi.v1.fine_tune.StartFineTuneRequest.
|
|
42
|
+
* Use `create(StartFineTuneRequestSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const StartFineTuneRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 3);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message jammi.v1.fine_tune.StartFineTuneResponse.
|
|
47
|
+
* Use `create(StartFineTuneResponseSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const StartFineTuneResponseSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 4);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message jammi.v1.fine_tune.FineTuneStatusRequest.
|
|
52
|
+
* Use `create(FineTuneStatusRequestSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const FineTuneStatusRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 5);
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message jammi.v1.fine_tune.FineTuneStatusResponse.
|
|
57
|
+
* Use `create(FineTuneStatusResponseSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const FineTuneStatusResponseSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_fine_tune, 6);
|
|
60
|
+
/**
|
|
61
|
+
* Fine-tuning method. Mirrors the engine's `FineTuneMethod`; LoRA is the only
|
|
62
|
+
* method, trained as either an encoder-internal adapter or a projection head
|
|
63
|
+
* over a frozen base model depending on `FineTuneConfig.target_modules`.
|
|
64
|
+
*
|
|
65
|
+
* @generated from enum jammi.v1.fine_tune.FineTuneMethod
|
|
66
|
+
*/
|
|
67
|
+
export var FineTuneMethod;
|
|
68
|
+
(function (FineTuneMethod) {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: FINE_TUNE_METHOD_UNSPECIFIED = 0;
|
|
71
|
+
*/
|
|
72
|
+
FineTuneMethod[FineTuneMethod["FINE_TUNE_METHOD_UNSPECIFIED"] = 0] = "FINE_TUNE_METHOD_UNSPECIFIED";
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: LORA = 1;
|
|
75
|
+
*/
|
|
76
|
+
FineTuneMethod[FineTuneMethod["LORA"] = 1] = "LORA";
|
|
77
|
+
})(FineTuneMethod || (FineTuneMethod = {}));
|
|
78
|
+
/**
|
|
79
|
+
* Describes the enum jammi.v1.fine_tune.FineTuneMethod.
|
|
80
|
+
*/
|
|
81
|
+
export const FineTuneMethodSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_fine_tune, 0);
|
|
82
|
+
/**
|
|
83
|
+
* Classification-loss function. Mirrors the engine's `ClassificationLoss`.
|
|
84
|
+
*
|
|
85
|
+
* @generated from enum jammi.v1.fine_tune.ClassificationLoss
|
|
86
|
+
*/
|
|
87
|
+
export var ClassificationLoss;
|
|
88
|
+
(function (ClassificationLoss) {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from enum value: CLASSIFICATION_LOSS_UNSPECIFIED = 0;
|
|
91
|
+
*/
|
|
92
|
+
ClassificationLoss[ClassificationLoss["CLASSIFICATION_LOSS_UNSPECIFIED"] = 0] = "CLASSIFICATION_LOSS_UNSPECIFIED";
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: CROSS_ENTROPY = 1;
|
|
95
|
+
*/
|
|
96
|
+
ClassificationLoss[ClassificationLoss["CROSS_ENTROPY"] = 1] = "CROSS_ENTROPY";
|
|
97
|
+
})(ClassificationLoss || (ClassificationLoss = {}));
|
|
98
|
+
/**
|
|
99
|
+
* Describes the enum jammi.v1.fine_tune.ClassificationLoss.
|
|
100
|
+
*/
|
|
101
|
+
export const ClassificationLossSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_fine_tune, 1);
|
|
102
|
+
/**
|
|
103
|
+
* Which loss signal drives early stopping. Mirrors `EarlyStoppingMetric`.
|
|
104
|
+
*
|
|
105
|
+
* @generated from enum jammi.v1.fine_tune.EarlyStoppingMetric
|
|
106
|
+
*/
|
|
107
|
+
export var EarlyStoppingMetric;
|
|
108
|
+
(function (EarlyStoppingMetric) {
|
|
109
|
+
/**
|
|
110
|
+
* @generated from enum value: EARLY_STOPPING_METRIC_UNSPECIFIED = 0;
|
|
111
|
+
*/
|
|
112
|
+
EarlyStoppingMetric[EarlyStoppingMetric["EARLY_STOPPING_METRIC_UNSPECIFIED"] = 0] = "EARLY_STOPPING_METRIC_UNSPECIFIED";
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum value: VAL_LOSS = 1;
|
|
115
|
+
*/
|
|
116
|
+
EarlyStoppingMetric[EarlyStoppingMetric["VAL_LOSS"] = 1] = "VAL_LOSS";
|
|
117
|
+
/**
|
|
118
|
+
* @generated from enum value: TRAIN_LOSS = 2;
|
|
119
|
+
*/
|
|
120
|
+
EarlyStoppingMetric[EarlyStoppingMetric["TRAIN_LOSS"] = 2] = "TRAIN_LOSS";
|
|
121
|
+
})(EarlyStoppingMetric || (EarlyStoppingMetric = {}));
|
|
122
|
+
/**
|
|
123
|
+
* Describes the enum jammi.v1.fine_tune.EarlyStoppingMetric.
|
|
124
|
+
*/
|
|
125
|
+
export const EarlyStoppingMetricSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_fine_tune, 2);
|
|
126
|
+
/**
|
|
127
|
+
* Learning-rate schedule after warmup. Mirrors the engine's `LrSchedule`.
|
|
128
|
+
*
|
|
129
|
+
* @generated from enum jammi.v1.fine_tune.LrSchedule
|
|
130
|
+
*/
|
|
131
|
+
export var LrSchedule;
|
|
132
|
+
(function (LrSchedule) {
|
|
133
|
+
/**
|
|
134
|
+
* @generated from enum value: LR_SCHEDULE_UNSPECIFIED = 0;
|
|
135
|
+
*/
|
|
136
|
+
LrSchedule[LrSchedule["LR_SCHEDULE_UNSPECIFIED"] = 0] = "LR_SCHEDULE_UNSPECIFIED";
|
|
137
|
+
/**
|
|
138
|
+
* @generated from enum value: CONSTANT = 1;
|
|
139
|
+
*/
|
|
140
|
+
LrSchedule[LrSchedule["CONSTANT"] = 1] = "CONSTANT";
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum value: COSINE_DECAY = 2;
|
|
143
|
+
*/
|
|
144
|
+
LrSchedule[LrSchedule["COSINE_DECAY"] = 2] = "COSINE_DECAY";
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: LINEAR_DECAY = 3;
|
|
147
|
+
*/
|
|
148
|
+
LrSchedule[LrSchedule["LINEAR_DECAY"] = 3] = "LINEAR_DECAY";
|
|
149
|
+
})(LrSchedule || (LrSchedule = {}));
|
|
150
|
+
/**
|
|
151
|
+
* Describes the enum jammi.v1.fine_tune.LrSchedule.
|
|
152
|
+
*/
|
|
153
|
+
export const LrScheduleSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_fine_tune, 3);
|
|
154
|
+
/**
|
|
155
|
+
* LoRA A/B matrix initialisation. Mirrors `jammi_lora::LoraInitMode`.
|
|
156
|
+
*
|
|
157
|
+
* @generated from enum jammi.v1.fine_tune.LoraInitMode
|
|
158
|
+
*/
|
|
159
|
+
export var LoraInitMode;
|
|
160
|
+
(function (LoraInitMode) {
|
|
161
|
+
/**
|
|
162
|
+
* @generated from enum value: LORA_INIT_MODE_UNSPECIFIED = 0;
|
|
163
|
+
*/
|
|
164
|
+
LoraInitMode[LoraInitMode["LORA_INIT_MODE_UNSPECIFIED"] = 0] = "LORA_INIT_MODE_UNSPECIFIED";
|
|
165
|
+
/**
|
|
166
|
+
* @generated from enum value: ZEROS_B = 1;
|
|
167
|
+
*/
|
|
168
|
+
LoraInitMode[LoraInitMode["ZEROS_B"] = 1] = "ZEROS_B";
|
|
169
|
+
/**
|
|
170
|
+
* @generated from enum value: GAUSSIAN = 2;
|
|
171
|
+
*/
|
|
172
|
+
LoraInitMode[LoraInitMode["GAUSSIAN"] = 2] = "GAUSSIAN";
|
|
173
|
+
})(LoraInitMode || (LoraInitMode = {}));
|
|
174
|
+
/**
|
|
175
|
+
* Describes the enum jammi.v1.fine_tune.LoraInitMode.
|
|
176
|
+
*/
|
|
177
|
+
export const LoraInitModeSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_fine_tune, 4);
|
|
178
|
+
/**
|
|
179
|
+
* Dtype for the frozen backbone weights. Mirrors `jammi_lora::BackboneDtype`.
|
|
180
|
+
*
|
|
181
|
+
* @generated from enum jammi.v1.fine_tune.BackboneDtype
|
|
182
|
+
*/
|
|
183
|
+
export var BackboneDtype;
|
|
184
|
+
(function (BackboneDtype) {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from enum value: BACKBONE_DTYPE_UNSPECIFIED = 0;
|
|
187
|
+
*/
|
|
188
|
+
BackboneDtype[BackboneDtype["BACKBONE_DTYPE_UNSPECIFIED"] = 0] = "BACKBONE_DTYPE_UNSPECIFIED";
|
|
189
|
+
/**
|
|
190
|
+
* @generated from enum value: F32 = 1;
|
|
191
|
+
*/
|
|
192
|
+
BackboneDtype[BackboneDtype["F32"] = 1] = "F32";
|
|
193
|
+
/**
|
|
194
|
+
* @generated from enum value: BF16 = 2;
|
|
195
|
+
*/
|
|
196
|
+
BackboneDtype[BackboneDtype["BF16"] = 2] = "BF16";
|
|
197
|
+
/**
|
|
198
|
+
* @generated from enum value: F16 = 3;
|
|
199
|
+
*/
|
|
200
|
+
BackboneDtype[BackboneDtype["F16"] = 3] = "F16";
|
|
201
|
+
})(BackboneDtype || (BackboneDtype = {}));
|
|
202
|
+
/**
|
|
203
|
+
* Describes the enum jammi.v1.fine_tune.BackboneDtype.
|
|
204
|
+
*/
|
|
205
|
+
export const BackboneDtypeSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_fine_tune, 5);
|
|
206
|
+
/**
|
|
207
|
+
* FineTuneService — the wire surface for the engine's fine-tuning verb.
|
|
208
|
+
*
|
|
209
|
+
* `StartFineTune` and `FineTuneStatus` are imperative session methods, not SQL
|
|
210
|
+
* queries, so they live as typed gRPC RPCs alongside SessionService /
|
|
211
|
+
* TriggerService / EmbeddingService / InferenceService / EvalService rather
|
|
212
|
+
* than on the Flight SQL surface (which carries query/result only, per ADR-01
|
|
213
|
+
* §3.2). Fine-tuning is a substrate primitive — training a LoRA adapter over a
|
|
214
|
+
* registered source — and names no tenant-domain concept.
|
|
215
|
+
*
|
|
216
|
+
* The two verbs delegate 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
217
|
+
* abstraction: `StartFineTune` mirrors `Session::fine_tune` (which returns a
|
|
218
|
+
* `FineTuneJobId`) and `FineTuneStatus` mirrors `Session::fine_tune_status`.
|
|
219
|
+
* The job runs asynchronously inside the engine; the client polls
|
|
220
|
+
* `FineTuneStatus` by id until a terminal state. There is no progress stream —
|
|
221
|
+
* the abstraction exposes none, so this surface invents none. The service
|
|
222
|
+
* reimplements no training, LoRA, or scan logic; it is purely a wire adapter.
|
|
223
|
+
*
|
|
224
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
225
|
+
* shared TenantInterceptor from the `jammi-session-id` header — the same
|
|
226
|
+
* mechanism every other gRPC service and Flight SQL already use.
|
|
227
|
+
*
|
|
228
|
+
* @generated from service jammi.v1.fine_tune.FineTuneService
|
|
229
|
+
*/
|
|
230
|
+
export const FineTuneService = /*@__PURE__*/ serviceDesc(file_jammi_v1_fine_tune, 0);
|
|
231
|
+
//# sourceMappingURL=fine_tune_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fine_tune_pb.js","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/fine_tune_pb.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,4FAA4F;AAC5F,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAGzD;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAY,aAAa,CAC3D,QAAQ,CAAC,oyGAAoyG,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAuC50G;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,uBAAuB,EAAE,CAAC,CAAC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C,EAfW,YAAY,KAAZ,YAAY,QAevB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA0B,aAAa,CACpE,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAN,IAAY,aAoBX;AApBD,WAAY,aAAa;IACvB;;OAEG;IACH,6FAA8B,CAAA;IAE9B;;OAEG;IACH,+CAAO,CAAA;IAEP;;OAEG;IACH,iDAAQ,CAAA;IAER;;OAEG;IACH,+CAAO,CAAA;AACT,CAAC,EApBW,aAAa,KAAb,aAAa,QAoBxB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA2B,aAAa,CACtE,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,eAAe,GAwBvB,aAAa,CAChB,WAAW,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { ArrowBatch } from "./trigger_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file jammi/v1/inference.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_jammi_v1_inference: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message jammi.v1.inference.InferRequest
|
|
10
|
+
*/
|
|
11
|
+
export type InferRequest = Message<"jammi.v1.inference.InferRequest"> & {
|
|
12
|
+
/**
|
|
13
|
+
* Registered source to scan.
|
|
14
|
+
*
|
|
15
|
+
* @generated from field: string source_id = 1;
|
|
16
|
+
*/
|
|
17
|
+
sourceId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Model to run. `local:<path>`, an HF repo id, or a fine-tuned id.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string model_id = 2;
|
|
22
|
+
*/
|
|
23
|
+
modelId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Which task to run over the columns.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: jammi.v1.inference.ModelTask task = 3;
|
|
28
|
+
*/
|
|
29
|
+
task: ModelTask;
|
|
30
|
+
/**
|
|
31
|
+
* Content columns fed through the model. At least one is required.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: repeated string columns = 4;
|
|
34
|
+
*/
|
|
35
|
+
columns: string[];
|
|
36
|
+
/**
|
|
37
|
+
* Column whose value becomes each output row's `_row_id` key.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: string key_column = 5;
|
|
40
|
+
*/
|
|
41
|
+
keyColumn: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional tenant scope override; if unset, the session's tenant
|
|
44
|
+
* (set via SessionService.SetTenant) applies. Empty string == none.
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: string tenant_id = 6;
|
|
47
|
+
*/
|
|
48
|
+
tenantId: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message jammi.v1.inference.InferRequest.
|
|
52
|
+
* Use `create(InferRequestSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export declare const InferRequestSchema: GenMessage<InferRequest>;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from message jammi.v1.inference.InferResponse
|
|
57
|
+
*/
|
|
58
|
+
export type InferResponse = Message<"jammi.v1.inference.InferResponse"> & {
|
|
59
|
+
/**
|
|
60
|
+
* The inference output rows, encoded as a single Arrow IPC stream
|
|
61
|
+
* (schema + batches) in `data_body`. Mirrors the `Vec<RecordBatch>` the
|
|
62
|
+
* engine's `infer` returns; reuses TriggerService's `ArrowBatch` shape.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: jammi.v1.trigger.ArrowBatch result = 1;
|
|
65
|
+
*/
|
|
66
|
+
result?: ArrowBatch | undefined;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Describes the message jammi.v1.inference.InferResponse.
|
|
70
|
+
* Use `create(InferResponseSchema)` to create a new message.
|
|
71
|
+
*/
|
|
72
|
+
export declare const InferResponseSchema: GenMessage<InferResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Which model task `Infer` runs over the columns. Mirrors the engine's
|
|
75
|
+
* `ModelTask` (`jammi-db`); the embedding variants encode to vectors, the
|
|
76
|
+
* inference variants assign labels / extract entities.
|
|
77
|
+
*
|
|
78
|
+
* @generated from enum jammi.v1.inference.ModelTask
|
|
79
|
+
*/
|
|
80
|
+
export declare enum ModelTask {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: MODEL_TASK_UNSPECIFIED = 0;
|
|
83
|
+
*/
|
|
84
|
+
MODEL_TASK_UNSPECIFIED = 0,
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: TEXT_EMBEDDING = 1;
|
|
87
|
+
*/
|
|
88
|
+
TEXT_EMBEDDING = 1,
|
|
89
|
+
/**
|
|
90
|
+
* @generated from enum value: IMAGE_EMBEDDING = 2;
|
|
91
|
+
*/
|
|
92
|
+
IMAGE_EMBEDDING = 2,
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: AUDIO_EMBEDDING = 3;
|
|
95
|
+
*/
|
|
96
|
+
AUDIO_EMBEDDING = 3,
|
|
97
|
+
/**
|
|
98
|
+
* @generated from enum value: CLASSIFICATION = 4;
|
|
99
|
+
*/
|
|
100
|
+
CLASSIFICATION = 4,
|
|
101
|
+
/**
|
|
102
|
+
* @generated from enum value: NER = 5;
|
|
103
|
+
*/
|
|
104
|
+
NER = 5
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Describes the enum jammi.v1.inference.ModelTask.
|
|
108
|
+
*/
|
|
109
|
+
export declare const ModelTaskSchema: GenEnum<ModelTask>;
|
|
110
|
+
/**
|
|
111
|
+
* InferenceService — the wire surface for the engine's inference verb.
|
|
112
|
+
*
|
|
113
|
+
* `Infer` is an imperative session method, not a SQL query, so it lives as a
|
|
114
|
+
* typed gRPC RPC alongside SessionService / TriggerService / EmbeddingService
|
|
115
|
+
* rather than on the Flight SQL surface (which carries query/result only, per
|
|
116
|
+
* ADR-01 §3.2). The verb is a substrate primitive: it names the act of running
|
|
117
|
+
* a model over a source, not any tenant-domain concept.
|
|
118
|
+
*
|
|
119
|
+
* The verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
120
|
+
* abstraction; the service reimplements no model loading, scan, or forward
|
|
121
|
+
* logic — it is purely a wire adapter over the in-process engine.
|
|
122
|
+
*
|
|
123
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
124
|
+
* shared TenantInterceptor from the `jammi-session-id` header — the same
|
|
125
|
+
* mechanism every other gRPC service and Flight SQL already use.
|
|
126
|
+
*
|
|
127
|
+
* @generated from service jammi.v1.inference.InferenceService
|
|
128
|
+
*/
|
|
129
|
+
export declare const InferenceService: GenService<{
|
|
130
|
+
/**
|
|
131
|
+
* Scan `columns` on a registered source, run `model_id` over every row for
|
|
132
|
+
* `task`, and return the result as Arrow IPC. Peer of the abstraction's
|
|
133
|
+
* `infer`, which returns `Vec<RecordBatch>` — the batches are carried in one
|
|
134
|
+
* `ArrowBatch` (the same Flight-IPC pairing TriggerService uses).
|
|
135
|
+
*
|
|
136
|
+
* @generated from rpc jammi.v1.inference.InferenceService.Infer
|
|
137
|
+
*/
|
|
138
|
+
infer: {
|
|
139
|
+
methodKind: "unary";
|
|
140
|
+
input: typeof InferRequestSchema;
|
|
141
|
+
output: typeof InferResponseSchema;
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
//# sourceMappingURL=inference_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inference_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/inference_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,U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AAM,gBAAgB,EAAE,UAAU,CAAC;IACxC;;;;;;;OAOG;IACH,KAAK,EAAE;QACL,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,kBAAkB,CAAC;QACjC,MAAM,EAAE,OAAO,mBAAmB,CAAC;KACpC,CAAC;CACH,CACwC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file jammi/v1/inference.proto (package jammi.v1.inference, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_jammi_v1_trigger } from "./trigger_pb";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file jammi/v1/inference.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_jammi_v1_inference = /*@__PURE__*/ fileDesc("ChhqYW1taS92MS9pbmZlcmVuY2UucHJvdG8SEmphbW1pLnYxLmluZmVyZW5jZSKYAQoMSW5mZXJSZXF1ZXN0EhEKCXNvdXJjZV9pZBgBIAEoCRIQCghtb2RlbF9pZBgCIAEoCRIrCgR0YXNrGAMgASgOMh0uamFtbWkudjEuaW5mZXJlbmNlLk1vZGVsVGFzaxIPCgdjb2x1bW5zGAQgAygJEhIKCmtleV9jb2x1bW4YBSABKAkSEQoJdGVuYW50X2lkGAYgASgJIj0KDUluZmVyUmVzcG9uc2USLAoGcmVzdWx0GAEgASgLMhwuamFtbWkudjEudHJpZ2dlci5BcnJvd0JhdGNoKoIBCglNb2RlbFRhc2sSGgoWTU9ERUxfVEFTS19VTlNQRUNJRklFRBAAEhIKDlRFWFRfRU1CRURESU5HEAESEwoPSU1BR0VfRU1CRURESU5HEAISEwoPQVVESU9fRU1CRURESU5HEAMSEgoOQ0xBU1NJRklDQVRJT04QBBIHCgNORVIQBTJgChBJbmZlcmVuY2VTZXJ2aWNlEkwKBUluZmVyEiAuamFtbWkudjEuaW5mZXJlbmNlLkluZmVyUmVxdWVzdBohLmphbW1pLnYxLmluZmVyZW5jZS5JbmZlclJlc3BvbnNlYgZwcm90bzM", [file_jammi_v1_trigger]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message jammi.v1.inference.InferRequest.
|
|
12
|
+
* Use `create(InferRequestSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const InferRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_inference, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message jammi.v1.inference.InferResponse.
|
|
17
|
+
* Use `create(InferResponseSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const InferResponseSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_inference, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Which model task `Infer` runs over the columns. Mirrors the engine's
|
|
22
|
+
* `ModelTask` (`jammi-db`); the embedding variants encode to vectors, the
|
|
23
|
+
* inference variants assign labels / extract entities.
|
|
24
|
+
*
|
|
25
|
+
* @generated from enum jammi.v1.inference.ModelTask
|
|
26
|
+
*/
|
|
27
|
+
export var ModelTask;
|
|
28
|
+
(function (ModelTask) {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: MODEL_TASK_UNSPECIFIED = 0;
|
|
31
|
+
*/
|
|
32
|
+
ModelTask[ModelTask["MODEL_TASK_UNSPECIFIED"] = 0] = "MODEL_TASK_UNSPECIFIED";
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: TEXT_EMBEDDING = 1;
|
|
35
|
+
*/
|
|
36
|
+
ModelTask[ModelTask["TEXT_EMBEDDING"] = 1] = "TEXT_EMBEDDING";
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: IMAGE_EMBEDDING = 2;
|
|
39
|
+
*/
|
|
40
|
+
ModelTask[ModelTask["IMAGE_EMBEDDING"] = 2] = "IMAGE_EMBEDDING";
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: AUDIO_EMBEDDING = 3;
|
|
43
|
+
*/
|
|
44
|
+
ModelTask[ModelTask["AUDIO_EMBEDDING"] = 3] = "AUDIO_EMBEDDING";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: CLASSIFICATION = 4;
|
|
47
|
+
*/
|
|
48
|
+
ModelTask[ModelTask["CLASSIFICATION"] = 4] = "CLASSIFICATION";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: NER = 5;
|
|
51
|
+
*/
|
|
52
|
+
ModelTask[ModelTask["NER"] = 5] = "NER";
|
|
53
|
+
})(ModelTask || (ModelTask = {}));
|
|
54
|
+
/**
|
|
55
|
+
* Describes the enum jammi.v1.inference.ModelTask.
|
|
56
|
+
*/
|
|
57
|
+
export const ModelTaskSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_inference, 0);
|
|
58
|
+
/**
|
|
59
|
+
* InferenceService — the wire surface for the engine's inference verb.
|
|
60
|
+
*
|
|
61
|
+
* `Infer` is an imperative session method, not a SQL query, so it lives as a
|
|
62
|
+
* typed gRPC RPC alongside SessionService / TriggerService / EmbeddingService
|
|
63
|
+
* rather than on the Flight SQL surface (which carries query/result only, per
|
|
64
|
+
* ADR-01 §3.2). The verb is a substrate primitive: it names the act of running
|
|
65
|
+
* a model over a source, not any tenant-domain concept.
|
|
66
|
+
*
|
|
67
|
+
* The verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
68
|
+
* abstraction; the service reimplements no model loading, scan, or forward
|
|
69
|
+
* logic — it is purely a wire adapter over the in-process engine.
|
|
70
|
+
*
|
|
71
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
72
|
+
* shared TenantInterceptor from the `jammi-session-id` header — the same
|
|
73
|
+
* mechanism every other gRPC service and Flight SQL already use.
|
|
74
|
+
*
|
|
75
|
+
* @generated from service jammi.v1.inference.InferenceService
|
|
76
|
+
*/
|
|
77
|
+
export const InferenceService = /*@__PURE__*/ serviceDesc(file_jammi_v1_inference, 0);
|
|
78
|
+
//# sourceMappingURL=inference_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inference_pb.js","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/inference_pb.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,4FAA4F;AAC5F,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAY,aAAa,CAC3D,QAAQ,CAAC,iqBAAiqB,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAkDvsB;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAgB1C;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,SA8BX;AA9BD,WAAY,SAAS;IACnB;;OAEG;IACH,6EAA0B,CAAA;IAE1B;;OAEG;IACH,6DAAkB,CAAA;IAElB;;OAEG;IACH,+DAAmB,CAAA;IAEnB;;OAEG;IACH,+DAAmB,CAAA;IAEnB;;OAEG;IACH,6DAAkB,CAAA;IAElB;;OAEG;IACH,uCAAO,CAAA;AACT,CAAC,EA9BW,SAAS,KAAT,SAAS,QA8BpB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,aAAa,CAC9D,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAcxB,aAAa,CAChB,WAAW,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file jammi/v1/mutable_table.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_jammi_v1_mutable_table: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* One secondary-index declaration. Mirrors the engine's `MutableIndexDef`.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message jammi.v1.mutable_table.MutableIndex
|
|
12
|
+
*/
|
|
13
|
+
export type MutableIndex = Message<"jammi.v1.mutable_table.MutableIndex"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string name = 1;
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: repeated string columns = 2;
|
|
20
|
+
*/
|
|
21
|
+
columns: string[];
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: bool unique = 3;
|
|
24
|
+
*/
|
|
25
|
+
unique: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message jammi.v1.mutable_table.MutableIndex.
|
|
29
|
+
* Use `create(MutableIndexSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export declare const MutableIndexSchema: GenMessage<MutableIndex>;
|
|
32
|
+
/**
|
|
33
|
+
* Registration descriptor for one mutable companion table. Mirrors the Rust
|
|
34
|
+
* `MutableTableDefinition` (minus `tenant`, which the engine stamps from the
|
|
35
|
+
* session scope — the wire body stays tenant-free).
|
|
36
|
+
*
|
|
37
|
+
* @generated from message jammi.v1.mutable_table.MutableTableDefinition
|
|
38
|
+
*/
|
|
39
|
+
export type MutableTableDefinition = Message<"jammi.v1.mutable_table.MutableTableDefinition"> & {
|
|
40
|
+
/**
|
|
41
|
+
* Catalog-unique id: lowercase ASCII letters, digits, and `_`, length 1..=63.
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: string id = 1;
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Arrow schema for the table, encoded as an Arrow IPC schema message (the
|
|
48
|
+
* same self-describing IPC framing TriggerService uses for batch payloads).
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: bytes schema = 2;
|
|
51
|
+
*/
|
|
52
|
+
schema: Uint8Array;
|
|
53
|
+
/**
|
|
54
|
+
* Column(s) forming the primary key. A non-empty subset of the schema.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: repeated string primary_key = 3;
|
|
57
|
+
*/
|
|
58
|
+
primaryKey: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Secondary indexes; one CREATE INDEX per entry.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: repeated jammi.v1.mutable_table.MutableIndex indexes = 4;
|
|
63
|
+
*/
|
|
64
|
+
indexes: MutableIndex[];
|
|
65
|
+
/**
|
|
66
|
+
* Optional monotonic ordering column for streaming reads (`scan_after`).
|
|
67
|
+
* Empty == none.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: string order_column = 5;
|
|
70
|
+
*/
|
|
71
|
+
orderColumn: string;
|
|
72
|
+
/**
|
|
73
|
+
* Chunk size for streaming reads. 0 == the engine default (8192).
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: uint64 chunk_size = 6;
|
|
76
|
+
*/
|
|
77
|
+
chunkSize: bigint;
|
|
78
|
+
/**
|
|
79
|
+
* Free-form tenant-owned metadata as a JSON object string; "{}" when none.
|
|
80
|
+
* The engine stores it verbatim and never parses it.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: string user_metadata = 7;
|
|
83
|
+
*/
|
|
84
|
+
userMetadata: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message jammi.v1.mutable_table.MutableTableDefinition.
|
|
88
|
+
* Use `create(MutableTableDefinitionSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export declare const MutableTableDefinitionSchema: GenMessage<MutableTableDefinition>;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message jammi.v1.mutable_table.CreateMutableTableRequest
|
|
93
|
+
*/
|
|
94
|
+
export type CreateMutableTableRequest = Message<"jammi.v1.mutable_table.CreateMutableTableRequest"> & {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: jammi.v1.mutable_table.MutableTableDefinition definition = 1;
|
|
97
|
+
*/
|
|
98
|
+
definition?: MutableTableDefinition | undefined;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message jammi.v1.mutable_table.CreateMutableTableRequest.
|
|
102
|
+
* Use `create(CreateMutableTableRequestSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export declare const CreateMutableTableRequestSchema: GenMessage<CreateMutableTableRequest>;
|
|
105
|
+
/**
|
|
106
|
+
* @generated from message jammi.v1.mutable_table.CreateMutableTableResponse
|
|
107
|
+
*/
|
|
108
|
+
export type CreateMutableTableResponse = Message<"jammi.v1.mutable_table.CreateMutableTableResponse"> & {
|
|
109
|
+
/**
|
|
110
|
+
* The id the table was registered under (echoes the validated request id).
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: string mutable_table_id = 1;
|
|
113
|
+
*/
|
|
114
|
+
mutableTableId: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Describes the message jammi.v1.mutable_table.CreateMutableTableResponse.
|
|
118
|
+
* Use `create(CreateMutableTableResponseSchema)` to create a new message.
|
|
119
|
+
*/
|
|
120
|
+
export declare const CreateMutableTableResponseSchema: GenMessage<CreateMutableTableResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message jammi.v1.mutable_table.DropMutableTableRequest
|
|
123
|
+
*/
|
|
124
|
+
export type DropMutableTableRequest = Message<"jammi.v1.mutable_table.DropMutableTableRequest"> & {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string mutable_table_id = 1;
|
|
127
|
+
*/
|
|
128
|
+
mutableTableId: string;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message jammi.v1.mutable_table.DropMutableTableRequest.
|
|
132
|
+
* Use `create(DropMutableTableRequestSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export declare const DropMutableTableRequestSchema: GenMessage<DropMutableTableRequest>;
|
|
135
|
+
/**
|
|
136
|
+
* MutableTableService — the wire surface for the engine's mutable-companion-
|
|
137
|
+
* table lifecycle verbs.
|
|
138
|
+
*
|
|
139
|
+
* `CreateMutableTable` and `DropMutableTable` are imperative session methods,
|
|
140
|
+
* not SQL queries, so they live as typed gRPC RPCs alongside SessionService /
|
|
141
|
+
* TriggerService / EmbeddingService / … rather than on the Flight SQL surface.
|
|
142
|
+
* Per ADR-01 §3.2 Flight SQL carries query/result only — so *reading* or
|
|
143
|
+
* *querying* a mutable table is plain Flight SQL and gets no verb here; only
|
|
144
|
+
* the imperative create/drop lifecycle does.
|
|
145
|
+
*
|
|
146
|
+
* Each verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
147
|
+
* abstraction; the service reimplements no DDL, storage, or catalog logic. The
|
|
148
|
+
* request message mirrors the Rust `MutableTableDefinition` field for field.
|
|
149
|
+
*
|
|
150
|
+
* Tenant scope is read from the request's `SessionTenant` extension (set by the
|
|
151
|
+
* shared TenantInterceptor from the `jammi-session-id` header) — the same
|
|
152
|
+
* mechanism every other gRPC service and Flight SQL already use. The definition
|
|
153
|
+
* body carries no tenant field; the engine stamps the session's tenant onto the
|
|
154
|
+
* catalog row.
|
|
155
|
+
*
|
|
156
|
+
* @generated from service jammi.v1.mutable_table.MutableTableService
|
|
157
|
+
*/
|
|
158
|
+
export declare const MutableTableService: GenService<{
|
|
159
|
+
/**
|
|
160
|
+
* Register a mutable companion table. After this returns the table is
|
|
161
|
+
* queryable through Flight SQL. Peer of the abstraction's
|
|
162
|
+
* `create_mutable_table`.
|
|
163
|
+
*
|
|
164
|
+
* @generated from rpc jammi.v1.mutable_table.MutableTableService.CreateMutableTable
|
|
165
|
+
*/
|
|
166
|
+
createMutableTable: {
|
|
167
|
+
methodKind: "unary";
|
|
168
|
+
input: typeof CreateMutableTableRequestSchema;
|
|
169
|
+
output: typeof CreateMutableTableResponseSchema;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Drop a mutable companion table. Peer of the abstraction's
|
|
173
|
+
* `drop_mutable_table`.
|
|
174
|
+
*
|
|
175
|
+
* @generated from rpc jammi.v1.mutable_table.MutableTableService.DropMutableTable
|
|
176
|
+
*/
|
|
177
|
+
dropMutableTable: {
|
|
178
|
+
methodKind: "unary";
|
|
179
|
+
input: typeof DropMutableTableRequestSchema;
|
|
180
|
+
output: typeof EmptySchema;
|
|
181
|
+
};
|
|
182
|
+
}>;
|
|
183
|
+
//# sourceMappingURL=mutable_table_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutable_table_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/mutable_table_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,OACogC,CAAC;AAE/iC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,qCAAqC,CAAC,GAAG;IAC1E;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAA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