@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
package/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# @f-inverse/jammi-client
|
|
2
|
+
|
|
3
|
+
The official TypeScript gRPC-web client for the Jammi engine.
|
|
4
|
+
|
|
5
|
+
It is **generated from the canonical proto** at `crates/jammi-ai/proto/jammi/v1`
|
|
6
|
+
(the single codegen source for every language binding — Rust, Python, and this
|
|
7
|
+
one) using [buf] + [protobuf-es] (`protoc-gen-es`) + [Connect-ES]. The transport
|
|
8
|
+
is gRPC-web over `fetch`, so the client runs unchanged in a browser, a
|
|
9
|
+
**Cloudflare Worker / V8 isolate** (no native code), or Node — interoperating
|
|
10
|
+
with the server's `tonic-web` surface.
|
|
11
|
+
|
|
12
|
+
## Use
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { connect, Modality } from "@f-inverse/jammi-client";
|
|
16
|
+
|
|
17
|
+
// One transport, one session-scoped tenant binding, a client per service.
|
|
18
|
+
const jammi = connect("https://engine.example.com");
|
|
19
|
+
|
|
20
|
+
await jammi.session.setTenant({ tenant: { id: tenantUuid } });
|
|
21
|
+
|
|
22
|
+
const hits = await jammi.embedding.search({
|
|
23
|
+
sourceId: "corpus",
|
|
24
|
+
query: { case: "rowKey", value: "track-42" },
|
|
25
|
+
k: 10,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// Server-streaming subscribe is an async iterable.
|
|
29
|
+
for await (const batch of jammi.trigger.subscribe({ topic: { name: "events" } })) {
|
|
30
|
+
// ...
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`connect(endpoint, opts?)` builds the gRPC-web transport and returns a
|
|
35
|
+
`JammiClient` with one client per service (`session`, `embedding`, `inference`,
|
|
36
|
+
`eval`, `fineTune`, `mutableTable`, `channel`, `trigger`, `audit`). Each
|
|
37
|
+
connection mints an opaque session id (overridable via `opts.sessionId`) and
|
|
38
|
+
injects it as the `jammi-session-id` header on every request — the key the
|
|
39
|
+
server binds tenant state against. Pass extra interceptors via
|
|
40
|
+
`opts.interceptors`.
|
|
41
|
+
|
|
42
|
+
## Regenerate the client surface
|
|
43
|
+
|
|
44
|
+
The generated code lives in `src/gen/` and is **never committed** — it is
|
|
45
|
+
emitted at build time from the repo proto, so it cannot drift. One command:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
npm run generate # == buf generate ../../crates/jammi-ai/proto
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
`npm run build` (and `typecheck` / `test`) regenerate first, so you rarely call
|
|
52
|
+
`generate` directly. After changing a `.proto`, just rebuild.
|
|
53
|
+
|
|
54
|
+
## Develop
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
npm install
|
|
58
|
+
npm run typecheck # tsc --noEmit (strict), regenerates first
|
|
59
|
+
npm run test # vitest (hermetic — no network), regenerates first
|
|
60
|
+
npm run build # clean + generate + tsc → dist/
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Versioned in lockstep with the engine (`workspace.package.version`); the npm
|
|
64
|
+
publish runs only on the engine's release tag.
|
|
65
|
+
|
|
66
|
+
[buf]: https://buf.build
|
|
67
|
+
[protobuf-es]: https://github.com/bufbuild/protobuf-es
|
|
68
|
+
[Connect-ES]: https://github.com/connectrpc/connect-es
|
|
@@ -0,0 +1,213 @@
|
|
|
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/audit.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_jammi_v1_audit: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* One per-query audit record. Mirrors the Rust `jammi_db::PerQueryAudit`.
|
|
10
|
+
*
|
|
11
|
+
* On `AuditLog` the caller leaves `tenant_id` and `signature` empty — the
|
|
12
|
+
* engine stamps the session tenant and computes the HMAC signature on write.
|
|
13
|
+
* Both fields are populated on every record returned by a fetch verb.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message jammi.v1.audit.PerQueryAudit
|
|
16
|
+
*/
|
|
17
|
+
export type PerQueryAudit = Message<"jammi.v1.audit.PerQueryAudit"> & {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for this query invocation (UUID string).
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string query_id = 1;
|
|
22
|
+
*/
|
|
23
|
+
queryId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Tenant scope, the tenant's canonical string form. Auto-injected on write;
|
|
26
|
+
* present on reads. Callers leave it empty when logging.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string tenant_id = 2;
|
|
29
|
+
*/
|
|
30
|
+
tenantId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Model identifier (e.g. a HuggingFace repo id).
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string model_id = 3;
|
|
35
|
+
*/
|
|
36
|
+
modelId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specific model version/revision (commit SHA, HF revision, etc.).
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string model_version = 4;
|
|
41
|
+
*/
|
|
42
|
+
modelVersion: string;
|
|
43
|
+
/**
|
|
44
|
+
* Open-ended tenant-defined query metadata as a JSON value string. The engine
|
|
45
|
+
* stores it verbatim and never interprets it.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string query_lineage = 5;
|
|
48
|
+
*/
|
|
49
|
+
queryLineage: string;
|
|
50
|
+
/**
|
|
51
|
+
* Top-K result identifiers (whatever stable key the tenant uses).
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: repeated string top_k_result_ids = 6;
|
|
54
|
+
*/
|
|
55
|
+
topKResultIds: string[];
|
|
56
|
+
/**
|
|
57
|
+
* Distance/similarity scores, parallel to `top_k_result_ids`.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: repeated float retrieval_scores = 7;
|
|
60
|
+
*/
|
|
61
|
+
retrievalScores: number[];
|
|
62
|
+
/**
|
|
63
|
+
* When the query executed, as epoch microseconds (the audit table's storage
|
|
64
|
+
* form). Server-side timestamp; ignored on write, present on reads.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: int64 executed_at_micros = 8;
|
|
67
|
+
*/
|
|
68
|
+
executedAtMicros: bigint;
|
|
69
|
+
/**
|
|
70
|
+
* HMAC-SHA256 signature over the canonical serialization. Computed by the
|
|
71
|
+
* engine on write; never caller-supplied. Present on reads.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string signature = 9;
|
|
74
|
+
*/
|
|
75
|
+
signature: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message jammi.v1.audit.PerQueryAudit.
|
|
79
|
+
* Use `create(PerQueryAuditSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export declare const PerQueryAuditSchema: GenMessage<PerQueryAudit>;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from message jammi.v1.audit.AuditLogRequest
|
|
84
|
+
*/
|
|
85
|
+
export type AuditLogRequest = Message<"jammi.v1.audit.AuditLogRequest"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: repeated jammi.v1.audit.PerQueryAudit records = 1;
|
|
88
|
+
*/
|
|
89
|
+
records: PerQueryAudit[];
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message jammi.v1.audit.AuditLogRequest.
|
|
93
|
+
* Use `create(AuditLogRequestSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export declare const AuditLogRequestSchema: GenMessage<AuditLogRequest>;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message jammi.v1.audit.AuditFetchByQueryIdRequest
|
|
98
|
+
*/
|
|
99
|
+
export type AuditFetchByQueryIdRequest = Message<"jammi.v1.audit.AuditFetchByQueryIdRequest"> & {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: string query_id = 1;
|
|
102
|
+
*/
|
|
103
|
+
queryId: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Describes the message jammi.v1.audit.AuditFetchByQueryIdRequest.
|
|
107
|
+
* Use `create(AuditFetchByQueryIdRequestSchema)` to create a new message.
|
|
108
|
+
*/
|
|
109
|
+
export declare const AuditFetchByQueryIdRequestSchema: GenMessage<AuditFetchByQueryIdRequest>;
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message jammi.v1.audit.AuditFetchByQueryIdResponse
|
|
112
|
+
*/
|
|
113
|
+
export type AuditFetchByQueryIdResponse = Message<"jammi.v1.audit.AuditFetchByQueryIdResponse"> & {
|
|
114
|
+
/**
|
|
115
|
+
* The record, or unset if no record with that id is visible to the tenant.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: optional jammi.v1.audit.PerQueryAudit record = 1;
|
|
118
|
+
*/
|
|
119
|
+
record?: PerQueryAudit | undefined;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Describes the message jammi.v1.audit.AuditFetchByQueryIdResponse.
|
|
123
|
+
* Use `create(AuditFetchByQueryIdResponseSchema)` to create a new message.
|
|
124
|
+
*/
|
|
125
|
+
export declare const AuditFetchByQueryIdResponseSchema: GenMessage<AuditFetchByQueryIdResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from message jammi.v1.audit.AuditFetchRecentRequest
|
|
128
|
+
*/
|
|
129
|
+
export type AuditFetchRecentRequest = Message<"jammi.v1.audit.AuditFetchRecentRequest"> & {
|
|
130
|
+
/**
|
|
131
|
+
* Maximum number of records to return, newest first.
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: uint32 limit = 1;
|
|
134
|
+
*/
|
|
135
|
+
limit: number;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Describes the message jammi.v1.audit.AuditFetchRecentRequest.
|
|
139
|
+
* Use `create(AuditFetchRecentRequestSchema)` to create a new message.
|
|
140
|
+
*/
|
|
141
|
+
export declare const AuditFetchRecentRequestSchema: GenMessage<AuditFetchRecentRequest>;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from message jammi.v1.audit.AuditFetchRecentResponse
|
|
144
|
+
*/
|
|
145
|
+
export type AuditFetchRecentResponse = Message<"jammi.v1.audit.AuditFetchRecentResponse"> & {
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: repeated jammi.v1.audit.PerQueryAudit records = 1;
|
|
148
|
+
*/
|
|
149
|
+
records: PerQueryAudit[];
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Describes the message jammi.v1.audit.AuditFetchRecentResponse.
|
|
153
|
+
* Use `create(AuditFetchRecentResponseSchema)` to create a new message.
|
|
154
|
+
*/
|
|
155
|
+
export declare const AuditFetchRecentResponseSchema: GenMessage<AuditFetchRecentResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* AuditService — the wire surface for the engine's per-query audit verbs.
|
|
158
|
+
*
|
|
159
|
+
* `AuditLog`, `AuditFetchByQueryId`, and `AuditFetchRecent` are imperative
|
|
160
|
+
* session methods — signing, tenant-injection, and signature-verified decode
|
|
161
|
+
* are non-SQL logic — so they live as typed gRPC RPCs alongside the other
|
|
162
|
+
* engine-backed services rather than on the Flight SQL surface (query/result
|
|
163
|
+
* only, per ADR-01 §3.2). The verbs name a substrate primitive — a signed
|
|
164
|
+
* per-query audit log — and carry no tenant-domain concept.
|
|
165
|
+
*
|
|
166
|
+
* Each verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
167
|
+
* abstraction (`audit_log` / `audit_fetch_by_query_id` / `audit_fetch_recent`);
|
|
168
|
+
* the service reimplements no signing, storage, or query logic. The
|
|
169
|
+
* `PerQueryAudit` message mirrors the Rust record field for field, including
|
|
170
|
+
* its server-computed `signature`.
|
|
171
|
+
*
|
|
172
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
173
|
+
* shared TenantInterceptor. The audit primitive requires a bound tenant — an
|
|
174
|
+
* unscoped call is rejected by the engine.
|
|
175
|
+
*
|
|
176
|
+
* @generated from service jammi.v1.audit.AuditService
|
|
177
|
+
*/
|
|
178
|
+
export declare const AuditService: GenService<{
|
|
179
|
+
/**
|
|
180
|
+
* Sign and persist a batch of audit records under the session's tenant,
|
|
181
|
+
* publishing them to the audit topic. Peer of the abstraction's `audit_log`.
|
|
182
|
+
*
|
|
183
|
+
* @generated from rpc jammi.v1.audit.AuditService.AuditLog
|
|
184
|
+
*/
|
|
185
|
+
auditLog: {
|
|
186
|
+
methodKind: "unary";
|
|
187
|
+
input: typeof AuditLogRequestSchema;
|
|
188
|
+
output: typeof EmptySchema;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Fetch one audit record by query id (tenant-scoped). Peer of the
|
|
192
|
+
* abstraction's `audit_fetch_by_query_id`.
|
|
193
|
+
*
|
|
194
|
+
* @generated from rpc jammi.v1.audit.AuditService.AuditFetchByQueryId
|
|
195
|
+
*/
|
|
196
|
+
auditFetchByQueryId: {
|
|
197
|
+
methodKind: "unary";
|
|
198
|
+
input: typeof AuditFetchByQueryIdRequestSchema;
|
|
199
|
+
output: typeof AuditFetchByQueryIdResponseSchema;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Fetch the most recent audit records (tenant-scoped), newest first. Peer of
|
|
203
|
+
* the abstraction's `audit_fetch_recent`.
|
|
204
|
+
*
|
|
205
|
+
* @generated from rpc jammi.v1.audit.AuditService.AuditFetchRecent
|
|
206
|
+
*/
|
|
207
|
+
auditFetchRecent: {
|
|
208
|
+
methodKind: "unary";
|
|
209
|
+
input: typeof AuditFetchRecentRequestSchema;
|
|
210
|
+
output: typeof AuditFetchRecentResponseSchema;
|
|
211
|
+
};
|
|
212
|
+
}>;
|
|
213
|
+
//# sourceMappingURL=audit_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/audit_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,mBAAmB,EAAE,OACgrC,CAAC;AAEntC;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,8BAA8B,CAAC,GAAG;IACpE;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB;;;;OAIG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;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;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC;IACpC;;;;;OAKG;IACH,QAAQ,EAAE;QACR,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,qBAAqB,CAAC;QACpC,MAAM,EAAE,OAAO,WAAW,CAAC;KAC5B,CAAC;IACF;;;;;OAKG;IACH,mBAAmB,EAAE;QACnB,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,gCAAgC,CAAC;QAC/C,MAAM,EAAE,OAAO,iCAAiC,CAAC;KAClD,CAAC;IACF;;;;;OAKG;IACH,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,6BAA6B,CAAC;QAC5C,MAAM,EAAE,OAAO,8BAA8B,CAAC;KAC/C,CAAC;CACH,CACoC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file jammi/v1/audit.proto (package jammi.v1.audit, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file jammi/v1/audit.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_jammi_v1_audit = /*@__PURE__*/ fileDesc("ChRqYW1taS92MS9hdWRpdC5wcm90bxIOamFtbWkudjEuYXVkaXQi1wEKDVBlclF1ZXJ5QXVkaXQSEAoIcXVlcnlfaWQYASABKAkSEQoJdGVuYW50X2lkGAIgASgJEhAKCG1vZGVsX2lkGAMgASgJEhUKDW1vZGVsX3ZlcnNpb24YBCABKAkSFQoNcXVlcnlfbGluZWFnZRgFIAEoCRIYChB0b3Bfa19yZXN1bHRfaWRzGAYgAygJEhgKEHJldHJpZXZhb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+
*/
|
|
14
|
+
export const PerQueryAuditSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_audit, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message jammi.v1.audit.AuditLogRequest.
|
|
17
|
+
* Use `create(AuditLogRequestSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const AuditLogRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_audit, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message jammi.v1.audit.AuditFetchByQueryIdRequest.
|
|
22
|
+
* Use `create(AuditFetchByQueryIdRequestSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const AuditFetchByQueryIdRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_audit, 2);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message jammi.v1.audit.AuditFetchByQueryIdResponse.
|
|
27
|
+
* Use `create(AuditFetchByQueryIdResponseSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const AuditFetchByQueryIdResponseSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_audit, 3);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message jammi.v1.audit.AuditFetchRecentRequest.
|
|
32
|
+
* Use `create(AuditFetchRecentRequestSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const AuditFetchRecentRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_audit, 4);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message jammi.v1.audit.AuditFetchRecentResponse.
|
|
37
|
+
* Use `create(AuditFetchRecentResponseSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const AuditFetchRecentResponseSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_audit, 5);
|
|
40
|
+
/**
|
|
41
|
+
* AuditService — the wire surface for the engine's per-query audit verbs.
|
|
42
|
+
*
|
|
43
|
+
* `AuditLog`, `AuditFetchByQueryId`, and `AuditFetchRecent` are imperative
|
|
44
|
+
* session methods — signing, tenant-injection, and signature-verified decode
|
|
45
|
+
* are non-SQL logic — so they live as typed gRPC RPCs alongside the other
|
|
46
|
+
* engine-backed services rather than on the Flight SQL surface (query/result
|
|
47
|
+
* only, per ADR-01 §3.2). The verbs name a substrate primitive — a signed
|
|
48
|
+
* per-query audit log — and carry no tenant-domain concept.
|
|
49
|
+
*
|
|
50
|
+
* Each verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
51
|
+
* abstraction (`audit_log` / `audit_fetch_by_query_id` / `audit_fetch_recent`);
|
|
52
|
+
* the service reimplements no signing, storage, or query logic. The
|
|
53
|
+
* `PerQueryAudit` message mirrors the Rust record field for field, including
|
|
54
|
+
* its server-computed `signature`.
|
|
55
|
+
*
|
|
56
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
57
|
+
* shared TenantInterceptor. The audit primitive requires a bound tenant — an
|
|
58
|
+
* unscoped call is rejected by the engine.
|
|
59
|
+
*
|
|
60
|
+
* @generated from service jammi.v1.audit.AuditService
|
|
61
|
+
*/
|
|
62
|
+
export const AuditService = /*@__PURE__*/ serviceDesc(file_jammi_v1_audit, 0);
|
|
63
|
+
//# sourceMappingURL=audit_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit_pb.js","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/audit_pb.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oFAAoF;AACpF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAGpE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAY,aAAa,CACvD,QAAQ,CAAC,wqCAAwqC,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAgFntC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAYtC;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAYtC;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA2C,aAAa,CACnG,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;AActC;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA4C,aAAa,CACrG,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;AActC;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAYtC;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAyC,aAAa,CAC/F,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,YAAY,GAkCpB,aAAa,CAChB,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { GenEnum, 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/channel.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_jammi_v1_channel: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* One declared column on a channel. Mirrors the engine's `ChannelColumn`.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message jammi.v1.channel.ChannelColumn
|
|
12
|
+
*/
|
|
13
|
+
export type ChannelColumn = Message<"jammi.v1.channel.ChannelColumn"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string name = 1;
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: jammi.v1.channel.ChannelColumnType data_type = 2;
|
|
20
|
+
*/
|
|
21
|
+
dataType: ChannelColumnType;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message jammi.v1.channel.ChannelColumn.
|
|
25
|
+
* Use `create(ChannelColumnSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ChannelColumnSchema: GenMessage<ChannelColumn>;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from message jammi.v1.channel.RegisterChannelRequest
|
|
30
|
+
*/
|
|
31
|
+
export type RegisterChannelRequest = Message<"jammi.v1.channel.RegisterChannelRequest"> & {
|
|
32
|
+
/**
|
|
33
|
+
* Channel id: ASCII slug `[a-z][a-z0-9_]{0,63}`.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string channel_id = 1;
|
|
36
|
+
*/
|
|
37
|
+
channelId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Resolution priority among channels.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: int32 priority = 2;
|
|
42
|
+
*/
|
|
43
|
+
priority: number;
|
|
44
|
+
/**
|
|
45
|
+
* Ordered columns declared on the channel.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: repeated jammi.v1.channel.ChannelColumn columns = 3;
|
|
48
|
+
*/
|
|
49
|
+
columns: ChannelColumn[];
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message jammi.v1.channel.RegisterChannelRequest.
|
|
53
|
+
* Use `create(RegisterChannelRequestSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export declare const RegisterChannelRequestSchema: GenMessage<RegisterChannelRequest>;
|
|
56
|
+
/**
|
|
57
|
+
* @generated from message jammi.v1.channel.AddChannelColumnsRequest
|
|
58
|
+
*/
|
|
59
|
+
export type AddChannelColumnsRequest = Message<"jammi.v1.channel.AddChannelColumnsRequest"> & {
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string channel_id = 1;
|
|
62
|
+
*/
|
|
63
|
+
channelId: string;
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: repeated jammi.v1.channel.ChannelColumn columns = 2;
|
|
66
|
+
*/
|
|
67
|
+
columns: ChannelColumn[];
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message jammi.v1.channel.AddChannelColumnsRequest.
|
|
71
|
+
* Use `create(AddChannelColumnsRequestSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export declare const AddChannelColumnsRequestSchema: GenMessage<AddChannelColumnsRequest>;
|
|
74
|
+
/**
|
|
75
|
+
* The closed set of Arrow types a channel column may declare. Mirrors the
|
|
76
|
+
* engine's `ChannelColumnType`.
|
|
77
|
+
*
|
|
78
|
+
* @generated from enum jammi.v1.channel.ChannelColumnType
|
|
79
|
+
*/
|
|
80
|
+
export declare enum ChannelColumnType {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_UNSPECIFIED = 0;
|
|
83
|
+
*/
|
|
84
|
+
UNSPECIFIED = 0,
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_FLOAT32 = 1;
|
|
87
|
+
*/
|
|
88
|
+
FLOAT32 = 1,
|
|
89
|
+
/**
|
|
90
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_FLOAT64 = 2;
|
|
91
|
+
*/
|
|
92
|
+
FLOAT64 = 2,
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_INT32 = 3;
|
|
95
|
+
*/
|
|
96
|
+
INT32 = 3,
|
|
97
|
+
/**
|
|
98
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_INT64 = 4;
|
|
99
|
+
*/
|
|
100
|
+
INT64 = 4,
|
|
101
|
+
/**
|
|
102
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_UTF8 = 5;
|
|
103
|
+
*/
|
|
104
|
+
UTF8 = 5,
|
|
105
|
+
/**
|
|
106
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_BOOLEAN = 6;
|
|
107
|
+
*/
|
|
108
|
+
BOOLEAN = 6
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Describes the enum jammi.v1.channel.ChannelColumnType.
|
|
112
|
+
*/
|
|
113
|
+
export declare const ChannelColumnTypeSchema: GenEnum<ChannelColumnType>;
|
|
114
|
+
/**
|
|
115
|
+
* ChannelService — the wire surface for the engine's provenance-channel
|
|
116
|
+
* declaration verbs.
|
|
117
|
+
*
|
|
118
|
+
* `RegisterChannel` and `AddChannelColumns` are imperative session methods, not
|
|
119
|
+
* SQL queries, so they live as typed gRPC RPCs alongside the other engine-
|
|
120
|
+
* backed services rather than on the Flight SQL surface (query/result only, per
|
|
121
|
+
* ADR-01 §3.2). The verbs name a substrate primitive — a provenance channel and
|
|
122
|
+
* its declared columns — and carry no tenant-domain concept.
|
|
123
|
+
*
|
|
124
|
+
* Each verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
125
|
+
* abstraction (`register_channel` / `add_channel_columns`); the service
|
|
126
|
+
* reimplements no catalog logic. The messages mirror the Rust `ChannelSpec` /
|
|
127
|
+
* `ChannelColumn` field for field.
|
|
128
|
+
*
|
|
129
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
130
|
+
* shared TenantInterceptor — the same mechanism every other gRPC service uses.
|
|
131
|
+
*
|
|
132
|
+
* @generated from service jammi.v1.channel.ChannelService
|
|
133
|
+
*/
|
|
134
|
+
export declare const ChannelService: GenService<{
|
|
135
|
+
/**
|
|
136
|
+
* Register a provenance channel and its initial columns. Peer of the
|
|
137
|
+
* abstraction's `register_channel`.
|
|
138
|
+
*
|
|
139
|
+
* @generated from rpc jammi.v1.channel.ChannelService.RegisterChannel
|
|
140
|
+
*/
|
|
141
|
+
registerChannel: {
|
|
142
|
+
methodKind: "unary";
|
|
143
|
+
input: typeof RegisterChannelRequestSchema;
|
|
144
|
+
output: typeof EmptySchema;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Append columns to an already-registered channel (append-only). Peer of the
|
|
148
|
+
* abstraction's `add_channel_columns`.
|
|
149
|
+
*
|
|
150
|
+
* @generated from rpc jammi.v1.channel.ChannelService.AddChannelColumns
|
|
151
|
+
*/
|
|
152
|
+
addChannelColumns: {
|
|
153
|
+
methodKind: "unary";
|
|
154
|
+
input: typeof AddChannelColumnsRequestSchema;
|
|
155
|
+
output: typeof EmptySchema;
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
158
|
+
//# sourceMappingURL=channel_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/channel_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OACwiC,CAAC;AAE7kC;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,gCAAgC,CAAC,GAAG;IACtE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CACnB,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IACxF;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAEl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12.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file jammi/v1/channel.proto (package jammi.v1.channel, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file jammi/v1/channel.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_jammi_v1_channel = /*@__PURE__*/ fileDesc("ChZqYW1taS92MS9jaGFubmVsLnByb3RvEhBqYW1taS52MS5jaGFubmVsIlUKDUNoYW5uZWxDb2x1bW4SDAoEbmFtZRgBIAEoCRI2CglkYXRhX3R5cGUYAiABKA4yIy5qYW1taS52MS5jaGFubmVsLkNoYW5uZWxDb2x1bW5UeXBlInAKFlJlZ2lzdGVyQ2hhbm5lbFJlcXVlc3QSEgoKY2hhbm5lbF9pZBgBIAEoCRIQCghwcmlvcml0eRgCIAEoBRIwCgdjb2x1bW5zGAMgAygLMh8uamFtbWkudjEuY2hhbm5lbC5DaGFubmVsQ29sdW1uImAKGEFkZENoYW5uZWxDb2x1bW5zUmVxdWVzdBISCgpjaGFubmVsX2lkGAEgASgJEjAKB2NvbHVtbnMYAiADKAsyHy5qYW1taS52MS5jaGFubmVsLkNoYW5uZWxDb2x1bW4q9wEKEUNoYW5uZWxDb2x1bW5UeXBlEiMKH0NIQU5ORUxfQ09MVU1OX1RZUEVfVU5TUEVDSUZJRUQQABIfChtDSEFOTkVMX0NPTFVNTl9UWVBFX0ZMT0FUMzIQARIfChtDSEFOTkVMX0NPTFVNTl9UWVBFX0ZMT0FUNjQQAhIdChlDSEFOTkVMX0NPTFVNTl9UWVBFX0lOVDMyEAMSHQoZQ0hBTk5FTF9DT0xVTU5fVFlQRV9JTlQ2NBAEEhwKGENIQU5ORUxfQ09MVU1OX1RZUEVfVVRGOBAFEh8KG0NIQU5ORUxfQ09MVU1OX1RZUEVfQk9PTEVBThAGMr4BCg5DaGFubmVsU2VydmljZRJTCg9SZWdpc3RlckNoYW5uZWwSKC5qYW1taS52MS5jaGFubmVsLlJlZ2lzdGVyQ2hhbm5lbFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkSVwoRQWRkQ2hhbm5lbENvbHVtbnMSKi5qYW1taS52MS5jaGFubmVsLkFkZENoYW5uZWxDb2x1bW5zUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eWIGcHJvdG8z", [file_google_protobuf_empty]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message jammi.v1.channel.ChannelColumn.
|
|
12
|
+
* Use `create(ChannelColumnSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const ChannelColumnSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_channel, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message jammi.v1.channel.RegisterChannelRequest.
|
|
17
|
+
* Use `create(RegisterChannelRequestSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const RegisterChannelRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_channel, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message jammi.v1.channel.AddChannelColumnsRequest.
|
|
22
|
+
* Use `create(AddChannelColumnsRequestSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const AddChannelColumnsRequestSchema = /*@__PURE__*/ messageDesc(file_jammi_v1_channel, 2);
|
|
25
|
+
/**
|
|
26
|
+
* The closed set of Arrow types a channel column may declare. Mirrors the
|
|
27
|
+
* engine's `ChannelColumnType`.
|
|
28
|
+
*
|
|
29
|
+
* @generated from enum jammi.v1.channel.ChannelColumnType
|
|
30
|
+
*/
|
|
31
|
+
export var ChannelColumnType;
|
|
32
|
+
(function (ChannelColumnType) {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_UNSPECIFIED = 0;
|
|
35
|
+
*/
|
|
36
|
+
ChannelColumnType[ChannelColumnType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_FLOAT32 = 1;
|
|
39
|
+
*/
|
|
40
|
+
ChannelColumnType[ChannelColumnType["FLOAT32"] = 1] = "FLOAT32";
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_FLOAT64 = 2;
|
|
43
|
+
*/
|
|
44
|
+
ChannelColumnType[ChannelColumnType["FLOAT64"] = 2] = "FLOAT64";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_INT32 = 3;
|
|
47
|
+
*/
|
|
48
|
+
ChannelColumnType[ChannelColumnType["INT32"] = 3] = "INT32";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_INT64 = 4;
|
|
51
|
+
*/
|
|
52
|
+
ChannelColumnType[ChannelColumnType["INT64"] = 4] = "INT64";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_UTF8 = 5;
|
|
55
|
+
*/
|
|
56
|
+
ChannelColumnType[ChannelColumnType["UTF8"] = 5] = "UTF8";
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: CHANNEL_COLUMN_TYPE_BOOLEAN = 6;
|
|
59
|
+
*/
|
|
60
|
+
ChannelColumnType[ChannelColumnType["BOOLEAN"] = 6] = "BOOLEAN";
|
|
61
|
+
})(ChannelColumnType || (ChannelColumnType = {}));
|
|
62
|
+
/**
|
|
63
|
+
* Describes the enum jammi.v1.channel.ChannelColumnType.
|
|
64
|
+
*/
|
|
65
|
+
export const ChannelColumnTypeSchema = /*@__PURE__*/ enumDesc(file_jammi_v1_channel, 0);
|
|
66
|
+
/**
|
|
67
|
+
* ChannelService — the wire surface for the engine's provenance-channel
|
|
68
|
+
* declaration verbs.
|
|
69
|
+
*
|
|
70
|
+
* `RegisterChannel` and `AddChannelColumns` are imperative session methods, not
|
|
71
|
+
* SQL queries, so they live as typed gRPC RPCs alongside the other engine-
|
|
72
|
+
* backed services rather than on the Flight SQL surface (query/result only, per
|
|
73
|
+
* ADR-01 §3.2). The verbs name a substrate primitive — a provenance channel and
|
|
74
|
+
* its declared columns — and carry no tenant-domain concept.
|
|
75
|
+
*
|
|
76
|
+
* Each verb delegates 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
77
|
+
* abstraction (`register_channel` / `add_channel_columns`); the service
|
|
78
|
+
* reimplements no catalog logic. The messages mirror the Rust `ChannelSpec` /
|
|
79
|
+
* `ChannelColumn` field for field.
|
|
80
|
+
*
|
|
81
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
82
|
+
* shared TenantInterceptor — the same mechanism every other gRPC service uses.
|
|
83
|
+
*
|
|
84
|
+
* @generated from service jammi.v1.channel.ChannelService
|
|
85
|
+
*/
|
|
86
|
+
export const ChannelService = /*@__PURE__*/ serviceDesc(file_jammi_v1_channel, 0);
|
|
87
|
+
//# sourceMappingURL=channel_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel_pb.js","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/channel_pb.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,wFAAwF;AACxF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAGpE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAY,aAAa,CACzD,QAAQ,CAAC,kiCAAkiC,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAmB7kC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC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