@livekit/protocol 1.48.0 → 1.48.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.
@@ -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, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
22
+ import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataBlob, DataBlobKey, DataTrackFrameEncoding, DataTrackInfo, DataTrackSchemaId, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, 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
@@ -236,6 +236,22 @@ export declare class SignalRequest extends Message<SignalRequest> {
236
236
  */
237
237
  value: UpdateDataSubscription;
238
238
  case: "updateDataSubscription";
239
+ } | {
240
+ /**
241
+ * Store a data blob.
242
+ *
243
+ * @generated from field: livekit.StoreDataBlobRequest store_data_blob_request = 22;
244
+ */
245
+ value: StoreDataBlobRequest;
246
+ case: "storeDataBlobRequest";
247
+ } | {
248
+ /**
249
+ * Retrieve a stored data blob.
250
+ *
251
+ * @generated from field: livekit.GetDataBlobRequest get_data_blob_request = 23;
252
+ */
253
+ value: GetDataBlobRequest;
254
+ case: "getDataBlobRequest";
239
255
  } | { case: undefined; value?: undefined };
240
256
 
241
257
  constructor(data?: PartialMessage<SignalRequest>);
@@ -487,6 +503,22 @@ export declare class SignalResponse extends Message<SignalResponse> {
487
503
  */
488
504
  value: DataTrackSubscriberHandles;
489
505
  case: "dataTrackSubscriberHandles";
506
+ } | {
507
+ /**
508
+ * Sent in response to `StoreDataBlobRequest`.
509
+ *
510
+ * @generated from field: livekit.StoreDataBlobResponse store_data_blob_response = 30;
511
+ */
512
+ value: StoreDataBlobResponse;
513
+ case: "storeDataBlobResponse";
514
+ } | {
515
+ /**
516
+ * Sent in response to `GetDataBlobRequest`.
517
+ *
518
+ * @generated from field: livekit.GetDataBlobResponse get_data_blob_response = 31;
519
+ */
520
+ value: GetDataBlobResponse;
521
+ case: "getDataBlobResponse";
490
522
  } | { case: undefined; value?: undefined };
491
523
 
492
524
  constructor(data?: PartialMessage<SignalResponse>);
@@ -698,6 +730,21 @@ export declare class PublishDataTrackRequest extends Message<PublishDataTrackReq
698
730
  */
699
731
  encryption: Encryption_Type;
700
732
 
733
+ /**
734
+ * Encoding for frame payloads on this track. If unspecified, the track is untyped.
735
+ *
736
+ * @generated from field: optional livekit.DataTrackFrameEncoding frame_encoding = 4;
737
+ */
738
+ frameEncoding?: DataTrackFrameEncoding;
739
+
740
+ /**
741
+ * ID of the schema used by frames on this track if the track is typed.
742
+ * If set, the associated schema must be stored with `StoreDataBlobRequest`.
743
+ *
744
+ * @generated from field: optional livekit.DataTrackSchemaId schema = 5;
745
+ */
746
+ schema?: DataTrackSchemaId;
747
+
701
748
  constructor(data?: PartialMessage<PublishDataTrackRequest>);
702
749
 
703
750
  static readonly runtime: typeof proto3;
@@ -1275,6 +1322,133 @@ export declare class UpdateDataSubscription_Update extends Message<UpdateDataSub
1275
1322
  static equals(a: UpdateDataSubscription_Update | PlainMessage<UpdateDataSubscription_Update> | undefined, b: UpdateDataSubscription_Update | PlainMessage<UpdateDataSubscription_Update> | undefined): boolean;
1276
1323
  }
1277
1324
 
