Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@signalwire/js

Package Overview
Dependencies
Maintainers
2
Versions
368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalwire/js - npm Package Compare versions

Comparing version 3.18.0 to 3.19.0-dev.202303161534.b91b90d.0

dist/core/src/workers/executeActionWorker.d.ts

6

dist/core/src/BaseComponent.d.ts

@@ -23,3 +23,2 @@ import type { Task } from '@redux-saga/types';

private _eventsTransformsCache;
private _requests;
private _customSagaTriggers;

@@ -80,2 +79,3 @@ private _destroyer?;

}) => Task<any>;
channels: import("./utils/interfaces").InternalChannels;
dispatch: import("redux").Dispatch<import("redux").AnyAction>;

@@ -157,6 +157,2 @@ getState(): any;

/** @internal */
onError(component: any): void;
/** @internal */
onSuccess(component: any): void;
/** @internal */
getStateProperty(param: keyof OnlyStateProperties<StateProperties>): any;

@@ -163,0 +159,0 @@ /** @internal */

@@ -1,4 +0,4 @@

import { PayloadAction } from './redux';
import { SessionOptions, RPCConnectResult, JSONRPCRequest, JSONRPCResponse, WebSocketAdapter, NodeSocketAdapter, WebSocketClient, SessionStatus, SessionAuthError } from './utils/interfaces';
import { SwAuthorizationState } from '.';
import { SessionChannelAction } from './redux/interfaces';
export declare const SW_SYMBOL: unique symbol;

