@signalwire/js 3.20.0 → 3.21.0-dev.202306120940.aaa0747.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.
Files changed (74) hide show
  1. package/dist/core/src/ApplyEventListeners.d.ts +11 -0
  2. package/dist/core/src/ApplyEventListeners.d.ts.map +1 -0
  3. package/dist/core/src/BaseComponent.d.ts +19 -0
  4. package/dist/core/src/BaseComponent.d.ts.map +1 -1
  5. package/dist/core/src/chat/BaseChat.d.ts +2 -3
  6. package/dist/core/src/chat/BaseChat.d.ts.map +1 -1
  7. package/dist/core/src/chat/workers/chatWorker.d.ts +4 -0
  8. package/dist/core/src/chat/workers/chatWorker.d.ts.map +1 -0
  9. package/dist/core/src/chat/workers/index.d.ts +2 -0
  10. package/dist/core/src/chat/workers/index.d.ts.map +1 -0
  11. package/dist/core/src/index.d.ts +4 -3
  12. package/dist/core/src/index.d.ts.map +1 -1
  13. package/dist/core/src/memberPosition/workers.d.ts +3 -6
  14. package/dist/core/src/memberPosition/workers.d.ts.map +1 -1
  15. package/dist/core/src/pubSub/BasePubSub.d.ts +5 -4
  16. package/dist/core/src/pubSub/BasePubSub.d.ts.map +1 -1
  17. package/dist/core/src/pubSub/workers/index.d.ts +2 -0
  18. package/dist/core/src/pubSub/workers/index.d.ts.map +1 -0
  19. package/dist/core/src/pubSub/workers/pubSubWorker.d.ts +4 -0
  20. package/dist/core/src/pubSub/workers/pubSubWorker.d.ts.map +1 -0
  21. package/dist/core/src/redux/index.d.ts +5 -0
  22. package/dist/core/src/redux/index.d.ts.map +1 -1
  23. package/dist/core/src/redux/rootSaga.d.ts +2 -2
  24. package/dist/core/src/rooms/RoomSessionRTPlayback.d.ts +47 -0
  25. package/dist/core/src/rooms/RoomSessionRTPlayback.d.ts.map +1 -0
  26. package/dist/core/src/rooms/RoomSessionRTPlayback.test.d.ts +2 -0
  27. package/dist/core/src/rooms/RoomSessionRTPlayback.test.d.ts.map +1 -0
  28. package/dist/core/src/rooms/RoomSessionRTRecording.d.ts +37 -0
  29. package/dist/core/src/rooms/RoomSessionRTRecording.d.ts.map +1 -0
  30. package/dist/core/src/rooms/RoomSessionRTRecording.test.d.ts +2 -0
  31. package/dist/core/src/rooms/RoomSessionRTRecording.test.d.ts.map +1 -0
  32. package/dist/core/src/rooms/RoomSessionRTStream.d.ts +36 -0
  33. package/dist/core/src/rooms/RoomSessionRTStream.d.ts.map +1 -0
  34. package/dist/core/src/rooms/RoomSessionRTStream.test.d.ts +2 -0
  35. package/dist/core/src/rooms/RoomSessionRTStream.test.d.ts.map +1 -0
  36. package/dist/core/src/rooms/index.d.ts +4 -0
  37. package/dist/core/src/rooms/index.d.ts.map +1 -1
  38. package/dist/core/src/rooms/methodsRT.d.ts +65 -0
  39. package/dist/core/src/rooms/methodsRT.d.ts.map +1 -0
  40. package/dist/core/src/testUtils.d.ts +10 -0
  41. package/dist/core/src/testUtils.d.ts.map +1 -1
  42. package/dist/core/src/types/index.d.ts +12 -0
  43. package/dist/core/src/types/index.d.ts.map +1 -1
  44. package/dist/core/src/types/utils.d.ts +4 -0
  45. package/dist/core/src/types/utils.d.ts.map +1 -1
  46. package/dist/core/src/types/voiceCall.d.ts +17 -7
  47. package/dist/core/src/types/voiceCall.d.ts.map +1 -1
  48. package/dist/core/src/utils/interfaces.d.ts +13 -0
  49. package/dist/core/src/utils/interfaces.d.ts.map +1 -1
  50. package/dist/core/src/utils/toExternalJSON.d.ts +5 -0
  51. package/dist/core/src/utils/toExternalJSON.d.ts.map +1 -1
  52. package/dist/index.esm.js +7 -7
  53. package/dist/index.esm.js.map +2 -2
  54. package/dist/index.js +7 -7
  55. package/dist/index.js.map +2 -2
  56. package/dist/index.umd.js +3 -3
  57. package/dist/index.umd.js.map +1 -1
  58. package/dist/js/src/Client.d.ts +2 -0
  59. package/dist/js/src/Client.d.ts.map +1 -1
  60. package/dist/js/src/JWTSession.d.ts.map +1 -1
  61. package/dist/js/src/RoomSession.d.ts.map +1 -1
  62. package/dist/js/src/testUtils.d.ts +10 -0
  63. package/dist/js/src/testUtils.d.ts.map +1 -1
  64. package/dist/js/tsconfig.build.tsbuildinfo +1 -1
  65. package/dist/webrtc/src/BaseConnection.d.ts +2 -0
  66. package/dist/webrtc/src/BaseConnection.d.ts.map +1 -1
  67. package/dist/webrtc/src/RTCPeer.d.ts.map +1 -1
  68. package/package.json +3 -3
  69. package/src/Client.ts +2 -2
  70. package/src/RoomSession.ts +2 -0
  71. package/dist/core/src/chat/workers.d.ts +0 -4
  72. package/dist/core/src/chat/workers.d.ts.map +0 -1
  73. package/dist/core/src/pubSub/workers.d.ts +0 -4
  74. package/dist/core/src/pubSub/workers.d.ts.map +0 -1
