@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,739 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file jammi/v1/error.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_jammi_v1_error: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* JammiErrorDetail — the structured domain-error payload a server attaches to
|
|
9
|
+
* a `tonic::Status` so a remote client can reconstruct the EXACT engine
|
|
10
|
+
* `JammiError` the in-process path returns, not a lossy gRPC-code-category
|
|
11
|
+
* guess. Carried in the Status `details` bytes (the gRPC richer-error model);
|
|
12
|
+
* the Status `code` + `message` still hold the idiomatic gRPC surface for
|
|
13
|
+
* clients that do not decode the detail.
|
|
14
|
+
*
|
|
15
|
+
* The standard gRPC code set is insufficient to distinguish the engine's
|
|
16
|
+
* failure modes — `invalid_argument` alone collapses Source / Model / Tenant /
|
|
17
|
+
* Config / Schema / Eval into one code — so a typed detail payload is the
|
|
18
|
+
* ADR-01 §5.3-sanctioned mechanism for "structured error information when the
|
|
19
|
+
* standard gRPC code set is insufficient". A typed `oneof` (not a
|
|
20
|
+
* `google.rpc.Any`) keeps it type-driven: each engine variant reachable on the
|
|
21
|
+
* embedding/search verb surface has its own message carrying exactly the
|
|
22
|
+
* fields needed to reconstruct it.
|
|
23
|
+
*
|
|
24
|
+
* The contract is complete over `JammiError`: every owned-shape variant — the
|
|
25
|
+
* String- and struct-carrying ones whose fields fully reconstruct the variant —
|
|
26
|
+
* has its own typed arm here. `MutableTable` is NOT folded: its inner
|
|
27
|
+
* `MutableTableError` is engine-owned (every field reconstructs), so it carries
|
|
28
|
+
* its own structured `MutableTableErrorDetail` and reconstructs faithfully —
|
|
29
|
+
* the same standard the owned-shape variants meet. The only variants folded
|
|
30
|
+
* into `other` are the genuinely-foreign `#[from]` ones whose inner error
|
|
31
|
+
* cannot cross a process boundary (`Io`/`std::io::Error`,
|
|
32
|
+
* `BackendDriver`/`Toml`/`Json`/`DataFusion`/`Trigger`/`Storage`): they
|
|
33
|
+
* reconstruct as `JammiError::Other` carrying the faithful `Display` string —
|
|
34
|
+
* the genuine fidelity limit, not a lossy guess. Faithfulness is a property of
|
|
35
|
+
* the error type, so the mapping covers the whole enum, not only one verb
|
|
36
|
+
* surface.
|
|
37
|
+
*
|
|
38
|
+
* @generated from message jammi.v1.error.JammiErrorDetail
|
|
39
|
+
*/
|
|
40
|
+
export type JammiErrorDetail = Message<"jammi.v1.error.JammiErrorDetail"> & {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from oneof jammi.v1.error.JammiErrorDetail.variant
|
|
43
|
+
*/
|
|
44
|
+
variant: {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: jammi.v1.error.SourceError source = 1;
|
|
47
|
+
*/
|
|
48
|
+
value: SourceError;
|
|
49
|
+
case: "source";
|
|
50
|
+
} | {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: jammi.v1.error.ModelError model = 2;
|
|
53
|
+
*/
|
|
54
|
+
value: ModelError;
|
|
55
|
+
case: "model";
|
|
56
|
+
} | {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: jammi.v1.error.StringError inference = 3;
|
|
59
|
+
*/
|
|
60
|
+
value: StringError;
|
|
61
|
+
case: "inference";
|
|
62
|
+
} | {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: jammi.v1.error.StringError catalog = 4;
|
|
65
|
+
*/
|
|
66
|
+
value: StringError;
|
|
67
|
+
case: "catalog";
|
|
68
|
+
} | {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: jammi.v1.error.SchemaError schema = 5;
|
|
71
|
+
*/
|
|
72
|
+
value: SchemaError;
|
|
73
|
+
case: "schema";
|
|
74
|
+
} | {
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: jammi.v1.error.StringError config = 6;
|
|
77
|
+
*/
|
|
78
|
+
value: StringError;
|
|
79
|
+
case: "config";
|
|
80
|
+
} | {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: jammi.v1.error.StringError eval = 7;
|
|
83
|
+
*/
|
|
84
|
+
value: StringError;
|
|
85
|
+
case: "eval";
|
|
86
|
+
} | {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: jammi.v1.error.StringError tenant = 8;
|
|
89
|
+
*/
|
|
90
|
+
value: StringError;
|
|
91
|
+
case: "tenant";
|
|
92
|
+
} | {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: jammi.v1.error.StringError other = 9;
|
|
95
|
+
*/
|
|
96
|
+
value: StringError;
|
|
97
|
+
case: "other";
|
|
98
|
+
} | {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: jammi.v1.error.StringError fine_tune = 10;
|
|
101
|
+
*/
|
|
102
|
+
value: StringError;
|
|
103
|
+
case: "fineTune";
|
|
104
|
+
} | {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: jammi.v1.error.StringError gpu = 11;
|
|
107
|
+
*/
|
|
108
|
+
value: StringError;
|
|
109
|
+
case: "gpu";
|
|
110
|
+
} | {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: jammi.v1.error.StringError backend = 12;
|
|
113
|
+
*/
|
|
114
|
+
value: StringError;
|
|
115
|
+
case: "backend";
|
|
116
|
+
} | {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: jammi.v1.error.StringError evidence_channel = 13;
|
|
119
|
+
*/
|
|
120
|
+
value: StringError;
|
|
121
|
+
case: "evidenceChannel";
|
|
122
|
+
} | {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: jammi.v1.error.MutableTableErrorDetail mutable_table = 14;
|
|
125
|
+
*/
|
|
126
|
+
value: MutableTableErrorDetail;
|
|
127
|
+
case: "mutableTable";
|
|
128
|
+
} | {
|
|
129
|
+
case: undefined;
|
|
130
|
+
value?: undefined;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Describes the message jammi.v1.error.JammiErrorDetail.
|
|
135
|
+
* Use `create(JammiErrorDetailSchema)` to create a new message.
|
|
136
|
+
*/
|
|
137
|
+
export declare const JammiErrorDetailSchema: GenMessage<JammiErrorDetail>;
|
|
138
|
+
/**
|
|
139
|
+
* `JammiError::MutableTable(MutableTableError)`. The inner taxonomy is
|
|
140
|
+
* engine-owned and every variant's fields reconstruct, so it crosses the wire
|
|
141
|
+
* faithfully rather than folding to `other`. Each arm carries exactly the
|
|
142
|
+
* fields the matching `MutableTableError` variant holds; the id-carrying
|
|
143
|
+
* variants (`not_found`/`already_exists`) carry the table id string, and
|
|
144
|
+
* `backend` nests the engine-owned `BackendErrorDetail`.
|
|
145
|
+
*
|
|
146
|
+
* @generated from message jammi.v1.error.MutableTableErrorDetail
|
|
147
|
+
*/
|
|
148
|
+
export type MutableTableErrorDetail = Message<"jammi.v1.error.MutableTableErrorDetail"> & {
|
|
149
|
+
/**
|
|
150
|
+
* @generated from oneof jammi.v1.error.MutableTableErrorDetail.variant
|
|
151
|
+
*/
|
|
152
|
+
variant: {
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: string invalid_id = 1;
|
|
155
|
+
*/
|
|
156
|
+
value: string;
|
|
157
|
+
case: "invalidId";
|
|
158
|
+
} | {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: string schema = 2;
|
|
161
|
+
*/
|
|
162
|
+
value: string;
|
|
163
|
+
case: "schema";
|
|
164
|
+
} | {
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string missing_primary_key = 3;
|
|
167
|
+
*/
|
|
168
|
+
value: string;
|
|
169
|
+
case: "missingPrimaryKey";
|
|
170
|
+
} | {
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: string reserved_column = 4;
|
|
173
|
+
*/
|
|
174
|
+
value: string;
|
|
175
|
+
case: "reservedColumn";
|
|
176
|
+
} | {
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: string not_found = 5;
|
|
179
|
+
*/
|
|
180
|
+
value: string;
|
|
181
|
+
case: "notFound";
|
|
182
|
+
} | {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string already_exists = 6;
|
|
185
|
+
*/
|
|
186
|
+
value: string;
|
|
187
|
+
case: "alreadyExists";
|
|
188
|
+
} | {
|
|
189
|
+
/**
|
|
190
|
+
* `MutableTableError::NoOrderColumn` carries no payload.
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: bool no_order_column = 7;
|
|
193
|
+
*/
|
|
194
|
+
value: boolean;
|
|
195
|
+
case: "noOrderColumn";
|
|
196
|
+
} | {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: jammi.v1.error.BackendErrorDetail backend = 8;
|
|
199
|
+
*/
|
|
200
|
+
value: BackendErrorDetail;
|
|
201
|
+
case: "backend";
|
|
202
|
+
} | {
|
|
203
|
+
case: undefined;
|
|
204
|
+
value?: undefined;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Describes the message jammi.v1.error.MutableTableErrorDetail.
|
|
209
|
+
* Use `create(MutableTableErrorDetailSchema)` to create a new message.
|
|
210
|
+
*/
|
|
211
|
+
export declare const MutableTableErrorDetailSchema: GenMessage<MutableTableErrorDetail>;
|
|
212
|
+
/**
|
|
213
|
+
* `MutableTableError::Backend(BackendError)`. The backend taxonomy is
|
|
214
|
+
* engine-owned; every variant but `Sqlx` reconstructs field-for-field. A raw
|
|
215
|
+
* `sqlx::Error` cannot cross a process boundary, so `Sqlx` is the one arm that
|
|
216
|
+
* folds to a faithful `Display` string — the genuine fidelity limit, mirroring
|
|
217
|
+
* how `JammiErrorDetail` folds its own foreign `#[from]` variants.
|
|
218
|
+
*
|
|
219
|
+
* @generated from message jammi.v1.error.BackendErrorDetail
|
|
220
|
+
*/
|
|
221
|
+
export type BackendErrorDetail = Message<"jammi.v1.error.BackendErrorDetail"> & {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from oneof jammi.v1.error.BackendErrorDetail.variant
|
|
224
|
+
*/
|
|
225
|
+
variant: {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: string execution = 1;
|
|
228
|
+
*/
|
|
229
|
+
value: string;
|
|
230
|
+
case: "execution";
|
|
231
|
+
} | {
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: jammi.v1.error.ConstraintViolation constraint = 2;
|
|
234
|
+
*/
|
|
235
|
+
value: ConstraintViolation;
|
|
236
|
+
case: "constraint";
|
|
237
|
+
} | {
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string unavailable = 3;
|
|
240
|
+
*/
|
|
241
|
+
value: string;
|
|
242
|
+
case: "unavailable";
|
|
243
|
+
} | {
|
|
244
|
+
/**
|
|
245
|
+
* @generated from field: string retry = 4;
|
|
246
|
+
*/
|
|
247
|
+
value: string;
|
|
248
|
+
case: "retry";
|
|
249
|
+
} | {
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string migration = 5;
|
|
252
|
+
*/
|
|
253
|
+
value: string;
|
|
254
|
+
case: "migration";
|
|
255
|
+
} | {
|
|
256
|
+
/**
|
|
257
|
+
* @generated from field: jammi.v1.error.TypeConversion type_conversion = 6;
|
|
258
|
+
*/
|
|
259
|
+
value: TypeConversion;
|
|
260
|
+
case: "typeConversion";
|
|
261
|
+
} | {
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: jammi.v1.error.TenantMismatch tenant_mismatch = 7;
|
|
264
|
+
*/
|
|
265
|
+
value: TenantMismatch;
|
|
266
|
+
case: "tenantMismatch";
|
|
267
|
+
} | {
|
|
268
|
+
/**
|
|
269
|
+
* `BackendError::Sqlx` — the lone genuinely-foreign arm; its `Display`
|
|
270
|
+
* string is carried because a `sqlx::Error` does not cross the wire.
|
|
271
|
+
*
|
|
272
|
+
* @generated from field: string sqlx = 8;
|
|
273
|
+
*/
|
|
274
|
+
value: string;
|
|
275
|
+
case: "sqlx";
|
|
276
|
+
} | {
|
|
277
|
+
case: undefined;
|
|
278
|
+
value?: undefined;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Describes the message jammi.v1.error.BackendErrorDetail.
|
|
283
|
+
* Use `create(BackendErrorDetailSchema)` to create a new message.
|
|
284
|
+
*/
|
|
285
|
+
export declare const BackendErrorDetailSchema: GenMessage<BackendErrorDetail>;
|
|
286
|
+
/**
|
|
287
|
+
* `BackendError::Constraint { table, detail }`.
|
|
288
|
+
*
|
|
289
|
+
* @generated from message jammi.v1.error.ConstraintViolation
|
|
290
|
+
*/
|
|
291
|
+
export type ConstraintViolation = Message<"jammi.v1.error.ConstraintViolation"> & {
|
|
292
|
+
/**
|
|
293
|
+
* @generated from field: string table = 1;
|
|
294
|
+
*/
|
|
295
|
+
table: string;
|
|
296
|
+
/**
|
|
297
|
+
* @generated from field: string detail = 2;
|
|
298
|
+
*/
|
|
299
|
+
detail: string;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Describes the message jammi.v1.error.ConstraintViolation.
|
|
303
|
+
* Use `create(ConstraintViolationSchema)` to create a new message.
|
|
304
|
+
*/
|
|
305
|
+
export declare const ConstraintViolationSchema: GenMessage<ConstraintViolation>;
|
|
306
|
+
/**
|
|
307
|
+
* `BackendError::TypeConversion { column, detail }`.
|
|
308
|
+
*
|
|
309
|
+
* @generated from message jammi.v1.error.TypeConversion
|
|
310
|
+
*/
|
|
311
|
+
export type TypeConversion = Message<"jammi.v1.error.TypeConversion"> & {
|
|
312
|
+
/**
|
|
313
|
+
* @generated from field: string column = 1;
|
|
314
|
+
*/
|
|
315
|
+
column: string;
|
|
316
|
+
/**
|
|
317
|
+
* @generated from field: string detail = 2;
|
|
318
|
+
*/
|
|
319
|
+
detail: string;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Describes the message jammi.v1.error.TypeConversion.
|
|
323
|
+
* Use `create(TypeConversionSchema)` to create a new message.
|
|
324
|
+
*/
|
|
325
|
+
export declare const TypeConversionSchema: GenMessage<TypeConversion>;
|
|
326
|
+
/**
|
|
327
|
+
* `BackendError::TenantMismatch { table, expected, got }`. The tenant ids are
|
|
328
|
+
* UUID strings; an empty string means `None` (no tenant on that side).
|
|
329
|
+
*
|
|
330
|
+
* @generated from message jammi.v1.error.TenantMismatch
|
|
331
|
+
*/
|
|
332
|
+
export type TenantMismatch = Message<"jammi.v1.error.TenantMismatch"> & {
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: string table = 1;
|
|
335
|
+
*/
|
|
336
|
+
table: string;
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: string expected = 2;
|
|
339
|
+
*/
|
|
340
|
+
expected: string;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: string got = 3;
|
|
343
|
+
*/
|
|
344
|
+
got: string;
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Describes the message jammi.v1.error.TenantMismatch.
|
|
348
|
+
* Use `create(TenantMismatchSchema)` to create a new message.
|
|
349
|
+
*/
|
|
350
|
+
export declare const TenantMismatchSchema: GenMessage<TenantMismatch>;
|
|
351
|
+
/**
|
|
352
|
+
* A `JammiError` variant carrying a single human-readable string (`Inference`,
|
|
353
|
+
* `Catalog`, `Config`, `Eval`, `Tenant`, `FineTune`, `Gpu`, `Backend`,
|
|
354
|
+
* `EvidenceChannel`, `Other`).
|
|
355
|
+
*
|
|
356
|
+
* @generated from message jammi.v1.error.StringError
|
|
357
|
+
*/
|
|
358
|
+
export type StringError = Message<"jammi.v1.error.StringError"> & {
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: string message = 1;
|
|
361
|
+
*/
|
|
362
|
+
message: string;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Describes the message jammi.v1.error.StringError.
|
|
366
|
+
* Use `create(StringErrorSchema)` to create a new message.
|
|
367
|
+
*/
|
|
368
|
+
export declare const StringErrorSchema: GenMessage<StringError>;
|
|
369
|
+
/**
|
|
370
|
+
* `JammiError::Source { source_id, message }`.
|
|
371
|
+
*
|
|
372
|
+
* @generated from message jammi.v1.error.SourceError
|
|
373
|
+
*/
|
|
374
|
+
export type SourceError = Message<"jammi.v1.error.SourceError"> & {
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: string source_id = 1;
|
|
377
|
+
*/
|
|
378
|
+
sourceId: string;
|
|
379
|
+
/**
|
|
380
|
+
* @generated from field: string message = 2;
|
|
381
|
+
*/
|
|
382
|
+
message: string;
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* Describes the message jammi.v1.error.SourceError.
|
|
386
|
+
* Use `create(SourceErrorSchema)` to create a new message.
|
|
387
|
+
*/
|
|
388
|
+
export declare const SourceErrorSchema: GenMessage<SourceError>;
|
|
389
|
+
/**
|
|
390
|
+
* `JammiError::Model { model_id, message }`.
|
|
391
|
+
*
|
|
392
|
+
* @generated from message jammi.v1.error.ModelError
|
|
393
|
+
*/
|
|
394
|
+
export type ModelError = Message<"jammi.v1.error.ModelError"> & {
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: string model_id = 1;
|
|
397
|
+
*/
|
|
398
|
+
modelId: string;
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: string message = 2;
|
|
401
|
+
*/
|
|
402
|
+
message: string;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Describes the message jammi.v1.error.ModelError.
|
|
406
|
+
* Use `create(ModelErrorSchema)` to create a new message.
|
|
407
|
+
*/
|
|
408
|
+
export declare const ModelErrorSchema: GenMessage<ModelError>;
|
|
409
|
+
/**
|
|
410
|
+
* `JammiError::Schema { table, column, expected, actual }`.
|
|
411
|
+
*
|
|
412
|
+
* @generated from message jammi.v1.error.SchemaError
|
|
413
|
+
*/
|
|
414
|
+
export type SchemaError = Message<"jammi.v1.error.SchemaError"> & {
|
|
415
|
+
/**
|
|
416
|
+
* @generated from field: string table = 1;
|
|
417
|
+
*/
|
|
418
|
+
table: string;
|
|
419
|
+
/**
|
|
420
|
+
* @generated from field: string column = 2;
|
|
421
|
+
*/
|
|
422
|
+
column: string;
|
|
423
|
+
/**
|
|
424
|
+
* @generated from field: string expected = 3;
|
|
425
|
+
*/
|
|
426
|
+
expected: string;
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: string actual = 4;
|
|
429
|
+
*/
|
|
430
|
+
actual: string;
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* Describes the message jammi.v1.error.SchemaError.
|
|
434
|
+
* Use `create(SchemaErrorSchema)` to create a new message.
|
|
435
|
+
*/
|
|
436
|
+
export declare const SchemaErrorSchema: GenMessage<SchemaError>;
|
|
437
|
+
/**
|
|
438
|
+
* TriggerErrorDetail — the structured wire detail for `jammi_db::TriggerError`,
|
|
439
|
+
* attached to a `tonic::Status` by the server's `map_trigger_error` so a remote
|
|
440
|
+
* `RemoteSession` reconstructs the EXACT `TriggerError` the in-process path
|
|
441
|
+
* returns (the standard gRPC code set collapses several variants onto one code).
|
|
442
|
+
*
|
|
443
|
+
* The contract is complete and faithful over `TriggerError`. Every owned-shape
|
|
444
|
+
* variant has its own typed arm. The two `#[from]` variants do NOT fold: their
|
|
445
|
+
* inner errors are engine-owned and fully reconstructable, so `backing_table`
|
|
446
|
+
* nests the shared `MutableTableErrorDetail` and `backend` nests the shared
|
|
447
|
+
* `BackendErrorDetail` — the same faithful taxonomies `JammiErrorDetail` reuses.
|
|
448
|
+
* No `TriggerError` variant degrades to a lossy string.
|
|
449
|
+
*
|
|
450
|
+
* @generated from message jammi.v1.error.TriggerErrorDetail
|
|
451
|
+
*/
|
|
452
|
+
export type TriggerErrorDetail = Message<"jammi.v1.error.TriggerErrorDetail"> & {
|
|
453
|
+
/**
|
|
454
|
+
* @generated from oneof jammi.v1.error.TriggerErrorDetail.variant
|
|
455
|
+
*/
|
|
456
|
+
variant: {
|
|
457
|
+
/**
|
|
458
|
+
* @generated from field: string topic_not_found = 1;
|
|
459
|
+
*/
|
|
460
|
+
value: string;
|
|
461
|
+
case: "topicNotFound";
|
|
462
|
+
} | {
|
|
463
|
+
/**
|
|
464
|
+
* @generated from field: jammi.v1.error.SchemaConflict schema_conflict = 2;
|
|
465
|
+
*/
|
|
466
|
+
value: SchemaConflict;
|
|
467
|
+
case: "schemaConflict";
|
|
468
|
+
} | {
|
|
469
|
+
/**
|
|
470
|
+
* @generated from field: jammi.v1.error.UnsupportedSchemaType unsupported_schema_type = 3;
|
|
471
|
+
*/
|
|
472
|
+
value: UnsupportedSchemaType;
|
|
473
|
+
case: "unsupportedSchemaType";
|
|
474
|
+
} | {
|
|
475
|
+
/**
|
|
476
|
+
* @generated from field: string batch_schema_mismatch = 4;
|
|
477
|
+
*/
|
|
478
|
+
value: string;
|
|
479
|
+
case: "batchSchemaMismatch";
|
|
480
|
+
} | {
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: jammi.v1.error.PublishTenantMismatch publish_tenant_mismatch = 5;
|
|
483
|
+
*/
|
|
484
|
+
value: PublishTenantMismatch;
|
|
485
|
+
case: "publishTenantMismatch";
|
|
486
|
+
} | {
|
|
487
|
+
/**
|
|
488
|
+
* @generated from field: string predicate_parse = 6;
|
|
489
|
+
*/
|
|
490
|
+
value: string;
|
|
491
|
+
case: "predicateParse";
|
|
492
|
+
} | {
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: string predicate_eval = 7;
|
|
495
|
+
*/
|
|
496
|
+
value: string;
|
|
497
|
+
case: "predicateEval";
|
|
498
|
+
} | {
|
|
499
|
+
/**
|
|
500
|
+
* @generated from field: string predicate_unsupported = 8;
|
|
501
|
+
*/
|
|
502
|
+
value: string;
|
|
503
|
+
case: "predicateUnsupported";
|
|
504
|
+
} | {
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: uint64 offset_evicted = 9;
|
|
507
|
+
*/
|
|
508
|
+
value: bigint;
|
|
509
|
+
case: "offsetEvicted";
|
|
510
|
+
} | {
|
|
511
|
+
/**
|
|
512
|
+
* `TriggerError::BackingTable(MutableTableError)` — engine-owned, nested
|
|
513
|
+
* faithfully (never folded to a string).
|
|
514
|
+
*
|
|
515
|
+
* @generated from field: jammi.v1.error.MutableTableErrorDetail backing_table = 10;
|
|
516
|
+
*/
|
|
517
|
+
value: MutableTableErrorDetail;
|
|
518
|
+
case: "backingTable";
|
|
519
|
+
} | {
|
|
520
|
+
/**
|
|
521
|
+
* `TriggerError::Backend(BackendError)` — engine-owned, nested faithfully.
|
|
522
|
+
*
|
|
523
|
+
* @generated from field: jammi.v1.error.BackendErrorDetail backend = 11;
|
|
524
|
+
*/
|
|
525
|
+
value: BackendErrorDetail;
|
|
526
|
+
case: "backend";
|
|
527
|
+
} | {
|
|
528
|
+
/**
|
|
529
|
+
* @generated from field: string driver = 12;
|
|
530
|
+
*/
|
|
531
|
+
value: string;
|
|
532
|
+
case: "driver";
|
|
533
|
+
} | {
|
|
534
|
+
/**
|
|
535
|
+
* @generated from field: string catalog = 13;
|
|
536
|
+
*/
|
|
537
|
+
value: string;
|
|
538
|
+
case: "catalog";
|
|
539
|
+
} | {
|
|
540
|
+
case: undefined;
|
|
541
|
+
value?: undefined;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Describes the message jammi.v1.error.TriggerErrorDetail.
|
|
546
|
+
* Use `create(TriggerErrorDetailSchema)` to create a new message.
|
|
547
|
+
*/
|
|
548
|
+
export declare const TriggerErrorDetailSchema: GenMessage<TriggerErrorDetail>;
|
|
549
|
+
/**
|
|
550
|
+
* `TriggerError::SchemaConflict { topic, detail }`.
|
|
551
|
+
*
|
|
552
|
+
* @generated from message jammi.v1.error.SchemaConflict
|
|
553
|
+
*/
|
|
554
|
+
export type SchemaConflict = Message<"jammi.v1.error.SchemaConflict"> & {
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: string topic = 1;
|
|
557
|
+
*/
|
|
558
|
+
topic: string;
|
|
559
|
+
/**
|
|
560
|
+
* @generated from field: string detail = 2;
|
|
561
|
+
*/
|
|
562
|
+
detail: string;
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Describes the message jammi.v1.error.SchemaConflict.
|
|
566
|
+
* Use `create(SchemaConflictSchema)` to create a new message.
|
|
567
|
+
*/
|
|
568
|
+
export declare const SchemaConflictSchema: GenMessage<SchemaConflict>;
|
|
569
|
+
/**
|
|
570
|
+
* `TriggerError::UnsupportedSchemaType { column, data_type }`.
|
|
571
|
+
*
|
|
572
|
+
* @generated from message jammi.v1.error.UnsupportedSchemaType
|
|
573
|
+
*/
|
|
574
|
+
export type UnsupportedSchemaType = Message<"jammi.v1.error.UnsupportedSchemaType"> & {
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: string column = 1;
|
|
577
|
+
*/
|
|
578
|
+
column: string;
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: string data_type = 2;
|
|
581
|
+
*/
|
|
582
|
+
dataType: string;
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Describes the message jammi.v1.error.UnsupportedSchemaType.
|
|
586
|
+
* Use `create(UnsupportedSchemaTypeSchema)` to create a new message.
|
|
587
|
+
*/
|
|
588
|
+
export declare const UnsupportedSchemaTypeSchema: GenMessage<UnsupportedSchemaType>;
|
|
589
|
+
/**
|
|
590
|
+
* `TriggerError::PublishTenantMismatch { topic, topic_tenant, publish_tenant }`.
|
|
591
|
+
* The tenant ids are UUID strings; an empty string means `None` (an unscoped
|
|
592
|
+
* publish or a global topic).
|
|
593
|
+
*
|
|
594
|
+
* @generated from message jammi.v1.error.PublishTenantMismatch
|
|
595
|
+
*/
|
|
596
|
+
export type PublishTenantMismatch = Message<"jammi.v1.error.PublishTenantMismatch"> & {
|
|
597
|
+
/**
|
|
598
|
+
* @generated from field: string topic = 1;
|
|
599
|
+
*/
|
|
600
|
+
topic: string;
|
|
601
|
+
/**
|
|
602
|
+
* @generated from field: string topic_tenant = 2;
|
|
603
|
+
*/
|
|
604
|
+
topicTenant: string;
|
|
605
|
+
/**
|
|
606
|
+
* @generated from field: string publish_tenant = 3;
|
|
607
|
+
*/
|
|
608
|
+
publishTenant: string;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Describes the message jammi.v1.error.PublishTenantMismatch.
|
|
612
|
+
* Use `create(PublishTenantMismatchSchema)` to create a new message.
|
|
613
|
+
*/
|
|
614
|
+
export declare const PublishTenantMismatchSchema: GenMessage<PublishTenantMismatch>;
|
|
615
|
+
/**
|
|
616
|
+
* AuditErrorDetail — the structured wire detail for `jammi_db::AuditError`,
|
|
617
|
+
* attached to a `tonic::Status` by the server's `map_audit_error` so a remote
|
|
618
|
+
* `RemoteSession` reconstructs the EXACT `AuditError` the in-process path
|
|
619
|
+
* returns.
|
|
620
|
+
*
|
|
621
|
+
* Every owned-shape variant has its own typed arm and reconstructs faithfully.
|
|
622
|
+
* The only fold is `serde` — `AuditError::Serde(#[from] serde_json::Error)`
|
|
623
|
+
* wraps a foreign error that cannot cross a process boundary, so it carries its
|
|
624
|
+
* faithful `Display` string (the genuine fidelity limit, mirroring how
|
|
625
|
+
* `JammiErrorDetail` folds its own foreign `#[from]` variants).
|
|
626
|
+
*
|
|
627
|
+
* @generated from message jammi.v1.error.AuditErrorDetail
|
|
628
|
+
*/
|
|
629
|
+
export type AuditErrorDetail = Message<"jammi.v1.error.AuditErrorDetail"> & {
|
|
630
|
+
/**
|
|
631
|
+
* @generated from oneof jammi.v1.error.AuditErrorDetail.variant
|
|
632
|
+
*/
|
|
633
|
+
variant: {
|
|
634
|
+
/**
|
|
635
|
+
* @generated from field: jammi.v1.error.LengthMismatch length_mismatch = 1;
|
|
636
|
+
*/
|
|
637
|
+
value: LengthMismatch;
|
|
638
|
+
case: "lengthMismatch";
|
|
639
|
+
} | {
|
|
640
|
+
/**
|
|
641
|
+
* @generated from field: jammi.v1.error.LineageTooLarge lineage_too_large = 2;
|
|
642
|
+
*/
|
|
643
|
+
value: LineageTooLarge;
|
|
644
|
+
case: "lineageTooLarge";
|
|
645
|
+
} | {
|
|
646
|
+
/**
|
|
647
|
+
* `AuditError::NoTenantBinding` carries no payload.
|
|
648
|
+
*
|
|
649
|
+
* @generated from field: bool no_tenant_binding = 3;
|
|
650
|
+
*/
|
|
651
|
+
value: boolean;
|
|
652
|
+
case: "noTenantBinding";
|
|
653
|
+
} | {
|
|
654
|
+
/**
|
|
655
|
+
* `AuditError::SignatureMismatch(Uuid)` — the offending query id (UUID
|
|
656
|
+
* string).
|
|
657
|
+
*
|
|
658
|
+
* @generated from field: string signature_mismatch = 4;
|
|
659
|
+
*/
|
|
660
|
+
value: string;
|
|
661
|
+
case: "signatureMismatch";
|
|
662
|
+
} | {
|
|
663
|
+
/**
|
|
664
|
+
* @generated from field: string master_key = 5;
|
|
665
|
+
*/
|
|
666
|
+
value: string;
|
|
667
|
+
case: "masterKey";
|
|
668
|
+
} | {
|
|
669
|
+
/**
|
|
670
|
+
* `AuditError::Serde` — the lone genuinely-foreign arm; its `Display`
|
|
671
|
+
* string is carried because a `serde_json::Error` does not cross the wire.
|
|
672
|
+
*
|
|
673
|
+
* @generated from field: string serde = 6;
|
|
674
|
+
*/
|
|
675
|
+
value: string;
|
|
676
|
+
case: "serde";
|
|
677
|
+
} | {
|
|
678
|
+
/**
|
|
679
|
+
* @generated from field: string storage = 7;
|
|
680
|
+
*/
|
|
681
|
+
value: string;
|
|
682
|
+
case: "storage";
|
|
683
|
+
} | {
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: string broker = 8;
|
|
686
|
+
*/
|
|
687
|
+
value: string;
|
|
688
|
+
case: "broker";
|
|
689
|
+
} | {
|
|
690
|
+
case: undefined;
|
|
691
|
+
value?: undefined;
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
/**
|
|
695
|
+
* Describes the message jammi.v1.error.AuditErrorDetail.
|
|
696
|
+
* Use `create(AuditErrorDetailSchema)` to create a new message.
|
|
697
|
+
*/
|
|
698
|
+
export declare const AuditErrorDetailSchema: GenMessage<AuditErrorDetail>;
|
|
699
|
+
/**
|
|
700
|
+
* `AuditError::LengthMismatch { ids, scores }`. Both are element counts.
|
|
701
|
+
*
|
|
702
|
+
* @generated from message jammi.v1.error.LengthMismatch
|
|
703
|
+
*/
|
|
704
|
+
export type LengthMismatch = Message<"jammi.v1.error.LengthMismatch"> & {
|
|
705
|
+
/**
|
|
706
|
+
* @generated from field: uint64 ids = 1;
|
|
707
|
+
*/
|
|
708
|
+
ids: bigint;
|
|
709
|
+
/**
|
|
710
|
+
* @generated from field: uint64 scores = 2;
|
|
711
|
+
*/
|
|
712
|
+
scores: bigint;
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* Describes the message jammi.v1.error.LengthMismatch.
|
|
716
|
+
* Use `create(LengthMismatchSchema)` to create a new message.
|
|
717
|
+
*/
|
|
718
|
+
export declare const LengthMismatchSchema: GenMessage<LengthMismatch>;
|
|
719
|
+
/**
|
|
720
|
+
* `AuditError::LineageTooLarge { actual, max }`. Both are byte counts.
|
|
721
|
+
*
|
|
722
|
+
* @generated from message jammi.v1.error.LineageTooLarge
|
|
723
|
+
*/
|
|
724
|
+
export type LineageTooLarge = Message<"jammi.v1.error.LineageTooLarge"> & {
|
|
725
|
+
/**
|
|
726
|
+
* @generated from field: uint64 actual = 1;
|
|
727
|
+
*/
|
|
728
|
+
actual: bigint;
|
|
729
|
+
/**
|
|
730
|
+
* @generated from field: uint64 max = 2;
|
|
731
|
+
*/
|
|
732
|
+
max: bigint;
|
|
733
|
+
};
|
|
734
|
+
/**
|
|
735
|
+
* Describes the message jammi.v1.error.LineageTooLarge.
|
|
736
|
+
* Use `create(LineageTooLargeSchema)` to create a new message.
|
|
737
|
+
*/
|
|
738
|
+
export declare const LineageTooLargeSchema: GenMessage<LineageTooLarge>;
|
|
739
|
+
//# sourceMappingURL=error_pb.d.ts.map
|