@livekit/protocol 1.45.5 → 1.45.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,358 @@
1
+ // Copyright 2026 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
16
+ // @generated from file agent/livekit_agent_inference.proto (package livekit.agent, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { Duration, proto3, Timestamp } from "@bufbuild/protobuf";
21
+ import { ChatMessage } from "./livekit_agent_session_pb.js";
22
+
23
+ /**
24
+ * @generated from enum livekit.agent.AudioEncoding
25
+ */
26
+ export const AudioEncoding = /*@__PURE__*/ proto3.makeEnum(
27
+ "livekit.agent.AudioEncoding",
28
+ [
29
+ {no: 0, name: "AUDIO_ENCODING_PCM_S16LE", localName: "PCM_S16LE"},
30
+ {no: 1, name: "AUDIO_ENCODING_OPUS", localName: "OPUS"},
31
+ ],
32
+ );
33
+
34
+ /**
35
+ * @generated from message livekit.agent.SessionSettings
36
+ */
37
+ export const SessionSettings = /*@__PURE__*/ proto3.makeMessageType(
38
+ "livekit.agent.SessionSettings",
39
+ () => [
40
+ { no: 1, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
41
+ { no: 2, name: "encoding", kind: "enum", T: proto3.getEnumType(AudioEncoding) },
42
+ { no: 3, name: "eot_settings", kind: "message", T: EotSettings, oneof: "type_settings" },
43
+ { no: 4, name: "interruption_settings", kind: "message", T: InterruptionSettings, oneof: "type_settings" },
44
+ ],
45
+ );
46
+
47
+ /**
48
+ * @generated from message livekit.agent.InferenceError
49
+ */
50
+ export const InferenceError = /*@__PURE__*/ proto3.makeMessageType(
51
+ "livekit.agent.InferenceError",
52
+ () => [
53
+ { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
+ { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
55
+ ],
56
+ );
57
+
58
+ /**
59
+ * @generated from message livekit.agent.EotSettings
60
+ */
61
+ export const EotSettings = /*@__PURE__*/ proto3.makeMessageType(
62
+ "livekit.agent.EotSettings",
63
+ () => [
64
+ { no: 1, name: "detection_interval", kind: "message", T: Duration },
65
+ ],
66
+ );
67
+
68
+ /**
69
+ * @generated from message livekit.agent.InterruptionSettings
70
+ */
71
+ export const InterruptionSettings = /*@__PURE__*/ proto3.makeMessageType(
72
+ "livekit.agent.InterruptionSettings",
73
+ () => [
74
+ { no: 1, name: "threshold", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
75
+ { no: 2, name: "min_frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
76
+ { no: 3, name: "max_audio_duration", kind: "message", T: Duration },
77
+ { no: 4, name: "audio_prefix_duration", kind: "message", T: Duration },
78
+ { no: 5, name: "detection_interval", kind: "message", T: Duration },
79
+ ],
80
+ );
81
+
82
+ /**
83
+ * @generated from message livekit.agent.SessionCreate
84
+ */
85
+ export const SessionCreate = /*@__PURE__*/ proto3.makeMessageType(
86
+ "livekit.agent.SessionCreate",
87
+ () => [
88
+ { no: 1, name: "settings", kind: "message", T: SessionSettings },
89
+ ],
90
+ );
91
+
92
+ /**
93
+ * @generated from message livekit.agent.InputAudio
94
+ */
95
+ export const InputAudio = /*@__PURE__*/ proto3.makeMessageType(
96
+ "livekit.agent.InputAudio",
97
+ () => [
98
+ { no: 1, name: "audio", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
99
+ { no: 2, name: "created_at", kind: "message", T: Timestamp },
100
+ { no: 3, name: "num_samples", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
101
+ ],
102
+ );
103
+
104
+ /**
105
+ * @generated from message livekit.agent.EotInputChatContext
106
+ */
107
+ export const EotInputChatContext = /*@__PURE__*/ proto3.makeMessageType(
108
+ "livekit.agent.EotInputChatContext",
109
+ () => [
110
+ { no: 1, name: "messages", kind: "message", T: ChatMessage, repeated: true },
111
+ ],
112
+ );
113
+
114
+ /**
115
+ * @generated from message livekit.agent.SessionFlush
116
+ */
117
+ export const SessionFlush = /*@__PURE__*/ proto3.makeMessageType(
118
+ "livekit.agent.SessionFlush",
119
+ [],
120
+ );
121
+
122
+ /**
123
+ * @generated from message livekit.agent.SessionClose
124
+ */
125
+ export const SessionClose = /*@__PURE__*/ proto3.makeMessageType(
126
+ "livekit.agent.SessionClose",
127
+ [],
128
+ );
129
+
130
+ /**
131
+ * @generated from message livekit.agent.InferenceStart
132
+ */
133
+ export const InferenceStart = /*@__PURE__*/ proto3.makeMessageType(
134
+ "livekit.agent.InferenceStart",
135
+ () => [
136
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
137
+ ],
138
+ );
139
+
140
+ /**
141
+ * @generated from message livekit.agent.InferenceStop
142
+ */
143
+ export const InferenceStop = /*@__PURE__*/ proto3.makeMessageType(
144
+ "livekit.agent.InferenceStop",
145
+ () => [
146
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
+ ],
148
+ );
149
+
150
+ /**
151
+ * audio buffer sentinel messages
152
+ *
153
+ * @generated from message livekit.agent.BufferStart
154
+ */
155
+ export const BufferStart = /*@__PURE__*/ proto3.makeMessageType(
156
+ "livekit.agent.BufferStart",
157
+ [],
158
+ );
159
+
160
+ /**
161
+ * @generated from message livekit.agent.BufferStop
162
+ */
163
+ export const BufferStop = /*@__PURE__*/ proto3.makeMessageType(
164
+ "livekit.agent.BufferStop",
165
+ [],
166
+ );
167
+
168
+ /**
169
+ * @generated from message livekit.agent.ClientMessage
170
+ */
171
+ export const ClientMessage = /*@__PURE__*/ proto3.makeMessageType(
172
+ "livekit.agent.ClientMessage",
173
+ () => [
174
+ { no: 1, name: "created_at", kind: "message", T: Timestamp },
175
+ { no: 2, name: "session_create", kind: "message", T: SessionCreate, oneof: "message" },
176
+ { no: 3, name: "input_audio", kind: "message", T: InputAudio, oneof: "message" },
177
+ { no: 4, name: "session_flush", kind: "message", T: SessionFlush, oneof: "message" },
178
+ { no: 5, name: "session_close", kind: "message", T: SessionClose, oneof: "message" },
179
+ { no: 6, name: "inference_start", kind: "message", T: InferenceStart, oneof: "message" },
180
+ { no: 7, name: "inference_stop", kind: "message", T: InferenceStop, oneof: "message" },
181
+ { no: 8, name: "buffer_start", kind: "message", T: BufferStart, oneof: "message" },
182
+ { no: 9, name: "buffer_stop", kind: "message", T: BufferStop, oneof: "message" },
183
+ { no: 10, name: "eot_input_chat_context", kind: "message", T: EotInputChatContext, oneof: "message" },
184
+ ],
185
+ );
186
+
187
+ /**
188
+ * @generated from message livekit.agent.EotInferenceRequest
189
+ */
190
+ export const EotInferenceRequest = /*@__PURE__*/ proto3.makeMessageType(
191
+ "livekit.agent.EotInferenceRequest",
192
+ () => [
193
+ { no: 1, name: "audio", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
194
+ { no: 2, name: "assistant_text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
+ { no: 3, name: "encoding", kind: "enum", T: proto3.getEnumType(AudioEncoding) },
196
+ { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
197
+ ],
198
+ );
199
+
200
+ /**
201
+ * @generated from message livekit.agent.InterruptionInferenceRequest
202
+ */
203
+ export const InterruptionInferenceRequest = /*@__PURE__*/ proto3.makeMessageType(
204
+ "livekit.agent.InterruptionInferenceRequest",
205
+ () => [
206
+ { no: 1, name: "audio", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
207
+ { no: 2, name: "encoding", kind: "enum", T: proto3.getEnumType(AudioEncoding) },
208
+ { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
209
+ ],
210
+ );
211
+
212
+ /**
213
+ * @generated from message livekit.agent.InferenceRequest
214
+ */
215
+ export const InferenceRequest = /*@__PURE__*/ proto3.makeMessageType(
216
+ "livekit.agent.InferenceRequest",
217
+ () => [
218
+ { no: 1, name: "eot_inference_request", kind: "message", T: EotInferenceRequest, oneof: "request" },
219
+ { no: 2, name: "interruption_inference_request", kind: "message", T: InterruptionInferenceRequest, oneof: "request" },
220
+ ],
221
+ );
222
+
223
+ /**
224
+ * @generated from message livekit.agent.InferenceStats
225
+ */
226
+ export const InferenceStats = /*@__PURE__*/ proto3.makeMessageType(
227
+ "livekit.agent.InferenceStats",
228
+ () => [
229
+ { no: 1, name: "earliest_client_created_at", kind: "message", T: Timestamp, opt: true },
230
+ { no: 2, name: "latest_client_created_at", kind: "message", T: Timestamp, opt: true },
231
+ { no: 3, name: "client_e2e_latency", kind: "message", T: Duration, opt: true },
232
+ { no: 4, name: "server_e2e_latency", kind: "message", T: Duration },
233
+ { no: 5, name: "preprocessing_duration", kind: "message", T: Duration },
234
+ { no: 6, name: "inference_duration", kind: "message", T: Duration },
235
+ ],
236
+ );
237
+
238
+ /**
239
+ * @generated from message livekit.agent.EotInferenceResponse
240
+ */
241
+ export const EotInferenceResponse = /*@__PURE__*/ proto3.makeMessageType(
242
+ "livekit.agent.EotInferenceResponse",
243
+ () => [
244
+ { no: 1, name: "probability", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
245
+ { no: 2, name: "stats", kind: "message", T: InferenceStats },
246
+ ],
247
+ );
248
+
249
+ /**
250
+ * @generated from message livekit.agent.InterruptionInferenceResponse
251
+ */
252
+ export const InterruptionInferenceResponse = /*@__PURE__*/ proto3.makeMessageType(
253
+ "livekit.agent.InterruptionInferenceResponse",
254
+ () => [
255
+ { no: 1, name: "is_interruption", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
256
+ { no: 2, name: "probabilities", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
257
+ { no: 3, name: "stats", kind: "message", T: InferenceStats },
258
+ ],
259
+ );
260
+
261
+ /**
262
+ * @generated from message livekit.agent.InferenceResponse
263
+ */
264
+ export const InferenceResponse = /*@__PURE__*/ proto3.makeMessageType(
265
+ "livekit.agent.InferenceResponse",
266
+ () => [
267
+ { no: 1, name: "eot_inference_response", kind: "message", T: EotInferenceResponse, oneof: "response" },
268
+ { no: 2, name: "interruption_inference_response", kind: "message", T: InterruptionInferenceResponse, oneof: "response" },
269
+ ],
270
+ );
271
+
272
+ /**
273
+ * @generated from message livekit.agent.SessionCreated
274
+ */
275
+ export const SessionCreated = /*@__PURE__*/ proto3.makeMessageType(
276
+ "livekit.agent.SessionCreated",
277
+ [],
278
+ );
279
+
280
+ /**
281
+ * @generated from message livekit.agent.InferenceStarted
282
+ */
283
+ export const InferenceStarted = /*@__PURE__*/ proto3.makeMessageType(
284
+ "livekit.agent.InferenceStarted",
285
+ [],
286
+ );
287
+
288
+ /**
289
+ * @generated from message livekit.agent.InferenceStopped
290
+ */
291
+ export const InferenceStopped = /*@__PURE__*/ proto3.makeMessageType(
292
+ "livekit.agent.InferenceStopped",
293
+ [],
294
+ );
295
+
296
+ /**
297
+ * @generated from message livekit.agent.SessionClosed
298
+ */
299
+ export const SessionClosed = /*@__PURE__*/ proto3.makeMessageType(
300
+ "livekit.agent.SessionClosed",
301
+ [],
302
+ );
303
+
304
+ /**
305
+ * @generated from message livekit.agent.EotPrediction
306
+ */
307
+ export const EotPrediction = /*@__PURE__*/ proto3.makeMessageType(
308
+ "livekit.agent.EotPrediction",
309
+ () => [
310
+ { no: 1, name: "probability", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
311
+ { no: 2, name: "inference_stats", kind: "message", T: InferenceStats },
312
+ { no: 3, name: "backend", kind: "enum", T: proto3.getEnumType(EotPrediction_EotBackend) },
313
+ ],
314
+ );
315
+
316
+ /**
317
+ * @generated from enum livekit.agent.EotPrediction.EotBackend
318
+ */
319
+ export const EotPrediction_EotBackend = /*@__PURE__*/ proto3.makeEnum(
320
+ "livekit.agent.EotPrediction.EotBackend",
321
+ [
322
+ {no: 0, name: "EOT_BACKEND_UNKNOWN", localName: "UNKNOWN"},
323
+ {no: 1, name: "EOT_BACKEND_MULTIMODAL", localName: "MULTIMODAL"},
324
+ {no: 2, name: "EOT_BACKEND_TEXT", localName: "TEXT"},
325
+ ],
326
+ );
327
+
328
+ /**
329
+ * @generated from message livekit.agent.InterruptionPrediction
330
+ */
331
+ export const InterruptionPrediction = /*@__PURE__*/ proto3.makeMessageType(
332
+ "livekit.agent.InterruptionPrediction",
333
+ () => [
334
+ { no: 1, name: "is_interruption", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
335
+ { no: 2, name: "probabilities", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
336
+ { no: 3, name: "inference_stats", kind: "message", T: InferenceStats },
337
+ ],
338
+ );
339
+
340
+ /**
341
+ * @generated from message livekit.agent.ServerMessage
342
+ */
343
+ export const ServerMessage = /*@__PURE__*/ proto3.makeMessageType(
344
+ "livekit.agent.ServerMessage",
345
+ () => [
346
+ { no: 1, name: "server_created_at", kind: "message", T: Timestamp },
347
+ { no: 2, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
348
+ { no: 3, name: "client_created_at", kind: "message", T: Timestamp, opt: true },
349
+ { no: 4, name: "session_created", kind: "message", T: SessionCreated, oneof: "message" },
350
+ { no: 5, name: "inference_started", kind: "message", T: InferenceStarted, oneof: "message" },
351
+ { no: 6, name: "inference_stopped", kind: "message", T: InferenceStopped, oneof: "message" },
352
+ { no: 7, name: "session_closed", kind: "message", T: SessionClosed, oneof: "message" },
353
+ { no: 8, name: "error", kind: "message", T: InferenceError, oneof: "message" },
354
+ { no: 9, name: "eot_prediction", kind: "message", T: EotPrediction, oneof: "message" },
355
+ { no: 10, name: "interruption_prediction", kind: "message", T: InterruptionPrediction, oneof: "message" },
356
+ ],
357
+ );
358
+
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.45.5';
2
+ export const version = '1.45.6';