1325
+ /**
1326
+ * @generated from message livekit.StoreDataBlobRequest
1327
+ */
1328
+ export declare class StoreDataBlobRequest extends Message<StoreDataBlobRequest> {
1329
+ /**
1330
+ * @generated from field: uint32 request_id = 1;
1331
+ */
1332
+ requestId: number;
1333
+
1334
+ /**
1335
+ * @generated from field: livekit.DataBlob blob = 2;
1336
+ */
1337
+ blob?: DataBlob;
1338
+
1339
+ constructor(data?: PartialMessage<StoreDataBlobRequest>);
1340
+
1341
+ static readonly runtime: typeof proto3;
1342
+ static readonly typeName = "livekit.StoreDataBlobRequest";
1343
+ static readonly fields: FieldList;
1344
+
1345
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreDataBlobRequest;
1346
+
1347
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreDataBlobRequest;
1348
+
1349
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreDataBlobRequest;
1350
+
1351
+ static equals(a: StoreDataBlobRequest | PlainMessage<StoreDataBlobRequest> | undefined, b: StoreDataBlobRequest | PlainMessage<StoreDataBlobRequest> | undefined): boolean;
1352
+ }
1353
+
1354
+ /**
1355
+ * @generated from message livekit.StoreDataBlobResponse
1356
+ */
1357
+ export declare class StoreDataBlobResponse extends Message<StoreDataBlobResponse> {
1358
+ /**
1359
+ * @generated from field: uint32 request_id = 1;
1360
+ */
1361
+ requestId: number;
1362
+
1363
+ /**
1364
+ * Unique key the data blob was stored under.
1365
+ *
1366
+ * @generated from field: livekit.DataBlobKey key = 2;
1367
+ */
1368
+ key?: DataBlobKey;
1369
+
1370
+ constructor(data?: PartialMessage<StoreDataBlobResponse>);
1371
+
1372
+ static readonly runtime: typeof proto3;
1373
+ static readonly typeName = "livekit.StoreDataBlobResponse";
1374
+ static readonly fields: FieldList;
1375
+
1376
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreDataBlobResponse;
1377
+
1378
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreDataBlobResponse;
1379
+
1380
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreDataBlobResponse;
1381
+
1382
+ static equals(a: StoreDataBlobResponse | PlainMessage<StoreDataBlobResponse> | undefined, b: StoreDataBlobResponse | PlainMessage<StoreDataBlobResponse> | undefined): boolean;
1383
+ }
1384
+
1385
+ /**
1386
+ * @generated from message livekit.GetDataBlobRequest
1387
+ */
1388
+ export declare class GetDataBlobRequest extends Message<GetDataBlobRequest> {
1389
+ /**
1390
+ * @generated from field: uint32 request_id = 1;
1391
+ */
1392
+ requestId: number;
1393
+
1394
+ /**
1395
+ * Identity of the participant who owns the blob.
1396
+ *
1397
+ * @generated from field: string participant_identity = 2;
1398
+ */
1399
+ participantIdentity: string;
1400
+
1401
+ /**
1402
+ * Unique key of the data blob to retrieve.
1403
+ *
1404
+ * @generated from field: livekit.DataBlobKey key = 3;
1405
+ */
1406
+ key?: DataBlobKey;
1407
+
1408
+ constructor(data?: PartialMessage<GetDataBlobRequest>);
1409
+
1410
+ static readonly runtime: typeof proto3;
1411
+ static readonly typeName = "livekit.GetDataBlobRequest";
1412
+ static readonly fields: FieldList;
1413
+
1414
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDataBlobRequest;
1415
+
1416
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDataBlobRequest;
1417
+
1418
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDataBlobRequest;
1419
+
1420
+ static equals(a: GetDataBlobRequest | PlainMessage<GetDataBlobRequest> | undefined, b: GetDataBlobRequest | PlainMessage<GetDataBlobRequest> | undefined): boolean;
1421
+ }
1422
+
1423
+ /**
1424
+ * @generated from message livekit.GetDataBlobResponse
1425
+ */
1426
+ export declare class GetDataBlobResponse extends Message<GetDataBlobResponse> {
1427
+ /**
1428
+ * @generated from field: uint32 request_id = 1;
1429
+ */
1430
+ requestId: number;
1431
+
1432
+ /**
1433
+ * @generated from field: livekit.DataBlob blob = 2;
1434
+ */
1435
+ blob?: DataBlob;
1436
+
1437
+ constructor(data?: PartialMessage<GetDataBlobResponse>);
1438
+
1439
+ static readonly runtime: typeof proto3;
1440
+ static readonly typeName = "livekit.GetDataBlobResponse";
1441
+ static readonly fields: FieldList;
1442
+
1443
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDataBlobResponse;
1444
+
1445
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDataBlobResponse;
1446
+
1447
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDataBlobResponse;
1448
+
1449
+ static equals(a: GetDataBlobResponse | PlainMessage<GetDataBlobResponse> | undefined, b: GetDataBlobResponse | PlainMessage<GetDataBlobResponse> | undefined): boolean;
1450
+ }
1451
+
1278
1452
  /**
1279
1453
  * @generated from message livekit.UpdateTrackSettings
1280
1454
  */
@@ -2541,6 +2715,11 @@ export declare enum RequestResponse_Reason {
2541
2715
  * @generated from enum value: DUPLICATE_NAME = 10;
2542
2716
  */
2543
2717
  DUPLICATE_NAME = 10,
2718
+
2719
+ /**
2720
+ * @generated from enum value: INVALID_REQUEST = 11;
2721
+ */
2722
+ INVALID_REQUEST = 11,
2544
2723
  }
2545
2724
 