@@ -32,2 +32,3 @@ export declare class BaseSession {

private _status;
private _sessionChannel;
private wsOpenHandler;

@@ -88,3 +89,3 @@ private wsCloseHandler;

protected _onSocketMessage(event: MessageEvent): void | Promise<void>;
dispatch(_payload: PayloadAction<any>): void;
dispatch(_payload: SessionChannelAction): void;
/**

@@ -91,0 +92,0 @@ * Check the current relayProtocol against the signature

@@ -6,3 +6,3 @@ import { sagaEffects, SDKWorker, SDKWorkerParams, VideoMemberUpdatedEventParams } from '..';

}): Generator<sagaEffects.ChannelPutEffect<import("..").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("..").MapToPubSubShape<import("..").InternalVideoRoomAudienceCountEvent> | import("..").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | import("..").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("..").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("..").MapToPubSubShape<import("..").VideoMemberPromotedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberDemotedEvent> | import("..").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("..").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("..").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("..").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("..").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("..").MapToPubSubShape<import("..").VideoStreamStartedEvent> | import("..").MapToPubSubShape<import("..").VideoStreamEndedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomAudienceCountEvent> | {
type: "session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring";
type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring";
payload: Error | undefined;

@@ -9,0 +9,0 @@ } | import("..").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("..").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("..").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("..").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("..").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("..").MapToPubSubShape<import("..").MessagingStateEvent> | import("..").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("..").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("..").MapToPubSubShape<import("..").MessageReceivedEvent> | import("..").MapToPubSubShape<import("..").CallingCallDialEvent> | import("..").MapToPubSubShape<import("..").CallingCallStateEvent> | import("..").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("..").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("..").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("..").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("..").MapToPubSubShape<import("..").CallingCallTapEvent> | import("..").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("..").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("..").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("..").MapToPubSubShape<import("..").CallReceivedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("..").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("..").MapToPubSubShape<import("..").CallTapStartedEvent> | import("..").MapToPubSubShape<import("..").CallTapEndedEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("..").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("..").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectFailedEvent>>, void, unknown>;

import { createAction, Action } from './toolkit';
import type { JSONRPCRequest, SessionAuthError } from '../utils/interfaces';
import { ExecuteActionParams } from './interfaces';
import { EventEmitter } from '..';

@@ -13,6 +12,2 @@ export declare const initAction: import("./toolkit").ActionCreatorWithoutPayload<"swSdk/init">;

}, string>;
/**
* Trigger saga to send a JSONRPC over the wire
*/
export declare const executeAction: import("./toolkit").ActionCreatorWithPayload<ExecuteActionParams, string>;
export declare const authErrorAction: import("./toolkit").ActionCreatorWithPayload<{

@@ -24,7 +19,7 @@ error: SessionAuthError;

export declare const socketMessageAction: import("./toolkit").ActionCreatorWithPayload<JSONRPCRequest, string>;
export declare const sessionConnectedAction: import("./toolkit").ActionCreatorWithoutPayload<"session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring">;
export declare const sessionDisconnectedAction: import("./toolkit").ActionCreatorWithoutPayload<"session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring">;
export declare const sessionReconnectingAction: import("./toolkit").ActionCreatorWithoutPayload<"session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring">;
export declare const sessionAuthErrorAction: import("./toolkit").ActionCreatorWithPayload<Error, "session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring">;
export declare const sessionExpiringAction: import("./toolkit").ActionCreatorWithoutPayload<"session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring">;
export declare const sessionConnectedAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
export declare const sessionDisconnectedAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
export declare const sessionReconnectingAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
export declare const sessionAuthErrorAction: import("./toolkit").ActionCreatorWithPayload<Error, "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
export declare const sessionExpiringAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
export declare const sessionForceCloseAction: import("./toolkit").ActionCreatorWithoutPayload<"session.forceClose">;

@@ -31,0 +26,0 @@ export declare const makeCustomSagaAction: (id: string, action: Action) => {

@@ -1,9 +0,7 @@

import { ReduxComponent, SessionState, CustomSaga } from './interfaces';
import { SessionState, CustomSaga } from './interfaces';
import { SDKStore } from './';
import type { BaseComponent } from '../BaseComponent';
import { EventEmitter } from '../utils/EventEmitter';
declare type ComponentEventHandler = (component: ReduxComponent) => unknown;
declare type SessionEventHandler = (session: SessionState) => unknown;
interface Connect<T> {
componentListeners: Record<string, string | ComponentEventHandler>;
sessionListeners?: Partial<Record<ReduxSessionKeys, string | SessionEventHandler>>;

@@ -10,0 +8,0 @@ store: SDKStore;

export * from './component/componentSlice';
export * from './executeQueue/executeQueueSlice';
export * from './session/sessionSlice';
//# sourceMappingURL=index.d.ts.map

@@ -1,20 +0,12 @@

import { SagaIterator, EventChannel } from '@redux-saga/core';
import { SagaIterator } from '@redux-saga/core';
import { BaseSession } from '../../../BaseSession';
import type { PubSubChannel, SwEventChannel } from '../../interfaces';
import type { PubSubChannel, SessionChannel, SwEventChannel } from '../../interfaces';
declare type SessionSagaParams = {
session: BaseSession;
sessionChannel: EventChannel<any>;
sessionChannel: SessionChannel;
pubSubChannel: PubSubChannel;
swEventChannel: SwEventChannel;
};
/**
* Watch every "executeAction" and fork the worker to send
* a JSONRPC over the wire and then update the state
* with "componentActions.executeSuccess" or "componentActions.executeFailure"
* actions if a componentId is provided.
*/
export declare function executeActionWatcher(session: BaseSession): SagaIterator;
export declare function sessionChannelWatcher({ sessionChannel, pubSubChannel, swEventChannel, session, }: SessionSagaParams): SagaIterator;
export declare function createSessionChannel(session: BaseSession): EventChannel<import("@redux-saga/types").NotUndefined>;
export {};
//# sourceMappingURL=sessionSaga.d.ts.map
import { Saga, Task } from '@redux-saga/core';
import { SDKState } from './interfaces';
import { connect } from './connect';
import { InternalUserOptions, SessionConstructor } from '../utils/interfaces';
import { InternalUserOptions, SessionConstructor, InternalChannels } from '../utils/interfaces';
export interface ConfigureStoreOptions {

@@ -18,2 +18,3 @@ userOptions: InternalUserOptions;

}) => Task<any>;
channels: InternalChannels;
dispatch: import("redux").Dispatch<import("redux").AnyAction>;

@@ -20,0 +21,0 @@ getState(): any;

@@ -1,7 +0,7 @@

import type { SagaIterator } from '@redux-saga/types';
import type { Channel, SagaIterator } from '@redux-saga/types';
import { END, MulticastChannel } from '@redux-saga/core';
import type { PayloadAction } from './toolkit';
import { JSONRPCResponse, SessionAuthError, SessionAuthStatus, SessionEvents, JSONRPCMethod, BaseConnectionState, Authorization } from '../utils/interfaces';
import { JSONRPCResponse, JSONRPCRequest, SessionAuthError, SessionAuthStatus, SessionEvents, JSONRPCMethod, BaseConnectionState, Authorization } from '../utils/interfaces';
import type { VideoAction, ChatAction, TaskAction, MessagingAction, SwEventParams, VoiceCallAction, VideoManagerAction, PubSubEventAction } from '../types';
import { SDKRunSaga } from '.';
import { END, MulticastChannel } from '@redux-saga/core';
interface SWComponent {

@@ -49,3 +49,2 @@ id: string;

session: SessionState;
executeQueue: ExecuteQueueState;
}

@@ -58,5 +57,2 @@ export interface ExecuteActionParams {

}
export interface ExecuteQueueState {
queue: ExecuteActionParams[];
}
export interface CustomSagaParams<T> {

@@ -80,6 +76,10 @@ instance: T;

} | VideoManagerAction | ChatAction | PubSubEventAction | TaskAction | MessagingAction | VoiceCallAction;
export declare type SessionChannelAction = PayloadAction<void, SessionEvents> | PayloadAction<JSONRPCRequest> | PayloadAction<void, 'auth/success'> | PayloadAction<void, 'auth/expiring'> | PayloadAction<{
error: SessionAuthError;
}> | PayloadAction<SessionAuthStatus>;
export declare type PubSubChannel = MulticastChannel<PubSubAction>;
export declare type SwEventChannel = MulticastChannel<MapToPubSubShape<SwEventParams>>;
export declare type SessionChannel = Channel<SessionChannelAction>;
export declare type SDKActions = MapToPubSubShape<SwEventParams> | END;
export {};
//# sourceMappingURL=interfaces.d.ts.map

@@ -464,13 +464,3 @@ export declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{

};
executeQueue: {
readonly queue: readonly {
readonly requestId?: string | undefined;
readonly componentId?: string | undefined;
readonly method: import("..").JSONRPCMethod;
readonly params: {
readonly [x: string]: any;
};
}[];
};
}>, import("redux").AnyAction>;
//# sourceMappingURL=rootReducer.d.ts.map
import type { SagaIterator } from '@redux-saga/types';
import { EventChannel } from '@redux-saga/core';
import { SessionConstructor, InternalUserOptions, InternalChannels } from '../utils/interfaces';
import { InternalUserOptions, InternalChannels } from '../utils/interfaces';
import { BaseSession } from '../BaseSession';
import { PubSubChannel } from './interfaces';
import { PubSubChannel, SessionChannel } from './interfaces';
interface StartSagaOptions {
session: BaseSession;
sessionChannel: EventChannel<any>;
sessionChannel: SessionChannel;
pubSubChannel: PubSubChannel;
userOptions: InternalUserOptions;
}
export declare function initSessionSaga({ SessionConstructor, userOptions, channels, }: {
SessionConstructor: SessionConstructor;
export declare function initSessionSaga({ initSession, userOptions, channels, }: {
initSession: () => BaseSession;
userOptions: InternalUserOptions;

@@ -22,3 +21,3 @@ channels: InternalChannels;

}): Generator<import("@redux-saga/core/effects").ChannelPutEffect<import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomAudienceCountEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberPromotedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberDemotedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoStreamStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoStreamEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomAudienceCountEvent> | {
type: "session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring";
type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring";
payload: Error | undefined;

@@ -35,3 +34,3 @@ } | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("./interfaces").MapToPubSubShape<import("..").MessagingStateEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDialEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallStateEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallTapEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectFailedEvent>> | import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").PutEffect<{

interface RootSagaOptions {
SessionConstructor: SessionConstructor;
initSession: () => BaseSession;
}

@@ -38,0 +37,0 @@ declare const _default: (options: RootSagaOptions) => ({ userOptions, channels, }: {

@@ -52,2 +52,7 @@ import type { BaseRoomInterface, RoomSessionRecording, RoomSessionPlayback, RoomSessionStream } from '.';

layout?: string;
seekPosition?: number;
/**
* @deprecated Use {@link seekPosition} instead.
* `currentTimecode` will be removed in v4.0.0
*/
currentTimecode?: number;

@@ -54,0 +59,0 @@ };

/// <reference types="jest" />
import { ConfigureStoreOptions } from './redux';
import { PubSubChannel, SwEventChannel } from './redux/interfaces';
import { PubSubChannel, SwEventChannel, SessionChannel } from './redux/interfaces';
import { RPCConnectResult, InternalSDKLogger } from './utils/interfaces';

@@ -18,2 +18,3 @@ import { EventEmitter } from './utils/EventEmitter';

}) => import("@redux-saga/types").Task<any>;
channels: import(".").InternalChannels;
dispatch: import("redux").Dispatch<import("redux").AnyAction>;

@@ -38,2 +39,3 @@ getState(): any;

}) => import("@redux-saga/types").Task<any>;
channels: import(".").InternalChannels;
dispatch: import("redux").Dispatch<import("redux").AnyAction>;

@@ -64,2 +66,3 @@ getState(): any;

export declare const createSwEventChannel: () => SwEventChannel;
export declare const createSessionChannel: () => SessionChannel;
//# sourceMappingURL=testUtils.d.ts.map

@@ -7,3 +7,3 @@ /// <reference types="node" />

import { GLOBAL_VIDEO_EVENTS, INTERNAL_GLOBAL_VIDEO_EVENTS, PRODUCT_PREFIXES } from './constants';
import type { CustomSaga, PubSubChannel, SwEventChannel } from '../redux/interfaces';
import type { CustomSaga, PubSubChannel, SessionChannel, SwEventChannel } from '../redux/interfaces';
import type { URL as NodeURL } from 'node:url';

@@ -52,2 +52,3 @@ import { AllOrNone, CallingTransformType, ChatJSONRPCMethod, ChatTransformType, PubSubTransformType, MessagingJSONRPCMethod, MessagingTransformType, VoiceJSONRPCMethod, ClientContextMethod } from '..';

_onRefreshToken?(): void;
sessionChannel?: SessionChannel;
}

