@cc-livekit/protocol 1.39.4 → 1.42.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 +457 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +975 -41
- package/dist/index.d.mts +975 -41
- package/dist/index.d.ts +975 -41
- package/dist/index.mjs +440 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gen/livekit_agent_pb.d.ts +10 -0
- package/src/gen/livekit_agent_pb.js +2 -0
- package/src/gen/livekit_analytics_pb.d.ts +10 -0
- package/src/gen/livekit_analytics_pb.js +2 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +152 -0
- package/src/gen/livekit_cloud_agent_pb.js +54 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +139 -0
- package/src/gen/livekit_connector_twilio_pb.js +60 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +434 -0
- package/src/gen/livekit_connector_whatsapp_pb.js +144 -0
- package/src/gen/livekit_egress_pb.d.ts +19 -0
- package/src/gen/livekit_egress_pb.js +3 -0
- package/src/gen/livekit_internal_pb.d.ts +30 -2
- package/src/gen/livekit_internal_pb.js +6 -0
- package/src/gen/livekit_metrics_pb.d.ts +30 -1
- package/src/gen/livekit_metrics_pb.js +11 -0
- package/src/gen/livekit_models_pb.d.ts +305 -9
- package/src/gen/livekit_models_pb.js +85 -0
- package/src/gen/livekit_phone_number_pb.d.ts +634 -0
- package/src/gen/livekit_phone_number_pb.js +222 -0
- package/src/gen/livekit_room_pb.d.ts +75 -0
- package/src/gen/livekit_room_pb.js +25 -0
- package/src/gen/livekit_rtc_pb.d.ts +314 -7
- package/src/gen/livekit_rtc_pb.js +91 -1
- package/src/gen/livekit_sip_pb.d.ts +88 -3
- package/src/gen/livekit_sip_pb.js +29 -1
- package/src/gen/livekit_temptalk_pb.d.ts +5 -0
- package/src/gen/livekit_temptalk_pb.js +1 -0
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
// Copyright 2025 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 livekit_connector_whatsapp.proto (package livekit, 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 { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
23
|
+
import type { SessionDescription } from "./livekit_rtc_pb.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum livekit.WhatsAppCallDirection
|
|
27
|
+
*/
|
|
28
|
+
export declare enum WhatsAppCallDirection {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: WHATSAPP_CALL_DIRECTION_INBOUND = 0;
|
|
31
|
+
*/
|
|
32
|
+
WHATSAPP_CALL_DIRECTION_INBOUND = 0,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: WHATSAPP_CALL_DIRECTION_OUTBOUND = 2;
|
|
36
|
+
*/
|
|
37
|
+
WHATSAPP_CALL_DIRECTION_OUTBOUND = 2,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from message livekit.DialWhatsAppCallRequest
|
|
42
|
+
*/
|
|
43
|
+
export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallRequest> {
|
|
44
|
+
/**
|
|
45
|
+
* The number of the business that is initiating the call
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
48
|
+
*/
|
|
49
|
+
whatsappPhoneNumberId: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The number of the user that is supossed to receive the call
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: string whatsapp_to_phone_number = 2;
|
|
55
|
+
*/
|
|
56
|
+
whatsappToPhoneNumber: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The API key of the business that is initiating the call
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: string whatsapp_api_key = 3;
|
|
62
|
+
*/
|
|
63
|
+
whatsappApiKey: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* An arbitrary string you can pass in that is useful for tracking and logging purposes.
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: string whatsapp_biz_opaque_callback_data = 4;
|
|
69
|
+
*/
|
|
70
|
+
whatsappBizOpaqueCallbackData: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* What LiveKit room should this participant be connected too
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: string room_name = 5;
|
|
76
|
+
*/
|
|
77
|
+
roomName: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Optional agents to dispatch the call to
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: repeated livekit.RoomAgentDispatch agents = 6;
|
|
83
|
+
*/
|
|
84
|
+
agents: RoomAgentDispatch[];
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Optional identity of the participant in LiveKit room
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: string participant_identity = 7;
|
|
90
|
+
*/
|
|
91
|
+
participantIdentity: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Optional name of the participant in LiveKit room
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: string participant_name = 8;
|
|
97
|
+
*/
|
|
98
|
+
participantName: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Optional user-defined metadata. Will be attached to a created Participant in the room.
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: string participant_metadata = 9;
|
|
104
|
+
*/
|
|
105
|
+
participantMetadata: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Optional user-defined attributes. Will be attached to a created Participant in the room.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: map<string, string> participant_attributes = 10;
|
|
111
|
+
*/
|
|
112
|
+
participantAttributes: { [key: string]: string };
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: string destination_country = 11;
|
|
118
|
+
*/
|
|
119
|
+
destinationCountry: string;
|
|
120
|
+
|
|
121
|
+
constructor(data?: PartialMessage<DialWhatsAppCallRequest>);
|
|
122
|
+
|
|
123
|
+
static readonly runtime: typeof proto3;
|
|
124
|
+
static readonly typeName = "livekit.DialWhatsAppCallRequest";
|
|
125
|
+
static readonly fields: FieldList;
|
|
126
|
+
|
|
127
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DialWhatsAppCallRequest;
|
|
128
|
+
|
|
129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DialWhatsAppCallRequest;
|
|
130
|
+
|
|
131
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DialWhatsAppCallRequest;
|
|
132
|
+
|
|
133
|
+
static equals(a: DialWhatsAppCallRequest | PlainMessage<DialWhatsAppCallRequest> | undefined, b: DialWhatsAppCallRequest | PlainMessage<DialWhatsAppCallRequest> | undefined): boolean;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @generated from message livekit.DialWhatsAppCallResponse
|
|
138
|
+
*/
|
|
139
|
+
export declare class DialWhatsAppCallResponse extends Message<DialWhatsAppCallResponse> {
|
|
140
|
+
/**
|
|
141
|
+
* Call ID sent by Meta
|
|
142
|
+
*
|
|
143
|
+
* @generated from field: string whatsapp_call_id = 1;
|
|
144
|
+
*/
|
|
145
|
+
whatsappCallId: string;
|
|
146
|
+
|
|
147
|
+
constructor(data?: PartialMessage<DialWhatsAppCallResponse>);
|
|
148
|
+
|
|
149
|
+
static readonly runtime: typeof proto3;
|
|
150
|
+
static readonly typeName = "livekit.DialWhatsAppCallResponse";
|
|
151
|
+
static readonly fields: FieldList;
|
|
152
|
+
|
|
153
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DialWhatsAppCallResponse;
|
|
154
|
+
|
|
155
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DialWhatsAppCallResponse;
|
|
156
|
+
|
|
157
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DialWhatsAppCallResponse;
|
|
158
|
+
|
|
159
|
+
static equals(a: DialWhatsAppCallResponse | PlainMessage<DialWhatsAppCallResponse> | undefined, b: DialWhatsAppCallResponse | PlainMessage<DialWhatsAppCallResponse> | undefined): boolean;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @generated from message livekit.DisconnectWhatsAppCallRequest
|
|
164
|
+
*/
|
|
165
|
+
export declare class DisconnectWhatsAppCallRequest extends Message<DisconnectWhatsAppCallRequest> {
|
|
166
|
+
/**
|
|
167
|
+
* Call ID sent by Meta
|
|
168
|
+
*
|
|
169
|
+
* @generated from field: string whatsapp_call_id = 1;
|
|
170
|
+
*/
|
|
171
|
+
whatsappCallId: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: string whatsapp_api_key = 2;
|
|
175
|
+
*/
|
|
176
|
+
whatsappApiKey: string;
|
|
177
|
+
|
|
178
|
+
constructor(data?: PartialMessage<DisconnectWhatsAppCallRequest>);
|
|
179
|
+
|
|
180
|
+
static readonly runtime: typeof proto3;
|
|
181
|
+
static readonly typeName = "livekit.DisconnectWhatsAppCallRequest";
|
|
182
|
+
static readonly fields: FieldList;
|
|
183
|
+
|
|
184
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectWhatsAppCallRequest;
|
|
185
|
+
|
|
186
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectWhatsAppCallRequest;
|
|
187
|
+
|
|
188
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectWhatsAppCallRequest;
|
|
189
|
+
|
|
190
|
+
static equals(a: DisconnectWhatsAppCallRequest | PlainMessage<DisconnectWhatsAppCallRequest> | undefined, b: DisconnectWhatsAppCallRequest | PlainMessage<DisconnectWhatsAppCallRequest> | undefined): boolean;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @generated from message livekit.DisconnectWhatsAppCallResponse
|
|
195
|
+
*/
|
|
196
|
+
export declare class DisconnectWhatsAppCallResponse extends Message<DisconnectWhatsAppCallResponse> {
|
|
197
|
+
constructor(data?: PartialMessage<DisconnectWhatsAppCallResponse>);
|
|
198
|
+
|
|
199
|
+
static readonly runtime: typeof proto3;
|
|
200
|
+
static readonly typeName = "livekit.DisconnectWhatsAppCallResponse";
|
|
201
|
+
static readonly fields: FieldList;
|
|
202
|
+
|
|
203
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectWhatsAppCallResponse;
|
|
204
|
+
|
|
205
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectWhatsAppCallResponse;
|
|
206
|
+
|
|
207
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectWhatsAppCallResponse;
|
|
208
|
+
|
|
209
|
+
static equals(a: DisconnectWhatsAppCallResponse | PlainMessage<DisconnectWhatsAppCallResponse> | undefined, b: DisconnectWhatsAppCallResponse | PlainMessage<DisconnectWhatsAppCallResponse> | undefined): boolean;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message livekit.ConnectWhatsAppCallRequest
|
|
214
|
+
*/
|
|
215
|
+
export declare class ConnectWhatsAppCallRequest extends Message<ConnectWhatsAppCallRequest> {
|
|
216
|
+
/**
|
|
217
|
+
* The number of the business that is conencting the call
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
220
|
+
*/
|
|
221
|
+
whatsappPhoneNumberId: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The API key of the business that is connecting the call
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: string whatsapp_api_key = 2;
|
|
227
|
+
*/
|
|
228
|
+
whatsappApiKey: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Call ID sent by Meta
|
|
232
|
+
*
|
|
233
|
+
* @generated from field: string whatsapp_call_id = 3;
|
|
234
|
+
*/
|
|
235
|
+
whatsappCallId: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The call connect webhook comes with SDP from Meta
|
|
239
|
+
* It is the answer SDP for a business initiated call
|
|
240
|
+
*
|
|
241
|
+
* @generated from field: livekit.SessionDescription sdp = 4;
|
|
242
|
+
*/
|
|
243
|
+
sdp?: SessionDescription;
|
|
244
|
+
|
|
245
|
+
constructor(data?: PartialMessage<ConnectWhatsAppCallRequest>);
|
|
246
|
+
|
|
247
|
+
static readonly runtime: typeof proto3;
|
|
248
|
+
static readonly typeName = "livekit.ConnectWhatsAppCallRequest";
|
|
249
|
+
static readonly fields: FieldList;
|
|
250
|
+
|
|
251
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectWhatsAppCallRequest;
|
|
252
|
+
|
|
253
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectWhatsAppCallRequest;
|
|
254
|
+
|
|
255
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectWhatsAppCallRequest;
|
|
256
|
+
|
|
257
|
+
static equals(a: ConnectWhatsAppCallRequest | PlainMessage<ConnectWhatsAppCallRequest> | undefined, b: ConnectWhatsAppCallRequest | PlainMessage<ConnectWhatsAppCallRequest> | undefined): boolean;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @generated from message livekit.ConnectWhatsAppCallResponse
|
|
262
|
+
*/
|
|
263
|
+
export declare class ConnectWhatsAppCallResponse extends Message<ConnectWhatsAppCallResponse> {
|
|
264
|
+
constructor(data?: PartialMessage<ConnectWhatsAppCallResponse>);
|
|
265
|
+
|
|
266
|
+
static readonly runtime: typeof proto3;
|
|
267
|
+
static readonly typeName = "livekit.ConnectWhatsAppCallResponse";
|
|
268
|
+
static readonly fields: FieldList;
|
|
269
|
+
|
|
270
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectWhatsAppCallResponse;
|
|
271
|
+
|
|
272
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectWhatsAppCallResponse;
|
|
273
|
+
|
|
274
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectWhatsAppCallResponse;
|
|
275
|
+
|
|
276
|
+
static equals(a: ConnectWhatsAppCallResponse | PlainMessage<ConnectWhatsAppCallResponse> | undefined, b: ConnectWhatsAppCallResponse | PlainMessage<ConnectWhatsAppCallResponse> | undefined): boolean;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @generated from message livekit.AcceptWhatsAppCallRequest
|
|
281
|
+
*/
|
|
282
|
+
export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCallRequest> {
|
|
283
|
+
/**
|
|
284
|
+
* The number of the business that is conencting the call
|
|
285
|
+
*
|
|
286
|
+
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
287
|
+
*/
|
|
288
|
+
whatsappPhoneNumberId: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The API key of the business that is connecting the call
|
|
292
|
+
*
|
|
293
|
+
* @generated from field: string whatsapp_api_key = 2;
|
|
294
|
+
*/
|
|
295
|
+
whatsappApiKey: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Call ID sent by Meta
|
|
299
|
+
*
|
|
300
|
+
* @generated from field: string whatsapp_call_id = 3;
|
|
301
|
+
*/
|
|
302
|
+
whatsappCallId: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* An arbitrary string you can pass in that is useful for tracking and logging purposes.
|
|
306
|
+
*
|
|
307
|
+
* @generated from field: string whatsapp_biz_opaque_callback_data = 4;
|
|
308
|
+
*/
|
|
309
|
+
whatsappBizOpaqueCallbackData: string;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The call accept webhook comes with SDP from Meta
|
|
313
|
+
* It is the for a user initiated call
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: livekit.SessionDescription sdp = 5;
|
|
316
|
+
*/
|
|
317
|
+
sdp?: SessionDescription;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* What LiveKit room should this participant be connected too
|
|
321
|
+
*
|
|
322
|
+
* @generated from field: string room_name = 6;
|
|
323
|
+
*/
|
|
324
|
+
roomName: string;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Optional agents to dispatch the call to
|
|
328
|
+
*
|
|
329
|
+
* @generated from field: repeated livekit.RoomAgentDispatch agents = 7;
|
|
330
|
+
*/
|
|
331
|
+
agents: RoomAgentDispatch[];
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Optional identity of the participant in LiveKit room
|
|
335
|
+
*
|
|
336
|
+
* @generated from field: string participant_identity = 8;
|
|
337
|
+
*/
|
|
338
|
+
participantIdentity: string;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Optional name of the participant in LiveKit room
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: string participant_name = 9;
|
|
344
|
+
*/
|
|
345
|
+
participantName: string;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Optional user-defined metadata. Will be attached to a created Participant in the room.
|
|
349
|
+
*
|
|
350
|
+
* @generated from field: string participant_metadata = 10;
|
|
351
|
+
*/
|
|
352
|
+
participantMetadata: string;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Optional user-defined attributes. Will be attached to a created Participant in the room.
|
|
356
|
+
*
|
|
357
|
+
* @generated from field: map<string, string> participant_attributes = 11;
|
|
358
|
+
*/
|
|
359
|
+
participantAttributes: { [key: string]: string };
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
|
|
363
|
+
*
|
|
364
|
+
* @generated from field: string destination_country = 12;
|
|
365
|
+
*/
|
|
366
|
+
destinationCountry: string;
|
|
367
|
+
|
|
368
|
+
constructor(data?: PartialMessage<AcceptWhatsAppCallRequest>);
|
|
369
|
+
|
|
370
|
+
static readonly runtime: typeof proto3;
|
|
371
|
+
static readonly typeName = "livekit.AcceptWhatsAppCallRequest";
|
|
372
|
+
static readonly fields: FieldList;
|
|
373
|
+
|
|
374
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptWhatsAppCallRequest;
|
|
375
|
+
|
|
376
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptWhatsAppCallRequest;
|
|
377
|
+
|
|
378
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptWhatsAppCallRequest;
|
|
379
|
+
|
|
380
|
+
static equals(a: AcceptWhatsAppCallRequest | PlainMessage<AcceptWhatsAppCallRequest> | undefined, b: AcceptWhatsAppCallRequest | PlainMessage<AcceptWhatsAppCallRequest> | undefined): boolean;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @generated from message livekit.AcceptWhatsAppCallResponse
|
|
385
|
+
*/
|
|
386
|
+
export declare class AcceptWhatsAppCallResponse extends Message<AcceptWhatsAppCallResponse> {
|
|
387
|
+
constructor(data?: PartialMessage<AcceptWhatsAppCallResponse>);
|
|
388
|
+
|
|
389
|
+
static readonly runtime: typeof proto3;
|
|
390
|
+
static readonly typeName = "livekit.AcceptWhatsAppCallResponse";
|
|
391
|
+
static readonly fields: FieldList;
|
|
392
|
+
|
|
393
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptWhatsAppCallResponse;
|
|
394
|
+
|
|
395
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptWhatsAppCallResponse;
|
|
396
|
+
|
|
397
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptWhatsAppCallResponse;
|
|
398
|
+
|
|
399
|
+
static equals(a: AcceptWhatsAppCallResponse | PlainMessage<AcceptWhatsAppCallResponse> | undefined, b: AcceptWhatsAppCallResponse | PlainMessage<AcceptWhatsAppCallResponse> | undefined): boolean;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @generated from message livekit.WhatsAppCall
|
|
404
|
+
*/
|
|
405
|
+
export declare class WhatsAppCall extends Message<WhatsAppCall> {
|
|
406
|
+
/**
|
|
407
|
+
* list of call ids that are currently active
|
|
408
|
+
*
|
|
409
|
+
* @generated from field: string whatsapp_call_id = 1;
|
|
410
|
+
*/
|
|
411
|
+
whatsappCallId: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Direction of the call
|
|
415
|
+
*
|
|
416
|
+
* @generated from field: livekit.WhatsAppCallDirection direction = 2;
|
|
417
|
+
*/
|
|
418
|
+
direction: WhatsAppCallDirection;
|
|
419
|
+
|
|
420
|
+
constructor(data?: PartialMessage<WhatsAppCall>);
|
|
421
|
+
|
|
422
|
+
static readonly runtime: typeof proto3;
|
|
423
|
+
static readonly typeName = "livekit.WhatsAppCall";
|
|
424
|
+
static readonly fields: FieldList;
|
|
425
|
+
|
|
426
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WhatsAppCall;
|
|
427
|
+
|
|
428
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WhatsAppCall;
|
|
429
|
+
|
|
430
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WhatsAppCall;
|
|
431
|
+
|
|
432
|
+
static equals(a: WhatsAppCall | PlainMessage<WhatsAppCall> | undefined, b: WhatsAppCall | PlainMessage<WhatsAppCall> | undefined): boolean;
|
|
433
|
+
}
|
|
434
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// Copyright 2025 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 livekit_connector_whatsapp.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
22
|
+
import { SessionDescription } from "./livekit_rtc_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum livekit.WhatsAppCallDirection
|
|
26
|
+
*/
|
|
27
|
+
export const WhatsAppCallDirection = /*@__PURE__*/ proto3.makeEnum(
|
|
28
|
+
"livekit.WhatsAppCallDirection",
|
|
29
|
+
[
|
|
30
|
+
{no: 0, name: "WHATSAPP_CALL_DIRECTION_INBOUND"},
|
|
31
|
+
{no: 2, name: "WHATSAPP_CALL_DIRECTION_OUTBOUND"},
|
|
32
|
+
],
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message livekit.DialWhatsAppCallRequest
|
|
37
|
+
*/
|
|
38
|
+
export const DialWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
39
|
+
"livekit.DialWhatsAppCallRequest",
|
|
40
|
+
() => [
|
|
41
|
+
{ no: 1, name: "whatsapp_phone_number_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
42
|
+
{ no: 2, name: "whatsapp_to_phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
43
|
+
{ no: 3, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
44
|
+
{ no: 4, name: "whatsapp_biz_opaque_callback_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
|
+
{ no: 5, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
46
|
+
{ no: 6, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
|
|
47
|
+
{ no: 7, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
48
|
+
{ no: 8, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
49
|
+
{ no: 9, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
50
|
+
{ no: 10, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
51
|
+
{ no: 11, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
52
|
+
],
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from message livekit.DialWhatsAppCallResponse
|
|
57
|
+
*/
|
|
58
|
+
export const DialWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
59
|
+
"livekit.DialWhatsAppCallResponse",
|
|
60
|
+
() => [
|
|
61
|
+
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
62
|
+
],
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message livekit.DisconnectWhatsAppCallRequest
|
|
67
|
+
*/
|
|
68
|
+
export const DisconnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
69
|
+
"livekit.DisconnectWhatsAppCallRequest",
|
|
70
|
+
() => [
|
|
71
|
+
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
{ no: 2, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
+
],
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @generated from message livekit.DisconnectWhatsAppCallResponse
|
|
78
|
+
*/
|
|
79
|
+
export const DisconnectWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
80
|
+
"livekit.DisconnectWhatsAppCallResponse",
|
|
81
|
+
[],
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message livekit.ConnectWhatsAppCallRequest
|
|
86
|
+
*/
|
|
87
|
+
export const ConnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
88
|
+
"livekit.ConnectWhatsAppCallRequest",
|
|
89
|
+
() => [
|
|
90
|
+
{ no: 1, name: "whatsapp_phone_number_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
91
|
+
{ no: 2, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
92
|
+
{ no: 3, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
|
+
{ no: 4, name: "sdp", kind: "message", T: SessionDescription },
|
|
94
|
+
],
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @generated from message livekit.ConnectWhatsAppCallResponse
|
|
99
|
+
*/
|
|
100
|
+
export const ConnectWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
101
|
+
"livekit.ConnectWhatsAppCallResponse",
|
|
102
|
+
[],
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @generated from message livekit.AcceptWhatsAppCallRequest
|
|
107
|
+
*/
|
|
108
|
+
export const AcceptWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
109
|
+
"livekit.AcceptWhatsAppCallRequest",
|
|
110
|
+
() => [
|
|
111
|
+
{ no: 1, name: "whatsapp_phone_number_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
112
|
+
{ no: 2, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
113
|
+
{ no: 3, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
114
|
+
{ no: 4, name: "whatsapp_biz_opaque_callback_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
115
|
+
{ no: 5, name: "sdp", kind: "message", T: SessionDescription },
|
|
116
|
+
{ no: 6, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
117
|
+
{ no: 7, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
|
|
118
|
+
{ no: 8, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
119
|
+
{ no: 9, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
120
|
+
{ no: 10, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
121
|
+
{ no: 11, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
122
|
+
{ no: 12, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
123
|
+
],
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @generated from message livekit.AcceptWhatsAppCallResponse
|
|
128
|
+
*/
|
|
129
|
+
export const AcceptWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
130
|
+
"livekit.AcceptWhatsAppCallResponse",
|
|
131
|
+
[],
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message livekit.WhatsAppCall
|
|
136
|
+
*/
|
|
137
|
+
export const WhatsAppCall = /*@__PURE__*/ proto3.makeMessageType(
|
|
138
|
+
"livekit.WhatsAppCall",
|
|
139
|
+
() => [
|
|
140
|
+
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
141
|
+
{ no: 2, name: "direction", kind: "enum", T: proto3.getEnumType(WhatsAppCallDirection) },
|
|
142
|
+
],
|
|
143
|
+
);
|
|
144
|
+
|
|
@@ -41,6 +41,11 @@ export declare enum EncodedFileType {
|
|
|
41
41
|
* @generated from enum value: OGG = 2;
|
|
42
42
|
*/
|
|
43
43
|
OGG = 2,
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: MP3 = 3;
|
|
47
|
+
*/
|
|
48
|
+
MP3 = 3,
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
/**
|
|
@@ -1130,6 +1135,20 @@ export declare class S3Upload extends Message<S3Upload> {
|
|
|
1130
1135
|
*/
|
|
1131
1136
|
sessionToken: string;
|
|
1132
1137
|
|
|
1138
|
+
/**
|
|
1139
|
+
* ARN of the role to assume for file upload. Egress will make an AssumeRole API call using the provided access_key and secret to assume that role. On LiveKit cloud, this is only available on accounts that have the feature enabled
|
|
1140
|
+
*
|
|
1141
|
+
* @generated from field: string assume_role_arn = 12;
|
|
1142
|
+
*/
|
|
1143
|
+
assumeRoleArn: string;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* ExternalID to use when assuming role for upload
|
|
1147
|
+
*
|
|
1148
|
+
* @generated from field: string assume_role_external_id = 13;
|
|
1149
|
+
*/
|
|
1150
|
+
assumeRoleExternalId: string;
|
|
1151
|
+
|
|
1133
1152
|
/**
|
|
1134
1153
|
* @generated from field: string region = 3;
|
|
1135
1154
|
*/
|
|
@@ -29,6 +29,7 @@ export const EncodedFileType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
29
29
|
{no: 0, name: "DEFAULT_FILETYPE"},
|
|
30
30
|
{no: 1, name: "MP4"},
|
|
31
31
|
{no: 2, name: "OGG"},
|
|
32
|
+
{no: 3, name: "MP3"},
|
|
32
33
|
],
|
|
33
34
|
);
|
|
34
35
|
|
|
@@ -329,6 +330,8 @@ export const S3Upload = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
329
330
|
{ no: 1, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
330
331
|
{ no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
331
332
|
{ no: 11, name: "session_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
333
|
+
{ no: 12, name: "assume_role_arn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
334
|
+
{ no: 13, name: "assume_role_external_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
332
335
|
{ no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
333
336
|
{ no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
334
337
|
{ no: 5, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -21,6 +21,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
|
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
22
|
import type { ClientInfo, PlayoutDelay, ReconnectReason } from "./livekit_models_pb.js";
|
|
23
23
|
import type { CreateRoomRequest } from "./livekit_room_pb.js";
|
|
24
|
+
import type { AddTrackRequest, SessionDescription, SyncState } from "./livekit_rtc_pb.js";
|
|
24
25
|
import type { AutoParticipantEgress, AutoTrackEgress } from "./livekit_egress_pb.js";
|
|
25
26
|
import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
26
27
|
|
|
@@ -62,6 +63,11 @@ export declare enum NodeType {
|
|
|
62
63
|
* @generated from enum value: HOSTED_AGENT = 7;
|
|
63
64
|
*/
|
|
64
65
|
HOSTED_AGENT = 7,
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: SETTINGS = 8;
|
|
69
|
+
*/
|
|
70
|
+
SETTINGS = 8,
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
/**
|
|
@@ -631,7 +637,8 @@ export declare class StartSession extends Message<StartSession> {
|
|
|
631
637
|
autoSubscribe: boolean;
|
|
632
638
|
|
|
633
639
|
/**
|
|
634
|
-
* @generated from field: bool hidden = 10;
|
|
640
|
+
* @generated from field: bool hidden = 10 [deprecated = true];
|
|
641
|
+
* @deprecated
|
|
635
642
|
*/
|
|
636
643
|
hidden: boolean;
|
|
637
644
|
|
|
@@ -641,7 +648,8 @@ export declare class StartSession extends Message<StartSession> {
|
|
|
641
648
|
client?: ClientInfo;
|
|
642
649
|
|
|
643
650
|
/**
|
|
644
|
-
* @generated from field: bool recorder = 12;
|
|
651
|
+
* @generated from field: bool recorder = 12 [deprecated = true];
|
|
652
|
+
* @deprecated
|
|
645
653
|
*/
|
|
646
654
|
recorder: boolean;
|
|
647
655
|
|
|
@@ -689,6 +697,26 @@ export declare class StartSession extends Message<StartSession> {
|
|
|
689
697
|
*/
|
|
690
698
|
createRoom?: CreateRoomRequest;
|
|
691
699
|
|
|
700
|
+
/**
|
|
701
|
+
* @generated from field: repeated livekit.AddTrackRequest add_track_requests = 21;
|
|
702
|
+
*/
|
|
703
|
+
addTrackRequests: AddTrackRequest[];
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* @generated from field: livekit.SessionDescription publisher_offer = 22;
|
|
707
|
+
*/
|
|
708
|
+
publisherOffer?: SessionDescription;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* @generated from field: livekit.SyncState sync_state = 23;
|
|
712
|
+
*/
|
|
713
|
+
syncState?: SyncState;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @generated from field: bool use_single_peer_connection = 24;
|
|
717
|
+
*/
|
|
718
|
+
useSinglePeerConnection: boolean;
|
|
719
|
+
|
|
692
720
|
constructor(data?: PartialMessage<StartSession>);
|
|
693
721
|
|
|
694
722
|
static readonly runtime: typeof proto3;
|