@@ -0,0 +1,11 @@
1
+ import { BaseConsumer, EventEmitter } from '@signalwire/core';
2
+ /**
3
+ * Override all old listeners with new listeners that uses BaseComponent's new even emitter
4
+ */
5
+ export declare class ApplyEventListeners<EventTypes extends EventEmitter.ValidEventTypes> extends BaseConsumer<EventTypes> {
6
+ protected extendEventName(event: EventEmitter.EventNames<EventTypes>): EventEmitter.EventNames<EventTypes>;
7
+ on(event: EventEmitter.EventNames<EventTypes>, fn: EventEmitter.EventListener<EventTypes, any>): EventEmitter<EventTypes, any>;
8
+ once(event: EventEmitter.EventNames<EventTypes>, fn: EventEmitter.EventListener<EventTypes, any>): EventEmitter<EventTypes, any>;
9
+ off(event: EventEmitter.EventNames<EventTypes>, fn: EventEmitter.EventListener<EventTypes, any>): EventEmitter<EventTypes, any>;
10
+ }
11
+ //# sourceMappingURL=ApplyEventListeners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplyEventListeners.d.ts","sourceRoot":"","sources":["../../../../core/src/ApplyEventListeners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE7D;;GAEG;AACH,qBAAa,mBAAmB,CAC9B,UAAU,SAAS,YAAY,CAAC,eAAe,CAC/C,SAAQ,YAAY,CAAC,UAAU,CAAC;IAChC,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC;IAI3D,EAAE,CACT,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,EAC1C,EAAE,EAAE,YAAY,CAAC,aAAa,CAAC,UAAU,EAAE,GAAG,CAAC;IAKxC,IAAI,CACX,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,EAC1C,EAAE,EAAE,YAAY,CAAC,aAAa,CAAC,UAAU,EAAE,GAAG,CAAC;IAKxC,GAAG,CACV,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,EAC1C,EAAE,EAAE,YAAY,CAAC,aAAa,CAAC,UAAU,EAAE,GAAG,CAAC;CAIlD"}
@@ -22,6 +22,7 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
22
22
  private _eventsTransformsCache;
23
23
  private _customSagaTriggers;
24
24
  private _destroyer?;
25
+ private baseEventEmitter;
25
26
  private _handleCompoundEvents;
26
27
  /**
27
28
  * A Namespace let us scope specific instances inside of a
@@ -76,6 +77,11 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
76
77
  runSaga: any;
77
78
  }) => Task<any>;
78
79
  channels: import("./utils/interfaces").InternalChannels;
80
+ instanceMap: {
81
+ get: <T_1 extends unknown>(key: string) => T_1;
82
+ set: <T_2 extends unknown>(key: string, value: T_2) => Map<string, unknown>;
83
+ remove: (key: string) => Map<string, unknown>;
84
+ };
79
85
  dispatch: import("redux").Dispatch<import("redux").AnyAction>;
80
86
  getState(): any;
81
87
  subscribe(listener: () => void): import("redux").Unsubscribe;
@@ -83,8 +89,16 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
83
89
  [Symbol.observable](): import("redux").Observable<any>;
84
90
  };
85
91
  /** @internal */
92
+ get instanceMap(): {
93
+ get: <T extends unknown>(key: string) => T;
94
+ set: <T_1 extends unknown>(key: string, value: T_1) => Map<string, unknown>;
95
+ remove: (key: string) => Map<string, unknown>;
96
+ };
97
+ /** @internal */
86
98
  get emitter(): EventEmitter<EventTypes, any>;
87
99
  /** @internal */
100
+ get baseEmitter(): EventEmitter<EventTypes, any>;
101
+ /** @internal */
88
102
  private addEventToRegisterQueue;
89
103
  /** @internal */
90
104
  private _addEventToEmitQueue;
@@ -128,11 +142,16 @@ export declare class BaseComponent<EventTypes extends EventEmitter.ValidEventTyp
128
142
  private _untrackEvent;
129
143
  private _addListener;
130
144
  on<T extends EventEmitter.EventNames<EventTypes>>(event: T, fn: EventEmitter.EventListener<EventTypes, T>): EventEmitter<EventTypes, any>;
145
+ _on<T extends EventEmitter.EventNames<EventTypes>>(event: T, fn: EventEmitter.EventListener<EventTypes, T>): EventEmitter<EventTypes, any>;
146
+ _once<T extends EventEmitter.EventNames<EventTypes>>(event: T, fn: EventEmitter.EventListener<EventTypes, T>): EventEmitter<EventTypes, any>;
147
+ _off<T extends EventEmitter.EventNames<EventTypes>>(event: T, fn?: EventEmitter.EventListener<EventTypes, T>): EventEmitter<EventTypes, any>;
131
148
  once<T extends EventEmitter.EventNames<EventTypes>>(event: T, fn: EventEmitter.EventListener<EventTypes, T>): EventEmitter<EventTypes, any>;
132
149
  off<T extends EventEmitter.EventNames<EventTypes>>(event: T, fn?: EventEmitter.EventListener<EventTypes, T>): EventEmitter<EventTypes, any>;
133
150
  removeAllListeners<T extends EventEmitter.EventNames<EventTypes>>(event?: T): EventEmitter<EventTypes, any>;
134
151
  /** @internal */
135
152
  eventNames(): EventEmitter.EventNames<EventTypes>[];
153
+ /** @internal */
154
+ baseEventNames(): EventEmitter.EventNames<EventTypes>[];
136
155
  protected getSubscriptions(): EventEmitter.EventNames<EventTypes>[];