2546
2725
  /**
@@ -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, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
21
+ import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataBlob, DataBlobKey, DataTrackFrameEncoding, DataTrackInfo, DataTrackSchemaId, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, 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
@@ -80,6 +80,8 @@ export const SignalRequest = /*@__PURE__*/ proto3.makeMessageType(
80
80
  { no: 19, name: "publish_data_track_request", kind: "message", T: PublishDataTrackRequest, oneof: "message" },
81
81
  { no: 20, name: "unpublish_data_track_request", kind: "message", T: UnpublishDataTrackRequest, oneof: "message" },
82
82
  { no: 21, name: "update_data_subscription", kind: "message", T: UpdateDataSubscription, oneof: "message" },
83
+ { no: 22, name: "store_data_blob_request", kind: "message", T: StoreDataBlobRequest, oneof: "message" },
84
+ { no: 23, name: "get_data_blob_request", kind: "message", T: GetDataBlobRequest, oneof: "message" },
83
85
  ],
84
86
  );
85
87
 
@@ -117,6 +119,8 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
117
119
  { no: 27, name: "publish_data_track_response", kind: "message", T: PublishDataTrackResponse, oneof: "message" },
118
120
  { no: 28, name: "unpublish_data_track_response", kind: "message", T: UnpublishDataTrackResponse, oneof: "message" },
119
121
  { no: 29, name: "data_track_subscriber_handles", kind: "message", T: DataTrackSubscriberHandles, oneof: "message" },
122
+ { no: 30, name: "store_data_blob_response", kind: "message", T: StoreDataBlobResponse, oneof: "message" },
123
+ { no: 31, name: "get_data_blob_response", kind: "message", T: GetDataBlobResponse, oneof: "message" },
120
124
  ],
121
125
  );
122
126
 
@@ -169,6 +173,8 @@ export const PublishDataTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
169
173
  { no: 1, name: "pub_handle", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
170
174
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
171
175
  { no: 3, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
176
+ { no: 4, name: "frame_encoding", kind: "message", T: DataTrackFrameEncoding, opt: true },
177
+ { no: 5, name: "schema", kind: "message", T: DataTrackSchemaId, opt: true },
172
178
  ],
173
179
  );
174
180
 
@@ -364,6 +370,51 @@ export const UpdateDataSubscription_Update = /*@__PURE__*/ proto3.makeMessageTyp
364
370
  {localName: "UpdateDataSubscription_Update"},
365
371
  );
366
372
 
373
+ /**
374
+ * @generated from message livekit.StoreDataBlobRequest
375
+ */
376
+ export const StoreDataBlobRequest = /*@__PURE__*/ proto3.makeMessageType(
377
+ "livekit.StoreDataBlobRequest",
378
+ () => [
379
+ { no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
380
+ { no: 2, name: "blob", kind: "message", T: DataBlob },
381
+ ],
382
+ );
383
+
384
+ /**
385
+ * @generated from message livekit.StoreDataBlobResponse
386
+ */
387
+ export const StoreDataBlobResponse = /*@__PURE__*/ proto3.makeMessageType(
388
+ "livekit.StoreDataBlobResponse",
389
+ () => [
390
+ { no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
391
+ { no: 2, name: "key", kind: "message", T: DataBlobKey },
392
+ ],
393
+ );
394
+
395
+ /**
396
+ * @generated from message livekit.GetDataBlobRequest
397
+ */
398
+ export const GetDataBlobRequest = /*@__PURE__*/ proto3.makeMessageType(
399
+ "livekit.GetDataBlobRequest",
400
+ () => [
401
+ { no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
402
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
403
+ { no: 3, name: "key", kind: "message", T: DataBlobKey },
404
+ ],
405
+ );
406
+
407
+ /**
408
+ * @generated from message livekit.GetDataBlobResponse
409
+ */
410
+ export const GetDataBlobResponse = /*@__PURE__*/ proto3.makeMessageType(
411
+ "livekit.GetDataBlobResponse",
412
+ () => [
413
+ { no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
414
+ { no: 2, name: "blob", kind: "message", T: DataBlob },
415
+ ],
416
+ );
417
+
367
418
  /**
368
419
  * @generated from message livekit.UpdateTrackSettings
369
420
  */
@@ -777,6 +828,7 @@ export const RequestResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
777
828
  {no: 8, name: "INVALID_NAME"},
778
829
  {no: 9, name: "DUPLICATE_HANDLE"},
779
830
  {no: 10, name: "DUPLICATE_NAME"},
831
+ {no: 11, name: "INVALID_REQUEST"},
780
832
  ],
781
833
  );
782
834
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.48.0';
2
+ export const version = '1.48.1';