trtc-sdk-v5 5.5.1-beta.1 → 5.5.1-beta.2

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/index.d.ts CHANGED
@@ -304,11 +304,13 @@
304
304
  'CDNStreaming': CDNStreamingOptions;
305
305
  'VirtualBackground': VirtualBackgroundOptions;
306
306
  'Watermark': WatermarkOptions;
307
+ 'Beauty': BeautyOptions;
307
308
  };
308
309
  declare type PluginUpdateOptionsMap = {
309
310
  'AudioMixer': UpdateAudioMixerOptions;
310
311
  'CDNStreaming': CDNStreamingOptions;
311
312
  'VirtualBackground': UpdateVirtualBackgroundOptions;
313
+ 'Beauty': UpdateBeautyOptions;
312
314
  };
313
315
  declare type PluginStopOptionsMap = {
314
316
  'AudioMixer': StopAudioMixerOptions;
@@ -316,6 +318,7 @@
316
318
  'CDNStreaming': CDNStreamingOptions;
317
319
  'VirtualBackground': undefined;
318
320
  'Watermark': undefined;
321
+ 'Beauty': undefined;
319
322
  };
320
323
  declare interface TRTCStatistics {
321
324
  rtt: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.5.1-beta.1",
3
+ "version": "5.5.1-beta.2",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",
@@ -4,6 +4,12 @@ export interface AuthParam {
4
4
  userSig: string;
5
5
  }
6
6
 
7
+ export interface Effect {
8
+ id: string;
9
+ intensity?: number;
10
+ filterIntensity?: number;
11
+ }
12
+
7
13
  export interface BeautyOptions {
8
14
  sdkAppId: number;
9
15
  userId: string;
@@ -14,6 +20,7 @@ export interface BeautyOptions {
14
20
  shave?: number;
15
21
  eye?: number;
16
22
  chin?: number;
23
+ effect?: Effect[];
17
24
  onError?: () => {}
18
25
  }
19
26
 
@@ -25,6 +32,7 @@ export interface UpdateBeautyOptions {
25
32
  shave?: number;
26
33
  eye?: number;
27
34
  chin?: number;
35
+ effect?: Effect[];
28
36
  }
29
37
 
30
38
  export declare class Beauty {