@@ -332,2 +333,3 @@ export interface UserOptions extends SessionOptions {

swEventChannel: SwEventChannel;
sessionChannel: SessionChannel;
};

@@ -349,2 +351,3 @@ export declare type SDKWorkerHooks<OnDone = (options?: any) => void, OnFail = (options?: any) => void> = AllOrNone<{

initialState?: any;
getSession: () => BaseSession | undefined;
};

@@ -351,0 +354,0 @@ export declare type SDKWorkerParams<T, Hooks extends SDKWorkerHooks = SDKWorkerHooks> = SDKWorkerBaseParams<T> & Hooks;

@@ -14,2 +14,3 @@ /// <reference types="jest" />

}) => import("@redux-saga/types").Task<any>;
channels: import("@signalwire/core").InternalChannels;
dispatch: import("redux").Dispatch<import("redux").AnyAction>;

@@ -34,2 +35,3 @@ getState(): any;

}) => import("@redux-saga/types").Task<any>;
channels: import("@signalwire/core").InternalChannels;
dispatch: import("redux").Dispatch<import("redux").AnyAction>;

@@ -36,0 +38,0 @@ getState(): any;

@@ -1,6 +0,2 @@

export declare const ROOM_COMPONENT_LISTENERS: {
errors: string;
responses: string;
};
export declare const SCREENSHARE_AUDIO_CONSTRAINTS: MediaTrackConstraints;
//# sourceMappingURL=constants.d.ts.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.18.0",
"version": "3.19.0-dev.202303161534.b91b90d.0",
"main": "dist/index.js",