137
156
  /** @internal */
138
157
  emit(event: EventEmitter.EventNames<EventTypes>, ...args: any[]): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseComponent.d.ts","sourceRoot":"","sources":["../../../../core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CAAC,iBAAiB,IAAI,GAAG,CAChC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,EACnC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CACtC;IAID;;;;;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,KAAK,iBAAiB,IAAI,aAAa,GAAG,SAAS,CAE3D;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,KAAK,SAAS,cAAc,GAAG,cAAc,EAC/D,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,mBAAmB,CAAC,KAAK,CAAC;IAajC,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,aAAa;CAMtB"}
@@ -1,4 +1,4 @@
1
- import { BaseComponentOptions, EventTransform, JSONRPCSubscribeMethod, SessionEvents } from '..';
1
+ import { BaseComponentOptions, JSONRPCSubscribeMethod, SessionEvents } from '..';
2
2
  import { BasePubSubConsumer } from '../pubSub';
3
3
  import type { ChatEventNames, ChatMemberEventNames, ChatMessageEventName } from '../types/chat';
4
4
  import { ChatMember } from './ChatMember';
@@ -17,8 +17,7 @@ export declare class BaseChatConsumer extends BasePubSubConsumer<BaseChatApiEven
17
17
  protected _eventsPrefix: "chat";
18
18
  protected subscribeMethod: JSONRPCSubscribeMethod;
19
19
  constructor(options: BaseComponentOptions<BaseChatApiEvents>);
20
- /** @internal */
21
- protected getEmitterTransforms(): Map<ChatEventNames | ChatEventNames[], EventTransform>;
20
+ protected initWorker(): void;
22
21
  }
23
22
  export declare const BaseChatAPI: import("..").ConstructableType<BaseChatConsumer>;
24
23
  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,EAEpB,cAAc,EAEd,sBAAsB,EACtB,aAAa,EAEd,MAAM,IAAI,CAAA;AACX,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAEV,cAAc,EACd,oBAAoB,EAIpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAQ3C,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;AAED,qBAAa,gBAAiB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IACzE,UAAmB,aAAa,SAAsB;IACtD,UAAmB,eAAe,EAAE,sBAAsB,CAAqC;gBAEnF,OAAO,EAAE,oBAAoB,CAAC,iBAAiB,CAAC;IAM5D,gBAAgB;cACG,oBAAoB;CAkCxC;AAED,eAAO,MAAM,WAAW,kDASvB,CAAA;AAED,eAAO,MAAM,oBAAoB,qBACvB,qBAAqB,cAAc,CAAC,aAQ7C,CAAA"}
1
+ {"version":3,"file":"BaseChat.d.ts","sourceRoot":"","sources":["../../../../../core/src/chat/BaseChat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAGpB,sBAAsB,EACtB,aAAa,EACd,MAAM,IAAI,CAAA;AACX,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C,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;AAED,qBAAa,gBAAiB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IACzE,UAAmB,aAAa,SAAsB;IACtD,UAAmB,eAAe,EAAE,sBAAsB,CAAqC;gBAEnF,OAAO,EAAE,oBAAoB,CAAC,iBAAiB,CAAC;cAIzC,UAAU;CAG9B;AAED,eAAO,MAAM,WAAW,kDASvB,CAAA;AAED,eAAO,MAAM,oBAAoB,qBACvB,qBAAqB,cAAc,CAAC,aAQ7C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { BaseChatConsumer } from '../BaseChat';
2
+ import { SDKWorker } from '../../index';
3
+ export declare const chatWorker: SDKWorker<BaseChatConsumer>;
4
+ //# sourceMappingURL=chatWorker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatWorker.d.ts","sourceRoot":"","sources":["../../../../../../core/src/chat/workers/chatWorker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAEL,SAAS,EAOV,MAAM,aAAa,CAAA;AAEpB,eAAO,MAAM,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAsDlD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './chatWorker';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/chat/workers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,4 +1,4 @@
1
- import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, toSnakeCaseKeys, toLocalEvent, toSyntheticEvent, extendComponent, validateEventsToSubscribe, toInternalEventName, toInternalAction, serializeableProxy, timeoutPromise, debounce, CloseEvent, isSATAuth } from './utils';
1
+ import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, fromSnakeToCamelCase, toSnakeCaseKeys, toLocalEvent, toSyntheticEvent, extendComponent, validateEventsToSubscribe, toInternalEventName, toInternalAction, serializeableProxy, timeoutPromise, debounce, CloseEvent, isSATAuth } from './utils';
2
2
  import { WEBRTC_EVENT_TYPES, isWebrtcEventType } from './utils/common';
3
3
  import { BaseSession } from './BaseSession';
4
4
  import { BaseJWTSession } from './BaseJWTSession';
@@ -10,7 +10,7 @@ import { EventEmitter, getEventEmitter } from './utils/EventEmitter';
10
10
  import { findNamespaceInPayload } from './redux/features/shared/namespace';
11
11
  import { GLOBAL_VIDEO_EVENTS } from './utils/constants';
12
12
  import { MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS } from './types/videoMember';
