@livekit/protocol 1.39.3 → 2.0.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 +226 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +470 -19
- package/dist/index.d.mts +470 -19
- package/dist/index.d.ts +470 -19
- package/dist/index.mjs +218 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- 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 +63 -0
- package/src/gen/livekit_cloud_agent_pb.js +23 -0
- package/src/gen/livekit_egress_pb.d.ts +14 -0
- package/src/gen/livekit_egress_pb.js +2 -0
- package/src/gen/livekit_internal_pb.d.ts +25 -2
- package/src/gen/livekit_internal_pb.js +5 -0
- package/src/gen/livekit_models_pb.d.ts +227 -11
- package/src/gen/livekit_models_pb.js +59 -0
- package/src/gen/livekit_phone_number_pb.d.ts +577 -0
- package/src/gen/livekit_phone_number_pb.js +198 -0
- package/src/gen/livekit_room_pb.d.ts +7 -0
- package/src/gen/livekit_room_pb.js +1 -0
- package/src/gen/livekit_rtc_pb.d.ts +216 -7
- package/src/gen/livekit_rtc_pb.js +69 -1
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
|
|
2
|
+
// @generated from file livekit_phone_number.proto (package livekit, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
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
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Phone number status enumeration
|
|
29
|
+
*
|
|
30
|
+
* @generated from enum livekit.PhoneNumberStatus
|
|
31
|
+
*/
|
|
32
|
+
export const PhoneNumberStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
33
|
+
"livekit.PhoneNumberStatus",
|
|
34
|
+
[
|
|
35
|
+
{no: 0, name: "PHONE_NUMBER_STATUS_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
36
|
+
{no: 1, name: "PHONE_NUMBER_STATUS_ACTIVE", localName: "ACTIVE"},
|
|
37
|
+
{no: 2, name: "PHONE_NUMBER_STATUS_PENDING", localName: "PENDING"},
|
|
38
|
+
{no: 3, name: "PHONE_NUMBER_STATUS_RELEASED", localName: "RELEASED"},
|
|
39
|
+
],
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* ListPhoneNumberInventoryRequest - Request to list available phone numbers
|
|
44
|
+
*
|
|
45
|
+
* @generated from message livekit.ListPhoneNumberInventoryRequest
|
|
46
|
+
*/
|
|
47
|
+
export const ListPhoneNumberInventoryRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
48
|
+
"livekit.ListPhoneNumberInventoryRequest",
|
|
49
|
+
() => [
|
|
50
|
+
{ no: 1, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
|
+
{ no: 2, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
52
|
+
{ no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
53
|
+
{ no: 4, name: "page_token", kind: "message", T: TokenPagination },
|
|
54
|
+
],
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* ListPhoneNumberInventoryResponse - Response containing available phone numbers
|
|
59
|
+
*
|
|
60
|
+
* @generated from message livekit.ListPhoneNumberInventoryResponse
|
|
61
|
+
*/
|
|
62
|
+
export const ListPhoneNumberInventoryResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
63
|
+
"livekit.ListPhoneNumberInventoryResponse",
|
|
64
|
+
() => [
|
|
65
|
+
{ no: 1, name: "items", kind: "message", T: PhoneNumberInventoryItem, repeated: true },
|
|
66
|
+
{ no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
|
|
67
|
+
],
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* PurchasePhoneNumberRequest - Request to purchase phone numbers
|
|
72
|
+
*
|
|
73
|
+
* @generated from message livekit.PurchasePhoneNumberRequest
|
|
74
|
+
*/
|
|
75
|
+
export const PurchasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
76
|
+
"livekit.PurchasePhoneNumberRequest",
|
|
77
|
+
() => [
|
|
78
|
+
{ no: 1, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
79
|
+
],
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* PurchasePhoneNumberResponse - Response containing the purchased phone numbers
|
|
84
|
+
*
|
|
85
|
+
* @generated from message livekit.PurchasePhoneNumberResponse
|
|
86
|
+
*/
|
|
87
|
+
export const PurchasePhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
88
|
+
"livekit.PurchasePhoneNumberResponse",
|
|
89
|
+
() => [
|
|
90
|
+
{ no: 1, name: "phone_numbers", kind: "message", T: PurchasedPhoneNumber, repeated: true },
|
|
91
|
+
],
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* ListPurchasedPhoneNumbersRequest - Request to list purchased phone numbers
|
|
96
|
+
*
|
|
97
|
+
* @generated from message livekit.ListPurchasedPhoneNumbersRequest
|
|
98
|
+
*/
|
|
99
|
+
export const ListPurchasedPhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
100
|
+
"livekit.ListPurchasedPhoneNumbersRequest",
|
|
101
|
+
() => [
|
|
102
|
+
{ no: 1, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
103
|
+
{ no: 2, name: "page_token", kind: "message", T: TokenPagination },
|
|
104
|
+
],
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* ListPurchasedPhoneNumbersResponse - Response containing purchased phone numbers
|
|
109
|
+
*
|
|
110
|
+
* @generated from message livekit.ListPurchasedPhoneNumbersResponse
|
|
111
|
+
*/
|
|
112
|
+
export const ListPurchasedPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
113
|
+
"livekit.ListPurchasedPhoneNumbersResponse",
|
|
114
|
+
() => [
|
|
115
|
+
{ no: 1, name: "items", kind: "message", T: PurchasedPhoneNumber, repeated: true },
|
|
116
|
+
{ no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
|
|
117
|
+
{ no: 3, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
118
|
+
],
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* ReleasePhoneNumberRequest - Request to release purchased phone numbers
|
|
123
|
+
*
|
|
124
|
+
* @generated from message livekit.ReleasePhoneNumberRequest
|
|
125
|
+
*/
|
|
126
|
+
export const ReleasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
127
|
+
"livekit.ReleasePhoneNumberRequest",
|
|
128
|
+
() => [
|
|
129
|
+
{ no: 1, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
130
|
+
],
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* GlobalPhoneNumber represents a phone number with standardized format
|
|
135
|
+
*
|
|
136
|
+
* @generated from message livekit.GlobalPhoneNumber
|
|
137
|
+
*/
|
|
138
|
+
export const GlobalPhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
|
|
139
|
+
"livekit.GlobalPhoneNumber",
|
|
140
|
+
() => [
|
|
141
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
142
|
+
{ no: 2, name: "e164_format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
143
|
+
{ no: 3, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
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 },
|
|
151
|
+
],
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* TelephonyCost represents the pricing structure for a specific telephony service
|
|
156
|
+
*
|
|
157
|
+
* @generated from message livekit.TelephonyCost
|
|
158
|
+
*/
|
|
159
|
+
export const TelephonyCost = /*@__PURE__*/ proto3.makeMessageType(
|
|
160
|
+
"livekit.TelephonyCost",
|
|
161
|
+
() => [
|
|
162
|
+
{ no: 1, name: "resource", kind: "enum", T: proto3.getEnumType(TelephonyCostType) },
|
|
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 */ },
|
|
166
|
+
],
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* PhoneNumberInventoryItem - Represents an available phone number for purchase
|
|
171
|
+
*
|
|
172
|
+
* @generated from message livekit.PhoneNumberInventoryItem
|
|
173
|
+
*/
|
|
174
|
+
export const PhoneNumberInventoryItem = /*@__PURE__*/ proto3.makeMessageType(
|
|
175
|
+
"livekit.PhoneNumberInventoryItem",
|
|
176
|
+
() => [
|
|
177
|
+
{ no: 1, name: "phone_number", kind: "message", T: GlobalPhoneNumber },
|
|
178
|
+
{ no: 2, name: "capabilities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
179
|
+
{ no: 3, name: "costs", kind: "message", T: TelephonyCost, repeated: true },
|
|
180
|
+
],
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* PurchasedPhoneNumber - Represents a phone number owned by a LiveKit project
|
|
185
|
+
*
|
|
186
|
+
* @generated from message livekit.PurchasedPhoneNumber
|
|
187
|
+
*/
|
|
188
|
+
export const PurchasedPhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
|
|
189
|
+
"livekit.PurchasedPhoneNumber",
|
|
190
|
+
() => [
|
|
191
|
+
{ no: 1, name: "phone_number", kind: "message", T: GlobalPhoneNumber },
|
|
192
|
+
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus) },
|
|
193
|
+
{ no: 3, name: "assigned_at", kind: "message", T: Timestamp },
|
|
194
|
+
{ no: 4, name: "released_at", kind: "message", T: Timestamp },
|
|
195
|
+
{ no: 5, name: "sip_dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
|
|
196
|
+
],
|
|
197
|
+
);
|
|
198
|
+
|
|
@@ -730,6 +730,13 @@ export declare class RoomConfiguration extends Message<RoomConfiguration> {
|
|
|
730
730
|
*/
|
|
731
731
|
maxParticipants: number;
|
|
732
732
|
|
|
733
|
+
/**
|
|
734
|
+
* metadata of room
|
|
735
|
+
*
|
|
736
|
+
* @generated from field: string metadata = 11;
|
|
737
|
+
*/
|
|
738
|
+
metadata: string;
|
|
739
|
+
|
|
733
740
|
/**
|
|
734
741
|
* egress
|
|
735
742
|
*
|
|
@@ -250,6 +250,7 @@ export const RoomConfiguration = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
250
250
|
{ no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
251
251
|
{ no: 3, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
252
252
|
{ no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
253
|
+
{ no: 11, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
253
254
|
{ no: 5, name: "egress", kind: "message", T: RoomEgress },
|
|
254
255
|
{ no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
255
256
|
{ no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
@@ -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, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
|
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";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @generated from enum livekit.SignalTarget
|
|
@@ -80,7 +80,7 @@ export declare class SignalRequest extends Message<SignalRequest> {
|
|
|
80
80
|
*/
|
|
81
81
|
message: {
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* participant offer for publisher
|
|
84
84
|
*
|
|
85
85
|
* @generated from field: livekit.SessionDescription offer = 1;
|
|
86
86
|
*/
|
|
@@ -88,7 +88,7 @@ export declare class SignalRequest extends Message<SignalRequest> {
|
|
|
88
88
|
case: "offer";
|
|
89
89
|
} | {
|
|
90
90
|
/**
|
|
91
|
-
* participant answering
|
|
91
|
+
* participant answering subscriber offer
|
|
92
92
|
*
|
|
93
93
|
* @generated from field: livekit.SessionDescription answer = 2;
|
|
94
94
|
*/
|
|
@@ -423,6 +423,14 @@ export declare class SignalResponse extends Message<SignalResponse> {
|
|
|
423
423
|
*/
|
|
424
424
|
value: RoomMovedResponse;
|
|
425
425
|
case: "roomMoved";
|
|
426
|
+
} | {
|
|
427
|
+
/**
|
|
428
|
+
* notify number of required media sections to satisfy subscribed tracks
|
|
429
|
+
*
|
|
430
|
+
* @generated from field: livekit.MediaSectionsRequirement media_sections_requirement = 25;
|
|
431
|
+
*/
|
|
432
|
+
value: MediaSectionsRequirement;
|
|
433
|
+
case: "mediaSectionsRequirement";
|
|
426
434
|
} | { case: undefined; value?: undefined };
|
|
427
435
|
|
|
428
436
|
constructor(data?: PartialMessage<SignalResponse>);
|
|
@@ -454,6 +462,16 @@ export declare class SimulcastCodec extends Message<SimulcastCodec> {
|
|
|
454
462
|
*/
|
|
455
463
|
cid: string;
|
|
456
464
|
|
|
465
|
+
/**
|
|
466
|
+
* @generated from field: repeated livekit.VideoLayer layers = 4;
|
|
467
|
+
*/
|
|
468
|
+
layers: VideoLayer[];
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* @generated from field: livekit.VideoLayer.Mode video_layer_mode = 5;
|
|
472
|
+
*/
|
|
473
|
+
videoLayerMode: VideoLayer_Mode;
|
|
474
|
+
|
|
457
475
|
constructor(data?: PartialMessage<SimulcastCodec>);
|
|
458
476
|
|
|
459
477
|
static readonly runtime: typeof proto3;
|
|
@@ -491,8 +509,6 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
491
509
|
type: TrackType;
|
|
492
510
|
|
|
493
511
|
/**
|
|
494
|
-
* to be deprecated in favor of layers
|
|
495
|
-
*
|
|
496
512
|
* @generated from field: uint32 width = 4;
|
|
497
513
|
*/
|
|
498
514
|
width: number;
|
|
@@ -1673,7 +1689,9 @@ export declare class RoomMovedResponse extends Message<RoomMovedResponse> {
|
|
|
1673
1689
|
*/
|
|
1674
1690
|
export declare class SyncState extends Message<SyncState> {
|
|
1675
1691
|
/**
|
|
1676
|
-
* last subscribe answer before reconnecting
|
|
1692
|
+
* last subscribe/publish answer before reconnecting
|
|
1693
|
+
* subscribe answer if using dual peer connection
|
|
1694
|
+
* publish answer if using single peer connection
|
|
1677
1695
|
*
|
|
1678
1696
|
* @generated from field: livekit.SessionDescription answer = 1;
|
|
1679
1697
|
*/
|
|
@@ -1695,7 +1713,9 @@ export declare class SyncState extends Message<SyncState> {
|
|
|
1695
1713
|
dataChannels: DataChannelInfo[];
|
|
1696
1714
|
|
|
1697
1715
|
/**
|
|
1698
|
-
* last received server side offer before reconnecting
|
|
1716
|
+
* last received server side offer/sent client side offer before reconnecting
|
|
1717
|
+
* received server side offer if using dual peer connection
|
|
1718
|
+
* sent client side offer if using single peer connection
|
|
1699
1719
|
*
|
|
1700
1720
|
* @generated from field: livekit.SessionDescription offer = 5;
|
|
1701
1721
|
*/
|
|
@@ -2118,3 +2138,192 @@ export declare class TrackSubscribed extends Message<TrackSubscribed> {
|
|
|
2118
2138
|
static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
|
|
2119
2139
|
}
|
|
2120
2140
|
|
|
2141
|
+
/**
|
|
2142
|
+
* @generated from message livekit.ConnectionSettings
|
|
2143
|
+
*/
|
|
2144
|
+
export declare class ConnectionSettings extends Message<ConnectionSettings> {
|
|
2145
|
+
/**
|
|
2146
|
+
* @generated from field: bool auto_subscribe = 1;
|
|
2147
|
+
*/
|
|
2148
|
+
autoSubscribe: boolean;
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* @generated from field: bool adaptive_stream = 2;
|
|
2152
|
+
*/
|
|
2153
|
+
adaptiveStream: boolean;
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* @generated from field: optional bool subscriber_allow_pause = 3;
|
|
2157
|
+
*/
|
|
2158
|
+
subscriberAllowPause?: boolean;
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* @generated from field: bool disable_ice_lite = 4;
|
|
2162
|
+
*/
|
|
2163
|
+
disableIceLite: boolean;
|
|
2164
|
+
|
|
2165
|
+
constructor(data?: PartialMessage<ConnectionSettings>);
|
|
2166
|
+
|
|
2167
|
+
static readonly runtime: typeof proto3;
|
|
2168
|
+
static readonly typeName = "livekit.ConnectionSettings";
|
|
2169
|
+
static readonly fields: FieldList;
|
|
2170
|
+
|
|
2171
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionSettings;
|
|
2172
|
+
|
|
2173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionSettings;
|
|
2174
|
+
|
|
2175
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionSettings;
|
|
2176
|
+
|
|
2177
|
+
static equals(a: ConnectionSettings | PlainMessage<ConnectionSettings> | undefined, b: ConnectionSettings | PlainMessage<ConnectionSettings> | undefined): boolean;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* @generated from message livekit.JoinRequest
|
|
2182
|
+
*/
|
|
2183
|
+
export declare class JoinRequest extends Message<JoinRequest> {
|
|
2184
|
+
/**
|
|
2185
|
+
* @generated from field: livekit.ClientInfo client_info = 1;
|
|
2186
|
+
*/
|
|
2187
|
+
clientInfo?: ClientInfo;
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* @generated from field: livekit.ConnectionSettings connection_settings = 2;
|
|
2191
|
+
*/
|
|
2192
|
+
connectionSettings?: ConnectionSettings;
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* if not empty, will overwrite `metadata` in token
|
|
2196
|
+
*
|
|
2197
|
+
* @generated from field: string metadata = 3;
|
|
2198
|
+
*/
|
|
2199
|
+
metadata: string;
|
|
2200
|
+
|
|
2201
|
+
/**
|
|
2202
|
+
* will set keys provided via this
|
|
2203
|
+
* will overwrite if the same key is in the token
|
|
2204
|
+
* will not delete keys from token if there is a key collision and this sets that key to empty value
|
|
2205
|
+
*
|
|
2206
|
+
* @generated from field: map<string, string> participant_attributes = 4;
|
|
2207
|
+
*/
|
|
2208
|
+
participantAttributes: { [key: string]: string };
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* @generated from field: repeated livekit.AddTrackRequest add_track_requests = 5;
|
|
2212
|
+
*/
|
|
2213
|
+
addTrackRequests: AddTrackRequest[];
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* @generated from field: livekit.SessionDescription publisher_offer = 6;
|
|
2217
|
+
*/
|
|
2218
|
+
publisherOffer?: SessionDescription;
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* @generated from field: bool reconnect = 7;
|
|
2222
|
+
*/
|
|
2223
|
+
reconnect: boolean;
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* @generated from field: livekit.ReconnectReason reconnect_reason = 8;
|
|
2227
|
+
*/
|
|
2228
|
+
reconnectReason: ReconnectReason;
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* @generated from field: string participant_sid = 9;
|
|
2232
|
+
*/
|
|
2233
|
+
participantSid: string;
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* @generated from field: livekit.SyncState sync_state = 10;
|
|
2237
|
+
*/
|
|
2238
|
+
syncState?: SyncState;
|
|
2239
|
+
|
|
2240
|
+
constructor(data?: PartialMessage<JoinRequest>);
|
|
2241
|
+
|
|
2242
|
+
static readonly runtime: typeof proto3;
|
|
2243
|
+
static readonly typeName = "livekit.JoinRequest";
|
|
2244
|
+
static readonly fields: FieldList;
|
|
2245
|
+
|
|
2246
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JoinRequest;
|
|
2247
|
+
|
|
2248
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JoinRequest;
|
|
2249
|
+
|
|
2250
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JoinRequest;
|
|
2251
|
+
|
|
2252
|
+
static equals(a: JoinRequest | PlainMessage<JoinRequest> | undefined, b: JoinRequest | PlainMessage<JoinRequest> | undefined): boolean;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* @generated from message livekit.WrappedJoinRequest
|
|
2257
|
+
*/
|
|
2258
|
+
export declare class WrappedJoinRequest extends Message<WrappedJoinRequest> {
|
|
2259
|
+
/**
|
|
2260
|
+
* @generated from field: livekit.WrappedJoinRequest.Compression compression = 1;
|
|
2261
|
+
*/
|
|
2262
|
+
compression: WrappedJoinRequest_Compression;
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* marshalled JoinRequest + potentially compressed
|
|
2266
|
+
*
|
|
2267
|
+
* @generated from field: bytes join_request = 2;
|
|
2268
|
+
*/
|
|
2269
|
+
joinRequest: Uint8Array;
|
|
2270
|
+
|
|
2271
|
+
constructor(data?: PartialMessage<WrappedJoinRequest>);
|
|
2272
|
+
|
|
2273
|
+
static readonly runtime: typeof proto3;
|
|
2274
|
+
static readonly typeName = "livekit.WrappedJoinRequest";
|
|
2275
|
+
static readonly fields: FieldList;
|
|
2276
|
+
|
|
2277
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WrappedJoinRequest;
|
|
2278
|
+
|
|
2279
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WrappedJoinRequest;
|
|
2280
|
+
|
|
2281
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WrappedJoinRequest;
|
|
2282
|
+
|
|
2283
|
+
static equals(a: WrappedJoinRequest | PlainMessage<WrappedJoinRequest> | undefined, b: WrappedJoinRequest | PlainMessage<WrappedJoinRequest> | undefined): boolean;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* @generated from enum livekit.WrappedJoinRequest.Compression
|
|
2288
|
+
*/
|
|
2289
|
+
export declare enum WrappedJoinRequest_Compression {
|
|
2290
|
+
/**
|
|
2291
|
+
* @generated from enum value: NONE = 0;
|
|
2292
|
+
*/
|
|
2293
|
+
NONE = 0,
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* @generated from enum value: GZIP = 1;
|
|
2297
|
+
*/
|
|
2298
|
+
GZIP = 1,
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* @generated from message livekit.MediaSectionsRequirement
|
|
2303
|
+
*/
|
|
2304
|
+
export declare class MediaSectionsRequirement extends Message<MediaSectionsRequirement> {
|
|
2305
|
+
/**
|
|
2306
|
+
* @generated from field: uint32 num_audios = 1;
|
|
2307
|
+
*/
|
|
2308
|
+
numAudios: number;
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* @generated from field: uint32 num_videos = 2;
|
|
2312
|
+
*/
|
|
2313
|
+
numVideos: number;
|
|
2314
|
+
|
|
2315
|
+
constructor(data?: PartialMessage<MediaSectionsRequirement>);
|
|
2316
|
+
|
|
2317
|
+
static readonly runtime: typeof proto3;
|
|
2318
|
+
static readonly typeName = "livekit.MediaSectionsRequirement";
|
|
2319
|
+
static readonly fields: FieldList;
|
|
2320
|
+
|
|
2321
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaSectionsRequirement;
|
|
2322
|
+
|
|
2323
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaSectionsRequirement;
|
|
2324
|
+
|
|
2325
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaSectionsRequirement;
|
|
2326
|
+
|
|
2327
|
+
static equals(a: MediaSectionsRequirement | PlainMessage<MediaSectionsRequirement> | undefined, b: MediaSectionsRequirement | PlainMessage<MediaSectionsRequirement> | undefined): boolean;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
-
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
|
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";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @generated from enum livekit.SignalTarget
|
|
@@ -109,6 +109,7 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
109
109
|
{ no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
|
|
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
|
+
{ no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
|
|
112
113
|
],
|
|
113
114
|
);
|
|
114
115
|
|
|
@@ -120,6 +121,8 @@ export const SimulcastCodec = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
120
121
|
() => [
|
|
121
122
|
{ no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
122
123
|
{ no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
124
|
+
{ no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
|
125
|
+
{ no: 5, name: "video_layer_mode", kind: "enum", T: proto3.getEnumType(VideoLayer_Mode) },
|
|
123
126
|
],
|
|
124
127
|
);
|
|
125
128
|
|
|
@@ -663,3 +666,68 @@ export const TrackSubscribed = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
663
666
|
],
|
|
664
667
|
);
|
|
665
668
|
|
|
669
|
+
/**
|
|
670
|
+
* @generated from message livekit.ConnectionSettings
|
|
671
|
+
*/
|
|
672
|
+
export const ConnectionSettings = /*@__PURE__*/ proto3.makeMessageType(
|
|
673
|
+
"livekit.ConnectionSettings",
|
|
674
|
+
() => [
|
|
675
|
+
{ no: 1, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
676
|
+
{ no: 2, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
677
|
+
{ no: 3, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
678
|
+
{ no: 4, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
679
|
+
],
|
|
680
|
+
);
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* @generated from message livekit.JoinRequest
|
|
684
|
+
*/
|
|
685
|
+
export const JoinRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
686
|
+
"livekit.JoinRequest",
|
|
687
|
+
() => [
|
|
688
|
+
{ no: 1, name: "client_info", kind: "message", T: ClientInfo },
|
|
689
|
+
{ no: 2, name: "connection_settings", kind: "message", T: ConnectionSettings },
|
|
690
|
+
{ no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
691
|
+
{ no: 4, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
692
|
+
{ no: 5, name: "add_track_requests", kind: "message", T: AddTrackRequest, repeated: true },
|
|
693
|
+
{ no: 6, name: "publisher_offer", kind: "message", T: SessionDescription },
|
|
694
|
+
{ no: 7, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
695
|
+
{ no: 8, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
|
|
696
|
+
{ no: 9, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
697
|
+
{ no: 10, name: "sync_state", kind: "message", T: SyncState },
|
|
698
|
+
],
|
|
699
|
+
);
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* @generated from message livekit.WrappedJoinRequest
|
|
703
|
+
*/
|
|
704
|
+
export const WrappedJoinRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
705
|
+
"livekit.WrappedJoinRequest",
|
|
706
|
+
() => [
|
|
707
|
+
{ no: 1, name: "compression", kind: "enum", T: proto3.getEnumType(WrappedJoinRequest_Compression) },
|
|
708
|
+
{ no: 2, name: "join_request", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
709
|
+
],
|
|
710
|
+
);
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* @generated from enum livekit.WrappedJoinRequest.Compression
|
|
714
|
+
*/
|
|
715
|
+
export const WrappedJoinRequest_Compression = /*@__PURE__*/ proto3.makeEnum(
|
|
716
|
+
"livekit.WrappedJoinRequest.Compression",
|
|
717
|
+
[
|
|
718
|
+
{no: 0, name: "NONE"},
|
|
719
|
+
{no: 1, name: "GZIP"},
|
|
720
|
+
],
|
|
721
|
+
);
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* @generated from message livekit.MediaSectionsRequirement
|
|
725
|
+
*/
|
|
726
|
+
export const MediaSectionsRequirement = /*@__PURE__*/ proto3.makeMessageType(
|
|
727
|
+
"livekit.MediaSectionsRequirement",
|
|
728
|
+
() => [
|
|
729
|
+
{ no: 1, name: "num_audios", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
730
|
+
{ no: 2, name: "num_videos", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
731
|
+
],
|
|
732
|
+
);
|
|
733
|
+
|
|
@@ -28,7 +28,7 @@ import type { IngressInfo } from "./livekit_ingress_pb.js";
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
30
30
|
/**
|
|
31
|
-
* one of room_started, room_finished, participant_joined, participant_left,
|
|
31
|
+
* one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
|
|
32
32
|
* track_published, track_unpublished, egress_started, egress_updated, egress_ended,
|
|
33
33
|
* ingress_started, ingress_ended
|
|
34
34
|
*
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '
|
|
2
|
+
export const version = '2.0.0';
|