@@ -47,4 +47,4 @@ "module": "dist/index.esm.js",

"dependencies": {
"@signalwire/core": "3.13.0",
"@signalwire/webrtc": "3.6.0",
"@signalwire/core": "3.14.0-dev.202303161534.b91b90d.0",
"@signalwire/webrtc": "3.6.1-dev.202303161534.b91b90d.0",
"jwt-decode": "^3.1.2"

@@ -51,0 +51,0 @@ },

@@ -34,6 +34,3 @@ import {

} from './utils/interfaces'
import {
ROOM_COMPONENT_LISTENERS,
SCREENSHARE_AUDIO_CONSTRAINTS,
} from './utils/constants'
import { SCREENSHARE_AUDIO_CONSTRAINTS } from './utils/constants'
import { audioSetSpeakerAction } from './features/actions'

@@ -332,3 +329,2 @@ import {

Component: RoomSessionScreenShareAPI,
componentListeners: ROOM_COMPONENT_LISTENERS,
})(options)

@@ -428,3 +424,2 @@

Component: RoomSessionDeviceAPI,
componentListeners: ROOM_COMPONENT_LISTENERS,
})(options)

@@ -566,3 +561,2 @@

Component: RoomSessionAPI,
componentListeners: ROOM_COMPONENT_LISTENERS,
})(params)

@@ -569,0 +563,0 @@

@@ -86,6 +86,2 @@ import {

Component: VideoManagerAPI,
componentListeners: {
errors: 'onError',
responses: 'onSuccess',
},
})(params)

@@ -92,0 +88,0 @@

@@ -49,6 +49,2 @@ import {

Component: ClientAPI,
componentListeners: {
errors: 'onError',
responses: 'onSuccess',
},
})(baseUserOptions)

@@ -55,0 +51,0 @@

@@ -53,2 +53,6 @@ import { configureStore, EventEmitter, actions } from '@signalwire/core'

session.dispatch = (payload) => {
store.channels.sessionChannel.put(payload)
}
store.dispatch(actions.initAction())

@@ -55,0 +59,0 @@ store.dispatch(actions.authSuccessAction())

@@ -1,6 +0,1 @@

export const ROOM_COMPONENT_LISTENERS = {
errors: 'onError',
responses: 'onSuccess',
}
export const SCREENSHARE_AUDIO_CONSTRAINTS: MediaTrackConstraints = {

@@ -7,0 +2,0 @@ echoCancellation: true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc