@livekit/protocol 1.52.0 → 1.53.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.
@@ -126,6 +126,7 @@ export const ServerMessage = /*@__PURE__*/ proto3.makeMessageType(
126
126
  { no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
127
127
  { no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
128
128
  { no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" },
129
+ { no: 6, name: "go_away", kind: "message", T: AgentHttp_GoAway, oneof: "message" },
129
130
  ],
130
131
  );
131
132
 
@@ -175,6 +176,9 @@ export const RegisterWorkerRequest = /*@__PURE__*/ proto3.makeMessageType(
175
176
  { no: 6, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
176
177
  { no: 7, name: "allowed_permissions", kind: "message", T: ParticipantPermission },
177
178
  { no: 9, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
179
+ { no: 10, name: "endpoints", kind: "message", T: AgentHttp_AgentEndpoint, repeated: true },
180
+ { no: 11, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
181
+ { no: 12, name: "endpoint_protocol", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
178
182
  ],
179
183
  );
180
184
 
@@ -186,6 +190,7 @@ export const RegisterWorkerResponse = /*@__PURE__*/ proto3.makeMessageType(
186
190
  () => [
187
191
  { no: 1, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
192
  { no: 3, name: "server_info", kind: "message", T: ServerInfo },
193
+ { no: 4, name: "endpoint_settings", kind: "message", T: AgentHttp_AgentEndpointSettings },
189
194
  ],
190
195
  );
191
196
 
@@ -248,6 +253,8 @@ export const UpdateWorkerStatus = /*@__PURE__*/ proto3.makeMessageType(
248
253
  { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(WorkerStatus), opt: true },
249
254
  { no: 3, name: "load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
250
255
  { no: 4, name: "job_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
256
+ { no: 5, name: "draining", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
257
+ { no: 6, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
251
258
  ],
252
259
  );
253
260
 
@@ -273,3 +280,149 @@ export const JobTermination = /*@__PURE__*/ proto3.makeMessageType(
273
280
  ],
274
281
  );
275
282
 
283
+ /**
284
+ * ----- agent HTTP endpoints data plane -----
285
+ *
286
+ * AgentHttp namespaces the data plane: workers expose HTTP endpoints served at
287
+ * /agents/{agent_name}/{deployment}/{path} without binding any local listener.
288
+ * The worker opens ONE WebTransport (QUIC) session to /agent that carries both
289
+ * its control stream (the same WorkerMessage/ServerMessage exchange as the
290
+ * WebSocket control connection, length-delimited) and every HTTP exchange: the
291
+ * node opens one bidirectional QUIC stream per request. QUIC provides the
292
+ * multiplexing and per-stream flow control, so there is no credit accounting
293
+ * and no attach handshake.
294
+ *
295
+ * Each exchange stream is:
296
+ *
297
+ * [len:u32be][StreamPreamble] the only LiveKit framing
298
+ * [ ... opaque bytes ... ] one HTTP/1.1 exchange, to FIN or RESET_STREAM
299
+ *
300
+ * After the preamble the stream is byte-transparent: the node writes a
301
+ * canonical HTTP/1.1 request and the worker replies with an HTTP/1.1 response,
302
+ * each parsed by whatever HTTP implementation the side already has. A WebSocket
303
+ * upgrade is therefore an ordinary request whose response is a 101, after which
304
+ * the stream is a byte pipe. The protocol evolves by version negotiation at
305
+ * registration, so the preamble carries no version of its own.
306
+ *
307
+ * Bodies use ordinary HTTP/1.1 framing, Content-Length or chunked, and are
308
+ * unbounded: a body may be many gigabytes and must be streamed. Request and
309
+ * response size limits are policy for the layer above.
310
+ *
311
+ * How one direction ends:
312
+ *
313
+ * success end of message per the body's own framing, then FIN.
314
+ * failed mid-body chunked trailer fields x-lk-completion and x-lk-error,
315
+ * in band, so the outcome cannot race the bytes it
316
+ * describes.
317
+ * failed before any RESET_STREAM carrying an HttpStreamResetCode, sound
318
+ * bytes only here, where nothing is in flight.
319
+ *
320
+ * FIN before the body's own framing says it is complete is truncation, and a
321
+ * receiver must surface it as such.
322
+ *
323
+ * The x-lk- header prefix is reserved for this signalling in both directions.
324
+ * A node strips it from client-supplied request headers, so a client cannot
325
+ * forge one, and strips it from responses, so it never reaches the end client.
326
+ *
327
+ * @generated from message livekit.AgentHttp
328
+ */
329
+ export const AgentHttp = /*@__PURE__*/ proto3.makeMessageType(
330
+ "livekit.AgentHttp",
331
+ [],
332
+ );
333
+
334
+ /**
335
+ * @generated from enum livekit.AgentHttp.AgentEndpointKind
336
+ */
337
+ export const AgentHttp_AgentEndpointKind = /*@__PURE__*/ proto3.makeEnum(
338
+ "livekit.AgentHttp.AgentEndpointKind",
339
+ [
340
+ {no: 0, name: "AEK_HTTP"},
341
+ {no: 1, name: "AEK_TEXT"},
342
+ ],
343
+ );
344
+
345
+ /**
346
+ * why a stream was reset before any HTTP bytes flowed. This travels as the
347
+ * QUIC RESET_STREAM / STOP_SENDING error code, so it is a number with no room
348
+ * for detail: the reason string is logged by the side that reset and joined
349
+ * to this by request_id. An outcome after bytes have flowed travels in
350
+ * trailers instead, where it cannot race them.
351
+ *
352
+ * @generated from enum livekit.AgentHttp.HttpStreamResetCode
353
+ */
354
+ export const AgentHttp_HttpStreamResetCode = /*@__PURE__*/ proto3.makeEnum(
355
+ "livekit.AgentHttp.HttpStreamResetCode",
356
+ [
357
+ {no: 0, name: "HSR_ABORT"},
358
+ {no: 1, name: "HSR_REFUSED"},
359
+ {no: 2, name: "HSR_INTERNAL"},
360
+ {no: 3, name: "HSR_TIMEOUT"},
361
+ {no: 4, name: "HSR_PROTOCOL"},
362
+ ],
363
+ );
364
+
365
+ /**
366
+ * @generated from message livekit.AgentHttp.AgentEndpoint
367
+ */
368
+ export const AgentHttp_AgentEndpoint = /*@__PURE__*/ proto3.makeMessageType(
369
+ "livekit.AgentHttp.AgentEndpoint",
370
+ () => [
371
+ { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
372
+ { no: 2, name: "methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
373
+ { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(AgentHttp_AgentEndpointKind) },
374
+ { no: 4, name: "public", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
375
+ ],
376
+ {localName: "AgentHttp_AgentEndpoint"},
377
+ );
378
+
379
+ /**
380
+ * registration-level settings negotiated on the control connection, returned
381
+ * in RegisterWorkerResponse when the worker declares endpoints and the server
382
+ * supports the data plane.
383
+ *
384
+ * @generated from message livekit.AgentHttp.AgentEndpointSettings
385
+ */
386
+ export const AgentHttp_AgentEndpointSettings = /*@__PURE__*/ proto3.makeMessageType(
387
+ "livekit.AgentHttp.AgentEndpointSettings",
388
+ () => [
389
+ { no: 1, name: "protocol", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
390
+ ],
391
+ {localName: "AgentHttp_AgentEndpointSettings"},
392
+ );
393
+
394
+ /**
395
+ * the first thing on every exchange stream, node -> worker. It carries only
396
+ * what the worker cannot derive from the HTTP bytes that follow and what it
397
+ * must not infer from client-supplied headers - identity above all.
398
+ *
399
+ * @generated from message livekit.AgentHttp.StreamPreamble
400
+ */
401
+ export const AgentHttp_StreamPreamble = /*@__PURE__*/ proto3.makeMessageType(
402
+ "livekit.AgentHttp.StreamPreamble",
403
+ () => [
404
+ { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(AgentHttp_AgentEndpointKind) },
405
+ { no: 2, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
406
+ { no: 3, name: "authorized", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
407
+ { no: 4, name: "route", kind: "scalar", T: 9 /* ScalarType.STRING */ },
408
+ { no: 5, name: "timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
409
+ { no: 6, name: "client_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
410
+ { no: 7, name: "scheme", kind: "scalar", T: 9 /* ScalarType.STRING */ },
411
+ ],
412
+ {localName: "AgentHttp_StreamPreamble"},
413
+ );
414
+
415
+ /**
416
+ * the server is draining: the worker should re-register elsewhere; in-flight
417
+ * HTTP exchanges run to completion
418
+ *
419
+ * @generated from message livekit.AgentHttp.GoAway
420
+ */
421
+ export const AgentHttp_GoAway = /*@__PURE__*/ proto3.makeMessageType(
422
+ "livekit.AgentHttp.GoAway",
423
+ () => [
424
+ { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
425
+ ],
426
+ {localName: "AgentHttp_GoAway"},
427
+ );
428
+
@@ -258,6 +258,13 @@ export declare class SimulationRun extends Message<SimulationRun> {
258
258
  */
259
259
  ci?: SimulationRun_CI;
260
260
 
261
+ /**
262
+ * Absent when the run ran each scenario once and required it to pass.
263
+ *
264
+ * @generated from field: optional livekit.SimulationRun.SamplingOptions sampling = 23;
265
+ */
266
+ sampling?: SimulationRun_SamplingOptions;
267
+
261
268
  constructor(data?: PartialMessage<SimulationRun>);
262
269
 
263
270
  static readonly runtime: typeof proto3;
@@ -384,6 +391,22 @@ export declare class SimulationRun_Job extends Message<SimulationRun_Job> {
384
391
  */
385
392
  metrics?: SimulationRun_JobMetrics;
386
393
 
394
+ /**
395
+ * The Scenario.id this job ran; empty for generated runs. Every sample
396
+ * of one scenario shares it, so a run's jobs group back into scenarios.
397
+ *
398
+ * @generated from field: string scenario_id = 15;
399
+ */
400
+ scenarioId: string;
401
+
402
+ /**
403
+ * 1-based sample of that scenario within the run; always 1 when the run's
404
+ * samples is 1.
405
+ *
406
+ * @generated from field: int32 sample = 16;
407
+ */
408
+ sample: number;
409
+
387
410
  constructor(data?: PartialMessage<SimulationRun_Job>);
388
411
 
389
412
  static readonly runtime: typeof proto3;
@@ -1194,6 +1217,45 @@ export declare class SimulationRun_CI extends Message<SimulationRun_CI> {
1194
1217
  static equals(a: SimulationRun_CI | PlainMessage<SimulationRun_CI> | undefined, b: SimulationRun_CI | PlainMessage<SimulationRun_CI> | undefined): boolean;
1195
1218
  }
1196
1219
 
1220
+ /**
1221
+ * Runs each scenario more than once, so a flaky sample is distinguishable
1222
+ * from a broken scenario. Both fields are required when it is present.
1223
+ *
1224
+ * @generated from message livekit.SimulationRun.SamplingOptions
1225
+ */
1226
+ export declare class SimulationRun_SamplingOptions extends Message<SimulationRun_SamplingOptions> {
1227
+ /**
1228
+ * Samples per scenario, > 1. The run holds scenarios × samples jobs,
1229
+ * subject to the usual job cap.
1230
+ *
1231
+ * @generated from field: int32 samples = 1;
1232
+ */
1233
+ samples: number;
1234
+
1235
+ /**
1236
+ * The share of a scenario's samples that must pass for that scenario to
1237
+ * pass, 0-1. A scenario needs round(rate × samples) of them, so 1
1238
+ * requires every sample and 0.67 of 3 requires 2.
1239
+ *
1240
+ * @generated from field: double pass_rate = 2;
1241
+ */
1242
+ passRate: number;
1243
+
1244
+ constructor(data?: PartialMessage<SimulationRun_SamplingOptions>);
1245
+
1246
+ static readonly runtime: typeof proto3;
1247
+ static readonly typeName = "livekit.SimulationRun.SamplingOptions";
1248
+ static readonly fields: FieldList;
1249
+
1250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationRun_SamplingOptions;
1251
+
1252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationRun_SamplingOptions;
1253
+
1254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulationRun_SamplingOptions;
1255
+
1256
+ static equals(a: SimulationRun_SamplingOptions | PlainMessage<SimulationRun_SamplingOptions> | undefined, b: SimulationRun_SamplingOptions | PlainMessage<SimulationRun_SamplingOptions> | undefined): boolean;
1257
+ }
1258
+
1197
1259
  /**
1198
1260
  * @generated from message livekit.SimulationRun.Create
1199
1261
  */
@@ -1282,6 +1344,15 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
1282
1344
  */
1283
1345
  ci?: SimulationRun_CI;
1284
1346
 
1347
+ /**
1348
+ * Absent runs each scenario once and requires it to pass. Requires
1349
+ * scenario_group. The run fails if any scenario fails; pass@k and
1350
+ * pass^k report over scenarios and neither gates.
1351
+ *
1352
+ * @generated from field: optional livekit.SimulationRun.SamplingOptions sampling = 14;
1353
+ */
1354
+ sampling?: SimulationRun_SamplingOptions;
1355
+
1285
1356
  constructor(data?: PartialMessage<SimulationRun_Create_Request>);
1286
1357
 
1287
1358
  static readonly runtime: typeof proto3;
@@ -91,6 +91,7 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
91
91
  { no: 20, name: "summary_zstd", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
92
92
  { no: 21, name: "issue_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
93
93
  { no: 22, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
94
+ { no: 23, name: "sampling", kind: "message", T: SimulationRun_SamplingOptions, opt: true },
94
95
  ],
95
96
  );
96
97
 
@@ -129,6 +130,8 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
129
130
  { no: 12, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
131
  { no: 13, name: "usage", kind: "message", T: SimulationRun_Job_Usage },
131
132
  { no: 14, name: "metrics", kind: "message", T: SimulationRun_JobMetrics },
133
+ { no: 15, name: "scenario_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
134
+ { no: 16, name: "sample", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
132
135
  ],
133
136
  {localName: "SimulationRun_Job"},
134
137
  );
@@ -343,6 +346,21 @@ export const SimulationRun_CI = /*@__PURE__*/ proto3.makeMessageType(
343
346
  {localName: "SimulationRun_CI"},
344
347
  );
345
348
 
349
+ /**
350
+ * Runs each scenario more than once, so a flaky sample is distinguishable
351
+ * from a broken scenario. Both fields are required when it is present.
352
+ *
353
+ * @generated from message livekit.SimulationRun.SamplingOptions
354
+ */
355
+ export const SimulationRun_SamplingOptions = /*@__PURE__*/ proto3.makeMessageType(
356
+ "livekit.SimulationRun.SamplingOptions",
357
+ () => [
358
+ { no: 1, name: "samples", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
359
+ { no: 2, name: "pass_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
360
+ ],
361
+ {localName: "SimulationRun_SamplingOptions"},
362
+ );
363
+
346
364
  /**
347
365
  * @generated from message livekit.SimulationRun.Create
348
366
  */
@@ -369,6 +387,7 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
369
387
  { no: 11, name: "low_quality_microphone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
370
388
  { no: 12, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
371
389
  { no: 13, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
390
+ { no: 14, name: "sampling", kind: "message", T: SimulationRun_SamplingOptions, opt: true },
372
391
  ],
373
392
  {localName: "SimulationRun_Create_Request"},
374
393
  );
@@ -12,12 +12,16 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
 
15
+ // AgentDB: per-agent SQLite databases. Each lives in its project's data region
16
+ // on object storage, with one writer at a time. Queries run over the WebSocket
17
+ // data plane (AgentDB.Wire); lifecycle is cloud-protocol's AgentDB service.
18
+
15
19
  // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
16
20
  // @generated from file livekit_agentdb.proto (package livekit, syntax proto3)
17
21
  /* eslint-disable */
18
22
  // @ts-nocheck
19
23
 
20
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
24
+ import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
21
25
  import { Message, proto3 } from "@bufbuild/protobuf";
22
26
 
23
27
  /**
@@ -47,17 +51,12 @@ export declare class AgentDB extends Message<AgentDB> {
47
51
  */
48
52
  export declare class AgentDB_CreateRequest extends Message<AgentDB_CreateRequest> {
49
53
  /**
50
- * @generated from field: string region = 1;
51
- */
52
- region: string;
53
-
54
- /**
55
- * Unset: never expires, and expires_at is then 0 everywhere.
54
+ * Unset: never expires, and expires_at is then unset everywhere.
56
55
  * Otherwise clamped to the server cap, and never extended.
57
56
  *
58
- * @generated from field: int64 ttl_seconds = 2;
57
+ * @generated from field: google.protobuf.Duration ttl = 1;
59
58
  */
60
- ttlSeconds: bigint;
59
+ ttl?: Duration;
61
60
 
62
61
  constructor(data?: PartialMessage<AgentDB_CreateRequest>);
63
62
 
@@ -86,9 +85,9 @@ export declare class AgentDB_CreateResponse extends Message<AgentDB_CreateRespon
86
85
  databaseId: string;
87
86
 
88
87
  /**
89
- * @generated from field: int64 expires_at = 2;
88
+ * @generated from field: google.protobuf.Timestamp expires_at = 2;
90
89
  */
91
- expiresAt: bigint;
90
+ expiresAt?: Timestamp;
92
91
 
93
92
  constructor(data?: PartialMessage<AgentDB_CreateResponse>);
94
93
 
@@ -208,14 +207,14 @@ export declare class AgentDB_AgentDatabase extends Message<AgentDB_AgentDatabase
208
207
  region: string;
209
208
 
210
209
  /**
211
- * @generated from field: int64 created_at = 3;
210
+ * @generated from field: google.protobuf.Timestamp created_at = 3;
212
211
  */
213
- createdAt: bigint;
212
+ createdAt?: Timestamp;
214
213
 
215
214
  /**
216
- * @generated from field: int64 expires_at = 4;
215
+ * @generated from field: google.protobuf.Timestamp expires_at = 4;
217
216
  */
218
- expiresAt: bigint;
217
+ expiresAt?: Timestamp;
219
218
 
220
219
  /**
221
220
  * @generated from field: int64 tip = 5;
@@ -281,33 +280,33 @@ export declare class AgentDB_DeleteResponse extends Message<AgentDB_DeleteRespon
281
280
  }
282
281
 
283
282
  /**
284
- * @generated from message livekit.AgentDB.DumpRequest
283
+ * @generated from message livekit.AgentDB.ExportRequest
285
284
  */
286
- export declare class AgentDB_DumpRequest extends Message<AgentDB_DumpRequest> {
285
+ export declare class AgentDB_ExportRequest extends Message<AgentDB_ExportRequest> {
287
286
  /**
288
287
  * @generated from field: string database_id = 1;
289
288
  */
290
289
  databaseId: string;
291
290
 
292
- constructor(data?: PartialMessage<AgentDB_DumpRequest>);
291
+ constructor(data?: PartialMessage<AgentDB_ExportRequest>);
293
292
 
294
293
  static readonly runtime: typeof proto3;
295
- static readonly typeName = "livekit.AgentDB.DumpRequest";
294
+ static readonly typeName = "livekit.AgentDB.ExportRequest";
296
295
  static readonly fields: FieldList;
297
296
 
298
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDB_DumpRequest;
297
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDB_ExportRequest;
299
298
 
300
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDB_DumpRequest;
299
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDB_ExportRequest;
301
300
 
302
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDB_DumpRequest;
301
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDB_ExportRequest;
303
302
 
304
- static equals(a: AgentDB_DumpRequest | PlainMessage<AgentDB_DumpRequest> | undefined, b: AgentDB_DumpRequest | PlainMessage<AgentDB_DumpRequest> | undefined): boolean;
303
+ static equals(a: AgentDB_ExportRequest | PlainMessage<AgentDB_ExportRequest> | undefined, b: AgentDB_ExportRequest | PlainMessage<AgentDB_ExportRequest> | undefined): boolean;
305
304
  }
306
305
 
307
306
  /**
308
- * @generated from message livekit.AgentDB.DumpResponse
307
+ * @generated from message livekit.AgentDB.ExportResponse
309
308
  */
310
- export declare class AgentDB_DumpResponse extends Message<AgentDB_DumpResponse> {
309
+ export declare class AgentDB_ExportResponse extends Message<AgentDB_ExportResponse> {
311
310
  /**
312
311
  * pre-authenticated object-storage URL
313
312
  *
@@ -318,30 +317,30 @@ export declare class AgentDB_DumpResponse extends Message<AgentDB_DumpResponse>
318
317
  /**
319
318
  * of the URL, not the database
320
319
  *
321
- * @generated from field: int64 expires_at = 2;
320
+ * @generated from field: google.protobuf.Timestamp expires_at = 2;
322
321
  */
323
- expiresAt: bigint;
322
+ expiresAt?: Timestamp;
324
323
 
325
324
  /**
326
- * what the dump is consistent at
325
+ * what the export is consistent at
327
326
  *
328
327
  * @generated from field: int64 tip = 3;
329
328
  */
330
329
  tip: bigint;
331
330
 
332
- constructor(data?: PartialMessage<AgentDB_DumpResponse>);
331
+ constructor(data?: PartialMessage<AgentDB_ExportResponse>);
333
332
 
334
333
  static readonly runtime: typeof proto3;
335
- static readonly typeName = "livekit.AgentDB.DumpResponse";
334
+ static readonly typeName = "livekit.AgentDB.ExportResponse";
336
335
  static readonly fields: FieldList;
337
336
 
338
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDB_DumpResponse;
337
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDB_ExportResponse;
339
338
 
340
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDB_DumpResponse;
339
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDB_ExportResponse;
341
340
 
342
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDB_DumpResponse;
341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDB_ExportResponse;
343
342
 
344
- static equals(a: AgentDB_DumpResponse | PlainMessage<AgentDB_DumpResponse> | undefined, b: AgentDB_DumpResponse | PlainMessage<AgentDB_DumpResponse> | undefined): boolean;
343
+ static equals(a: AgentDB_ExportResponse | PlainMessage<AgentDB_ExportResponse> | undefined, b: AgentDB_ExportResponse | PlainMessage<AgentDB_ExportResponse> | undefined): boolean;
345
344
  }
346
345
 
347
346
  /**
@@ -445,6 +444,8 @@ export declare class AgentDB_Wire_ClientMessage extends Message<AgentDB_Wire_Cli
445
444
  case: "query";
446
445
  } | {
447
446
  /**
447
+ * answers one result per statement, then Done
448
+ *
448
449
  * @generated from field: livekit.AgentDB.Wire.Batch batch = 5;
449
450
  */
450
451
  value: AgentDB_Wire_Batch;
@@ -668,12 +669,17 @@ export declare class AgentDB_Wire_Statement extends Message<AgentDB_Wire_Stateme
668
669
  }
669
670
 
670
671
  /**
672
+ * Applied atomically, in order, and answered with one result per
673
+ * statement, in order: Columns then ColumnBatch frames for a statement
674
+ * that returns rows, one ExecResult for one that does not, each tagged
675
+ * with the statement's 0-based index, then a single Done for the whole
676
+ * batch. A statement that returns no rows still sends its Columns. Credit
677
+ * paces the ColumnBatch frames of the batch as a whole.
678
+ *
671
679
  * @generated from message livekit.AgentDB.Wire.Batch
672
680
  */
673
681
  export declare class AgentDB_Wire_Batch extends Message<AgentDB_Wire_Batch> {
674
682
  /**
675
- * applied atomically, in order
676
- *
677
683
  * @generated from field: repeated livekit.AgentDB.Wire.Statement statements = 1;
678
684
  */
679
685
  statements: AgentDB_Wire_Statement[];
@@ -920,6 +926,13 @@ export declare class AgentDB_Wire_Columns extends Message<AgentDB_Wire_Columns>
920
926
  */
921
927
  names: string[];
922
928
 
929
+ /**
930
+ * index within a Batch; 0 and unused for a Query
931
+ *
932
+ * @generated from field: uint32 statement = 2;
933
+ */
934
+ statement: number;
935
+
923
936
  constructor(data?: PartialMessage<AgentDB_Wire_Columns>);
924
937
 
925
938
  static readonly runtime: typeof proto3;
@@ -1013,6 +1026,13 @@ export declare class AgentDB_Wire_ColumnBatch extends Message<AgentDB_Wire_Colum
1013
1026
  */
1014
1027
  rows: number;
1015
1028
 
1029
+ /**
1030
+ * index within a Batch; 0 and unused for a Query
1031
+ *
1032
+ * @generated from field: uint32 statement = 3;
1033
+ */
1034
+ statement: number;
1035
+
1016
1036
  constructor(data?: PartialMessage<AgentDB_Wire_ColumnBatch>);
1017
1037
 
1018
1038
  static readonly runtime: typeof proto3;
@@ -1047,6 +1067,13 @@ export declare class AgentDB_Wire_ExecResult extends Message<AgentDB_Wire_ExecRe
1047
1067
  */
1048
1068
  tip: bigint;
1049
1069
 
1070
+ /**
1071
+ * index within a Batch; 0 and unused for an Exec
1072
+ *
1073
+ * @generated from field: uint32 statement = 4;
1074
+ */
1075
+ statement: number;
1076
+
1050
1077
  constructor(data?: PartialMessage<AgentDB_Wire_ExecResult>);
1051
1078
 
1052
1079
  static readonly runtime: typeof proto3;
@@ -12,12 +12,16 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
 
15
+ // AgentDB: per-agent SQLite databases. Each lives in its project's data region
16
+ // on object storage, with one writer at a time. Queries run over the WebSocket
17
+ // data plane (AgentDB.Wire); lifecycle is cloud-protocol's AgentDB service.
18
+
15
19
  // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
16
20
  // @generated from file livekit_agentdb.proto (package livekit, syntax proto3)
17
21
  /* eslint-disable */
18
22
  // @ts-nocheck
19
23
 
20
- import { proto3 } from "@bufbuild/protobuf";
24
+ import { Duration, proto3, Timestamp } from "@bufbuild/protobuf";
21
25
 
22
26
  /**
23
27
  * Nested so that names like Value and Ping need not be unique across the
@@ -36,8 +40,7 @@ export const AgentDB = /*@__PURE__*/ proto3.makeMessageType(
36
40
  export const AgentDB_CreateRequest = /*@__PURE__*/ proto3.makeMessageType(
37
41
  "livekit.AgentDB.CreateRequest",
38
42
  () => [
39
- { no: 1, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
40
- { no: 2, name: "ttl_seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
43
+ { no: 1, name: "ttl", kind: "message", T: Duration },
41
44
  ],
42
45
  {localName: "AgentDB_CreateRequest"},
43
46
  );
@@ -49,7 +52,7 @@ export const AgentDB_CreateResponse = /*@__PURE__*/ proto3.makeMessageType(
49
52
  "livekit.AgentDB.CreateResponse",
50
53
  () => [
51
54
  { no: 1, name: "database_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
52
- { no: 2, name: "expires_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
55
+ { no: 2, name: "expires_at", kind: "message", T: Timestamp },
53
56
  ],
54
57
  {localName: "AgentDB_CreateResponse"},
55
58
  );
@@ -99,8 +102,8 @@ export const AgentDB_AgentDatabase = /*@__PURE__*/ proto3.makeMessageType(
99
102
  () => [
100
103
  { no: 1, name: "database_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
101
104
  { no: 2, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
102
- { no: 3, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
103
- { no: 4, name: "expires_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
105
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
106
+ { no: 4, name: "expires_at", kind: "message", T: Timestamp },
104
107
  { no: 5, name: "tip", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
105
108
  ],
106
109
  {localName: "AgentDB_AgentDatabase"},
@@ -127,27 +130,27 @@ export const AgentDB_DeleteResponse = /*@__PURE__*/ proto3.makeMessageType(
127
130
  );
128
131
 
129
132
  /**
130
- * @generated from message livekit.AgentDB.DumpRequest
133
+ * @generated from message livekit.AgentDB.ExportRequest
131
134
  */
132
- export const AgentDB_DumpRequest = /*@__PURE__*/ proto3.makeMessageType(
133
- "livekit.AgentDB.DumpRequest",
135
+ export const AgentDB_ExportRequest = /*@__PURE__*/ proto3.makeMessageType(
136
+ "livekit.AgentDB.ExportRequest",
134
137
  () => [
135
138
  { no: 1, name: "database_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
136
139
  ],
137
- {localName: "AgentDB_DumpRequest"},
140
+ {localName: "AgentDB_ExportRequest"},
138
141
  );
139
142
 
140
143
  /**
141
- * @generated from message livekit.AgentDB.DumpResponse
144
+ * @generated from message livekit.AgentDB.ExportResponse
142
145
  */
143
- export const AgentDB_DumpResponse = /*@__PURE__*/ proto3.makeMessageType(
144
- "livekit.AgentDB.DumpResponse",
146
+ export const AgentDB_ExportResponse = /*@__PURE__*/ proto3.makeMessageType(
147
+ "livekit.AgentDB.ExportResponse",
145
148
  () => [
146
149
  { no: 1, name: "download_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
- { no: 2, name: "expires_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
150
+ { no: 2, name: "expires_at", kind: "message", T: Timestamp },
148
151
  { no: 3, name: "tip", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
149
152
  ],
150
- {localName: "AgentDB_DumpResponse"},
153
+ {localName: "AgentDB_ExportResponse"},
151
154
  );
152
155
 
153
156
  /**
@@ -257,6 +260,13 @@ export const AgentDB_Wire_Statement = /*@__PURE__*/ proto3.makeMessageType(
257
260
  );
258
261
 
259
262
  /**
263
+ * Applied atomically, in order, and answered with one result per
264
+ * statement, in order: Columns then ColumnBatch frames for a statement
265
+ * that returns rows, one ExecResult for one that does not, each tagged
266
+ * with the statement's 0-based index, then a single Done for the whole
267
+ * batch. A statement that returns no rows still sends its Columns. Credit
268
+ * paces the ColumnBatch frames of the batch as a whole.
269
+ *
260
270
  * @generated from message livekit.AgentDB.Wire.Batch
261
271
  */
262
272
  export const AgentDB_Wire_Batch = /*@__PURE__*/ proto3.makeMessageType(
@@ -369,6 +379,7 @@ export const AgentDB_Wire_Columns = /*@__PURE__*/ proto3.makeMessageType(
369
379
  "livekit.AgentDB.Wire.Columns",
370
380
  () => [
371
381
  { no: 1, name: "names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
382
+ { no: 2, name: "statement", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
372
383
  ],
373
384
  {localName: "AgentDB_Wire_Columns"},
374
385
  );
@@ -404,6 +415,7 @@ export const AgentDB_Wire_ColumnBatch = /*@__PURE__*/ proto3.makeMessageType(
404
415
  () => [
405
416
  { no: 1, name: "columns", kind: "message", T: AgentDB_Wire_Column, repeated: true },
406
417
  { no: 2, name: "rows", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
418
+ { no: 3, name: "statement", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
407
419
  ],
408
420
  {localName: "AgentDB_Wire_ColumnBatch"},
409
421
  );
@@ -417,6 +429,7 @@ export const AgentDB_Wire_ExecResult = /*@__PURE__*/ proto3.makeMessageType(
417
429
  { no: 1, name: "rows_affected", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
418
430
  { no: 2, name: "last_insert_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
419
431
  { no: 3, name: "tip", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
432
+ { no: 4, name: "statement", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
420
433
  ],
421
434
  {localName: "AgentDB_Wire_ExecResult"},
422
435
  );