@signalwire/core
Advanced tools
Comparing version 4.2.0-dev.202410251141.209f47f.0 to 4.2.0-dev.202411141416.f24b5fd.0
@@ -39,3 +39,3 @@ import type { Task } from '@redux-saga/types'; | ||
get store(): { | ||
runSaga: <T>(saga: import("@redux-saga/types").Saga<any[]>, args: { | ||
runSaga: <T>(saga: import("@redux-saga/types").Saga, args: { | ||
instance: T; | ||
@@ -46,4 +46,4 @@ runSaga: any; | ||
instanceMap: { | ||
get: <T_1 extends unknown>(key: string) => T_1; | ||
set: <T_2 extends unknown>(key: string, value: T_2) => Map<string, unknown>; | ||
get: <T extends unknown>(key: string) => T; | ||
set: <T extends unknown>(key: string, value: T) => Map<string, unknown>; | ||
remove: (key: string) => Map<string, unknown>; | ||
@@ -63,3 +63,3 @@ getAll: () => [string, unknown][]; | ||
get: <T extends unknown>(key: string) => T; | ||
set: <T_1 extends unknown>(key: string, value: T_1) => Map<string, unknown>; | ||
set: <T extends unknown>(key: string, value: T) => Map<string, unknown>; | ||
remove: (key: string) => Map<string, unknown>; | ||
@@ -66,0 +66,0 @@ getAll: () => [string, unknown][]; |
@@ -6,3 +6,3 @@ import { BaseComponentOptions, JSONRPCSubscribeMethod } from '..'; | ||
import { ChatMessage } from './ChatMessage'; | ||
export declare type BaseChatApiEventsHandlerMapping = Record<ChatMessageEventName, (message: ChatMessage) => void> & Record<ChatMemberEventNames, (member: ChatMember) => void>; | ||
export type BaseChatApiEventsHandlerMapping = Record<ChatMessageEventName, (message: ChatMessage) => void> & Record<ChatMemberEventNames, (member: ChatMember) => void>; | ||
/** | ||
@@ -14,3 +14,3 @@ * @privateRemarks | ||
*/ | ||
export declare type BaseChatApiEvents<T = BaseChatApiEventsHandlerMapping> = { | ||
export type BaseChatApiEvents<T = BaseChatApiEventsHandlerMapping> = { | ||
[k in keyof T]: T[k]; | ||
@@ -17,0 +17,0 @@ }; |
import type { ChatMessageEntity, ChatMemberEntity } from '../types/chat'; | ||
import type { PaginationCursor } from '../types/common'; | ||
import type { BaseChatConsumer } from './BaseChat'; | ||
declare type ChatMethodParams = Record<string, unknown>; | ||
type ChatMethodParams = Record<string, unknown>; | ||
interface ChatMethodPropertyDescriptor<OutputType, ParamsType> extends PropertyDescriptor { | ||
value: (params: ParamsType) => Promise<OutputType>; | ||
} | ||
declare type ChatMethodDescriptor<OutputType = unknown, ParamsType = ChatMethodParams> = ChatMethodPropertyDescriptor<OutputType, ParamsType> & ThisType<BaseChatConsumer>; | ||
type ChatMethodDescriptor<OutputType = unknown, ParamsType = ChatMethodParams> = ChatMethodPropertyDescriptor<OutputType, ParamsType> & ThisType<BaseChatConsumer>; | ||
/** | ||
@@ -10,0 +10,0 @@ * Chat Methods |
@@ -43,3 +43,2 @@ import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, fromSnakeToCamelCase, toSnakeCaseKeys, toLocalEvent, toSyntheticEvent, extendComponent, validateEventsToSubscribe, toInternalEventName, toInternalAction, timeoutPromise, debounce, SWCloseEvent, isSATAuth, LOCAL_EVENT_PREFIX, stripNamespacePrefix, isJSONRPCRequest, isJSONRPCResponse } from './utils'; | ||
export * as testUtils from './testUtils'; | ||
export * from './utils/mapObject'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,6 +5,6 @@ import { SagaIterator, SDKWorker, SDKWorkerParams, VideoMemberUpdatedEventParams } from '..'; | ||
action: any; | ||
}): Generator<SagaIterator<any>, void, unknown>; | ||
}): Generator<SagaIterator, void, unknown>; | ||
export declare const memberPositionWorker: SDKWorker<any>; | ||
declare type MemberEventParamsList = Map<string, VideoMemberUpdatedEventParams>; | ||
type MemberEventParamsList = Map<string, VideoMemberUpdatedEventParams>; | ||
export {}; | ||
//# sourceMappingURL=workers.d.ts.map |
import { BaseComponentOptions, JSONRPCSubscribeMethod, EventEmitter, BaseConsumer } from '..'; | ||
import type { PubSubChannel, InternalPubSubChannel, PubSubPublishParams, PubSubMessageEventName } from '../types/pubSub'; | ||
import { PubSubMessage } from './PubSubMessage'; | ||
export declare type BasePubSubApiEventsHandlerMapping = Record<PubSubMessageEventName, (message: PubSubMessage) => void>; | ||
export type BasePubSubApiEventsHandlerMapping = Record<PubSubMessageEventName, (message: PubSubMessage) => void>; | ||
/** | ||
@@ -11,3 +11,3 @@ * @privateRemarks | ||
*/ | ||
export declare type BasePubSubApiEvents<T = BasePubSubApiEventsHandlerMapping> = { | ||
export type BasePubSubApiEvents<T = BasePubSubApiEventsHandlerMapping> = { | ||
[k in keyof T]: T[k]; | ||
@@ -14,0 +14,0 @@ }; |
@@ -5,3 +5,3 @@ import { SessionState, CustomSaga } from './interfaces'; | ||
import { EventEmitter } from '../utils/EventEmitter'; | ||
declare type SessionEventHandler = (session: SessionState) => unknown; | ||
type SessionEventHandler = (session: SessionState) => unknown; | ||
interface Connect<T> { | ||
@@ -13,5 +13,13 @@ sessionListeners?: Partial<Record<ReduxSessionKeys, string | SessionEventHandler>>; | ||
} | ||
declare type ReduxSessionKeys = keyof SessionState; | ||
export declare const connect: <EventTypes extends EventEmitter.ValidEventTypes, T extends BaseComponent<EventTypes, Record<string, unknown>>, TargetType>(options: Connect<T>) => (userOptions: any) => TargetType; | ||
type ReduxSessionKeys = keyof SessionState; | ||
export declare const connect: <EventTypes extends EventEmitter.ValidEventTypes, | ||
/** | ||
* Class extending BaseComponent. | ||
*/ | ||
T extends BaseComponent<EventTypes>, | ||
/** | ||
* The type the end user will be interacting with. | ||
*/ | ||
TargetType>(options: Connect<T>) => (userOptions: any) => TargetType; | ||
export {}; | ||
//# sourceMappingURL=connect.d.ts.map |
import { SagaIterator } from '@redux-saga/core'; | ||
import { BaseSession } from '../../../BaseSession'; | ||
import type { SessionChannel, SwEventChannel } from '../../interfaces'; | ||
declare type SessionSagaParams = { | ||
type SessionSagaParams = { | ||
session: BaseSession; | ||
@@ -6,0 +6,0 @@ sessionChannel: SessionChannel; |
@@ -1,2 +0,2 @@ | ||
import type { PayloadAction, AnyAction } from '../../toolkit'; | ||
import type { PayloadAction } from '../../toolkit'; | ||
import type { SessionState } from '../../interfaces'; | ||
@@ -11,3 +11,2 @@ import type { Authorization, RPCConnectResult, SessionAuthStatus } from '../../../utils/interfaces'; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -92,3 +91,2 @@ readonly username?: string | undefined; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -163,3 +161,2 @@ readonly username?: string | undefined; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -233,3 +230,2 @@ readonly username?: string | undefined; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -304,3 +300,2 @@ readonly username?: string | undefined; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -321,3 +316,2 @@ readonly username?: string | undefined; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -386,3 +380,3 @@ readonly username?: string | undefined; | ||
readonly authCount: number; | ||
}, AnyAction>; | ||
}>; | ||
//# sourceMappingURL=sessionSlice.d.ts.map |
@@ -11,4 +11,4 @@ import { Saga, Task } from '@redux-saga/core'; | ||
} | ||
export declare type SDKStore = ReturnType<typeof configureStore>; | ||
export declare type SDKRunSaga = <S extends Saga>(saga: S, params?: Parameters<S>[0]) => Task; | ||
export type SDKStore = ReturnType<typeof configureStore>; | ||
export type SDKRunSaga = <S extends Saga>(saga: S, params?: Parameters<S>[0]) => Task; | ||
declare const configureStore: (options: ConfigureStoreOptions) => { | ||
@@ -21,4 +21,4 @@ runSaga: <T>(saga: Saga, args: { | ||
instanceMap: { | ||
get: <T_1 extends unknown>(key: string) => T_1; | ||
set: <T_2 extends unknown>(key: string, value: T_2) => Map<string, unknown>; | ||
get: <T extends unknown>(key: string) => T; | ||
set: <T extends unknown>(key: string, value: T) => Map<string, unknown>; | ||
remove: (key: string) => Map<string, unknown>; | ||
@@ -25,0 +25,0 @@ getAll: () => [string, unknown][]; |
@@ -32,3 +32,3 @@ import type { Channel, SagaIterator } from '@redux-saga/types'; | ||
} | ||
export declare type ReduxComponent = WebRTCCall | Message; | ||
export type ReduxComponent = WebRTCCall | Message; | ||
export interface ComponentState { | ||
@@ -61,3 +61,3 @@ byId: { | ||
} | ||
export declare type CustomSaga<T> = (params: CustomSagaParams<T>) => SagaIterator<any>; | ||
export type CustomSaga<T> = (params: CustomSagaParams<T>) => SagaIterator<any>; | ||
/** | ||
@@ -72,10 +72,10 @@ * Converts from: | ||
*/ | ||
export declare type MapToPubSubShape<T> = { | ||
export type MapToPubSubShape<T> = { | ||
[K in keyof T as K extends 'event_type' ? 'type' : K extends 'params' ? 'payload' : never]: T[K]; | ||
}; | ||
export declare type PubSubAction = VideoAction | { | ||
export type PubSubAction = VideoAction | { | ||
type: SessionEvents; | ||
payload: Error | undefined; | ||
} | VideoManagerAction | ChatAction | PubSubEventAction | TaskAction | MessagingAction | VoiceCallAction; | ||
export declare type SessionChannelAction = PayloadAction<void, SessionEvents> | PayloadAction<JSONRPCRequest> | PayloadAction<void, 'auth/success'> | PayloadAction<void, 'auth/expiring'> | PayloadAction<{ | ||
export type SessionChannelAction = PayloadAction<void, SessionEvents> | PayloadAction<JSONRPCRequest> | PayloadAction<void, 'auth/success'> | PayloadAction<void, 'auth/expiring'> | PayloadAction<{ | ||
error: SessionAuthError; | ||
@@ -85,6 +85,6 @@ }> | PayloadAction<{ | ||
}> | PayloadAction<SessionAuthStatus>; | ||
export declare type SwEventChannel = MulticastChannel<MapToPubSubShape<SwEventParams>>; | ||
export declare type SessionChannel = Channel<SessionChannelAction>; | ||
export declare type SDKActions = MapToPubSubShape<SwEventParams> | END; | ||
export type SwEventChannel = MulticastChannel<MapToPubSubShape<SwEventParams>>; | ||
export type SessionChannel = Channel<SessionChannelAction>; | ||
export type SDKActions = MapToPubSubShape<SwEventParams> | END; | ||
export {}; | ||
//# sourceMappingURL=interfaces.d.ts.map |
@@ -37,2 +37,6 @@ export declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{ | ||
} | undefined; | ||
readonly displaySurface?: string | readonly string[] | { | ||
readonly exact?: string | readonly string[] | undefined; | ||
readonly ideal?: string | readonly string[] | undefined; | ||
} | undefined; | ||
readonly echoCancellation?: boolean | { | ||
@@ -62,8 +66,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly latency?: number | { | ||
readonly exact?: number | undefined; | ||
readonly ideal?: number | undefined; | ||
readonly max?: number | undefined; | ||
readonly min?: number | undefined; | ||
} | undefined; | ||
readonly noiseSuppression?: boolean | { | ||
@@ -85,6 +83,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly suppressLocalAudioPlayback?: boolean | { | ||
readonly exact?: boolean | undefined; | ||
readonly ideal?: boolean | undefined; | ||
} | undefined; | ||
readonly width?: number | { | ||
@@ -117,2 +111,6 @@ readonly exact?: number | undefined; | ||
} | undefined; | ||
readonly displaySurface?: string | readonly string[] | { | ||
readonly exact?: string | readonly string[] | undefined; | ||
readonly ideal?: string | readonly string[] | undefined; | ||
} | undefined; | ||
readonly echoCancellation?: boolean | { | ||
@@ -142,8 +140,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly latency?: number | { | ||
readonly exact?: number | undefined; | ||
readonly ideal?: number | undefined; | ||
readonly max?: number | undefined; | ||
readonly min?: number | undefined; | ||
} | undefined; | ||
readonly noiseSuppression?: boolean | { | ||
@@ -165,6 +157,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly suppressLocalAudioPlayback?: boolean | { | ||
readonly exact?: boolean | undefined; | ||
readonly ideal?: boolean | undefined; | ||
} | undefined; | ||
readonly width?: number | { | ||
@@ -199,2 +187,6 @@ readonly exact?: number | undefined; | ||
} | undefined; | ||
readonly displaySurface?: string | readonly string[] | { | ||
readonly exact?: string | readonly string[] | undefined; | ||
readonly ideal?: string | readonly string[] | undefined; | ||
} | undefined; | ||
readonly echoCancellation?: boolean | { | ||
@@ -224,8 +216,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly latency?: number | { | ||
readonly exact?: number | undefined; | ||
readonly ideal?: number | undefined; | ||
readonly max?: number | undefined; | ||
readonly min?: number | undefined; | ||
} | undefined; | ||
readonly noiseSuppression?: boolean | { | ||
@@ -247,6 +233,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly suppressLocalAudioPlayback?: boolean | { | ||
readonly exact?: boolean | undefined; | ||
readonly ideal?: boolean | undefined; | ||
} | undefined; | ||
readonly width?: number | { | ||
@@ -279,2 +261,6 @@ readonly exact?: number | undefined; | ||
} | undefined; | ||
readonly displaySurface?: string | readonly string[] | { | ||
readonly exact?: string | readonly string[] | undefined; | ||
readonly ideal?: string | readonly string[] | undefined; | ||
} | undefined; | ||
readonly echoCancellation?: boolean | { | ||
@@ -304,8 +290,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly latency?: number | { | ||
readonly exact?: number | undefined; | ||
readonly ideal?: number | undefined; | ||
readonly max?: number | undefined; | ||
readonly min?: number | undefined; | ||
} | undefined; | ||
readonly noiseSuppression?: boolean | { | ||
@@ -327,6 +307,2 @@ readonly exact?: boolean | undefined; | ||
} | undefined; | ||
readonly suppressLocalAudioPlayback?: boolean | { | ||
readonly exact?: boolean | undefined; | ||
readonly ideal?: boolean | undefined; | ||
} | undefined; | ||
readonly width?: number | { | ||
@@ -411,3 +387,2 @@ readonly exact?: number | undefined; | ||
readonly credential?: string | undefined; | ||
readonly credentialType?: "password" | undefined; | ||
readonly urls: string | readonly string[]; | ||
@@ -414,0 +389,0 @@ readonly username?: string | undefined; |
@@ -38,4 +38,4 @@ import type { SagaIterator } from '@redux-saga/types'; | ||
channels: InternalChannels; | ||
}) => SagaIterator<any>; | ||
}) => SagaIterator; | ||
export default _default; | ||
//# sourceMappingURL=rootSaga.d.ts.map |
@@ -10,3 +10,3 @@ import type { Reducer, ReducersMapObject, Middleware, Action, AnyAction, StoreEnhancer, Store, Dispatch, PreloadedState, CombinedState } from 'redux'; | ||
*/ | ||
export declare type ConfigureEnhancersCallback = (defaultEnhancers: readonly StoreEnhancer[]) => StoreEnhancer[]; | ||
export type ConfigureEnhancersCallback = (defaultEnhancers: readonly StoreEnhancer[]) => StoreEnhancer[]; | ||
/** | ||
@@ -53,3 +53,3 @@ * Options for `configureStore()`. | ||
} | ||
declare type Middlewares<S> = ReadonlyArray<Middleware<{}, S>>; | ||
type Middlewares<S> = ReadonlyArray<Middleware<{}, S>>; | ||
/** | ||
@@ -77,4 +77,4 @@ * A Redux store returned by `configureStore()`. Supports dispatching | ||
*/ | ||
export declare function configureStore<S = any, A extends Action = AnyAction, M extends Middlewares<S> = []>(options: ConfigureStoreOptions<S, A, M>): EnhancedStore<S, A, M>; | ||
export declare function configureStore<S extends Reducer<CombinedState<S>, A> = any, A extends Action = AnyAction, M extends Middlewares<S> = []>(options: ConfigureStoreOptions<S, A, M>): EnhancedStore<S, A, M>; | ||
export {}; | ||
//# sourceMappingURL=configureStore.d.ts.map |
@@ -14,3 +14,3 @@ import type { Action } from 'redux'; | ||
*/ | ||
export declare type PayloadAction<P = void, T extends string = string, M = never, E = never> = { | ||
export type PayloadAction<P = void, T extends string = string, M = never, E = never> = { | ||
payload: P; | ||
@@ -30,3 +30,3 @@ type: T; | ||
*/ | ||
export declare type PrepareAction<P> = ((...args: any[]) => { | ||
export type PrepareAction<P> = ((...args: any[]) => { | ||
payload: P; | ||
@@ -49,3 +49,3 @@ }) | ((...args: any[]) => { | ||
*/ | ||
export declare type _ActionCreatorWithPreparedPayload<PA extends PrepareAction<any> | void, T extends string = string> = PA extends PrepareAction<infer P> ? ActionCreatorWithPreparedPayload<Parameters<PA>, P, T, ReturnType<PA> extends { | ||
export type _ActionCreatorWithPreparedPayload<PA extends PrepareAction<any> | void, T extends string = string> = PA extends PrepareAction<infer P> ? ActionCreatorWithPreparedPayload<Parameters<PA>, P, T, ReturnType<PA> extends { | ||
error: infer E; | ||
@@ -152,3 +152,3 @@ } ? E : never, ReturnType<PA> extends { | ||
*/ | ||
export declare type PayloadActionCreator<P = void, T extends string = string, PA extends PrepareAction<P> | void = void> = IfPrepareActionMethodProvided<PA, _ActionCreatorWithPreparedPayload<PA, T>, IsAny<P, ActionCreatorWithPayload<any, T>, IsUnknownOrNonInferrable<P, ActionCreatorWithNonInferrablePayload<T>, IfVoid<P, ActionCreatorWithoutPayload<T>, IfMaybeUndefined<P, ActionCreatorWithOptionalPayload<P, T>, ActionCreatorWithPayload<P, T>>>>>>; | ||
export type PayloadActionCreator<P = void, T extends string = string, PA extends PrepareAction<P> | void = void> = IfPrepareActionMethodProvided<PA, _ActionCreatorWithPreparedPayload<PA, T>, IsAny<P, ActionCreatorWithPayload<any, T>, IsUnknownOrNonInferrable<P, ActionCreatorWithNonInferrablePayload<T>, IfVoid<P, ActionCreatorWithoutPayload<T>, IfMaybeUndefined<P, ActionCreatorWithOptionalPayload<P, T>, ActionCreatorWithPayload<P, T>>>>>>; | ||
/** | ||
@@ -182,4 +182,4 @@ * A utility function to create an action creator for the given action type | ||
export declare function createAction<PA extends PrepareAction<any>, T extends string = string>(type: T, prepareAction: PA): PayloadActionCreator<ReturnType<PA>['payload'], T, PA>; | ||
declare type IfPrepareActionMethodProvided<PA extends PrepareAction<any> | void, True, False> = PA extends (...args: any[]) => any ? True : False; | ||
type IfPrepareActionMethodProvided<PA extends PrepareAction<any> | void, True, False> = PA extends (...args: any[]) => any ? True : False; | ||
export {}; | ||
//# sourceMappingURL=createAction.d.ts.map |
@@ -5,3 +5,3 @@ import { Action, AnyAction, Reducer } from 'redux'; | ||
import { NoInfer } from './tsHelpers'; | ||
export declare type CaseReducer<S = any, A extends Action = AnyAction> = (state: S, action: A) => S | void; | ||
export type CaseReducer<S = any, A extends Action = AnyAction> = (state: S, action: A) => S | void; | ||
export interface ActionMatcher<A extends AnyAction> { | ||
@@ -18,3 +18,3 @@ (action: AnyAction): action is A; | ||
*/ | ||
export declare type Actions<T extends keyof any = string> = Record<T, Action>; | ||
export type Actions<T extends keyof any = string> = Record<T, Action>; | ||
/** | ||
@@ -29,17 +29,17 @@ * A mapping from action types to case reducers for `createReducer()`. | ||
*/ | ||
export declare type CaseReducers<S, AS extends Actions> = { | ||
export type CaseReducers<S, AS extends Actions> = { | ||
[T in keyof AS]: AS[T] extends Action ? CaseReducer<S, AS[T]> : void; | ||
}; | ||
export declare type ActionMatcherDescription<S, A extends AnyAction> = { | ||
export type ActionMatcherDescription<S, A extends AnyAction> = { | ||
matcher: ActionMatcher<A>; | ||
reducer: CaseReducer<S, NoInfer<A>>; | ||
}; | ||
export declare type ActionMatcherDescriptionCollection<S> = Array<ActionMatcherDescription<S, any>>; | ||
export declare type NotFunction<T> = T extends Function ? never : T; | ||
export declare type ReducerWithInitialState<S extends NotFunction<any>> = Reducer<DeepReadonly<S>> & { | ||
export type ActionMatcherDescriptionCollection<S> = Array<ActionMatcherDescription<S, any>>; | ||
export type NotFunction<T> = T extends Function ? never : T; | ||
export type ReducerWithInitialState<S extends NotFunction<any>> = Reducer<DeepReadonly<S>> & { | ||
getInitialState: () => DeepReadonly<S>; | ||
}; | ||
export declare type ReadonlyActionMatcherDescriptionCollection<S> = ReadonlyArray<ActionMatcherDescription<S, any>>; | ||
export type ReadonlyActionMatcherDescriptionCollection<S> = ReadonlyArray<ActionMatcherDescription<S, any>>; | ||
export declare function createReducer<S extends NotFunction<any>>(initialState: S | (() => S), builderCallback: (builder: ActionReducerMapBuilder<S>) => void): ReducerWithInitialState<S>; | ||
export declare function createReducer<S extends NotFunction<any>, CR extends CaseReducers<S, any> = CaseReducers<S, any>>(initialState: S | (() => S), actionsMap: CR, actionMatchers?: ActionMatcherDescriptionCollection<S>, defaultCaseReducer?: CaseReducer<S>): ReducerWithInitialState<S>; | ||
//# sourceMappingURL=createReducer.d.ts.map |
@@ -15,3 +15,3 @@ import type { Reducer } from 'redux'; | ||
*/ | ||
export declare type SliceActionCreator<P> = PayloadActionCreator<P>; | ||
export type SliceActionCreator<P> = PayloadActionCreator<P>; | ||
/** | ||
@@ -63,3 +63,3 @@ * The return value of `createSlice` | ||
*/ | ||
export declare type CaseReducerWithPrepare<State, Action extends PayloadAction> = { | ||
export type CaseReducerWithPrepare<State, Action extends PayloadAction> = { | ||
reducer: CaseReducer<State, Action>; | ||
@@ -73,3 +73,3 @@ prepare: PrepareAction<Action['payload']>; | ||
*/ | ||
export declare type SliceCaseReducers<State> = { | ||
export type SliceCaseReducers<State> = { | ||
[K: string]: CaseReducer<DeepReadonly<State>, PayloadAction<any>> | CaseReducerWithPrepare<DeepReadonly<State>, PayloadAction<any, string, any, any>>; | ||
@@ -82,3 +82,3 @@ }; | ||
*/ | ||
export declare type CaseReducerActions<CaseReducers extends SliceCaseReducers<any>> = { | ||
export type CaseReducerActions<CaseReducers extends SliceCaseReducers<any>> = { | ||
[Type in keyof CaseReducers]: CaseReducers[Type] extends { | ||
@@ -93,3 +93,3 @@ prepare: any; | ||
*/ | ||
declare type ActionCreatorForCaseReducerWithPrepare<CR extends { | ||
type ActionCreatorForCaseReducerWithPrepare<CR extends { | ||
prepare: any; | ||
@@ -102,3 +102,3 @@ }> = _ActionCreatorWithPreparedPayload<CR['prepare'], string>; | ||
*/ | ||
declare type ActionCreatorForCaseReducer<CR> = CR extends (state: any, action: infer Action) => any ? Action extends { | ||
type ActionCreatorForCaseReducer<CR> = CR extends (state: any, action: infer Action) => any ? Action extends { | ||
payload: infer P; | ||
@@ -112,3 +112,3 @@ } ? PayloadActionCreator<P> : ActionCreatorWithoutPayload : ActionCreatorWithoutPayload; | ||
*/ | ||
declare type SliceDefinedCaseReducers<CaseReducers extends SliceCaseReducers<any>> = { | ||
type SliceDefinedCaseReducers<CaseReducers extends SliceCaseReducers<any>> = { | ||
[Type in keyof CaseReducers]: CaseReducers[Type] extends { | ||
@@ -130,3 +130,3 @@ reducer: infer Reducer; | ||
*/ | ||
export declare type ValidateSliceCaseReducers<S, ACR extends SliceCaseReducers<S>> = ACR & { | ||
export type ValidateSliceCaseReducers<S, ACR extends SliceCaseReducers<S>> = ACR & { | ||
[T in keyof ACR]: ACR[T] extends { | ||
@@ -133,0 +133,0 @@ reducer(s: S, action?: infer A): any; |
@@ -5,3 +5,3 @@ import { Middleware } from 'redux'; | ||
} | ||
export declare type CurriedGetDefaultMiddleware<S = any> = <O extends Partial<GetDefaultMiddlewareOptions> = { | ||
export type CurriedGetDefaultMiddleware<S = any> = <O extends Partial<GetDefaultMiddlewareOptions> = { | ||
thunk: true; | ||
@@ -8,0 +8,0 @@ immutableCheck: true; |
import type { Middleware } from 'redux'; | ||
export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export declare type DispatchForMiddlewares<M> = M extends ReadonlyArray<any> ? UnionToIntersection<M[number] extends infer MiddlewareValues ? MiddlewareValues extends Middleware<infer DispatchExt, any, any> ? DispatchExt extends Function ? IsAny<DispatchExt, never, DispatchExt> : never : never : never> : never; | ||
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export type DispatchForMiddlewares<M> = M extends ReadonlyArray<any> ? UnionToIntersection<M[number] extends infer MiddlewareValues ? MiddlewareValues extends Middleware<infer DispatchExt, any, any> ? DispatchExt extends Function ? IsAny<DispatchExt, never, DispatchExt> : never : never : never> : never; | ||
/** | ||
@@ -10,3 +10,3 @@ * return True if T is `any`, otherwise return False | ||
*/ | ||
export declare type IsAny<T, True, False = never> = true | false extends (T extends never ? true : false) ? True : False; | ||
export type IsAny<T, True, False = never> = true | false extends (T extends never ? true : false) ? True : False; | ||
/** | ||
@@ -18,3 +18,3 @@ * return True if T is `unknown`, otherwise return False | ||
*/ | ||
export declare type IsUnknown<T, True, False = never> = unknown extends T ? IsAny<T, False, True> : False; | ||
export type IsUnknown<T, True, False = never> = unknown extends T ? IsAny<T, False, True> : False; | ||
/** | ||
@@ -28,19 +28,19 @@ * returns True if TS version is above 3.5, False if below. | ||
*/ | ||
export declare type AtLeastTS35<True, False> = [True, False][IsUnknown<ReturnType<(<T>() => T)>, 0, 1>]; | ||
export type AtLeastTS35<True, False> = [True, False][IsUnknown<ReturnType<(<T>() => T)>, 0, 1>]; | ||
/** | ||
* @internal | ||
*/ | ||
export declare type IsEmptyObj<T, True, False = never> = T extends any ? keyof T extends never ? IsUnknown<T, False, IfMaybeUndefined<T, False, IfVoid<T, False, True>>> : False : never; | ||
export type IsEmptyObj<T, True, False = never> = T extends any ? keyof T extends never ? IsUnknown<T, False, IfMaybeUndefined<T, False, IfVoid<T, False, True>>> : False : never; | ||
/** | ||
* @internal | ||
*/ | ||
export declare type IfMaybeUndefined<P, True, False> = [undefined] extends [P] ? True : False; | ||
export type IfMaybeUndefined<P, True, False> = [undefined] extends [P] ? True : False; | ||
/** | ||
* @internal | ||
*/ | ||
export declare type IfVoid<P, True, False> = [void] extends [P] ? True : False; | ||
export type IfVoid<P, True, False> = [void] extends [P] ? True : False; | ||
/** | ||
* @internal | ||
*/ | ||
export declare type IsUnknownOrNonInferrable<T, True, False> = AtLeastTS35<IsUnknown<T, True, False>, IsEmptyObj<T, True, IsUnknown<T, True, False>>>; | ||
export type IsUnknownOrNonInferrable<T, True, False> = AtLeastTS35<IsUnknown<T, True, False>, IsEmptyObj<T, True, IsUnknown<T, True, False>>>; | ||
/** | ||
@@ -53,3 +53,3 @@ * Helper type. Passes T out again, but boxes it in a way that it cannot | ||
*/ | ||
export declare type NoInfer<T> = [T][T extends any ? 0 : never]; | ||
export type NoInfer<T> = [T][T extends any ? 0 : never]; | ||
//# sourceMappingURL=tsHelpers.d.ts.map |
@@ -7,4 +7,4 @@ import { SliceCaseReducers, ValidateSliceCaseReducers } from '../toolkit/createSlice'; | ||
reducers: ValidateSliceCaseReducers<T, Reducers>; | ||
extraReducers?: ((builder: ActionReducerMapBuilder<T>) => void) | undefined; | ||
extraReducers?: (builder: ActionReducerMapBuilder<T>) => void; | ||
}) => import("../toolkit/createSlice").Slice<T, Reducers, string>; | ||
//# sourceMappingURL=createDestroyableSlice.d.ts.map |
export declare const useInstanceMap: () => { | ||
get: <T extends unknown>(key: string) => T; | ||
set: <T_1 extends unknown>(key: string, value: T_1) => Map<string, unknown>; | ||
set: <T extends unknown>(key: string, value: T) => Map<string, unknown>; | ||
remove: (key: string) => Map<string, unknown>; | ||
@@ -5,0 +5,0 @@ getAll: () => [string, unknown][]; |
import { type BaseRoomInterface, type RoomSessionRecording, type RoomSessionPlayback, type RoomSessionStream } from '.'; | ||
import type { VideoMemberEntity, MemberCommandParams, VideoPosition } from '../types'; | ||
import type { MediaAllowed, VideoMeta } from '../utils/interfaces'; | ||
export declare type RoomMethodParams = Record<string, unknown>; | ||
export type RoomMethodParams = Record<string, unknown>; | ||
interface RoomMethodPropertyDescriptor<OutputType, ParamsType> extends PropertyDescriptor { | ||
value: (params: ParamsType) => Promise<OutputType>; | ||
} | ||
declare type RoomMethodDescriptor<OutputType = unknown, ParamsType = RoomMethodParams> = RoomMethodPropertyDescriptor<OutputType, ParamsType> & ThisType<BaseRoomInterface<string>>; | ||
type RoomMethodDescriptor<OutputType = unknown, ParamsType = RoomMethodParams> = RoomMethodPropertyDescriptor<OutputType, ParamsType> & ThisType<BaseRoomInterface<string>>; | ||
/** | ||
@@ -49,3 +49,3 @@ * Type the params for each room member method that uses the provided | ||
export declare const getPlaybacks: RoomMethodDescriptor<GetPlaybacksOutput>; | ||
export declare type PlayParams = { | ||
export type PlayParams = { | ||
url: string; | ||
@@ -73,3 +73,3 @@ volume?: number; | ||
export declare const updateMeta: RoomMethodDescriptor<void, UpdateMetaParams>; | ||
export declare type DeleteMetaParams = string[]; | ||
export type DeleteMetaParams = string[]; | ||
export declare const deleteMeta: RoomMethodDescriptor<any, DeleteMetaParams>; | ||
@@ -85,20 +85,20 @@ export interface GetStreamsOutput { | ||
export declare const setPrioritizeHandraise: RoomMethodDescriptor<any, boolean>; | ||
export declare type GetLayouts = ReturnType<typeof getLayouts.value>; | ||
export declare type GetMembers = ReturnType<typeof getMembers.value>; | ||
export declare type HideVideoMuted = ReturnType<typeof hideVideoMuted.value>; | ||
export declare type ShowVideoMuted = ReturnType<typeof showVideoMuted.value>; | ||
export declare type SetHideVideoMuted = ReturnType<typeof setHideVideoMuted.value>; | ||
export declare type GetRecordings = ReturnType<typeof getRecordings.value>; | ||
export declare type StartRecording = ReturnType<typeof startRecording.value>; | ||
export declare type GetPlaybacks = ReturnType<typeof getPlaybacks.value>; | ||
export declare type Play = ReturnType<typeof play.value>; | ||
export declare type GetMeta = ReturnType<typeof getMeta.value>; | ||
export declare type SetMeta = ReturnType<typeof setMeta.value>; | ||
export declare type UpdateMeta = ReturnType<typeof updateMeta.value>; | ||
export declare type DeleteMeta = ReturnType<typeof deleteMeta.value>; | ||
export declare type GetStreams = ReturnType<typeof getStreams.value>; | ||
export declare type StartStream = ReturnType<typeof startStream.value>; | ||
export declare type Lock = ReturnType<typeof lock.value>; | ||
export declare type Unlock = ReturnType<typeof unlock.value>; | ||
export declare type SetPrioritizeHandraise = ReturnType<typeof setPrioritizeHandraise.value>; | ||
export type GetLayouts = ReturnType<typeof getLayouts.value>; | ||
export type GetMembers = ReturnType<typeof getMembers.value>; | ||
export type HideVideoMuted = ReturnType<typeof hideVideoMuted.value>; | ||
export type ShowVideoMuted = ReturnType<typeof showVideoMuted.value>; | ||
export type SetHideVideoMuted = ReturnType<typeof setHideVideoMuted.value>; | ||
export type GetRecordings = ReturnType<typeof getRecordings.value>; | ||
export type StartRecording = ReturnType<typeof startRecording.value>; | ||
export type GetPlaybacks = ReturnType<typeof getPlaybacks.value>; | ||
export type Play = ReturnType<typeof play.value>; | ||
export type GetMeta = ReturnType<typeof getMeta.value>; | ||
export type SetMeta = ReturnType<typeof setMeta.value>; | ||
export type UpdateMeta = ReturnType<typeof updateMeta.value>; | ||
export type DeleteMeta = ReturnType<typeof deleteMeta.value>; | ||
export type GetStreams = ReturnType<typeof getStreams.value>; | ||
export type StartStream = ReturnType<typeof startStream.value>; | ||
export type Lock = ReturnType<typeof lock.value>; | ||
export type Unlock = ReturnType<typeof unlock.value>; | ||
export type SetPrioritizeHandraise = ReturnType<typeof setPrioritizeHandraise.value>; | ||
/** | ||
@@ -160,25 +160,25 @@ * Room Member Methods | ||
export declare const setRaisedHand: RoomMethodDescriptor<void, SetRaisedHandRoomParams | SetRaisedHandMemberParams>; | ||
export declare type AudioMuteMember = ReturnType<typeof audioMuteMember.value>; | ||
export declare type AudioUnmuteMember = ReturnType<typeof audioUnmuteMember.value>; | ||
export declare type VideoMuteMember = ReturnType<typeof videoMuteMember.value>; | ||
export declare type VideoUnmuteMember = ReturnType<typeof videoUnmuteMember.value>; | ||
export declare type DeafMember = ReturnType<typeof deafMember.value>; | ||
export declare type UndeafMember = ReturnType<typeof undeafMember.value>; | ||
export declare type SetDeaf = ReturnType<typeof setDeaf.value>; | ||
export declare type SetLayout = ReturnType<typeof setLayout.value>; | ||
export declare type SetPositions = ReturnType<typeof setPositions.value>; | ||
export declare type SetInputVolumeMember = ReturnType<typeof setInputVolumeMember.value>; | ||
export declare type SetOutputVolumeMember = ReturnType<typeof setOutputVolumeMember.value>; | ||
export declare type SetInputSensitivityMember = ReturnType<typeof setInputSensitivityMember.value>; | ||
export declare type SetMemberPosition = ReturnType<typeof setMemberPosition.value>; | ||
export declare type RemoveMember = ReturnType<typeof removeMember.value>; | ||
export declare type RemoveAllMembers = ReturnType<typeof removeAllMembers.value>; | ||
export declare type GetMemberMeta = ReturnType<typeof getMemberMeta.value>; | ||
export declare type SetMemberMeta = ReturnType<typeof setMemberMeta.value>; | ||
export declare type UpdateMemberMeta = ReturnType<typeof updateMemberMeta.value>; | ||
export declare type DeleteMemberMeta = ReturnType<typeof deleteMemberMeta.value>; | ||
export declare type PromoteMember = ReturnType<typeof promote.value>; | ||
export declare type DemoteMember = ReturnType<typeof demote.value>; | ||
export declare type SetRaisedHand = ReturnType<typeof setRaisedHand.value>; | ||
export type AudioMuteMember = ReturnType<typeof audioMuteMember.value>; | ||
export type AudioUnmuteMember = ReturnType<typeof audioUnmuteMember.value>; | ||
export type VideoMuteMember = ReturnType<typeof videoMuteMember.value>; | ||
export type VideoUnmuteMember = ReturnType<typeof videoUnmuteMember.value>; | ||
export type DeafMember = ReturnType<typeof deafMember.value>; | ||
export type UndeafMember = ReturnType<typeof undeafMember.value>; | ||
export type SetDeaf = ReturnType<typeof setDeaf.value>; | ||
export type SetLayout = ReturnType<typeof setLayout.value>; | ||
export type SetPositions = ReturnType<typeof setPositions.value>; | ||
export type SetInputVolumeMember = ReturnType<typeof setInputVolumeMember.value>; | ||
export type SetOutputVolumeMember = ReturnType<typeof setOutputVolumeMember.value>; | ||
export type SetInputSensitivityMember = ReturnType<typeof setInputSensitivityMember.value>; | ||
export type SetMemberPosition = ReturnType<typeof setMemberPosition.value>; | ||
export type RemoveMember = ReturnType<typeof removeMember.value>; | ||
export type RemoveAllMembers = ReturnType<typeof removeAllMembers.value>; | ||
export type GetMemberMeta = ReturnType<typeof getMemberMeta.value>; | ||
export type SetMemberMeta = ReturnType<typeof setMemberMeta.value>; | ||
export type UpdateMemberMeta = ReturnType<typeof updateMemberMeta.value>; | ||
export type DeleteMemberMeta = ReturnType<typeof deleteMemberMeta.value>; | ||
export type PromoteMember = ReturnType<typeof promote.value>; | ||
export type DemoteMember = ReturnType<typeof demote.value>; | ||
export type SetRaisedHand = ReturnType<typeof setRaisedHand.value>; | ||
export {}; | ||
//# sourceMappingURL=methods.d.ts.map |
@@ -7,6 +7,6 @@ import { VideoMemberContract, VideoMemberEventNames, VideoMemberJoinedEventParams, VideoMemberLeftEventParams, VideoMemberTalkingEventParams, VideoMemberUpdatedEventParams } from '../types/videoMember'; | ||
} | ||
export declare type RoomSessionMemberEventsHandlerMapping = Record<VideoMemberEventNames, (playback: RoomSessionMember) => void>; | ||
export type RoomSessionMemberEventsHandlerMapping = Record<VideoMemberEventNames, (playback: RoomSessionMember) => void>; | ||
export interface RoomSessionMemberOptions extends BaseComponentOptionsWithPayload<RoomSessionMemberEventParams> { | ||
} | ||
export declare type RoomSessionMemberEventParams = (VideoMemberJoinedEventParams | VideoMemberLeftEventParams | VideoMemberUpdatedEventParams) & VideoMemberTalkingEventParams; | ||
export type RoomSessionMemberEventParams = (VideoMemberJoinedEventParams | VideoMemberLeftEventParams | VideoMemberUpdatedEventParams) & VideoMemberTalkingEventParams; | ||
export declare class RoomSessionMemberAPI extends BaseComponent<RoomSessionMemberEventsHandlerMapping> { | ||
@@ -13,0 +13,0 @@ private _payload; |
@@ -13,3 +13,3 @@ import { BaseComponent } from '../BaseComponent'; | ||
} | ||
export declare type RoomSessionPlaybackEventsHandlerMapping = Record<VideoPlaybackEventNames, (playback: RoomSessionPlayback) => void>; | ||
export type RoomSessionPlaybackEventsHandlerMapping = Record<VideoPlaybackEventNames, (playback: RoomSessionPlayback) => void>; | ||
export interface RoomSessionPlaybackOptions extends BaseComponentOptionsWithPayload<VideoPlaybackEventParams> { | ||
@@ -16,0 +16,0 @@ } |
@@ -10,3 +10,3 @@ import { BaseComponent } from '../BaseComponent'; | ||
} | ||
export declare type RoomSessionRecordingEventsHandlerMapping = Record<VideoRecordingEventNames, (recording: RoomSessionRecording) => void>; | ||
export type RoomSessionRecordingEventsHandlerMapping = Record<VideoRecordingEventNames, (recording: RoomSessionRecording) => void>; | ||
export interface RoomSessionRecordingOptions extends BaseComponentOptionsWithPayload<VideoRecordingEventParams> { | ||
@@ -13,0 +13,0 @@ } |
@@ -10,3 +10,3 @@ import { BaseComponent } from '../BaseComponent'; | ||
} | ||
export declare type RoomSessionStreamEventsHandlerMapping = Record<VideoStreamEventNames, (stream: RoomSessionStream) => void>; | ||
export type RoomSessionStreamEventsHandlerMapping = Record<VideoStreamEventNames, (stream: RoomSessionStream) => void>; | ||
export interface RoomSessionStreamOptions extends BaseComponentOptionsWithPayload<VideoStreamEventParams> { | ||
@@ -13,0 +13,0 @@ } |
@@ -1,13 +0,13 @@ | ||
declare type WithToken = { | ||
type WithToken = { | ||
token: string; | ||
jwt_token?: never; | ||
}; | ||
declare type WithJWT = { | ||
type WithJWT = { | ||
token?: never; | ||
jwt_token: string; | ||
}; | ||
declare type RPCConnectAuthentication = { | ||
type RPCConnectAuthentication = { | ||
project?: string; | ||
} & (WithToken | WithJWT); | ||
export declare type RPCConnectParams = { | ||
export type RPCConnectParams = { | ||
authentication: RPCConnectAuthentication; | ||
@@ -14,0 +14,0 @@ version?: typeof DEFAULT_CONNECT_VERSION; |
import { JSONRPCMethod } from '../utils/interfaces'; | ||
declare type RPCExecuteParams = { | ||
type RPCExecuteParams = { | ||
id?: string; | ||
@@ -4,0 +4,0 @@ method: JSONRPCMethod; |
@@ -1,2 +0,2 @@ | ||
export declare type RPCReauthenticateParams = { | ||
export type RPCReauthenticateParams = { | ||
project: string; | ||
@@ -3,0 +3,0 @@ jwt_token: string; |
import { VertoMethod } from '../utils/interfaces'; | ||
declare type VertoParams = { | ||
type VertoParams = { | ||
[key: string]: any; | ||
@@ -4,0 +4,0 @@ }; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="jest" /> | ||
import { ConfigureStoreOptions } from './redux'; | ||
import { ConfigureStoreOptions, SDKStore } from './redux'; | ||
import { SwEventChannel, SessionChannel } from './redux/interfaces'; | ||
@@ -13,22 +12,3 @@ import { RPCConnectResult, InternalSDKLogger } from './utils/interfaces'; | ||
*/ | ||
export declare const configureJestStore: (options?: Partial<ConfigureStoreOptions>) => { | ||
runSaga: <T>(saga: import("@redux-saga/types").Saga<any[]>, args: { | ||
instance: T; | ||
runSaga: any; | ||
}) => import("@redux-saga/types").Task<any>; | ||
channels: import(".").InternalChannels; | ||
instanceMap: { | ||
get: <T_1 extends unknown>(key: string) => T_1; | ||
set: <T_2 extends unknown>(key: string, value: T_2) => Map<string, unknown>; | ||
remove: (key: string) => Map<string, unknown>; | ||
getAll: () => [string, unknown][]; | ||
deleteAll: () => Map<string, unknown>; | ||
}; | ||
sessionEmitter: EventEmitter<import(".").ClientEvents, any>; | ||
dispatch: import("redux").Dispatch<import("redux").AnyAction>; | ||
getState(): any; | ||
subscribe(listener: () => void): import("redux").Unsubscribe; | ||
replaceReducer(nextReducer: import("redux").Reducer<any, import("redux").AnyAction>): void; | ||
[Symbol.observable](): import("redux").Observable<any>; | ||
}; | ||
export declare const configureJestStore: (options?: Partial<ConfigureStoreOptions>) => SDKStore; | ||
/** | ||
@@ -43,3 +23,3 @@ * Helper method to configure a Store with a rootSaga | ||
store: { | ||
runSaga: <T>(saga: import("@redux-saga/types").Saga<any[]>, args: { | ||
runSaga: <T>(saga: import("@redux-saga/types").Saga, args: { | ||
instance: T; | ||
@@ -50,4 +30,4 @@ runSaga: any; | ||
instanceMap: { | ||
get: <T_1 extends unknown>(key: string) => T_1; | ||
set: <T_2 extends unknown>(key: string, value: T_2) => Map<string, unknown>; | ||
get: <T extends unknown>(key: string) => T; | ||
set: <T extends unknown>(key: string, value: T) => Map<string, unknown>; | ||
remove: (key: string) => Map<string, unknown>; | ||
@@ -54,0 +34,0 @@ getAll: () => [string, unknown][]; |
import { CallState, CallConnect, CallPlay, InternalVideoRoomSessionEntity, MapToPubSubShape, SwEvent, CallEnded, CallRecord, ToInternalVideoEvent, VideoMemberEvent, VideoLayoutEvent } from '..'; | ||
export declare type CallJoined = 'call.joined'; | ||
export declare type CallStarted = 'call.started'; | ||
export declare type CallUpdated = 'call.updated'; | ||
export declare type CallLeft = 'call.left'; | ||
export declare type CallStream = 'call.stream'; | ||
export declare type CallStates = 'created' | 'ringing' | 'answered' | 'ending' | 'ended'; | ||
export declare type CallConnectStates = 'connecting' | 'connected'; | ||
export declare type CallDirections = 'inbound' | 'outbound'; | ||
export declare type CallDeviceTypes = 'webrtc' | 'sip' | 'phone'; | ||
export declare type CallPlayState = 'playing' | 'paused' | 'finished'; | ||
export declare type CallRecordState = 'recording' | 'paused' | 'finished'; | ||
export declare type CallStreamState = 'streaming' | 'completed'; | ||
export type CallJoined = 'call.joined'; | ||
export type CallStarted = 'call.started'; | ||
export type CallUpdated = 'call.updated'; | ||
export type CallLeft = 'call.left'; | ||
export type CallStream = 'call.stream'; | ||
export type CallStates = 'created' | 'ringing' | 'answered' | 'ending' | 'ended'; | ||
export type CallConnectStates = 'connecting' | 'connected'; | ||
export type CallDirections = 'inbound' | 'outbound'; | ||
export type CallDeviceTypes = 'webrtc' | 'sip' | 'phone'; | ||
export type CallPlayState = 'playing' | 'paused' | 'finished'; | ||
export type CallRecordState = 'recording' | 'paused' | 'finished'; | ||
export type CallStreamState = 'streaming' | 'completed'; | ||
interface CallDeviceCommonParams { | ||
@@ -33,3 +33,3 @@ headers?: any[]; | ||
} | ||
export declare type CallDevice = CallDeviceWebRTCOrSIP | CallDevicePhone; | ||
export type CallDevice = CallDeviceWebRTCOrSIP | CallDevicePhone; | ||
/** | ||
@@ -196,4 +196,4 @@ * Call Joined - call.joined | ||
} | ||
declare type UndoToInternalVideoEvent<T> = T extends ToInternalVideoEvent<infer U> ? U : T; | ||
declare type AdjustEventType<T> = T extends { | ||
type UndoToInternalVideoEvent<T> = T extends ToInternalVideoEvent<infer U> ? U : T; | ||
type AdjustEventType<T> = T extends { | ||
event_type: infer ET; | ||
@@ -205,6 +205,6 @@ params: infer P; | ||
} : T; | ||
export declare type CFMemberEvent = AdjustEventType<VideoMemberEvent>; | ||
export declare type CFLayoutEvent = AdjustEventType<VideoLayoutEvent>; | ||
export declare type CallFabricEvent = CallJoinedEvent | CallStartedEvent | CallUpdatedEvent | CallEndedEvent | CallLeftEvent | CallStateEvent | CallPlayEvent | CallRecordEvent | CallStreamEvent | CallConnectEvent | CFMemberEvent | CFLayoutEvent; | ||
declare type HasCallId = { | ||
export type CFMemberEvent = AdjustEventType<VideoMemberEvent>; | ||
export type CFLayoutEvent = AdjustEventType<VideoLayoutEvent>; | ||
export type CallFabricEvent = CallJoinedEvent | CallStartedEvent | CallUpdatedEvent | CallEndedEvent | CallLeftEvent | CallStateEvent | CallPlayEvent | CallRecordEvent | CallStreamEvent | CallConnectEvent | CFMemberEvent | CFLayoutEvent; | ||
type HasCallId = { | ||
params: { | ||
@@ -216,3 +216,3 @@ call_id: string; | ||
}; | ||
declare type HasRoomSessionId = { | ||
type HasRoomSessionId = { | ||
params: { | ||
@@ -224,5 +224,5 @@ call_id?: string; | ||
}; | ||
declare type HasEitherCallIdOrRoomSessionId = HasCallId | HasRoomSessionId; | ||
export declare type CallFabricAction = MapToPubSubShape<CallFabricEvent & HasEitherCallIdOrRoomSessionId>; | ||
type HasEitherCallIdOrRoomSessionId = HasCallId | HasRoomSessionId; | ||
export type CallFabricAction = MapToPubSubShape<CallFabricEvent & HasEitherCallIdOrRoomSessionId>; | ||
export {}; | ||
//# sourceMappingURL=callfabric.d.ts.map |
import { SwEvent, RoomStarted, RoomUpdated, RoomEnded } from '.'; | ||
import { MapToPubSubShape } from '..'; | ||
import { CamelToSnakeCase } from './utils'; | ||
declare type VideoManagerNamespace = 'video-manager'; | ||
declare type ToInternalVideoManagerEvent<T extends string> = `${VideoManagerNamespace}.${T}`; | ||
declare type RoomsSubscribed = 'rooms.subscribed'; | ||
declare type RoomAdded = 'room.added'; | ||
declare type RoomDeleted = 'room.deleted'; | ||
type VideoManagerNamespace = 'video-manager'; | ||
type ToInternalVideoManagerEvent<T extends string> = `${VideoManagerNamespace}.${T}`; | ||
type RoomsSubscribed = 'rooms.subscribed'; | ||
type RoomAdded = 'room.added'; | ||
type RoomDeleted = 'room.deleted'; | ||
/** @internal */ | ||
export declare type VideoManagerRoomEventNames = RoomStarted | RoomAdded | RoomUpdated | RoomEnded | RoomDeleted; | ||
export type VideoManagerRoomEventNames = RoomStarted | RoomAdded | RoomUpdated | RoomEnded | RoomDeleted; | ||
/** | ||
@@ -15,5 +15,5 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoManagerRoomEventNames = ToInternalVideoManagerEvent<RoomsSubscribed> | ToInternalVideoManagerEvent<VideoManagerRoomEventNames>; | ||
export type InternalVideoManagerRoomEventNames = ToInternalVideoManagerEvent<RoomsSubscribed> | ToInternalVideoManagerEvent<VideoManagerRoomEventNames>; | ||
/** @internal */ | ||
declare type VideoManagerRoomRole = 'inviteable' | 'configurator' | 'visitor' | 'attendee' | 'moderator' | 'manager'; | ||
type VideoManagerRoomRole = 'inviteable' | 'configurator' | 'visitor' | 'attendee' | 'moderator' | 'manager'; | ||
/** @internal */ | ||
@@ -45,3 +45,3 @@ export interface VideoManagerRoomEntity { | ||
*/ | ||
export declare type InternalVideoManagerRoomEntity = { | ||
export type InternalVideoManagerRoomEntity = { | ||
[K in keyof VideoManagerRoomEntity as CamelToSnakeCase<K>]: VideoManagerRoomEntity[K]; | ||
@@ -80,6 +80,6 @@ }; | ||
} | ||
export declare type VideoManagerEvent = VideoManagerRoomsSubscribedEvent | VideoManagerRoomEvent; | ||
export declare type VideoManagerEventParams = VideoManagerRoomsSubscribedEventParams | VideoManagerRoomEventParams; | ||
export declare type VideoManagerAction = MapToPubSubShape<VideoManagerEvent>; | ||
export type VideoManagerEvent = VideoManagerRoomsSubscribedEvent | VideoManagerRoomEvent; | ||
export type VideoManagerEventParams = VideoManagerRoomsSubscribedEventParams | VideoManagerRoomEventParams; | ||
export type VideoManagerAction = MapToPubSubShape<VideoManagerEvent>; | ||
export {}; | ||
//# sourceMappingURL=cantina.d.ts.map |
@@ -7,13 +7,13 @@ import type { OnlyStateProperties, OnlyFunctionProperties, SwEvent, CamelToSnakeCase } from '..'; | ||
/** @deprecated use {@link PaginationCursor} */ | ||
export declare type ChatCursor = PaginationCursor; | ||
declare type ToInternalChatEvent<T extends string> = `${ChatNamespace}.${T}`; | ||
export declare type ChatNamespace = typeof PRODUCT_PREFIX_CHAT; | ||
export declare type ChatMessageEventName = 'message'; | ||
export declare type ChatMemberJoinedEventName = 'member.joined'; | ||
export declare type ChatMemberUpdatedEventName = 'member.updated'; | ||
export declare type ChatMemberLeftEventName = 'member.left'; | ||
export declare type ChatMemberEventNames = ChatMemberJoinedEventName | ChatMemberUpdatedEventName | ChatMemberLeftEventName; | ||
export declare type ChatEventNames = ChatMessageEventName | ChatMemberEventNames; | ||
export declare type ChatEvents = ToInternalChatEvent<ChatEventNames>; | ||
export declare type ChatChannel = string | string[]; | ||
export type ChatCursor = PaginationCursor; | ||
type ToInternalChatEvent<T extends string> = `${ChatNamespace}.${T}`; | ||
export type ChatNamespace = typeof PRODUCT_PREFIX_CHAT; | ||
export type ChatMessageEventName = 'message'; | ||
export type ChatMemberJoinedEventName = 'member.joined'; | ||
export type ChatMemberUpdatedEventName = 'member.updated'; | ||
export type ChatMemberLeftEventName = 'member.left'; | ||
export type ChatMemberEventNames = ChatMemberJoinedEventName | ChatMemberUpdatedEventName | ChatMemberLeftEventName; | ||
export type ChatEventNames = ChatMessageEventName | ChatMemberEventNames; | ||
export type ChatEvents = ToInternalChatEvent<ChatEventNames>; | ||
export type ChatChannel = string | string[]; | ||
export interface ChatSetMemberStateParams { | ||
@@ -38,3 +38,3 @@ memberId: string; | ||
} | ||
export declare type ChatChannelName = string; | ||
export type ChatChannelName = string; | ||
export interface ChatContract extends PubSubContract { | ||
@@ -186,9 +186,9 @@ /** | ||
} | ||
export declare type ChatEntity = OnlyStateProperties<ChatContract>; | ||
export declare type ChatMethods = Omit<OnlyFunctionProperties<ChatContract>, 'subscribe' | 'unsubscribe' | 'updateToken' | 'getAllowedChannels'>; | ||
export type ChatEntity = OnlyStateProperties<ChatContract>; | ||
export type ChatMethods = Omit<OnlyFunctionProperties<ChatContract>, 'subscribe' | 'unsubscribe' | 'updateToken' | 'getAllowedChannels'>; | ||
export interface ChatMessageContract extends PubSubMessageEntity { | ||
member: ChatMemberContract; | ||
} | ||
export declare type ChatMessageEntity = Omit<OnlyStateProperties<ChatMessageContract>, 'channel'>; | ||
export declare type InternalChatMessageEntity = { | ||
export type ChatMessageEntity = Omit<OnlyStateProperties<ChatMessageContract>, 'channel'>; | ||
export type InternalChatMessageEntity = { | ||
[K in NonNullable<keyof ChatMessageEntity> as CamelToSnakeCase<K>]: ChatMessageEntity[K]; | ||
@@ -203,4 +203,4 @@ } & { | ||
} | ||
export declare type ChatMemberEntity = OnlyStateProperties<ChatMemberContract>; | ||
export declare type InternalChatMemberEntity = { | ||
export type ChatMemberEntity = OnlyStateProperties<ChatMemberContract>; | ||
export type InternalChatMemberEntity = { | ||
[K in NonNullable<keyof ChatMemberEntity> as CamelToSnakeCase<K>]: ChatMemberEntity[K]; | ||
@@ -221,3 +221,3 @@ }; | ||
*/ | ||
declare type ChannelMessageEventName = 'channel.message'; | ||
type ChannelMessageEventName = 'channel.message'; | ||
/** | ||
@@ -267,10 +267,10 @@ * 'chat.channel.message' | ||
} | ||
export declare type ChatEvent = ChatChannelMessageEvent | ChatMemberJoinedEvent | ChatMemberUpdatedEvent | ChatMemberLeftEvent; | ||
export declare type ChatEventParams = ChatChannelMessageEventParams | ChatMemberJoinedEventParams | ChatMemberUpdatedEventParams | ChatMemberLeftEventParams; | ||
export declare type ChatAction = MapToPubSubShape<ChatEvent>; | ||
export type ChatEvent = ChatChannelMessageEvent | ChatMemberJoinedEvent | ChatMemberUpdatedEvent | ChatMemberLeftEvent; | ||
export type ChatEventParams = ChatChannelMessageEventParams | ChatMemberJoinedEventParams | ChatMemberUpdatedEventParams | ChatMemberLeftEventParams; | ||
export type ChatAction = MapToPubSubShape<ChatEvent>; | ||
export interface InternalChatChannel { | ||
name: string; | ||
} | ||
export declare type ChatJSONRPCMethod = 'chat.subscribe' | 'chat.publish' | 'chat.unsubscribe' | 'chat.member.set_state' | 'chat.member.get_state' | 'chat.members.get' | 'chat.messages.get'; | ||
export type ChatJSONRPCMethod = 'chat.subscribe' | 'chat.publish' | 'chat.unsubscribe' | 'chat.member.set_state' | 'chat.member.get_state' | 'chat.members.get' | 'chat.messages.get'; | ||
export {}; | ||
//# sourceMappingURL=chat.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare type PaginationCursor = { | ||
export type PaginationCursor = { | ||
before: string; | ||
@@ -8,3 +8,3 @@ after?: never; | ||
}; | ||
export declare type ClientContextMethod = 'signalwire.receive' | 'signalwire.unreceive'; | ||
export type ClientContextMethod = 'signalwire.receive' | 'signalwire.unreceive'; | ||
export interface ClientContextContract { | ||
@@ -11,0 +11,0 @@ addContexts(contexts: string[]): Promise<{ |
import { SwEvent } from '..'; | ||
export declare type ConversationMessageEventName = 'conversation.message'; | ||
export type ConversationMessageEventName = 'conversation.message'; | ||
export interface ConversationMessageEventParams { | ||
@@ -9,3 +9,3 @@ conversation_id: string; | ||
id: string; | ||
kind: string; | ||
kind?: string; | ||
metadata: Record<string, unknown>; | ||
@@ -18,2 +18,4 @@ subtype: string; | ||
user_name: string; | ||
address_id: string; | ||
from_address_id: string; | ||
} | ||
@@ -24,4 +26,4 @@ export interface ConversationMessageEvent extends SwEvent { | ||
} | ||
export declare type ConversationEvent = ConversationMessageEvent; | ||
export declare type ConversationEventParams = ConversationMessageEventParams; | ||
export type ConversationEvent = ConversationMessageEvent; | ||
export type ConversationEventParams = ConversationMessageEventParams; | ||
//# sourceMappingURL=conversation.d.ts.map |
@@ -169,3 +169,3 @@ import type { EventEmitter } from '../utils/EventEmitter'; | ||
} | ||
export declare type WebRTCEventType = 'webrtc.message'; | ||
export type WebRTCEventType = 'webrtc.message'; | ||
export interface WebRTCMessageParams extends SwEvent { | ||
@@ -177,3 +177,3 @@ event_type: WebRTCEventType; | ||
} | ||
export declare type SwAuthorizationState = string; | ||
export type SwAuthorizationState = string; | ||
export interface SwAuthorizationStateParams { | ||
@@ -185,4 +185,4 @@ event_type: 'signalwire.authorization.state'; | ||
} | ||
export declare type SwEventParams = VideoAPIEventParams | WebRTCMessageParams | VideoManagerEvent | ChatEvent | TaskEvent | MessagingEvent | VoiceCallEvent | SwAuthorizationStateParams | ConversationEvent | CallFabricEvent; | ||
export declare type PubSubChannelEvents = InternalVideoEventNames | SessionEvents; | ||
export type SwEventParams = VideoAPIEventParams | WebRTCMessageParams | VideoManagerEvent | ChatEvent | TaskEvent | MessagingEvent | VoiceCallEvent | SwAuthorizationStateParams | ConversationEvent | CallFabricEvent; | ||
export type PubSubChannelEvents = InternalVideoEventNames | SessionEvents; | ||
export * from './video'; | ||
@@ -189,0 +189,0 @@ export * from './utils'; |
@@ -14,13 +14,13 @@ import type { OnlyStateProperties, OnlyFunctionProperties, SwEvent } from '..'; | ||
*/ | ||
export declare type MessagingMessageState = 'queued' | 'initiated' | 'sent' | 'delivered' | 'undelivered' | 'failed'; | ||
export declare type MessagingNamespace = typeof PRODUCT_PREFIX_MESSAGING; | ||
export declare type MessageReceivedEventName = 'message.received'; | ||
export declare type MessageUpdatedEventName = 'message.updated'; | ||
export declare type MessagingState = 'messaging.state'; | ||
export declare type MessagingReceive = 'messaging.receive'; | ||
export declare type MessagingEventNames = MessageReceivedEventName | MessageUpdatedEventName; | ||
export type MessagingMessageState = 'queued' | 'initiated' | 'sent' | 'delivered' | 'undelivered' | 'failed'; | ||
export type MessagingNamespace = typeof PRODUCT_PREFIX_MESSAGING; | ||
export type MessageReceivedEventName = 'message.received'; | ||
export type MessageUpdatedEventName = 'message.updated'; | ||
export type MessagingState = 'messaging.state'; | ||
export type MessagingReceive = 'messaging.receive'; | ||
export type MessagingEventNames = MessageReceivedEventName | MessageUpdatedEventName; | ||
export interface MessagingContract { | ||
} | ||
export declare type MessagingEntity = OnlyStateProperties<MessagingContract>; | ||
export declare type MessagingMethods = Omit<OnlyFunctionProperties<MessagingContract>, 'subscribe' | 'unsubscribe' | 'updateToken'>; | ||
export type MessagingEntity = OnlyStateProperties<MessagingContract>; | ||
export type MessagingMethods = Omit<OnlyFunctionProperties<MessagingContract>, 'subscribe' | 'unsubscribe' | 'updateToken'>; | ||
/** | ||
@@ -87,6 +87,6 @@ * ========== | ||
} | ||
export declare type MessagingEvent = MessagingStateEvent | MessageUpdatedEvent | MessagingReceiveEvent | MessageReceivedEvent; | ||
export declare type MessagingEventParams = MessagingStateEventParams | MessagingReceiveEventParams; | ||
export declare type MessagingAction = MapToPubSubShape<MessagingEvent>; | ||
export declare type MessagingJSONRPCMethod = 'messaging.send'; | ||
export type MessagingEvent = MessagingStateEvent | MessageUpdatedEvent | MessagingReceiveEvent | MessageReceivedEvent; | ||
export type MessagingEventParams = MessagingStateEventParams | MessagingReceiveEventParams; | ||
export type MessagingAction = MapToPubSubShape<MessagingEvent>; | ||
export type MessagingJSONRPCMethod = 'messaging.send'; | ||
//# sourceMappingURL=messaging.d.ts.map |
import type { OnlyStateProperties, OnlyFunctionProperties, CamelToSnakeCase, SwEvent, MapToPubSubShape, ChatAuthorizationChannels } from '..'; | ||
import { PRODUCT_PREFIX_PUBSUB } from '../utils/constants'; | ||
declare type ToInternalPubSubEvent<T extends string> = `${PubSubNamespace}.${T}`; | ||
export declare type PubSubNamespace = typeof PRODUCT_PREFIX_PUBSUB; | ||
export declare type PubSubMessageEventName = 'message'; | ||
export declare type PubSubEventNames = PubSubMessageEventName; | ||
export declare type PubSubChannel = string | string[]; | ||
type ToInternalPubSubEvent<T extends string> = `${PubSubNamespace}.${T}`; | ||
export type PubSubNamespace = typeof PRODUCT_PREFIX_PUBSUB; | ||
export type PubSubMessageEventName = 'message'; | ||
export type PubSubEventNames = PubSubMessageEventName; | ||
export type PubSubChannel = string | string[]; | ||
export interface PubSubPublishParams { | ||
@@ -77,4 +77,4 @@ content: any; | ||
} | ||
export declare type PubSubEntity = OnlyStateProperties<PubSubContract>; | ||
export declare type PubSubMethods = Omit<OnlyFunctionProperties<PubSubContract>, 'subscribe' | 'unsubscribe' | 'updateToken'>; | ||
export type PubSubEntity = OnlyStateProperties<PubSubContract>; | ||
export type PubSubMethods = Omit<OnlyFunctionProperties<PubSubContract>, 'subscribe' | 'unsubscribe' | 'updateToken'>; | ||
export interface PubSubMessageContract { | ||
@@ -87,4 +87,4 @@ id: string; | ||
} | ||
export declare type PubSubMessageEntity = OnlyStateProperties<PubSubMessageContract>; | ||
export declare type InternalPubSubMessageEntity = { | ||
export type PubSubMessageEntity = OnlyStateProperties<PubSubMessageContract>; | ||
export type InternalPubSubMessageEntity = { | ||
[K in NonNullable<keyof PubSubMessageEntity> as CamelToSnakeCase<K>]: PubSubMessageEntity[K]; | ||
@@ -105,3 +105,3 @@ }; | ||
*/ | ||
declare type ChannelMessageEventName = 'channel.message'; | ||
type ChannelMessageEventName = 'channel.message'; | ||
/** | ||
@@ -118,10 +118,10 @@ * 'chat.channel.message' | ||
} | ||
export declare type PubSubEvent = PubSubChannelMessageEvent; | ||
export declare type PubSubEventParams = PubSubChannelMessageEventParams; | ||
export declare type PubSubEventAction = MapToPubSubShape<PubSubEvent>; | ||
export type PubSubEvent = PubSubChannelMessageEvent; | ||
export type PubSubEventParams = PubSubChannelMessageEventParams; | ||
export type PubSubEventAction = MapToPubSubShape<PubSubEvent>; | ||
export interface InternalPubSubChannel { | ||
name: string; | ||
} | ||
export declare type PubSubJSONRPCMethod = `${typeof PRODUCT_PREFIX_PUBSUB}.subscribe` | `${typeof PRODUCT_PREFIX_PUBSUB}.publish` | `${typeof PRODUCT_PREFIX_PUBSUB}.unsubscribe`; | ||
export type PubSubJSONRPCMethod = `${typeof PRODUCT_PREFIX_PUBSUB}.subscribe` | `${typeof PRODUCT_PREFIX_PUBSUB}.publish` | `${typeof PRODUCT_PREFIX_PUBSUB}.unsubscribe`; | ||
export {}; | ||
//# sourceMappingURL=pubSub.d.ts.map |
import type { OnlyStateProperties, OnlyFunctionProperties } from '..'; | ||
export declare type TaskReceivedEventName = 'task.received'; | ||
export declare type TaskEventNames = TaskReceivedEventName; | ||
export type TaskReceivedEventName = 'task.received'; | ||
export type TaskEventNames = TaskReceivedEventName; | ||
export interface TaskContract { | ||
} | ||
export declare type TaskEntity = OnlyStateProperties<TaskContract>; | ||
export declare type TaskMethods = Omit<OnlyFunctionProperties<TaskContract>, 'subscribe' | 'unsubscribe' | 'updateToken'>; | ||
export type TaskEntity = OnlyStateProperties<TaskContract>; | ||
export type TaskMethods = Omit<OnlyFunctionProperties<TaskContract>, 'subscribe' | 'unsubscribe' | 'updateToken'>; | ||
/** | ||
@@ -26,3 +26,3 @@ * ========== | ||
} | ||
export declare type TaskEvent = TaskInboundEvent; | ||
export type TaskEvent = TaskInboundEvent; | ||
/** | ||
@@ -33,3 +33,3 @@ * TODO: update MapToPubSubShape in another PR | ||
*/ | ||
export declare type TaskAction = { | ||
export type TaskAction = { | ||
type: TaskReceivedEventName; | ||
@@ -36,0 +36,0 @@ payload: TaskInboundEvent; |
@@ -1,16 +0,16 @@ | ||
export declare type CamelToSnakeCase<S extends string> = S extends `${infer T}${infer U}` ? `${T extends Capitalize<T> ? '_' : ''}${Lowercase<T>}${CamelToSnakeCase<U>}` : S; | ||
export declare type SnakeToCamelCase<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<SnakeToCamelCase<U>>}` : S; | ||
export declare type EntityUpdated<T> = T & { | ||
export type CamelToSnakeCase<S extends string> = S extends `${infer T}${infer U}` ? `${T extends Capitalize<T> ? '_' : ''}${Lowercase<T>}${CamelToSnakeCase<U>}` : S; | ||
export type SnakeToCamelCase<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<SnakeToCamelCase<U>>}` : S; | ||
export type EntityUpdated<T> = T & { | ||
updated: Array<keyof T>; | ||
}; | ||
export declare type ToInternalVideoEvent<T extends string> = `video.${T}`; | ||
declare type OnlyFunctionPropertyNames<T> = { | ||
export type ToInternalVideoEvent<T extends string> = `video.${T}`; | ||
type OnlyFunctionPropertyNames<T> = { | ||
[K in keyof T]: T[K] extends Function ? K : never; | ||
}[keyof T]; | ||
declare type OnlyStatePropertyNames<T> = { | ||
type OnlyStatePropertyNames<T> = { | ||
[K in keyof T]: T[K] extends Function ? never : K; | ||
}[keyof T]; | ||
export declare type OnlyFunctionProperties<T> = Pick<T, OnlyFunctionPropertyNames<T>>; | ||
export declare type OnlyStateProperties<T> = Pick<T, OnlyStatePropertyNames<T>>; | ||
declare type IsTimestampProperty<Property> = Property extends `${string}_at` ? Property : never; | ||
export type OnlyFunctionProperties<T> = Pick<T, OnlyFunctionPropertyNames<T>>; | ||
export type OnlyStateProperties<T> = Pick<T, OnlyStatePropertyNames<T>>; | ||
type IsTimestampProperty<Property> = Property extends `${string}_at` ? Property : never; | ||
export interface DefaultPublicToInternalTypeMapping { | ||
@@ -25,3 +25,3 @@ startedAt?: number; | ||
*/ | ||
export declare type ConverToExternalTypes<Property extends string, DefaultType, TypesMap extends Partial<Record<string, any>> = DefaultInternalToPublicTypeMapping> = Property extends IsTimestampProperty<Property> ? TypesMap[Property] extends TypesMap[keyof TypesMap] ? TypesMap[Property] : Date : DefaultType; | ||
export type ConverToExternalTypes<Property extends string, DefaultType, TypesMap extends Partial<Record<string, any>> = DefaultInternalToPublicTypeMapping> = Property extends IsTimestampProperty<Property> ? TypesMap[Property] extends TypesMap[keyof TypesMap] ? TypesMap[Property] : Date : DefaultType; | ||
/** | ||
@@ -34,3 +34,3 @@ * For user convenience, sometimes we expose properties with | ||
*/ | ||
export declare type ConvertToInternalTypes<Property extends string, DefaultType, TypesMap extends Partial<Record<string, any>> = DefaultPublicToInternalTypeMapping> = Property extends IsTimestampProperty<Property> ? TypesMap[Property] : DefaultType; | ||
export type ConvertToInternalTypes<Property extends string, DefaultType, TypesMap extends Partial<Record<string, any>> = DefaultPublicToInternalTypeMapping> = Property extends IsTimestampProperty<Property> ? TypesMap[Property] : DefaultType; | ||
export interface ConstructableType<T> { | ||
@@ -48,7 +48,7 @@ new (o?: any): T; | ||
} | ||
declare type IsAny<T> = 0 extends 1 & T ? true : false; | ||
declare type IsUnknown<T> = IsAny<T> extends true ? false : unknown extends T ? true : false; | ||
declare type Primitive = string | number | boolean | bigint | symbol | undefined | null; | ||
declare type Builtin = Primitive | Function | Date | Error | RegExp; | ||
export declare type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends {} ? { | ||
type IsAny<T> = 0 extends 1 & T ? true : false; | ||
type IsUnknown<T> = IsAny<T> extends true ? false : unknown extends T ? true : false; | ||
type Primitive = string | number | boolean | bigint | symbol | undefined | null; | ||
type Builtin = Primitive | Function | Date | Error | RegExp; | ||
export type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends {} ? { | ||
readonly [K in keyof T]: DeepReadonly<T[K]>; | ||
@@ -60,14 +60,14 @@ } : IsUnknown<T> extends true ? unknown : Readonly<T>; | ||
*/ | ||
export declare type AllOrNone<T extends Record<any, any>> = T | Partial<Record<keyof T, never>>; | ||
export type AllOrNone<T extends Record<any, any>> = T | Partial<Record<keyof T, never>>; | ||
/** | ||
* Make one or more properties optional | ||
*/ | ||
export declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>; | ||
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>; | ||
/** | ||
* Promisify all the properties | ||
*/ | ||
export declare type Promisify<T> = { | ||
export type Promisify<T> = { | ||
[K in keyof T]: Promise<T[K]>; | ||
}; | ||
export declare type Prettify<T> = { | ||
export type Prettify<T> = { | ||
[K in keyof T]: Prettify<T[K]>; | ||
@@ -74,0 +74,0 @@ } & {}; |
@@ -16,3 +16,3 @@ import { VideoRoomEvent, InternalVideoRoomSessionEventNames, InternalVideoRoomEvent, VideoRoomSessionEventNames } from './videoRoomSession'; | ||
export * from './videoRoomDevice'; | ||
export declare type RTCTrackEventName = 'track'; | ||
export type RTCTrackEventName = 'track'; | ||
/** | ||
@@ -28,3 +28,3 @@ * Each video layout has a number of positions which members can be assigned to. | ||
*/ | ||
export declare type VideoPosition = 'auto' | `reserved-${number}` | `standard-${number}` | 'off-canvas'; | ||
export type VideoPosition = 'auto' | `reserved-${number}` | `standard-${number}` | 'off-canvas'; | ||
/** | ||
@@ -53,3 +53,3 @@ * An object whose keys represent member IDs, and values are chosen from | ||
*/ | ||
export declare type VideoPositions = Record<string, VideoPosition>; | ||
export type VideoPositions = Record<string, VideoPosition>; | ||
/** | ||
@@ -60,7 +60,7 @@ * List of all the internal events | ||
*/ | ||
export declare type InternalVideoEventNames = InternalVideoRoomSessionEventNames | InternalVideoMemberEventNames | InternalVideoLayoutEventNames | InternalVideoRecordingEventNames | InternalVideoPlaybackEventNames | InternalVideoStreamEventNames | RTCTrackEventName; | ||
export declare type InternalVideoAPIEvent = InternalVideoRoomEvent | InternalVideoMemberEvent; | ||
export declare type VideoAPIEventParams = VideoRoomEvent | VideoMemberEvent | VideoLayoutEvent | VideoRecordingEvent | VideoPlaybackEvent | VideoStreamEvent | VideoRoomAudienceCountEvent; | ||
export declare type VideoAPIEventNames = VideoRoomSessionEventNames | VideoMemberEventNames | VideoLayoutEventNames | VideoPlaybackEventNames | VideoRecordingEventNames | VideoRoomDeviceEventNames | VideoStreamEventNames; | ||
export declare type VideoAction = MapToPubSubShape<InternalVideoAPIEvent | VideoAPIEventParams | VideoRoomAudienceCountEvent>; | ||
export type InternalVideoEventNames = InternalVideoRoomSessionEventNames | InternalVideoMemberEventNames | InternalVideoLayoutEventNames | InternalVideoRecordingEventNames | InternalVideoPlaybackEventNames | InternalVideoStreamEventNames | RTCTrackEventName; | ||
export type InternalVideoAPIEvent = InternalVideoRoomEvent | InternalVideoMemberEvent; | ||
export type VideoAPIEventParams = VideoRoomEvent | VideoMemberEvent | VideoLayoutEvent | VideoRecordingEvent | VideoPlaybackEvent | VideoStreamEvent | VideoRoomAudienceCountEvent; | ||
export type VideoAPIEventNames = VideoRoomSessionEventNames | VideoMemberEventNames | VideoLayoutEventNames | VideoPlaybackEventNames | VideoRecordingEventNames | VideoRoomDeviceEventNames | VideoStreamEventNames; | ||
export type VideoAction = MapToPubSubShape<InternalVideoAPIEvent | VideoAPIEventParams | VideoRoomAudienceCountEvent>; | ||
//# sourceMappingURL=video.d.ts.map |
import type { SwEvent } from '.'; | ||
import { VideoPosition } from '..'; | ||
import type { CamelToSnakeCase, ToInternalVideoEvent } from './utils'; | ||
export declare type LayoutChanged = 'layout.changed'; | ||
export declare type OnLayoutChanged = 'onLayoutChanged'; | ||
export type LayoutChanged = 'layout.changed'; | ||
export type OnLayoutChanged = 'onLayoutChanged'; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VideoLayoutEventNames = LayoutChanged; | ||
export type VideoLayoutEventNames = LayoutChanged; | ||
/** | ||
* List of public listener names | ||
*/ | ||
export declare type VideoLayoutListenerNames = OnLayoutChanged; | ||
export type VideoLayoutListenerNames = OnLayoutChanged; | ||
/** | ||
@@ -18,3 +18,3 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoLayoutEventNames = ToInternalVideoEvent<VideoLayoutEventNames>; | ||
export type InternalVideoLayoutEventNames = ToInternalVideoEvent<VideoLayoutEventNames>; | ||
/** | ||
@@ -47,6 +47,6 @@ * Base Interface for a VideoLayout entity | ||
*/ | ||
export declare type InternalVideoLayoutLayer = { | ||
export type InternalVideoLayoutLayer = { | ||
[K in keyof VideoLayoutLayer as CamelToSnakeCase<K>]: VideoLayoutLayer[K]; | ||
}; | ||
export declare type InternalVideoLayout = { | ||
export type InternalVideoLayout = { | ||
[K in Exclude<keyof VideoLayout, 'layers'> as CamelToSnakeCase<K>]: VideoLayout[K]; | ||
@@ -75,4 +75,4 @@ } & { | ||
} | ||
export declare type VideoLayoutEvent = VideoLayoutChangedEvent; | ||
export declare type VideoLayoutEventParams = VideoLayoutChangedEventParams; | ||
export type VideoLayoutEvent = VideoLayoutChangedEvent; | ||
export type VideoLayoutEventParams = VideoLayoutChangedEventParams; | ||
//# sourceMappingURL=videoLayout.d.ts.map |
@@ -19,5 +19,5 @@ import type { SwEvent, VideoPosition } from '.'; | ||
}; | ||
export declare type InternalVideoMemberUpdatableProps = typeof INTERNAL_MEMBER_UPDATABLE_PROPS; | ||
export type InternalVideoMemberUpdatableProps = typeof INTERNAL_MEMBER_UPDATABLE_PROPS; | ||
export declare const INTERNAL_MEMBER_UPDATED_EVENTS: ("video.member.updated.audio_muted" | "video.member.updated.video_muted" | "video.member.updated.deaf" | "video.member.updated.visible" | "video.member.updated.input_volume" | "video.member.updated.output_volume" | "video.member.updated.input_sensitivity")[]; | ||
declare type VideoMemberUpdatableProps = { | ||
type VideoMemberUpdatableProps = { | ||
[K in keyof InternalVideoMemberUpdatableProps as SnakeToCamelCase<K>]: InternalVideoMemberUpdatableProps[K]; | ||
@@ -30,17 +30,17 @@ }; | ||
*/ | ||
export declare type MemberJoined = 'member.joined'; | ||
export declare type MemberLeft = 'member.left'; | ||
export declare type MemberUpdated = 'member.updated'; | ||
export declare type MemberTalking = 'member.talking'; | ||
export declare type MemberPromoted = 'member.promoted'; | ||
export declare type MemberDemoted = 'member.demoted'; | ||
export type MemberJoined = 'member.joined'; | ||
export type MemberLeft = 'member.left'; | ||
export type MemberUpdated = 'member.updated'; | ||
export type MemberTalking = 'member.talking'; | ||
export type MemberPromoted = 'member.promoted'; | ||
export type MemberDemoted = 'member.demoted'; | ||
/** | ||
* Public listener types | ||
*/ | ||
export declare type OnMemberJoined = 'onMemberJoined'; | ||
export declare type OnMemberLeft = 'onMemberLeft'; | ||
export declare type OnMemberUpdated = 'onMemberUpdated'; | ||
export declare type OnMemberTalking = 'onMemberTalking'; | ||
export declare type OnMemberPromoted = 'onMemberPromoted'; | ||
export declare type OnMemberDemoted = 'onMemberDemoted'; | ||
export type OnMemberJoined = 'onMemberJoined'; | ||
export type OnMemberLeft = 'onMemberLeft'; | ||
export type OnMemberUpdated = 'onMemberUpdated'; | ||
export type OnMemberTalking = 'onMemberTalking'; | ||
export type OnMemberPromoted = 'onMemberPromoted'; | ||
export type OnMemberDemoted = 'onMemberDemoted'; | ||
/** | ||
@@ -54,19 +54,19 @@ * @privateRemarks | ||
*/ | ||
export declare type MemberListUpdated = 'memberList.updated'; | ||
export declare type OnMemberListUpdated = 'onMemberListUpdated'; | ||
export type MemberListUpdated = 'memberList.updated'; | ||
export type OnMemberListUpdated = 'onMemberListUpdated'; | ||
/** | ||
* See {@link MEMBER_UPDATED_EVENTS} for the full list of events. | ||
*/ | ||
export declare type MemberUpdatedEventNames = (typeof MEMBER_UPDATED_EVENTS)[number]; | ||
export declare type MemberTalkingStarted = 'member.talking.started'; | ||
export declare type MemberTalkingEnded = 'member.talking.ended'; | ||
export declare type OnMemberDeaf = 'onMemberDeaf'; | ||
export declare type OnMemberVisible = 'onMemberVisible'; | ||
export declare type OnMemberAudioMuted = 'onMemberAudioMuted'; | ||
export declare type OnMemberVideoMuted = 'onMemberVideoMuted'; | ||
export declare type OnMemberInputVolume = 'onMemberInputVolume'; | ||
export declare type OnMemberOutputVolume = 'onMemberOutputVolume'; | ||
export declare type OnMemberInputSensitivity = 'onMemberInputSensitivity'; | ||
export declare type OnMemberTalkingStarted = 'onMemberTalkingStarted'; | ||
export declare type OnMemberTalkingEnded = 'onMemberTalkingEnded'; | ||
export type MemberUpdatedEventNames = (typeof MEMBER_UPDATED_EVENTS)[number]; | ||
export type MemberTalkingStarted = 'member.talking.started'; | ||
export type MemberTalkingEnded = 'member.talking.ended'; | ||
export type OnMemberDeaf = 'onMemberDeaf'; | ||
export type OnMemberVisible = 'onMemberVisible'; | ||
export type OnMemberAudioMuted = 'onMemberAudioMuted'; | ||
export type OnMemberVideoMuted = 'onMemberVideoMuted'; | ||
export type OnMemberInputVolume = 'onMemberInputVolume'; | ||
export type OnMemberOutputVolume = 'onMemberOutputVolume'; | ||
export type OnMemberInputSensitivity = 'onMemberInputSensitivity'; | ||
export type OnMemberTalkingStarted = 'onMemberTalkingStarted'; | ||
export type OnMemberTalkingEnded = 'onMemberTalkingEnded'; | ||
/** | ||
@@ -76,3 +76,3 @@ * Use `member.talking.started` instead | ||
*/ | ||
export declare type MemberTalkingStart = 'member.talking.start'; | ||
export type MemberTalkingStart = 'member.talking.start'; | ||
/** | ||
@@ -82,11 +82,11 @@ * Use `member.talking.ended` instead | ||
*/ | ||
export declare type MemberTalkingStop = 'member.talking.stop'; | ||
export declare type MemberTalkingEventNames = MemberTalking | MemberTalkingStarted | MemberTalkingEnded | MemberTalkingStart | MemberTalkingStop; | ||
export declare type MemberTalkingListenerNames = OnMemberTalking | OnMemberTalkingStarted | OnMemberTalkingEnded; | ||
export type MemberTalkingStop = 'member.talking.stop'; | ||
export type MemberTalkingEventNames = MemberTalking | MemberTalkingStarted | MemberTalkingEnded | MemberTalkingStart | MemberTalkingStop; | ||
export type MemberTalkingListenerNames = OnMemberTalking | OnMemberTalkingStarted | OnMemberTalkingEnded; | ||
/** | ||
* List of public events | ||
*/ | ||
export declare type VideoMemberEventNames = MemberJoined | MemberLeft | MemberUpdated | MemberUpdatedEventNames | MemberTalkingEventNames | MemberListUpdated; | ||
export declare type VideoMemberListenerNames = OnMemberJoined | OnMemberLeft | OnMemberUpdated | OnMemberDeaf | OnMemberVisible | OnMemberAudioMuted | OnMemberVideoMuted | OnMemberInputVolume | OnMemberOutputVolume | OnMemberInputSensitivity | MemberTalkingListenerNames | OnMemberListUpdated; | ||
export declare type InternalMemberUpdatedEventNames = (typeof INTERNAL_MEMBER_UPDATED_EVENTS)[number]; | ||
export type VideoMemberEventNames = MemberJoined | MemberLeft | MemberUpdated | MemberUpdatedEventNames | MemberTalkingEventNames | MemberListUpdated; | ||
export type VideoMemberListenerNames = OnMemberJoined | OnMemberLeft | OnMemberUpdated | OnMemberDeaf | OnMemberVisible | OnMemberAudioMuted | OnMemberVideoMuted | OnMemberInputVolume | OnMemberOutputVolume | OnMemberInputSensitivity | MemberTalkingListenerNames | OnMemberListUpdated; | ||
export type InternalMemberUpdatedEventNames = (typeof INTERNAL_MEMBER_UPDATED_EVENTS)[number]; | ||
/** | ||
@@ -96,4 +96,4 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoMemberEventNames = ToInternalVideoEvent<MemberJoined | MemberLeft | MemberUpdated | MemberTalkingEventNames> | InternalMemberUpdatedEventNames; | ||
export declare type VideoMemberType = 'member' | 'screen' | 'device'; | ||
export type InternalVideoMemberEventNames = ToInternalVideoEvent<MemberJoined | MemberLeft | MemberUpdated | MemberTalkingEventNames> | InternalMemberUpdatedEventNames; | ||
export type VideoMemberType = 'member' | 'screen' | 'device'; | ||
/** | ||
@@ -268,11 +268,11 @@ * Public Contract for a VideoMember | ||
*/ | ||
export declare type VideoMemberEntity = OnlyStateProperties<VideoMemberContract>; | ||
export type VideoMemberEntity = OnlyStateProperties<VideoMemberContract>; | ||
/** | ||
* VideoMember methods | ||
*/ | ||
export declare type VideoMemberMethods = OnlyFunctionProperties<VideoMemberContract>; | ||
export type VideoMemberMethods = OnlyFunctionProperties<VideoMemberContract>; | ||
/** | ||
* VideoMemberEntity entity plus `updated` field | ||
*/ | ||
export declare type VideoMemberEntityUpdated = EntityUpdated<VideoMemberEntity>; | ||
export type VideoMemberEntityUpdated = EntityUpdated<VideoMemberEntity>; | ||
/** | ||
@@ -282,3 +282,3 @@ * VideoMemberEntity entity for internal usage (converted to snake_case) | ||
*/ | ||
export declare type InternalVideoMemberEntity = { | ||
export type InternalVideoMemberEntity = { | ||
[K in NonNullable<keyof VideoMemberEntity> as CamelToSnakeCase<K>]: VideoMemberEntity[K]; | ||
@@ -291,3 +291,3 @@ }; | ||
*/ | ||
export declare type InternalVideoMemberEntityUpdated = EntityUpdated<InternalVideoMemberEntity>; | ||
export type InternalVideoMemberEntityUpdated = EntityUpdated<InternalVideoMemberEntity>; | ||
export interface InternalVideoMemberUpdatedEvent extends SwEvent { | ||
@@ -301,3 +301,3 @@ event_type: InternalMemberUpdatedEventNames; | ||
} | ||
export declare type InternalVideoMemberEvent = InternalVideoMemberUpdatedEvent | InternalVideoMemberTalkingEvent; | ||
export type InternalVideoMemberEvent = InternalVideoMemberUpdatedEvent | InternalVideoMemberTalkingEvent; | ||
/** | ||
@@ -388,3 +388,3 @@ * ========== | ||
} | ||
export declare type VideoMemberEvent = VideoMemberJoinedEvent | VideoMemberLeftEvent | VideoMemberUpdatedEvent | VideoMemberTalkingEvent | VideoMemberPromotedEvent | VideoMemberDemotedEvent; | ||
export type VideoMemberEvent = VideoMemberJoinedEvent | VideoMemberLeftEvent | VideoMemberUpdatedEvent | VideoMemberTalkingEvent | VideoMemberPromotedEvent | VideoMemberDemotedEvent; | ||
/** | ||
@@ -395,4 +395,4 @@ * VideoMemberPromotedEventParams and VideoMemberDemotedEventParams | ||
*/ | ||
export declare type VideoMemberEventParams = VideoMemberJoinedEventParams | VideoMemberLeftEventParams | VideoMemberUpdatedEventParams | VideoMemberTalkingEventParams; | ||
export type VideoMemberEventParams = VideoMemberJoinedEventParams | VideoMemberLeftEventParams | VideoMemberUpdatedEventParams | VideoMemberTalkingEventParams; | ||
export {}; | ||
//# sourceMappingURL=videoMember.d.ts.map |
@@ -7,19 +7,19 @@ import type { SwEvent } from '.'; | ||
*/ | ||
export declare type PlaybackStarted = 'playback.started'; | ||
export declare type PlaybackUpdated = 'playback.updated'; | ||
export declare type PlaybackEnded = 'playback.ended'; | ||
export type PlaybackStarted = 'playback.started'; | ||
export type PlaybackUpdated = 'playback.updated'; | ||
export type PlaybackEnded = 'playback.ended'; | ||
/** | ||
* Public listener types | ||
*/ | ||
export declare type OnPlaybackStarted = 'onPlaybackStarted'; | ||
export declare type OnPlaybackUpdated = 'onPlaybackUpdated'; | ||
export declare type OnPlaybackEnded = 'onPlaybackEnded'; | ||
export type OnPlaybackStarted = 'onPlaybackStarted'; | ||
export type OnPlaybackUpdated = 'onPlaybackUpdated'; | ||
export type OnPlaybackEnded = 'onPlaybackEnded'; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VideoPlaybackEventNames = PlaybackStarted | PlaybackUpdated | PlaybackEnded; | ||
export type VideoPlaybackEventNames = PlaybackStarted | PlaybackUpdated | PlaybackEnded; | ||
/** | ||
* List of public listener names | ||
*/ | ||
export declare type VideoPlaybackListenerNames = OnPlaybackStarted | OnPlaybackUpdated | OnPlaybackEnded; | ||
export type VideoPlaybackListenerNames = OnPlaybackStarted | OnPlaybackUpdated | OnPlaybackEnded; | ||
/** | ||
@@ -29,3 +29,3 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoPlaybackEventNames = ToInternalVideoEvent<VideoPlaybackEventNames>; | ||
export type InternalVideoPlaybackEventNames = ToInternalVideoEvent<VideoPlaybackEventNames>; | ||
/** | ||
@@ -73,7 +73,7 @@ * Public Contract for a VideoPlayback | ||
*/ | ||
export declare type VideoPlaybackEntity = OnlyStateProperties<VideoPlaybackContract>; | ||
export type VideoPlaybackEntity = OnlyStateProperties<VideoPlaybackContract>; | ||
/** | ||
* VideoPlayback methods | ||
*/ | ||
export declare type VideoPlaybackMethods = OnlyFunctionProperties<VideoPlaybackContract>; | ||
export type VideoPlaybackMethods = OnlyFunctionProperties<VideoPlaybackContract>; | ||
/** | ||
@@ -83,3 +83,3 @@ * VideoPlaybackEntity entity for internal usage (converted to snake_case) | ||
*/ | ||
export declare type InternalVideoPlaybackEntity = { | ||
export type InternalVideoPlaybackEntity = { | ||
[K in NonNullable<keyof VideoPlaybackEntity> as CamelToSnakeCase<K>]: VideoPlaybackEntity[K]; | ||
@@ -130,5 +130,5 @@ }; | ||
} | ||
export declare type VideoPlaybackEvent = VideoPlaybackStartedEvent | VideoPlaybackUpdatedEvent | VideoPlaybackEndedEvent; | ||
export declare type VideoPlaybackEventParams = VideoPlaybackStartedEventParams | VideoPlaybackUpdatedEventParams | VideoPlaybackEndedEventParams; | ||
export declare type VideoPlaybackAction = MapToPubSubShape<VideoPlaybackEvent>; | ||
export type VideoPlaybackEvent = VideoPlaybackStartedEvent | VideoPlaybackUpdatedEvent | VideoPlaybackEndedEvent; | ||
export type VideoPlaybackEventParams = VideoPlaybackStartedEventParams | VideoPlaybackUpdatedEventParams | VideoPlaybackEndedEventParams; | ||
export type VideoPlaybackAction = MapToPubSubShape<VideoPlaybackEvent>; | ||
//# sourceMappingURL=videoPlayback.d.ts.map |
@@ -7,19 +7,19 @@ import type { SwEvent } from '.'; | ||
*/ | ||
export declare type RecordingStarted = 'recording.started'; | ||
export declare type RecordingUpdated = 'recording.updated'; | ||
export declare type RecordingEnded = 'recording.ended'; | ||
export type RecordingStarted = 'recording.started'; | ||
export type RecordingUpdated = 'recording.updated'; | ||
export type RecordingEnded = 'recording.ended'; | ||
/** | ||
* Public listener types | ||
*/ | ||
export declare type OnRecordingStarted = 'onRecordingStarted'; | ||
export declare type OnRecordingUpdated = 'onRecordingUpdated'; | ||
export declare type OnRecordingEnded = 'onRecordingEnded'; | ||
export type OnRecordingStarted = 'onRecordingStarted'; | ||
export type OnRecordingUpdated = 'onRecordingUpdated'; | ||
export type OnRecordingEnded = 'onRecordingEnded'; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VideoRecordingEventNames = RecordingStarted | RecordingUpdated | RecordingEnded; | ||
export type VideoRecordingEventNames = RecordingStarted | RecordingUpdated | RecordingEnded; | ||
/** | ||
* List of public listener names | ||
*/ | ||
export declare type VideoRecordingListenerNames = OnRecordingStarted | OnRecordingUpdated | OnRecordingEnded; | ||
export type VideoRecordingListenerNames = OnRecordingStarted | OnRecordingUpdated | OnRecordingEnded; | ||
/** | ||
@@ -29,3 +29,3 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoRecordingEventNames = ToInternalVideoEvent<VideoRecordingEventNames>; | ||
export type InternalVideoRecordingEventNames = ToInternalVideoEvent<VideoRecordingEventNames>; | ||
/** | ||
@@ -57,7 +57,7 @@ * Public Contract for a VideoRecording | ||
*/ | ||
export declare type VideoRecordingEntity = OnlyStateProperties<VideoRecordingContract>; | ||
export type VideoRecordingEntity = OnlyStateProperties<VideoRecordingContract>; | ||
/** | ||
* VideoRecording methods | ||
*/ | ||
export declare type VideoRecordingMethods = OnlyFunctionProperties<VideoRecordingContract>; | ||
export type VideoRecordingMethods = OnlyFunctionProperties<VideoRecordingContract>; | ||
/** | ||
@@ -68,3 +68,3 @@ * VideoRecordingEntity entity for internal usage (converted | ||
*/ | ||
export declare type InternalVideoRecordingEntity = { | ||
export type InternalVideoRecordingEntity = { | ||
[Property in NonNullable<keyof VideoRecordingEntity> as CamelToSnakeCase<Property>]: ConvertToInternalTypes<Property, | ||
@@ -121,5 +121,5 @@ /** | ||
} | ||
export declare type VideoRecordingEvent = VideoRecordingStartedEvent | VideoRecordingUpdatedEvent | VideoRecordingEndedEvent; | ||
export declare type VideoRecordingEventParams = VideoRecordingStartedEventParams | VideoRecordingUpdatedEventParams | VideoRecordingEndedEventParams; | ||
export declare type VideoRecordingAction = MapToPubSubShape<VideoRecordingEvent>; | ||
export type VideoRecordingEvent = VideoRecordingStartedEvent | VideoRecordingUpdatedEvent | VideoRecordingEndedEvent; | ||
export type VideoRecordingEventParams = VideoRecordingStartedEventParams | VideoRecordingUpdatedEventParams | VideoRecordingEndedEventParams; | ||
export type VideoRecordingAction = MapToPubSubShape<VideoRecordingEvent>; | ||
//# sourceMappingURL=videoRecording.d.ts.map |
@@ -1,13 +0,13 @@ | ||
export declare type CameraUpdated = 'camera.updated'; | ||
export declare type CameraDisconnected = 'camera.disconnected'; | ||
export declare type MicrophoneUpdated = 'microphone.updated'; | ||
export declare type MicrophoneDisconnected = 'microphone.disconnected'; | ||
export declare type SpeakerUpdated = 'speaker.updated'; | ||
export declare type SpeakerDisconnected = 'speaker.disconnected'; | ||
export type CameraUpdated = 'camera.updated'; | ||
export type CameraDisconnected = 'camera.disconnected'; | ||
export type MicrophoneUpdated = 'microphone.updated'; | ||
export type MicrophoneDisconnected = 'microphone.disconnected'; | ||
export type SpeakerUpdated = 'speaker.updated'; | ||
export type SpeakerDisconnected = 'speaker.disconnected'; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VideoRoomDeviceEventNames = CameraUpdated | CameraDisconnected | MicrophoneUpdated | MicrophoneDisconnected | SpeakerUpdated | SpeakerDisconnected; | ||
export declare type VideoRoomDeviceUpdatedEventNames = CameraUpdated | MicrophoneUpdated | SpeakerUpdated; | ||
export declare type VideoRoomDeviceDisconnectedEventNames = CameraDisconnected | MicrophoneDisconnected | SpeakerDisconnected; | ||
export type VideoRoomDeviceEventNames = CameraUpdated | CameraDisconnected | MicrophoneUpdated | MicrophoneDisconnected | SpeakerUpdated | SpeakerDisconnected; | ||
export type VideoRoomDeviceUpdatedEventNames = CameraUpdated | MicrophoneUpdated | SpeakerUpdated; | ||
export type VideoRoomDeviceDisconnectedEventNames = CameraDisconnected | MicrophoneDisconnected | SpeakerDisconnected; | ||
export interface VideoRoomMediaDeviceInfo { | ||
@@ -21,4 +21,4 @@ deviceId: MediaDeviceInfo['deviceId'] | undefined; | ||
} | ||
export declare type DeviceDisconnectedEventParams = VideoRoomMediaDeviceInfo; | ||
export declare type VideoRoomDeviceEventParams = DeviceUpdatedEventParams | DeviceDisconnectedEventParams; | ||
export type DeviceDisconnectedEventParams = VideoRoomMediaDeviceInfo; | ||
export type VideoRoomDeviceEventParams = DeviceUpdatedEventParams | DeviceDisconnectedEventParams; | ||
//# sourceMappingURL=videoRoomDevice.d.ts.map |
@@ -9,32 +9,32 @@ import type { BaseConnectionContract, SwEvent } from '.'; | ||
*/ | ||
export declare type RoomStarted = 'room.started'; | ||
export declare type RoomSubscribed = 'room.subscribed'; | ||
export declare type RoomUpdated = 'room.updated'; | ||
export declare type RoomEnded = 'room.ended'; | ||
export declare type InternalRoomAudienceCount = 'room.audience_count'; | ||
export declare type RoomJoined = 'room.joined'; | ||
export declare type RoomLeft = 'room.left'; | ||
export declare type RoomAudienceCount = 'room.audienceCount'; | ||
export type RoomStarted = 'room.started'; | ||
export type RoomSubscribed = 'room.subscribed'; | ||
export type RoomUpdated = 'room.updated'; | ||
export type RoomEnded = 'room.ended'; | ||
export type InternalRoomAudienceCount = 'room.audience_count'; | ||
export type RoomJoined = 'room.joined'; | ||
export type RoomLeft = 'room.left'; | ||
export type RoomAudienceCount = 'room.audienceCount'; | ||
/** | ||
* Public listener types | ||
*/ | ||
export declare type OnRoomStarted = 'onRoomStarted'; | ||
export declare type OnRoomSubscribed = 'onRoomSubscribed'; | ||
export declare type OnRoomUpdated = 'onRoomUpdated'; | ||
export declare type OnRoomEnded = 'onRoomEnded'; | ||
export declare type OnRoomAudienceCount = 'onRoomAudienceCount'; | ||
export declare type OnRoomJoined = 'onRoomJoined'; | ||
export declare type OnRoomLeft = 'onRoomLeft'; | ||
export declare type RoomLeftEventParams = { | ||
export type OnRoomStarted = 'onRoomStarted'; | ||
export type OnRoomSubscribed = 'onRoomSubscribed'; | ||
export type OnRoomUpdated = 'onRoomUpdated'; | ||
export type OnRoomEnded = 'onRoomEnded'; | ||
export type OnRoomAudienceCount = 'onRoomAudienceCount'; | ||
export type OnRoomJoined = 'onRoomJoined'; | ||
export type OnRoomLeft = 'onRoomLeft'; | ||
export type RoomLeftEventParams = { | ||
reason?: BaseConnectionContract<any>['leaveReason']; | ||
}; | ||
export declare type VideoRoomAudienceCountEventNames = ToInternalVideoEvent<InternalRoomAudienceCount | RoomAudienceCount>; | ||
export type VideoRoomAudienceCountEventNames = ToInternalVideoEvent<InternalRoomAudienceCount | RoomAudienceCount>; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VideoRoomSessionEventNames = RoomStarted | RoomSubscribed | RoomUpdated | RoomEnded | RoomJoined | RoomLeft; | ||
export type VideoRoomSessionEventNames = RoomStarted | RoomSubscribed | RoomUpdated | RoomEnded | RoomJoined | RoomLeft; | ||
/** | ||
* List of public listener names | ||
*/ | ||
export declare type VideoRoomSessionListenerNames = OnRoomStarted | OnRoomSubscribed | OnRoomUpdated | OnRoomEnded | OnRoomJoined | OnRoomLeft; | ||
export type VideoRoomSessionListenerNames = OnRoomStarted | OnRoomSubscribed | OnRoomUpdated | OnRoomEnded | OnRoomJoined | OnRoomLeft; | ||
/** | ||
@@ -44,3 +44,3 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoRoomSessionEventNames = ToInternalVideoEvent<VideoRoomSessionEventNames>; | ||
export type InternalVideoRoomSessionEventNames = ToInternalVideoEvent<VideoRoomSessionEventNames>; | ||
/** | ||
@@ -759,11 +759,11 @@ * Public Contract for a VideoRoomSession | ||
*/ | ||
export declare type VideoRoomSessionEntity = OnlyStateProperties<VideoRoomSessionContract>; | ||
export type VideoRoomSessionEntity = OnlyStateProperties<VideoRoomSessionContract>; | ||
/** | ||
* VideoRoomSession methods | ||
*/ | ||
export declare type VideoRoomSessionMethods = OnlyFunctionProperties<VideoRoomSessionContract>; | ||
export type VideoRoomSessionMethods = OnlyFunctionProperties<VideoRoomSessionContract>; | ||
/** | ||
* VideoRoomSessionEntity plus `updated` field | ||
*/ | ||
export declare type VideoRoomSessionEntityUpdated = EntityUpdated<VideoRoomSessionEntity>; | ||
export type VideoRoomSessionEntityUpdated = EntityUpdated<VideoRoomSessionEntity>; | ||
/** | ||
@@ -773,3 +773,3 @@ * VideoRoomSessionEntity for internal usage (converted to snake_case) | ||
*/ | ||
export declare type InternalVideoRoomSessionEntity = { | ||
export type InternalVideoRoomSessionEntity = { | ||
[K in NonNullable<keyof VideoRoomSessionEntity> as CamelToSnakeCase<K>]: VideoRoomSessionEntity[K]; | ||
@@ -782,3 +782,3 @@ }; | ||
*/ | ||
declare type InternalVideoRoomEntity = { | ||
type InternalVideoRoomEntity = { | ||
room_id: string; | ||
@@ -801,3 +801,3 @@ room_session_id: string; | ||
*/ | ||
export declare type InternalVideoRoomUpdated = EntityUpdated<InternalVideoRoomSessionEntity>; | ||
export type InternalVideoRoomUpdated = EntityUpdated<InternalVideoRoomSessionEntity>; | ||
export interface InternalVideoRoomJoinedEvent extends SwEvent { | ||
@@ -811,3 +811,3 @@ event_type: ToInternalVideoEvent<RoomJoined>; | ||
} | ||
export declare type InternalVideoRoomEvent = InternalVideoRoomJoinedEvent | InternalVideoRoomAudienceCountEvent; | ||
export type InternalVideoRoomEvent = InternalVideoRoomJoinedEvent | InternalVideoRoomAudienceCountEvent; | ||
/** | ||
@@ -889,9 +889,9 @@ * ========== | ||
} | ||
export declare type VideoRoomEvent = VideoRoomStartedEvent | VideoRoomSubscribedEvent | VideoRoomUpdatedEvent | VideoRoomEndedEvent; | ||
export declare type VideoRoomEventParams = VideoRoomStartedEventParams | VideoRoomSubscribedEventParams | VideoRoomUpdatedEventParams | VideoRoomEndedEventParams; | ||
export declare type VideoRoomStartedAction = MapToPubSubShape<VideoRoomStartedEvent>; | ||
export declare type VideoRoomEndedAction = MapToPubSubShape<VideoRoomEndedEvent>; | ||
export declare type VideoRoomUpdatedAction = MapToPubSubShape<VideoRoomUpdatedEvent>; | ||
export declare type VideoRoomSubscribedAction = MapToPubSubShape<VideoRoomSubscribedEvent>; | ||
export type VideoRoomEvent = VideoRoomStartedEvent | VideoRoomSubscribedEvent | VideoRoomUpdatedEvent | VideoRoomEndedEvent; | ||
export type VideoRoomEventParams = VideoRoomStartedEventParams | VideoRoomSubscribedEventParams | VideoRoomUpdatedEventParams | VideoRoomEndedEventParams; | ||
export type VideoRoomStartedAction = MapToPubSubShape<VideoRoomStartedEvent>; | ||
export type VideoRoomEndedAction = MapToPubSubShape<VideoRoomEndedEvent>; | ||
export type VideoRoomUpdatedAction = MapToPubSubShape<VideoRoomUpdatedEvent>; | ||
export type VideoRoomSubscribedAction = MapToPubSubShape<VideoRoomSubscribedEvent>; | ||
export {}; | ||
//# sourceMappingURL=videoRoomSession.d.ts.map |
@@ -7,17 +7,17 @@ import type { SwEvent } from '.'; | ||
*/ | ||
export declare type StreamStarted = 'stream.started'; | ||
export declare type StreamEnded = 'stream.ended'; | ||
export type StreamStarted = 'stream.started'; | ||
export type StreamEnded = 'stream.ended'; | ||
/** | ||
* Public listener types | ||
*/ | ||
export declare type OnStreamStarted = 'onStreamStarted'; | ||
export declare type OnStreamEnded = 'onStreamEnded'; | ||
export type OnStreamStarted = 'onStreamStarted'; | ||
export type OnStreamEnded = 'onStreamEnded'; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VideoStreamEventNames = StreamStarted | StreamEnded; | ||
export type VideoStreamEventNames = StreamStarted | StreamEnded; | ||
/** | ||
* List of public listener names | ||
*/ | ||
export declare type VideoStreamListenerNames = OnStreamStarted | OnStreamEnded; | ||
export type VideoStreamListenerNames = OnStreamStarted | OnStreamEnded; | ||
/** | ||
@@ -27,3 +27,3 @@ * List of internal events | ||
*/ | ||
export declare type InternalVideoStreamEventNames = ToInternalVideoEvent<VideoStreamEventNames>; | ||
export type InternalVideoStreamEventNames = ToInternalVideoEvent<VideoStreamEventNames>; | ||
/** | ||
@@ -53,7 +53,7 @@ * Public Contract for a VideoStream | ||
*/ | ||
export declare type VideoStreamEntity = OnlyStateProperties<VideoStreamContract>; | ||
export type VideoStreamEntity = OnlyStateProperties<VideoStreamContract>; | ||
/** | ||
* VideoStream methods | ||
*/ | ||
export declare type VideoStreamMethods = OnlyFunctionProperties<VideoStreamContract>; | ||
export type VideoStreamMethods = OnlyFunctionProperties<VideoStreamContract>; | ||
/** | ||
@@ -64,3 +64,3 @@ * VideoStreamEntity entity for internal usage (converted | ||
*/ | ||
export declare type InternalVideoStreamEntity = { | ||
export type InternalVideoStreamEntity = { | ||
[Property in NonNullable<keyof VideoStreamEntity> as CamelToSnakeCase<Property>]: ConvertToInternalTypes<Property, | ||
@@ -105,5 +105,5 @@ /** | ||
} | ||
export declare type VideoStreamEvent = VideoStreamStartedEvent | VideoStreamEndedEvent; | ||
export declare type VideoStreamEventParams = VideoStreamStartedEventParams | VideoStreamEndedEventParams; | ||
export declare type VideoStreamAction = MapToPubSubShape<VideoStreamEvent>; | ||
export type VideoStreamEvent = VideoStreamStartedEvent | VideoStreamEndedEvent; | ||
export type VideoStreamEventParams = VideoStreamStartedEventParams | VideoStreamEndedEventParams; | ||
export type VideoStreamAction = MapToPubSubShape<VideoStreamEvent>; | ||
//# sourceMappingURL=videoStream.d.ts.map |
import { VoiceCallJSONRPCMethod } from './voiceCall'; | ||
export * from './voiceCall'; | ||
export declare type VoiceJSONRPCMethod = VoiceCallJSONRPCMethod; | ||
export type VoiceJSONRPCMethod = VoiceCallJSONRPCMethod; | ||
//# sourceMappingURL=voice.d.ts.map |
@@ -5,55 +5,55 @@ import type { SwEvent } from '.'; | ||
import type { CamelToSnakeCase, OnlyFunctionProperties, OnlyStateProperties } from './utils'; | ||
declare type ToInternalVoiceEvent<T extends string> = `${VoiceNamespace}.${T}`; | ||
export declare type VoiceNamespace = typeof PRODUCT_PREFIX_VOICE_CALL; | ||
export declare type RingtoneName = 'at' | 'au' | 'bg' | 'br' | 'be' | 'ch' | 'cl' | 'cn' | 'cz' | 'de' | 'dk' | 'ee' | 'es' | 'fi' | 'fr' | 'gr' | 'hu' | 'il' | 'in' | 'it' | 'lt' | 'jp' | 'mx' | 'my' | 'nl' | 'no' | 'nz' | 'ph' | 'pl' | 'pt' | 'ru' | 'se' | 'sg' | 'th' | 'uk' | 'us' | 'tw' | 've' | 'za'; | ||
type ToInternalVoiceEvent<T extends string> = `${VoiceNamespace}.${T}`; | ||
export type VoiceNamespace = typeof PRODUCT_PREFIX_VOICE_CALL; | ||
export type RingtoneName = 'at' | 'au' | 'bg' | 'br' | 'be' | 'ch' | 'cl' | 'cn' | 'cz' | 'de' | 'dk' | 'ee' | 'es' | 'fi' | 'fr' | 'gr' | 'hu' | 'il' | 'in' | 'it' | 'lt' | 'jp' | 'mx' | 'my' | 'nl' | 'no' | 'nz' | 'ph' | 'pl' | 'pt' | 'ru' | 'se' | 'sg' | 'th' | 'uk' | 'us' | 'tw' | 've' | 'za'; | ||
/** | ||
* Private event types | ||
*/ | ||
export declare type CallDial = 'call.dial'; | ||
export declare type CallState = 'call.state'; | ||
export declare type CallReceive = 'call.receive'; | ||
export declare type CallPlay = 'call.play'; | ||
export declare type CallRecord = 'call.record'; | ||
export declare type CallCollect = 'call.collect'; | ||
export declare type CallTap = 'call.tap'; | ||
export declare type CallConnect = 'call.connect'; | ||
export declare type CallSendDigits = 'call.send_digits'; | ||
export declare type CallDetect = 'call.detect'; | ||
export type CallDial = 'call.dial'; | ||
export type CallState = 'call.state'; | ||
export type CallReceive = 'call.receive'; | ||
export type CallPlay = 'call.play'; | ||
export type CallRecord = 'call.record'; | ||
export type CallCollect = 'call.collect'; | ||
export type CallTap = 'call.tap'; | ||
export type CallConnect = 'call.connect'; | ||
export type CallSendDigits = 'call.send_digits'; | ||
export type CallDetect = 'call.detect'; | ||
/** | ||
* Public event types | ||
*/ | ||
export declare type CallCreated = 'call.created'; | ||
export declare type CallEnded = 'call.ended'; | ||
export declare type CallReceived = 'call.received'; | ||
export declare type CallPlaybackStarted = 'playback.started'; | ||
export declare type CallPlaybackUpdated = 'playback.updated'; | ||
export declare type CallPlaybackEnded = 'playback.ended'; | ||
export declare type CallPlaybackFailed = 'playback.failed'; | ||
export declare type CallRecordingStarted = 'recording.started'; | ||
export declare type CallRecordingUpdated = 'recording.updated'; | ||
export declare type CallRecordingEnded = 'recording.ended'; | ||
export declare type CallRecordingFailed = 'recording.failed'; | ||
export declare type CallPromptStarted = 'prompt.started'; | ||
export declare type CallPromptStartOfInput = 'prompt.startOfInput'; | ||
export declare type CallPromptUpdated = 'prompt.updated'; | ||
export declare type CallPromptEnded = 'prompt.ended'; | ||
export declare type CallPromptFailed = 'prompt.failed'; | ||
export declare type CallCollectStarted = 'collect.started'; | ||
export declare type CallCollectStartOfInput = 'collect.startOfInput'; | ||
export declare type CallCollectUpdated = 'collect.updated'; | ||
export declare type CallCollectEnded = 'collect.ended'; | ||
export declare type CallCollectFailed = 'collect.failed'; | ||
export declare type CallTapStarted = 'tap.started'; | ||
export declare type CallTapEnded = 'tap.ended'; | ||
export declare type CallConnectConnecting = 'connect.connecting'; | ||
export declare type CallConnectConnected = 'connect.connected'; | ||
export declare type CallConnectDisconnected = 'connect.disconnected'; | ||
export declare type CallConnectFailed = 'connect.failed'; | ||
export declare type CallDetectStarted = 'detect.started'; | ||
export declare type CallDetectUpdated = 'detect.updated'; | ||
export declare type CallDetectEnded = 'detect.ended'; | ||
export type CallCreated = 'call.created'; | ||
export type CallEnded = 'call.ended'; | ||
export type CallReceived = 'call.received'; | ||
export type CallPlaybackStarted = 'playback.started'; | ||
export type CallPlaybackUpdated = 'playback.updated'; | ||
export type CallPlaybackEnded = 'playback.ended'; | ||
export type CallPlaybackFailed = 'playback.failed'; | ||
export type CallRecordingStarted = 'recording.started'; | ||
export type CallRecordingUpdated = 'recording.updated'; | ||
export type CallRecordingEnded = 'recording.ended'; | ||
export type CallRecordingFailed = 'recording.failed'; | ||
export type CallPromptStarted = 'prompt.started'; | ||
export type CallPromptStartOfInput = 'prompt.startOfInput'; | ||
export type CallPromptUpdated = 'prompt.updated'; | ||
export type CallPromptEnded = 'prompt.ended'; | ||
export type CallPromptFailed = 'prompt.failed'; | ||
export type CallCollectStarted = 'collect.started'; | ||
export type CallCollectStartOfInput = 'collect.startOfInput'; | ||
export type CallCollectUpdated = 'collect.updated'; | ||
export type CallCollectEnded = 'collect.ended'; | ||
export type CallCollectFailed = 'collect.failed'; | ||
export type CallTapStarted = 'tap.started'; | ||
export type CallTapEnded = 'tap.ended'; | ||
export type CallConnectConnecting = 'connect.connecting'; | ||
export type CallConnectConnected = 'connect.connected'; | ||
export type CallConnectDisconnected = 'connect.disconnected'; | ||
export type CallConnectFailed = 'connect.failed'; | ||
export type CallDetectStarted = 'detect.started'; | ||
export type CallDetectUpdated = 'detect.updated'; | ||
export type CallDetectEnded = 'detect.ended'; | ||
/** | ||
* List of public event names | ||
*/ | ||
export declare type VoiceCallEventNames = CallCreated | CallEnded | CallPlaybackStarted | CallPlaybackUpdated | CallPlaybackEnded | CallPlaybackFailed | CallRecordingStarted | CallRecordingUpdated | CallRecordingEnded | CallRecordingFailed | CallPromptStarted | CallPromptUpdated | CallPromptEnded | CallPromptFailed | CallTapStarted | CallTapEnded | CallConnectConnecting | CallConnectConnected | CallConnectDisconnected | CallConnectFailed | CallDetectStarted | CallDetectUpdated | CallDetectEnded | CallCollectStarted | CallCollectUpdated | CallCollectEnded | CallCollectFailed; | ||
export type VoiceCallEventNames = CallCreated | CallEnded | CallPlaybackStarted | CallPlaybackUpdated | CallPlaybackEnded | CallPlaybackFailed | CallRecordingStarted | CallRecordingUpdated | CallRecordingEnded | CallRecordingFailed | CallPromptStarted | CallPromptUpdated | CallPromptEnded | CallPromptFailed | CallTapStarted | CallTapEnded | CallConnectConnecting | CallConnectConnected | CallConnectDisconnected | CallConnectFailed | CallDetectStarted | CallDetectUpdated | CallDetectEnded | CallCollectStarted | CallCollectUpdated | CallCollectEnded | CallCollectFailed; | ||
/** | ||
@@ -63,3 +63,3 @@ * List of internal events | ||
*/ | ||
export declare type SipCodec = 'PCMU' | 'PCMA' | 'OPUS' | 'G729' | 'G722' | 'VP8' | 'H264'; | ||
export type SipCodec = 'PCMU' | 'PCMA' | 'OPUS' | 'G729' | 'G722' | 'VP8' | 'H264'; | ||
export interface SipHeader { | ||
@@ -79,3 +79,3 @@ name: string; | ||
} | ||
export declare type OmitType<T> = Omit<T, 'type'>; | ||
export type OmitType<T> = Omit<T, 'type'>; | ||
export interface VoiceCallSipParams extends VoiceCallParams { | ||
@@ -92,3 +92,3 @@ type: 'sip'; | ||
} | ||
export declare type VoiceCallDeviceParams = VoiceCallPhoneParams | VoiceCallSipParams; | ||
export type VoiceCallDeviceParams = VoiceCallPhoneParams | VoiceCallSipParams; | ||
export interface VoiceCallDialMethodParams { | ||
@@ -118,3 +118,3 @@ region?: string; | ||
} | ||
export declare type VoiceCallPlayParams = VoiceCallPlayAudioParams | VoiceCallPlayTTSParams | VoiceCallPlaySilenceParams | VoiceCallPlayRingtoneParams; | ||
export type VoiceCallPlayParams = VoiceCallPlayAudioParams | VoiceCallPlayTTSParams | VoiceCallPlaySilenceParams | VoiceCallPlayRingtoneParams; | ||
export interface VoiceCallPlayMethodParams { | ||
@@ -155,3 +155,3 @@ media: NestedArray<VoiceCallPlayParams>; | ||
} | ||
export declare type CollectDigitsConfig = { | ||
export type CollectDigitsConfig = { | ||
/** Max number of digits to collect. */ | ||
@@ -164,3 +164,3 @@ max: number; | ||
}; | ||
export declare type CollectSpeechConfig = { | ||
export type CollectSpeechConfig = { | ||
/** How much silence to wait for end of speech. Default to 1 second. */ | ||
@@ -177,3 +177,3 @@ endSilenceTimeout?: number; | ||
}; | ||
export declare type SpeechOrDigits = { | ||
export type SpeechOrDigits = { | ||
digits: CollectDigitsConfig; | ||
@@ -185,19 +185,19 @@ speech?: never; | ||
}; | ||
export declare type VoiceCallPromptMethodParams = SpeechOrDigits & { | ||
export type VoiceCallPromptMethodParams = SpeechOrDigits & { | ||
playlist: VoicePlaylist; | ||
initialTimeout?: number; | ||
}; | ||
export declare type VoiceCallPromptAudioMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayAudioParams> & { | ||
export type VoiceCallPromptAudioMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayAudioParams> & { | ||
volume?: number; | ||
initialTimeout?: number; | ||
}; | ||
export declare type VoiceCallPromptRingtoneMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayRingtoneParams> & { | ||
export type VoiceCallPromptRingtoneMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayRingtoneParams> & { | ||
volume?: number; | ||
initialTimeout?: number; | ||
}; | ||
export declare type VoiceCallPromptTTSMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayTTSParams> & { | ||
export type VoiceCallPromptTTSMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayTTSParams> & { | ||
volume?: number; | ||
initialTimeout?: number; | ||
}; | ||
declare type TapCodec = 'OPUS' | 'PCMA' | 'PCMU'; | ||
type TapCodec = 'OPUS' | 'PCMA' | 'PCMU'; | ||
export interface TapDeviceWS { | ||
@@ -216,4 +216,4 @@ type: 'ws'; | ||
} | ||
export declare type TapDevice = TapDeviceWS | TapDeviceRTP; | ||
export declare type TapDirection = 'listen' | 'speak' | 'both'; | ||
export type TapDevice = TapDeviceWS | TapDeviceRTP; | ||
export type TapDirection = 'listen' | 'speak' | 'both'; | ||
export interface VoiceCallTapMethodParams { | ||
@@ -229,3 +229,3 @@ device: TapDevice; | ||
} | ||
export declare type VoiceCallCollectMethodParams = SpeechOrDigits & { | ||
export type VoiceCallCollectMethodParams = SpeechOrDigits & { | ||
initialTimeout?: number; | ||
@@ -241,7 +241,7 @@ partialResults?: boolean; | ||
} | ||
export declare type VoiceCallConnectMethodParams = VoiceDeviceBuilder | ({ | ||
export type VoiceCallConnectMethodParams = VoiceDeviceBuilder | ({ | ||
devices: VoiceDeviceBuilder; | ||
} & VoiceCallConnectAdditionalParams); | ||
export declare type VoiceCallConnectPhoneMethodParams = OmitType<VoiceCallPhoneParams> & VoiceCallConnectAdditionalParams; | ||
export declare type VoiceCallConnectSipMethodParams = OmitType<VoiceCallSipParams> & VoiceCallConnectAdditionalParams; | ||
export type VoiceCallConnectPhoneMethodParams = OmitType<VoiceCallPhoneParams> & VoiceCallConnectAdditionalParams; | ||
export type VoiceCallConnectSipMethodParams = OmitType<VoiceCallSipParams> & VoiceCallConnectAdditionalParams; | ||
interface VoiceCallDetectBaseParams { | ||
@@ -268,4 +268,4 @@ timeout?: number; | ||
} | ||
export declare type VoiceCallDetectMethodParams = VoiceCallDetectMachineParams | VoiceCallDetectFaxParams | VoiceCallDetectDigitParams; | ||
export declare type VoiceCallDisconnectReason = 'hangup' | 'cancel' | 'busy' | 'noAnswer' | 'decline' | 'error'; | ||
export type VoiceCallDetectMethodParams = VoiceCallDetectMachineParams | VoiceCallDetectFaxParams | VoiceCallDetectDigitParams; | ||
export type VoiceCallDisconnectReason = 'hangup' | 'cancel' | 'busy' | 'noAnswer' | 'decline' | 'error'; | ||
export interface VoiceCallDialRegionParams { | ||
@@ -276,6 +276,6 @@ region?: VoiceRegion; | ||
} | ||
export declare type VoiceCallDialPhoneMethodParams = OmitType<VoiceCallPhoneParams> & VoiceCallDialRegionParams; | ||
export declare type VoiceCallDialSipMethodParams = OmitType<VoiceCallSipParams> & VoiceCallDialRegionParams; | ||
declare type VoiceRegion = string; | ||
export declare type VoiceDialerParams = { | ||
export type VoiceCallDialPhoneMethodParams = OmitType<VoiceCallPhoneParams> & VoiceCallDialRegionParams; | ||
export type VoiceCallDialSipMethodParams = OmitType<VoiceCallSipParams> & VoiceCallDialRegionParams; | ||
type VoiceRegion = string; | ||
export type VoiceDialerParams = { | ||
devices: VoiceDeviceBuilder; | ||
@@ -322,7 +322,7 @@ } & VoiceCallDialRegionParams; | ||
*/ | ||
export declare type VoiceCallPlaybackEntity = OnlyStateProperties<VoiceCallPlaybackContract>; | ||
export type VoiceCallPlaybackEntity = OnlyStateProperties<VoiceCallPlaybackContract>; | ||
/** | ||
* VoiceCallPlayback methods | ||
*/ | ||
export declare type VoiceCallPlaybackMethods = OnlyFunctionProperties<VoiceCallPlaybackContract>; | ||
export type VoiceCallPlaybackMethods = OnlyFunctionProperties<VoiceCallPlaybackContract>; | ||
/** | ||
@@ -356,7 +356,7 @@ * Public Contract for a VoiceCallRecording | ||
*/ | ||
export declare type VoiceCallRecordingEntity = OnlyStateProperties<VoiceCallRecordingContract>; | ||
export type VoiceCallRecordingEntity = OnlyStateProperties<VoiceCallRecordingContract>; | ||
/** | ||
* VoiceCallRecording methods | ||
*/ | ||
export declare type VoiceCallRecordingMethods = OnlyFunctionProperties<VoiceCallRecordingContract>; | ||
export type VoiceCallRecordingMethods = OnlyFunctionProperties<VoiceCallRecordingContract>; | ||
/** | ||
@@ -386,7 +386,7 @@ * Public Contract for a VoiceCallDetect | ||
*/ | ||
export declare type VoiceCallDetectEntity = OnlyStateProperties<VoiceCallDetectContract>; | ||
export type VoiceCallDetectEntity = OnlyStateProperties<VoiceCallDetectContract>; | ||
/** | ||
* VoiceCallDetect methods | ||
*/ | ||
export declare type VoiceCallDetectMethods = OnlyFunctionProperties<VoiceCallDetectContract>; | ||
export type VoiceCallDetectMethods = OnlyFunctionProperties<VoiceCallDetectContract>; | ||
/** | ||
@@ -421,7 +421,7 @@ * Public Contract for a VoiceCallPrompt | ||
*/ | ||
export declare type VoiceCallPromptEntity = OnlyStateProperties<VoiceCallPromptContract>; | ||
export type VoiceCallPromptEntity = OnlyStateProperties<VoiceCallPromptContract>; | ||
/** | ||
* VoiceCallPrompt methods | ||
*/ | ||
export declare type VoiceCallPromptMethods = OnlyFunctionProperties<VoiceCallPromptContract>; | ||
export type VoiceCallPromptMethods = OnlyFunctionProperties<VoiceCallPromptContract>; | ||
/** | ||
@@ -452,7 +452,7 @@ * Public Contract for a VoiceCallCollect | ||
*/ | ||
export declare type VoiceCallCollectEntity = OnlyStateProperties<VoiceCallCollectContract>; | ||
export type VoiceCallCollectEntity = OnlyStateProperties<VoiceCallCollectContract>; | ||
/** | ||
* VoiceCallCollect methods | ||
*/ | ||
export declare type VoiceCallCollectMethods = OnlyFunctionProperties<VoiceCallCollectContract>; | ||
export type VoiceCallCollectMethods = OnlyFunctionProperties<VoiceCallCollectContract>; | ||
/** | ||
@@ -476,8 +476,8 @@ * Public Contract for a VoiceCallTap | ||
*/ | ||
export declare type VoiceCallTapEntity = OnlyStateProperties<VoiceCallTapContract>; | ||
export type VoiceCallTapEntity = OnlyStateProperties<VoiceCallTapContract>; | ||
/** | ||
* VoiceCallTap methods | ||
*/ | ||
export declare type VoiceCallTapMethods = OnlyFunctionProperties<VoiceCallTapContract>; | ||
export declare type CallingCallWaitForState = Extract<CallingCallState, 'ending' | 'ended'>; | ||
export type VoiceCallTapMethods = OnlyFunctionProperties<VoiceCallTapContract>; | ||
export type CallingCallWaitForState = Extract<CallingCallState, 'ending' | 'ended'>; | ||
/** | ||
@@ -566,7 +566,7 @@ * Public Contract for a VoiceCall | ||
*/ | ||
export declare type VoiceCallEntity = OnlyStateProperties<VoiceCallContract>; | ||
export type VoiceCallEntity = OnlyStateProperties<VoiceCallContract>; | ||
/** | ||
* VoiceCall methods | ||
*/ | ||
export declare type VoiceCallMethods = OnlyFunctionProperties<VoiceCallContract>; | ||
export type VoiceCallMethods = OnlyFunctionProperties<VoiceCallContract>; | ||
/** | ||
@@ -576,3 +576,3 @@ * VoiceCallEntity for internal usage (converted to snake_case) | ||
*/ | ||
export declare type InternalVoiceCallEntity = { | ||
export type InternalVoiceCallEntity = { | ||
[K in NonNullable<keyof VoiceCallEntity> as CamelToSnakeCase<K>]: VoiceCallEntity[K]; | ||
@@ -587,3 +587,3 @@ }; | ||
*/ | ||
declare type CallDeviceParamsShared = { | ||
type CallDeviceParamsShared = { | ||
timeout?: number; | ||
@@ -612,5 +612,5 @@ max_duration?: number; | ||
} | ||
declare type CallingCallDevice = CallingCallPhoneDevice | CallingCallSIPDevice; | ||
export declare type CallingCallDirection = 'inbound' | 'outbound'; | ||
export declare type CallingCallState = 'created' | 'ringing' | 'answered' | 'ending' | 'ended'; | ||
type CallingCallDevice = CallingCallPhoneDevice | CallingCallSIPDevice; | ||
export type CallingCallDirection = 'inbound' | 'outbound'; | ||
export type CallingCallState = 'created' | 'ringing' | 'answered' | 'ending' | 'ended'; | ||
export interface CallingCall { | ||
@@ -632,3 +632,3 @@ call_id: string; | ||
*/ | ||
export declare type CallingCallDialDialingEventParams = { | ||
export type CallingCallDialDialingEventParams = { | ||
node_id: string; | ||
@@ -638,3 +638,3 @@ tag: string; | ||
}; | ||
export declare type CallingCallDialAnsweredEventParams = { | ||
export type CallingCallDialAnsweredEventParams = { | ||
node_id: string; | ||
@@ -645,3 +645,3 @@ tag: string; | ||
}; | ||
export declare type CallingCallDialFailedEventParams = { | ||
export type CallingCallDialFailedEventParams = { | ||
node_id: string; | ||
@@ -653,3 +653,3 @@ tag: string; | ||
}; | ||
export declare type CallingCallDialEventParams = CallingCallDialDialingEventParams | CallingCallDialAnsweredEventParams | CallingCallDialFailedEventParams; | ||
export type CallingCallDialEventParams = CallingCallDialDialingEventParams | CallingCallDialAnsweredEventParams | CallingCallDialFailedEventParams; | ||
export interface CallingCallDialEvent extends SwEvent { | ||
@@ -684,4 +684,4 @@ event_type: ToInternalVoiceEvent<CallDial>; | ||
*/ | ||
export declare type CallingCallPlayState = 'playing' | 'paused' | 'error' | 'finished'; | ||
export declare type CallingCallPlayEndState = Exclude<CallingCallPlayState, 'playing' | 'paused'>; | ||
export type CallingCallPlayState = 'playing' | 'paused' | 'error' | 'finished'; | ||
export type CallingCallPlayEndState = Exclude<CallingCallPlayState, 'playing' | 'paused'>; | ||
export interface CallingCallPlayEventParams { | ||
@@ -700,4 +700,4 @@ node_id: string; | ||
*/ | ||
export declare type CallingCallRecordState = 'recording' | 'paused' | 'no_input' | 'finished'; | ||
export declare type CallingCallRecordEndState = Exclude<CallingCallRecordState, 'recording' | 'paused'>; | ||
export type CallingCallRecordState = 'recording' | 'paused' | 'no_input' | 'finished'; | ||
export type CallingCallRecordEndState = Exclude<CallingCallRecordState, 'recording' | 'paused'>; | ||
export interface CallingCallRecordEventParams { | ||
@@ -749,5 +749,5 @@ node_id: string; | ||
} | ||
export declare type CallingCallCollectResult = CallingCallCollectResultError | CallingCallCollectResultNoInput | CallingCallCollectResultNoMatch | CallingCallCollectResultStartOfInput | CallingCallCollectResultDigit | CallingCallCollectResultSpeech; | ||
export declare type CallingCallCollectEndState = Exclude<CallingCallCollectResult['type'], 'start_of_input'>; | ||
export declare type CallingCallCollectState = 'error' | 'collecting' | 'finished'; | ||
export type CallingCallCollectResult = CallingCallCollectResultError | CallingCallCollectResultNoInput | CallingCallCollectResultNoMatch | CallingCallCollectResultStartOfInput | CallingCallCollectResultDigit | CallingCallCollectResultSpeech; | ||
export type CallingCallCollectEndState = Exclude<CallingCallCollectResult['type'], 'start_of_input'>; | ||
export type CallingCallCollectState = 'error' | 'collecting' | 'finished'; | ||
export interface CallingCallCollectEventParams { | ||
@@ -768,4 +768,4 @@ node_id: string; | ||
*/ | ||
export declare type CallingCallTapState = 'tapping' | 'finished'; | ||
export declare type CallingCallTapEndState = Exclude<CallingCallTapState, 'tapping'>; | ||
export type CallingCallTapState = 'tapping' | 'finished'; | ||
export type CallingCallTapEndState = Exclude<CallingCallTapState, 'tapping'>; | ||
interface CallingCallTapDeviceRTP { | ||
@@ -809,4 +809,4 @@ type: 'rtp'; | ||
*/ | ||
export declare type CallingCallConnectState = 'connecting' | 'connected' | 'failed' | 'disconnected'; | ||
export declare type CallingCallConnectEventParams = CallingCallConnectSuccessEventParams | CallingCallConnectFailedEventParams; | ||
export type CallingCallConnectState = 'connecting' | 'connected' | 'failed' | 'disconnected'; | ||
export type CallingCallConnectEventParams = CallingCallConnectSuccessEventParams | CallingCallConnectFailedEventParams; | ||
export interface CallingCallConnectSuccessEventParams { | ||
@@ -838,3 +838,3 @@ node_id: string; | ||
*/ | ||
export declare type CallingCallSendDigitsState = 'finished'; | ||
export type CallingCallSendDigitsState = 'finished'; | ||
export interface CallingCallSendDigitsEventParams { | ||
@@ -853,5 +853,5 @@ node_id: string; | ||
*/ | ||
declare type CallingCallDetectState = 'finished' | 'error'; | ||
type CallingCallDetectState = 'finished' | 'error'; | ||
/** @deprecated */ | ||
export declare type CallingCallDetectEndState = CallingCallDetectState; | ||
export type CallingCallDetectEndState = CallingCallDetectState; | ||
interface CallingCallDetectFax { | ||
@@ -876,5 +876,5 @@ type: 'fax'; | ||
} | ||
export declare type Detector = CallingCallDetectFax | CallingCallDetectMachine | CallingCallDetectDigit; | ||
export declare type DetectorResult = Detector['params']['event']; | ||
export declare type CallingCallDetectType = Detector['type']; | ||
export type Detector = CallingCallDetectFax | CallingCallDetectMachine | CallingCallDetectDigit; | ||
export type DetectorResult = Detector['params']['event']; | ||
export type CallingCallDetectType = Detector['type']; | ||
export interface CallingCallDetectEventParams { | ||
@@ -1142,17 +1142,17 @@ node_id: string; | ||
} | ||
export declare type VoiceCallEvent = CallingCallDialEvent | CallingCallStateEvent | CallingCallReceiveEvent | CallingCallPlayEvent | CallingCallRecordEvent | CallingCallCollectEvent | CallingCallTapEvent | CallingCallConnectEvent | CallingCallSendDigitsEvent | CallingCallDetectEvent | CallReceivedEvent | CallPlaybackStartedEvent | CallPlaybackUpdatedEvent | CallPlaybackEndedEvent | CallPlaybackFailedEvent | CallRecordingStartedEvent | CallRecordingUpdatedEvent | CallRecordingEndedEvent | CallRecordingFailedEvent | CallPromptStartedEvent | CallPromptStartOfInputEvent | CallPromptUpdatedEvent | CallPromptEndedEvent | CallPromptFailedEvent | CallTapStartedEvent | CallTapEndedEvent | CallConnectConnectingEvent | CallConnectConnectedEvent | CallConnectDisconnectedEvent | CallConnectFailedEvent | CallDetectStartedEvent | CallDetectUpdatedEvent | CallDetectEndedEvent | CallCollectStartedEvent | CallCollectStartOfInputEvent | CallCollectUpdatedEvent | CallCollectEndedEvent | CallCollectFailedEvent; | ||
export declare type VoiceCallEventParams = CallingCallDialEventParams | CallingCallStateEventParams | CallingCallReceiveEventParams | CallingCallPlayEventParams | CallingCallRecordEventParams | CallingCallCollectEventParams | CallingCallTapEventParams | CallingCallConnectEventParams | CallingCallSendDigitsEventParams | CallingCallDetectEventParams | CallReceivedEvent['params'] | CallPlaybackStartedEvent['params'] | CallPlaybackUpdatedEvent['params'] | CallPlaybackEndedEvent['params'] | CallPlaybackFailedEvent['params'] | CallRecordingStartedEvent['params'] | CallRecordingUpdatedEvent['params'] | CallRecordingEndedEvent['params'] | CallRecordingFailedEvent['params'] | CallPromptStartedEvent['params'] | CallPromptStartOfInputEvent['params'] | CallPromptUpdatedEvent['params'] | CallPromptEndedEvent['params'] | CallPromptFailedEvent['params'] | CallTapStartedEvent['params'] | CallTapEndedEvent['params'] | CallConnectConnectingEvent['params'] | CallConnectConnectedEvent['params'] | CallConnectDisconnectedEvent['params'] | CallConnectFailedEvent['params'] | CallDetectStartedEvent['params'] | CallDetectUpdatedEvent['params'] | CallDetectEndedEvent['params'] | CallCollectStartedEvent['params'] | CallCollectStartOfInputEvent['params'] | CallCollectUpdatedEvent['params'] | CallCollectEndedEvent['params'] | CallCollectFailedEvent['params']; | ||
export declare type VoiceCallAction = MapToPubSubShape<VoiceCallEvent>; | ||
export declare type VoiceCallReceiveAction = MapToPubSubShape<CallingCallReceiveEvent>; | ||
export declare type VoiceCallStateAction = MapToPubSubShape<CallingCallStateEvent>; | ||
export declare type VoiceCallDialAction = MapToPubSubShape<CallingCallDialEvent>; | ||
export declare type VoiceCallPlayAction = MapToPubSubShape<CallingCallPlayEvent>; | ||
export declare type VoiceCallRecordAction = MapToPubSubShape<CallingCallRecordEvent>; | ||
export declare type VoiceCallCollectAction = MapToPubSubShape<CallingCallCollectEvent>; | ||
export declare type VoiceCallSendDigitsAction = MapToPubSubShape<CallingCallSendDigitsEvent>; | ||
export declare type VoiceCallTapAction = MapToPubSubShape<CallingCallTapEvent>; | ||
export declare type VoiceCallDetectAction = MapToPubSubShape<CallingCallDetectEvent>; | ||
export declare type VoiceCallConnectAction = MapToPubSubShape<CallingCallConnectEvent>; | ||
export declare type VoiceCallJSONRPCMethod = 'calling.dial' | 'calling.end' | 'calling.pass' | 'calling.answer' | 'calling.play' | 'calling.play.pause' | 'calling.play.resume' | 'calling.play.volume' | 'calling.play.stop' | 'calling.record' | 'calling.record.pause' | 'calling.record.resume' | 'calling.record.stop' | 'calling.play_and_collect' | 'calling.play_and_collect.stop' | 'calling.play_and_collect.volume' | 'calling.tap' | 'calling.tap.stop' | 'calling.connect' | 'calling.disconnect' | 'calling.send_digits' | 'calling.detect' | 'calling.detect.stop' | 'calling.collect' | 'calling.collect.stop' | 'calling.collect.start_input_timers'; | ||
export type VoiceCallEvent = CallingCallDialEvent | CallingCallStateEvent | CallingCallReceiveEvent | CallingCallPlayEvent | CallingCallRecordEvent | CallingCallCollectEvent | CallingCallTapEvent | CallingCallConnectEvent | CallingCallSendDigitsEvent | CallingCallDetectEvent | CallReceivedEvent | CallPlaybackStartedEvent | CallPlaybackUpdatedEvent | CallPlaybackEndedEvent | CallPlaybackFailedEvent | CallRecordingStartedEvent | CallRecordingUpdatedEvent | CallRecordingEndedEvent | CallRecordingFailedEvent | CallPromptStartedEvent | CallPromptStartOfInputEvent | CallPromptUpdatedEvent | CallPromptEndedEvent | CallPromptFailedEvent | CallTapStartedEvent | CallTapEndedEvent | CallConnectConnectingEvent | CallConnectConnectedEvent | CallConnectDisconnectedEvent | CallConnectFailedEvent | CallDetectStartedEvent | CallDetectUpdatedEvent | CallDetectEndedEvent | CallCollectStartedEvent | CallCollectStartOfInputEvent | CallCollectUpdatedEvent | CallCollectEndedEvent | CallCollectFailedEvent; | ||
export type VoiceCallEventParams = CallingCallDialEventParams | CallingCallStateEventParams | CallingCallReceiveEventParams | CallingCallPlayEventParams | CallingCallRecordEventParams | CallingCallCollectEventParams | CallingCallTapEventParams | CallingCallConnectEventParams | CallingCallSendDigitsEventParams | CallingCallDetectEventParams | CallReceivedEvent['params'] | CallPlaybackStartedEvent['params'] | CallPlaybackUpdatedEvent['params'] | CallPlaybackEndedEvent['params'] | CallPlaybackFailedEvent['params'] | CallRecordingStartedEvent['params'] | CallRecordingUpdatedEvent['params'] | CallRecordingEndedEvent['params'] | CallRecordingFailedEvent['params'] | CallPromptStartedEvent['params'] | CallPromptStartOfInputEvent['params'] | CallPromptUpdatedEvent['params'] | CallPromptEndedEvent['params'] | CallPromptFailedEvent['params'] | CallTapStartedEvent['params'] | CallTapEndedEvent['params'] | CallConnectConnectingEvent['params'] | CallConnectConnectedEvent['params'] | CallConnectDisconnectedEvent['params'] | CallConnectFailedEvent['params'] | CallDetectStartedEvent['params'] | CallDetectUpdatedEvent['params'] | CallDetectEndedEvent['params'] | CallCollectStartedEvent['params'] | CallCollectStartOfInputEvent['params'] | CallCollectUpdatedEvent['params'] | CallCollectEndedEvent['params'] | CallCollectFailedEvent['params']; | ||
export type VoiceCallAction = MapToPubSubShape<VoiceCallEvent>; | ||
export type VoiceCallReceiveAction = MapToPubSubShape<CallingCallReceiveEvent>; | ||
export type VoiceCallStateAction = MapToPubSubShape<CallingCallStateEvent>; | ||
export type VoiceCallDialAction = MapToPubSubShape<CallingCallDialEvent>; | ||
export type VoiceCallPlayAction = MapToPubSubShape<CallingCallPlayEvent>; | ||
export type VoiceCallRecordAction = MapToPubSubShape<CallingCallRecordEvent>; | ||
export type VoiceCallCollectAction = MapToPubSubShape<CallingCallCollectEvent>; | ||
export type VoiceCallSendDigitsAction = MapToPubSubShape<CallingCallSendDigitsEvent>; | ||
export type VoiceCallTapAction = MapToPubSubShape<CallingCallTapEvent>; | ||
export type VoiceCallDetectAction = MapToPubSubShape<CallingCallDetectEvent>; | ||
export type VoiceCallConnectAction = MapToPubSubShape<CallingCallConnectEvent>; | ||
export type VoiceCallJSONRPCMethod = 'calling.dial' | 'calling.end' | 'calling.pass' | 'calling.answer' | 'calling.play' | 'calling.play.pause' | 'calling.play.resume' | 'calling.play.volume' | 'calling.play.stop' | 'calling.record' | 'calling.record.pause' | 'calling.record.resume' | 'calling.record.stop' | 'calling.play_and_collect' | 'calling.play_and_collect.stop' | 'calling.play_and_collect.volume' | 'calling.tap' | 'calling.tap.stop' | 'calling.connect' | 'calling.disconnect' | 'calling.send_digits' | 'calling.detect' | 'calling.detect.stop' | 'calling.collect' | 'calling.collect.stop' | 'calling.collect.start_input_timers'; | ||
export {}; | ||
//# sourceMappingURL=voiceCall.d.ts.map |
@@ -8,3 +8,3 @@ import { WebRTCEventType } from '..'; | ||
export declare const WEBRTC_EVENT_TYPES: WebRTCEventType[]; | ||
export declare const isWebrtcEventType: (eventType: string) => eventType is "webrtc.message"; | ||
export declare const isWebrtcEventType: (eventType: string) => eventType is WebRTCEventType; | ||
//# sourceMappingURL=common.d.ts.map |
@@ -1,3 +0,3 @@ | ||
declare type ArgumentTypes<F extends Function> = F extends (...args: infer A) => any ? A : never; | ||
declare type MethodTypes = { | ||
type ArgumentTypes<F extends Function> = F extends (...args: infer A) => any ? A : never; | ||
type MethodTypes = { | ||
cancel: () => void; | ||
@@ -4,0 +4,0 @@ flush: () => void; |
@@ -6,5 +6,5 @@ import EventEmitter from 'eventemitter3'; | ||
*/ | ||
declare const assertEventEmitter: (emitter: unknown) => emitter is EventEmitter<string | symbol, any>; | ||
declare const assertEventEmitter: (emitter: unknown) => emitter is EventEmitter; | ||
declare const getEventEmitter: <T extends EventEmitter.ValidEventTypes>() => EventEmitter<T, any>; | ||
export { assertEventEmitter, EventEmitter, getEventEmitter }; | ||
//# sourceMappingURL=EventEmitter.d.ts.map |
@@ -15,6 +15,5 @@ import { Authorization, JSONRPCRequest, JSONRPCResponse, SATAuthorization } from '..'; | ||
export * from './eventUtils'; | ||
export * from './mapObject'; | ||
export { LOCAL_EVENT_PREFIX }; | ||
export declare const mutateStorageKey: (key: string) => string; | ||
export declare const safeParseJson: <T>(value: T) => Object | T; | ||
export declare const safeParseJson: <T>(value: T) => T | Object; | ||
export declare const checkWebSocketHost: (host: string) => string; | ||
@@ -28,3 +27,3 @@ export declare const timeoutPromise: <T = unknown>(promise: Promise<T>, time: number, exception: any) => Promise<Awaited<T>>; | ||
export declare const isSessionEvent: (event: string) => boolean; | ||
export declare const getGlobalEvents: (kind?: 'all' | 'video') => readonly ["room.started", "room.ended"] | ("room.started" | "room.ended")[]; | ||
export declare const getGlobalEvents: (kind?: "all" | "video") => readonly ["room.started", "room.ended"] | ("room.started" | "room.ended")[]; | ||
/** | ||
@@ -31,0 +30,0 @@ * Check and filter the events the user attached returning only the valid ones |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { SagaIterator } from '@redux-saga/types'; | ||
@@ -10,11 +9,11 @@ import type { EventEmitter } from '../utils/EventEmitter'; | ||
import { AllOrNone, ChatJSONRPCMethod, MessagingJSONRPCMethod, VoiceJSONRPCMethod, ClientContextMethod } from '..'; | ||
declare type JSONRPCParams = Record<string, any>; | ||
declare type JSONRPCResult = Record<string, any>; | ||
declare type JSONRPCError = Record<string, any>; | ||
export declare type VertoMethod = 'verto.invite' | 'verto.attach' | 'verto.answer' | 'verto.info' | 'verto.display' | 'verto.media' | 'verto.event' | 'verto.bye' | 'verto.punt' | 'verto.broadcast' | 'verto.subscribe' | 'verto.unsubscribe' | 'verto.clientReady' | 'verto.modify' | 'verto.mediaParams' | 'verto.prompt' | 'jsapi' | 'verto.stats' | 'verto.ping' | 'verto.pong' | 'verto.announce'; | ||
export declare type WebRTCMethod = 'video.message' | 'webrtc.verto'; | ||
export declare type SubscriberMethod = 'subscriber.online' | 'subscriber.offline'; | ||
export declare type JSONRPCMethod = 'signalwire.connect' | 'signalwire.ping' | 'signalwire.disconnect' | 'signalwire.event' | 'signalwire.reauthenticate' | 'signalwire.subscribe' | 'signalwire.unsubscribe' | SubscriberMethod | WebRTCMethod | RoomMethod | CallFabricMethod | VertoMethod | ChatJSONRPCMethod | MessagingJSONRPCMethod | VoiceJSONRPCMethod | ClientContextMethod; | ||
export declare type JSONRPCSubscribeMethod = Extract<JSONRPCMethod, 'signalwire.subscribe' | 'chat.subscribe'>; | ||
export declare type JSONRPCUnSubscribeMethod = Extract<JSONRPCMethod, 'signalwire.unsubscribe'>; | ||
type JSONRPCParams = Record<string, any>; | ||
type JSONRPCResult = Record<string, any>; | ||
type JSONRPCError = Record<string, any>; | ||
export type VertoMethod = 'verto.invite' | 'verto.attach' | 'verto.answer' | 'verto.info' | 'verto.display' | 'verto.media' | 'verto.event' | 'verto.bye' | 'verto.punt' | 'verto.broadcast' | 'verto.subscribe' | 'verto.unsubscribe' | 'verto.clientReady' | 'verto.modify' | 'verto.mediaParams' | 'verto.prompt' | 'jsapi' | 'verto.stats' | 'verto.ping' | 'verto.pong' | 'verto.announce'; | ||
export type WebRTCMethod = 'video.message' | 'webrtc.verto'; | ||
export type SubscriberMethod = 'subscriber.online' | 'subscriber.offline'; | ||
export type JSONRPCMethod = 'signalwire.connect' | 'signalwire.ping' | 'signalwire.disconnect' | 'signalwire.event' | 'signalwire.reauthenticate' | 'signalwire.subscribe' | 'signalwire.unsubscribe' | SubscriberMethod | WebRTCMethod | RoomMethod | CallFabricMethod | VertoMethod | ChatJSONRPCMethod | MessagingJSONRPCMethod | VoiceJSONRPCMethod | ClientContextMethod; | ||
export type JSONRPCSubscribeMethod = Extract<JSONRPCMethod, 'signalwire.subscribe' | 'chat.subscribe'>; | ||
export type JSONRPCUnSubscribeMethod = Extract<JSONRPCMethod, 'signalwire.unsubscribe'>; | ||
export interface JSONRPCRequest { | ||
@@ -95,7 +94,7 @@ jsonrpc: '2.0'; | ||
} | ||
export declare type MediaAllowed = 'all' | 'audio-only' | 'video-only'; | ||
declare type MediaDirectionAllowed = 'none' | 'receive' | 'both'; | ||
declare type AudioAllowed = MediaDirectionAllowed; | ||
declare type VideoAllowed = MediaDirectionAllowed; | ||
export declare type VideoMeta = Record<string, any>; | ||
export type MediaAllowed = 'all' | 'audio-only' | 'video-only'; | ||
type MediaDirectionAllowed = 'none' | 'receive' | 'both'; | ||
type AudioAllowed = MediaDirectionAllowed; | ||
type VideoAllowed = MediaDirectionAllowed; | ||
export type VideoMeta = Record<string, any>; | ||
export interface VideoAuthorization { | ||
@@ -123,3 +122,3 @@ type: 'video'; | ||
} | ||
export declare type ChatAuthorizationChannels = Record<string, { | ||
export type ChatAuthorizationChannels = Record<string, { | ||
read?: boolean; | ||
@@ -154,4 +153,4 @@ write?: boolean; | ||
} | ||
export declare type JWTAuthorization = VideoAuthorization | ChatAuthorization; | ||
export declare type Authorization = JWTAuthorization | SATAuthorization; | ||
export type JWTAuthorization = VideoAuthorization | ChatAuthorization; | ||
export type Authorization = JWTAuthorization | SATAuthorization; | ||
export interface RPCConnectResult { | ||
@@ -163,7 +162,7 @@ identity: string; | ||
} | ||
export declare type SessionConstructor = typeof BaseSession; | ||
export declare type SessionAuthStatus = 'unknown' | 'authorizing' | 'authorized' | 'unauthorized'; | ||
export declare type SessionStatus = 'unknown' | 'idle' | 'reconnecting' | 'connected' | 'disconnecting' | 'disconnected' | 'auth_error' | 'expiring'; | ||
export declare type SessionEvents = `session.${SessionStatus}`; | ||
export declare type SessionActions = 'session.forceClose'; | ||
export type SessionConstructor = typeof BaseSession; | ||
export type SessionAuthStatus = 'unknown' | 'authorizing' | 'authorized' | 'unauthorized'; | ||
export type SessionStatus = 'unknown' | 'idle' | 'reconnecting' | 'connected' | 'disconnecting' | 'disconnected' | 'auth_error' | 'expiring'; | ||
export type SessionEvents = `session.${SessionStatus}`; | ||
export type SessionActions = 'session.forceClose'; | ||
/** | ||
@@ -173,5 +172,5 @@ * List of all the events the client can listen to. | ||
*/ | ||
export declare type ClientEvents = Record<SessionEvents, (params?: any) => void>; | ||
export declare type BaseConnectionState = 'active' | 'answering' | 'destroy' | 'early' | 'hangup' | 'held' | 'new' | 'purge' | 'recovering' | 'requesting' | 'ringing' | 'trying'; | ||
export declare type SessionAuthError = { | ||
export type ClientEvents = Record<SessionEvents, (params?: any) => void>; | ||
export type BaseConnectionState = 'active' | 'answering' | 'destroy' | 'early' | 'hangup' | 'held' | 'new' | 'purge' | 'recovering' | 'requesting' | 'ringing' | 'trying'; | ||
export type SessionAuthError = { | ||
code: number; | ||
@@ -183,7 +182,7 @@ message: string; | ||
*/ | ||
export declare type RoomMethod = 'video.room.get' | 'video.rooms.get' | 'video.list_available_layouts' | 'video.hide_video_muted' | 'video.show_video_muted' | 'video.members.get' | 'video.member.audio_mute' | 'video.member.audio_unmute' | 'video.member.video_mute' | 'video.member.video_unmute' | 'video.member.deaf' | 'video.member.undeaf' | 'video.member.set_input_volume' | 'video.member.set_output_volume' | 'video.member.set_input_sensitivity' | 'video.member.set_position' | 'video.member.remove' | 'video.member.get_meta' | 'video.member.set_meta' | 'video.member.update_meta' | 'video.member.delete_meta' | 'video.get_meta' | 'video.set_meta' | 'video.update_meta' | 'video.delete_meta' | 'video.set_layout' | 'video.set_position' | 'video.recording.list' | 'video.recording.start' | 'video.recording.stop' | 'video.recording.pause' | 'video.recording.resume' | 'video.playback.list' | 'video.playback.start' | 'video.playback.pause' | 'video.playback.resume' | 'video.playback.stop' | 'video.playback.set_volume' | 'video.playback.seek_absolute' | 'video.playback.seek_relative' | 'video.member.demote' | 'video.member.promote' | 'video.stream.list' | 'video.stream.start' | 'video.stream.stop' | 'video.lock' | 'video.unlock' | 'video.member.raisehand' | 'video.member.lowerhand' | 'video.prioritize_handraise'; | ||
export type RoomMethod = 'video.room.get' | 'video.rooms.get' | 'video.list_available_layouts' | 'video.hide_video_muted' | 'video.show_video_muted' | 'video.members.get' | 'video.member.audio_mute' | 'video.member.audio_unmute' | 'video.member.video_mute' | 'video.member.video_unmute' | 'video.member.deaf' | 'video.member.undeaf' | 'video.member.set_input_volume' | 'video.member.set_output_volume' | 'video.member.set_input_sensitivity' | 'video.member.set_position' | 'video.member.remove' | 'video.member.get_meta' | 'video.member.set_meta' | 'video.member.update_meta' | 'video.member.delete_meta' | 'video.get_meta' | 'video.set_meta' | 'video.update_meta' | 'video.delete_meta' | 'video.set_layout' | 'video.set_position' | 'video.recording.list' | 'video.recording.start' | 'video.recording.stop' | 'video.recording.pause' | 'video.recording.resume' | 'video.playback.list' | 'video.playback.start' | 'video.playback.pause' | 'video.playback.resume' | 'video.playback.stop' | 'video.playback.set_volume' | 'video.playback.seek_absolute' | 'video.playback.seek_relative' | 'video.member.demote' | 'video.member.promote' | 'video.stream.list' | 'video.stream.start' | 'video.stream.stop' | 'video.lock' | 'video.unlock' | 'video.member.raisehand' | 'video.member.lowerhand' | 'video.prioritize_handraise'; | ||
/** | ||
* List of all Call Fabric methods | ||
*/ | ||
export declare type CallFabricMethod = 'call.mute' | 'call.unmute' | 'call.deaf' | 'call.undeaf' | 'call.layout.list' | 'call.member.list' | 'call.member.remove' | 'call.member.position.set' | 'call.layout.set' | 'call.microphone.volume.set' | 'call.microphone.sensitivity.set' | 'call.lock' | 'call.unlock' | 'call.raisehand' | 'call.lowerhand'; | ||
export type CallFabricMethod = 'call.mute' | 'call.unmute' | 'call.deaf' | 'call.undeaf' | 'call.layout.list' | 'call.member.list' | 'call.member.remove' | 'call.member.position.set' | 'call.layout.set' | 'call.microphone.volume.set' | 'call.microphone.sensitivity.set' | 'call.lock' | 'call.unlock' | 'call.raisehand' | 'call.lowerhand'; | ||
export interface WebSocketClient { | ||
@@ -213,3 +212,3 @@ addEventListener: WebSocket['addEventListener']; | ||
} | ||
export declare type ExecuteParams = { | ||
export type ExecuteParams = { | ||
method: JSONRPCMethod; | ||
@@ -226,23 +225,23 @@ params: Record<string, any>; | ||
} | ||
export declare type ExecuteTransform<InputType = unknown, OutputType = unknown> = (payload: InputType) => OutputType; | ||
export declare type APIMethodsMap<T> = { | ||
export type ExecuteTransform<InputType = unknown, OutputType = unknown> = (payload: InputType) => OutputType; | ||
export type APIMethodsMap<T> = { | ||
[k in keyof T]: PropertyDescriptor; | ||
}; | ||
export declare type RoomCustomMethods<T> = APIMethodsMap<T>; | ||
export declare type EventsPrefix = '' | (typeof PRODUCT_PREFIXES)[number]; | ||
export type RoomCustomMethods<T> = APIMethodsMap<T>; | ||
export type EventsPrefix = '' | (typeof PRODUCT_PREFIXES)[number]; | ||
/** | ||
* See {@link GLOBAL_VIDEO_EVENTS} for the full list of events. | ||
*/ | ||
export declare type GlobalVideoEvents = (typeof GLOBAL_VIDEO_EVENTS)[number]; | ||
export declare type InternalGlobalVideoEvents = (typeof INTERNAL_GLOBAL_VIDEO_EVENTS)[number]; | ||
export declare type BaseEventHandler = (...args: any[]) => void; | ||
export declare type InternalChannels = { | ||
export type GlobalVideoEvents = (typeof GLOBAL_VIDEO_EVENTS)[number]; | ||
export type InternalGlobalVideoEvents = (typeof INTERNAL_GLOBAL_VIDEO_EVENTS)[number]; | ||
export type BaseEventHandler = (...args: any[]) => void; | ||
export type InternalChannels = { | ||
swEventChannel: SwEventChannel; | ||
sessionChannel: SessionChannel; | ||
}; | ||
export declare type SDKWorkerHooks<OnDone = (options?: any) => void, OnFail = (options?: any) => void> = AllOrNone<{ | ||
export type SDKWorkerHooks<OnDone = (options?: any) => void, OnFail = (options?: any) => void> = AllOrNone<{ | ||
onDone: OnDone; | ||
onFail: OnFail; | ||
}>; | ||
export declare type InstanceMap = { | ||
export type InstanceMap = { | ||
get: <T extends unknown>(key: string) => T; | ||
@@ -254,3 +253,3 @@ set: <T extends unknown>(key: string, value: T) => Map<string, T>; | ||
}; | ||
declare type SDKWorkerBaseParams<T> = { | ||
type SDKWorkerBaseParams<T> = { | ||
channels: InternalChannels; | ||
@@ -270,5 +269,5 @@ instance: T; | ||
}; | ||
export declare type SDKWorkerParams<T, Hooks extends SDKWorkerHooks = SDKWorkerHooks> = SDKWorkerBaseParams<T> & Hooks; | ||
export declare type SDKWorker<T, Hooks extends SDKWorkerHooks = SDKWorkerHooks> = (params: SDKWorkerParams<T, Hooks>) => SagaIterator<any>; | ||
export declare type SDKWorkerDefinition<Hooks extends SDKWorkerHooks = SDKWorkerHooks> = { | ||
export type SDKWorkerParams<T, Hooks extends SDKWorkerHooks = SDKWorkerHooks> = SDKWorkerBaseParams<T> & Hooks; | ||
export type SDKWorker<T, Hooks extends SDKWorkerHooks = SDKWorkerHooks> = (params: SDKWorkerParams<T, Hooks>) => SagaIterator<any>; | ||
export type SDKWorkerDefinition<Hooks extends SDKWorkerHooks = SDKWorkerHooks> = { | ||
worker: SDKWorker<any>; | ||
@@ -275,0 +274,0 @@ initialState?: any; |
import { JSONRPCRequest, JSONRPCResponse } from './interfaces'; | ||
declare type parseRPCResponseParams = { | ||
type parseRPCResponseParams = { | ||
response: JSONRPCResponse; | ||
@@ -4,0 +4,0 @@ request: JSONRPCRequest; |
@@ -9,3 +9,3 @@ import { SnakeToCamelCase, ConverToExternalTypes } from '../types/utils'; | ||
}; | ||
export declare type ToExternalJSONResult<T> = { | ||
export type ToExternalJSONResult<T> = { | ||
[Property in NonNullable<keyof T> as SnakeToCamelCase<Extract<Property, string>>]: ConverToExternalTypes<Extract<Property, string>, T[Property]>; | ||
@@ -28,3 +28,3 @@ }; | ||
*/ | ||
export declare const toExternalJSON: <T>(input: T, options?: typeof DEFAULT_OPTIONS) => ToExternalJSONResult<T>; | ||
export declare const toExternalJSON: <T extends object>(input: T, options?: typeof DEFAULT_OPTIONS) => ToExternalJSONResult<T>; | ||
/** | ||
@@ -31,0 +31,0 @@ * Converts values from snake_case to camelCase |
@@ -5,4 +5,4 @@ import { MapToPubSubShape } from '../redux/interfaces'; | ||
params?: unknown; | ||
node_id?: string | undefined; | ||
node_id?: string; | ||
}>(event: T) => MapToPubSubShape<T>; | ||
//# sourceMappingURL=toInternalAction.d.ts.map |
import { EventEmitter } from './EventEmitter'; | ||
declare type ToInternalEventNameParams<EventTypes extends EventEmitter.ValidEventTypes> = { | ||
type ToInternalEventNameParams<EventTypes extends EventEmitter.ValidEventTypes> = { | ||
event: EventEmitter.EventNames<EventTypes>; | ||
@@ -4,0 +4,0 @@ namespace?: string; |
import { CamelToSnakeCase } from '../types/utils'; | ||
declare type ToSnakeCaseKeys<T> = { | ||
type ToSnakeCaseKeys<T> = { | ||
[Property in NonNullable<keyof T> as CamelToSnakeCase<Extract<Property, string>>]: T[Property]; | ||
@@ -4,0 +4,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.2.0-dev.202410251141.209f47f.0", | ||
"version": "4.2.0-dev.202411141416.f24b5fd.0", | ||
"main": "dist/index.node.js", | ||
@@ -50,3 +50,3 @@ "module": "dist/index.esm.js", | ||
"@types/uuid": "^9.0.2", | ||
"jest-websocket-mock": "^2.4.0", | ||
"jest-websocket-mock": "^2.5.0", | ||
"mock-socket": "^9.2.1", | ||
@@ -53,0 +53,0 @@ "redux-saga-test-plan": "^4.0.6" |
@@ -118,2 +118,1 @@ import { | ||
export * as testUtils from './testUtils' | ||
export * from './utils/mapObject' |
@@ -124,3 +124,3 @@ import type { | ||
export function configureStore< | ||
S = any, | ||
S extends Reducer<CombinedState<S>, A> = any, | ||
A extends Action = AnyAction, | ||
@@ -139,3 +139,3 @@ M extends Middlewares<S> = [] | ||
let rootReducer: Reducer<S, A> | ||
let rootReducer | ||
@@ -142,0 +142,0 @@ if (typeof reducer === 'function') { |
@@ -119,2 +119,3 @@ import { channel, multicastChannel } from '@redux-saga/core' | ||
credential: 'sFTwvi8ShXcYNOcyYjFy3ATIUpQ=', | ||
//@ts-expect-error | ||
credentialType: 'password', | ||
@@ -121,0 +122,0 @@ username: '1619521908:8f0a119a-cda7-4497-a47d-c81493b824d4', |
@@ -11,3 +11,3 @@ import { SwEvent } from '..' | ||
id: string | ||
kind: string | ||
kind?: string | ||
metadata: Record<string, unknown> | ||
@@ -20,2 +20,4 @@ subtype: string | ||
user_name: string | ||
address_id: string | ||
from_address_id: string | ||
} | ||
@@ -22,0 +24,0 @@ |
@@ -28,3 +28,2 @@ import { | ||
export * from './eventUtils' | ||
export * from './mapObject' | ||
export { LOCAL_EVENT_PREFIX } | ||
@@ -31,0 +30,0 @@ |
@@ -63,3 +63,3 @@ import { SnakeToCamelCase, ConverToExternalTypes } from '../types/utils' | ||
*/ | ||
export const toExternalJSON = <T>( | ||
export const toExternalJSON = <T extends object>( | ||
input: T, | ||
@@ -66,0 +66,0 @@ options: typeof DEFAULT_OPTIONS = DEFAULT_OPTIONS |
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 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 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 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 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 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200
8
1
64
2788435
425
40737