13
- export { uuid, setLogger, getLogger, BaseSession, BaseJWTSession, BaseComponent, BaseConsumer, BaseClient, connect, configureStore, EventEmitter, extendComponent, validateEventsToSubscribe, getEventEmitter, isGlobalEvent, toExternalJSON, toSnakeCaseKeys, toLocalEvent, toInternalEventName, toInternalAction, serializeableProxy, toSyntheticEvent, GLOBAL_VIDEO_EVENTS, MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS, findNamespaceInPayload, timeoutPromise, debounce, CloseEvent, WEBRTC_EVENT_TYPES, isWebrtcEventType, isSATAuth, };
13
+ export { uuid, setLogger, getLogger, BaseSession, BaseJWTSession, BaseComponent, BaseConsumer, BaseClient, connect, configureStore, EventEmitter, extendComponent, validateEventsToSubscribe, getEventEmitter, isGlobalEvent, toExternalJSON, fromSnakeToCamelCase, toSnakeCaseKeys, toLocalEvent, toInternalEventName, toInternalAction, serializeableProxy, toSyntheticEvent, GLOBAL_VIDEO_EVENTS, MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS, findNamespaceInPayload, timeoutPromise, debounce, CloseEvent, WEBRTC_EVENT_TYPES, isWebrtcEventType, isSATAuth, };
14
14
  export * from './redux/features/component/componentSlice';
15
15
  export * from './redux/features/session/sessionSlice';
16
16
  export * as componentSelectors from './redux/features/component/componentSelectors';
@@ -28,7 +28,7 @@ export * as Rooms from './rooms';
28
28
  export * as Chat from './chat';
29
29
  export * as PubSub from './pubSub';
30
30
  export * as MemberPosition from './memberPosition';
