@livekit/protocol 1.43.4 → 1.44.1
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 +73 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -11
- package/dist/index.d.mts +135 -11
- package/dist/index.d.ts +135 -11
- package/dist/index.mjs +73 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
- package/src/gen/agent/livekit_agent_text_pb.d.ts +281 -0
- package/src/gen/agent/livekit_agent_text_pb.js +106 -0
- package/src/gen/livekit_agent_dispatch_pb.d.ts +1 -1
- package/src/gen/livekit_analytics_pb.d.ts +8 -1
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +424 -0
- package/src/gen/livekit_cloud_agent_pb.js +166 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +1 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +37 -3
- package/src/gen/livekit_connector_whatsapp_pb.js +12 -0
- package/src/gen/livekit_egress_pb.d.ts +7 -2
- package/src/gen/livekit_egress_pb.js +1 -0
- package/src/gen/livekit_ingress_pb.d.ts +13 -1
- package/src/gen/livekit_ingress_pb.js +3 -1
- package/src/gen/livekit_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -0
- package/src/gen/livekit_models_pb.d.ts +57 -2
- package/src/gen/livekit_models_pb.js +8 -0
- package/src/gen/livekit_rtc_pb.d.ts +5 -0
- package/src/gen/livekit_rtc_pb.js +1 -0
- package/src/gen/livekit_sip_pb.d.ts +14 -2
- package/src/gen/livekit_sip_pb.js +2 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/protocol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@bufbuild/protobuf": "^1.10.0"
|
|
36
36
|
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"url": "https://github.com/livekit/protocol"
|
|
39
|
+
},
|
|
37
40
|
"scripts": {
|
|
38
41
|
"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
42
|
"generate:version": "genversion --esm --semi src/gen/version.js",
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
// Copyright 2023 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_text.proto (package livekit.agent, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
+
import type { AgentHandoff, ChatMessage, FunctionCall, FunctionCallOutput } from "./livekit_agent_session_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum livekit.agent.TextMessageErrorCode
|
|
26
|
+
*/
|
|
27
|
+
export declare enum TextMessageErrorCode {
|
|
28
|
+
/**
|
|
29
|
+
* Unexpected internal error
|
|
30
|
+
*
|
|
31
|
+
* @generated from enum value: INTERNAL_ERROR = 0;
|
|
32
|
+
*/
|
|
33
|
+
INTERNAL_ERROR = 0,
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Session state not found in cache or version mismatch
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: SESSION_STATE_NOT_FOUND = 1;
|
|
39
|
+
*/
|
|
40
|
+
SESSION_STATE_NOT_FOUND = 1,
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* An exception was raised inside the user's text handler
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: TEXT_HANDLER_ERROR = 2;
|
|
46
|
+
*/
|
|
47
|
+
TEXT_HANDLER_ERROR = 2,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The worker process exited before the text session completed
|
|
51
|
+
*
|
|
52
|
+
* @generated from enum value: PROCESS_CLOSED = 3;
|
|
53
|
+
*/
|
|
54
|
+
PROCESS_CLOSED = 3,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Request to send a text message to an agent.
|
|
59
|
+
*
|
|
60
|
+
* @generated from message livekit.agent.TextMessageRequest
|
|
61
|
+
*/
|
|
62
|
+
export declare class TextMessageRequest extends Message<TextMessageRequest> {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: string text = 1;
|
|
65
|
+
*/
|
|
66
|
+
text: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: string message_id = 2;
|
|
70
|
+
*/
|
|
71
|
+
messageId: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string session_id = 3;
|
|
75
|
+
*/
|
|
76
|
+
sessionId: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: string agent_name = 4;
|
|
80
|
+
*/
|
|
81
|
+
agentName: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: string metadata = 5;
|
|
85
|
+
*/
|
|
86
|
+
metadata: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: optional livekit.agent.AgentSessionState session_state = 6;
|
|
90
|
+
*/
|
|
91
|
+
sessionState?: AgentSessionState;
|
|
92
|
+
|
|
93
|
+
constructor(data?: PartialMessage<TextMessageRequest>);
|
|
94
|
+
|
|
95
|
+
static readonly runtime: typeof proto3;
|
|
96
|
+
static readonly typeName = "livekit.agent.TextMessageRequest";
|
|
97
|
+
static readonly fields: FieldList;
|
|
98
|
+
|
|
99
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageRequest;
|
|
100
|
+
|
|
101
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageRequest;
|
|
102
|
+
|
|
103
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageRequest;
|
|
104
|
+
|
|
105
|
+
static equals(a: TextMessageRequest | PlainMessage<TextMessageRequest> | undefined, b: TextMessageRequest | PlainMessage<TextMessageRequest> | undefined): boolean;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Response to a text message request, multiple responses may be sent for a single request until it is complete.
|
|
110
|
+
*
|
|
111
|
+
* @generated from message livekit.agent.TextMessageResponse
|
|
112
|
+
*/
|
|
113
|
+
export declare class TextMessageResponse extends Message<TextMessageResponse> {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: string message_id = 1;
|
|
116
|
+
*/
|
|
117
|
+
messageId: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string session_id = 2;
|
|
121
|
+
*/
|
|
122
|
+
sessionId: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from oneof livekit.agent.TextMessageResponse.event
|
|
126
|
+
*/
|
|
127
|
+
event: {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: livekit.agent.ChatMessage message = 3;
|
|
130
|
+
*/
|
|
131
|
+
value: ChatMessage;
|
|
132
|
+
case: "message";
|
|
133
|
+
} | {
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: livekit.agent.FunctionCall function_call = 4;
|
|
136
|
+
*/
|
|
137
|
+
value: FunctionCall;
|
|
138
|
+
case: "functionCall";
|
|
139
|
+
} | {
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: livekit.agent.FunctionCallOutput function_call_output = 5;
|
|
142
|
+
*/
|
|
143
|
+
value: FunctionCallOutput;
|
|
144
|
+
case: "functionCallOutput";
|
|
145
|
+
} | {
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: livekit.agent.AgentHandoff agent_handoff = 6;
|
|
148
|
+
*/
|
|
149
|
+
value: AgentHandoff;
|
|
150
|
+
case: "agentHandoff";
|
|
151
|
+
} | {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: livekit.agent.TextMessageComplete complete = 7;
|
|
154
|
+
*/
|
|
155
|
+
value: TextMessageComplete;
|
|
156
|
+
case: "complete";
|
|
157
|
+
} | { case: undefined; value?: undefined };
|
|
158
|
+
|
|
159
|
+
constructor(data?: PartialMessage<TextMessageResponse>);
|
|
160
|
+
|
|
161
|
+
static readonly runtime: typeof proto3;
|
|
162
|
+
static readonly typeName = "livekit.agent.TextMessageResponse";
|
|
163
|
+
static readonly fields: FieldList;
|
|
164
|
+
|
|
165
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageResponse;
|
|
166
|
+
|
|
167
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageResponse;
|
|
168
|
+
|
|
169
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageResponse;
|
|
170
|
+
|
|
171
|
+
static equals(a: TextMessageResponse | PlainMessage<TextMessageResponse> | undefined, b: TextMessageResponse | PlainMessage<TextMessageResponse> | undefined): boolean;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Indicates the text message session is complete.
|
|
176
|
+
*
|
|
177
|
+
* @generated from message livekit.agent.TextMessageComplete
|
|
178
|
+
*/
|
|
179
|
+
export declare class TextMessageComplete extends Message<TextMessageComplete> {
|
|
180
|
+
/**
|
|
181
|
+
* @generated from oneof livekit.agent.TextMessageComplete.result
|
|
182
|
+
*/
|
|
183
|
+
result: {
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: livekit.agent.AgentSessionState session_state = 1;
|
|
186
|
+
*/
|
|
187
|
+
value: AgentSessionState;
|
|
188
|
+
case: "sessionState";
|
|
189
|
+
} | {
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: livekit.agent.TextMessageError error = 2;
|
|
192
|
+
*/
|
|
193
|
+
value: TextMessageError;
|
|
194
|
+
case: "error";
|
|
195
|
+
} | { case: undefined; value?: undefined };
|
|
196
|
+
|
|
197
|
+
constructor(data?: PartialMessage<TextMessageComplete>);
|
|
198
|
+
|
|
199
|
+
static readonly runtime: typeof proto3;
|
|
200
|
+
static readonly typeName = "livekit.agent.TextMessageComplete";
|
|
201
|
+
static readonly fields: FieldList;
|
|
202
|
+
|
|
203
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageComplete;
|
|
204
|
+
|
|
205
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageComplete;
|
|
206
|
+
|
|
207
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageComplete;
|
|
208
|
+
|
|
209
|
+
static equals(a: TextMessageComplete | PlainMessage<TextMessageComplete> | undefined, b: TextMessageComplete | PlainMessage<TextMessageComplete> | undefined): boolean;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message livekit.agent.AgentSessionState
|
|
214
|
+
*/
|
|
215
|
+
export declare class AgentSessionState extends Message<AgentSessionState> {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: uint64 version = 1;
|
|
218
|
+
*/
|
|
219
|
+
version: bigint;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @generated from oneof livekit.agent.AgentSessionState.data
|
|
223
|
+
*/
|
|
224
|
+
data: {
|
|
225
|
+
/**
|
|
226
|
+
* @generated from field: bytes snapshot = 2;
|
|
227
|
+
*/
|
|
228
|
+
value: Uint8Array;
|
|
229
|
+
case: "snapshot";
|
|
230
|
+
} | {
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: bytes delta = 3;
|
|
233
|
+
*/
|
|
234
|
+
value: Uint8Array;
|
|
235
|
+
case: "delta";
|
|
236
|
+
} | { case: undefined; value?: undefined };
|
|
237
|
+
|
|
238
|
+
constructor(data?: PartialMessage<AgentSessionState>);
|
|
239
|
+
|
|
240
|
+
static readonly runtime: typeof proto3;
|
|
241
|
+
static readonly typeName = "livekit.agent.AgentSessionState";
|
|
242
|
+
static readonly fields: FieldList;
|
|
243
|
+
|
|
244
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionState;
|
|
245
|
+
|
|
246
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionState;
|
|
247
|
+
|
|
248
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionState;
|
|
249
|
+
|
|
250
|
+
static equals(a: AgentSessionState | PlainMessage<AgentSessionState> | undefined, b: AgentSessionState | PlainMessage<AgentSessionState> | undefined): boolean;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message livekit.agent.TextMessageError
|
|
255
|
+
*/
|
|
256
|
+
export declare class TextMessageError extends Message<TextMessageError> {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: string message = 1;
|
|
259
|
+
*/
|
|
260
|
+
message: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: livekit.agent.TextMessageErrorCode code = 2;
|
|
264
|
+
*/
|
|
265
|
+
code: TextMessageErrorCode;
|
|
266
|
+
|
|
267
|
+
constructor(data?: PartialMessage<TextMessageError>);
|
|
268
|
+
|
|
269
|
+
static readonly runtime: typeof proto3;
|
|
270
|
+
static readonly typeName = "livekit.agent.TextMessageError";
|
|
271
|
+
static readonly fields: FieldList;
|
|
272
|
+
|
|
273
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageError;
|
|
274
|
+
|
|
275
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageError;
|
|
276
|
+
|
|
277
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageError;
|
|
278
|
+
|
|
279
|
+
static equals(a: TextMessageError | PlainMessage<TextMessageError> | undefined, b: TextMessageError | PlainMessage<TextMessageError> | undefined): boolean;
|
|
280
|
+
}
|
|
281
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// Copyright 2023 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_text.proto (package livekit.agent, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { AgentHandoff, ChatMessage, FunctionCall, FunctionCallOutput } from "./livekit_agent_session_pb.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum livekit.agent.TextMessageErrorCode
|
|
25
|
+
*/
|
|
26
|
+
export const TextMessageErrorCode = /*@__PURE__*/ proto3.makeEnum(
|
|
27
|
+
"livekit.agent.TextMessageErrorCode",
|
|
28
|
+
[
|
|
29
|
+
{no: 0, name: "INTERNAL_ERROR"},
|
|
30
|
+
{no: 1, name: "SESSION_STATE_NOT_FOUND"},
|
|
31
|
+
{no: 2, name: "TEXT_HANDLER_ERROR"},
|
|
32
|
+
{no: 3, name: "PROCESS_CLOSED"},
|
|
33
|
+
],
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Request to send a text message to an agent.
|
|
38
|
+
*
|
|
39
|
+
* @generated from message livekit.agent.TextMessageRequest
|
|
40
|
+
*/
|
|
41
|
+
export const TextMessageRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
42
|
+
"livekit.agent.TextMessageRequest",
|
|
43
|
+
() => [
|
|
44
|
+
{ no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
|
+
{ no: 2, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
46
|
+
{ no: 3, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
47
|
+
{ no: 4, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
48
|
+
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
49
|
+
{ no: 6, name: "session_state", kind: "message", T: AgentSessionState, opt: true },
|
|
50
|
+
],
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Response to a text message request, multiple responses may be sent for a single request until it is complete.
|
|
55
|
+
*
|
|
56
|
+
* @generated from message livekit.agent.TextMessageResponse
|
|
57
|
+
*/
|
|
58
|
+
export const TextMessageResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
59
|
+
"livekit.agent.TextMessageResponse",
|
|
60
|
+
() => [
|
|
61
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
62
|
+
{ no: 2, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
63
|
+
{ no: 3, name: "message", kind: "message", T: ChatMessage, oneof: "event" },
|
|
64
|
+
{ no: 4, name: "function_call", kind: "message", T: FunctionCall, oneof: "event" },
|
|
65
|
+
{ no: 5, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "event" },
|
|
66
|
+
{ no: 6, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "event" },
|
|
67
|
+
{ no: 7, name: "complete", kind: "message", T: TextMessageComplete, oneof: "event" },
|
|
68
|
+
],
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Indicates the text message session is complete.
|
|
73
|
+
*
|
|
74
|
+
* @generated from message livekit.agent.TextMessageComplete
|
|
75
|
+
*/
|
|
76
|
+
export const TextMessageComplete = /*@__PURE__*/ proto3.makeMessageType(
|
|
77
|
+
"livekit.agent.TextMessageComplete",
|
|
78
|
+
() => [
|
|
79
|
+
{ no: 1, name: "session_state", kind: "message", T: AgentSessionState, oneof: "result" },
|
|
80
|
+
{ no: 2, name: "error", kind: "message", T: TextMessageError, oneof: "result" },
|
|
81
|
+
],
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message livekit.agent.AgentSessionState
|
|
86
|
+
*/
|
|
87
|
+
export const AgentSessionState = /*@__PURE__*/ proto3.makeMessageType(
|
|
88
|
+
"livekit.agent.AgentSessionState",
|
|
89
|
+
() => [
|
|
90
|
+
{ no: 1, name: "version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
91
|
+
{ no: 2, name: "snapshot", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "data" },
|
|
92
|
+
{ no: 3, name: "delta", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "data" },
|
|
93
|
+
],
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message livekit.agent.TextMessageError
|
|
98
|
+
*/
|
|
99
|
+
export const TextMessageError = /*@__PURE__*/ proto3.makeMessageType(
|
|
100
|
+
"livekit.agent.TextMessageError",
|
|
101
|
+
() => [
|
|
102
|
+
{ no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
103
|
+
{ no: 2, name: "code", kind: "enum", T: proto3.getEnumType(TextMessageErrorCode) },
|
|
104
|
+
],
|
|
105
|
+
);
|
|
106
|
+
|
|
@@ -219,7 +219,7 @@ export declare class AgentDispatch extends Message<AgentDispatch> {
|
|
|
219
219
|
*/
|
|
220
220
|
export declare class AgentDispatchState extends Message<AgentDispatchState> {
|
|
221
221
|
/**
|
|
222
|
-
* For dispatches of tyoe JT_ROOM, there will be at most 1 job.
|
|
222
|
+
* For dispatches of tyoe JT_ROOM, there will be at most 1 job.
|
|
223
223
|
* For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
|
|
224
224
|
*
|
|
225
225
|
* @generated from field: repeated livekit.Job jobs = 1;
|
|
@@ -1044,12 +1044,19 @@ export declare class FeatureUsageInfo extends Message<FeatureUsageInfo> {
|
|
|
1044
1044
|
/**
|
|
1045
1045
|
* time ranges during which the feature was enabled.
|
|
1046
1046
|
* for e. g., noise cancellation may not be applied when a media track is paused/muted,
|
|
1047
|
-
* this allows reporting only periods during which a feature is
|
|
1047
|
+
* this allows reporting only periods during which a feature is active.
|
|
1048
1048
|
*
|
|
1049
1049
|
* @generated from field: repeated livekit.TimeRange time_ranges = 8;
|
|
1050
1050
|
*/
|
|
1051
1051
|
timeRanges: TimeRange[];
|
|
1052
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* Feature specific metadata included in the report
|
|
1055
|
+
*
|
|
1056
|
+
* @generated from field: map<string, string> feature_info = 9;
|
|
1057
|
+
*/
|
|
1058
|
+
featureInfo: { [key: string]: string };
|
|
1059
|
+
|
|
1053
1060
|
constructor(data?: PartialMessage<FeatureUsageInfo>);
|
|
1054
1061
|
|
|
1055
1062
|
static readonly runtime: typeof proto3;
|
|
@@ -309,6 +309,7 @@ export const FeatureUsageInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
309
309
|
{ no: 6, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
310
310
|
{ no: 7, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
311
311
|
{ no: 8, name: "time_ranges", kind: "message", T: TimeRange, repeated: true },
|
|
312
|
+
{ no: 9, name: "feature_info", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
312
313
|
],
|
|
313
314
|
);
|
|
314
315
|
|