@stream-io/video-client 1.40.3 → 1.41.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/src/types.ts CHANGED
@@ -4,10 +4,14 @@ import type {
4
4
  VideoDimension,
5
5
  } from './gen/video/sfu/models/models';
6
6
  import type {
7
+ CallRecordingStartedEventRecordingTypeEnum,
7
8
  JoinCallRequest,
8
9
  MemberResponse,
9
10
  OwnCapability,
10
11
  ReactionResponse,
12
+ AudioSettingsRequestDefaultDeviceEnum,
13
+ StartRecordingRequest,
14
+ StartRecordingResponse,
11
15
  } from './gen/coordinator';
12
16
  import type { StreamClient } from './coordinator/connection/client';
13
17
  import type { Comparator } from './sorting';
@@ -330,6 +334,44 @@ export type CallConstructor = {
330
334
  clientStore: StreamVideoWriteableStateStore;
331
335
  };
332
336
 
337
+ export type CallRecordingType = CallRecordingStartedEventRecordingTypeEnum;
338
+ export type StartCallRecordingFnType = {
339
+ (): Promise<StartRecordingResponse>;
340
+ (type: CallRecordingType): Promise<StartRecordingResponse>;
341
+ (request: StartRecordingRequest): Promise<StartRecordingResponse>;
342
+ (
343
+ request: StartRecordingRequest,
344
+ type: CallRecordingType,
345
+ ): Promise<StartRecordingResponse>;
346
+ };
347
+
348
+ export type StreamRNVideoSDKGlobals = {
349
+ callManager: {
350
+ /**
351
+ * Sets up the in call manager.
352
+ */
353
+ setup({
354
+ default_device,
355
+ }: {
356
+ default_device: AudioSettingsRequestDefaultDeviceEnum;
357
+ }): void;
358
+
359
+ /**
360
+ * Starts the in call manager.
361
+ */
362
+ start(): void;
363
+
364
+ /**
365
+ * Stops the in call manager.
366
+ */
367
+ stop(): void;
368
+ };
369
+ };
370
+
371
+ declare global {
372
+ var streamRNVideoSDK: StreamRNVideoSDKGlobals | undefined;
373
+ }
374
+
333
375
  /**
334
376
  * The options to pass to {@link Call.join} method.
335
377
  */