@ylink-sdk/meeting 0.8.0-beta.2 → 0.8.0-beta.21

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/meeting.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  import { Canceler } from '@ylink-sdk/shared/src';
4
4
  import { Emitter } from '@ylink-sdk/shared/src';
5
5
  import { EventType } from '@ylink-sdk/shared/src';
6
- import { EventType as EventType_2 } from '@ylink-sdk/shared';
7
6
  import { ICancelToken } from '@ylink-sdk/shared/src';
8
7
  import { Request as Request_2 } from '@ylink-sdk/shared/src';
9
8
  import { RequestError } from '@ylink-sdk/shared/src';
@@ -116,12 +115,42 @@ export declare interface audioStats {
116
115
  packetlost: number;
117
116
  }
118
117
 
119
- declare interface BarrageRecord {
118
+ export declare interface BarrageRecord {
119
+ index: number;
120
120
  id: string;
121
121
  content: string;
122
122
  time: number;
123
123
  durationType: string;
124
124
  duration: number;
125
+ timestamp: number;
126
+ }
127
+
128
+ export declare interface BarrageWord {
129
+ index: number;
130
+ backgroundColor?: string;
131
+ content?: string;
132
+ contentType?: string;
133
+ duration?: number;
134
+ fontColor?: string;
135
+ fontSize?: number;
136
+ position?: string;
137
+ durationType?: string;
138
+ receiver?: {
139
+ host: boolean;
140
+ attendee: boolean;
141
+ audience: boolean;
142
+ designated: boolean;
143
+ };
144
+ designatedUsers?: DesignatedUsers[];
145
+ type?: string;
146
+ timestamp?: string;
147
+ timer?: NodeJS.Timeout | null;
148
+ timerMap?: Record<number, NodeJS.Timeout | null>;
149
+ }
150
+
151
+ declare interface BroadcastLayout {
152
+ mode: string;
153
+ layout: unknown;
125
154
  }
126
155
 
127
156
  /**
@@ -145,6 +174,9 @@ export declare interface CallRecordUser {
145
174
  subjectID?: string;
146
175
  deviceID?: string;
147
176
  };
177
+ secretLevel?: number;
178
+ smDeviceSecretLevel?: number;
179
+ smDeviceName?: string;
148
180
  }
149
181
 
150
182
  export declare class Chat extends Module<ChatData, Events_16> {
@@ -342,6 +374,10 @@ export declare interface Context {
342
374
  * 鉴权
343
375
  */
344
376
  credential: string;
377
+ /**
378
+ * 会议多活区域归属地
379
+ */
380
+ multiActiveRegion: string;
345
381
  };
346
382
  };
347
383
  /**
@@ -428,7 +464,7 @@ export declare interface DefaultLiveStreamingConfig {
428
464
  defaultAddrRandom: boolean;
429
465
  }
430
466
 
431
- declare interface DesignatedUsers {
467
+ export declare interface DesignatedUsers {
432
468
  subjectID: string;
433
469
  userID: number;
434
470
  }
@@ -512,7 +548,11 @@ export declare enum ENDPOINT_TYPE {
512
548
  /**
513
549
  * 网真设备
514
550
  */
515
- TELE_PRESENCE = "telePresence"
551
+ TELE_PRESENCE = "telePresence",
552
+ /**
553
+ * RTSP终端(rtsp接入)
554
+ */
555
+ RTSP_Access = "rtspAccess"
516
556
  }
517
557
 
