@cloudflare/realtimekit 2.0.2-staging.4 → 2.0.2-staging.5

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.d.ts CHANGED
@@ -2002,9 +2002,11 @@ declare enum TransportState {
2002
2002
  type MediaConnectionState = {
2003
2003
  recv: {
2004
2004
  state: `${TransportState}`;
2005
+ sfuSessionId?: string;
2005
2006
  };
2006
2007
  send: {
2007
2008
  state: `${TransportState}`;
2009
+ sfuSessionId?: string;
2008
2010
  };
2009
2011
  };
2010
2012
 
@@ -2079,9 +2081,9 @@ declare enum TabChangeSource {
2079
2081
  Meeting = 1
2080
2082
  }
2081
2083
  interface MediaConnectionUpdate {
2082
- transport: 'consuming' | 'producing';
2084
+ transport: 'send' | 'recv';
2083
2085
  state: `${TransportState}`;
2084
- reconnected: boolean;
2086
+ sfuSessionId?: string;
2085
2087
  }
2086
2088
  type MetaEvents = {
2087
2089
  ['mediaConnectionUpdate']: (payload: MediaConnectionUpdate) => void;
@@ -4063,6 +4065,7 @@ type AllEvents = {
4063
4065
  [key in SessionEvents]: (payload?: any) => void;
4064
4066
  };
4065
4067
  type TypedEvents = {
4068
+ [SessionEvents.TRANSPORT_STATE_UPDATE]: (payload: MediaConnectionUpdate) => void;
4066
4069
  [SessionEvents.UPDATE_PERMISSIONS]: (p: PresetUpdates) => void;
4067
4070
  [SessionEvents.MAX_SPATIAL_LAYER_CHANGE]: (p: {
4068
4071
  peerId: string;