@cloudflare/realtimekit 1.2.3-staging.1 → 1.2.3-staging.3

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.
@@ -4719,6 +4719,7 @@ declare class AudioPlaybackManager extends AudioPlayback {
4719
4719
  }
4720
4720
  declare class SelfMedia extends TypedEventEmitter<SelfEvents> {
4721
4721
  protected localMediaHandler: LocalMediaHandler;
4722
+ constructor(context: Context<ContextState>, logger: Logger);
4722
4723
  protected updatePermission(): Promise<void>;
4723
4724
  protected populateMediaPermissionsInCallstats({ message, kind, }: {
4724
4725
  message: keyof typeof MediaPermission;
@@ -4814,7 +4815,7 @@ declare class Client {
4814
4815
  video?: boolean;
4815
4816
  audio?: boolean;
4816
4817
  constraints?: MediaConstraints;
4817
- }, skipAwaits?: boolean, cachedUserDetails?: CachedUserDetails): SelfMedia;
4818
+ }, skipAwaits?: boolean, cachedUserDetails?: CachedUserDetails): Promise<SelfMedia>;
4818
4819
  static init(options: ClientOptions): Promise<Client>;
4819
4820
  private static setupContext;
4820
4821
  join(): Promise<void>;
@@ -4603,6 +4603,7 @@ declare class Plugins {
4603
4603
  }
4604
4604
  declare class SelfMedia extends TypedEventEmitter$1<SelfEvents> {
4605
4605
  protected localMediaHandler: LocalMediaHandler;
4606
+ constructor(context: Context<ContextState>, logger: Logger);
4606
4607
  protected updatePermission(): Promise<void>;
4607
4608
  protected populateMediaPermissionsInCallstats({ message, kind, }: {
4608
4609
  message: keyof typeof MediaPermission;
@@ -5917,7 +5918,7 @@ declare class Client {
5917
5918
  video?: boolean;
5918
5919
  audio?: boolean;
5919
5920
  constraints?: MediaConstraints;
5920
- }, skipAwaits?: boolean, cachedUserDetails?: CachedUserDetails): SelfMedia;
5921
+ }, skipAwaits?: boolean, cachedUserDetails?: CachedUserDetails): Promise<SelfMedia>;
5921
5922
  static init(options: ClientOptions): Promise<Client>;
5922
5923
  private static setupContext;
5923
5924
  join(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit",
3
- "version": "1.2.3-staging.1",
3
+ "version": "1.2.3-staging.3",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",