@livekit/protocol 1.44.0 → 1.45.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 CHANGED
@@ -461,7 +461,8 @@ const DisconnectReason = /* @__PURE__ */ protobuf.proto3.makeEnum(
461
461
  { no: 12, name: "USER_REJECTED" },
462
462
  { no: 13, name: "SIP_TRUNK_FAILURE" },
463
463
  { no: 14, name: "CONNECTION_TIMEOUT" },
464
- { no: 15, name: "MEDIA_FAILURE" }
464
+ { no: 15, name: "MEDIA_FAILURE" },
465
+ { no: 16, name: "AGENT_ERROR" }
465
466
  ]
466
467
  );
467
468
  const ReconnectReason = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -494,6 +495,12 @@ const AudioTrackFeature = /* @__PURE__ */ protobuf.proto3.makeEnum(
494
495
  { no: 6, name: "TF_PRECONNECT_BUFFER" }
495
496
  ]
496
497
  );
498
+ const PacketTrailerFeature = /* @__PURE__ */ protobuf.proto3.makeEnum(
499
+ "livekit.PacketTrailerFeature",
500
+ [
501
+ { no: 0, name: "PTF_USER_TIMESTAMP" }
502
+ ]
503
+ );
497
504
  const Pagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
498
505
  "livekit.Pagination",
499
506
  () => [
@@ -735,6 +742,13 @@ const ParticipantPermission = /* @__PURE__ */ protobuf.proto3.makeMessageType(
735
742
  kind: "scalar",
736
743
  T: 8
737
744
  /* ScalarType.BOOL */
745
+ },
746
+ {
747
+ no: 13,
748
+ name: "can_manage_agent_session",
749
+ kind: "scalar",
750
+ T: 8
751
+ /* ScalarType.BOOL */
738
752
  }
739
753
  ]
740
754
  );
@@ -815,7 +829,14 @@ const ParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
815
829
  } },
816
830
  { no: 16, name: "disconnect_reason", kind: "enum", T: protobuf.proto3.getEnumType(DisconnectReason) },
817
831
  { no: 18, name: "kind_details", kind: "enum", T: protobuf.proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true },
818
- { no: 19, name: "data_tracks", kind: "message", T: DataTrackInfo, repeated: true }
832
+ { no: 19, name: "data_tracks", kind: "message", T: DataTrackInfo, repeated: true },
833
+ {
834
+ no: 20,
835
+ name: "client_protocol",
836
+ kind: "scalar",
837
+ T: 5
838
+ /* ScalarType.INT32 */
839
+ }
819
840
  ]
820
841
  );
821
842
  const ParticipantInfo_State = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -990,7 +1011,8 @@ const TrackInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
990
1011
  },
991
1012
  { no: 18, name: "version", kind: "message", T: TimedVersion },
992
1013
  { no: 19, name: "audio_features", kind: "enum", T: protobuf.proto3.getEnumType(AudioTrackFeature), repeated: true },
993
- { no: 20, name: "backup_codec_policy", kind: "enum", T: protobuf.proto3.getEnumType(BackupCodecPolicy) }
1014
+ { no: 20, name: "backup_codec_policy", kind: "enum", T: protobuf.proto3.getEnumType(BackupCodecPolicy) },
1015
+ { no: 21, name: "packet_trailer_features", kind: "enum", T: protobuf.proto3.getEnumType(PacketTrailerFeature), repeated: true }
994
1016
  ]
995
1017
  );
996
1018
  const DataTrackInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -1426,6 +1448,13 @@ const RpcRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1426
1448
  kind: "scalar",
1427
1449
  T: 13
1428
1450
  /* ScalarType.UINT32 */
1451
+ },
1452
+ {
1453
+ no: 6,
1454
+ name: "compressed_payload",
1455
+ kind: "scalar",
1456
+ T: 12
1457
+ /* ScalarType.BYTES */
1429
1458
  }
1430
1459
  ]
1431
1460
  );
@@ -1452,7 +1481,8 @@ const RpcResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1452
1481
  /* ScalarType.STRING */
1453
1482
  },
1454
1483
  { no: 2, name: "payload", kind: "scalar", T: 9, oneof: "value" },
1455
- { no: 3, name: "error", kind: "message", T: RpcError, oneof: "value" }
1484
+ { no: 3, name: "error", kind: "message", T: RpcError, oneof: "value" },
1485
+ { no: 4, name: "compressed_payload", kind: "scalar", T: 12, oneof: "value" }
1456
1486
  ]
1457
1487
  );
1458
1488
  const RpcError = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -1622,6 +1652,13 @@ const ClientInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1622
1652
  kind: "scalar",
1623
1653
  T: 9
1624
1654
  /* ScalarType.STRING */
1655
+ },
1656
+ {
1657
+ no: 12,
1658
+ name: "client_protocol",
1659
+ kind: "scalar",
1660
+ T: 5
1661
+ /* ScalarType.INT32 */
1625
1662
  }
1626
1663
  ]
1627
1664
  );
