@livekit/protocol 1.43.0 → 1.43.2
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 +2343 -1770
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5132 -3952
- package/dist/index.d.mts +5132 -3952
- package/dist/index.d.ts +5132 -3952
- package/dist/index.mjs +2329 -1771
- 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_cloud_agent_pb.d.ts +5 -0
- package/src/gen/livekit_cloud_agent_pb.js +1 -0
- package/src/gen/livekit_egress_pb.d.ts +10 -0
- package/src/gen/livekit_egress_pb.js +2 -0
- package/src/gen/livekit_internal_pb.d.ts +1 -2
- package/src/gen/livekit_models_pb.d.ts +10 -0
- package/src/gen/livekit_models_pb.js +2 -0
- package/src/gen/livekit_sip_pb.d.ts +135 -0
- package/src/gen/livekit_sip_pb.js +27 -0
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/protocol",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.2",
|
|
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
|
+
|
|
@@ -784,6 +784,11 @@ export declare class UpdateAgentSecretsRequest extends Message<UpdateAgentSecret
|
|
|
784
784
|
*/
|
|
785
785
|
secrets: AgentSecret[];
|
|
786
786
|
|
|
787
|
+
/**
|
|
788
|
+
* @generated from field: repeated string remove = 5;
|
|
789
|
+
*/
|
|
790
|
+
remove: string[];
|
|
791
|
+
|
|
787
792
|
constructor(data?: PartialMessage<UpdateAgentSecretsRequest>);
|
|
788
793
|
|
|
789
794
|
static readonly runtime: typeof proto3;
|
|
@@ -271,6 +271,7 @@ export const UpdateAgentSecretsRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
271
271
|
{ no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
272
272
|
{ no: 3, name: "overwrite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
273
273
|
{ no: 4, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
|
|
274
|
+
{ no: 5, name: "remove", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
274
275
|
],
|
|
275
276
|
);
|
|
276
277
|
|
|
@@ -1869,6 +1869,16 @@ export declare class StreamInfo extends Message<StreamInfo> {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
error: string;
|
|
1871
1871
|
|
|
1872
|
+
/**
|
|
1873
|
+
* @generated from field: int64 last_retry_at = 7;
|
|
1874
|
+
*/
|
|
1875
|
+
lastRetryAt: bigint;
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* @generated from field: uint32 retries = 8;
|
|
1879
|
+
*/
|
|
1880
|
+
retries: number;
|
|
1881
|
+
|
|
1872
1882
|
constructor(data?: PartialMessage<StreamInfo>);
|
|
1873
1883
|
|
|
1874
1884
|
static readonly runtime: typeof proto3;
|
|
@@ -537,6 +537,8 @@ export const StreamInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
537
537
|
{ no: 4, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
538
538
|
{ no: 5, name: "status", kind: "enum", T: proto3.getEnumType(StreamInfo_Status) },
|
|
539
539
|
{ no: 6, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
540
|
+
{ no: 7, name: "last_retry_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
541
|
+
{ no: 8, name: "retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
540
542
|
],
|
|
541
543
|
);
|
|
542
544
|
|
|
@@ -288,8 +288,7 @@ export declare class NodeStats extends Message<NodeStats> {
|
|
|
288
288
|
bytesOutPerSec: number;
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
|
-
* @generated from field: float packets_in_per_sec = 14
|
|
292
|
-
* @deprecated
|
|
291
|
+
* @generated from field: float packets_in_per_sec = 14;
|
|
293
292
|
*/
|
|
294
293
|
packetsInPerSec: number;
|
|
295
294
|
|
|
@@ -990,6 +990,16 @@ export declare enum ParticipantInfo_KindDetail {
|
|
|
990
990
|
* @generated from enum value: FORWARDED = 1;
|
|
991
991
|
*/
|
|
992
992
|
FORWARDED = 1,
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* @generated from enum value: CONNECTOR_WHATSAPP = 2;
|
|
996
|
+
*/
|
|
997
|
+
CONNECTOR_WHATSAPP = 2,
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from enum value: CONNECTOR_TWILIO = 3;
|
|
1001
|
+
*/
|
|
1002
|
+
CONNECTOR_TWILIO = 3,
|
|
993
1003
|
}
|
|
994
1004
|
|
|
995
1005
|
/**
|