@livekit/protocol 1.43.1 → 1.43.4

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.
@@ -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, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
21
+ import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, 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
@@ -77,6 +77,9 @@ export const SignalRequest = /*@__PURE__*/ proto3.makeMessageType(
77
77
  { no: 16, name: "ping_req", kind: "message", T: Ping, oneof: "message" },
78
78
  { no: 17, name: "update_audio_track", kind: "message", T: UpdateLocalAudioTrack, oneof: "message" },
79
79
  { no: 18, name: "update_video_track", kind: "message", T: UpdateLocalVideoTrack, oneof: "message" },
80
+ { no: 19, name: "publish_data_track_request", kind: "message", T: PublishDataTrackRequest, oneof: "message" },
81
+ { no: 20, name: "unpublish_data_track_request", kind: "message", T: UnpublishDataTrackRequest, oneof: "message" },
82
+ { no: 21, name: "update_data_subscription", kind: "message", T: UpdateDataSubscription, oneof: "message" },
80
83
  ],
81
84
  );
82
85
 
@@ -111,6 +114,9 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
111
114
  { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
112
115
  { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
113
116
  { no: 26, name: "subscribed_audio_codec_update", kind: "message", T: SubscribedAudioCodecUpdate, oneof: "message" },
117
+ { no: 27, name: "publish_data_track_response", kind: "message", T: PublishDataTrackResponse, oneof: "message" },
118
+ { no: 28, name: "unpublish_data_track_response", kind: "message", T: UnpublishDataTrackResponse, oneof: "message" },
119
+ { no: 29, name: "data_track_subscriber_handles", kind: "message", T: DataTrackSubscriberHandles, oneof: "message" },
114
120
  ],
115
121
  );
116
122
 
@@ -153,6 +159,71 @@ export const AddTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
153
159
  ],
154
160
  );
155
161
 