@@ -2543,9 +2580,7 @@ const WorkerMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2543
2580
  { no: 4, name: "update_job", kind: "message", T: UpdateJobStatus, oneof: "message" },
2544
2581
  { no: 5, name: "ping", kind: "message", T: WorkerPing, oneof: "message" },
2545
2582
  { no: 6, name: "simulate_job", kind: "message", T: SimulateJobRequest, oneof: "message" },
2546
- { no: 7, name: "migrate_job", kind: "message", T: MigrateJobRequest, oneof: "message" },
2547
- { no: 8, name: "text_response", kind: "message", T: TextMessageResponse, oneof: "message" },
2548
- { no: 9, name: "push_text", kind: "message", T: PushTextRequest, oneof: "message" }
2583
+ { no: 7, name: "migrate_job", kind: "message", T: MigrateJobRequest, oneof: "message" }
2549
2584
  ]
2550
2585
  );
2551
2586
  const ServerMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -2555,8 +2590,7 @@ const ServerMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2555
2590
  { no: 2, name: "availability", kind: "message", T: AvailabilityRequest, oneof: "message" },
2556
2591
  { no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
2557
2592
  { no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
2558
- { no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" },
2559
- { no: 6, name: "text_request", kind: "message", T: TextMessageRequest, oneof: "message" }
2593
+ { no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" }
2560
2594
  ]
2561
2595
  );
2562
2596
  const SimulateJobRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -2784,98 +2818,6 @@ const JobTermination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2784
2818
  }
2785
2819
  ]
2786
2820
  );
2787
- const TextMessageRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2788
- "livekit.TextMessageRequest",
2789
- () => [
2790
- {
2791
- no: 1,
2792
- name: "message_id",
2793
- kind: "scalar",
2794
- T: 9
2795
- /* ScalarType.STRING */
2796
- },
2797
- {
2798
- no: 2,
2799
- name: "session_id",
2800
- kind: "scalar",
2801
- T: 9
2802
- /* ScalarType.STRING */
2803
- },
2804
- {
2805
- no: 3,
2806
- name: "agent_name",
2807
- kind: "scalar",
2808
- T: 9
2809
- /* ScalarType.STRING */
2810
- },
2811
- {
2812
- no: 4,
2813
- name: "metadata",
2814
- kind: "scalar",
2815
- T: 9
2816
- /* ScalarType.STRING */
2817
- },
2818
- {
2819
- no: 5,
2820
- name: "session_data",
2821
- kind: "scalar",
2822
- T: 12
2823
- /* ScalarType.BYTES */
2824
- },
2825
- {
2826
- no: 6,
2827
- name: "text",
2828
- kind: "scalar",
2829
- T: 9
2830
- /* ScalarType.STRING */
2831
- }
2832
- ]
2833
- );
2834
- const PushTextRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2835
- "livekit.PushTextRequest",
2836
- () => [
2837
- {
2838
- no: 1,
2839
- name: "message_id",
2840
- kind: "scalar",
2841
- T: 9
2842
- /* ScalarType.STRING */
2843
- },
2844
- {
2845
- no: 2,
2846
- name: "content",
2847
- kind: "scalar",
2848
- T: 9
2849
- /* ScalarType.STRING */
2850
- }
2851
- ]
2852
- );
2853
- const TextMessageResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2854
- "livekit.TextMessageResponse",
2855
- () => [
2856
- {
2857
- no: 1,
2858
- name: "message_id",
2859
- kind: "scalar",
2860
- T: 9
2861
- /* ScalarType.STRING */
2862
- },
2863
- {
2864
- no: 2,
2865
- name: "session_data",
2866
- kind: "scalar",
2867
- T: 12
2868
- /* ScalarType.BYTES */
2869
- },
2870
- {
2871
- no: 3,
2872
- name: "error",
2873
- kind: "scalar",
2874
- T: 9
2875
- /* ScalarType.STRING */
2876
- }
2877
- ]
2878
- );
2879
2821
 
2880
2822
  const CreateAgentDispatchRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2881
2823
  "livekit.CreateAgentDispatchRequest",
@@ -3277,7 +3219,8 @@ const AddTrackRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3277
3219
  /* ScalarType.STRING */
3278
3220
  },
3279
3221
  { no: 16, name: "backup_codec_policy", kind: "enum", T: protobuf.proto3.getEnumType(BackupCodecPolicy) },
3280
- { no: 17, name: "audio_features", kind: "enum", T: protobuf.proto3.getEnumType(AudioTrackFeature), repeated: true }
3222
+ { no: 17, name: "audio_features", kind: "enum", T: protobuf.proto3.getEnumType(AudioTrackFeature), repeated: true },
3223
+ { no: 18, name: "packet_trailer_features", kind: "enum", T: protobuf.proto3.getEnumType(PacketTrailerFeature), repeated: true }
3281
3224
  ]
3282
3225
  );
3283
3226
  const PublishDataTrackRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -4343,7 +4286,8 @@ const DialWhatsAppCallRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4343
4286
  kind: "scalar",
4344
4287
  T: 9