518
558
  /**
@@ -604,14 +644,19 @@ declare type Events = {
604
644
  presetLayout: any;
605
645
  liveStreaming: any;
606
646
  remoteDesktop: any;
647
+ rtspAccess: any;
648
+ topMC: any;
607
649
  };
608
650
 
609
651
  declare type Events_10 = {
610
652
  callRecordUsersChange: CallRecordUser[];
611
653
  };
612
654
 
613
- declare type Events_11 = Record<EventType_2, any> & {
655
+ declare type Events_11 = Record<EventType, any> & {
614
656
  liveStreamsChange: Live[];
657
+ liveStreamsDelete: Live[];
658
+ liveStreamsAdd: Live[];
659
+ liveStreamsUpdate: Live[];
615
660
  };
616
661
 
617
662
  declare type Events_12 = Record<EventType, any> & {
@@ -632,6 +677,7 @@ declare type Events_14 = {
632
677
 
633
678
  declare type Events_15 = {
634
679
  barrageRecordChange: BarrageRecord[];
680
+ barrageWordChange: WordsData;
635
681
  };
636
682
 
637
683
  declare type Events_16 = {
@@ -688,6 +734,10 @@ declare type Events_2 = {
688
734
  [MeEvent.BARRAGECHANGE]: MeData['barrage'] | null;
689
735
  [MeEvent.PERSONALLAYOUTCHANGE]: MeData['personalLayout'];
690
736
  [MeEvent.PERMCHANGE]: number;
737
+ [MeEvent.TOPMCCHANGE]: {
738
+ topMC: string;
739
+ topMCSeq: number;
740
+ };
691
741
  [MeEvent.LEAVE]: any;
692
742
  };
693
743
 
@@ -716,6 +766,18 @@ declare type Events_23 = {
716
766
  remoteDesktopChange: RemoteDesktopBody;
717
767
  };
718
768
 
769
+ declare type Events_24 = {
770
+ accessListChange: RTSPAccess[];
771
+ defaultResolutionChange: string;
772
+ defaultLayoutChange: {
773
+ mode?: string;
774
+ type?: string;
775
+ layout?: LayoutContent;
776
+ layoutType?: string;
777
+ };
778
+ rtspAccessChange: RTSPData;
779
+ };
780
+
719
781
  declare type Events_3 = Record<EventType, any>;
720
782
 
721
783
  declare type Events_4 = Record<EventType, any>;
@@ -949,6 +1011,26 @@ export declare class Info extends Module<InfoData, Events_3> {
949
1011
  subjectIDs: string[];
950
1012
  meetingNum: string;
951
1013
  }): Promise<any>;
1014
+ /**
1015
+ * 发送会议邀请邮件
1016
+ * @param params
1017
+ * @returns
1018
+ */
1019
+ sendInvitationMail(params: {
1020
+ meetingNum: string;
1021
+ language: string;
1022
+ subject: string;
1023
+ receivers: string[];
1024
+ }): Promise<any>;
1025
+ /**
1026
+ * 会议邀请邮件(UC)
1027
+ * @param params
1028
+ * @returns
1029
+ */
1030
+ getMailTemplate(meetingNum: string, params: {
1031
+ language: string;
1032
+ withFormat: boolean;
1033
+ }): Promise<any>;
952
1034
  }
953
1035
 
