@ylink-sdk/meeting 0.9.0-beta.1 → 0.9.0-beta.10

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
@@ -24,10 +24,18 @@ export declare class Asr extends Module<AsrData, Events_21> {
24
24
  transcriptStatus(params: {
25
25
  action: 'start' | 'stop';
26
26
  }): Promise<any>;
27
+ /**
28
+ * 修改翻译设置
29
+ * @returns
30
+ */
31
+ transcriptSetting(params: {
32
+ sourceChannel: string;
33
+ }): Promise<any>;
27
34
  }
28
35
 
29
36
  export declare interface AsrBody {
30
37
  status: 'starting' | 'started' | 'stopped';
38
+ sourceChannel: string;
31
39
  resultInfo?: ResultInfo;
32
40
  }
33
41
 
@@ -135,20 +143,74 @@ export declare interface BoBroadcastVoice {
135
143
 
136
144
  export declare interface BoHelp {
137
145
  bid: string;
138
- responderUserID: number;
146
+ requestorUserID: number;
147
+ responderUserID?: number;
139
148
  opReason?: BoHelpOpReason;
140
149
  }
141
150
 
151
+ export declare enum BoHelpAction {
152
+ Request = "request",
153
+ Cancel = "cancel",
154
+ Accept = "accept",
155
+ Refuse = "refuse"
156
+ }
157
+
142
158
  export declare enum BoHelpOpReason {
143
159
  Cancel = 1,
144
160
  Accept = 2,
145
161
  Refuse = 3
146
162
  }
147
163
 
164
+ export declare interface BoInfoData {
165
+ bid: string;
166
+ seq: number;
167
+ sessionID: number;
168
+ subject: string;
169
+ }
170
+
171
+ export declare interface BoSettingData {
172
+ audio: {
173
+ muteOnJoin: boolean;
174
+ allowUnmuteSelf: boolean;
175
+ speakingMode: string;
176
+ muteMode: number;
177
+ };
178
+ video: {
179
+ muteOnJoin: boolean;
180
+ allowUnmuteSelf: boolean;
181
+ };
182
+ share: {
183
+ sharePermission: string;
184
+ annotationPermission: string;
185
+ watermark: boolean;
186
+ showAnnotatorName: boolean;
187
+ designatedSubjectIDs: string[];
188
+ designatedUserIDs: string[];
189
+ designatedOn: boolean;
190
+ };
191
+ }
192
+
193
+ export declare enum BREAKOUT_ROOMS_STATE {
194
+ /**
195
+ * 未入会或退会
196
+ */
197
+ CLOSE = 0,
198
+ /**
199
+ * 已入会
200
+ */
201
+ JOINED = 1,
202
+ /**
203
+ * 一切就绪
204
+ */
205
+ READY = 2
206
+ }
207
+
148
208
  export declare class BreakoutRooms extends Module<BreakoutRoomsData, Events_24> {
149
209
  constructor(ctx: Context);
150
210
  _topic(): string;
151
211
  _bindOn(): void;
212
+ cleanup(): void;
213
+ cleanData(clearAll?: boolean): void;
152
214
  /**
153
215
  * 开始讨论组
154
216
  *
@@ -200,7 +262,7 @@ export declare class BreakoutRooms extends Module<BreakoutRoomsData, Events_24>
200
262
  * @param action
201
263
  * @returns
202
264
  */
203
- boHelp(action: 'request' | 'cancel' | 'accept' | 'refuse'): Promise<any>;
265
+ boHelp(action: BoHelpAction): Promise<any>;
204
266
  boBroadcastVoice(on: boolean): Promise<any>;
205
267
  boBroadcastMsg(msg: string): Promise<any>;
206
268
  }
@@ -217,7 +279,6 @@ export declare interface BreakoutRoomsData {
217
279
  /**
218
280
  * 请求帮助配置
219
281
  */
220
- requestForHelp?: BreakoutRoomsRequestForHelp;
221
282
  /**
222
283
  * 会前讨论组预设
223
284
  */
@@ -237,6 +298,14 @@ export declare interface BreakoutRoomsData {
237
298
  * 消息广播
238
299
  */
239
300
  boBroadcastMsg?: BoBroadcastMsg;
301
+ /**
302
+ * 讨论组信息
303
+ */
304
+ boInfo?: BoInfoData;
305
+ /**
306
+ * 讨论组设置
307
+ */
308
+ boSetting?: BoSettingData;
240
309
  }
241
310
 
242
311
  export declare interface BreakoutRoomsItem {
@@ -261,7 +330,7 @@ export declare interface BreakoutRoomsOptions {
261
330
  * 2 讨论组正在结束
262
331
  * 3 讨论组已结束
263
332
  */
264
- status: number;
333
+ status: BreakoutRoomStatus;
265
334
  /**
266
335
  * 讨论组序号
267
336
  */
@@ -321,6 +390,25 @@ export declare interface BreakoutRoomsRequestForHelp {
321
390
  bid: string;
322
391
  }
323
392
 
393
+ export declare enum BreakoutRoomStatus {
394
+ /**
395
+ * 未开始讨论组
396
+ */
397
+ NotStarted = 0,
398
+ /**
399
+ * 开启讨论组
400
+ */
401
+ Opened = 1,
402
+ /**
403
+ * 讨论组正在结束
404
+ */
405
+ Ending = 2,
406
+ /**
407
+ * 讨论组已结束
408
+ */
409
+ Ended = 3
410
+ }
411
+
324
412
  export declare interface BreakoutRoomsUser {
325
413
  /**
326
414
  * 成员ID
@@ -353,6 +441,9 @@ export declare interface CallRecordUser {
353
441
  subjectID?: string;
354
442
  deviceID?: string;
355
443
  };
444
+ secretLevel?: number;
445
+ smDeviceSecretLevel?: number;
446
+ smDeviceName?: string;
356
447
  }
357
448
 
358
449
  export declare class Chat extends Module<ChatData, Events_16> {
@@ -453,6 +544,14 @@ declare interface Config {
453
544
  * 创建的meeting实例为单例
454
545
  */
455
546
  singleton?: boolean;
547
+ /**
548
+ * 是否启用获取会议事件序号
549
+ */
550
+ eventsSeq?: boolean;
551
+ /**
552
+ * 需要过滤掉的会议主题
553
+ */
554
+ filterTopics?: string[];
456
555
  }
457
556
 
458
557
  /**
@@ -476,6 +575,14 @@ export declare interface Context {
476
575
  * 是否采用单例模式
477
576
  */
478
577
  singleton: boolean;
578
+ /**
579
+ * 是否启用获取会议事件序号
580
+ */
581
+ eventsSeq?: boolean;
582
+ /**
583
+ * 需要过滤掉的会议主题
584
+ */
585
+ filterTopics?: string[];
479
586
  /**
480
587
  * 请求配置
481
588
  */
@@ -522,6 +629,10 @@ export declare interface Context {
522
629
  * 设备ID
523
630
  */
524
631
  clientID: string;
632
+ /**
633
+ * 入会分组设备ID
634
+ */
635
+ boClientID: string;
525
636
  /**
526
637
  * 会议归属地
527
638
  */
@@ -558,6 +669,10 @@ export declare interface Context {
558
669
  * 鉴权
559
670
  */
560
671
  credential: string;
672
+ /**
673
+ * 会议多活区域归属地
674
+ */
675
+ multiActiveRegion: string;
561
676
  };
562
677
  };
563
678
  /**
@@ -580,6 +695,10 @@ export declare interface Context {
580
695
  * 会议状态
581
696
  */
582
697
  state: STATE;
698
+ /**
699
+ * 分组会议状态
700
+ */
701
+ breakoutRoomsState: BREAKOUT_ROOMS_STATE;
583
702
  /**
584
703
  * 轮询定时器状态
585
704
  */
@@ -592,6 +711,10 @@ export declare interface Context {
592
711
  * 保活轮询状态
593
712
  */
594
713
  keepalive: KeepaliveStatus;
714
+ /**
715
+ * 获取会议事件序号状态
716
+ */
717
+ eventsSeq: EventsSeqStatus;
595
718
  };
596
719
  cleanup: (reason?: Reason) => void;
597
720
  }
@@ -698,7 +821,11 @@ export declare enum ENDPOINT_TYPE {
698
821
  /**
699
822
  * 网真设备
700
823
  */
701
- TELE_PRESENCE = "telePresence"
824
+ TELE_PRESENCE = "telePresence",
825
+ /**
826
+ * RTSP终端(rtsp接入)
827
+ */
828
+ RTSP_Access = "rtspAccess"
702
829
  }
703
830
 
704
831
  /**
@@ -713,6 +840,10 @@ export declare enum EVENT {
713
840
  * 入会失败
714
841
  */
715
842
  FAILED = "failed",
843
+ /**
844
+ * 入会分组失败
845
+ */
846
+ BO_FAILED = "boFailed",
716
847
  /**
717
848
  * 请求异常
718
849
  */
@@ -724,7 +855,11 @@ export declare enum EVENT {
724
855
  /**
725
856
  * keepalive 接口异常
726
857
  */
727
- KEEPALIVE_ERROR = "keepaliveError"
858
+ KEEPALIVE_ERROR = "keepaliveError",
859
+ /**
860
+ * 分组讨论
861
+ */
862
+ BREAKOUT_ROOMS_STATE = "breakoutRoomsState"
728
863
  }
729
864
 
730
865
  /**
@@ -747,6 +882,8 @@ declare type Events = {
747
882
  [EVENT.KEEPALIVE_ERROR]: {
748
883
  message: string;
749
884
  };
885
+ [EVENT.BREAKOUT_ROOMS_STATE]: BREAKOUT_ROOMS_STATE;
886
+ [EVENT.BO_FAILED]: Reason;
750
887
  me: any;
751
888
  setUserVideo: any;
752
889
  setUserAudio: any;
@@ -790,6 +927,7 @@ declare type Events = {
790
927
  presetLayout: any;
791
928
  liveStreaming: any;
792
929
  remoteDesktop: any;
930
+ rtspAccess: any;
793
931
  userNotify: any;
794
932
  breakoutRooms: any;
795
933
  preAssignBoList: any;
@@ -798,6 +936,9 @@ declare type Events = {
798
936
  boHelp: any;
799
937
  boBroadcastVoice: any;
800
938
  boBroadcastMsg: any;
939
+ boInfo: any;
940
+ boSetting: any;
941
+ topMC: any;
801
942
  };
802
943
 
803
944
  declare type Events_10 = {
@@ -806,6 +947,9 @@ declare type Events_10 = {
806
947
 
807
948
  declare type Events_11 = Record<EventType, any> & {
808
949
  liveStreamsChange: Live[];
950
+ liveStreamsDelete: Live[];
951
+ liveStreamsAdd: Live[];
952
+ liveStreamsUpdate: Live[];
809
953
  };
810
954
 
811
955
  declare type Events_12 = Record<EventType, any> & {
@@ -866,7 +1010,7 @@ declare type Events_2 = {
866
1010
  [MeEvent.UPDATE]: any;
867
1011
  [MeEvent.UPDATE_USER_STATE]: {
868
1012
  data: MeData;
869
- event?: 'roleChange' | 'inLobbyChange';
1013
+ event?: UpdateUserStateEvent;
870
1014
  };
871
1015
  [MeEvent.ROLECHANGE]: ROLE;
872
1016
  [MeEvent.AUDIOCHANGE]: MeMedia;
@@ -882,8 +1026,13 @@ declare type Events_2 = {
882
1026
  [MeEvent.BARRAGECHANGE]: MeData['barrage'] | null;
883
1027
  [MeEvent.PERSONALLAYOUTCHANGE]: MeData['personalLayout'];
884
1028
  [MeEvent.PERMCHANGE]: number;
1029
+ [MeEvent.TRANSLATIONCHANNELCHANGE]: string;
1030
+ [MeEvent.TOPMCCHANGE]: {
1031
+ topMC: string;
1032
+ topMCSeq: number;
1033
+ };
885
1034
  [MeEvent.BOSWITCHNOTIFY]: {
886
- bid: number;
1035
+ bid: string;
887
1036
  };
888
1037
  [MeEvent.BORETURNMEETINGNOTIFY]: {
889
1038
  operatorUserID: number;
@@ -919,7 +1068,6 @@ declare type Events_23 = {
919
1068
  declare type Events_24 = {
920
1069
  breakoutRoomsOptionChange: BreakoutRoomsOptions;
921
1070
  breakoutRoomsItemsChange: BreakoutRoomsItem[];
922
- requestForHelpChange: BreakoutRoomsRequestForHelp | undefined;
923
1071
  preAssignBoListChange: {
924
1072
  option: BreakoutRoomsOptions;
925
1073
  items: PreAssignBoListItem[];
@@ -928,6 +1076,20 @@ declare type Events_24 = {
928
1076
  boHelpDelete: BoHelp;
929
1077
  boBroadcastVoiceChange: BoBroadcastVoice;
930
1078
  boBroadcastMsgChange: BoBroadcastMsg;
1079
+ boInfoChange: BoInfoData;
1080
+ boSettingChange: BoSettingData;
1081
+ };
1082
+
1083
+ declare type Events_25 = {
1084
+ accessListChange: RTSPAccess[];
1085
+ defaultResolutionChange: string;
1086
+ defaultLayoutChange: {
1087
+ mode?: string;
1088
+ type?: string;
1089
+ layout?: LayoutContent;
1090
+ layoutType?: string;
1091
+ };
1092
+ rtspAccessChange: RTSPData;
931
1093
  };
932
1094
 
933
1095
  declare type Events_3 = Record<EventType, any>;
@@ -951,6 +1113,10 @@ declare type Events_5 = {
951
1113
  users: User[];
952
1114
  isFull: boolean;
953
1115
  };
1116
+ boInteractiveUsersChange: {
1117
+ users: User[];
1118
+ isFull: boolean;
1119
+ };
954
1120
  interactiveUsersDelete: {
955
1121
  user: User;
956
1122
  resultInfo: User['resultInfo'];
@@ -967,6 +1133,10 @@ declare type Events_5 = {
967
1133
  user: User;
968
1134
  resultInfo: User['resultInfo'];
969
1135
  };
1136
+ boInteractiveUsersDelete: {
1137
+ user: User;
1138
+ resultInfo: User['resultInfo'];
1139
+ };
970
1140
  interactiveUsersUpdate: {
971
1141
  user: User;
972
1142
  };
@@ -979,6 +1149,9 @@ declare type Events_5 = {
979
1149
  advCtrlUsersUpdate: {
980
1150
  user: User;
981
1151
  };
1152
+ boInteractiveUsersUpdate: {
1153
+ user: User;
1154
+ };
982
1155
  interactiveUsersAdd: {
983
1156
  user: User;
984
1157
  resultInfo: User['resultInfo'];
@@ -996,6 +1169,10 @@ declare type Events_5 = {
996
1169
  resultInfo: User['resultInfo'];
997
1170
  };
998
1171
  userNotify: UserNotifyPayload['body'];
1172
+ boInteractiveUsersAdd: {
1173
+ user: User;
1174
+ resultInfo: User['resultInfo'];
1175
+ };
999
1176
  };
1000
1177
 
1001
1178
  declare type Events_6 = {
@@ -1017,6 +1194,21 @@ declare type Events_9 = {
1017
1194
  rollCallChange: RollCallData;
1018
1195
  } & Record<EventType, any>;
1019
1196
 
1197
+ export declare interface EventsSeqStatus {
1198
+ /**
1199
+ * 是否运行中
1200
+ */
1201
+ running: boolean;
1202
+ /**
1203
+ * 定时器
1204
+ */
1205
+ timer?: NodeJS.Timeout | null;
1206
+ /**
1207
+ * 轮询间隔时间,正常为20S
1208
+ */
1209
+ interval: number;
1210
+ }
1211
+
1020
1212
  export declare interface FocusUser {
1021
1213
  subjectID?: string;
1022
1214
  userID?: number;
@@ -1165,6 +1357,26 @@ export declare class Info extends Module<InfoData, Events_3> {
1165
1357
  subjectIDs: string[];
1166
1358
  meetingNum: string;
1167
1359
  }): Promise<any>;
1360
+ /**
1361
+ * 发送会议邀请邮件
1362
+ * @param params
1363
+ * @returns
1364
+ */
1365
+ sendInvitationMail(params: {
1366
+ meetingNum: string;
1367
+ language: string;
1368
+ subject: string;
1369
+ receivers: string[];
1370
+ }): Promise<any>;
1371
+ /**
1372
+ * 会议邀请邮件(UC)
1373
+ * @param params
1374
+ * @returns
1375
+ */
1376
+ getMailTemplate(meetingNum: string, params: {
1377
+ language: string;
1378
+ withFormat: boolean;
1379
+ }): Promise<any>;
1168
1380
  /**
1169
1381
  * 获取会议详细信息
1170
1382
  * @param params
@@ -1185,7 +1397,7 @@ export declare interface InfoData {
1185
1397
  consentToRecord: boolean;
1186
1398
  createType: 'vmr' | 'scheduled' | 'meetNow';
1187
1399
  eid: string;
1188
- meetingType: 'meeting' | 'webinar';
1400
+ meetingType: 'meeting' | 'webinar' | 'audio';
1189
1401
  organizer: {
1190
1402
  displayName: string;
1191
1403
  subjectID: string;
@@ -1200,8 +1412,13 @@ export declare interface InfoData {
1200
1412
  asrServiceAvailable: boolean;
1201
1413
  recordUserEnabled: boolean;
1202
1414
  premiseRecordEnabled?: boolean;
1415
+ liveStreamingPlatformList?: number[];
1416
+ digitalWatermarkEnabled: boolean;
1417
+ noUserMeetingKeepMinute: number;
1418
+ noUserMeetingKeepEnabled: boolean;
1203
1419
  planID?: string;
1204
1420
  vmrID?: string;
1421
+ allowRecord?: boolean;
1205
1422
  allowLocalRecord?: boolean;
1206
1423
  youtubeLiveStreamDisabled?: boolean;
1207
1424
  allowLiveStream?: boolean;
@@ -1216,6 +1433,7 @@ export declare interface InfoData {
1216
1433
  participantCount: {
1217
1434
  hostAttendee: number;
1218
1435
  audience: number;
1436
+ participantData: ParticipantData[];
1219
1437
  };
1220
1438
  multiStreamEnabled?: boolean;
1221
1439
  shouldJoinUserManageEnabled?: boolean;
@@ -1224,6 +1442,7 @@ export declare interface InfoData {
1224
1442
  isRecurrence?: boolean;
1225
1443
  thirdPartyLiveEnabled?: boolean;
1226
1444
  allowRTSP?: boolean;
1445
+ allowRTSPAccess?: boolean;
1227
1446
  maxBandwidth?: string;
1228
1447
  allowAudioRecord?: boolean;
1229
1448
  hostKeyEnabled?: boolean;
@@ -1231,6 +1450,12 @@ export declare interface InfoData {
1231
1450
  interactCooperationEnabled?: boolean;
1232
1451
  sessionID?: number;
1233
1452
  premiseBackupRecordEnabled?: boolean;
1453
+ secretLevel?: number;
1454
+ allowShare?: boolean;
1455
+ boEnabled?: boolean;
1456
+ maxBoItemsCount?: number;
1457
+ maxBoUsersCount?: number;
1458
+ endpointBackupMap?: Record<string, string>;
1234
1459
  }
1235
1460
 
1236
1461
  export declare class Interpretation extends Module<InterpretationData, Events_20> {
@@ -1398,6 +1623,11 @@ export declare interface JoinParams {
1398
1623
  * 主持人密钥
1399
1624
  */
1400
1625
  hostKey?: string;
1626
+ /**
1627
+ * 加密会议号密码
1628
+ * 特殊场景使用
1629
+ */
1630
+ tc?: string;
1401
1631
  }
1402
1632
 
1403
1633
  export declare interface KeepaliveStatus {
@@ -1429,6 +1659,7 @@ export declare interface Layout {
1429
1659
  layout: LayoutContent;
1430
1660
  seq?: number;
1431
1661
  applyToAttendee?: boolean;
1662
+ autoSave?: boolean;
1432
1663
  }
1433
1664
 
1434
1665
  export declare interface LayoutContent {
@@ -1439,6 +1670,11 @@ export declare interface LayoutContent {
1439
1670
  hideNonVideo?: boolean;
1440
1671
  name?: string;
1441
1672
  pollCount?: number;
1673
+ pollDesignated?: {
1674
+ userID: number;
1675
+ subjectID: string;
1676
+ pollSeconds: number;
1677
+ }[];
1442
1678
  pollSeconds?: number;
1443
1679
  pictures?: Picture[];
1444
1680
  count?: number;
@@ -1471,6 +1707,7 @@ export declare interface Live {
1471
1707
  mode?: string;
1472
1708
  type?: string;
1473
1709
  layout?: LayoutContent;
1710
+ layoutType?: string;
1474
1711
  };
1475
1712
  liveCaptionEnabled?: boolean;
1476
1713
  platform?: string;
@@ -1481,7 +1718,22 @@ export declare interface Live {
1481
1718
  bizCode?: string;
1482
1719
  watchPassword?: string;
1483
1720
  userID?: string;
1721
+ isChange?: boolean;
1722
+ isTemplateSubmit?: boolean;
1723
+ template?: LayoutContent;
1724
+ data?: LiveData;
1484
1725
  thirdPartyLiveData?: ThirdPartyLiveData[];
1726
+ translationChannel?: string;
1727
+ showBilingualEnabled?: boolean;
1728
+ }
1729
+
1730
+ export declare interface LiveData {
1731
+ index: number;
1732
+ title: string;
1733
+ liveUrl: string;
1734
+ shareUrl?: string;
1735
+ pushUrlPc?: string;
1736
+ pushUrlMobile?: string;
1485
1737
  }
1486
1738
 
1487
1739
  export declare class LiveStream extends Module<LiveStreamData, Events_11> {
@@ -1516,7 +1768,18 @@ export declare class LiveStream extends Module<LiveStreamData, Events_11> {
1516
1768
  type: string;
1517
1769
  };
1518
1770
  liveCaptionEnabled: boolean;
1519
- watchPassword: string;
1771
+ watchPassword?: string;
1772
+ translationChannel?: string;
1773
+ showBilingualEnabled?: boolean;
1774
+ }): Promise<any>;
1775
+ /**
1776
+ * 第三方直播删除
1777
+ * @params 设置参数
1778
+ * @returns 返回的数据
1779
+ */
1780
+ liveStreamDelete(params: {
1781
+ index: number;
1782
+ platform: string;
1520
1783
  }): Promise<any>;
1521
1784
  /**
1522
1785
  * 设置直播布局
@@ -1550,6 +1813,12 @@ export declare class LiveStream extends Module<LiveStreamData, Events_11> {
1550
1813
 
1551
1814
  export declare interface LiveStreamData {
1552
1815
  liveStreams: Live[];
1816
+ defaultLayout: {
1817
+ mode: string;
1818
+ layout: {
1819
+ type: string;
1820
+ };
1821
+ };
1553
1822
  status: Status[];
1554
1823
  resultInfo: ResultInfo;
1555
1824
  stime: number;
@@ -1645,6 +1914,7 @@ export declare class Me extends Module<MeData, Events_2> {
1645
1914
  constructor(ctx: Context);
1646
1915
  _topic(): string;
1647
1916
  _bindOn(): void;
1917
+ notifyUpdateUserState(event: UpdateUserStateEvent): void;
1648
1918
  /**
1649
1919
  * 上报客户端音视频状态
1650
1920
  * @param params
@@ -1663,7 +1933,7 @@ export declare class Me extends Module<MeData, Events_2> {
1663
1933
  * @param isForce
1664
1934
  * @returns
1665
1935
  */
1666
- boUpdateUserState(bid: number, params: {
1936
+ boUpdateUserState(bid: string, params: {
1667
1937
  audio: Partial<MediaState>;
1668
1938
  video: Partial<MediaState>;
1669
1939
  share?: Partial<MediaState>;
@@ -1706,14 +1976,10 @@ export declare interface MeData {
1706
1976
  audio: MediaState;
1707
1977
  video: MediaState;
1708
1978
  };
1979
+ bid?: string;
1709
1980
  account?: string;
1710
- mediaContent?: {
1711
- accessMCs: Array<string>;
1712
- addrType: number;
1713
- crypto: string;
1714
- meetingParam: string;
1715
- topMC: string;
1716
- };
1981
+ mediaContent?: MediaContent;
1982
+ boMediaContent?: MediaContent;
1717
1983
  audio?: MeMedia;
1718
1984
  video?: MeMedia;
1719
1985
  share?: MeMedia;
@@ -1738,6 +2004,16 @@ export declare interface MeData {
1738
2004
  };
1739
2005
  };
1740
2006
  avatarURL?: string;
2007
+ translationChannel?: string;
2008
+ }
2009
+
2010
+ declare interface MediaContent {
2011
+ accessMCs: Array<string>;
2012
+ addrType: number;
2013
+ crypto: string;
2014
+ meetingParam: string;
2015
+ topMC: string;
2016
+ topMCSeq: number;
1741
2017
  }
1742
2018
 
1743
2019
  /**
@@ -1850,15 +2126,24 @@ export declare enum MeEvent {
1850
2126
  * 主持人将讨论组成员移动至主会场
1851
2127
  */
1852
2128
  BORETURNMEETINGNOTIFY = "boReturnMeetingNotify",
2129
+ /**
2130
+ * TopMC 变更
2131
+ */
2132
+ TOPMCCHANGE = "mediaTopMCChange",
2133
+ /**
2134
+ * 翻译语种变更
2135
+ */
2136
+ TRANSLATIONCHANNELCHANGE = "translationChannelChange",
1853
2137
  /**
1854
2138
  * 离开会议
1855
2139
  */
1856
2140
  LEAVE = "leave"
1857
2141
  }
1858
2142
 
1859
- declare type MeMedia = MediaState & {
2143
+ export declare type MeMedia = MediaState & {
1860
2144
  opBy?: number;
1861
2145
  changeData?: MediaState;
2146
+ oldData?: MediaState;
1862
2147
  shareCoopType?: string;
1863
2148
  };
1864
2149
 
@@ -1874,6 +2159,7 @@ declare abstract class Module<T extends object, E extends Record<EventType, unkn
1874
2159
  * 数据清理
1875
2160
  */
1876
2161
  cleanup(): void;
2162
+ cleanData(): void;
1877
2163
  /**
1878
2164
  * 关联外部响应式数据
1879
2165
  * @param obj
@@ -1909,6 +2195,12 @@ declare interface MsgSender {
1909
2195
  userID: number;
1910
2196
  }
1911
2197
 
2198
+ export declare interface ParticipantData {
2199
+ count: number;
2200
+ meetingID?: string;
2201
+ bid?: string;
2202
+ }
2203
+
1912
2204
  export declare interface PersonalLayout {
1913
2205
  mode: 'custom' | 'basic';
1914
2206
  layouts: LayoutContent[];
@@ -1965,9 +2257,7 @@ export declare interface PollListUser {
1965
2257
 
1966
2258
  export declare interface PreAssignBoListItem {
1967
2259
  subject: string;
1968
- subjectIDs: {
1969
- subjectID: string;
1970
- }[];
2260
+ subjectIDs: string[];
1971
2261
  }
1972
2262
 
1973
2263
  export declare interface PresetLayout {
@@ -1979,6 +2269,7 @@ export declare interface PresetLayout {
1979
2269
  isApplyToHost?: boolean;
1980
2270
  isApplyToAttendee?: boolean;
1981
2271
  isApplyToAudience?: boolean;
2272
+ isApplyToRecord?: boolean;
1982
2273
  }
1983
2274
 
1984
2275
  export declare interface PresetLayoutUpdate {
@@ -2002,6 +2293,7 @@ export declare class Qa extends Module<QaData, Events_18> {
2002
2293
  _topic(): string;
2003
2294
  _bindOn(): void;
2004
2295
  cleanup(): void;
2296
+ cleanData(): void;
2005
2297
  qaUpdate(questions: Map<string, Question>, data: any): void;
2006
2298
  createQuestion(data: Question): {
2007
2299
  isAnonymous: boolean;
@@ -2216,6 +2508,7 @@ export declare interface RecordingData {
2216
2508
 
2217
2509
  export declare interface RecordingMap {
2218
2510
  status?: RecordingStatus;
2511
+ followAttendee?: boolean;
2219
2512
  layout: {
2220
2513
  layout?: LayoutContent;
2221
2514
  mode?: string;
@@ -2445,6 +2738,73 @@ export declare interface RollcallVideo {
2445
2738
  index: number;
2446
2739
  }
2447
2740
 
2741
+ export declare class RTSP extends Module<RTSPData, Events_25> {
2742
+ constructor(ctx: Context);
2743
+ _topic(): string[];
2744
+ _bindOn(): void;
2745
+ cleanup(): void;
2746
+ /**
2747
+ * 创建RTSP接入
2748
+ * @returns
2749
+ */
2750
+ createRTSPAccess(params: {
2751
+ resolution: string;
2752
+ mode: string;
2753
+ layout: {
2754
+ type: string;
2755
+ } | LayoutContent;
2756
+ }): Promise<any>;
2757
+ /**
2758
+ * 修改RTSP接入
2759
+ * @returns
2760
+ */
2761
+ setRTSPAccess(params: {
2762
+ index: number;
2763
+ resolution: string;
2764
+ mode: string;
2765
+ layout: {
2766
+ type: string;
2767
+ } | LayoutContent;
2768
+ }): Promise<any>;
2769
+ /**
2770
+ * 删除RTSP接入
2771
+ * @returns
2772
+ */
2773
+ deleteRTSPAccess(params: {
2774
+ index: number;
2775
+ }): Promise<any>;
2776
+ }
2777
+
2778
+ export declare interface RTSPAccess {
2779
+ index: number;
2780
+ urls: string[];
2781
+ resolution: string;
2782
+ layout: {
2783
+ mode?: string;
2784
+ type?: string;
2785
+ layout?: LayoutContent;
2786
+ layoutType?: string;
2787
+ };
2788
+ }
2789
+
2790
+ export declare type RTSPBody = RTSPData;
2791
+
2792
+ export declare type RTSPData = {
2793
+ accessList: RTSPAccess[];
2794
+ defaultResolution: string;
2795
+ defaultLayout: {
2796
+ mode?: string;
2797
+ type?: string;
2798
+ layout?: LayoutContent;
2799
+ layoutType?: string;
2800
+ };
2801
+ };
2802
+
2803
+ export declare interface RTSPPayload {
2804
+ body: RTSPBody;
2805
+ state: PollingPayloadState;
2806
+ }
2807
+
2448
2808
  export declare interface SetMedia {
2449
2809
  cred: string;
2450
2810
  sendOn: boolean;
@@ -2470,12 +2830,14 @@ export declare class Setting extends Module<SettingData, Events_4> {
2470
2830
  setting(params: any): Promise<any>;
2471
2831
  /**
2472
2832
  * 全体静音
2473
- * @returns
2833
+ * @params 设置参数
2834
+ * @returns 返回的数据
2474
2835
  */
2475
2836
  muteAll(): Promise<any>;
2476
2837
  /**
2477
2838
  * 全体解除静音
2478
- * @returns
2839
+ * @params 设置参数
2840
+ * @returns 返回的数据
2479
2841
  */
2480
2842
  unmuteAll(): Promise<any>;
2481
2843
  /**
@@ -2485,7 +2847,7 @@ export declare class Setting extends Module<SettingData, Events_4> {
2485
2847
  * @param bid 分组ID
2486
2848
  * @returns
2487
2849
  */
2488
- boMuteAll(bid: number): Promise<any>;
2850
+ boMuteAll(bid: string): Promise<any>;
2489
2851
  /**
2490
2852
  * 分组议全体解禁言
2491
2853
  *
@@ -2493,7 +2855,7 @@ export declare class Setting extends Module<SettingData, Events_4> {
2493
2855
  * @param bid 分组ID
2494
2856
  * @returns
2495
2857
  */
2496
- boUnmuteAll(bid: number): Promise<any>;
2858
+ boUnmuteAll(bid: string): Promise<any>;
2497
2859
  }
2498
2860
 
2499
2861
  export declare interface SettingData {
@@ -2503,6 +2865,7 @@ export declare interface SettingData {
2503
2865
  allowRenameSelf: boolean;
2504
2866
  showAvatar: boolean;
2505
2867
  onlyAuthUserCanJoin: boolean;
2868
+ onlyAuthUserCanJoinLock: boolean;
2506
2869
  allowRenameSelfLock: boolean;
2507
2870
  allowRemoteControl: boolean;
2508
2871
  allowRemoteControlLock: boolean;
@@ -2510,9 +2873,11 @@ export declare interface SettingData {
2510
2873
  attendeePermission: 'all' | 'public' | 'host' | 'disabled';
2511
2874
  audiencePermission: 'all' | 'public' | 'host' | 'disabled';
2512
2875
  allowAudienceViewHistory: boolean;
2876
+ enabled: boolean;
2513
2877
  };
2514
2878
  avcSetting: {
2515
2879
  showSiteIcon: boolean;
2880
+ showSiteIconLock: boolean;
2516
2881
  showSelfEnabled: boolean;
2517
2882
  speakerShowSelf: boolean;
2518
2883
  };
@@ -2557,6 +2922,7 @@ export declare interface SettingData {
2557
2922
  };
2558
2923
  aiFaceSetting: {
2559
2924
  enabled: boolean;
2925
+ showMode: number;
2560
2926
  };
2561
2927
  siteNameSetting: {
2562
2928
  backgroundColor: number;
@@ -2569,11 +2935,15 @@ export declare interface SettingData {
2569
2935
  };
2570
2936
  asrSetting: {
2571
2937
  allowViewTranscriptHistory: boolean;
2938
+ asrDeductMode?: number;
2939
+ sourceChannels?: string[];
2940
+ translationChannels?: string[];
2572
2941
  };
2573
2942
  watermarkSetting: {
2574
2943
  enabled: boolean;
2575
2944
  transparency: number;
2576
2945
  fontSize: number;
2946
+ forceLock: boolean;
2577
2947
  };
2578
2948
  audienceSetting: {
2579
2949
  allowRenameSelf: boolean;
@@ -2683,6 +3053,7 @@ export declare enum STATE {
2683
3053
  declare interface Status {
2684
3054
  platform: string;
2685
3055
  status: string;
3056
+ index?: number;
2686
3057
  }
2687
3058
 
2688
3059
  declare interface Status_2 {
@@ -2711,6 +3082,7 @@ export declare class Transcript extends Module<TranscriptData, Events_19> {
2711
3082
  _topic(): string[];
2712
3083
  _bindOn(): void;
2713
3084
  cleanup(): void;
3085
+ cleanData(): void;
2714
3086
  /**
2715
3087
  * 查询转写历史信息
2716
3088
  * @returns
@@ -2732,6 +3104,8 @@ export declare interface Transcription {
2732
3104
  endpointType?: ENDPOINT_TYPE;
2733
3105
  };
2734
3106
  sentenceID: string;
3107
+ sentenceMsgID: number;
3108
+ translations: Translation[];
2735
3109
  }
2736
3110
 
2737
3111
  export declare interface TranscriptPayload {
@@ -2739,6 +3113,14 @@ export declare interface TranscriptPayload {
2739
3113
  state: PollingPayloadState;
2740
3114
  }
2741
3115
 
3116
+ export declare interface Translation {
3117
+ channel: string;
3118
+ channelID: number;
3119
+ content: string;
3120
+ }
3121
+
3122
+ declare type UpdateUserStateEvent = 'roleChange' | 'inLobbyChange' | 'bo';
3123
+
2742
3124
  /**
2743
3125
  * User 数据
2744
3126
  */
@@ -2784,6 +3166,8 @@ export declare interface User {
2784
3166
  annotation?: string;
2785
3167
  resolution?: string;
2786
3168
  speakerModeOn?: boolean;
3169
+ shareToBo?: boolean;
3170
+ coopServerID?: number;
2787
3171
  };
2788
3172
  /**
2789
3173
  * 协作能力 观众无此能力
@@ -2897,6 +3281,26 @@ export declare interface User {
2897
3281
  * 分组成员状态
2898
3282
  */
2899
3283
  rosterStatus?: number;
3284
+ /**
3285
+ * 邀请方式类型
3286
+ */
3287
+ inviteType?: string;
3288
+ /**
3289
+ * 翻译语种
3290
+ */
3291
+ translationChannel?: string;
3292
+ /**
3293
+ * 【涉密版本独有】用户会议密级
3294
+ */
3295
+ secretLevel?: number;
3296
+ /**
3297
+ * 【涉密版本独有】参会设备最高参会密级
3298
+ */
3299
+ smDeviceSecretLevel?: number;
3300
+ /**
3301
+ * 【涉密版本独有】参会设备名称
3302
+ */
3303
+ smDeviceName?: string;
2900
3304
  }
2901
3305
 
2902
3306
  export declare interface UserInfo {
@@ -2970,6 +3374,7 @@ export declare class Users extends Module<UsersData, Events_5> {
2970
3374
  */
2971
3375
  reactiveData(obj: Record<any, any>): UsersData & ReactiveReturn;
2972
3376
  cleanup(): void;
3377
+ cleanData(): void;
2973
3378
  getUserByUserID(userID: number): User | undefined;
2974
3379
  /**
2975
3380
  * 更新 - 补充用户信息:
@@ -3305,17 +3710,33 @@ export declare class Users extends Module<UsersData, Events_5> {
3305
3710
  claimHost(params: {
3306
3711
  hostKey: string;
3307
3712
  }): Promise<any>;
3713
+ /**
3714
+ * 拒绝操作通知
3715
+ * @param userID
3716
+ * @param params
3717
+ * @returns
3718
+ */
3308
3719
  userNotify(userID: number, params: {
3309
3720
  notificationType: number;
3310
3721
  }): Promise<any>;
3722
+ /**
3723
+ * 分组内拒绝操作通知
3724
+ * @param userID
3725
+ * @param params
3726
+ * @returns
3727
+ */
3728
+ boUserNotify(bid: string, userID: number, params: {
3729
+ notificationType: number;
3730
+ }): Promise<any>;
3311
3731
  /**
3312
3732
  * 分组成员开关麦克风
3313
3733
  * @param userID
3314
3734
  * @param params
3315
3735
  * @returns
3316
3736
  */
3317
- setBoAudio(bid: number, userID: number, params: {
3737
+ setBoAudio(bid: string, userID: number, params: {
3318
3738
  sendOn: boolean;
3739
+ cred?: string;
3319
3740
  }): Promise<any>;
3320
3741
  /**
3321
3742
  * 分组成员开关开关视频
@@ -3323,8 +3744,9 @@ export declare class Users extends Module<UsersData, Events_5> {
3323
3744
  * @param params
3324
3745
  * @returns
3325
3746
  */
3326
- setBoVideo(bid: number, userID: number, params: {
3747
+ setBoVideo(bid: string, userID: number, params: {
3327
3748
  sendOn: boolean;
3749
+ cred?: string;
3328
3750
  }): Promise<any>;
3329
3751
  /**
3330
3752
  * 分组成员改名
@@ -3332,7 +3754,7 @@ export declare class Users extends Module<UsersData, Events_5> {
3332
3754
  * @param params
3333
3755
  * @returns
3334
3756
  */
3335
- boRename(bid: number, userID: number, params: {
3757
+ boRename(bid: string, userID: number, params: {
3336
3758
  displayName: string;
3337
3759
  }): Promise<any>;
3338
3760
  /**
@@ -3341,9 +3763,42 @@ export declare class Users extends Module<UsersData, Events_5> {
3341
3763
  * @param params
3342
3764
  * @returns
3343
3765
  */
3344
- boShare(bid: number, userID: number, params: {
3766
+ setBoShare(bid: string, userID: number, params: {
3345
3767
  sendOn: boolean;
3346
3768
  }): Promise<any>;
3769
+ /**
3770
+ * 设置分组用户本地录播权限
3771
+ * @param userID
3772
+ * @param params
3773
+ * @returns
3774
+ */
3775
+ allowBoLocalRecord(bid: string, userID: number, params: {
3776
+ allow: boolean;
3777
+ }): Promise<any>;
3778
+ /**
3779
+ * 设置分组用户聊天权限
3780
+ * @param userID
3781
+ * @param params
3782
+ * @returns
3783
+ */
3784
+ allowBoUserChatOn(bid: string, userID: number, params: {
3785
+ allow: boolean;
3786
+ }): Promise<any>;
3787
+ /**
3788
+ * 主备倒换
3789
+ * @param userID
3790
+ * @returns
3791
+ */
3792
+ backupSwitch(userID: number): Promise<any>;
3793
+ /**
3794
+ * 开启关闭AI翻译
3795
+ * @param userID
3796
+ * @returns
3797
+ */
3798
+ setTranslation(userID: number, params: {
3799
+ action: string;
3800
+ channel?: string;
3801
+ }): Promise<any>;
3347
3802
  }
3348
3803
 
3349
3804
  /**
@@ -3366,6 +3821,10 @@ export declare interface UsersData {
3366
3821
  * 虚拟教室终端 - 仅前端会控使用
3367
3822
  */
3368
3823
  advCtrlUsers: User[];
3824
+ /**
3825
+ * 讨论组成员列表
3826
+ */
3827
+ boInteractiveUsers: User[];
3369
3828
  }
3370
3829
 
3371
3830
  /**
@@ -3618,7 +4077,8 @@ export declare class View extends Module<ViewData, Events_17> {
3618
4077
  * @returns
3619
4078
  */
3620
4079
  presetLayoutApplyUser(params: {
3621
- layoutID: number;
4080
+ layoutID?: number;
4081
+ layoutIDs?: number[];
3622
4082
  setUserID?: number;
3623
4083
  deleteUserID?: number;
3624
4084
  }): Promise<any>;
@@ -3875,6 +4335,10 @@ export declare interface YlinkSDKMeeting {
3875
4335
  * 会议状态
3876
4336
  */
3877
4337
  state: STATE;
4338
+ /**
4339
+ * 分组会议状态
4340
+ */
4341
+ breakoutRoomsState: BREAKOUT_ROOMS_STATE;
3878
4342
  /**
3879
4343
  * 全局事件监听
3880
4344
  */
@@ -3913,7 +4377,7 @@ export declare interface YlinkSDKMeeting {
3913
4377
  * @param params
3914
4378
  * @returns
3915
4379
  */
3916
- boReturnMeeting: (bid: string, userID: number) => Promise<Response_2>;
4380
+ boReturnMeeting: (bid: string) => Promise<Response_2>;
3917
4381
  /**
3918
4382
  * 模块 - 自身相关
3919
4383
  */
@@ -4006,6 +4470,10 @@ export declare interface YlinkSDKMeeting {
4006
4470
  * 分组会议
4007
4471
  */
4008
4472
  breakoutRooms?: BreakoutRooms;
4473
+ /**
4474
+ * RTSP 接入
4475
+ */
4476
+ rtsp?: RTSP;
4009
4477
  [props: string]: any;
4010
4478
  }
4011
4479