4345
4288
  /* ScalarType.STRING */
4346
- }
4289
+ },
4290
+ { no: 13, name: "ringing_timeout", kind: "message", T: protobuf.Duration }
4347
4291
  ]
4348
4292
  );
4349
4293
  const DialWhatsAppCallResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -4492,6 +4436,14 @@ const AcceptWhatsAppCallRequest = /* @__PURE__ */ protobuf.proto3.makeMessageTyp
4492
4436
  kind: "scalar",
4493
4437
  T: 9
4494
4438
  /* ScalarType.STRING */
4439
+ },
4440
+ { no: 14, name: "ringing_timeout", kind: "message", T: protobuf.Duration },
4441
+ {
4442
+ no: 15,
4443
+ name: "wait_until_answered",
4444
+ kind: "scalar",
4445
+ T: 8
4446
+ /* ScalarType.BOOL */
4495
4447
  }
4496
4448
  ]
4497
4449
  );
@@ -5378,6 +5330,13 @@ const EgressInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5378
5330
  kind: "scalar",
5379
5331
  T: 8
5380
5332
  /* ScalarType.BOOL */
5333
+ },
5334
+ {
5335
+ no: 27,
5336
+ name: "retry_count",
5337
+ kind: "scalar",
5338
+ T: 5
5339
+ /* ScalarType.INT32 */
5381
5340
  }
5382
5341
  ]
5383
5342
  );
@@ -6061,6 +6020,7 @@ const UpdateIngressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6061
6020
  const ListIngressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6062
6021
  "livekit.ListIngressRequest",
6063
6022
  () => [
6023
+ { no: 3, name: "page_token", kind: "message", T: TokenPagination },
6064
6024
  {
6065
6025
  no: 1,
6066
6026
  name: "room_name",
@@ -6080,6 +6040,7 @@ const ListIngressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6080
6040
  const ListIngressResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6081
6041
  "livekit.ListIngressResponse",
6082
6042
  () => [
6043
+ { no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
6083
6044
  { no: 1, name: "items", kind: "message", T: IngressInfo, repeated: true }
6084
6045
  ]
6085
6046
  );
@@ -7266,6 +7227,13 @@ const SIPDispatchRuleIndividual = /* @__PURE__ */ protobuf.proto3.makeMessageTyp
7266
7227
  kind: "scalar",
7267
7228
  T: 9
7268
7229
  /* ScalarType.STRING */
7230
+ },
7231
+ {
7232
+ no: 3,
7233
+ name: "no_randomness",
7234
+ kind: "scalar",
7235
+ T: 8
7236
+ /* ScalarType.BOOL */
7269
7237
  }
7270
7238
  ]
7271
7239
  );
@@ -8017,7 +7985,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
8017
7985
  ]
8018
7986
  );
8019
7987
 
8020
- const version = "1.44.0";
7988
+ const version = "1.45.0";
8021
7989
 
8022
7990
  exports.protoInt64 = protobuf.protoInt64;
8023
7991
  exports.AcceptWhatsAppCallRequest = AcceptWhatsAppCallRequest;
@@ -8172,6 +8140,7 @@ exports.MoveParticipantResponse = MoveParticipantResponse;
8172
8140
  exports.MuteRoomTrackRequest = MuteRoomTrackRequest;
8173
8141
  exports.MuteRoomTrackResponse = MuteRoomTrackResponse;
8174
8142
  exports.MuteTrackRequest = MuteTrackRequest;
8143
+ exports.PacketTrailerFeature = PacketTrailerFeature;
8175
8144
  exports.Pagination = Pagination;
8176
8145
  exports.ParticipantEgressRequest = ParticipantEgressRequest;
8177
8146
  exports.ParticipantInfo = ParticipantInfo;
@@ -8191,7 +8160,6 @@ exports.ProviderType = ProviderType;
8191
8160
  exports.ProxyConfig = ProxyConfig;
8192
8161
  exports.PublishDataTrackRequest = PublishDataTrackRequest;
8193
8162
  exports.PublishDataTrackResponse = PublishDataTrackResponse;
8194
- exports.PushTextRequest = PushTextRequest;
8195
8163
  exports.RTCPSenderReportState = RTCPSenderReportState;
8196
8164
  exports.RTPDrift = RTPDrift;
8197
8165
  exports.RTPForwarderState = RTPForwarderState;
@@ -8285,8 +8253,6 @@ exports.SubscriptionPermission = SubscriptionPermission;
8285
8253
  exports.SubscriptionPermissionUpdate = SubscriptionPermissionUpdate;
8286
8254
  exports.SubscriptionResponse = SubscriptionResponse;
8287
8255
  exports.SyncState = SyncState;
8288
- exports.TextMessageRequest = TextMessageRequest;
8289
- exports.TextMessageResponse = TextMessageResponse;
8290
8256
  exports.TimeSeriesMetric = TimeSeriesMetric;
8291
8257
  exports.TimedVersion = TimedVersion;
8292
8258
  exports.TokenPagination = TokenPagination;