@livekit/protocol 1.42.1 → 1.43.0
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 +49 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -42
- package/dist/index.d.mts +61 -42
- package/dist/index.d.ts +61 -42
- package/dist/index.mjs +49 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_cloud_agent_pb.d.ts +5 -0
- package/src/gen/livekit_cloud_agent_pb.js +1 -0
- package/src/gen/livekit_connector_pb.d.ts +39 -0
- package/src/gen/livekit_connector_pb.js +33 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +143 -0
- package/src/gen/livekit_connector_twilio_pb.js +60 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +62 -42
- package/src/gen/livekit_connector_whatsapp_pb.js +8 -5
- package/src/gen/livekit_metrics_pb.d.ts +9 -2
- package/src/gen/livekit_metrics_pb.js +2 -1
- package/src/gen/livekit_phone_number_pb.d.ts +40 -40
- package/src/gen/livekit_phone_number_pb.js +13 -13
- package/src/gen/livekit_rtc_pb.d.ts +5 -37
- package/src/gen/livekit_rtc_pb.js +1 -12
- package/src/gen/livekit_sip_pb.d.ts +46 -2
- package/src/gen/livekit_sip_pb.js +14 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -445,6 +445,11 @@ export declare class AgentVersion extends Message<AgentVersion> {
|
|
|
445
445
|
*/
|
|
446
446
|
status: string;
|
|
447
447
|
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: string owner = 7;
|
|
450
|
+
*/
|
|
451
|
+
owner: string;
|
|
452
|
+
|
|
448
453
|
constructor(data?: PartialMessage<AgentVersion>);
|
|
449
454
|
|
|
450
455
|
static readonly runtime: typeof proto3;
|
|
@@ -158,6 +158,7 @@ export const AgentVersion = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
158
158
|
{ no: 4, name: "deployed_at", kind: "message", T: Timestamp },
|
|
159
159
|
{ no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
160
160
|
{ no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
161
|
+
{ no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
161
162
|
],
|
|
162
163
|
);
|
|
163
164
|
|
|
@@ -0,0 +1,39 @@
|
|
|
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.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum livekit.ConnectorType
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ConnectorType {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: Unspecified = 0;
|
|
26
|
+
*/
|
|
27
|
+
Unspecified = 0,
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: WhatsApp = 1;
|
|
31
|
+
*/
|
|
32
|
+
WhatsApp = 1,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: Twilio = 2;
|
|
36
|
+
*/
|
|
37
|
+
Twilio = 2,
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
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.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum livekit.ConnectorType
|
|
24
|
+
*/
|
|
25
|
+
export const ConnectorType = /*@__PURE__*/ proto3.makeEnum(
|
|
26
|
+
"livekit.ConnectorType",
|
|
27
|
+
[
|
|
28
|
+
{no: 0, name: "Unspecified"},
|
|
29
|
+
{no: 1, name: "WhatsApp"},
|
|
30
|
+
{no: 2, name: "Twilio"},
|
|
31
|
+
],
|
|
32
|
+
);
|
|
33
|
+
|
|
@@ -0,0 +1,143 @@
|
|
|
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_twilio.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
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from message livekit.ConnectTwilioCallRequest
|
|
26
|
+
*/
|
|
27
|
+
export declare class ConnectTwilioCallRequest extends Message<ConnectTwilioCallRequest> {
|
|
28
|
+
/**
|
|
29
|
+
* The Direction of the call
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: livekit.ConnectTwilioCallRequest.TwilioCallDirection twilio_call_direction = 1;
|
|
32
|
+
*/
|
|
33
|
+
twilioCallDirection: ConnectTwilioCallRequest_TwilioCallDirection;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* What LiveKit room should this call be connected to
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: string room_name = 2;
|
|
39
|
+
*/
|
|
40
|
+
roomName: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Optional agents to dispatch the call to
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: repeated livekit.RoomAgentDispatch agents = 3;
|
|
46
|
+
*/
|
|
47
|
+
agents: RoomAgentDispatch[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Optional identity of the participant in LiveKit room
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string participant_identity = 4;
|
|
53
|
+
*/
|
|
54
|
+
participantIdentity: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Optional name of the participant in LiveKit room
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string participant_name = 5;
|
|
60
|
+
*/
|
|
61
|
+
participantName: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Optional user-defined metadata. Will be attached to a created Participant in the room.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string participant_metadata = 6;
|
|
67
|
+
*/
|
|
68
|
+
participantMetadata: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Optional user-defined attributes. Will be attached to a created Participant in the room.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: map<string, string> participant_attributes = 7;
|
|
74
|
+
*/
|
|
75
|
+
participantAttributes: { [key: string]: string };
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 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.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: string destination_country = 8;
|
|
81
|
+
*/
|
|
82
|
+
destinationCountry: string;
|
|
83
|
+
|
|
84
|
+
constructor(data?: PartialMessage<ConnectTwilioCallRequest>);
|
|
85
|
+
|
|
86
|
+
static readonly runtime: typeof proto3;
|
|
87
|
+
static readonly typeName = "livekit.ConnectTwilioCallRequest";
|
|
88
|
+
static readonly fields: FieldList;
|
|
89
|
+
|
|
90
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectTwilioCallRequest;
|
|
91
|
+
|
|
92
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectTwilioCallRequest;
|
|
93
|
+
|
|
94
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectTwilioCallRequest;
|
|
95
|
+
|
|
96
|
+
static equals(a: ConnectTwilioCallRequest | PlainMessage<ConnectTwilioCallRequest> | undefined, b: ConnectTwilioCallRequest | PlainMessage<ConnectTwilioCallRequest> | undefined): boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum livekit.ConnectTwilioCallRequest.TwilioCallDirection
|
|
101
|
+
*/
|
|
102
|
+
export declare enum ConnectTwilioCallRequest_TwilioCallDirection {
|
|
103
|
+
/**
|
|
104
|
+
* Call is inbound to LiveKit from Twilio
|
|
105
|
+
*
|
|
106
|
+
* @generated from enum value: TWILIO_CALL_DIRECTION_INBOUND = 0;
|
|
107
|
+
*/
|
|
108
|
+
INBOUND = 0,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Call is outbound from LiveKit to Twilio
|
|
112
|
+
*
|
|
113
|
+
* @generated from enum value: TWILIO_CALL_DIRECTION_OUTBOUND = 1;
|
|
114
|
+
*/
|
|
115
|
+
OUTBOUND = 1,
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @generated from message livekit.ConnectTwilioCallResponse
|
|
120
|
+
*/
|
|
121
|
+
export declare class ConnectTwilioCallResponse extends Message<ConnectTwilioCallResponse> {
|
|
122
|
+
/**
|
|
123
|
+
* The websocket URL which twilio media stream will connect to
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: string connect_url = 1;
|
|
126
|
+
*/
|
|
127
|
+
connectUrl: string;
|
|
128
|
+
|
|
129
|
+
constructor(data?: PartialMessage<ConnectTwilioCallResponse>);
|
|
130
|
+
|
|
131
|
+
static readonly runtime: typeof proto3;
|
|
132
|
+
static readonly typeName = "livekit.ConnectTwilioCallResponse";
|
|
133
|
+
static readonly fields: FieldList;
|
|
134
|
+
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectTwilioCallResponse;
|
|
136
|
+
|
|
137
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectTwilioCallResponse;
|
|
138
|
+
|
|
139
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectTwilioCallResponse;
|
|
140
|
+
|
|
141
|
+
static equals(a: ConnectTwilioCallResponse | PlainMessage<ConnectTwilioCallResponse> | undefined, b: ConnectTwilioCallResponse | PlainMessage<ConnectTwilioCallResponse> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
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_twilio.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
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from message livekit.ConnectTwilioCallRequest
|
|
25
|
+
*/
|
|
26
|
+
export const ConnectTwilioCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
27
|
+
"livekit.ConnectTwilioCallRequest",
|
|
28
|
+
() => [
|
|
29
|
+
{ no: 1, name: "twilio_call_direction", kind: "enum", T: proto3.getEnumType(ConnectTwilioCallRequest_TwilioCallDirection) },
|
|
30
|
+
{ no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
31
|
+
{ no: 3, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
|
|
32
|
+
{ no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
33
|
+
{ no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
34
|
+
{ no: 6, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
|
+
{ no: 7, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
36
|
+
{ no: 8, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
37
|
+
],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum livekit.ConnectTwilioCallRequest.TwilioCallDirection
|
|
42
|
+
*/
|
|
43
|
+
export const ConnectTwilioCallRequest_TwilioCallDirection = /*@__PURE__*/ proto3.makeEnum(
|
|
44
|
+
"livekit.ConnectTwilioCallRequest.TwilioCallDirection",
|
|
45
|
+
[
|
|
46
|
+
{no: 0, name: "TWILIO_CALL_DIRECTION_INBOUND", localName: "INBOUND"},
|
|
47
|
+
{no: 1, name: "TWILIO_CALL_DIRECTION_OUTBOUND", localName: "OUTBOUND"},
|
|
48
|
+
],
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message livekit.ConnectTwilioCallResponse
|
|
53
|
+
*/
|
|
54
|
+
export const ConnectTwilioCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
55
|
+
"livekit.ConnectTwilioCallResponse",
|
|
56
|
+
() => [
|
|
57
|
+
{ no: 1, name: "connect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
58
|
+
],
|
|
59
|
+
);
|
|
60
|
+
|
|
@@ -42,77 +42,86 @@ export declare enum WhatsAppCallDirection {
|
|
|
42
42
|
*/
|
|
43
43
|
export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallRequest> {
|
|
44
44
|
/**
|
|
45
|
-
* The number of the business that is initiating the call
|
|
45
|
+
* Required - The number of the business that is initiating the call
|
|
46
46
|
*
|
|
47
47
|
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
48
48
|
*/
|
|
49
49
|
whatsappPhoneNumberId: string;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* The number of the user that is supossed to receive the call
|
|
52
|
+
* Required - The number of the user that is supossed to receive the call
|
|
53
53
|
*
|
|
54
54
|
* @generated from field: string whatsapp_to_phone_number = 2;
|
|
55
55
|
*/
|
|
56
56
|
whatsappToPhoneNumber: string;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* The API key of the business that is initiating the call
|
|
59
|
+
* Required - The API key of the business that is initiating the call
|
|
60
60
|
*
|
|
61
61
|
* @generated from field: string whatsapp_api_key = 3;
|
|
62
62
|
*/
|
|
63
63
|
whatsappApiKey: string;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: string whatsapp_cloud_api_version = 12;
|
|
69
|
+
*/
|
|
70
|
+
whatsappCloudApiVersion: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
|
|
67
74
|
*
|
|
68
75
|
* @generated from field: string whatsapp_biz_opaque_callback_data = 4;
|
|
69
76
|
*/
|
|
70
77
|
whatsappBizOpaqueCallbackData: string;
|
|
71
78
|
|
|
72
79
|
/**
|
|
73
|
-
* What LiveKit room should this participant be connected too
|
|
80
|
+
* Optional - What LiveKit room should this participant be connected too
|
|
74
81
|
*
|
|
75
82
|
* @generated from field: string room_name = 5;
|
|
76
83
|
*/
|
|
77
84
|
roomName: string;
|
|
78
85
|
|
|
79
86
|
/**
|
|
80
|
-
* Optional
|
|
87
|
+
* Optional - Agents to dispatch the call to
|
|
81
88
|
*
|
|
82
89
|
* @generated from field: repeated livekit.RoomAgentDispatch agents = 6;
|
|
83
90
|
*/
|
|
84
91
|
agents: RoomAgentDispatch[];
|
|
85
92
|
|
|
86
93
|
/**
|
|
87
|
-
* Optional
|
|
94
|
+
* Optional - Identity of the participant in LiveKit room
|
|
88
95
|
*
|
|
89
96
|
* @generated from field: string participant_identity = 7;
|
|
90
97
|
*/
|
|
91
98
|
participantIdentity: string;
|
|
92
99
|
|
|
93
100
|
/**
|
|
94
|
-
* Optional
|
|
101
|
+
* Optional - Name of the participant in LiveKit room
|
|
95
102
|
*
|
|
96
103
|
* @generated from field: string participant_name = 8;
|
|
97
104
|
*/
|
|
98
105
|
participantName: string;
|
|
99
106
|
|
|
100
107
|
/**
|
|
101
|
-
* Optional
|
|
108
|
+
* Optional - User-defined metadata. Will be attached to a created Participant in the room.
|
|
102
109
|
*
|
|
103
110
|
* @generated from field: string participant_metadata = 9;
|
|
104
111
|
*/
|
|
105
112
|
participantMetadata: string;
|
|
106
113
|
|
|
107
114
|
/**
|
|
108
|
-
* Optional
|
|
115
|
+
* Optional - User-defined attributes. Will be attached to a created Participant in the room.
|
|
109
116
|
*
|
|
110
117
|
* @generated from field: map<string, string> participant_attributes = 10;
|
|
111
118
|
*/
|
|
112
119
|
participantAttributes: { [key: string]: string };
|
|
113
120
|
|
|
114
121
|
/**
|
|
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.
|
|
122
|
+
* Optional - 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.
|
|
123
|
+
*
|
|
124
|
+
* Next - 13
|
|
116
125
|
*
|
|
117
126
|
* @generated from field: string destination_country = 11;
|
|
118
127
|
*/
|
|
@@ -144,6 +153,13 @@ export declare class DialWhatsAppCallResponse extends Message<DialWhatsAppCallRe
|
|
|
144
153
|
*/
|
|
145
154
|
whatsappCallId: string;
|
|
146
155
|
|
|
156
|
+
/**
|
|
157
|
+
* The name of the LiveKit room that the call is connected to
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string room_name = 2;
|
|
160
|
+
*/
|
|
161
|
+
roomName: string;
|
|
162
|
+
|
|
147
163
|
constructor(data?: PartialMessage<DialWhatsAppCallResponse>);
|
|
148
164
|
|
|
149
165
|
static readonly runtime: typeof proto3;
|
|
@@ -164,13 +180,15 @@ export declare class DialWhatsAppCallResponse extends Message<DialWhatsAppCallRe
|
|
|
164
180
|
*/
|
|
165
181
|
export declare class DisconnectWhatsAppCallRequest extends Message<DisconnectWhatsAppCallRequest> {
|
|
166
182
|
/**
|
|
167
|
-
* Call ID sent by Meta
|
|
183
|
+
* Required - Call ID sent by Meta
|
|
168
184
|
*
|
|
169
185
|
* @generated from field: string whatsapp_call_id = 1;
|
|
170
186
|
*/
|
|
171
187
|
whatsappCallId: string;
|
|
172
188
|
|
|
173
189
|
/**
|
|
190
|
+
* Required - The API key of the business that is disconnecting the call
|
|
191
|
+
*
|
|
174
192
|
* @generated from field: string whatsapp_api_key = 2;
|
|
175
193
|
*/
|
|
176
194
|
whatsappApiKey: string;
|
|
@@ -214,31 +232,17 @@ export declare class DisconnectWhatsAppCallResponse extends Message<DisconnectWh
|
|
|
214
232
|
*/
|
|
215
233
|
export declare class ConnectWhatsAppCallRequest extends Message<ConnectWhatsAppCallRequest> {
|
|
216
234
|
/**
|
|
217
|
-
*
|
|
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
|
|
235
|
+
* Required - Call ID sent by Meta
|
|
232
236
|
*
|
|
233
|
-
* @generated from field: string whatsapp_call_id =
|
|
237
|
+
* @generated from field: string whatsapp_call_id = 1;
|
|
234
238
|
*/
|
|
235
239
|
whatsappCallId: string;
|
|
236
240
|
|
|
237
241
|
/**
|
|
238
|
-
* The call connect webhook comes with SDP from Meta
|
|
242
|
+
* Required - The call connect webhook comes with SDP from Meta
|
|
239
243
|
* It is the answer SDP for a business initiated call
|
|
240
244
|
*
|
|
241
|
-
* @generated from field: livekit.SessionDescription sdp =
|
|
245
|
+
* @generated from field: livekit.SessionDescription sdp = 2;
|
|
242
246
|
*/
|
|
243
247
|
sdp?: SessionDescription;
|
|
244
248
|
|
|
@@ -281,35 +285,42 @@ export declare class ConnectWhatsAppCallResponse extends Message<ConnectWhatsApp
|
|
|
281
285
|
*/
|
|
282
286
|
export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCallRequest> {
|
|
283
287
|
/**
|
|
284
|
-
* The number of the business that is conencting the call
|
|
288
|
+
* Required - The number of the business that is conencting the call
|
|
285
289
|
*
|
|
286
290
|
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
287
291
|
*/
|
|
288
292
|
whatsappPhoneNumberId: string;
|
|
289
293
|
|
|
290
294
|
/**
|
|
291
|
-
* The API key of the business that is connecting the call
|
|
295
|
+
* Required - The API key of the business that is connecting the call
|
|
292
296
|
*
|
|
293
297
|
* @generated from field: string whatsapp_api_key = 2;
|
|
294
298
|
*/
|
|
295
299
|
whatsappApiKey: string;
|
|
296
300
|
|
|
297
301
|
/**
|
|
298
|
-
*
|
|
302
|
+
* Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
|
|
303
|
+
*
|
|
304
|
+
* @generated from field: string whatsapp_cloud_api_version = 13;
|
|
305
|
+
*/
|
|
306
|
+
whatsappCloudApiVersion: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Required - Call ID sent by Meta
|
|
299
310
|
*
|
|
300
311
|
* @generated from field: string whatsapp_call_id = 3;
|
|
301
312
|
*/
|
|
302
313
|
whatsappCallId: string;
|
|
303
314
|
|
|
304
315
|
/**
|
|
305
|
-
* An arbitrary string you can pass in that is useful for tracking and logging purposes.
|
|
316
|
+
* Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
|
|
306
317
|
*
|
|
307
318
|
* @generated from field: string whatsapp_biz_opaque_callback_data = 4;
|
|
308
319
|
*/
|
|
309
320
|
whatsappBizOpaqueCallbackData: string;
|
|
310
321
|
|
|
311
322
|
/**
|
|
312
|
-
* The call accept webhook comes with SDP from Meta
|
|
323
|
+
* Required - The call accept webhook comes with SDP from Meta
|
|
313
324
|
* It is the for a user initiated call
|
|
314
325
|
*
|
|
315
326
|
* @generated from field: livekit.SessionDescription sdp = 5;
|
|
@@ -317,49 +328,51 @@ export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCal
|
|
|
317
328
|
sdp?: SessionDescription;
|
|
318
329
|
|
|
319
330
|
/**
|
|
320
|
-
* What LiveKit room should this participant be connected too
|
|
331
|
+
* Optional - What LiveKit room should this participant be connected too
|
|
321
332
|
*
|
|
322
333
|
* @generated from field: string room_name = 6;
|
|
323
334
|
*/
|
|
324
335
|
roomName: string;
|
|
325
336
|
|
|
326
337
|
/**
|
|
327
|
-
* Optional
|
|
338
|
+
* Optional - Agents to dispatch the call to
|
|
328
339
|
*
|
|
329
340
|
* @generated from field: repeated livekit.RoomAgentDispatch agents = 7;
|
|
330
341
|
*/
|
|
331
342
|
agents: RoomAgentDispatch[];
|
|
332
343
|
|
|
333
344
|
/**
|
|
334
|
-
* Optional
|
|
345
|
+
* Optional - Identity of the participant in LiveKit room
|
|
335
346
|
*
|
|
336
347
|
* @generated from field: string participant_identity = 8;
|
|
337
348
|
*/
|
|
338
349
|
participantIdentity: string;
|
|
339
350
|
|
|
340
351
|
/**
|
|
341
|
-
* Optional
|
|
352
|
+
* Optional - Name of the participant in LiveKit room
|
|
342
353
|
*
|
|
343
354
|
* @generated from field: string participant_name = 9;
|
|
344
355
|
*/
|
|
345
356
|
participantName: string;
|
|
346
357
|
|
|
347
358
|
/**
|
|
348
|
-
* Optional
|
|
359
|
+
* Optional - User-defined metadata. Will be attached to a created Participant in the room.
|
|
349
360
|
*
|
|
350
361
|
* @generated from field: string participant_metadata = 10;
|
|
351
362
|
*/
|
|
352
363
|
participantMetadata: string;
|
|
353
364
|
|
|
354
365
|
/**
|
|
355
|
-
* Optional
|
|
366
|
+
* Optional - User-defined attributes. Will be attached to a created Participant in the room.
|
|
356
367
|
*
|
|
357
368
|
* @generated from field: map<string, string> participant_attributes = 11;
|
|
358
369
|
*/
|
|
359
370
|
participantAttributes: { [key: string]: string };
|
|
360
371
|
|
|
361
372
|
/**
|
|
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.
|
|
373
|
+
* Optional - 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.
|
|
374
|
+
*
|
|
375
|
+
* Next - 14
|
|
363
376
|
*
|
|
364
377
|
* @generated from field: string destination_country = 12;
|
|
365
378
|
*/
|
|
@@ -384,6 +397,13 @@ export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCal
|
|
|
384
397
|
* @generated from message livekit.AcceptWhatsAppCallResponse
|
|
385
398
|
*/
|
|
386
399
|
export declare class AcceptWhatsAppCallResponse extends Message<AcceptWhatsAppCallResponse> {
|
|
400
|
+
/**
|
|
401
|
+
* The name of the LiveKit room that the call is connected to
|
|
402
|
+
*
|
|
403
|
+
* @generated from field: string room_name = 1;
|
|
404
|
+
*/
|
|
405
|
+
roomName: string;
|
|
406
|
+
|
|
387
407
|
constructor(data?: PartialMessage<AcceptWhatsAppCallResponse>);
|
|
388
408
|
|
|
389
409
|
static readonly runtime: typeof proto3;
|
|
@@ -41,6 +41,7 @@ export const DialWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
41
41
|
{ no: 1, name: "whatsapp_phone_number_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
42
42
|
{ no: 2, name: "whatsapp_to_phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
43
43
|
{ no: 3, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
44
|
+
{ no: 12, name: "whatsapp_cloud_api_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
44
45
|
{ no: 4, name: "whatsapp_biz_opaque_callback_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
46
|
{ no: 5, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
46
47
|
{ no: 6, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
|
|
@@ -59,6 +60,7 @@ export const DialWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
59
60
|
"livekit.DialWhatsAppCallResponse",
|
|
60
61
|
() => [
|
|
61
62
|
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
63
|
+
{ no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
62
64
|
],
|
|
63
65
|
);
|
|
64
66
|
|
|
@@ -87,10 +89,8 @@ export const DisconnectWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageTy
|
|
|
87
89
|
export const ConnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
88
90
|
"livekit.ConnectWhatsAppCallRequest",
|
|
89
91
|
() => [
|
|
90
|
-
{ no: 1, name: "
|
|
91
|
-
{ no: 2, name: "
|
|
92
|
-
{ no: 3, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
|
-
{ no: 4, name: "sdp", kind: "message", T: SessionDescription },
|
|
92
|
+
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
|
+
{ no: 2, name: "sdp", kind: "message", T: SessionDescription },
|
|
94
94
|
],
|
|
95
95
|
);
|
|
96
96
|
|
|
@@ -110,6 +110,7 @@ export const AcceptWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
110
110
|
() => [
|
|
111
111
|
{ no: 1, name: "whatsapp_phone_number_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
112
112
|
{ no: 2, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
113
|
+
{ no: 13, name: "whatsapp_cloud_api_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
113
114
|
{ no: 3, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
114
115
|
{ no: 4, name: "whatsapp_biz_opaque_callback_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
115
116
|
{ no: 5, name: "sdp", kind: "message", T: SessionDescription },
|
|
@@ -128,7 +129,9 @@ export const AcceptWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
128
129
|
*/
|
|
129
130
|
export const AcceptWhatsAppCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
130
131
|
"livekit.AcceptWhatsAppCallResponse",
|
|
131
|
-
[
|
|
132
|
+
() => [
|
|
133
|
+
{ no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
134
|
+
],
|
|
132
135
|
);
|
|
133
136
|
|
|
134
137
|
/**
|
|
@@ -384,9 +384,16 @@ export declare class MetricsRecordingHeader extends Message<MetricsRecordingHead
|
|
|
384
384
|
roomId: string;
|
|
385
385
|
|
|
386
386
|
/**
|
|
387
|
-
*
|
|
387
|
+
* milliseconds
|
|
388
|
+
*
|
|
389
|
+
* @generated from field: uint64 duration = 3;
|
|
390
|
+
*/
|
|
391
|
+
duration: bigint;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: google.protobuf.Timestamp start_time = 4;
|
|
388
395
|
*/
|
|
389
|
-
|
|
396
|
+
startTime?: Timestamp;
|
|
390
397
|
|
|
391
398
|
constructor(data?: PartialMessage<MetricsRecordingHeader>);
|
|
392
399
|
|
|
@@ -102,7 +102,8 @@ export const MetricsRecordingHeader = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
102
102
|
"livekit.MetricsRecordingHeader",
|
|
103
103
|
() => [
|
|
104
104
|
{ no: 1, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
105
|
-
{ no:
|
|
105
|
+
{ no: 3, name: "duration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
106
|
+
{ no: 4, name: "start_time", kind: "message", T: Timestamp },
|
|
106
107
|
],
|
|
107
108
|
);
|
|
108
109
|
|