31
- export type { RoomSessionRecording, RoomSessionPlayback, RoomSessionStream, } from './rooms';
31
+ export type { RoomSessionRecording, RoomSessionRTRecording, RoomSessionPlayback, RoomSessionRTPlayback, RoomSessionStream, RoomSessionRTStream, } from './rooms';
32
32
  export declare const selectors: {
33
33
  getIceServers: ({ session }: import("./redux/interfaces").SDKState) => RTCIceServer[];
34
34
  getSession: (store: import("./redux/interfaces").SDKState) => import("./redux/interfaces").SessionState;
@@ -39,4 +39,5 @@ export declare const selectors: {
39
39
  export { ChatMember, ChatMessage } from './chat';
40
40
  export { PubSubMessage } from './pubSub';
41
41
  export * as testUtils from './testUtils';
42
+ export * from './ApplyEventListeners';
42
43
  //# sourceMappingURL=index.d.ts.map
@@ -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,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,SAAS,EACV,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC/B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,EACZ,UAAU,EACV,OAAO,EACP,cAAc,EACd,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AAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,cAAc,uBAAuB,CAAA"}
@@ -1,11 +1,8 @@
1
- import { sagaEffects, SDKWorker, SDKWorkerParams, VideoMemberUpdatedEventParams } from '..';
2
- export declare function memberUpdatedWorker({ action, channels, memberList, }: Omit<SDKWorkerParams<any>, 'runSaga'> & {
1
+ import { SagaIterator, SDKWorker, SDKWorkerParams, VideoMemberUpdatedEventParams } from '..';
2
+ export declare function memberUpdatedWorker({ action, channels, memberList, dispatcher, }: Omit<SDKWorkerParams<any>, 'runSaga'> & {
3
3
  memberList: MemberEventParamsList;
4
4
  action: any;
5
- }): Generator<sagaEffects.ChannelPutEffect<import("..").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("..").MapToPubSubShape<import("..").InternalVideoRoomAudienceCountEvent> | import("..").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | import("..").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("..").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("..").MapToPubSubShape<import("..").VideoMemberPromotedEvent> | import("..").MapToPubSubShape<import("..").VideoMemberDemotedEvent> | import("..").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("..").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("..").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("..").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("..").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("..").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("..").MapToPubSubShape<import("..").VideoStreamStartedEvent> | import("..").MapToPubSubShape<import("..").VideoStreamEndedEvent> | import("..").MapToPubSubShape<import("..").VideoRoomAudienceCountEvent> | {
6
- type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnecting" | "session.disconnected" | "session.auth_error" | "session.expiring";
7
- payload: Error | undefined;
8
- } | import("..").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("..").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("..").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("..").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("..").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("..").MapToPubSubShape<import("..").MessagingStateEvent> | import("..").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("..").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("..").MapToPubSubShape<import("..").MessageReceivedEvent> | import("..").MapToPubSubShape<import("..").CallingCallDialEvent> | import("..").MapToPubSubShape<import("..").CallingCallStateEvent> | import("..").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("..").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("..").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("..").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("..").MapToPubSubShape<import("..").CallingCallTapEvent> | import("..").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("..").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("..").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("..").MapToPubSubShape<import("..").CallReceivedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("..").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("..").MapToPubSubShape<import("..").CallTapStartedEvent> | import("..").MapToPubSubShape<import("..").CallTapEndedEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("..").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("..").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectFailedEvent>>, void, unknown>;
5
+ }): Generator<SagaIterator<any>, void, unknown>;
9
6
  export declare const MEMBER_POSITION_COMPOUND_EVENTS: Map<any, any>;
10
7
  export declare const memberPositionWorker: SDKWorker<any>;
11
8
  declare type MemberEventParamsList = Map<string, VideoMemberUpdatedEventParams>;
@@ -1 +1 @@
1
- {"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../../../../../core/src/memberPosition/workers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EAEX,SAAS,EACT,eAAe,EACf,6BAA6B,EAG9B,MAAM,IAAI,CAAA;AAmEX,wBAAiB,mBAAmB,CAAC,EACnC,MAAM,EACN,QAAQ,EACR,UAAU,GACX,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG;IACzC,UAAU,EAAE,qBAAqB,CAAA;IACjC,MAAM,EAAE,GAAG,CAAA;CACZ;;;s3GAsCA;AAED,eAAO,MAAM,+BAA+B,eAW1C,CAAA;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,GAAG,CAsE7C,CAAA;AAEH,aAAK,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAA"}
1
+ {"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../../../../../core/src/memberPosition/workers.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EACZ,SAAS,EACT,eAAe,EACf,6BAA6B,EAG9B,MAAM,IAAI,CAAA;AA8EX,wBAAiB,mBAAmB,CAAC,EACnC,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAA8B,GAC/B,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG;IACzC,UAAU,EAAE,qBAAqB,CAAA;IACjC,MAAM,EAAE,GAAG,CAAA;CACZ,+CAgCA;AAED,eAAO,MAAM,+BAA+B,eAW1C,CAAA;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,GAAG,CA8E7C,CAAA;AAEH,aAAK,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAA"}
@@ -1,6 +1,7 @@
1
- import { BaseComponentOptions, BaseConsumer, JSONRPCSubscribeMethod, SessionEvents, EventEmitter, EventTransform } from '..';
1
+ import { BaseComponentOptions, JSONRPCSubscribeMethod, SessionEvents, EventEmitter } from '..';
2
2
  import type { PubSubChannel, InternalPubSubChannel, PubSubEventNames, PubSubPublishParams, PubSubMessageEventName } from '../types/pubSub';
3
3
  import { PubSubMessage } from './PubSubMessage';
4
+ import { ApplyEventListeners } from '../ApplyEventListeners';
4
5
  export declare type BasePubSubApiEventsHandlerMapping = Record<PubSubMessageEventName, (message: PubSubMessage) => void> & Record<Extract<SessionEvents, 'session.expiring'>, () => void>;
5
6
  /**
6
7
  * @privateRemarks
@@ -11,12 +12,11 @@ export declare type BasePubSubApiEventsHandlerMapping = Record<PubSubMessageEven
11
12
  export declare type BasePubSubApiEvents<T = BasePubSubApiEventsHandlerMapping> = {
12
13
  [k in keyof T]: T[k];
13
14
  };
14
- export declare class BasePubSubConsumer<EventTypes extends EventEmitter.ValidEventTypes = BasePubSubApiEvents> extends BaseConsumer<EventTypes> {
15
+ export declare class BasePubSubConsumer<EventTypes extends EventEmitter.ValidEventTypes = BasePubSubApiEvents> extends ApplyEventListeners<EventTypes> {
15
16
  protected _eventsPrefix: "chat";
16
17
  protected subscribeMethod: JSONRPCSubscribeMethod;
17
18
  constructor(options: BaseComponentOptions<EventTypes>);
18
- /** @internal */
19
- protected getEmitterTransforms(): Map<any, EventTransform>;
19
+ protected initWorker(): void;
20
20
  private _getChannelsParam;
21
21
  /** @internal */
22
22
  protected _setSubscribeParams(params: Record<string, any>): void;
@@ -38,6 +38,7 @@ export declare class BasePubSubConsumer<EventTypes extends EventEmitter.ValidEve
38
38
  updateToken(token: string): Promise<void>;
39
39
  publish(params: PubSubPublishParams): Promise<unknown>;
40
40
  getAllowedChannels(): Promise<import("..").ChatAuthorizationChannels>;
41
+ protected extendEventName(event: EventEmitter.EventNames<EventTypes>): EventEmitter.EventNames<EventTypes>;
41
42
  }
42
43
  export declare const createBasePubSubObject: <PubSubType>(params: BaseComponentOptions<PubSubEventNames>) => PubSubType;
43
44
  //# sourceMappingURL=BasePubSub.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BasePubS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,UAAU,CAAC;IACvC,UAAmB,aAAa,SAAwB;IACxD,UAAmB,eAAe,EAAE,sBAAsB,CAAuC;gBAErF,OAAO,EAAE,oBAAoB,CAAC,UAAU,CAAC;IAcrD,SAAS,CAAC,UAAU;IAIpB,OAAO,CAAC,iBAAiB;IAkBzB,gBAAgB;IAChB,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAOzD,gBAAgB;IAChB,SAAS,CAAC,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAA;KAAE;;;IAMxE,gBAAgB;IAChB,SAAS,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAA;KAAE;;;IAQ1E,OAAO,CAAC,0BAA0B;IAW5B,SAAS,CAAC,QAAQ,CAAC,EAAE,aAAa;IAUlC,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAwCzD,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAezC,OAAO,CAAC,MAAM,EAAE,mBAAmB;IAU7B,kBAAkB;cASL,eAAe,CAChC,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC;CAM7C;AAED,eAAO,MAAM,sBAAsB,uBACzB,qBAAqB,gBAAgB,CAAC,eAQ/C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './pubSubWorker';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/pubSub/workers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { BasePubSubConsumer } from '../BasePubSub';
2
+ import { SDKWorker } from '../../index';
3
+ export declare const pubSubWorker: SDKWorker<BasePubSubConsumer>;
4
+ //# sourceMappingURL=pubSubWorker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pubSubWorker.d.ts","sourceRoot":"","sources":["../../../../../../core/src/pubSub/workers/pubSubWorker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAGL,SAAS,EAIV,MAAM,aAAa,CAAA;AAEpB,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,kBAAkB,CA0DtD,CAAA"}
@@ -16,6 +16,11 @@ declare const configureStore: (options: ConfigureStoreOptions) => {
16
16
  runSaga: any;
17
17
  }) => Task<any>;
18
18
  channels: InternalChannels;
19
+ instanceMap: {
20
+ get: <T_1 extends unknown>(key: string) => T_1;
21
+ set: <T_2 extends unknown>(key: string, value: T_2) => Map<string, unknown>;
22
+ remove: (key: string) => Map<string, unknown>;
23
+ };
19
24
  dispatch: import("redux").Dispatch<import("redux").AnyAction>;
20
25
  getState(): any;
