@stream-io/video-client 1.6.5 → 1.7.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.
@@ -2,6 +2,7 @@ import { Dispatcher, IceTrickleBuffer } from './rtc';
2
2
  import { JoinRequest, JoinResponse } from './gen/video/sfu/event/events';
3
3
  import { ICERestartRequest, SendAnswerRequest, SendStatsRequest, SetPublisherRequest, TrackSubscriptionDetails, UpdateMuteStatesRequest } from './gen/video/sfu/signal_rpc/signal';
4
4
  import { ICETrickle, TrackType } from './gen/video/sfu/models/models';
5
+ import { StreamClient } from './coordinator/connection/client';
5
6
  import { Credentials } from './gen/coordinator';
6
7
  export type StreamSfuClientConstructor = {
7
8
  /**
@@ -29,6 +30,10 @@ export type StreamSfuClientConstructor = {
29
30
  * Callback for when the WebSocket connection is closed.
30
31
  */
31
32
  onSignalClose?: () => void;
33
+ /**
34
+ * The StreamClient instance to use for the connection.
35
+ */
36
+ streamClient: StreamClient;
32
37
  };
33
38
  /**
34
39
  * The client used for exchanging information with the SFU.
@@ -69,12 +74,14 @@ export declare class StreamSfuClient {
69
74
  private lastMessageTimestamp?;
70
75
  private readonly restoreWebSocketConcurrencyTag;
71
76
  private readonly unsubscribeIceTrickle;
77
+ private readonly unsubscribeNetworkChanged;
72
78
  private readonly onSignalClose;
73
79
  private readonly logger;
74
80
  private readonly logTag;
75
81
  private readonly credentials;
76
82
  private readonly dispatcher;
77
83
  private readonly joinResponseTimeout?;
84
+ private networkAvailableTask;
78
85
  /**
79
86
  * Promise that resolves when the JoinResponse is received.
80
87
  * Rejects after a certain threshold if the response is not received.
@@ -109,7 +116,7 @@ export declare class StreamSfuClient {
109
116
  /**
110
117
  * Constructs a new SFU client.
111
118
  */
112
- constructor({ dispatcher, credentials, sessionId, logTag, joinResponseTimeout, onSignalClose, }: StreamSfuClientConstructor);
119
+ constructor({ dispatcher, credentials, sessionId, logTag, joinResponseTimeout, onSignalClose, streamClient, }: StreamSfuClientConstructor);
113
120
  private createWebSocket;
114
121
  private cleanUpWebSocket;
115
122
  private restoreWebSocket;
@@ -12,7 +12,6 @@ export declare class StreamClient {
12
12
  axiosInstance: AxiosInstance;
13
13
  baseURL?: string;
14
14
  browser: boolean;
15
- cleaningIntervalRef?: NodeJS.Timeout;
16
15
  clientID?: string;
17
16
  key: string;
18
17
  listeners: Partial<Record<AllClientEventTypes, ClientEventListener<any>[] | undefined>>;
@@ -1,4 +1,4 @@
1
- import type { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage } from '@protobuf-ts/runtime';
1
+ import type { JsonReadOptions, JsonValue, JsonWriteOptions } from '@protobuf-ts/runtime';
2
2
  import { MessageType } from '@protobuf-ts/runtime';
3
3
  /**
4
4
  * `Struct` represents a structured data value, consisting of fields
@@ -129,10 +129,6 @@ declare class Struct$Type extends MessageType<Struct> {
129
129
  * Decode `Struct` from JSON object.
130
130
  */
131
131
  internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Struct): Struct;
132
- create(value?: PartialMessage<Struct>): Struct;
133
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Struct): Struct;
134
- private binaryReadMap1;
135
- internalBinaryWrite(message: Struct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
136
132
  }
137
133
  /**
138
134
  * @generated MessageType for protobuf message google.protobuf.Struct
@@ -148,9 +144,6 @@ declare class Value$Type extends MessageType<Value> {
148
144
  * Decode `Value` from JSON value.
149
145
  */
150
146
  internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Value): Value;
151
- create(value?: PartialMessage<Value>): Value;
152
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Value): Value;
153
- internalBinaryWrite(message: Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
154
147
  }
155
148
  /**
156
149
  * @generated MessageType for protobuf message google.protobuf.Value
@@ -166,9 +159,6 @@ declare class ListValue$Type extends MessageType<ListValue> {
166
159
  * Decode `ListValue` from JSON array.
167
160
  */
168
161
  internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: ListValue): ListValue;
169
- create(value?: PartialMessage<ListValue>): ListValue;
170
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListValue): ListValue;
171
- internalBinaryWrite(message: ListValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
172
162
  }
