@livekit/protocol 1.39.3 → 1.40.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.
@@ -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
- * initial join exchange, for publisher
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 publisher offer
91
+ * participant answering subscriber offer
92
92
  *
93
93
  * @generated from field: livekit.SessionDescription answer = 2;
94
94
  */
@@ -454,6 +454,16 @@ export declare class SimulcastCodec extends Message<SimulcastCodec> {
454
454
  */
455
455
  cid: string;
456
456
 
457
+ /**
458
+ * @generated from field: repeated livekit.VideoLayer layers = 4;
459
+ */
460
+ layers: VideoLayer[];
461
+
462
+ /**
463
+ * @generated from field: livekit.VideoLayer.Mode video_layer_mode = 5;
464
+ */
465
+ videoLayerMode: VideoLayer_Mode;
466
+
457
467
  constructor(data?: PartialMessage<SimulcastCodec>);
458
468
 
459
469
  static readonly runtime: typeof proto3;
@@ -491,8 +501,6 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
491
501
  type: TrackType;
492
502
 
493
503
  /**
494
- * to be deprecated in favor of layers
495
- *
496
504
  * @generated from field: uint32 width = 4;
497
505
  */
498
506
  width: number;
@@ -2118,3 +2126,163 @@ export declare class TrackSubscribed extends Message<TrackSubscribed> {
2118
2126
  static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
2119
2127
  }
2120
2128
 
2129
+ /**
2130
+ * @generated from message livekit.ConnectionSettings
2131
+ */
2132
+ export declare class ConnectionSettings extends Message<ConnectionSettings> {
2133
+ /**
2134
+ * @generated from field: bool auto_subscribe = 1;
2135
+ */
2136
+ autoSubscribe: boolean;
2137
+
2138
+ /**
2139
+ * @generated from field: bool adaptive_stream = 2;
2140
+ */
2141
+ adaptiveStream: boolean;
2142
+
2143
+ /**
2144
+ * @generated from field: optional bool subscriber_allow_pause = 3;
2145
+ */
2146
+ subscriberAllowPause?: boolean;
2147
+
2148
+ /**
2149
+ * @generated from field: bool disable_ice_lite = 4;
2150
+ */
2151
+ disableIceLite: boolean;
2152
+
2153
+ constructor(data?: PartialMessage<ConnectionSettings>);
2154
+
2155
+ static readonly runtime: typeof proto3;
2156
+ static readonly typeName = "livekit.ConnectionSettings";
2157
+ static readonly fields: FieldList;
2158
+
2159
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionSettings;
2160
+
2161
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionSettings;
2162
+
2163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionSettings;
2164
+
2165
+ static equals(a: ConnectionSettings | PlainMessage<ConnectionSettings> | undefined, b: ConnectionSettings | PlainMessage<ConnectionSettings> | undefined): boolean;
2166
+ }
2167
+
2168
+ /**
2169
+ * @generated from message livekit.JoinRequest
2170
+ */
2171
+ export declare class JoinRequest extends Message<JoinRequest> {
2172
+ /**
2173
+ * @generated from field: livekit.ClientInfo client_info = 1;
2174
+ */
2175
+ clientInfo?: ClientInfo;
2176
+
2177
+ /**
2178
+ * @generated from field: livekit.ConnectionSettings connection_settings = 2;
2179
+ */
2180
+ connectionSettings?: ConnectionSettings;
2181
+
2182
+ /**
2183
+ * if not empty, will overwrite `metadata` in token
2184
+ *
2185
+ * @generated from field: string metadata = 3;
2186
+ */
2187
+ metadata: string;
2188
+
2189
+ /**
2190
+ * will set keys provided via this
2191
+ * will overwrite if the same key is in the token
2192
+ * will not delete keys from token if there is a key collision and this sets that key to empty value
2193
+ *
2194
+ * @generated from field: map<string, string> participant_attributes = 4;
2195
+ */
2196
+ participantAttributes: { [key: string]: string };
2197
+
2198
+ /**
2199
+ * @generated from field: repeated livekit.AddTrackRequest add_track_requests = 5;
2200
+ */
2201
+ addTrackRequests: AddTrackRequest[];
2202
+
2203
+ /**
2204
+ * @generated from field: livekit.SessionDescription publisher_offer = 6;
2205
+ */
2206
+ publisherOffer?: SessionDescription;
2207
+
2208
+ /**
2209
+ * @generated from field: bool reconnect = 7;
2210
+ */
2211
+ reconnect: boolean;
2212
+
2213
+ /**
2214
+ * @generated from field: livekit.ReconnectReason reconnect_reason = 8;
2215
+ */
2216
+ reconnectReason: ReconnectReason;
2217
+
2218
+ /**
2219
+ * @generated from field: string participant_sid = 9;
2220
+ */
2221
+ participantSid: string;
2222
+
2223
+ /**
2224
+ * @generated from field: livekit.SyncState sync_state = 10;
2225
+ */
2226
+ syncState?: SyncState;
2227
+
2228
+ constructor(data?: PartialMessage<JoinRequest>);
2229
+
2230
+ static readonly runtime: typeof proto3;
2231
+ static readonly typeName = "livekit.JoinRequest";
2232
+ static readonly fields: FieldList;
2233
+
2234
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JoinRequest;
2235
+
2236
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JoinRequest;
2237
+
2238
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JoinRequest;
2239
+
2240
+ static equals(a: JoinRequest | PlainMessage<JoinRequest> | undefined, b: JoinRequest | PlainMessage<JoinRequest> | undefined): boolean;
2241
+ }
2242
+
2243
+ /**
2244
+ * @generated from message livekit.WrappedJoinRequest
2245
+ */
2246
+ export declare class WrappedJoinRequest extends Message<WrappedJoinRequest> {
2247
+ /**
2248
+ * @generated from field: livekit.WrappedJoinRequest.Compression compression = 1;
2249
+ */
2250
+ compression: WrappedJoinRequest_Compression;
2251
+
2252
+ /**
2253
+ * marshalled JoinRequest + potentially compressed
2254
+ *
2255
+ * @generated from field: bytes join_request = 2;
2256
+ */
2257
+ joinRequest: Uint8Array;
2258
+
2259
+ constructor(data?: PartialMessage<WrappedJoinRequest>);
2260
+
2261
+ static readonly runtime: typeof proto3;
2262
+ static readonly typeName = "livekit.WrappedJoinRequest";
2263
+ static readonly fields: FieldList;
2264
+
2265
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WrappedJoinRequest;
2266
+
2267
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WrappedJoinRequest;
2268
+
2269
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WrappedJoinRequest;
2270
+
2271
+ static equals(a: WrappedJoinRequest | PlainMessage<WrappedJoinRequest> | undefined, b: WrappedJoinRequest | PlainMessage<WrappedJoinRequest> | undefined): boolean;
2272
+ }
2273
+
2274
+ /**
2275
+ * @generated from enum livekit.WrappedJoinRequest.Compression
2276
+ */
2277
+ export declare enum WrappedJoinRequest_Compression {
2278
+ /**
2279
+ * @generated from enum value: NONE = 0;
2280
+ */
2281
+ NONE = 0,
2282
+
2283
+ /**
2284
+ * @generated from enum value: GZIP = 1;
2285
+ */
2286
+ GZIP = 1,
2287
+ }
2288
+
@@ -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
@@ -120,6 +120,8 @@ export const SimulcastCodec = /*@__PURE__*/ proto3.makeMessageType(
120
120
  () => [
121
121
  { no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
122
122
  { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
123
+ { no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
124
+ { no: 5, name: "video_layer_mode", kind: "enum", T: proto3.getEnumType(VideoLayer_Mode) },
123
125
  ],
124
126
  );
125
127
 
@@ -663,3 +665,57 @@ export const TrackSubscribed = /*@__PURE__*/ proto3.makeMessageType(
663
665
  ],
664
666
  );
665
667
 
668
+ /**
669
+ * @generated from message livekit.ConnectionSettings
670
+ */
671
+ export const ConnectionSettings = /*@__PURE__*/ proto3.makeMessageType(
672
+ "livekit.ConnectionSettings",
673
+ () => [
674
+ { no: 1, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
675
+ { no: 2, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
676
+ { no: 3, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
677
+ { no: 4, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
678
+ ],
679
+ );
680
+
681
+ /**
682
+ * @generated from message livekit.JoinRequest
683
+ */
684
+ export const JoinRequest = /*@__PURE__*/ proto3.makeMessageType(
685
+ "livekit.JoinRequest",
686
+ () => [
687
+ { no: 1, name: "client_info", kind: "message", T: ClientInfo },
688
+ { no: 2, name: "connection_settings", kind: "message", T: ConnectionSettings },
689
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
690
+ { no: 4, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
691
+ { no: 5, name: "add_track_requests", kind: "message", T: AddTrackRequest, repeated: true },
692
+ { no: 6, name: "publisher_offer", kind: "message", T: SessionDescription },
693
+ { no: 7, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
694
+ { no: 8, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
695
+ { no: 9, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
696
+ { no: 10, name: "sync_state", kind: "message", T: SyncState },
697
+ ],
698
+ );
699
+
700
+ /**
701
+ * @generated from message livekit.WrappedJoinRequest
702
+ */
703
+ export const WrappedJoinRequest = /*@__PURE__*/ proto3.makeMessageType(
704
+ "livekit.WrappedJoinRequest",
705
+ () => [
706
+ { no: 1, name: "compression", kind: "enum", T: proto3.getEnumType(WrappedJoinRequest_Compression) },
707
+ { no: 2, name: "join_request", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
708
+ ],
709
+ );
710
+
711
+ /**
712
+ * @generated from enum livekit.WrappedJoinRequest.Compression
713
+ */
714
+ export const WrappedJoinRequest_Compression = /*@__PURE__*/ proto3.makeEnum(
715
+ "livekit.WrappedJoinRequest.Compression",
716
+ [
717
+ {no: 0, name: "NONE"},
718
+ {no: 1, name: "GZIP"},
719
+ ],
720
+ );
721
+
@@ -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
  *
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.39.3';
2
+ export const version = '1.40.0';