21
26
  subscribe(listener: () => void): import("redux").Unsubscribe;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/index.ts"],"names":[],"mappings":"AACA,OAA6B,EAG3B,IAAI,EACJ,IAAI,EACL,MAAM,kBAAkB,CAAA;AAIzB,OAAO,EAEL,QAAQ,EAGT,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,mBAAmB,CAAA;IAChC,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CACnC;AAED,oBAAY,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,C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;;CAuCpC,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA"}
@@ -17,10 +17,10 @@ export declare function reauthenticateWorker({ session, token, pubSubChannel, }:
17
17
  session: BaseSession;
18
18
  token: string;
19
19
  pubSubChannel: PubSubChannel;
20
- }): Generator<import("@redux-saga/core/effects").ChannelPutEffect<import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomAudienceCountEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberPromotedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberDemotedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoStreamStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoStreamEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomAudienceCountEvent> | {
20
+ }): Generator<import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").ChannelPutEffect<import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomAudienceCountEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberPromotedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberDemotedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoStreamStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoStreamEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomAudienceCountEvent> | {
21
21
  type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnecting" | "session.disconnected" | "session.auth_error" | "session.expiring";
22
22
  payload: Error | undefined;
23
- } | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("./interfaces").MapToPubSubShape<import("..").MessagingStateEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDialEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallStateEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallTapEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectFailedEvent>> | import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").PutEffect<{
23
+ } | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("./interfaces").MapToPubSubShape<import("..").MessagingStateEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDialEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallStateEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallTapEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectFailedEvent>> | import("@redux-saga/core/effects").PutEffect<{
24
24
  payload: import("../utils/interfaces").RPCConnectResult;
25
25
  type: string;
26
26
  }>, void, unknown>;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * `RoomSessionPlayback.ts` -> Uses old event emitter - being used in browser SDK