173
163
  /**
174
164
  * @generated MessageType for protobuf message google.protobuf.ListValue
@@ -1,4 +1,4 @@
1
- import type { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage } from '@protobuf-ts/runtime';
1
+ import type { JsonReadOptions, JsonValue, JsonWriteOptions } from '@protobuf-ts/runtime';
2
2
  import { MessageType } from '@protobuf-ts/runtime';
3
3
  /**
4
4
  * A Timestamp represents a point in time independent of any time zone or local
@@ -140,9 +140,6 @@ declare class Timestamp$Type extends MessageType<Timestamp> {
140
140
  * in the RFC 3339 format.
141
141
  */
142
142
  internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp;
143
- create(value?: PartialMessage<Timestamp>): Timestamp;
144
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp;
145
- internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
146
143
  }
147
144
  /**
148
145
  * @generated MessageType for protobuf message google.protobuf.Timestamp
@@ -1,4 +1,3 @@
1
- import type { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, PartialMessage } from '@protobuf-ts/runtime';
2
1
  import { MessageType } from '@protobuf-ts/runtime';
3
2
  import { CallEndedReason, CallGrants, CallState, ClientDetails, Codec, ConnectionQuality, Error as Error$, GoAwayReason, ICETrickle as ICETrickle$, Participant, ParticipantCount, PeerType, Pin, TrackInfo, TrackType, TrackUnpublishReason, WebsocketReconnectStrategy } from '../models/models';
4
3
  import { TrackSubscriptionDetails } from '../signal_rpc/signal';
@@ -821,9 +820,6 @@ export interface CallEnded {
821
820
  }
822
821
  declare class SfuEvent$Type extends MessageType<SfuEvent> {
823
822
  constructor();
824
- create(value?: PartialMessage<SfuEvent>): SfuEvent;
825
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SfuEvent): SfuEvent;
826
- internalBinaryWrite(message: SfuEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
827
823
  }
828
824
  /**
829
825
  * @generated MessageType for protobuf message stream.video.sfu.event.SfuEvent
@@ -831,9 +827,6 @@ declare class SfuEvent$Type extends MessageType<SfuEvent> {
831
827
  export declare const SfuEvent: SfuEvent$Type;
832
828
  declare class ParticipantMigrationComplete$Type extends MessageType<ParticipantMigrationComplete> {
833
829
  constructor();
834
- create(value?: PartialMessage<ParticipantMigrationComplete>): ParticipantMigrationComplete;
835
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParticipantMigrationComplete): ParticipantMigrationComplete;
836
- internalBinaryWrite(message: ParticipantMigrationComplete, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
837
830
  }
838
831
  /**
839
832
  * @generated MessageType for protobuf message stream.video.sfu.event.ParticipantMigrationComplete
@@ -841,9 +834,6 @@ declare class ParticipantMigrationComplete$Type extends MessageType<ParticipantM
841
834
  export declare const ParticipantMigrationComplete: ParticipantMigrationComplete$Type;
842
835
  declare class PinsChanged$Type extends MessageType<PinsChanged> {
843
836
  constructor();
844
- create(value?: PartialMessage<PinsChanged>): PinsChanged;
845
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PinsChanged): PinsChanged;
846
- internalBinaryWrite(message: PinsChanged, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
847
837
  }
848
838
  /**
849
839
  * @generated MessageType for protobuf message stream.video.sfu.event.PinsChanged
@@ -851,9 +841,6 @@ declare class PinsChanged$Type extends MessageType<PinsChanged> {
851
841
  export declare const PinsChanged: PinsChanged$Type;
852
842
  declare class Error$Type extends MessageType<Error> {
853
843
  constructor();
854
- create(value?: PartialMessage<Error>): Error;
855
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Error): Error;
856
- internalBinaryWrite(message: Error, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
857
844
  }
858
845
  /**
859
846
  * @generated MessageType for protobuf message stream.video.sfu.event.Error
@@ -861,9 +848,6 @@ declare class Error$Type extends MessageType<Error> {
861
848
  export declare const Error: Error$Type;
862
849
  declare class ICETrickle$Type extends MessageType<ICETrickle> {
863
850
  constructor();
864
- create(value?: PartialMessage<ICETrickle>): ICETrickle;
865
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ICETrickle): ICETrickle;
866
- internalBinaryWrite(message: ICETrickle, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
867
851
  }
868
852
  /**
869
853
  * @generated MessageType for protobuf message stream.video.sfu.event.ICETrickle
@@ -871,9 +855,6 @@ declare class ICETrickle$Type extends MessageType<ICETrickle> {
871
855
  export declare const ICETrickle: ICETrickle$Type;
872
856
  declare class ICERestart$Type extends MessageType<ICERestart> {
873
857
  constructor();
874
- create(value?: PartialMessage<ICERestart>): ICERestart;
875
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ICERestart): ICERestart;
876
- internalBinaryWrite(message: ICERestart, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
877
858
  }
878
859
  /**
879
860
  * @generated MessageType for protobuf message stream.video.sfu.event.ICERestart
@@ -881,9 +862,6 @@ declare class ICERestart$Type extends MessageType<ICERestart> {
881
862
  export declare const ICERestart: ICERestart$Type;
882
863
  declare class SfuRequest$Type extends MessageType<SfuRequest> {
883
864
  constructor();
884
- create(value?: PartialMessage<SfuRequest>): SfuRequest;
885
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SfuRequest): SfuRequest;
886
- internalBinaryWrite(message: SfuRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
887
865
  }
888
866
  /**
889
867
  * @generated MessageType for protobuf message stream.video.sfu.event.SfuRequest
@@ -891,9 +869,6 @@ declare class SfuRequest$Type extends MessageType<SfuRequest> {
891
869
  export declare const SfuRequest: SfuRequest$Type;
892
870
  declare class LeaveCallRequest$Type extends MessageType<LeaveCallRequest> {
893
871
  constructor();
894
- create(value?: PartialMessage<LeaveCallRequest>): LeaveCallRequest;
895
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LeaveCallRequest): LeaveCallRequest;
896
- internalBinaryWrite(message: LeaveCallRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
897
872
  }
898
873
  /**
899
874
  * @generated MessageType for protobuf message stream.video.sfu.event.LeaveCallRequest
@@ -901,9 +876,6 @@ declare class LeaveCallRequest$Type extends MessageType<LeaveCallRequest> {
901
876
  export declare const LeaveCallRequest: LeaveCallRequest$Type;
902
877
  declare class HealthCheckRequest$Type extends MessageType<HealthCheckRequest> {
903
878
  constructor();
904
- create(value?: PartialMessage<HealthCheckRequest>): HealthCheckRequest;
905
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HealthCheckRequest): HealthCheckRequest;
906
- internalBinaryWrite(message: HealthCheckRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
907
879
  }
908
880
  /**
909
881
  * @generated MessageType for protobuf message stream.video.sfu.event.HealthCheckRequest
@@ -911,9 +883,6 @@ declare class HealthCheckRequest$Type extends MessageType<HealthCheckRequest> {
911
883
  export declare const HealthCheckRequest: HealthCheckRequest$Type;
912
884
  declare class HealthCheckResponse$Type extends MessageType<HealthCheckResponse> {
913
885
  constructor();
914
- create(value?: PartialMessage<HealthCheckResponse>): HealthCheckResponse;
915
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HealthCheckResponse): HealthCheckResponse;
916
- internalBinaryWrite(message: HealthCheckResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
917
886
  }
918
887
  /**
919
888
  * @generated MessageType for protobuf message stream.video.sfu.event.HealthCheckResponse
@@ -921,9 +890,6 @@ declare class HealthCheckResponse$Type extends MessageType<HealthCheckResponse>
921
890
  export declare const HealthCheckResponse: HealthCheckResponse$Type;
922
891
  declare class TrackPublished$Type extends MessageType<TrackPublished> {
923
892
  constructor();
924
- create(value?: PartialMessage<TrackPublished>): TrackPublished;
925
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackPublished): TrackPublished;
926
- internalBinaryWrite(message: TrackPublished, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
927
893
  }
928
894
  /**
929
895
  * @generated MessageType for protobuf message stream.video.sfu.event.TrackPublished
@@ -931,9 +897,6 @@ declare class TrackPublished$Type extends MessageType<TrackPublished> {
931
897
  export declare const TrackPublished: TrackPublished$Type;
932
898
  declare class TrackUnpublished$Type extends MessageType<TrackUnpublished> {
933
899
  constructor();
934
- create(value?: PartialMessage<TrackUnpublished>): TrackUnpublished;
935
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackUnpublished): TrackUnpublished;
936
- internalBinaryWrite(message: TrackUnpublished, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
937
900
  }
938
901
  /**
939
902
  * @generated MessageType for protobuf message stream.video.sfu.event.TrackUnpublished
@@ -941,9 +904,6 @@ declare class TrackUnpublished$Type extends MessageType<TrackUnpublished> {
941
904
  export declare const TrackUnpublished: TrackUnpublished$Type;
942
905
  declare class JoinRequest$Type extends MessageType<JoinRequest> {
943
906
  constructor();
944
- create(value?: PartialMessage<JoinRequest>): JoinRequest;
945
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JoinRequest): JoinRequest;
946
- internalBinaryWrite(message: JoinRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
947
907
  }
948
908
  /**
949
909
  * @generated MessageType for protobuf message stream.video.sfu.event.JoinRequest
@@ -951,9 +911,6 @@ declare class JoinRequest$Type extends MessageType<JoinRequest> {
951
911
  export declare const JoinRequest: JoinRequest$Type;
952
912
  declare class ReconnectDetails$Type extends MessageType<ReconnectDetails> {
953
913
  constructor();
954
- create(value?: PartialMessage<ReconnectDetails>): ReconnectDetails;
955
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReconnectDetails): ReconnectDetails;
956
- internalBinaryWrite(message: ReconnectDetails, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
957
914
  }
958
915
  /**
959
916
  * @generated MessageType for protobuf message stream.video.sfu.event.ReconnectDetails
@@ -961,9 +918,6 @@ declare class ReconnectDetails$Type extends MessageType<ReconnectDetails> {
961
918
  export declare const ReconnectDetails: ReconnectDetails$Type;
962
919
  declare class Migration$Type extends MessageType<Migration> {
963
920
  constructor();
964
- create(value?: PartialMessage<Migration>): Migration;
965
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Migration): Migration;
966
- internalBinaryWrite(message: Migration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
967
921
  }
968
922
  /**
969
923
  * @generated MessageType for protobuf message stream.video.sfu.event.Migration
@@ -971,9 +925,6 @@ declare class Migration$Type extends MessageType<Migration> {
971
925
  export declare const Migration: Migration$Type;
972
926
  declare class JoinResponse$Type extends MessageType<JoinResponse> {
973
927
  constructor();
974
- create(value?: PartialMessage<JoinResponse>): JoinResponse;
975
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JoinResponse): JoinResponse;
976
- internalBinaryWrite(message: JoinResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
977
928
  }
978
929
  /**
979
930
  * @generated MessageType for protobuf message stream.video.sfu.event.JoinResponse
@@ -981,9 +932,6 @@ declare class JoinResponse$Type extends MessageType<JoinResponse> {
981
932
  export declare const JoinResponse: JoinResponse$Type;
982
933
  declare class ParticipantJoined$Type extends MessageType<ParticipantJoined> {
983
934
  constructor();
984
- create(value?: PartialMessage<ParticipantJoined>): ParticipantJoined;
985
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParticipantJoined): ParticipantJoined;
986
- internalBinaryWrite(message: ParticipantJoined, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
987
935
  }
988
936
  /**
989
937
  * @generated MessageType for protobuf message stream.video.sfu.event.ParticipantJoined
@@ -991,9 +939,6 @@ declare class ParticipantJoined$Type extends MessageType<ParticipantJoined> {
991
939
  export declare const ParticipantJoined: ParticipantJoined$Type;
992
940
  declare class ParticipantLeft$Type extends MessageType<ParticipantLeft> {
993
941
  constructor();
994
- create(value?: PartialMessage<ParticipantLeft>): ParticipantLeft;
995
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParticipantLeft): ParticipantLeft;
996
- internalBinaryWrite(message: ParticipantLeft, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
997
942
  }
998
943
  /**
999
944
  * @generated MessageType for protobuf message stream.video.sfu.event.ParticipantLeft
@@ -1001,9 +946,6 @@ declare class ParticipantLeft$Type extends MessageType<ParticipantLeft> {
1001
946
  export declare const ParticipantLeft: ParticipantLeft$Type;
1002
947
  declare class ParticipantUpdated$Type extends MessageType<ParticipantUpdated> {
1003
948
  constructor();
1004
- create(value?: PartialMessage<ParticipantUpdated>): ParticipantUpdated;
1005
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParticipantUpdated): ParticipantUpdated;
1006
- internalBinaryWrite(message: ParticipantUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1007
949
  }
1008
950
  /**
1009
951
  * @generated MessageType for protobuf message stream.video.sfu.event.ParticipantUpdated
@@ -1011,9 +953,6 @@ declare class ParticipantUpdated$Type extends MessageType<ParticipantUpdated> {
1011
953
  export declare const ParticipantUpdated: ParticipantUpdated$Type;
1012
954
  declare class SubscriberOffer$Type extends MessageType<SubscriberOffer> {
1013
955
  constructor();
1014
- create(value?: PartialMessage<SubscriberOffer>): SubscriberOffer;
1015
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubscriberOffer): SubscriberOffer;
1016
- internalBinaryWrite(message: SubscriberOffer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1017
956
  }
1018
957
  /**
1019
958
  * @generated MessageType for protobuf message stream.video.sfu.event.SubscriberOffer
@@ -1021,9 +960,6 @@ declare class SubscriberOffer$Type extends MessageType<SubscriberOffer> {
1021
960
  export declare const SubscriberOffer: SubscriberOffer$Type;
1022
961
  declare class PublisherAnswer$Type extends MessageType<PublisherAnswer> {
1023
962
  constructor();
1024
- create(value?: PartialMessage<PublisherAnswer>): PublisherAnswer;
1025
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PublisherAnswer): PublisherAnswer;
1026
- internalBinaryWrite(message: PublisherAnswer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1027
963
  }
1028
964
  /**
1029
965
  * @generated MessageType for protobuf message stream.video.sfu.event.PublisherAnswer
@@ -1031,9 +967,6 @@ declare class PublisherAnswer$Type extends MessageType<PublisherAnswer> {
1031
967
  export declare const PublisherAnswer: PublisherAnswer$Type;
1032
968
  declare class ConnectionQualityChanged$Type extends MessageType<ConnectionQualityChanged> {
1033
969
  constructor();
1034
- create(value?: PartialMessage<ConnectionQualityChanged>): ConnectionQualityChanged;
1035
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConnectionQualityChanged): ConnectionQualityChanged;
1036
- internalBinaryWrite(message: ConnectionQualityChanged, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1037
970
  }
1038
971
  /**
1039
972
  * @generated MessageType for protobuf message stream.video.sfu.event.ConnectionQualityChanged
@@ -1041,9 +974,6 @@ declare class ConnectionQualityChanged$Type extends MessageType<ConnectionQualit
1041
974
  export declare const ConnectionQualityChanged: ConnectionQualityChanged$Type;
1042
975
  declare class ConnectionQualityInfo$Type extends MessageType<ConnectionQualityInfo> {
1043
976
  constructor();
1044
- create(value?: PartialMessage<ConnectionQualityInfo>): ConnectionQualityInfo;
1045
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConnectionQualityInfo): ConnectionQualityInfo;
1046
- internalBinaryWrite(message: ConnectionQualityInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1047
977
  }
1048
978
  /**
1049
979
  * @generated MessageType for protobuf message stream.video.sfu.event.ConnectionQualityInfo
@@ -1051,9 +981,6 @@ declare class ConnectionQualityInfo$Type extends MessageType<ConnectionQualityIn
1051
981
  export declare const ConnectionQualityInfo: ConnectionQualityInfo$Type;
1052
982
  declare class DominantSpeakerChanged$Type extends MessageType<DominantSpeakerChanged> {
1053
983
  constructor();
1054
- create(value?: PartialMessage<DominantSpeakerChanged>): DominantSpeakerChanged;
1055
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DominantSpeakerChanged): DominantSpeakerChanged;
1056
- internalBinaryWrite(message: DominantSpeakerChanged, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1057
984
  }
1058
985
  /**
1059
986
  * @generated MessageType for protobuf message stream.video.sfu.event.DominantSpeakerChanged
@@ -1061,9 +988,6 @@ declare class DominantSpeakerChanged$Type extends MessageType<DominantSpeakerCha
1061
988
  export declare const DominantSpeakerChanged: DominantSpeakerChanged$Type;
1062
989
  declare class AudioLevel$Type extends MessageType<AudioLevel> {
1063
990
  constructor();
1064
- create(value?: PartialMessage<AudioLevel>): AudioLevel;
1065
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AudioLevel): AudioLevel;
1066
- internalBinaryWrite(message: AudioLevel, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1067
991
  }
1068
992
  /**
1069
993
  * @generated MessageType for protobuf message stream.video.sfu.event.AudioLevel
@@ -1071,9 +995,6 @@ declare class AudioLevel$Type extends MessageType<AudioLevel> {
1071
995
  export declare const AudioLevel: AudioLevel$Type;
1072
996
  declare class AudioLevelChanged$Type extends MessageType<AudioLevelChanged> {
1073
997
  constructor();
1074
- create(value?: PartialMessage<AudioLevelChanged>): AudioLevelChanged;
1075
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AudioLevelChanged): AudioLevelChanged;
1076
- internalBinaryWrite(message: AudioLevelChanged, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1077
998
  }
1078
999
  /**
1079
1000
  * @generated MessageType for protobuf message stream.video.sfu.event.AudioLevelChanged
@@ -1081,9 +1002,6 @@ declare class AudioLevelChanged$Type extends MessageType<AudioLevelChanged> {
1081
1002
  export declare const AudioLevelChanged: AudioLevelChanged$Type;
1082
1003
  declare class AudioMediaRequest$Type extends MessageType<AudioMediaRequest> {
1083
1004
  constructor();
1084
- create(value?: PartialMessage<AudioMediaRequest>): AudioMediaRequest;
1085
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AudioMediaRequest): AudioMediaRequest;
1086
- internalBinaryWrite(message: AudioMediaRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1087
1005
  }
1088
1006
  /**
1089
1007
  * @generated MessageType for protobuf message stream.video.sfu.event.AudioMediaRequest
@@ -1091,9 +1009,6 @@ declare class AudioMediaRequest$Type extends MessageType<AudioMediaRequest> {
1091
1009
  export declare const AudioMediaRequest: AudioMediaRequest$Type;
1092
1010
  declare class AudioSender$Type extends MessageType<AudioSender> {
1093
1011
  constructor();
1094
- create(value?: PartialMessage<AudioSender>): AudioSender;
1095
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AudioSender): AudioSender;
1096
- internalBinaryWrite(message: AudioSender, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1097
1012
  }
1098
1013
  /**
1099
1014
  * @generated MessageType for protobuf message stream.video.sfu.event.AudioSender
@@ -1101,9 +1016,6 @@ declare class AudioSender$Type extends MessageType<AudioSender> {
1101
1016
  export declare const AudioSender: AudioSender$Type;
1102
1017
  declare class VideoMediaRequest$Type extends MessageType<VideoMediaRequest> {
1103
1018
  constructor();
1104
- create(value?: PartialMessage<VideoMediaRequest>): VideoMediaRequest;
1105
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoMediaRequest): VideoMediaRequest;
1106
- internalBinaryWrite(message: VideoMediaRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1107
1019
  }
1108
1020
  /**
1109
1021
  * @generated MessageType for protobuf message stream.video.sfu.event.VideoMediaRequest
@@ -1111,9 +1023,6 @@ declare class VideoMediaRequest$Type extends MessageType<VideoMediaRequest> {
1111
1023
  export declare const VideoMediaRequest: VideoMediaRequest$Type;
1112
1024
  declare class VideoLayerSetting$Type extends MessageType<VideoLayerSetting> {
1113
1025
  constructor();
1114
- create(value?: PartialMessage<VideoLayerSetting>): VideoLayerSetting;
1115
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoLayerSetting): VideoLayerSetting;
1116
- internalBinaryWrite(message: VideoLayerSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1117
1026
  }
1118
1027
  /**
1119
1028
  * @generated MessageType for protobuf message stream.video.sfu.event.VideoLayerSetting
@@ -1121,9 +1030,6 @@ declare class VideoLayerSetting$Type extends MessageType<VideoLayerSetting> {
1121
1030
  export declare const VideoLayerSetting: VideoLayerSetting$Type;
1122
1031
  declare class VideoSender$Type extends MessageType<VideoSender> {
1123
1032
  constructor();
1124
- create(value?: PartialMessage<VideoSender>): VideoSender;
1125
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoSender): VideoSender;
1126
- internalBinaryWrite(message: VideoSender, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1127
1033
  }
1128
1034
  /**
1129
1035
  * @generated MessageType for protobuf message stream.video.sfu.event.VideoSender
@@ -1131,9 +1037,6 @@ declare class VideoSender$Type extends MessageType<VideoSender> {
1131
1037
  export declare const VideoSender: VideoSender$Type;
1132
1038
  declare class ChangePublishQuality$Type extends MessageType<ChangePublishQuality> {
1133
1039
  constructor();
1134
- create(value?: PartialMessage<ChangePublishQuality>): ChangePublishQuality;
1135
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChangePublishQuality): ChangePublishQuality;
1136
- internalBinaryWrite(message: ChangePublishQuality, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1137
1040
  }
1138
1041
  /**
1139
1042
  * @generated MessageType for protobuf message stream.video.sfu.event.ChangePublishQuality
@@ -1141,9 +1044,6 @@ declare class ChangePublishQuality$Type extends MessageType<ChangePublishQuality
1141
1044
  export declare const ChangePublishQuality: ChangePublishQuality$Type;
1142
1045
  declare class CallGrantsUpdated$Type extends MessageType<CallGrantsUpdated> {
1143
1046
  constructor();
1144
- create(value?: PartialMessage<CallGrantsUpdated>): CallGrantsUpdated;
1145
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallGrantsUpdated): CallGrantsUpdated;
1146
- internalBinaryWrite(message: CallGrantsUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1147
1047
  }
1148
1048
  /**
1149
1049
  * @generated MessageType for protobuf message stream.video.sfu.event.CallGrantsUpdated
@@ -1151,9 +1051,6 @@ declare class CallGrantsUpdated$Type extends MessageType<CallGrantsUpdated> {
1151
1051
  export declare const CallGrantsUpdated: CallGrantsUpdated$Type;
1152
1052
  declare class GoAway$Type extends MessageType<GoAway> {
1153
1053
  constructor();
1154
- create(value?: PartialMessage<GoAway>): GoAway;
1155
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GoAway): GoAway;
1156
- internalBinaryWrite(message: GoAway, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1157
1054
  }
1158
1055
  /**
1159
1056
  * @generated MessageType for protobuf message stream.video.sfu.event.GoAway
@@ -1161,9 +1058,6 @@ declare class GoAway$Type extends MessageType<GoAway> {
1161
1058
  export declare const GoAway: GoAway$Type;
1162
1059
  declare class CallEnded$Type extends MessageType<CallEnded> {
1163
1060
  constructor();
1164
- create(value?: PartialMessage<CallEnded>): CallEnded;
1165
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallEnded): CallEnded;
1166
- internalBinaryWrite(message: CallEnded, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1167
1061
  }
1168
1062
  /**
1169
1063
  * @generated MessageType for protobuf message stream.video.sfu.event.CallEnded
@@ -1,4 +1,3 @@
1
- import type { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, PartialMessage } from '@protobuf-ts/runtime';
2
1
  import { MessageType } from '@protobuf-ts/runtime';
3
2
  import { Struct } from '../../../google/protobuf/struct';
4
3
  import { Timestamp } from '../../../google/protobuf/timestamp';
@@ -771,9 +770,6 @@ export declare enum WebsocketReconnectStrategy {
771
770
  }
772
771
  declare class CallState$Type extends MessageType<CallState> {
773
772
  constructor();
774
- create(value?: PartialMessage<CallState>): CallState;
775
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallState): CallState;
776
- internalBinaryWrite(message: CallState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
777
773
  }
778
774
  /**
779
775
  * @generated MessageType for protobuf message stream.video.sfu.models.CallState
@@ -781,9 +777,6 @@ declare class CallState$Type extends MessageType<CallState> {
781
777
  export declare const CallState: CallState$Type;
782
778
  declare class ParticipantCount$Type extends MessageType<ParticipantCount> {
783
779
  constructor();
784
- create(value?: PartialMessage<ParticipantCount>): ParticipantCount;
785
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParticipantCount): ParticipantCount;
786
- internalBinaryWrite(message: ParticipantCount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
787
780
  }
788
781
  /**
789
782
  * @generated MessageType for protobuf message stream.video.sfu.models.ParticipantCount
@@ -791,9 +784,6 @@ declare class ParticipantCount$Type extends MessageType<ParticipantCount> {
791
784
  export declare const ParticipantCount: ParticipantCount$Type;
792
785
  declare class Pin$Type extends MessageType<Pin> {
793
786
  constructor();
794
- create(value?: PartialMessage<Pin>): Pin;
795
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Pin): Pin;
796
- internalBinaryWrite(message: Pin, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
797
787
  }
798
788
  /**
799
789
  * @generated MessageType for protobuf message stream.video.sfu.models.Pin
@@ -801,9 +791,6 @@ declare class Pin$Type extends MessageType<Pin> {
801
791
  export declare const Pin: Pin$Type;
802
792
  declare class Participant$Type extends MessageType<Participant> {
803
793
  constructor();
804
- create(value?: PartialMessage<Participant>): Participant;
805
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Participant): Participant;
806
- internalBinaryWrite(message: Participant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
807
794
  }
808
795
  /**
809
796
  * @generated MessageType for protobuf message stream.video.sfu.models.Participant
@@ -811,9 +798,6 @@ declare class Participant$Type extends MessageType<Participant> {
811
798
  export declare const Participant: Participant$Type;
812
799
  declare class StreamQuality$Type extends MessageType<StreamQuality> {
813
800
  constructor();
814
- create(value?: PartialMessage<StreamQuality>): StreamQuality;
815
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamQuality): StreamQuality;
816
- internalBinaryWrite(message: StreamQuality, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
817
801
  }
818
802
  /**
819
803
  * @generated MessageType for protobuf message stream.video.sfu.models.StreamQuality
@@ -821,9 +805,6 @@ declare class StreamQuality$Type extends MessageType<StreamQuality> {
821
805
  export declare const StreamQuality: StreamQuality$Type;
822
806
  declare class VideoDimension$Type extends MessageType<VideoDimension> {
823
807
  constructor();
824
- create(value?: PartialMessage<VideoDimension>): VideoDimension;
825
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoDimension): VideoDimension;
826
- internalBinaryWrite(message: VideoDimension, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
827
808
  }
828
809
  /**
829
810
  * @generated MessageType for protobuf message stream.video.sfu.models.VideoDimension
@@ -831,9 +812,6 @@ declare class VideoDimension$Type extends MessageType<VideoDimension> {
831
812
  export declare const VideoDimension: VideoDimension$Type;
832
813
  declare class VideoLayer$Type extends MessageType<VideoLayer> {
833
814
  constructor();
834
- create(value?: PartialMessage<VideoLayer>): VideoLayer;
835
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoLayer): VideoLayer;
836
- internalBinaryWrite(message: VideoLayer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
837
815
  }
838
816
  /**
839
817
  * @generated MessageType for protobuf message stream.video.sfu.models.VideoLayer
@@ -841,9 +819,6 @@ declare class VideoLayer$Type extends MessageType<VideoLayer> {
841
819
  export declare const VideoLayer: VideoLayer$Type;
842
820
  declare class Codec$Type extends MessageType<Codec> {
843
821
  constructor();
844
- create(value?: PartialMessage<Codec>): Codec;
845
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Codec): Codec;
846
- internalBinaryWrite(message: Codec, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
847
822
  }
848
823
  /**
849
824
  * @generated MessageType for protobuf message stream.video.sfu.models.Codec
@@ -851,9 +826,6 @@ declare class Codec$Type extends MessageType<Codec> {
851
826
  export declare const Codec: Codec$Type;
852
827
  declare class ICETrickle$Type extends MessageType<ICETrickle> {
853
828
  constructor();
854
- create(value?: PartialMessage<ICETrickle>): ICETrickle;
855
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ICETrickle): ICETrickle;
856
- internalBinaryWrite(message: ICETrickle, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
857
829
  }
858
830
  /**
859
831
  * @generated MessageType for protobuf message stream.video.sfu.models.ICETrickle
@@ -861,9 +833,6 @@ declare class ICETrickle$Type extends MessageType<ICETrickle> {
861
833
  export declare const ICETrickle: ICETrickle$Type;
862
834
  declare class TrackInfo$Type extends MessageType<TrackInfo> {
863
835
  constructor();
864
- create(value?: PartialMessage<TrackInfo>): TrackInfo;
865
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackInfo): TrackInfo;
866
- internalBinaryWrite(message: TrackInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
867
836
  }
868
837
  /**
869
838
  * @generated MessageType for protobuf message stream.video.sfu.models.TrackInfo
@@ -871,9 +840,6 @@ declare class TrackInfo$Type extends MessageType<TrackInfo> {
871
840
  export declare const TrackInfo: TrackInfo$Type;
872
841
  declare class Error$Type extends MessageType<Error> {
873
842
  constructor();
874
- create(value?: PartialMessage<Error>): Error;
875
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Error): Error;
876
- internalBinaryWrite(message: Error, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
877
843
  }
878
844
  /**
879
845
  * @generated MessageType for protobuf message stream.video.sfu.models.Error
@@ -881,9 +847,6 @@ declare class Error$Type extends MessageType<Error> {
881
847
  export declare const Error: Error$Type;
882
848
  declare class ClientDetails$Type extends MessageType<ClientDetails> {
883
849
  constructor();
884
- create(value?: PartialMessage<ClientDetails>): ClientDetails;
885
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClientDetails): ClientDetails;
886
- internalBinaryWrite(message: ClientDetails, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
887
850
  }
888
851
  /**
889
852
  * @generated MessageType for protobuf message stream.video.sfu.models.ClientDetails
@@ -891,9 +854,6 @@ declare class ClientDetails$Type extends MessageType<ClientDetails> {
891
854
  export declare const ClientDetails: ClientDetails$Type;
892
855
  declare class Sdk$Type extends MessageType<Sdk> {
893
856
  constructor();
894
- create(value?: PartialMessage<Sdk>): Sdk;
895
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Sdk): Sdk;
896
- internalBinaryWrite(message: Sdk, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
897
857
  }
898
858
  /**
899
859
  * @generated MessageType for protobuf message stream.video.sfu.models.Sdk
@@ -901,9 +861,6 @@ declare class Sdk$Type extends MessageType<Sdk> {
901
861
  export declare const Sdk: Sdk$Type;
902
862
  declare class OS$Type extends MessageType<OS> {
903
863
  constructor();
904
- create(value?: PartialMessage<OS>): OS;
905
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OS): OS;
906
- internalBinaryWrite(message: OS, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
907
864
  }
908
865
  /**
909
866
  * @generated MessageType for protobuf message stream.video.sfu.models.OS
@@ -911,9 +868,6 @@ declare class OS$Type extends MessageType<OS> {
911
868
  export declare const OS: OS$Type;
912
869
  declare class Browser$Type extends MessageType<Browser> {
913
870
  constructor();
914
- create(value?: PartialMessage<Browser>): Browser;
915
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Browser): Browser;
916
- internalBinaryWrite(message: Browser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
917
871
  }
918
872
  /**
919
873
  * @generated MessageType for protobuf message stream.video.sfu.models.Browser
@@ -921,9 +875,6 @@ declare class Browser$Type extends MessageType<Browser> {
921
875
  export declare const Browser: Browser$Type;
922
876
  declare class Device$Type extends MessageType<Device> {
923
877
  constructor();
924
- create(value?: PartialMessage<Device>): Device;
925
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Device): Device;
926
- internalBinaryWrite(message: Device, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
927
878
  }
928
879
  /**
929
880
  * @generated MessageType for protobuf message stream.video.sfu.models.Device
@@ -931,9 +882,6 @@ declare class Device$Type extends MessageType<Device> {
931
882
  export declare const Device: Device$Type;
932
883
  declare class Call$Type extends MessageType<Call> {
933
884
  constructor();
934
- create(value?: PartialMessage<Call>): Call;
935
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Call): Call;
936
- internalBinaryWrite(message: Call, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
937
885
  }
938
886
  /**
939
887
  * @generated MessageType for protobuf message stream.video.sfu.models.Call
@@ -941,9 +889,6 @@ declare class Call$Type extends MessageType<Call> {
941
889
  export declare const Call: Call$Type;
942
890
  declare class CallGrants$Type extends MessageType<CallGrants> {
943
891
  constructor();
944
- create(value?: PartialMessage<CallGrants>): CallGrants;
945
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallGrants): CallGrants;
946
- internalBinaryWrite(message: CallGrants, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
947
892
  }
948
893
  /**
949
894
  * @generated MessageType for protobuf message stream.video.sfu.models.CallGrants