@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
|
@@ -5,24 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
import { TokenPagination } from "./livekit_models_pb.js";
|
|
8
|
-
import { SIPDispatchRuleInfo } from "./livekit_sip_pb.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Telephony cost type enumeration
|
|
12
|
-
*
|
|
13
|
-
* @generated from enum livekit.TelephonyCostType
|
|
14
|
-
*/
|
|
15
|
-
export const TelephonyCostType = /*@__PURE__*/ proto3.makeEnum(
|
|
16
|
-
"livekit.TelephonyCostType",
|
|
17
|
-
[
|
|
18
|
-
{no: 0, name: "TELEPHONY_COST_TYPE_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
19
|
-
{no: 1, name: "TELEPHONY_COST_TYPE_NUMBER_RENTAL", localName: "NUMBER_RENTAL"},
|
|
20
|
-
{no: 2, name: "TELEPHONY_COST_TYPE_VOICE_INBOUND", localName: "VOICE_INBOUND"},
|
|
21
|
-
{no: 3, name: "TELEPHONY_COST_TYPE_VOICE_OUTBOUND", localName: "VOICE_OUTBOUND"},
|
|
22
|
-
{no: 4, name: "TELEPHONY_COST_TYPE_SMS_INBOUND", localName: "SMS_INBOUND"},
|
|
23
|
-
{no: 5, name: "TELEPHONY_COST_TYPE_SMS_OUTBOUND", localName: "SMS_OUTBOUND"},
|
|
24
|
-
],
|
|
25
|
-
);
|
|
26
8
|
|
|
27
9
|
/**
|
|
28
10
|
* Phone number status enumeration
|
|
@@ -40,12 +22,27 @@ export const PhoneNumberStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
40
22
|
);
|
|
41
23
|
|
|
42
24
|
/**
|
|
43
|
-
*
|
|
25
|
+
* Phone number type enumeration
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum livekit.PhoneNumberType
|
|
28
|
+
*/
|
|
29
|
+
export const PhoneNumberType = /*@__PURE__*/ proto3.makeEnum(
|
|
30
|
+
"livekit.PhoneNumberType",
|
|
31
|
+
[
|
|
32
|
+
{no: 0, name: "PHONE_NUMBER_TYPE_UNKNOWN", localName: "UNKNOWN"},
|
|
33
|
+
{no: 1, name: "PHONE_NUMBER_TYPE_MOBILE", localName: "MOBILE"},
|
|
34
|
+
{no: 2, name: "PHONE_NUMBER_TYPE_LOCAL", localName: "LOCAL"},
|
|
35
|
+
{no: 3, name: "PHONE_NUMBER_TYPE_TOLL_FREE", localName: "TOLL_FREE"},
|
|
36
|
+
],
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* SearchPhoneNumbersRequest - Request to search available phone numbers
|
|
44
41
|
*
|
|
45
|
-
* @generated from message livekit.
|
|
42
|
+
* @generated from message livekit.SearchPhoneNumbersRequest
|
|
46
43
|
*/
|
|
47
|
-
export const
|
|
48
|
-
"livekit.
|
|
44
|
+
export const SearchPhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
45
|
+
"livekit.SearchPhoneNumbersRequest",
|
|
49
46
|
() => [
|
|
50
47
|
{ no: 1, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
48
|
{ no: 2, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -55,14 +52,14 @@ export const ListPhoneNumberInventoryRequest = /*@__PURE__*/ proto3.makeMessageT
|
|
|
55
52
|
);
|
|
56
53
|
|
|
57
54
|
/**
|
|
58
|
-
*
|
|
55
|
+
* SearchPhoneNumbersResponse - Response containing available phone numbers
|
|
59
56
|
*
|
|
60
|
-
* @generated from message livekit.
|
|
57
|
+
* @generated from message livekit.SearchPhoneNumbersResponse
|
|
61
58
|
*/
|
|
62
|
-
export const
|
|
63
|
-
"livekit.
|
|
59
|
+
export const SearchPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
60
|
+
"livekit.SearchPhoneNumbersResponse",
|
|
64
61
|
() => [
|
|
65
|
-
{ no: 1, name: "items", kind: "message", T:
|
|
62
|
+
{ no: 1, name: "items", kind: "message", T: PhoneNumber, repeated: true },
|
|
66
63
|
{ no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
|
|
67
64
|
],
|
|
68
65
|
);
|
|
@@ -76,6 +73,7 @@ export const PurchasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
76
73
|
"livekit.PurchasePhoneNumberRequest",
|
|
77
74
|
() => [
|
|
78
75
|
{ no: 1, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
76
|
+
{ no: 2, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
79
77
|
],
|
|
80
78
|
);
|
|
81
79
|
|
|
@@ -87,112 +85,138 @@ export const PurchasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
87
85
|
export const PurchasePhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
88
86
|
"livekit.PurchasePhoneNumberResponse",
|
|
89
87
|
() => [
|
|
90
|
-
{ no: 1, name: "phone_numbers", kind: "message", T:
|
|
88
|
+
{ no: 1, name: "phone_numbers", kind: "message", T: PhoneNumber, repeated: true },
|
|
91
89
|
],
|
|
92
90
|
);
|
|
93
91
|
|
|
94
92
|
/**
|
|
95
|
-
*
|
|
93
|
+
* ListPhoneNumbersRequest - Request to list phone numbers
|
|
96
94
|
*
|
|
97
|
-
* @generated from message livekit.
|
|
95
|
+
* @generated from message livekit.ListPhoneNumbersRequest
|
|
98
96
|
*/
|
|
99
|
-
export const
|
|
100
|
-
"livekit.
|
|
97
|
+
export const ListPhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
98
|
+
"livekit.ListPhoneNumbersRequest",
|
|
101
99
|
() => [
|
|
102
100
|
{ no: 1, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
103
|
-
{ no: 2, name: "
|
|
101
|
+
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus) },
|
|
102
|
+
{ no: 3, name: "page_token", kind: "message", T: TokenPagination },
|
|
103
|
+
{ no: 4, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
104
|
],
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* ListPhoneNumbersResponse - Response containing phone numbers
|
|
109
109
|
*
|
|
110
|
-
* @generated from message livekit.
|
|
110
|
+
* @generated from message livekit.ListPhoneNumbersResponse
|
|
111
111
|
*/
|
|
112
|
-
export const
|
|
113
|
-
"livekit.
|
|
112
|
+
export const ListPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
113
|
+
"livekit.ListPhoneNumbersResponse",
|
|
114
114
|
() => [
|
|
115
|
-
{ no: 1, name: "items", kind: "message", T:
|
|
115
|
+
{ no: 1, name: "items", kind: "message", T: PhoneNumber, repeated: true },
|
|
116
116
|
{ no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
|
|
117
117
|
{ no: 3, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
118
118
|
],
|
|
119
119
|
);
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* GetPhoneNumberRequest - Request to get a phone number
|
|
123
123
|
*
|
|
124
|
-
* @generated from message livekit.
|
|
124
|
+
* @generated from message livekit.GetPhoneNumberRequest
|
|
125
125
|
*/
|
|
126
|
-
export const
|
|
127
|
-
"livekit.
|
|
126
|
+
export const GetPhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
127
|
+
"livekit.GetPhoneNumberRequest",
|
|
128
128
|
() => [
|
|
129
|
-
{ no: 1, name: "
|
|
129
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
|
+
{ no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
|
+
],
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* GetPhoneNumberResponse - Response containing the phone number
|
|
136
|
+
*
|
|
137
|
+
* @generated from message livekit.GetPhoneNumberResponse
|
|
138
|
+
*/
|
|
139
|
+
export const GetPhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
140
|
+
"livekit.GetPhoneNumberResponse",
|
|
141
|
+
() => [
|
|
142
|
+
{ no: 1, name: "phone_number", kind: "message", T: PhoneNumber },
|
|
130
143
|
],
|
|
131
144
|
);
|
|
132
145
|
|
|
133
146
|
/**
|
|
134
|
-
*
|
|
147
|
+
* UpdatePhoneNumberRequest - Request to update a phone number
|
|
135
148
|
*
|
|
136
|
-
* @generated from message livekit.
|
|
149
|
+
* @generated from message livekit.UpdatePhoneNumberRequest
|
|
137
150
|
*/
|
|
138
|
-
export const
|
|
139
|
-
"livekit.
|
|
151
|
+
export const UpdatePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
152
|
+
"livekit.UpdatePhoneNumberRequest",
|
|
140
153
|
() => [
|
|
141
154
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
142
|
-
{ no: 2, name: "
|
|
143
|
-
{ no: 3, name: "
|
|
144
|
-
{ no: 4, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
145
|
-
{ no: 5, name: "number_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
146
|
-
{ no: 6, name: "locality", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
147
|
-
{ no: 7, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
148
|
-
{ no: 8, name: "spam_score", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
149
|
-
{ no: 9, name: "created_at", kind: "message", T: Timestamp },
|
|
150
|
-
{ no: 10, name: "updated_at", kind: "message", T: Timestamp },
|
|
155
|
+
{ no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
156
|
+
{ no: 3, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
151
157
|
],
|
|
152
158
|
);
|
|
153
159
|
|
|
154
160
|
/**
|
|
155
|
-
*
|
|
161
|
+
* UpdatePhoneNumberResponse - Response containing the updated phone number
|
|
156
162
|
*
|
|
157
|
-
* @generated from message livekit.
|
|
163
|
+
* @generated from message livekit.UpdatePhoneNumberResponse
|
|
158
164
|
*/
|
|
159
|
-
export const
|
|
160
|
-
"livekit.
|
|
165
|
+
export const UpdatePhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
166
|
+
"livekit.UpdatePhoneNumberResponse",
|
|
161
167
|
() => [
|
|
162
|
-
{ no: 1, name: "
|
|
163
|
-
{ no: 2, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
164
|
-
{ no: 3, name: "price", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
165
|
-
{ no: 4, name: "billing_unit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
168
|
+
{ no: 1, name: "phone_number", kind: "message", T: PhoneNumber },
|
|
166
169
|
],
|
|
167
170
|
);
|
|
168
171
|
|
|
169
172
|
/**
|
|
170
|
-
*
|
|
173
|
+
* ReleasePhoneNumbersRequest - Request to release phone numbers
|
|
171
174
|
*
|
|
172
|
-
* @generated from message livekit.
|
|
175
|
+
* @generated from message livekit.ReleasePhoneNumbersRequest
|
|
173
176
|
*/
|
|
174
|
-
export const
|
|
175
|
-
"livekit.
|
|
177
|
+
export const ReleasePhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
178
|
+
"livekit.ReleasePhoneNumbersRequest",
|
|
176
179
|
() => [
|
|
177
|
-
{ no: 1, name: "
|
|
178
|
-
{ no: 2, name: "
|
|
179
|
-
{ no: 3, name: "costs", kind: "message", T: TelephonyCost, repeated: true },
|
|
180
|
+
{ no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
181
|
+
{ no: 2, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
180
182
|
],
|
|
181
183
|
);
|
|
182
184
|
|
|
183
185
|
/**
|
|
184
|
-
*
|
|
186
|
+
* ReleasePhoneNumbersResponse - Response for releasing phone numbers
|
|
187
|
+
*
|
|
188
|
+
* Empty response - operation completed successfully
|
|
189
|
+
*
|
|
190
|
+
* @generated from message livekit.ReleasePhoneNumbersResponse
|
|
191
|
+
*/
|
|
192
|
+
export const ReleasePhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
193
|
+
"livekit.ReleasePhoneNumbersResponse",
|
|
194
|
+
[],
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* PhoneNumber - Unified phone number type for inventory and purchased numbers
|
|
185
199
|
*
|
|
186
|
-
* @generated from message livekit.
|
|
200
|
+
* @generated from message livekit.PhoneNumber
|
|
187
201
|
*/
|
|
188
|
-
export const
|
|
189
|
-
"livekit.
|
|
202
|
+
export const PhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
|
|
203
|
+
"livekit.PhoneNumber",
|
|
190
204
|
() => [
|
|
191
|
-
{ no: 1, name: "
|
|
192
|
-
{ no: 2, name: "
|
|
193
|
-
{ no: 3, name: "
|
|
194
|
-
{ no: 4, name: "
|
|
195
|
-
{ no: 5, name: "
|
|
205
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
206
|
+
{ no: 2, name: "e164_format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
207
|
+
{ no: 3, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
|
+
{ no: 4, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
209
|
+
{ no: 5, name: "number_type", kind: "enum", T: proto3.getEnumType(PhoneNumberType) },
|
|
210
|
+
{ no: 6, name: "locality", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
|
+
{ no: 7, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
212
|
+
{ no: 8, name: "spam_score", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
213
|
+
{ no: 9, name: "created_at", kind: "message", T: Timestamp },
|
|
214
|
+
{ no: 10, name: "updated_at", kind: "message", T: Timestamp },
|
|
215
|
+
{ no: 11, name: "capabilities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
216
|
+
{ no: 12, name: "status", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus) },
|
|
217
|
+
{ no: 13, name: "assigned_at", kind: "message", T: Timestamp },
|
|
218
|
+
{ no: 14, name: "released_at", kind: "message", T: Timestamp },
|
|
219
|
+
{ no: 15, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
196
220
|
],
|
|
197
221
|
);
|
|
198
222
|
|
|
@@ -904,3 +904,71 @@ export declare class MoveParticipantResponse extends Message<MoveParticipantResp
|
|
|
904
904
|
static equals(a: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined, b: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined): boolean;
|
|
905
905
|
}
|
|
906
906
|
|
|
907
|
+
/**
|
|
908
|
+
* @generated from message livekit.PerformRpcRequest
|
|
909
|
+
*/
|
|
910
|
+
export declare class PerformRpcRequest extends Message<PerformRpcRequest> {
|
|
911
|
+
/**
|
|
912
|
+
* @generated from field: string room = 1;
|
|
913
|
+
*/
|
|
914
|
+
room: string;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* @generated from field: string destination_identity = 2;
|
|
918
|
+
*/
|
|
919
|
+
destinationIdentity: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* @generated from field: string method = 3;
|
|
923
|
+
*/
|
|
924
|
+
method: string;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* @generated from field: string payload = 4;
|
|
928
|
+
*/
|
|
929
|
+
payload: string;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @generated from field: uint32 response_timeout_ms = 5;
|
|
933
|
+
*/
|
|
934
|
+
responseTimeoutMs: number;
|
|
935
|
+
|
|
936
|
+
constructor(data?: PartialMessage<PerformRpcRequest>);
|
|
937
|
+
|
|
938
|
+
static readonly runtime: typeof proto3;
|
|
939
|
+
static readonly typeName = "livekit.PerformRpcRequest";
|
|
940
|
+
static readonly fields: FieldList;
|
|
941
|
+
|
|
942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcRequest;
|
|
943
|
+
|
|
944
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcRequest;
|
|
945
|
+
|
|
946
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcRequest;
|
|
947
|
+
|
|
948
|
+
static equals(a: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined, b: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined): boolean;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* @generated from message livekit.PerformRpcResponse
|
|
953
|
+
*/
|
|
954
|
+
export declare class PerformRpcResponse extends Message<PerformRpcResponse> {
|
|
955
|
+
/**
|
|
956
|
+
* @generated from field: string payload = 1;
|
|
957
|
+
*/
|
|
958
|
+
payload: string;
|
|
959
|
+
|
|
960
|
+
constructor(data?: PartialMessage<PerformRpcResponse>);
|
|
961
|
+
|
|
962
|
+
static readonly runtime: typeof proto3;
|
|
963
|
+
static readonly typeName = "livekit.PerformRpcResponse";
|
|
964
|
+
static readonly fields: FieldList;
|
|
965
|
+
|
|
966
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcResponse;
|
|
967
|
+
|
|
968
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcResponse;
|
|
969
|
+
|
|
970
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcResponse;
|
|
971
|
+
|
|
972
|
+
static equals(a: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined, b: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined): boolean;
|
|
973
|
+
}
|
|
974
|
+
|
|
@@ -299,3 +299,27 @@ export const MoveParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
299
299
|
[],
|
|
300
300
|
);
|
|
301
301
|
|
|
302
|
+
/**
|
|
303
|
+
* @generated from message livekit.PerformRpcRequest
|
|
304
|
+
*/
|
|
305
|
+
export const PerformRpcRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
306
|
+
"livekit.PerformRpcRequest",
|
|
307
|
+
() => [
|
|
308
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
309
|
+
{ no: 2, name: "destination_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
310
|
+
{ no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
311
|
+
{ no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
312
|
+
{ no: 5, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
313
|
+
],
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @generated from message livekit.PerformRpcResponse
|
|
318
|
+
*/
|
|
319
|
+
export const PerformRpcResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
320
|
+
"livekit.PerformRpcResponse",
|
|
321
|
+
() => [
|
|
322
|
+
{ no: 1, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
323
|
+
],
|
|
324
|
+
);
|
|
325
|
+
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
-
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
22
|
+
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @generated from enum livekit.SignalTarget
|
|
@@ -431,6 +431,22 @@ export declare class SignalResponse extends Message<SignalResponse> {
|
|
|
431
431
|
*/
|
|
432
432
|
value: MediaSectionsRequirement;
|
|
433
433
|
case: "mediaSectionsRequirement";
|
|
434
|
+
} | {
|
|
435
|
+
/**
|
|
436
|
+
* when audio subscription changes, used to enable simulcasting of audio codecs based on subscriptions
|
|
437
|
+
*
|
|
438
|
+
* @generated from field: livekit.SubscribedAudioCodecUpdate subscribed_audio_codec_update = 26;
|
|
439
|
+
*/
|
|
440
|
+
value: SubscribedAudioCodecUpdate;
|
|
441
|
+
case: "subscribedAudioCodecUpdate";
|
|
442
|
+
} | {
|
|
443
|
+
/**
|
|
444
|
+
* sent when server answers publisher, includes the mid -> trackID mapping
|
|
445
|
+
*
|
|
446
|
+
* @generated from field: livekit.MappedSessionDescription mapped_answer = 27;
|
|
447
|
+
*/
|
|
448
|
+
value: MappedSessionDescription;
|
|
449
|
+
case: "mappedAnswer";
|
|
434
450
|
} | { case: undefined; value?: undefined };
|
|
435
451
|
|
|
436
452
|
constructor(data?: PartialMessage<SignalResponse>);
|
|
@@ -910,6 +926,35 @@ export declare class SessionDescription extends Message<SessionDescription> {
|
|
|
910
926
|
static equals(a: SessionDescription | PlainMessage<SessionDescription> | undefined, b: SessionDescription | PlainMessage<SessionDescription> | undefined): boolean;
|
|
911
927
|
}
|
|
912
928
|
|
|
929
|
+
/**
|
|
930
|
+
* @generated from message livekit.MappedSessionDescription
|
|
931
|
+
*/
|
|
932
|
+
export declare class MappedSessionDescription extends Message<MappedSessionDescription> {
|
|
933
|
+
/**
|
|
934
|
+
* @generated from field: livekit.SessionDescription session_description = 1;
|
|
935
|
+
*/
|
|
936
|
+
sessionDescription?: SessionDescription;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* @generated from field: map<string, string> mid_to_track_id = 2;
|
|
940
|
+
*/
|
|
941
|
+
midToTrackId: { [key: string]: string };
|
|
942
|
+
|
|
943
|
+
constructor(data?: PartialMessage<MappedSessionDescription>);
|
|
944
|
+
|
|
945
|
+
static readonly runtime: typeof proto3;
|
|
946
|
+
static readonly typeName = "livekit.MappedSessionDescription";
|
|
947
|
+
static readonly fields: FieldList;
|
|
948
|
+
|
|
949
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MappedSessionDescription;
|
|
950
|
+
|
|
951
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MappedSessionDescription;
|
|
952
|
+
|
|
953
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MappedSessionDescription;
|
|
954
|
+
|
|
955
|
+
static equals(a: MappedSessionDescription | PlainMessage<MappedSessionDescription> | undefined, b: MappedSessionDescription | PlainMessage<MappedSessionDescription> | undefined): boolean;
|
|
956
|
+
}
|
|
957
|
+
|
|
913
958
|
/**
|
|
914
959
|
* @generated from message livekit.ParticipantUpdate
|
|
915
960
|
*/
|
|
@@ -1537,6 +1582,35 @@ export declare class SubscribedQualityUpdate extends Message<SubscribedQualityUp
|
|
|
1537
1582
|
static equals(a: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined, b: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined): boolean;
|
|
1538
1583
|
}
|
|
1539
1584
|
|
|
1585
|
+
/**
|
|
1586
|
+
* @generated from message livekit.SubscribedAudioCodecUpdate
|
|
1587
|
+
*/
|
|
1588
|
+
export declare class SubscribedAudioCodecUpdate extends Message<SubscribedAudioCodecUpdate> {
|
|
1589
|
+
/**
|
|
1590
|
+
* @generated from field: string track_sid = 1;
|
|
1591
|
+
*/
|
|
1592
|
+
trackSid: string;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* @generated from field: repeated livekit.SubscribedAudioCodec subscribed_audio_codecs = 2;
|
|
1596
|
+
*/
|
|
1597
|
+
subscribedAudioCodecs: SubscribedAudioCodec[];
|
|
1598
|
+
|
|
1599
|
+
constructor(data?: PartialMessage<SubscribedAudioCodecUpdate>);
|
|
1600
|
+
|
|
1601
|
+
static readonly runtime: typeof proto3;
|
|
1602
|
+
static readonly typeName = "livekit.SubscribedAudioCodecUpdate";
|
|
1603
|
+
static readonly fields: FieldList;
|
|
1604
|
+
|
|
1605
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedAudioCodecUpdate;
|
|
1606
|
+
|
|
1607
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedAudioCodecUpdate;
|
|
1608
|
+
|
|
1609
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedAudioCodecUpdate;
|
|
1610
|
+
|
|
1611
|
+
static equals(a: SubscribedAudioCodecUpdate | PlainMessage<SubscribedAudioCodecUpdate> | undefined, b: SubscribedAudioCodecUpdate | PlainMessage<SubscribedAudioCodecUpdate> | undefined): boolean;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1540
1614
|
/**
|
|
1541
1615
|
* @generated from message livekit.TrackPermission
|
|
1542
1616
|
*/
|
|
@@ -2074,6 +2148,47 @@ export declare class RequestResponse extends Message<RequestResponse> {
|
|
|
2074
2148
|
*/
|
|
2075
2149
|
message: string;
|
|
2076
2150
|
|
|
2151
|
+
/**
|
|
2152
|
+
* @generated from oneof livekit.RequestResponse.request
|
|
2153
|
+
*/
|
|
2154
|
+
request: {
|
|
2155
|
+
/**
|
|
2156
|
+
* @generated from field: livekit.TrickleRequest trickle = 4;
|
|
2157
|
+
*/
|
|
2158
|
+
value: TrickleRequest;
|
|
2159
|
+
case: "trickle";
|
|
2160
|
+
} | {
|
|
2161
|
+
/**
|
|
2162
|
+
* @generated from field: livekit.AddTrackRequest add_track = 5;
|
|
2163
|
+
*/
|
|
2164
|
+
value: AddTrackRequest;
|
|
2165
|
+
case: "addTrack";
|
|
2166
|
+
} | {
|
|
2167
|
+
/**
|
|
2168
|
+
* @generated from field: livekit.MuteTrackRequest mute = 6;
|
|
2169
|
+
*/
|
|
2170
|
+
value: MuteTrackRequest;
|
|
2171
|
+
case: "mute";
|
|
2172
|
+
} | {
|
|
2173
|
+
/**
|
|
2174
|
+
* @generated from field: livekit.UpdateParticipantMetadata update_metadata = 7;
|
|
2175
|
+
*/
|
|
2176
|
+
value: UpdateParticipantMetadata;
|
|
2177
|
+
case: "updateMetadata";
|
|
2178
|
+
} | {
|
|
2179
|
+
/**
|
|
2180
|
+
* @generated from field: livekit.UpdateLocalAudioTrack update_audio_track = 8;
|
|
2181
|
+
*/
|
|
2182
|
+
value: UpdateLocalAudioTrack;
|
|
2183
|
+
case: "updateAudioTrack";
|
|
2184
|
+
} | {
|
|
2185
|
+
/**
|
|
2186
|
+
* @generated from field: livekit.UpdateLocalVideoTrack update_video_track = 9;
|
|
2187
|
+
*/
|
|
2188
|
+
value: UpdateLocalVideoTrack;
|
|
2189
|
+
case: "updateVideoTrack";
|
|
2190
|
+
} | { case: undefined; value?: undefined };
|
|
2191
|
+
|
|
2077
2192
|
constructor(data?: PartialMessage<RequestResponse>);
|
|
2078
2193
|
|
|
2079
2194
|
static readonly runtime: typeof proto3;
|
|
@@ -2112,6 +2227,21 @@ export declare enum RequestResponse_Reason {
|
|
|
2112
2227
|
* @generated from enum value: LIMIT_EXCEEDED = 3;
|
|
2113
2228
|
*/
|
|
2114
2229
|
LIMIT_EXCEEDED = 3,
|
|
2230
|
+
|
|
2231
|
+
/**
|
|
2232
|
+
* @generated from enum value: QUEUED = 4;
|
|
2233
|
+
*/
|
|
2234
|
+
QUEUED = 4,
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* @generated from enum value: UNSUPPORTED_TYPE = 5;
|
|
2238
|
+
*/
|
|
2239
|
+
UNSUPPORTED_TYPE = 5,
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* @generated from enum value: UNCLASSIFIED_ERROR = 6;
|
|
2243
|
+
*/
|
|
2244
|
+
UNCLASSIFIED_ERROR = 6,
|
|
2115
2245
|
}
|
|
2116
2246
|
|
|
2117
2247
|
/**
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
-
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
21
|
+
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @generated from enum livekit.SignalTarget
|
|
@@ -110,6 +110,8 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
110
110
|
{ no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
|
|
111
111
|
{ no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
|
|
112
112
|
{ no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
|
|
113
|
+
{ no: 26, name: "subscribed_audio_codec_update", kind: "message", T: SubscribedAudioCodecUpdate, oneof: "message" },
|
|
114
|
+
{ no: 27, name: "mapped_answer", kind: "message", T: MappedSessionDescription, oneof: "message" },
|
|
113
115
|
],
|
|
114
116
|
);
|
|
115
117
|
|
|
@@ -245,6 +247,17 @@ export const SessionDescription = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
245
247
|
],
|
|
246
248
|
);
|
|
247
249
|
|
|
250
|
+
/**
|
|
251
|
+
* @generated from message livekit.MappedSessionDescription
|
|
252
|
+
*/
|
|
253
|
+
export const MappedSessionDescription = /*@__PURE__*/ proto3.makeMessageType(
|
|
254
|
+
"livekit.MappedSessionDescription",
|
|
255
|
+
() => [
|
|
256
|
+
{ no: 1, name: "session_description", kind: "message", T: SessionDescription },
|
|
257
|
+
{ no: 2, name: "mid_to_track_id", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
258
|
+
],
|
|
259
|
+
);
|
|
260
|
+
|
|
248
261
|
/**
|
|
249
262
|
* @generated from message livekit.ParticipantUpdate
|
|
250
263
|
*/
|
|
@@ -470,6 +483,17 @@ export const SubscribedQualityUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
470
483
|
],
|
|
471
484
|
);
|
|
472
485
|
|
|
486
|
+
/**
|
|
487
|
+
* @generated from message livekit.SubscribedAudioCodecUpdate
|
|
488
|
+
*/
|
|
489
|
+
export const SubscribedAudioCodecUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
490
|
+
"livekit.SubscribedAudioCodecUpdate",
|
|
491
|
+
() => [
|
|
492
|
+
{ no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
493
|
+
{ no: 2, name: "subscribed_audio_codecs", kind: "message", T: SubscribedAudioCodec, repeated: true },
|
|
494
|
+
],
|
|
495
|
+
);
|
|
496
|
+
|
|
473
497
|
/**
|
|
474
498
|
* @generated from message livekit.TrackPermission
|
|
475
499
|
*/
|
|
@@ -640,6 +664,12 @@ export const RequestResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
640
664
|
{ no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
641
665
|
{ no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(RequestResponse_Reason) },
|
|
642
666
|
{ no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
667
|
+
{ no: 4, name: "trickle", kind: "message", T: TrickleRequest, oneof: "request" },
|
|
668
|
+
{ no: 5, name: "add_track", kind: "message", T: AddTrackRequest, oneof: "request" },
|
|
669
|
+
{ no: 6, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "request" },
|
|
670
|
+
{ no: 7, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "request" },
|
|
671
|
+
{ no: 8, name: "update_audio_track", kind: "message", T: UpdateLocalAudioTrack, oneof: "request" },
|
|
672
|
+
{ no: 9, name: "update_video_track", kind: "message", T: UpdateLocalVideoTrack, oneof: "request" },
|
|
643
673
|
],
|
|
644
674
|
);
|
|
645
675
|
|
|
@@ -653,6 +683,9 @@ export const RequestResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
|
|
|
653
683
|
{no: 1, name: "NOT_FOUND"},
|
|
654
684
|
{no: 2, name: "NOT_ALLOWED"},
|
|
655
685
|
{no: 3, name: "LIMIT_EXCEEDED"},
|
|
686
|
+
{no: 4, name: "QUEUED"},
|
|
687
|
+
{no: 5, name: "UNSUPPORTED_TYPE"},
|
|
688
|
+
{no: 6, name: "UNCLASSIFIED_ERROR"},
|
|
656
689
|
],
|
|
657
690
|
);
|
|
658
691
|
|