162
+ /**
163
+ * @generated from message livekit.PublishDataTrackRequest
164
+ */
165
+ export const PublishDataTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
166
+ "livekit.PublishDataTrackRequest",
167
+ () => [
168
+ { no: 1, name: "pub_handle", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
169
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
170
+ { no: 3, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
171
+ ],
172
+ );
173
+
174
+ /**
175
+ * @generated from message livekit.PublishDataTrackResponse
176
+ */
177
+ export const PublishDataTrackResponse = /*@__PURE__*/ proto3.makeMessageType(
178
+ "livekit.PublishDataTrackResponse",
179
+ () => [
180
+ { no: 1, name: "info", kind: "message", T: DataTrackInfo },
181
+ ],
182
+ );
183
+
184
+ /**
185
+ * @generated from message livekit.UnpublishDataTrackRequest
186
+ */
187
+ export const UnpublishDataTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
188
+ "livekit.UnpublishDataTrackRequest",
189
+ () => [
190
+ { no: 1, name: "pub_handle", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
191
+ ],
192
+ );
193
+
194
+ /**
195
+ * @generated from message livekit.UnpublishDataTrackResponse
196
+ */
197
+ export const UnpublishDataTrackResponse = /*@__PURE__*/ proto3.makeMessageType(
198
+ "livekit.UnpublishDataTrackResponse",
199
+ () => [
200
+ { no: 1, name: "info", kind: "message", T: DataTrackInfo },
201
+ ],
202
+ );
203
+
204
+ /**
205
+ * @generated from message livekit.DataTrackSubscriberHandles
206
+ */
207
+ export const DataTrackSubscriberHandles = /*@__PURE__*/ proto3.makeMessageType(
208
+ "livekit.DataTrackSubscriberHandles",
209
+ () => [
210
+ { no: 1, name: "sub_handles", kind: "map", K: 13 /* ScalarType.UINT32 */, V: {kind: "message", T: DataTrackSubscriberHandles_PublishedDataTrack} },
211
+ ],
212
+ );
213
+
214
+ /**
215
+ * @generated from message livekit.DataTrackSubscriberHandles.PublishedDataTrack
216
+ */
217
+ export const DataTrackSubscriberHandles_PublishedDataTrack = /*@__PURE__*/ proto3.makeMessageType(
218
+ "livekit.DataTrackSubscriberHandles.PublishedDataTrack",
219
+ () => [
220
+ { no: 1, name: "publisher_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
221
+ { no: 2, name: "publisher_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
+ { no: 3, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
223
+ ],
224
+ {localName: "DataTrackSubscriberHandles_PublishedDataTrack"},
225
+ );
226
+
156
227
  /**
157
228
  * @generated from message livekit.TrickleRequest
158
229
  */
@@ -269,6 +340,29 @@ export const UpdateSubscription = /*@__PURE__*/ proto3.makeMessageType(
269
340
  ],
270
341
  );
271
342
 
343
+ /**
344
+ * @generated from message livekit.UpdateDataSubscription
345
+ */
346
+ export const UpdateDataSubscription = /*@__PURE__*/ proto3.makeMessageType(
347
+ "livekit.UpdateDataSubscription",
348
+ () => [
349
+ { no: 1, name: "updates", kind: "message", T: UpdateDataSubscription_Update, repeated: true },
350
+ ],
351
+ );
352
+
353
+ /**
354
+ * @generated from message livekit.UpdateDataSubscription.Update
355
+ */
356
+ export const UpdateDataSubscription_Update = /*@__PURE__*/ proto3.makeMessageType(
357
+ "livekit.UpdateDataSubscription.Update",
358
+ () => [
359
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
360
+ { no: 2, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
361
+ { no: 3, name: "options", kind: "message", T: DataTrackSubscriptionOptions },
362
+ ],
363
+ {localName: "UpdateDataSubscription_Update"},
364
+ );
365
+
272
366
  /**
273
367
  * @generated from message livekit.UpdateTrackSettings
274
368
  */
@@ -545,6 +639,7 @@ export const SyncState = /*@__PURE__*/ proto3.makeMessageType(
545
639
  { no: 5, name: "offer", kind: "message", T: SessionDescription },
546
640
  { no: 6, name: "track_sids_disabled", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
547
641
  { no: 7, name: "datachannel_receive_states", kind: "message", T: DataChannelReceiveState, repeated: true },
642
+ { no: 8, name: "publish_data_tracks", kind: "message", T: PublishDataTrackResponse, repeated: true },
548
643
  ],
549
644
  );
550
645
 
@@ -659,6 +754,8 @@ export const RequestResponse = /*@__PURE__*/ proto3.makeMessageType(
659
754
  { no: 7, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "request" },
660
755
  { no: 8, name: "update_audio_track", kind: "message", T: UpdateLocalAudioTrack, oneof: "request" },
661
756
  { no: 9, name: "update_video_track", kind: "message", T: UpdateLocalVideoTrack, oneof: "request" },
757
+ { no: 10, name: "publish_data_track", kind: "message", T: PublishDataTrackRequest, oneof: "request" },
758
+ { no: 11, name: "unpublish_data_track", kind: "message", T: UnpublishDataTrackRequest, oneof: "request" },
662
759
  ],
663
760
  );
664
761
 
@@ -675,6 +772,10 @@ export const RequestResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
675
772
  {no: 4, name: "QUEUED"},
676
773
  {no: 5, name: "UNSUPPORTED_TYPE"},
677
774
  {no: 6, name: "UNCLASSIFIED_ERROR"},
775
+ {no: 7, name: "INVALID_HANDLE"},
776
+ {no: 8, name: "INVALID_NAME"},
777
+ {no: 9, name: "DUPLICATE_HANDLE"},
778
+ {no: 10, name: "DUPLICATE_NAME"},
678
779
  ],
679
780
  );
680
781
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.43.1';
2
+ export const version = '1.43.4';
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { protoInt64 } from "@bufbuild/protobuf";
2
+ export * as AgentSession from "./gen/agent/livekit_agent_session_pb.js";
2
3
  export * from "./gen/livekit_agent_dispatch_pb.js";
3
4
  export * from "./gen/livekit_agent_pb.js";
4
5
  export * from "./gen/livekit_connector_pb.js";
package/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // @ts-check
2
2
  export { protoInt64 } from "@bufbuild/protobuf";
3
+ export * as AgentSession from "./gen/agent/livekit_agent_session_pb.js";
3
4
  export * from "./gen/livekit_agent_dispatch_pb.js";
4
5
  export * from "./gen/livekit_agent_pb.js";
5
6
  export * from "./gen/livekit_connector_pb.js";