954
1036
  export declare interface InfoData {
@@ -959,7 +1041,7 @@ export declare interface InfoData {
959
1041
  consentToRecord: boolean;
960
1042
  createType: 'vmr' | 'scheduled' | 'meetNow';
961
1043
  eid: string;
962
- meetingType: 'meeting' | 'webinar';
1044
+ meetingType: 'meeting' | 'webinar' | 'audio';
963
1045
  organizer: {
964
1046
  displayName: string;
965
1047
  subjectID: string;
@@ -975,8 +1057,12 @@ export declare interface InfoData {
975
1057
  recordUserEnabled: boolean;
976
1058
  premiseRecordEnabled?: boolean;
977
1059
  liveStreamingPlatformList?: number[];
1060
+ digitalWatermarkEnabled: boolean;
1061
+ noUserMeetingKeepMinute: number;
1062
+ noUserMeetingKeepEnabled: boolean;
978
1063
  planID?: string;
979
1064
  vmrID?: string;
1065
+ allowRecord?: boolean;
980
1066
  allowLocalRecord?: boolean;
981
1067
  youtubeLiveStreamDisabled?: boolean;
982
1068
  allowLiveStream?: boolean;
@@ -999,6 +1085,7 @@ export declare interface InfoData {
999
1085
  isRecurrence?: boolean;
1000
1086
  thirdPartyLiveEnabled?: boolean;
1001
1087
  allowRTSP?: boolean;
1088
+ allowRTSPAccess?: boolean;
1002
1089
  maxBandwidth?: string;
1003
1090
  allowAudioRecord?: boolean;
1004
1091
  hostKeyEnabled?: boolean;
@@ -1006,6 +1093,8 @@ export declare interface InfoData {
1006
1093
  interactCooperationEnabled?: boolean;
1007
1094
  sessionID?: number;
1008
1095
  premiseBackupRecordEnabled?: boolean;
1096
+ secretLevel?: number;
1097
+ allowShare?: boolean;
1009
1098
  }
1010
1099
 
1011
1100
  export declare class Interpretation extends Module<InterpretationData, Events_20> {
@@ -1181,6 +1270,7 @@ export declare interface Layout {
1181
1270
  layout: LayoutContent;
1182
1271
  seq?: number;
1183
1272
  applyToAttendee?: boolean;
1273
+ autoSave?: boolean;
1184
1274
  }
1185
1275
 
1186
1276
  export declare interface LayoutContent {
@@ -1191,6 +1281,11 @@ export declare interface LayoutContent {
1191
1281
  hideNonVideo?: boolean;
1192
1282
  name?: string;
1193
1283
  pollCount?: number;
1284
+ pollDesignated?: {
1285
+ userID: number;
1286
+ subjectID: string;
1287
+ pollSeconds: number;
1288
+ }[];
1194
1289
  pollSeconds?: number;
1195
1290
  pictures?: Picture[];
1196
1291
  count?: number;
@@ -1223,10 +1318,11 @@ export declare interface Live {
1223
1318
  mode?: string;
1224
1319
  type?: string;
1225
1320
  layout?: LayoutContent;
1321
+ layoutType?: string;
1226
1322
  };
1227
1323
  liveCaptionEnabled?: boolean;
1228
1324
  platform?: string;
1229
- status: string;
1325
+ status?: string;
1230
1326
  watchURL?: string;
1231
1327
  requesting?: boolean;
1232
1328
  resultInfo?: ResultInfo;
@@ -1236,11 +1332,11 @@ export declare interface Live {
1236
1332
  isChange?: boolean;
1237
1333
  isTemplateSubmit?: boolean;
1238
1334
  template?: LayoutContent;
1239
- data?: LiveData;
1335
+ data: LiveData;
1240
1336
  thirdPartyLiveData?: ThirdPartyLiveData[];
1241
1337
  }
1242
1338
 
1243
- declare interface LiveData {
1339
+ export declare interface LiveData {
1244
1340
  index: number;
1245
1341
  title: string;
1246
1342
  liveUrl: string;
@@ -1476,6 +1572,7 @@ export declare interface MeData {
1476
1572
  crypto: string;
1477
1573
  meetingParam: string;
1478
1574
  topMC: string;
1575
+ topMCSeq: number;
1479
1576
  };
1480
1577
  audio?: MeMedia;
1481
1578
  video?: MeMedia;
@@ -1604,6 +1701,10 @@ export declare enum MeEvent {
1604
1701
  * 临时分配的权限变更
1605
1702
  */
1606
1703
  PERMCHANGE = "permChange",
1704
+ /**
1705
+ * TopMC 变更
1706
+ */
1707
+ TOPMCCHANGE = "mediaTopMCChange",
1607
1708
  /**
1608
1709
  * 离开会议
1609
1710
  */
@@ -1704,6 +1805,7 @@ export declare interface PresetLayout {
1704
1805
  isApplyToHost?: boolean;
1705
1806
  isApplyToAttendee?: boolean;
1706
1807
  isApplyToAudience?: boolean;
1808
+ isApplyToRecord?: boolean;
1707
1809
  }
1708
1810
 
1709
1811
  export declare interface PresetLayoutUpdate {
@@ -1933,6 +2035,7 @@ export declare interface RecordingData {
1933
2035
 
1934
2036
  export declare interface RecordingMap {
1935
2037
  status?: RecordingStatus;
2038
+ followAttendee?: boolean;
1936
2039
  layout: {
1937
2040
  layout?: LayoutContent;
1938
2041
  mode?: string;
@@ -2162,6 +2265,73 @@ export declare interface RollcallVideo {
2162
2265
  index: number;
2163
2266
  }
2164
2267
 
2268
+ export declare class RTSP extends Module<RTSPData, Events_24> {
2269
+ constructor(ctx: Context);
2270
+ _topic(): string[];
2271
+ _bindOn(): void;
2272
+ cleanup(): void;
2273
+ /**
2274
+ * 创建RTSP接入
2275
+ * @returns
2276
+ */
2277
+ createRTSPAccess(params: {
2278
+ resolution: string;
2279
+ mode: string;
2280
+ layout: {
2281
+ type: string;
2282
+ } | LayoutContent;
2283
+ }): Promise<any>;
2284
+ /**
2285
+ * 修改RTSP接入
2286
+ * @returns
2287
+ */
2288
+ setRTSPAccess(params: {
2289
+ index: number;
2290
+ resolution: string;
2291
+ mode: string;
2292
+ layout: {
2293
+ type: string;
2294
+ } | LayoutContent;
2295
+ }): Promise<any>;
2296
+ /**
2297
+ * 删除RTSP接入
2298
+ * @returns
2299
+ */
2300
+ deleteRTSPAccess(params: {
2301
+ index: number;
2302
+ }): Promise<any>;
2303
+ }
2304
+
2305
+ export declare interface RTSPAccess {
2306
+ index: number;
2307
+ urls: string[];
2308
+ resolution: string;
2309
+ layout: {
2310
+ mode?: string;
2311
+ type?: string;
2312
+ layout?: LayoutContent;
2313
+ layoutType?: string;
2314
+ };
2315
+ }
2316
+
2317
+ export declare type RTSPBody = RTSPData;
2318
+
2319
+ export declare type RTSPData = {
2320
+ accessList: RTSPAccess[];
2321
+ defaultResolution: string;
2322
+ defaultLayout: {
2323
+ mode?: string;
2324
+ type?: string;
2325
+ layout?: LayoutContent;
2326
+ layoutType?: string;
2327
+ };
2328
+ };
2329
+
2330
+ export declare interface RTSPPayload {
2331
+ body: RTSPBody;
2332
+ state: PollingPayloadState;
2333
+ }
2334
+
2165
2335
  export declare interface SetMedia {
2166
2336
  cred: string;
2167
2337
  sendOn: boolean;
@@ -2208,14 +2378,17 @@ export declare interface SettingData {
2208
2378
  onlyAuthUserCanJoin: boolean;
2209
2379
  onlyAuthUserCanJoinLock: boolean;
2210
2380
  allowRenameSelfLock: boolean;
2381
+ allowRemoteControlLock: boolean;
2211
2382
  allowRemoteControl: boolean;
2212
2383
  chatSetting: {
2213
2384
  attendeePermission: 'all' | 'public' | 'host' | 'disabled';
2214
2385
  audiencePermission: 'all' | 'public' | 'host' | 'disabled';
2215
2386
  allowAudienceViewHistory: boolean;
2387
+ enabled: boolean;
2216
2388
  };
2217
2389
  avcSetting: {
2218
2390
  showSiteIcon: boolean;
2391
+ showSiteIconLock: boolean;
2219
2392
  showSelfEnabled: boolean;
2220
2393
  speakerShowSelf: boolean;
2221
2394
  };
@@ -2358,12 +2531,13 @@ export declare class SpotlightVideo extends Module<SpotlightVideoData, Events_7>
2358
2531
  */
2359
2532
  spotlight(params: {
2360
2533
  userID: number;
2361
- action: 'add' | 'remove' | 'replace' | 'removeAll';
2534
+ action: 'add' | 'remove' | 'replace' | 'removeAll' | 'broadcast';
2362
2535
  }): Promise<any>;
2363
2536
  }
2364
2537
 
2365
2538
  export declare interface SpotlightVideoData {
2366
2539
  userIDs: number[];
2540
+ broadcast: BroadcastLayout | null;
2367
2541
  }
2368
2542
 
2369
2543
  /**
@@ -2586,6 +2760,22 @@ export declare interface User {
2586
2760
  * 所属组织名称
2587
2761
  */
2588
2762
  groupName?: Array<string>;
2763
+ /**
2764
+ * 邀请方式类型
2765
+ */
2766
+ inviteType?: string;
2767
+ /**
2768
+ * 【涉密版本独有】用户会议密级
2769
+ */
2770
+ secretLevel?: number;
2771
+ /**
2772
+ * 【涉密版本独有】参会设备最高参会密级
2773
+ */
2774
+ smDeviceSecretLevel?: number;
2775
+ /**
2776
+ * 【涉密版本独有】参会设备名称
2777
+ */
2778
+ smDeviceName?: string;
2589
2779
  }
2590
2780
 
2591
2781
  export declare interface UserInfo {
@@ -3460,29 +3650,16 @@ export declare class Words extends Module<WordsData, Events_15> {
3460
3650
  * @params 设置参数
3461
3651
  * @returns 返回的数据
3462
3652
  */
3463
- deleteBarrage(): Promise<any>;
3653
+ deleteBarrage(params?: {
3654
+ indexes: number[];
3655
+ }): Promise<any>;
3464
3656
  }
3465
3657
 
3466
- export declare interface WordsData {
3658
+ export declare type WordsData = {
3467
3659
  wordsDisplayStatus: boolean;
3468
- designatedUsers: DesignatedUsers[];
3469
3660
  barrageRecord: BarrageRecord[];
3470
- backgroundColor?: string;
3471
- content?: string;
3472
- contentType?: string;
3473
- duration?: number;
3474
- fontColor?: string;
3475
- fontSize?: number;
3476
- position?: string;
3477
- receiver?: {
3478
- host: boolean;
3479
- attendee: boolean;
3480
- audience: boolean;
3481
- designated: boolean;
3482
- };
3483
- type?: string;
3484
- timer?: NodeJS.Timeout | null;
3485
- }
3661
+ list: BarrageWord[];
3662
+ } & BarrageWord;
3486
3663
 
3487
3664
  /**
3488
3665
  * meeting实例
@@ -3610,6 +3787,10 @@ export declare interface YlinkSDKMeeting {
3610
3787
  * 远程控制
3611
3788
  */
3612
3789
  remoteDesktop?: RemoteDesktop;
3790
+ /**
3791
+ * RTSP 接入
3792
+ */
3793
+ rtsp?: RTSP;
3613
3794
  [props: string]: any;
3614
3795
  }
3615
3796