@livekit/protocol 1.41.0 → 1.42.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 +234 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +522 -12
- package/dist/index.d.mts +522 -12
- package/dist/index.d.ts +522 -12
- package/dist/index.mjs +225 -14
- 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_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +89 -0
- package/src/gen/livekit_cloud_agent_pb.js +31 -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 +5 -0
- package/src/gen/livekit_egress_pb.js +1 -0
- package/src/gen/livekit_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -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 +87 -7
- package/src/gen/livekit_models_pb.js +27 -1
- package/src/gen/livekit_phone_number_pb.d.ts +283 -226
- package/src/gen/livekit_phone_number_pb.js +104 -80
- package/src/gen/livekit_room_pb.d.ts +68 -0
- package/src/gen/livekit_room_pb.js +24 -0
- package/src/gen/livekit_rtc_pb.d.ts +131 -1
- package/src/gen/livekit_rtc_pb.js +34 -1
- package/src/gen/livekit_sip_pb.d.ts +88 -3
- package/src/gen/livekit_sip_pb.js +29 -1
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -131,6 +131,11 @@ export declare class Job extends Message<Job> {
|
|
|
131
131
|
*/
|
|
132
132
|
state?: JobState;
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: bool enable_recording = 10;
|
|
136
|
+
*/
|
|
137
|
+
enableRecording: boolean;
|
|
138
|
+
|
|
134
139
|
constructor(data?: PartialMessage<Job>);
|
|
135
140
|
|
|
136
141
|
static readonly runtime: typeof proto3;
|
|
@@ -71,6 +71,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
71
71
|
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
72
|
{ no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
73
|
{ no: 8, name: "state", kind: "message", T: JobState },
|
|
74
|
+
{ no: 10, name: "enable_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
74
75
|
],
|
|
75
76
|
);
|
|
76
77
|
|
|
@@ -249,6 +249,11 @@ export declare enum AnalyticsEventType {
|
|
|
249
249
|
*/
|
|
250
250
|
SIP_TRANSFER_COMPLETE = 44,
|
|
251
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @generated from enum value: SIP_CALL_UPDATE = 46;
|
|
254
|
+
*/
|
|
255
|
+
SIP_CALL_UPDATE = 46,
|
|
256
|
+
|
|
252
257
|
/**
|
|
253
258
|
* @generated from enum value: REPORT = 40;
|
|
254
259
|
*/
|
|
@@ -82,6 +82,7 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
82
82
|
{no: 39, name: "SIP_CALL_ENDED"},
|
|
83
83
|
{no: 43, name: "SIP_TRANSFER_REQUESTED"},
|
|
84
84
|
{no: 44, name: "SIP_TRANSFER_COMPLETE"},
|
|
85
|
+
{no: 46, name: "SIP_CALL_UPDATE"},
|
|
85
86
|
{no: 40, name: "REPORT"},
|
|
86
87
|
{no: 41, name: "API_CALL"},
|
|
87
88
|
{no: 42, name: "WEBHOOK"},
|
|
@@ -20,6 +20,26 @@
|
|
|
20
20
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum livekit.AgentSecretKind
|
|
25
|
+
*/
|
|
26
|
+
export declare enum AgentSecretKind {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: AGENT_SECRET_KIND_UNKNOWN = 0;
|
|
29
|
+
*/
|
|
30
|
+
UNKNOWN = 0,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: AGENT_SECRET_KIND_ENVIRONMENT = 1;
|
|
34
|
+
*/
|
|
35
|
+
ENVIRONMENT = 1,
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: AGENT_SECRET_KIND_FILE = 2;
|
|
39
|
+
*/
|
|
40
|
+
FILE = 2,
|
|
41
|
+
}
|
|
42
|
+
|
|
23
43
|
/**
|
|
24
44
|
* @generated from message livekit.AgentSecret
|
|
25
45
|
*/
|
|
@@ -44,6 +64,11 @@ export declare class AgentSecret extends Message<AgentSecret> {
|
|
|
44
64
|
*/
|
|
45
65
|
updatedAt?: Timestamp;
|
|
46
66
|
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: livekit.AgentSecretKind kind = 5;
|
|
69
|
+
*/
|
|
70
|
+
kind: AgentSecretKind;
|
|
71
|
+
|
|
47
72
|
constructor(data?: PartialMessage<AgentSecret>);
|
|
48
73
|
|
|
49
74
|
static readonly runtime: typeof proto3;
|
|
@@ -141,6 +166,21 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
|
|
|
141
166
|
*/
|
|
142
167
|
presignedUrl: string;
|
|
143
168
|
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string tag = 6;
|
|
171
|
+
*/
|
|
172
|
+
tag: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: repeated string server_regions = 7;
|
|
176
|
+
*/
|
|
177
|
+
serverRegions: string[];
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: livekit.PresignedPostRequest presigned_post_request = 8;
|
|
181
|
+
*/
|
|
182
|
+
presignedPostRequest?: PresignedPostRequest;
|
|
183
|
+
|
|
144
184
|
constructor(data?: PartialMessage<CreateAgentResponse>);
|
|
145
185
|
|
|
146
186
|
static readonly runtime: typeof proto3;
|
|
@@ -156,6 +196,35 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
|
|
|
156
196
|
static equals(a: CreateAgentResponse | PlainMessage<CreateAgentResponse> | undefined, b: CreateAgentResponse | PlainMessage<CreateAgentResponse> | undefined): boolean;
|
|
157
197
|
}
|
|
158
198
|
|
|
199
|
+
/**
|
|
200
|
+
* @generated from message livekit.PresignedPostRequest
|
|
201
|
+
*/
|
|
202
|
+
export declare class PresignedPostRequest extends Message<PresignedPostRequest> {
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: string url = 1;
|
|
205
|
+
*/
|
|
206
|
+
url: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: map<string, string> values = 2;
|
|
210
|
+
*/
|
|
211
|
+
values: { [key: string]: string };
|
|
212
|
+
|
|
213
|
+
constructor(data?: PartialMessage<PresignedPostRequest>);
|
|
214
|
+
|
|
215
|
+
static readonly runtime: typeof proto3;
|
|
216
|
+
static readonly typeName = "livekit.PresignedPostRequest";
|
|
217
|
+
static readonly fields: FieldList;
|
|
218
|
+
|
|
219
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PresignedPostRequest;
|
|
220
|
+
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PresignedPostRequest;
|
|
222
|
+
|
|
223
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PresignedPostRequest;
|
|
224
|
+
|
|
225
|
+
static equals(a: PresignedPostRequest | PlainMessage<PresignedPostRequest> | undefined, b: PresignedPostRequest | PlainMessage<PresignedPostRequest> | undefined): boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
159
228
|
/**
|
|
160
229
|
* @generated from message livekit.AgentDeployment
|
|
161
230
|
*/
|
|
@@ -220,6 +289,11 @@ export declare class AgentDeployment extends Message<AgentDeployment> {
|
|
|
220
289
|
*/
|
|
221
290
|
cpuLimit: string;
|
|
222
291
|
|
|
292
|
+
/**
|
|
293
|
+
* @generated from field: string server_region = 13;
|
|
294
|
+
*/
|
|
295
|
+
serverRegion: string;
|
|
296
|
+
|
|
223
297
|
constructor(data?: PartialMessage<AgentDeployment>);
|
|
224
298
|
|
|
225
299
|
static readonly runtime: typeof proto3;
|
|
@@ -366,6 +440,11 @@ export declare class AgentVersion extends Message<AgentVersion> {
|
|
|
366
440
|
*/
|
|
367
441
|
attributes: { [key: string]: string };
|
|
368
442
|
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: string status = 6;
|
|
445
|
+
*/
|
|
446
|
+
status: string;
|
|
447
|
+
|
|
369
448
|
constructor(data?: PartialMessage<AgentVersion>);
|
|
370
449
|
|
|
371
450
|
static readonly runtime: typeof proto3;
|
|
@@ -651,6 +730,16 @@ export declare class DeployAgentResponse extends Message<DeployAgentResponse> {
|
|
|
651
730
|
*/
|
|
652
731
|
presignedUrl: string;
|
|
653
732
|
|
|
733
|
+
/**
|
|
734
|
+
* @generated from field: string tag = 5;
|
|
735
|
+
*/
|
|
736
|
+
tag: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* @generated from field: livekit.PresignedPostRequest presigned_post_request = 6;
|
|
740
|
+
*/
|
|
741
|
+
presignedPostRequest?: PresignedPostRequest;
|
|
742
|
+
|
|
654
743
|
constructor(data?: PartialMessage<DeployAgentResponse>);
|
|
655
744
|
|
|
656
745
|
static readonly runtime: typeof proto3;
|
|
@@ -19,6 +19,18 @@
|
|
|
19
19
|
|
|
20
20
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum livekit.AgentSecretKind
|
|
24
|
+
*/
|
|
25
|
+
export const AgentSecretKind = /*@__PURE__*/ proto3.makeEnum(
|
|
26
|
+
"livekit.AgentSecretKind",
|
|
27
|
+
[
|
|
28
|
+
{no: 0, name: "AGENT_SECRET_KIND_UNKNOWN", localName: "UNKNOWN"},
|
|
29
|
+
{no: 1, name: "AGENT_SECRET_KIND_ENVIRONMENT", localName: "ENVIRONMENT"},
|
|
30
|
+
{no: 2, name: "AGENT_SECRET_KIND_FILE", localName: "FILE"},
|
|
31
|
+
],
|
|
32
|
+
);
|
|
33
|
+
|
|
22
34
|
/**
|
|
23
35
|
* @generated from message livekit.AgentSecret
|
|
24
36
|
*/
|
|
@@ -29,6 +41,7 @@ export const AgentSecret = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
29
41
|
{ no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
30
42
|
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
|
|
31
43
|
{ no: 4, name: "updated_at", kind: "message", T: Timestamp },
|
|
44
|
+
{ no: 5, name: "kind", kind: "enum", T: proto3.getEnumType(AgentSecretKind) },
|
|
32
45
|
],
|
|
33
46
|
);
|
|
34
47
|
|
|
@@ -58,6 +71,20 @@ export const CreateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
58
71
|
{ no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
72
|
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
73
|
{ no: 5, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 6, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 7, name: "server_regions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
76
|
+
{ no: 8, name: "presigned_post_request", kind: "message", T: PresignedPostRequest },
|
|
77
|
+
],
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message livekit.PresignedPostRequest
|
|
82
|
+
*/
|
|
83
|
+
export const PresignedPostRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
84
|
+
"livekit.PresignedPostRequest",
|
|
85
|
+
() => [
|
|
86
|
+
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
87
|
+
{ no: 2, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
61
88
|
],
|
|
62
89
|
);
|
|
63
90
|
|
|
@@ -79,6 +106,7 @@ export const AgentDeployment = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
79
106
|
{ no: 10, name: "mem_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
80
107
|
{ no: 11, name: "mem_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
81
108
|
{ no: 12, name: "cpu_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
|
+
{ no: 13, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
82
110
|
],
|
|
83
111
|
);
|
|
84
112
|
|
|
@@ -129,6 +157,7 @@ export const AgentVersion = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
129
157
|
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
|
|
130
158
|
{ no: 4, name: "deployed_at", kind: "message", T: Timestamp },
|
|
131
159
|
{ no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
160
|
+
{ no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
161
|
],
|
|
133
162
|
);
|
|
134
163
|
|
|
@@ -226,6 +255,8 @@ export const DeployAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
226
255
|
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
227
256
|
{ no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
228
257
|
{ no: 4, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
258
|
+
{ no: 5, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
259
|
+
{ no: 6, name: "presigned_post_request", kind: "message", T: PresignedPostRequest },
|
|
229
260
|
],
|
|
230
261
|
);
|
|
231
262
|
|
|
@@ -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
|
+
|