@signalwire/js 3.7.1-dev.202201131750.6d234cc.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/BaseComponent.d.ts +29 -31
- package/dist/core/src/BaseComponent.d.ts.map +1 -1
- package/dist/core/src/BaseJWTSession.d.ts +1 -0
- package/dist/core/src/BaseJWTSession.d.ts.map +1 -1
- package/dist/core/src/BaseSession.d.ts +1 -1
- package/dist/core/src/BaseSession.d.ts.map +1 -1
- package/dist/core/src/chat/BaseChat.d.ts +4 -3
- package/dist/core/src/chat/BaseChat.d.ts.map +1 -1
- package/dist/core/src/chat/ChatMember.d.ts +6 -0
- package/dist/core/src/chat/ChatMember.d.ts.map +1 -1
- package/dist/core/src/chat/ChatMessage.d.ts +9 -0
- package/dist/core/src/chat/ChatMessage.d.ts.map +1 -1
- package/dist/core/src/chat/index.d.ts +1 -0
- package/dist/core/src/chat/index.d.ts.map +1 -1
- package/dist/core/src/chat/methods.d.ts +18 -15
- package/dist/core/src/chat/methods.d.ts.map +1 -1
- package/dist/core/src/chat/workers.d.ts +2 -1
- package/dist/core/src/chat/workers.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +3 -3
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/internal/BaseBackendSession.d.ts.map +1 -1
- package/dist/core/src/redux/actions.d.ts +17 -14
- package/dist/core/src/redux/actions.d.ts.map +1 -1
- package/dist/core/src/redux/features/component/componentSlice.d.ts +3952 -10
- package/dist/core/src/redux/features/component/componentSlice.d.ts.map +1 -1
- package/dist/core/src/redux/features/executeQueue/executeQueueSlice.d.ts +44 -7
- package/dist/core/src/redux/features/executeQueue/executeQueueSlice.d.ts.map +1 -1
- package/dist/core/src/redux/features/pubSub/pubSubSaga.d.ts.map +1 -1
- package/dist/core/src/redux/features/session/sessionSlice.d.ts +74 -8
- package/dist/core/src/redux/features/session/sessionSlice.d.ts.map +1 -1
- package/dist/core/src/redux/index.d.ts +9 -25
- package/dist/core/src/redux/index.d.ts.map +1 -1
- package/dist/core/src/redux/interfaces.d.ts +5 -4
- package/dist/core/src/redux/interfaces.d.ts.map +1 -1
- package/dist/core/src/redux/rootReducer.d.ts +417 -3
- package/dist/core/src/redux/rootReducer.d.ts.map +1 -1
- package/dist/core/src/redux/rootSaga.d.ts +23 -5
- package/dist/core/src/redux/rootSaga.d.ts.map +1 -1
- package/dist/core/src/redux/toolkit/configureStore.d.ts +77 -0
- package/dist/core/src/redux/toolkit/configureStore.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/createAction.d.ts +180 -0
- package/dist/core/src/redux/toolkit/createAction.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/createReducer.d.ts +42 -0
- package/dist/core/src/redux/toolkit/createReducer.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/createSlice.d.ts +142 -0
- package/dist/core/src/redux/toolkit/createSlice.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts +185 -0
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts +12 -0
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/index.d.ts +13 -0
- package/dist/core/src/redux/toolkit/index.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts +12 -0
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts +38 -0
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts +51 -0
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/utils.d.ts +11 -0
- package/dist/core/src/redux/toolkit/utils.d.ts.map +1 -0
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts +3 -2
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts.map +1 -1
- package/dist/core/src/rooms/methods.d.ts +31 -21
- package/dist/core/src/rooms/methods.d.ts.map +1 -1
- package/dist/core/src/testUtils.d.ts +8 -25
- package/dist/core/src/testUtils.d.ts.map +1 -1
- package/dist/core/src/types/chat.d.ts +12 -12
- package/dist/core/src/types/chat.d.ts.map +1 -1
- package/dist/core/src/types/utils.d.ts +7 -0
- package/dist/core/src/types/utils.d.ts.map +1 -1
- package/dist/core/src/types/videoMember.d.ts +10 -1
- package/dist/core/src/types/videoMember.d.ts.map +1 -1
- package/dist/core/src/utils/constants.d.ts +1 -0
- package/dist/core/src/utils/constants.d.ts.map +1 -1
- package/dist/core/src/utils/index.d.ts +4 -1
- package/dist/core/src/utils/index.d.ts.map +1 -1
- package/dist/core/src/utils/interfaces.d.ts +19 -6
- package/dist/core/src/utils/interfaces.d.ts.map +1 -1
- package/dist/index.esm.js +179 -49
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +223 -100
- package/dist/index.js.map +3 -3
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/js/src/BaseRoomSession.d.ts +7 -0
- package/dist/js/src/BaseRoomSession.d.ts.map +1 -1
- package/dist/js/src/JWTSession.d.ts.map +1 -1
- package/dist/js/src/RoomSession.d.ts.map +1 -1
- package/dist/js/src/RoomSession.docs.d.ts +9 -1
- package/dist/js/src/RoomSession.docs.d.ts.map +1 -1
- package/dist/js/src/chat/Client.d.ts +37 -3
- package/dist/js/src/chat/Client.d.ts.map +1 -1
- package/dist/js/src/chat/Client.docs.d.ts +238 -0
- package/dist/js/src/chat/Client.docs.d.ts.map +1 -0
- package/dist/js/src/chat/index.d.ts +5 -0
- package/dist/js/src/chat/index.d.ts.map +1 -1
- package/dist/js/src/features/actions.d.ts +1 -1
- package/dist/js/src/features/actions.d.ts.map +1 -1
- package/dist/js/src/index.d.ts +5 -2
- package/dist/js/src/index.d.ts.map +1 -1
- package/dist/js/src/testUtils.d.ts +16 -50
- package/dist/js/src/testUtils.d.ts.map +1 -1
- package/dist/js/src/utils/interfaces.d.ts +16 -2
- package/dist/js/src/utils/interfaces.d.ts.map +1 -1
- package/dist/js/src/video/memberListUpdatedWorker.d.ts +14 -0
- package/dist/js/src/video/memberListUpdatedWorker.d.ts.map +1 -0
- package/dist/js/src/video/workers.d.ts +2 -0
- package/dist/js/src/video/workers.d.ts.map +1 -0
- package/dist/js/tsconfig.build.tsbuildinfo +1 -1
- package/dist/webrtc/src/BaseConnection.d.ts +7 -0
- package/dist/webrtc/src/BaseConnection.d.ts.map +1 -1
- package/dist/webrtc/src/RTCPeer.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/BaseRoomSession.test.ts +2 -2
- package/src/BaseRoomSession.ts +15 -0
- package/src/RoomSession.docs.ts +10 -1
- package/src/RoomSession.ts +16 -4
- package/src/chat/Client.docs.ts +259 -0
- package/src/chat/Client.test.ts +4 -4
- package/src/chat/Client.ts +39 -3
- package/src/chat/index.ts +10 -0
- package/src/index.ts +6 -3
- package/src/utils/interfaces.ts +22 -2
- package/src/video/memberListUpdatedWorker.ts +217 -0
- package/src/video/workers.ts +1 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Task } from '@redux-saga/types';
|
|
2
|
+
import { Action } from './redux';
|
|
3
|
+
import { ExecuteParams, BaseComponentOptions, ExecuteExtendedOptions, EventsPrefix, EventTransform, SDKWorker, SDKWorkerDefinition, SessionAuthStatus } from './utils/interfaces';
|
|
3
4
|
import { EventEmitter } from './utils/EventEmitter';
|
|
4
5
|
import { SDKState } from './redux/interfaces';
|
|
5
6
|
import { OnlyStateProperties, EmitterContract, BaseComponentContract } from './types';
|
|
@@ -18,7 +19,6 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
|
|
|
18
19
|
private _requests;
|
|
19
20
|
private _customSagaTriggers;
|
|
20
21
|
private _destroyer?;
|
|
21
|
-
protected get logger(): import("./utils/interfaces").InternalSDKLogger;
|
|
22
22
|
/**
|
|
23
23
|
* A Namespace let us scope specific instances inside of a
|
|
24
24
|
* particular product (like 'video.', 'chat.', etc.). For instance,
|
|
@@ -51,37 +51,31 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
|
|
|
51
51
|
* List of running Tasks to be cancelled on `destroy`.
|
|
52
52
|
*/
|
|
53
53
|
private _runningWorkers;
|
|
54
|
+
protected get logger(): import("./utils/interfaces").InternalSDKLogger;
|
|
55
|
+
/**
|
|
56
|
+
* Map of Sagas that will be attached to the Store to
|
|
57
|
+
* handle events or perform side-effects. This Map will
|
|
58
|
+
* behave as a queue and will be emptied once the workers
|
|
59
|
+
* have been attached. See `this.attachWorkers` for
|
|
60
|
+
* details.
|
|
61
|
+
*/
|
|
62
|
+
protected _workers: Map<string, {
|
|
63
|
+
worker: SDKWorker<any>;
|
|
64
|
+
}>;
|
|
54
65
|
constructor(options: BaseComponentOptions<EventTypes>);
|
|
55
66
|
/** @internal */
|
|
56
67
|
set destroyer(d: () => void);
|
|
57
68
|
/** @internal */
|
|
58
69
|
get store(): {
|
|
59
|
-
runSaga: import("
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
components: Readonly<import("./redux/interfaces").ComponentState>;
|
|
66
|
-
session: Readonly<import("./redux/interfaces").SessionState>;
|
|
67
|
-
executeQueue: Readonly<import("./redux/interfaces").ExecuteQueueState>;
|
|
68
|
-
}>, undefined, import("redux").AnyAction>;
|
|
69
|
-
getState(): import("redux").CombinedState<{
|
|
70
|
-
components: Readonly<import("./redux/interfaces").ComponentState>;
|
|
71
|
-
session: Readonly<import("./redux/interfaces").SessionState>;
|
|
72
|
-
executeQueue: Readonly<import("./redux/interfaces").ExecuteQueueState>;
|
|
73
|
-
}>;
|
|
70
|
+
runSaga: <T>(saga: import("@redux-saga/types").Saga<any[]>, args: {
|
|
71
|
+
instance: T;
|
|
72
|
+
runSaga: any;
|
|
73
|
+
}) => Task;
|
|
74
|
+
dispatch: import("redux").Dispatch<import("redux").AnyAction>;
|
|
75
|
+
getState(): any;
|
|
74
76
|
subscribe(listener: () => void): import("redux").Unsubscribe;
|
|
75
|
-
replaceReducer(nextReducer: import("redux").Reducer<import("redux").
|
|
76
|
-
|
|
77
|
-
session: Readonly<import("./redux/interfaces").SessionState>;
|
|
78
|
-
executeQueue: Readonly<import("./redux/interfaces").ExecuteQueueState>;
|
|
79
|
-
}>, import("redux").AnyAction>): void;
|
|
80
|
-
[Symbol.observable](): import("redux").Observable<import("redux").CombinedState<{
|
|
81
|
-
components: Readonly<import("./redux/interfaces").ComponentState>;
|
|
82
|
-
session: Readonly<import("./redux/interfaces").SessionState>;
|
|
83
|
-
executeQueue: Readonly<import("./redux/interfaces").ExecuteQueueState>;
|
|
84
|
-
}>>;
|
|
77
|
+
replaceReducer(nextReducer: import("redux").Reducer<any, import("redux").AnyAction>): void;
|
|
78
|
+
[Symbol.observable](): import("redux").Observable<any>;
|
|
85
79
|
};
|
|
86
80
|
/** @internal */
|
|
87
81
|
get emitter(): EventEmitter<EventTypes, any>;
|
|
@@ -134,14 +128,14 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
|
|
|
134
128
|
removeAllListeners<T extends EventEmitter.EventNames<EventTypes>>(event?: T): EventEmitter<EventTypes, any>;
|
|
135
129
|
/** @internal */
|
|
136
130
|
eventNames(): EventEmitter.EventNames<EventTypes>[];
|
|
137
|
-
protected getSubscriptions():
|
|
131
|
+
protected getSubscriptions(): EventEmitter.EventNames<EventTypes>[];
|
|
138
132
|
/** @internal */
|
|
139
133
|
emit(event: EventEmitter.EventNames<EventTypes>, ...args: any[]): boolean;
|
|
140
134
|
/** @internal */
|
|
141
135
|
listenerCount<T extends EventEmitter.EventNames<EventTypes>>(event: T): number;
|
|
142
136
|
destroy(): void;
|
|
143
137
|
/** @internal */
|
|
144
|
-
execute<InputType = unknown, OutputType = unknown
|
|
138
|
+
execute<InputType = unknown, OutputType = unknown, ParamsType = Record<string, any>>({ method, params }: ExecuteParams, { transformParams, transformResolve, transformReject, }?: ExecuteExtendedOptions<InputType, OutputType, ParamsType>): Promise<OutputType>;
|
|
145
139
|
/** @internal */
|
|
146
140
|
triggerCustomSaga<T>(action: Action): Promise<T>;
|
|
147
141
|
/** @internal */
|
|
@@ -187,13 +181,17 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
|
|
|
187
181
|
protected applyEmitterTransforms({ local }?: {
|
|
188
182
|
local: boolean;
|
|
189
183
|
}): void;
|
|
184
|
+
/** @internal */
|
|
185
|
+
protected setWorker(name: string, def: SDKWorkerDefinition): void;
|
|
190
186
|
/**
|
|
191
187
|
* Returns a Map of Sagas that will be attached to the Store to handle
|
|
192
188
|
* events or perform side-effects.
|
|
189
|
+
* @internal
|
|
193
190
|
*/
|
|
194
191
|
protected getWorkers(): Map<string, {
|
|
195
|
-
worker: SDKWorker
|
|
192
|
+
worker: SDKWorker<any>;
|
|
196
193
|
}>;
|
|
194
|
+
/** @internal */
|
|
197
195
|
protected attachWorkers(): void;
|
|
198
196
|
private detachWorkers;
|
|
199
197
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponent.d.ts","sourceRoot":"","sources":["../../../../core/src/BaseComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseComponent.d.ts","sourceRoot":"","sources":["../../../../core/src/BaseComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAW7C,OAAO,EAAiB,MAAM,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EACL,aAAa,EAEb,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EAEZ,cAAc,EACd,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,oBAAoB,CAAA;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AChB,OAAO,CAAC,wBAAwB;IAQhC,gBAAgB;IAChB,OAAO,CAAC,oBAAoB;IAQ5B,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IAKxB,gBAAgB;IAChB,SAAS,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM;IAO7C;;;;;OAKG;IACH,SAAS,CAAC,oBAAoB,IAAI,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,EAAE,cAAc,CAAC;IAIxE,gBAAgB;IAChB,SAAS,KAAK,kBAAkB,IAAI,iBAAiB,CAEpD;IAED,gBAAgB;IAChB,SAAS,CAAC,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC;IA0CtD,OAAO,CAAC,oBAAoB;IA+B5B;;;;;OAKG;IACH,SAAS,CAAC,sBAAsB,CAC9B,EAAE,KAAa,EAAE,GAAE;QAAE,KAAK,EAAE,OAAO,CAAA;KAAqB;IA6B1D,gBAAgB;IAChB,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,mBAAmB;IAI1D;;;;OAIG;IACH,SAAS,CAAC,UAAU;;;IAIpB,gBAAgB;IAChB,SAAS,CAAC,aAAa;IAgBvB,OAAO,CAAC,aAAa;CAMtB"}
|
|
@@ -31,6 +31,7 @@ export declare class BaseJWTSession extends BaseSession {
|
|
|
31
31
|
* @return Promise<void>
|
|
32
32
|
*/
|
|
33
33
|
reauthenticate(): Promise<void>;
|
|
34
|
+
protected _onSocketClose(event: CloseEvent): void;
|
|
34
35
|
/**
|
|
35
36
|
* Set a timer to dispatch a notification when the JWT is going to expire.
|
|
36
37
|
* @return void
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseJWTSession.d.ts","sourceRoot":"","sources":["../../../../core/src/BaseJWTSession.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"BaseJWTSession.d.ts","sourceRoot":"","sources":["../../../../core/src/BaseJWTSession.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,qBAAa,cAAe,SAAQ,WAAW;IAc1B,OAAO,EAAE,cAAc;IAb1C;;;;OAIG;IACH,OAAO,CAAC,mBAAmB,CAAI;IAC/B,OAAO,CAAC,6BAA6B,CAAM;IAC3C;;OAEG;IACH,OAAO,CAAC,0BAA0B,CAAY;IAC9C,OAAO,CAAC,0BAA0B,CAAY;gBAE3B,OAAO,EAAE,cAAc;IAO1C,IAAI,SAAS,WASZ;IAED,IAAI,SAAS,WAGZ;IAED,IAAI,OAAO,YAEV;IAED;;;;OAIG;IACG,YAAY;IAsBlB;;;;;OAKG;IACG,cAAc;cAkBD,cAAc,CAAC,KAAK,EAAE,UAAU;IAKnD;;;OAGG;IACH,SAAS,CAAC,qBAAqB;CAqBhC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PayloadAction } from '
|
|
1
|
+
import { PayloadAction } from './redux';
|
|
2
2
|
import { SessionOptions, RPCConnectResult, JSONRPCRequest, JSONRPCResponse, WebSocketAdapter, NodeSocketAdapter, WebSocketClient, SessionStatus } from './utils/interfaces';
|
|
3
3
|
export declare class BaseSession {
|
|
4
4
|
options: SessionOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSession.d.ts","sourceRoot":"","sources":["../../../../core/src/BaseSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseSession.d.ts","sourceRoot":"","sources":["../../../../core/src/BaseSession.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AASvC,OAAO,EACL,cAAc,EAEd,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,E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AK,EAAE,UAAU;IAQ1C,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,YAAY;IA4C9C,SAAS,CAAC,uBAAuB,CAC/B,QAAQ,EAAE,cAAc,GAAG,eAAe;IAKrC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC;IAI5C;;;;OAIG;IACH,SAAS,CAAC,qBAAqB;IAM/B,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAIrE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC;YAIpB,YAAY;IAU1B,OAAO,CAAC,gBAAgB;CAWzB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseComponentOptions, BaseConsumer, JSONRPCSubscribeMethod, EventTransform } from '..';
|
|
1
|
+
import { BaseComponentOptions, BaseConsumer, JSONRPCSubscribeMethod, EventTransform, SessionEvents } from '..';
|
|
2
2
|
import { ChatMessage } from './ChatMessage';
|
|
3
3
|
import { ChatMember } from './ChatMember';
|
|
4
4
|
import type { ChatMessageEventName, ChatEventNames, ChatMemberEventNames, ChatChannel } from '../types/chat';
|
|
5
|
-
export declare type BaseChatApiEventsHandlerMapping = Record<ChatMessageEventName, (message: ChatMessage) => void> & Record<ChatMemberEventNames, (member: ChatMember) => void>;
|
|
5
|
+
export declare type BaseChatApiEventsHandlerMapping = Record<ChatMessageEventName, (message: ChatMessage) => void> & Record<ChatMemberEventNames, (member: ChatMember) => void> & Record<Extract<SessionEvents, 'session.expiring'>, () => void>;
|
|
6
6
|
/**
|
|
7
7
|
* @privateRemarks
|
|
8
8
|
*
|
|
@@ -21,12 +21,13 @@ export declare class BaseChatConsumer extends BaseConsumer<BaseChatApiEvents> {
|
|
|
21
21
|
private _getSubscribeParams;
|
|
22
22
|
private _getUnsubscribeParams;
|
|
23
23
|
protected getWorkers(): Map<string, {
|
|
24
|
-
worker: import("..").SDKWorker
|
|
24
|
+
worker: import("..").SDKWorker<BaseChatConsumer>;
|
|
25
25
|
}>;
|
|
26
26
|
/** @internal */
|
|
27
27
|
protected getEmitterTransforms(): Map<ChatEventNames | ChatEventNames[], EventTransform>;
|
|
28
28
|
subscribe(channels?: ChatChannel): Promise<unknown>;
|
|
29
29
|
unsubscribe(channels: ChatChannel): Promise<unknown>;
|
|
30
|
+
updateToken(token: string): Promise<void>;
|
|
30
31
|
}
|
|
31
32
|
export declare const BaseChatAPI: import("..").ConstructableType<BaseChatConsumer>;
|
|
32
33
|
export declare const createBaseChatObject: <ChatType>(params: BaseComponentOptions<ChatEventNames>) => ChatType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChat.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/BaseChat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EAGZ,sBAAsB,EAGtB,cAAc,
|
|
1
|
+
{"version":3,"file":"BaseChat.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/BaseChat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EAGZ,sBAAsB,EAGtB,cAAc,EAGd,aAAa,EACd,MAAM,IAAI,CAAA;AACX,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,OAAO,KAAK,EAGV,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EAIpB,WAAW,EACZ,MAAM,eAAe,CAAA;AAMtB,oBAAY,+BAA+B,GAAG,MAAM,CAClD,oBAAoB,EACpB,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAC/B,GACC,MAAM,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC,GAC1D,MAAM,CAAC,OAAO,CAAC,aAAa,EAAE,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC,CAAA;AAEhE;;;;;GAKG;AACH,oBAAY,iBAAiB,CAAC,CAAC,GAAG,+BAA+B,IAAI;KAClE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAA;AAUD,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,iBAAiB,CAAC;IACnE,UAAmB,aAAa,SAAkB;IAClD,UAAmB,eAAe,EAAE,sBAAsB,CAAmB;gBAEjE,OAAO,EAAE,oBAAoB,CAAC,iBAAiB,CAAC;IAW5D,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,qBAAqB;IAQ7B,SAAS,CAAC,UAAU;;;IAIpB,gBAAgB;IAChB,SAAS,CAAC,oBAAoB;IAyCxB,SAAS,CAAC,QAAQ,CAAC,EAAE,WAAW;IAQhC,WAAW,CAAC,QAAQ,EAAE,WAAW;IAqCvC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAc1C;AAED,eAAO,MAAM,WAAW,kDASvB,CAAA;AAED,eAAO,MAAM,oBAAoB,qBACvB,qBAAqB,cAAc,CAAC,aAY7C,CAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { ChatMemberContract } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a member in a chat.
|
|
4
|
+
*/
|
|
2
5
|
export declare class ChatMember implements ChatMemberContract {
|
|
3
6
|
private payload;
|
|
4
7
|
constructor(payload: ChatMemberContract);
|
|
8
|
+
/** The id of this member */
|
|
5
9
|
get id(): string;
|
|
10
|
+
/** The channel of this member */
|
|
6
11
|
get channel(): string;
|
|
12
|
+
/** The state of this member */
|
|
7
13
|
get state(): any;
|
|
8
14
|
}
|
|
9
15
|
//# sourceMappingURL=ChatMember.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMember.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/ChatMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAA;AAEvC,qBAAa,UAAW,YAAW,kBAAkB;IACvC,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAE/C,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,KAAK,IAAI,GAAG,CAEf;CACF"}
|
|
1
|
+
{"version":3,"file":"ChatMember.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/ChatMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAA;AAEvC;;GAEG;AACH,qBAAa,UAAW,YAAW,kBAAkB;IACvC,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAE/C,4BAA4B;IAC5B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,iCAAiC;IACjC,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,+BAA+B;IAC/B,IAAI,KAAK,IAAI,GAAG,CAEf;CACF"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { ChatMessageContract, ChatMemberContract } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a message in a chat.
|
|
4
|
+
*/
|
|
2
5
|
export declare class ChatMessage implements ChatMessageContract {
|
|
3
6
|
private payload;
|
|
4
7
|
constructor(payload: ChatMessageContract);
|
|
8
|
+
/** The id of this message */
|
|
5
9
|
get id(): string;
|
|
10
|
+
/** The member which sent this message */
|
|
6
11
|
get member(): ChatMemberContract;
|
|
12
|
+
/** The channel in which this message was sent */
|
|
7
13
|
get channel(): string;
|
|
14
|
+
/** The content of this message */
|
|
8
15
|
get content(): string;
|
|
16
|
+
/** Any metadata associated to this message */
|
|
9
17
|
get meta(): any;
|
|
18
|
+
/** The date at which this message was published */
|
|
10
19
|
get publishedAt(): Date;
|
|
11
20
|
}
|
|
12
21
|
//# sourceMappingURL=ChatMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/ChatMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAA;AAE5D,qBAAa,WAAY,YAAW,mBAAmB;IACzC,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,mBAAmB;IAEhD,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,MAAM,IAAI,kBAAkB,CAE/B;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,IAAI,IAAI,GAAG,CAEd;IAED,IAAI,WAAW,IAAI,IAAI,CAEtB;CACF"}
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/ChatMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAA;AAE5D;;GAEG;AACH,qBAAa,WAAY,YAAW,mBAAmB;IACzC,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,mBAAmB;IAEhD,6BAA6B;IAC7B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,yCAAyC;IACzC,IAAI,MAAM,IAAI,kBAAkB,CAE/B;IAED,iDAAiD;IACjD,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,kCAAkC;IAClC,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,8CAA8C;IAC9C,IAAI,IAAI,IAAI,GAAG,CAEd;IAED,mDAAmD;IACnD,IAAI,WAAW,IAAI,IAAI,CAEtB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChatCursor, ChatMessageEntity, ChatMemberEntity } from '../types/chat';
|
|
2
2
|
import type { BaseChatConsumer } from './BaseChat';
|
|
3
|
-
interface ChatMethodPropertyDescriptor<T, ParamsType> extends PropertyDescriptor {
|
|
4
|
-
value: (params: ParamsType) => Promise<T>;
|
|
5
|
-
}
|
|
6
3
|
declare type ChatMethodParams = Record<string, unknown>;
|
|
7
|
-
|
|
4
|
+
interface ChatMethodPropertyDescriptor<OutputType, ParamsType> extends PropertyDescriptor {
|
|
5
|
+
value: (params: ParamsType) => Promise<OutputType>;
|
|
6
|
+
}
|
|
7
|
+
declare type ChatMethodDescriptor<OutputType = unknown, ParamsType = ChatMethodParams> = ChatMethodPropertyDescriptor<OutputType, ParamsType> & ThisType<BaseChatConsumer>;
|
|
8
8
|
/**
|
|
9
9
|
* Chat Methods
|
|
10
10
|
*/
|
|
11
|
-
export declare const publish: ChatMethodDescriptor<
|
|
12
|
-
|
|
13
|
-
messages:
|
|
14
|
-
cursor:
|
|
15
|
-
}
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
export declare const publish: ChatMethodDescriptor<void, ChatMethodParams>;
|
|
12
|
+
interface GetMessagesOutput {
|
|
13
|
+
messages: ChatMessageEntity[];
|
|
14
|
+
cursor: ChatCursor;
|
|
15
|
+
}
|
|
16
|
+
export declare const getMessages: ChatMethodDescriptor<GetMessagesOutput, ChatMethodParams>;
|
|
17
|
+
interface GetMembersOutput {
|
|
18
|
+
members: ChatMemberEntity[];
|
|
19
|
+
}
|
|
20
|
+
export declare const getMembers: ChatMethodDescriptor<GetMembersOutput, ChatMethodParams>;
|
|
19
21
|
/**
|
|
20
22
|
* Chat Member Methods
|
|
21
23
|
*/
|
|
22
24
|
export declare const setMemberState: ChatMethodDescriptor<void, ChatMethodParams>;
|
|
23
|
-
|
|
25
|
+
interface GetMemberStateOutput {
|
|
24
26
|
channels: any;
|
|
25
|
-
}
|
|
27
|
+
}
|
|
28
|
+
export declare const getMemberState: ChatMethodDescriptor<GetMemberStateOutput, ChatMethodParams>;
|
|
26
29
|
export {};
|
|
27
30
|
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,UAAU,EAEV,iBAAiB,EAEjB,gBAAgB,EACjB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAKlD,aAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE/C,UAAU,4BAA4B,CAAC,UAAU,EAAE,UAAU,CAC3D,SAAQ,kBAAkB;IAC1B,KAAK,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;CACnD;AACD,aAAK,oBAAoB,CACvB,UAAU,GAAG,OAAO,EACpB,UAAU,GAAG,gBAAgB,IAC3B,4BAA4B,CAAC,UAAU,EAAE,UAAU,CAAC,GACtD,QAAQ,CAAC,gBAAgB,CAAC,CAAA;AA2D5B;;GAEG;AACH,eAAO,MAAM,OAAO,8CAElB,CAAA;AAMF,UAAU,iBAAiB;IACzB,QAAQ,EAAE,iBAAiB,EAAE,CAAA;IAC7B,MAAM,EAAE,UAAU,CAAA;CACnB;AACD,eAAO,MAAM,WAAW,2DAQtB,CAAA;AAKF,UAAU,gBAAgB;IACxB,OAAO,EAAE,gBAAgB,EAAE,CAAA;CAC5B;AACD,eAAO,MAAM,UAAU,0DAOtB,CAAA;AAYD;;GAEG;AACH,eAAO,MAAM,cAAc,8CAM1B,CAAA;AAKD,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,GAAG,CAAA;CACd;AACD,eAAO,MAAM,cAAc,8DAMzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/workers.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAyB,MAAM,IAAI,CAAA;AAEhF,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/workers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAA6B,SAAS,EAAyB,MAAM,IAAI,CAAA;AAEhF,eAAO,MAAM,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAmClD,CAAA"}
|
package/dist/core/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, toLocalEvent, extendComponent } from './utils';
|
|
1
|
+
import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, toLocalEvent, toSyntheticEvent, extendComponent, validateEventsToSubscribe, toInternalEventName } from './utils';
|
|
2
2
|
import { BaseSession } from './BaseSession';
|
|
3
3
|
import { BaseJWTSession } from './BaseJWTSession';
|
|
4
4
|
import { configureStore, connect } from './redux';
|
|
@@ -8,13 +8,13 @@ import { BaseConsumer } from './BaseConsumer';
|
|
|
8
8
|
import { EventEmitter, getEventEmitter } from './utils/EventEmitter';
|
|
9
9
|
import { GLOBAL_VIDEO_EVENTS } from './utils/constants';
|
|
10
10
|
import { MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS } from './types/videoMember';
|
|
11
|
-
export { uuid, setLogger, getLogger, BaseSession, BaseJWTSession, BaseComponent, BaseConsumer, BaseClient, connect, configureStore, EventEmitter, extendComponent, getEventEmitter, isGlobalEvent, toExternalJSON, toLocalEvent, GLOBAL_VIDEO_EVENTS, MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS, };
|
|
11
|
+
export { uuid, setLogger, getLogger, BaseSession, BaseJWTSession, BaseComponent, BaseConsumer, BaseClient, connect, configureStore, EventEmitter, extendComponent, validateEventsToSubscribe, getEventEmitter, isGlobalEvent, toExternalJSON, toLocalEvent, toInternalEventName, toSyntheticEvent, GLOBAL_VIDEO_EVENTS, MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS, };
|
|
12
12
|
export * from './RPCMessages';
|
|
13
13
|
export * from './internal';
|
|
14
14
|
export * from './utils/interfaces';
|
|
15
15
|
export * from './types';
|
|
16
16
|
export * from './CustomErrors';
|
|
17
|
-
export type { SessionState, CustomSagaParams, CustomSaga, } from './redux/interfaces';
|
|
17
|
+
export type { SessionState, CustomSagaParams, CustomSaga, PubSubChannel, MapToPubSubShape } from './redux/interfaces';
|
|
18
18
|
export * as actions from './redux/actions';
|
|
19
19
|
export * as sagaHelpers from './redux/utils/sagaHelpers';
|
|
20
20
|
export * as sagaEffects from '@redux-saga/core/effects';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,aAAa,EACb,cAAc,EACd,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/src/index.ts"],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1C,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAA;AACxD,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAA;AACvD,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACxE,eAAO,MAAM,SAAS;;;;;CAErB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBackendSession.d.ts","sourceRoot":"","sources":["../../../../../core/src/internal/BaseBackendSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAGL,sBAAsB,EAEtB,uBAAuB,EAKxB,MAAM,GAAG,CAAA;AACV,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,SAAS,CAAC,SAAS,IAAI;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAQ5C,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAS5C,SAAS,CAAC,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cAG9B,aAAa,IAAI,gBAAgB;IAMpD,SAAS,CAAC,OAAO,CACf,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseBackendSession.d.ts","sourceRoot":"","sources":["../../../../../core/src/internal/BaseBackendSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAGL,sBAAsB,EAEtB,uBAAuB,EAKxB,MAAM,GAAG,CAAA;AACV,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,SAAS,CAAC,SAAS,IAAI;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAQ5C,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAS5C,SAAS,CAAC,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cAG9B,aAAa,IAAI,gBAAgB;IAMpD,SAAS,CAAC,OAAO,CACf,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;cAgBV,uBAAuB,CAC9C,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,IAAI,CAAC;CA4CjB"}
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { createAction, Action } from '
|
|
1
|
+
import { createAction, Action } from './toolkit';
|
|
2
2
|
import { JSONRPCRequest, SessionAuthError } from '../utils/interfaces';
|
|
3
3
|
import { ExecuteActionParams } from './interfaces';
|
|
4
|
-
export declare const initAction: import("
|
|
5
|
-
export declare const destroyAction: import("
|
|
6
|
-
export declare const closeConnectionAction: import("
|
|
4
|
+
export declare const initAction: import("./toolkit").ActionCreatorWithoutPayload<"swSdk/init">;
|
|
5
|
+
export declare const destroyAction: import("./toolkit").ActionCreatorWithoutPayload<"swSdk/destroy">;
|
|
6
|
+
export declare const closeConnectionAction: import("./toolkit").ActionCreatorWithoutPayload<"swSdk/closeConnection">;
|
|
7
7
|
/**
|
|
8
8
|
* Used to trigger a `signalwire.reauthenticate`
|
|
9
9
|
*/
|
|
10
|
-
export declare const reauthAction: import("
|
|
10
|
+
export declare const reauthAction: import("./toolkit").ActionCreatorWithPayload<{
|
|
11
11
|
token: string;
|
|
12
12
|
}, string>;
|
|
13
13
|
/**
|
|
14
14
|
* Trigger saga to send a JSONRPC over the wire
|
|
15
15
|
*/
|
|
16
|
-
export declare const executeAction: import("
|
|
17
|
-
export declare const authErrorAction: import("
|
|
16
|
+
export declare const executeAction: import("./toolkit").ActionCreatorWithPayload<ExecuteActionParams, string>;
|
|
17
|
+
export declare const authErrorAction: import("./toolkit").ActionCreatorWithPayload<{
|
|
18
18
|
error: SessionAuthError;
|
|
19
19
|
}, string>;
|
|
20
|
-
export declare const authSuccessAction: import("
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
20
|
+
export declare const authSuccessAction: import("./toolkit").ActionCreatorWithoutPayload<"auth/success">;
|
|
21
|
+
export declare const authExpiringAction: import("./toolkit").ActionCreatorWithoutPayload<"auth/expiring">;
|
|
22
|
+
export declare const socketClosedAction: import("./toolkit").ActionCreatorWithoutPayload<"socket/closed">;
|
|
23
|
+
export declare const socketErrorAction: import("./toolkit").ActionCreatorWithoutPayload<"socket/error">;
|
|
24
|
+
export declare const socketMessageAction: import("./toolkit").ActionCreatorWithPayload<JSONRPCRequest, string>;
|
|
25
|
+
export declare const sessionConnectedAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
|
|
26
|
+
export declare const sessionDisconnectedAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
|
|
27
|
+
export declare const sessionReconnectingAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
|
|
28
|
+
export declare const sessionAuthErrorAction: import("./toolkit").ActionCreatorWithPayload<Error, "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
|
|
29
|
+
export declare const sessionExpiringAction: import("./toolkit").ActionCreatorWithoutPayload<"session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring">;
|
|
27
30
|
export declare const makeCustomSagaAction: (id: string, action: Action) => {
|
|
28
31
|
type: string;
|
|
29
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EACL,cAAc,EACd,gBAAgB,EAEjB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAElD,eAAO,MAAM,UAAU,+DAA6B,CAAA;AACpD,eAAO,MAAM,aAAa,kEAAgC,CAAA;AAC1D,eAAO,MAAM,qBAAqB,0EAAwC,CAAA;AAC1E;;GAEG;AACH,eAAO,MAAM,YAAY;WAAyB,MAAM;UAAmB,CAAA;AAE3E;;GAEG;AACH,eAAO,MAAM,aAAa,2EAEzB,CAAA;AAED,eAAO,MAAM,eAAe;WACJ,gBAAgB;UAAiB,CAAA;AACzD,eAAO,MAAM,iBAAiB,iEAA+B,CAAA;AAC7D,eAAO,MAAM,kBAAkB,kEAAgC,CAAA;AAE/D,eAAO,MAAM,kBAAkB,kEAAgC,CAAA;AAC/D,eAAO,MAAM,iBAAiB,iEAA+B,CAAA;AAC7D,eAAO,MAAM,mBAAmB,sEAE/B,CAAA;AAGD,eAAO,MAAM,sBAAsB,yMAElC,CAAA;AACD,eAAO,MAAM,yBAAyB,yMAErC,CAAA;AACD,eAAO,MAAM,yBAAyB,yMAErC,CAAA;AACD,eAAO,MAAM,sBAAsB,6MAElC,CAAA;AACD,eAAO,MAAM,qBAAqB,yMAEjC,CAAA;AAKD,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAU,MAAM;;CAK9D,CAAA;AAED,eAAO,MAAM,uBAAuB,OAAQ,MAAM,UAAU,MAAM,WAEjE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|