3
+ * `RoomSessionRTPlayback.ts` -> Uses new event emitter - being used in realtime SDK
4
+ *
5
+ * The `RoomSessionPlayback.ts` file should be removed when we start using the new event emitter in browser sdk.
6
+ * We will also need to rename the new file and remove the letters `RT` from all the variables/classes/functions/types.
7
+ */
8
+ import { BaseComponent } from '../BaseComponent';
9
+ import { BaseComponentOptionsWithPayload } from '../utils/interfaces';
10
+ import type { VideoPlaybackContract, VideoPlaybackMethods, VideoPlaybackEventNames, VideoPlaybackEventParams } from '../types/videoPlayback';
11
+ /**
12
+ * Instances of this class allow you to control (e.g., pause, resume, stop) the
13
+ * playback inside a room session. You can obtain instances of this class by
14
+ * starting a playback from the desired {@link RoomSession} (see
15
+ * {@link RoomSession.play})
16
+ */
17
+ export interface RoomSessionRTPlayback extends VideoPlaybackContract {
18
+ setPayload(payload: VideoPlaybackEventParams): void;
19
+ }
20
+ export declare type RoomSessionRTPlaybackEventsHandlerMapping = Record<VideoPlaybackEventNames, (playback: RoomSessionRTPlayback) => void>;
21
+ export interface RoomSessionRTPlaybackOptions extends BaseComponentOptionsWithPayload<RoomSessionRTPlaybackEventsHandlerMapping, VideoPlaybackEventParams> {
22
+ }
23
+ export declare class RoomSessionRTPlaybackAPI extends BaseComponent<RoomSessionRTPlaybackEventsHandlerMapping> implements VideoPlaybackMethods {
24
+ private _payload;
25
+ constructor(options: RoomSessionRTPlaybackOptions);
26
+ get id(): string;
27
+ get roomId(): string;
28
+ get roomSessionId(): string;
29
+ get url(): string;
30
+ get state(): "playing" | "paused" | "completed";
31
+ get volume(): number;
32
+ get startedAt(): Date | undefined;
33
+ get endedAt(): Date | undefined;
34
+ get position(): number;
35
+ get seekable(): boolean;
36
+ /** @internal */
37
+ protected setPayload(payload: VideoPlaybackEventParams): void;
38
+ pause(): Promise<void>;
39
+ resume(): Promise<void>;
40
+ stop(): Promise<void>;
41
+ setVolume(volume: number): Promise<void>;
42
+ seek(timecode: number): Promise<void>;
43
+ forward(offset?: number): Promise<void>;
44
+ rewind(offset?: number): Promise<void>;
45
+ }
46
+ export declare const createRoomSessionRTPlaybackObject: (params: RoomSessionRTPlaybackOptions) => RoomSessionRTPlayback;
47
+ //# sourceMappingURL=RoomSessionRTPlayback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomSessionRTPlayback.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/RoomSessionRT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,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RoomSessionRTPlayback.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomSessionRTPlayback.test.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/RoomSessionRTPlayback.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * `RoomSessionRecording.ts` -> Uses old event emitter - being used in browser SDK
3
+ * `RoomSessionRTRecording.ts` -> Uses new event emitter - being used in realtime SDK
4
+ *
5
+ * The `RoomSessionRecording.ts` file should be removed when we start using the new event emitter in browser sdk.
6
+ * We will also need to rename the new file and remove the letters `RT` from all the variables/classes/functions/types.
7
+ */
8
+ import { BaseComponent } from '../BaseComponent';
9
+ import { BaseComponentOptionsWithPayload } from '../utils/interfaces';
10
+ import type { VideoRecordingContract, VideoRecordingEventNames, VideoRecordingEventParams, VideoRecordingMethods } from '../types/videoRecording';
11
+ /**
12
+ * Represents a specific recording of a room session.
13
+ */
14
+ export interface RoomSessionRTRecording extends VideoRecordingContract {
15
+ setPayload(payload: VideoRecordingEventParams): void;
16
+ }
17
+ export declare type RoomSessionRTRecordingEventsHandlerMapping = Record<VideoRecordingEventNames, (recording: RoomSessionRTRecording) => void>;
18
+ export interface RoomSessionRTRecordingOptions extends BaseComponentOptionsWithPayload<RoomSessionRTRecordingEventsHandlerMapping, VideoRecordingEventParams> {
19
+ }
20
+ export declare class RoomSessionRTRecordingAPI extends BaseComponent<RoomSessionRTRecordingEventsHandlerMapping> implements VideoRecordingMethods {
21
+ private _payload;
22
+ constructor(options: RoomSessionRTRecordingOptions);
23
+ get id(): string;
24
+ get roomId(): string;
25
+ get roomSessionId(): string;
26
+ get state(): "recording" | "paused" | "completed";
27
+ get duration(): number | undefined;
28
+ get startedAt(): Date | undefined;
29
+ get endedAt(): Date | undefined;
30
+ /** @internal */
31
+ protected setPayload(payload: VideoRecordingEventParams): void;
32
+ pause(): Promise<void>;
33
+ resume(): Promise<void>;
34
+ stop(): Promise<void>;
35
+ }
36
+ export declare const createRoomSessionRTRecordingObject: (params: RoomSessionRTRecordingOptions) => RoomSessionRTRecording;
37
+ //# sourceMappingURL=RoomSessionRTRecording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomSessionRTRecording.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/RoomSessionRTRecording.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,yBAAyB,CAAA;AAEhC;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,UAAU,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAAA;CACrD;AAED,oBAAY,0CAA0C,GAAG,MAAM,CAC7D,wBAAwB,EACxB,CAAC,SAAS,EAAE,sBAAsB,KAAK,IAAI,CAC5C,CAAA;AAED,MAAM,WAAW,6BACf,SAAQ,+BAA+B,CACrC,0CAA0C,EAC1C,yBAAyB,CAC1B;CAAG;AAEN,qBAAa,yBACX,SAAQ,aAAa,CAAC,0CAA0C,CAChE,YAAW,qBAAqB;IAEhC,OAAO,CAAC,QAAQ,CAA2B;gBAE/B,OAAO,EAAE,6BAA6B;IAMlD,IAAI,EAAE,WAEL;IAED,IAAI,MAAM,WAET;IAED,IAAI,aAAa,WAEhB;IAED,IAAI,KAAK,yCAER;IAED,IAAI,QAAQ,uBAEX;IAED,IAAI,SAAS,qBAKZ;IAED,IAAI,OAAO,qBAKV;IAED,gBAAgB;IAChB,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,yBAAyB;IAIjD,KAAK;IAUL,MAAM;IAUN,IAAI;CASX;AAED,eAAO,MAAM,kCAAkC,WACrC,6BAA6B,KACpC,sBAWF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RoomSessionRTRecording.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomSessionRTRecording.test.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/RoomSessionRTRecording.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * `RoomSessionStream.ts` -> Uses old event emitter - being used in browser SDK
3
+ * `RoomSessionRTStream.ts` -> Uses new event emitter - being used in realtime SDK
4
+ *
5
+ * The `RoomSessionStream.ts` file should be removed when we start using the new event emitter in browser sdk.
6
+ * We will also need to rename the new file and remove the letters `RT` from all the variables/classes/functions/types.
7
+ */
8
+ import { BaseComponent } from '../BaseComponent';
9
+ import { BaseComponentOptionsWithPayload } from '../utils/interfaces';
10
+ import type { VideoStreamContract, VideoStreamEventNames, VideoStreamEventParams, VideoStreamMethods } from '../types/videoStream';
11
+ /**
12
+ * Represents a specific Stream of a room session.
13
+ */
14
+ export interface RoomSessionRTStream extends VideoStreamContract {
15
+ setPayload(payload: VideoStreamEventParams): void;
16
+ }
17
+ export declare type RoomSessionRTStreamEventsHandlerMapping = Record<VideoStreamEventNames, (stream: RoomSessionRTStream) => void>;
18
+ export interface RoomSessionRTStreamOptions extends BaseComponentOptionsWithPayload<RoomSessionRTStreamEventsHandlerMapping, VideoStreamEventParams> {
19
+ }
20
+ export declare class RoomSessionRTStreamAPI extends BaseComponent<RoomSessionRTStreamEventsHandlerMapping> implements VideoStreamMethods {
21
+ private _payload;
22
+ constructor(options: RoomSessionRTStreamOptions);
23
+ get id(): string;
24
+ get roomId(): string;
25
+ get roomSessionId(): string;
26
+ get state(): "streaming" | "completed";
27
+ get duration(): number | undefined;
28
+ get url(): string | undefined;
29
+ get startedAt(): Date | undefined;
30
+ get endedAt(): Date | undefined;
31
+ /** @internal */
32
+ protected setPayload(payload: VideoStreamEventParams): void;
33
+ stop(): Promise<void>;
34
+ }
35
+ export declare const createRoomSessionRTStreamObject: (params: RoomSessionRTStreamOptions) => RoomSessionRTStream;
36
+ //# sourceMappingURL=RoomSessionRTStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomSessionRTStream.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/RoomSessionRTStream.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAE7B;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,UAAU,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,CAAA;CAClD;AAED,oBAAY,uCAAuC,GAAG,MAAM,CAC1D,qBAAqB,EACrB,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CACtC,CAAA;AAED,MAAM,WAAW,0BACf,SAAQ,+BAA+B,CACrC,uCAAuC,EACvC,sBAAsB,CACvB;CAAG;AAEN,qBAAa,sBACX,SAAQ,aAAa,CAAC,uCAAuC,CAC7D,YAAW,kBAAkB;IAE7B,OAAO,CAAC,QAAQ,CAAwB;gBAE5B,OAAO,EAAE,0BAA0B;IAM/C,IAAI,EAAE,WAEL;IAED,IAAI,MAAM,WAET;IAED,IAAI,aAAa,WAEhB;IAED,IAAI,KAAK,8BAER;IAED,IAAI,QAAQ,uBAEX;IAED,IAAI,GAAG,uBAEN;IAED,IAAI,SAAS,qBAKZ;IAED,IAAI,OAAO,qBAGV;IAED,gBAAgB;IAChB,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,sBAAsB;IAI9C,IAAI;CASX;AAED,eAAO,MAAM,+BAA+B,WAClC,0BAA0B,KACjC,mBAWF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RoomSessionRTStream.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomSessionRTStream.test.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/RoomSessionRTStream.test.ts"],"names":[],"mappings":""}
@@ -5,7 +5,11 @@ export interface BaseRoomInterface<EventTypes extends EventEmitter.ValidEventTyp
5
5
  memberId: string;
