@livekit/protocol 1.42.0 → 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 +59 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +120 -6
- package/dist/index.d.mts +120 -6
- package/dist/index.d.ts +120 -6
- package/dist/index.mjs +57 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_agent_pb.d.ts +5 -0
- package/src/gen/livekit_agent_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +54 -0
- package/src/gen/livekit_cloud_agent_pb.js +16 -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_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -0
- package/src/gen/livekit_models_pb.d.ts +46 -5
- package/src/gen/livekit_models_pb.js +13 -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 +63 -0
- package/src/gen/livekit_sip_pb.js +25 -0
- package/src/gen/version.js +1 -1
|
@@ -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
|
+
|
|
@@ -966,6 +966,15 @@ export declare enum ParticipantInfo_Kind {
|
|
|
966
966
|
* @generated from enum value: AGENT = 4;
|
|
967
967
|
*/
|
|
968
968
|
AGENT = 4,
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Connectors participants
|
|
972
|
+
*
|
|
973
|
+
* NEXT_ID: 8
|
|
974
|
+
*
|
|
975
|
+
* @generated from enum value: CONNECTOR = 7;
|
|
976
|
+
*/
|
|
977
|
+
CONNECTOR = 7,
|
|
969
978
|
}
|
|
970
979
|
|
|
971
980
|
/**
|
|
@@ -1104,16 +1113,14 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1104
1113
|
* original width of video (unset for audio)
|
|
1105
1114
|
* clients may receive a lower resolution version with simulcast
|
|
1106
1115
|
*
|
|
1107
|
-
* @generated from field: uint32 width = 5
|
|
1108
|
-
* @deprecated
|
|
1116
|
+
* @generated from field: uint32 width = 5;
|
|
1109
1117
|
*/
|
|
1110
1118
|
width: number;
|
|
1111
1119
|
|
|
1112
1120
|
/**
|
|
1113
1121
|
* original height of video (unset for audio)
|
|
1114
1122
|
*
|
|
1115
|
-
* @generated from field: uint32 height = 6
|
|
1116
|
-
* @deprecated
|
|
1123
|
+
* @generated from field: uint32 height = 6;
|
|
1117
1124
|
*/
|
|
1118
1125
|
height: number;
|
|
1119
1126
|
|
|
@@ -1483,7 +1490,7 @@ export declare class EncryptedPacket extends Message<EncryptedPacket> {
|
|
|
1483
1490
|
keyIndex: number;
|
|
1484
1491
|
|
|
1485
1492
|
/**
|
|
1486
|
-
* This is an encrypted EncryptedPacketPayload message representation
|
|
1493
|
+
* This is an encrypted EncryptedPacketPayload message representation
|
|
1487
1494
|
*
|
|
1488
1495
|
* @generated from field: bytes encrypted_value = 4;
|
|
1489
1496
|
*/
|
|
@@ -3278,6 +3285,35 @@ export declare class DataStream_Trailer extends Message<DataStream_Trailer> {
|
|
|
3278
3285
|
static equals(a: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined, b: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined): boolean;
|
|
3279
3286
|
}
|
|
3280
3287
|
|
|
3288
|
+
/**
|
|
3289
|
+
* @generated from message livekit.FilterParams
|
|
3290
|
+
*/
|
|
3291
|
+
export declare class FilterParams extends Message<FilterParams> {
|
|
3292
|
+
/**
|
|
3293
|
+
* @generated from field: repeated string include_events = 1;
|
|
3294
|
+
*/
|
|
3295
|
+
includeEvents: string[];
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* @generated from field: repeated string exclude_events = 2;
|
|
3299
|
+
*/
|
|
3300
|
+
excludeEvents: string[];
|
|
3301
|
+
|
|
3302
|
+
constructor(data?: PartialMessage<FilterParams>);
|
|
3303
|
+
|
|
3304
|
+
static readonly runtime: typeof proto3;
|
|
3305
|
+
static readonly typeName = "livekit.FilterParams";
|
|
3306
|
+
static readonly fields: FieldList;
|
|
3307
|
+
|
|
3308
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FilterParams;
|
|
3309
|
+
|
|
3310
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FilterParams;
|
|
3311
|
+
|
|
3312
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FilterParams;
|
|
3313
|
+
|
|
3314
|
+
static equals(a: FilterParams | PlainMessage<FilterParams> | undefined, b: FilterParams | PlainMessage<FilterParams> | undefined): boolean;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3281
3317
|
/**
|
|
3282
3318
|
* @generated from message livekit.WebhookConfig
|
|
3283
3319
|
*/
|
|
@@ -3292,6 +3328,11 @@ export declare class WebhookConfig extends Message<WebhookConfig> {
|
|
|
3292
3328
|
*/
|
|
3293
3329
|
signingKey: string;
|
|
3294
3330
|
|
|
3331
|
+
/**
|
|
3332
|
+
* @generated from field: livekit.FilterParams filter_params = 3;
|
|
3333
|
+
*/
|
|
3334
|
+
filterParams?: FilterParams;
|
|
3335
|
+
|
|
3295
3336
|
constructor(data?: PartialMessage<WebhookConfig>);
|
|
3296
3337
|
|
|
3297
3338
|
static readonly runtime: typeof proto3;
|