@livekit/protocol 1.43.1 → 1.43.4
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/dist/index.cjs +381 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +889 -31
- package/dist/index.d.mts +889 -31
- package/dist/index.d.ts +889 -31
- package/dist/index.mjs +369 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gen/agent/livekit_agent_session_pb.d.ts +385 -0
- package/src/gen/agent/livekit_agent_session_pb.js +131 -0
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_internal_pb.d.ts +30 -0
- package/src/gen/livekit_internal_pb.js +6 -0
- package/src/gen/livekit_metrics_pb.d.ts +5 -0
- package/src/gen/livekit_metrics_pb.js +1 -0
- package/src/gen/livekit_models_pb.d.ts +123 -0
- package/src/gen/livekit_models_pb.js +46 -0
- package/src/gen/livekit_phone_number_pb.d.ts +24 -2
- package/src/gen/livekit_phone_number_pb.js +3 -0
- package/src/gen/livekit_rtc_pb.d.ts +327 -1
- package/src/gen/livekit_rtc_pb.js +102 -1
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/protocol",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@bufbuild/protobuf": "^1.10.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto",
|
|
38
|
+
"generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto ../../protobufs/agent/livekit_*.proto",
|
|
39
39
|
"generate:version": "genversion --esm --semi src/gen/version.js",
|
|
40
40
|
"build": "pnpm generate:version && pnpm generate:proto && unbuild"
|
|
41
41
|
}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
|
|
2
|
+
// @generated from file agent/livekit_agent_session.proto (package livekit.agent, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum livekit.agent.ChatRole
|
|
11
|
+
*/
|
|
12
|
+
export declare enum ChatRole {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum value: DEVELOPER = 0;
|
|
15
|
+
*/
|
|
16
|
+
DEVELOPER = 0,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: SYSTEM = 1;
|
|
20
|
+
*/
|
|
21
|
+
SYSTEM = 1,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: USER = 2;
|
|
25
|
+
*/
|
|
26
|
+
USER = 2,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: ASSISTANT = 3;
|
|
30
|
+
*/
|
|
31
|
+
ASSISTANT = 3,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from message livekit.agent.MetricsReport
|
|
36
|
+
*/
|
|
37
|
+
export declare class MetricsReport extends Message<MetricsReport> {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: google.protobuf.Timestamp started_speaking_at = 1;
|
|
40
|
+
*/
|
|
41
|
+
startedSpeakingAt?: Timestamp;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: google.protobuf.Timestamp stopped_speaking_at = 2;
|
|
45
|
+
*/
|
|
46
|
+
stoppedSpeakingAt?: Timestamp;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: optional double transcription_delay = 3;
|
|
50
|
+
*/
|
|
51
|
+
transcriptionDelay?: number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: optional double end_of_turn_delay = 4;
|
|
55
|
+
*/
|
|
56
|
+
endOfTurnDelay?: number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: optional double on_user_turn_completed_delay = 5;
|
|
60
|
+
*/
|
|
61
|
+
onUserTurnCompletedDelay?: number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: optional double llm_node_ttft = 6;
|
|
65
|
+
*/
|
|
66
|
+
llmNodeTtft?: number;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: optional double tts_node_ttfb = 7;
|
|
70
|
+
*/
|
|
71
|
+
ttsNodeTtfb?: number;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: optional double e2e_latency = 8;
|
|
75
|
+
*/
|
|
76
|
+
e2eLatency?: number;
|
|
77
|
+
|
|
78
|
+
constructor(data?: PartialMessage<MetricsReport>);
|
|
79
|
+
|
|
80
|
+
static readonly runtime: typeof proto3;
|
|
81
|
+
static readonly typeName = "livekit.agent.MetricsReport";
|
|
82
|
+
static readonly fields: FieldList;
|
|
83
|
+
|
|
84
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsReport;
|
|
85
|
+
|
|
86
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsReport;
|
|
87
|
+
|
|
88
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsReport;
|
|
89
|
+
|
|
90
|
+
static equals(a: MetricsReport | PlainMessage<MetricsReport> | undefined, b: MetricsReport | PlainMessage<MetricsReport> | undefined): boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated from message livekit.agent.ChatMessage
|
|
95
|
+
*/
|
|
96
|
+
export declare class ChatMessage extends Message<ChatMessage> {
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: string id = 1;
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: livekit.agent.ChatRole role = 2;
|
|
104
|
+
*/
|
|
105
|
+
role: ChatRole;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: repeated livekit.agent.ChatMessage.ChatContent content = 3;
|
|
109
|
+
*/
|
|
110
|
+
content: ChatMessage_ChatContent[];
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: bool interrupted = 4;
|
|
114
|
+
*/
|
|
115
|
+
interrupted: boolean;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: optional double transcript_confidence = 5;
|
|
119
|
+
*/
|
|
120
|
+
transcriptConfidence?: number;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: map<string, string> extra = 6;
|
|
124
|
+
*/
|
|
125
|
+
extra: { [key: string]: string };
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: livekit.agent.MetricsReport metrics = 7;
|
|
129
|
+
*/
|
|
130
|
+
metrics?: MetricsReport;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: google.protobuf.Timestamp created_at = 8;
|
|
134
|
+
*/
|
|
135
|
+
createdAt?: Timestamp;
|
|
136
|
+
|
|
137
|
+
constructor(data?: PartialMessage<ChatMessage>);
|
|
138
|
+
|
|
139
|
+
static readonly runtime: typeof proto3;
|
|
140
|
+
static readonly typeName = "livekit.agent.ChatMessage";
|
|
141
|
+
static readonly fields: FieldList;
|
|
142
|
+
|
|
143
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
|
|
144
|
+
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
|
|
146
|
+
|
|
147
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
|
|
148
|
+
|
|
149
|
+
static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message livekit.agent.ChatMessage.ChatContent
|
|
154
|
+
*/
|
|
155
|
+
export declare class ChatMessage_ChatContent extends Message<ChatMessage_ChatContent> {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from oneof livekit.agent.ChatMessage.ChatContent.payload
|
|
158
|
+
*/
|
|
159
|
+
payload: {
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: string text = 1;
|
|
162
|
+
*/
|
|
163
|
+
value: string;
|
|
164
|
+
case: "text";
|
|
165
|
+
} | { case: undefined; value?: undefined };
|
|
166
|
+
|
|
167
|
+
constructor(data?: PartialMessage<ChatMessage_ChatContent>);
|
|
168
|
+
|
|
169
|
+
static readonly runtime: typeof proto3;
|
|
170
|
+
static readonly typeName = "livekit.agent.ChatMessage.ChatContent";
|
|
171
|
+
static readonly fields: FieldList;
|
|
172
|
+
|
|
173
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage_ChatContent;
|
|
174
|
+
|
|
175
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage_ChatContent;
|
|
176
|
+
|
|
177
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage_ChatContent;
|
|
178
|
+
|
|
179
|
+
static equals(a: ChatMessage_ChatContent | PlainMessage<ChatMessage_ChatContent> | undefined, b: ChatMessage_ChatContent | PlainMessage<ChatMessage_ChatContent> | undefined): boolean;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @generated from message livekit.agent.FunctionCall
|
|
184
|
+
*/
|
|
185
|
+
export declare class FunctionCall extends Message<FunctionCall> {
|
|
186
|
+
/**
|
|
187
|
+
* @generated from field: string id = 1;
|
|
188
|
+
*/
|
|
189
|
+
id: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: string call_id = 2;
|
|
193
|
+
*/
|
|
194
|
+
callId: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @generated from field: string arguments = 3;
|
|
198
|
+
*/
|
|
199
|
+
arguments: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: string name = 4;
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
208
|
+
*/
|
|
209
|
+
createdAt?: Timestamp;
|
|
210
|
+
|
|
211
|
+
constructor(data?: PartialMessage<FunctionCall>);
|
|
212
|
+
|
|
213
|
+
static readonly runtime: typeof proto3;
|
|
214
|
+
static readonly typeName = "livekit.agent.FunctionCall";
|
|
215
|
+
static readonly fields: FieldList;
|
|
216
|
+
|
|
217
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FunctionCall;
|
|
218
|
+
|
|
219
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FunctionCall;
|
|
220
|
+
|
|
221
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FunctionCall;
|
|
222
|
+
|
|
223
|
+
static equals(a: FunctionCall | PlainMessage<FunctionCall> | undefined, b: FunctionCall | PlainMessage<FunctionCall> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @generated from message livekit.agent.FunctionCallOutput
|
|
228
|
+
*/
|
|
229
|
+
export declare class FunctionCallOutput extends Message<FunctionCallOutput> {
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: string id = 1;
|
|
232
|
+
*/
|
|
233
|
+
id: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: string name = 2;
|
|
237
|
+
*/
|
|
238
|
+
name: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: string call_id = 3;
|
|
242
|
+
*/
|
|
243
|
+
callId: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string output = 4;
|
|
247
|
+
*/
|
|
248
|
+
output: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: bool is_error = 5;
|
|
252
|
+
*/
|
|
253
|
+
isError: boolean;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
257
|
+
*/
|
|
258
|
+
createdAt?: Timestamp;
|
|
259
|
+
|
|
260
|
+
constructor(data?: PartialMessage<FunctionCallOutput>);
|
|
261
|
+
|
|
262
|
+
static readonly runtime: typeof proto3;
|
|
263
|
+
static readonly typeName = "livekit.agent.FunctionCallOutput";
|
|
264
|
+
static readonly fields: FieldList;
|
|
265
|
+
|
|
266
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FunctionCallOutput;
|
|
267
|
+
|
|
268
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FunctionCallOutput;
|
|
269
|
+
|
|
270
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FunctionCallOutput;
|
|
271
|
+
|
|
272
|
+
static equals(a: FunctionCallOutput | PlainMessage<FunctionCallOutput> | undefined, b: FunctionCallOutput | PlainMessage<FunctionCallOutput> | undefined): boolean;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @generated from message livekit.agent.AgentHandoff
|
|
277
|
+
*/
|
|
278
|
+
export declare class AgentHandoff extends Message<AgentHandoff> {
|
|
279
|
+
/**
|
|
280
|
+
* @generated from field: string id = 1;
|
|
281
|
+
*/
|
|
282
|
+
id: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: optional string old_agent_id = 2;
|
|
286
|
+
*/
|
|
287
|
+
oldAgentId?: string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: string new_agent_id = 3;
|
|
291
|
+
*/
|
|
292
|
+
newAgentId: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
296
|
+
*/
|
|
297
|
+
createdAt?: Timestamp;
|
|
298
|
+
|
|
299
|
+
constructor(data?: PartialMessage<AgentHandoff>);
|
|
300
|
+
|
|
301
|
+
static readonly runtime: typeof proto3;
|
|
302
|
+
static readonly typeName = "livekit.agent.AgentHandoff";
|
|
303
|
+
static readonly fields: FieldList;
|
|
304
|
+
|
|
305
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentHandoff;
|
|
306
|
+
|
|
307
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentHandoff;
|
|
308
|
+
|
|
309
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentHandoff;
|
|
310
|
+
|
|
311
|
+
static equals(a: AgentHandoff | PlainMessage<AgentHandoff> | undefined, b: AgentHandoff | PlainMessage<AgentHandoff> | undefined): boolean;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @generated from message livekit.agent.ChatContext
|
|
316
|
+
*/
|
|
317
|
+
export declare class ChatContext extends Message<ChatContext> {
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: repeated livekit.agent.ChatContext.ChatItem items = 1;
|
|
320
|
+
*/
|
|
321
|
+
items: ChatContext_ChatItem[];
|
|
322
|
+
|
|
323
|
+
constructor(data?: PartialMessage<ChatContext>);
|
|
324
|
+
|
|
325
|
+
static readonly runtime: typeof proto3;
|
|
326
|
+
static readonly typeName = "livekit.agent.ChatContext";
|
|
327
|
+
static readonly fields: FieldList;
|
|
328
|
+
|
|
329
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatContext;
|
|
330
|
+
|
|
331
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatContext;
|
|
332
|
+
|
|
333
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatContext;
|
|
334
|
+
|
|
335
|
+
static equals(a: ChatContext | PlainMessage<ChatContext> | undefined, b: ChatContext | PlainMessage<ChatContext> | undefined): boolean;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @generated from message livekit.agent.ChatContext.ChatItem
|
|
340
|
+
*/
|
|
341
|
+
export declare class ChatContext_ChatItem extends Message<ChatContext_ChatItem> {
|
|
342
|
+
/**
|
|
343
|
+
* @generated from oneof livekit.agent.ChatContext.ChatItem.item
|
|
344
|
+
*/
|
|
345
|
+
item: {
|
|
346
|
+
/**
|
|
347
|
+
* @generated from field: livekit.agent.ChatMessage message = 1;
|
|
348
|
+
*/
|
|
349
|
+
value: ChatMessage;
|
|
350
|
+
case: "message";
|
|
351
|
+
} | {
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: livekit.agent.FunctionCall function_call = 2;
|
|
354
|
+
*/
|
|
355
|
+
value: FunctionCall;
|
|
356
|
+
case: "functionCall";
|
|
357
|
+
} | {
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: livekit.agent.FunctionCallOutput function_call_output = 3;
|
|
360
|
+
*/
|
|
361
|
+
value: FunctionCallOutput;
|
|
362
|
+
case: "functionCallOutput";
|
|
363
|
+
} | {
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: livekit.agent.AgentHandoff agent_handoff = 4;
|
|
366
|
+
*/
|
|
367
|
+
value: AgentHandoff;
|
|
368
|
+
case: "agentHandoff";
|
|
369
|
+
} | { case: undefined; value?: undefined };
|
|
370
|
+
|
|
371
|
+
constructor(data?: PartialMessage<ChatContext_ChatItem>);
|
|
372
|
+
|
|
373
|
+
static readonly runtime: typeof proto3;
|
|
374
|
+
static readonly typeName = "livekit.agent.ChatContext.ChatItem";
|
|
375
|
+
static readonly fields: FieldList;
|
|
376
|
+
|
|
377
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatContext_ChatItem;
|
|
378
|
+
|
|
379
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatContext_ChatItem;
|
|
380
|
+
|
|
381
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatContext_ChatItem;
|
|
382
|
+
|
|
383
|
+
static equals(a: ChatContext_ChatItem | PlainMessage<ChatContext_ChatItem> | undefined, b: ChatContext_ChatItem | PlainMessage<ChatContext_ChatItem> | undefined): boolean;
|
|
384
|
+
}
|
|
385
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
|
|
2
|
+
// @generated from file agent/livekit_agent_session.proto (package livekit.agent, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum livekit.agent.ChatRole
|
|
10
|
+
*/
|
|
11
|
+
export const ChatRole = /*@__PURE__*/ proto3.makeEnum(
|
|
12
|
+
"livekit.agent.ChatRole",
|
|
13
|
+
[
|
|
14
|
+
{no: 0, name: "DEVELOPER"},
|
|
15
|
+
{no: 1, name: "SYSTEM"},
|
|
16
|
+
{no: 2, name: "USER"},
|
|
17
|
+
{no: 3, name: "ASSISTANT"},
|
|
18
|
+
],
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from message livekit.agent.MetricsReport
|
|
23
|
+
*/
|
|
24
|
+
export const MetricsReport = /*@__PURE__*/ proto3.makeMessageType(
|
|
25
|
+
"livekit.agent.MetricsReport",
|
|
26
|
+
() => [
|
|
27
|
+
{ no: 1, name: "started_speaking_at", kind: "message", T: Timestamp },
|
|
28
|
+
{ no: 2, name: "stopped_speaking_at", kind: "message", T: Timestamp },
|
|
29
|
+
{ no: 3, name: "transcription_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
30
|
+
{ no: 4, name: "end_of_turn_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
31
|
+
{ no: 5, name: "on_user_turn_completed_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
32
|
+
{ no: 6, name: "llm_node_ttft", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
33
|
+
{ no: 7, name: "tts_node_ttfb", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
34
|
+
{ no: 8, name: "e2e_latency", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
35
|
+
],
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from message livekit.agent.ChatMessage
|
|
40
|
+
*/
|
|
41
|
+
export const ChatMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
42
|
+
"livekit.agent.ChatMessage",
|
|
43
|
+
() => [
|
|
44
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(ChatRole) },
|
|
46
|
+
{ no: 3, name: "content", kind: "message", T: ChatMessage_ChatContent, repeated: true },
|
|
47
|
+
{ no: 4, name: "interrupted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
48
|
+
{ no: 5, name: "transcript_confidence", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
49
|
+
{ no: 6, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
50
|
+
{ no: 7, name: "metrics", kind: "message", T: MetricsReport },
|
|
51
|
+
{ no: 8, name: "created_at", kind: "message", T: Timestamp },
|
|
52
|
+
],
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from message livekit.agent.ChatMessage.ChatContent
|
|
57
|
+
*/
|
|
58
|
+
export const ChatMessage_ChatContent = /*@__PURE__*/ proto3.makeMessageType(
|
|
59
|
+
"livekit.agent.ChatMessage.ChatContent",
|
|
60
|
+
() => [
|
|
61
|
+
{ no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "payload" },
|
|
62
|
+
],
|
|
63
|
+
{localName: "ChatMessage_ChatContent"},
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message livekit.agent.FunctionCall
|
|
68
|
+
*/
|
|
69
|
+
export const FunctionCall = /*@__PURE__*/ proto3.makeMessageType(
|
|
70
|
+
"livekit.agent.FunctionCall",
|
|
71
|
+
() => [
|
|
72
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
+
{ no: 2, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 3, name: "arguments", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
76
|
+
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
77
|
+
],
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message livekit.agent.FunctionCallOutput
|
|
82
|
+
*/
|
|
83
|
+
export const FunctionCallOutput = /*@__PURE__*/ proto3.makeMessageType(
|
|
84
|
+
"livekit.agent.FunctionCallOutput",
|
|
85
|
+
() => [
|
|
86
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
87
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
88
|
+
{ no: 3, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
|
+
{ no: 4, name: "output", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
90
|
+
{ no: 5, name: "is_error", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
91
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
92
|
+
],
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @generated from message livekit.agent.AgentHandoff
|
|
97
|
+
*/
|
|
98
|
+
export const AgentHandoff = /*@__PURE__*/ proto3.makeMessageType(
|
|
99
|
+
"livekit.agent.AgentHandoff",
|
|
100
|
+
() => [
|
|
101
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
+
{ no: 2, name: "old_agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
103
|
+
{ no: 3, name: "new_agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
105
|
+
],
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @generated from message livekit.agent.ChatContext
|
|
110
|
+
*/
|
|
111
|
+
export const ChatContext = /*@__PURE__*/ proto3.makeMessageType(
|
|
112
|
+
"livekit.agent.ChatContext",
|
|
113
|
+
() => [
|
|
114
|
+
{ no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true },
|
|
115
|
+
],
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @generated from message livekit.agent.ChatContext.ChatItem
|
|
120
|
+
*/
|
|
121
|
+
export const ChatContext_ChatItem = /*@__PURE__*/ proto3.makeMessageType(
|
|
122
|
+
"livekit.agent.ChatContext.ChatItem",
|
|
123
|
+
() => [
|
|
124
|
+
{ no: 1, name: "message", kind: "message", T: ChatMessage, oneof: "item" },
|
|
125
|
+
{ no: 2, name: "function_call", kind: "message", T: FunctionCall, oneof: "item" },
|
|
126
|
+
{ no: 3, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "item" },
|
|
127
|
+
{ no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" },
|
|
128
|
+
],
|
|
129
|
+
{localName: "ChatContext_ChatItem"},
|
|
130
|
+
);
|
|
131
|
+
|
|
@@ -1078,6 +1078,11 @@ export declare enum FeatureUsageInfo_Feature {
|
|
|
1078
1078
|
* @generated from enum value: KRISP_BACKGROUND_VOICE_CANCELLATION = 1;
|
|
1079
1079
|
*/
|
|
1080
1080
|
KRISP_BACKGROUND_VOICE_CANCELLATION = 1,
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* @generated from enum value: AIC_AUDIO_ENHANCEMENT = 2;
|
|
1084
|
+
*/
|
|
1085
|
+
AIC_AUDIO_ENHANCEMENT = 2,
|
|
1081
1086
|
}
|
|
1082
1087
|
|
|
1083
1088
|
/**
|
|
@@ -226,6 +226,11 @@ export declare class NodeStats extends Message<NodeStats> {
|
|
|
226
226
|
*/
|
|
227
227
|
trackPublishSuccessPerSec: number;
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: int32 num_track_publish_cancels = 51;
|
|
231
|
+
*/
|
|
232
|
+
numTrackPublishCancels: number;
|
|
233
|
+
|
|
229
234
|
/**
|
|
230
235
|
* @generated from field: int32 num_track_subscribe_attempts = 40;
|
|
231
236
|
*/
|
|
@@ -248,6 +253,11 @@ export declare class NodeStats extends Message<NodeStats> {
|
|
|
248
253
|
*/
|
|
249
254
|
trackSubscribeSuccessPerSec: number;
|
|
250
255
|
|
|
256
|
+
/**
|
|
257
|
+
* @generated from field: int32 num_track_subscribe_cancels = 52;
|
|
258
|
+
*/
|
|
259
|
+
numTrackSubscribeCancels: number;
|
|
260
|
+
|
|
251
261
|
/**
|
|
252
262
|
* packet
|
|
253
263
|
*
|
|
@@ -434,6 +444,11 @@ export declare class NodeStats extends Message<NodeStats> {
|
|
|
434
444
|
*/
|
|
435
445
|
participantRtcInitPerSec: number;
|
|
436
446
|
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: uint64 participant_rtc_canceled = 53;
|
|
449
|
+
*/
|
|
450
|
+
participantRtcCanceled: bigint;
|
|
451
|
+
|
|
437
452
|
/**
|
|
438
453
|
* forward metrics
|
|
439
454
|
*
|
|
@@ -497,6 +512,11 @@ export declare class NodeStatsRate extends Message<NodeStatsRate> {
|
|
|
497
512
|
*/
|
|
498
513
|
trackPublishSuccess: number;
|
|
499
514
|
|
|
515
|
+
/**
|
|
516
|
+
* @generated from field: float track_publish_cancels = 24;
|
|
517
|
+
*/
|
|
518
|
+
trackPublishCancels: number;
|
|
519
|
+
|
|
500
520
|
/**
|
|
501
521
|
* @generated from field: float track_subscribe_attempts = 6;
|
|
502
522
|
*/
|
|
@@ -507,6 +527,11 @@ export declare class NodeStatsRate extends Message<NodeStatsRate> {
|
|
|
507
527
|
*/
|
|
508
528
|
trackSubscribeSuccess: number;
|
|
509
529
|
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: float track_subscribe_cancels = 25;
|
|
532
|
+
*/
|
|
533
|
+
trackSubscribeCancels: number;
|
|
534
|
+
|
|
510
535
|
/**
|
|
511
536
|
* @generated from field: float bytes_in = 8;
|
|
512
537
|
*/
|
|
@@ -567,6 +592,11 @@ export declare class NodeStatsRate extends Message<NodeStatsRate> {
|
|
|
567
592
|
*/
|
|
568
593
|
participantRtcInit: number;
|
|
569
594
|
|
|
595
|
+
/**
|
|
596
|
+
* @generated from field: float participant_rtc_canceled = 26;
|
|
597
|
+
*/
|
|
598
|
+
participantRtcCanceled: number;
|
|
599
|
+
|
|
570
600
|
/**
|
|
571
601
|
* time weighted averages across stats windows forming part of a rate measurement interval
|
|
572
602
|
*
|
|
@@ -97,10 +97,12 @@ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
97
97
|
{ no: 37, name: "track_publish_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
98
98
|
{ no: 38, name: "num_track_publish_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
99
99
|
{ no: 39, name: "track_publish_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
100
|
+
{ no: 51, name: "num_track_publish_cancels", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
100
101
|
{ no: 40, name: "num_track_subscribe_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
101
102
|
{ no: 41, name: "track_subscribe_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
102
103
|
{ no: 42, name: "num_track_subscribe_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
103
104
|
{ no: 43, name: "track_subscribe_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
105
|
+
{ no: 52, name: "num_track_subscribe_cancels", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
104
106
|
{ no: 7, name: "bytes_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
105
107
|
{ no: 8, name: "bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
106
108
|
{ no: 9, name: "packets_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
@@ -134,6 +136,7 @@ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
134
136
|
{ no: 45, name: "participant_rtc_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
135
137
|
{ no: 46, name: "participant_rtc_init", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
136
138
|
{ no: 47, name: "participant_rtc_init_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
139
|
+
{ no: 53, name: "participant_rtc_canceled", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
137
140
|
{ no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
138
141
|
{ no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
139
142
|
{ no: 50, name: "rates", kind: "message", T: NodeStatsRate, repeated: true },
|
|
@@ -153,8 +156,10 @@ export const NodeStatsRate = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
153
156
|
{ no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
154
157
|
{ no: 4, name: "track_publish_attempts", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
155
158
|
{ no: 5, name: "track_publish_success", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
159
|
+
{ no: 24, name: "track_publish_cancels", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
156
160
|
{ no: 6, name: "track_subscribe_attempts", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
157
161
|
{ no: 7, name: "track_subscribe_success", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
162
|
+
{ no: 25, name: "track_subscribe_cancels", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
158
163
|
{ no: 8, name: "bytes_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
159
164
|
{ no: 9, name: "bytes_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
160
165
|
{ no: 10, name: "packets_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
@@ -167,6 +172,7 @@ export const NodeStatsRate = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
167
172
|
{ no: 17, name: "participant_signal_connected", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
168
173
|
{ no: 18, name: "participant_rtc_connected", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
169
174
|
{ no: 19, name: "participant_rtc_init", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
175
|
+
{ no: 26, name: "participant_rtc_canceled", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
170
176
|
{ no: 20, name: "cpu_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
171
177
|
{ no: 21, name: "memory_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
172
178
|
{ no: 22, name: "memory_used", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
@@ -395,6 +395,11 @@ export declare class MetricsRecordingHeader extends Message<MetricsRecordingHead
|
|
|
395
395
|
*/
|
|
396
396
|
startTime?: Timestamp;
|
|
397
397
|
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: map<string, string> room_tags = 5;
|
|
400
|
+
*/
|
|
401
|
+
roomTags: { [key: string]: string };
|
|
402
|
+
|
|
398
403
|
constructor(data?: PartialMessage<MetricsRecordingHeader>);
|
|
399
404
|
|
|
400
405
|
static readonly runtime: typeof proto3;
|
|
@@ -104,6 +104,7 @@ export const MetricsRecordingHeader = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
104
104
|
{ no: 1, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
105
105
|
{ no: 3, name: "duration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
106
106
|
{ no: 4, name: "start_time", kind: "message", T: Timestamp },
|
|
107
|
+
{ no: 5, name: "room_tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
107
108
|
],
|
|
108
109
|
);
|
|
109
110
|
|