6
6
  }
7
7
  export * from './methods';
8
+ export * from './methodsRT';
8
9
  export * from './RoomSessionRecording';
10
+ export * from './RoomSessionRTRecording';
9
11
  export * from './RoomSessionPlayback';
12
+ export * from './RoomSessionRTPlayback';
10
13
  export * from './RoomSessionStream';
14
+ export * from './RoomSessionRTStream';
11
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AAEhD,MAAM,WAAW,iBAAiB,CAChC,UAAU,SAAS,YAAY,CAAC,eAAe,CAC/C,SAAQ,aAAa,CAAC,UAAU,CAAC;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,cAAc,WAAW,CAAA;AACzB,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/rooms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AAEhD,MAAM,WAAW,iBAAiB,CAChC,UAAU,SAAS,YAAY,CAAC,eAAe,CAC/C,SAAQ,aAAa,CAAC,UAAU,CAAC;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * `methods.ts` -> Uses old event emitter - being used in browser SDK
3
+ * `methodsRT.ts` -> Uses new event emitter - being used in realtime SDK
4
+ *
5
+ * Once we start using the new event emitter in browser sdk
6
+ * The functions that are written in `methodsRT.ts` should be removed from the `methods.ts`
7
+ * We will also need to delete one of the files and rename new functions/types
8
+ */
9
+ import { BaseRoomInterface, RoomSessionRTPlayback, RoomSessionRTRecording, RoomSessionRTStream } from '.';
10
+ import { VideoPosition } from '../types';
11
+ declare type RoomMethodParams = Record<string, unknown>;
12
+ interface RoomMethodPropertyDescriptor<OutputType, ParamsType> extends PropertyDescriptor {
13
+ value: (params: ParamsType) => Promise<OutputType>;
14
+ }
15
+ declare type RoomMethodDescriptor<OutputType = unknown, ParamsType = RoomMethodParams> = RoomMethodPropertyDescriptor<OutputType, ParamsType> & ThisType<BaseRoomInterface<string>>;
16
+ /**
17
+ * Room Methods
18
+ */
19
+ export declare type PlayRTParams = {
20
+ url: string;
21
+ volume?: number;
22
+ positions?: Record<string, VideoPosition>;
23
+ layout?: string;
24
+ seekPosition?: number;
25
+ /**
26
+ * @deprecated Use {@link seekPosition} instead.
27
+ * `currentTimecode` will be removed in v4.0.0
28
+ */
29
+ currentTimecode?: number;
30
+ };
31
+ export interface PlayRTOutput {
32
+ playback: RoomSessionRTPlayback;
33
+ }
34
+ export declare const playRT: RoomMethodDescriptor<RoomSessionRTPlayback, PlayRTParams>;
35
+ export interface GetRTPlaybacksOutput {
36
+ playbacks: RoomSessionRTPlayback[];
37
+ }
38
+ export declare const getRTPlaybacks: RoomMethodDescriptor<GetRTPlaybacksOutput>;
39
+ export interface StartRTRecordingOutput {
40
+ recording: RoomSessionRTRecording;
41
+ }
42
+ export declare const startRTRecording: RoomMethodDescriptor<RoomSessionRTRecording>;
43
+ export interface GetRTRecordingsOutput {
44
+ recordings: RoomSessionRTRecording[];
45
+ }
46
+ export declare const getRTRecordings: RoomMethodDescriptor<GetRTRecordingsOutput>;
47
+ export interface StartRTStreamParams {
48
+ url: string;
49
+ }
50
+ export interface StartRTStreamOutput {
51
+ stream: RoomSessionRTStream;
52
+ }
53
+ export declare const startRTStream: RoomMethodDescriptor<StartRTStreamOutput, StartRTStreamParams>;
54
+ export interface GetRTStreamsOutput {
55
+ streams: RoomSessionRTStream[];
56
+ }
57
+ export declare const getRTStreams: RoomMethodDescriptor<GetRTStreamsOutput>;
58
+ export declare type GetRTPlaybacks = ReturnType<typeof getRTPlaybacks.value>;
59
+ export declare type PlayRT = ReturnType<typeof playRT.value>;
60
+ export declare type GetRTRecordings = ReturnType<typeof getRTRecordings.value>;
61
+ export declare type StartRTRecording = ReturnType<typeof startRTRecording.value>;
62
+ export declare type GetRTStreams = ReturnType<typeof getRTStreams.value>;
63
+ export declare type StartRTStream = ReturnType<typeof startRTStream.value>;
64
+ export {};
65
+ //# sourceMappingURL=methodsRT.d.ts.map