Search
Preparing search index...
The search index is not available
Edu Store Typescript API Reference for Web
Options
All
Public
Public/Protected
All
Inherited
Menu
Edu Store Typescript API Reference for Web
"agora-edu-core/src/services/api"
EduApiService
Class EduApiService
Hierarchy
ApiBase
EduApiService
Index
Constructors
constructor
Properties
fallback
Request
Handler
headers
host
logger
path
Prefix
domain
Holder
Methods
accept
Group
Invite
accept
Hands
Up
add
Cloud
Drive
File
add
Cloud
Drive
File
V3
add
Group
allow
Hands
Up
broadcast
Hx
Chat
Message
broadcast
Message
broadcast
Rtm
Chat
Message
cancel
Hands
Up
check
In
confirm
Invited
copy
Scenes
delete
Batch
User
Properties
delete
Widget
dismiss
Hands
Up
entry
fetch
fetch
File
Upload
Sts
fetch
Personal
Resources
fetch
User
List
get
Agora
Chat
Token
get
Answer
List
get
Conversation
History
Chat
Message
get
Conversation
List
get
History
Chat
Message
get
Record
List
get
Room
Events
get
Window
Manager
Attributes
kick
Out
Once
Or
Ban
mute
Chat
pause
Countdown
Timer
refuse
Hands
Up
reject
Group
Invite
remote
Control
Get
Tokens
remote
Control
Student
Accept
Invite
remote
Control
Teacher
Authorization
remote
Control
Teacher
Invite
remote
Control
Teacher
Stop
Invite
remote
Control
Teacher
Unauthorization
remove
Group
remove
Materials
remove
Widget
Extra
Properties
remove
Widget
User
Properties
report
Mic
Camera
State
Leagcy
resume
Countdown
Timer
revoke
All
Co
Video
revoke
Co
Video
send
Chat
send
Conversation
Chat
send
Notification
Message
send
Rewards
set
Window
Manager
Attributes
start
Answer
start
Carousel
start
Countdown
Timer
start
Hands
Up
start
Polling
start
Share
Screen
start
Share
Screen
Stateless
stop
Answer
stop
Carousel
stop
Countdown
Timer
stop
Polling
stop
Share
Screen
stop
Share
Screen
Stateless
submit
Answer
submit
Result
update
Answer
Correct
Items
update
Batch
User
Properties
update
Class
State
update
Cloud
Drive
File
update
Expanded
Scope
And
Streams
update
Flex
Properties
update
Group
Info
update
Group
State
update
Group
Users
update
Recording
State
update
Recording
State
Ongoing
update
User
Tags
update
Widget
Properties
update
Widget
User
Properties
wave
Arm
Constructors
constructor
new
Edu
Api
Service
(
)
:
EduApiService
Returns
EduApiService
Properties
fallback
Request
Handler
fallback
Request
Handler
:
FallbackRequestHandler
Optional
headers
headers
?:
Record
<
string
,
unknown
>
Optional
host
host
?:
string
logger
logger
:
"agora-rte-sdk/src/core/logger/type"
.
Logger
Optional
path
Prefix
path
Prefix
?:
string
Static
domain
Holder
domain
Holder
:
DomainHolder
Methods
accept
Group
Invite
accept
Group
Invite
(
roomUuid
:
string
, groupUuid
:
string
, data
?:
{
leaveGroupUuids
:
string
[]
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
groupUuid:
string
Optional
data:
{
leaveGroupUuids
:
string
[]
}
leave
Group
Uuids
:
string
[]
Returns
Promise
<
any
>
accept
Hands
Up
accept
Hands
Up
(
params
:
{
roomUuid
:
string
;
toUserUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
;
toUserUuid
:
string
}
room
Uuid
:
string
to
User
Uuid
:
string
Returns
Promise
<
any
>
add
Cloud
Drive
File
add
Cloud
Drive
File
(
resourceUuid
:
string
, userUuid
:
string
, resourceInfo
:
CloudDriveResourceInfo
)
:
Promise
<
any
>
Parameters
resourceUuid:
string
userUuid:
string
resourceInfo:
CloudDriveResourceInfo
Returns
Promise
<
any
>
add
Cloud
Drive
File
V3
add
Cloud
Drive
File
V3
(
resourceUuid
:
string
, userUuid
:
string
, resourceInfo
:
CloudDriveResourceInfo
)
:
Promise
<
any
>
Parameters
resourceUuid:
string
userUuid:
string
resourceInfo:
CloudDriveResourceInfo
Returns
Promise
<
any
>
add
Group
add
Group
(
roomUuid
:
string
, data
:
{
groups
:
GroupDetail
[]
;
inProgress
:
boolean
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
groups
:
GroupDetail
[]
;
inProgress
:
boolean
}
groups
:
GroupDetail
[]
in
Progress
:
boolean
Returns
Promise
<
any
>
allow
Hands
Up
allow
Hands
Up
(
params
:
{
defaultAcceptRole
?:
""
|
"audience"
;
roomUuid
:
string
;
state
:
number
}
)
:
Promise
<
any
>
Parameters
params:
{
defaultAcceptRole
?:
""
|
"audience"
;
roomUuid
:
string
;
state
:
number
}
Optional
default
Accept
Role
?:
""
|
"audience"
room
Uuid
:
string
state
:
number
Returns
Promise
<
any
>
broadcast
Hx
Chat
Message
broadcast
Hx
Chat
Message
(
roomUuid
:
string
, data
:
{
msg
:
string
;
range
:
BroadcastMessageRange
;
toGroupUuids
?:
string
[]
;
type
:
BroadcastMessageType
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
msg
:
string
;
range
:
BroadcastMessageRange
;
toGroupUuids
?:
string
[]
;
type
:
BroadcastMessageType
}
msg
:
string
range
:
BroadcastMessageRange
Optional
to
Group
Uuids
?:
string
[]
type
:
BroadcastMessageType
Returns
Promise
<
any
>
broadcast
Message
broadcast
Message
(
roomUuid
:
string
, data
:
{
msg
:
string
;
range
:
BroadcastMessageRange
;
toGroupUuids
?:
string
[]
;
type
:
BroadcastMessageType
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
msg
:
string
;
range
:
BroadcastMessageRange
;
toGroupUuids
?:
string
[]
;
type
:
BroadcastMessageType
}
msg
:
string
range
:
BroadcastMessageRange
Optional
to
Group
Uuids
?:
string
[]
type
:
BroadcastMessageType
Returns
Promise
<
any
>
broadcast
Rtm
Chat
Message
broadcast
Rtm
Chat
Message
(
roomUuid
:
string
, data
:
{
msg
:
string
;
range
:
BroadcastMessageRange
;
toGroupUuids
?:
string
[]
;
type
:
BroadcastMessageType
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
msg
:
string
;
range
:
BroadcastMessageRange
;
toGroupUuids
?:
string
[]
;
type
:
BroadcastMessageType
}
msg
:
string
range
:
BroadcastMessageRange
Optional
to
Group
Uuids
?:
string
[]
type
:
BroadcastMessageType
Returns
Promise
<
any
>
cancel
Hands
Up
cancel
Hands
Up
(
params
:
{
roomUuid
:
string
;
toUserUuid
?:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
;
toUserUuid
?:
string
}
room
Uuid
:
string
Optional
to
User
Uuid
?:
string
Returns
Promise
<
any
>
check
In
check
In
(
session
:
Partial
<
EduSessionInfo
>
, handsUpLimit
?:
{
maxAccept
:
number
;
maxWait
:
number
;
timeout
:
number
;
type
:
number
}
, stream
?:
{
audioSourceState
?:
AgoraRteMediaSourceState
;
audioState
?:
AgoraRteMediaPublishState
;
videoSourceState
?:
AgoraRteMediaSourceState
;
videoState
?:
AgoraRteMediaPublishState
}
)
:
Promise
<
any
>
Parameters
session:
Partial
<
EduSessionInfo
>
Optional
handsUpLimit:
{
maxAccept
:
number
;
maxWait
:
number
;
timeout
:
number
;
type
:
number
}
max
Accept
:
number
max
Wait
:
number
timeout
:
number
type
:
number
Optional
stream:
{
audioSourceState
?:
AgoraRteMediaSourceState
;
audioState
?:
AgoraRteMediaPublishState
;
videoSourceState
?:
AgoraRteMediaSourceState
;
videoState
?:
AgoraRteMediaPublishState
}
Optional
audio
Source
State
?:
AgoraRteMediaSourceState
Optional
audio
State
?:
AgoraRteMediaPublishState
Optional
video
Source
State
?:
AgoraRteMediaSourceState
Optional
video
State
?:
AgoraRteMediaPublishState
Returns
Promise
<
any
>
confirm
Invited
confirm
Invited
(
params
:
{
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
}
room
Uuid
:
string
Returns
Promise
<
any
>
copy
Scenes
copy
Scenes
(
roomUuid
:
string
, fromRoomUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
fromRoomUuid:
string
Returns
Promise
<
any
>
delete
Batch
User
Properties
delete
Batch
User
Properties
(
__namedParameters
:
{
data
:
{
cause
?:
unknown
;
properties
:
string
[]
;
userUuid
:
string
}
[]
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
__namedParameters:
{
data
:
{
cause
?:
unknown
;
properties
:
string
[]
;
userUuid
:
string
}
[]
;
roomUuid
:
string
}
data
:
{
cause
?:
unknown
;
properties
:
string
[]
;
userUuid
:
string
}
[]
room
Uuid
:
string
Returns
Promise
<
any
>
delete
Widget
delete
Widget
(
roomUuid
:
string
, widgetUuid
:
string
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
widgetUuid:
string
Returns
Promise
<
{
data
:
any
}
>
dismiss
Hands
Up
dismiss
Hands
Up
(
params
:
{
roomUuid
:
string
;
toUserUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
;
toUserUuid
:
string
}
room
Uuid
:
string
to
User
Uuid
:
string
Returns
Promise
<
any
>
entry
entry
(
session
:
Partial
<
EduSessionInfo
>
, stream
?:
{
audioSourceState
?:
AgoraRteMediaSourceState
;
audioState
?:
AgoraRteMediaPublishState
;
videoSourceState
?:
AgoraRteMediaSourceState
;
videoState
?:
AgoraRteMediaPublishState
}
)
:
Promise
<
any
>
Parameters
session:
Partial
<
EduSessionInfo
>
Optional
stream:
{
audioSourceState
?:
AgoraRteMediaSourceState
;
audioState
?:
AgoraRteMediaPublishState
;
videoSourceState
?:
AgoraRteMediaSourceState
;
videoState
?:
AgoraRteMediaPublishState
}
Optional
audio
Source
State
?:
AgoraRteMediaSourceState
Optional
audio
State
?:
AgoraRteMediaPublishState
Optional
video
Source
State
?:
AgoraRteMediaSourceState
Optional
video
State
?:
AgoraRteMediaPublishState
Returns
Promise
<
any
>
fetch
fetch
(
params
:
AgoraFetchParams
)
:
Promise
<
any
>
Parameters
params:
AgoraFetchParams
Returns
Promise
<
any
>
fetch
File
Upload
Sts
fetch
File
Upload
Sts
(
__namedParameters
:
Partial
<
{
contentType
:
string
;
conversion
?:
Partial
<
Partial
<
{
canvasVersion
:
boolean
;
outputFormat
:
string
;
preview
:
boolean
;
scale
:
number
;
type
:
string
}
>
>
;
ext
:
string
;
resourceName
:
string
;
size
:
number
;
userUuid
:
string
}
>
)
:
Promise
<
any
>
Parameters
__namedParameters:
Partial
<
{
contentType
:
string
;
conversion
?:
Partial
<
Partial
<
{
canvasVersion
:
boolean
;
outputFormat
:
string
;
preview
:
boolean
;
scale
:
number
;
type
:
string
}
>
>
;
ext
:
string
;
resourceName
:
string
;
size
:
number
;
userUuid
:
string
}
>
Returns
Promise
<
any
>
fetch
Personal
Resources
fetch
Personal
Resources
(
userUuid
:
string
, options
:
{
converted
?:
number
;
limit
?:
number
;
nextId
?:
string
;
orderBy
?:
string
;
pageNo
?:
number
;
pageSize
?:
number
;
parentResourceUuid
?:
string
;
resourceName
?:
string
;
tags
?:
string
[]
}
)
:
Promise
<
any
>
Parameters
userUuid:
string
options:
{
converted
?:
number
;
limit
?:
number
;
nextId
?:
string
;
orderBy
?:
string
;
pageNo
?:
number
;
pageSize
?:
number
;
parentResourceUuid
?:
string
;
resourceName
?:
string
;
tags
?:
string
[]
}
Optional
converted
?:
number
Optional
limit
?:
number
Optional
next
Id
?:
string
Optional
order
By
?:
string
Optional
page
No
?:
number
Optional
page
Size
?:
number
Optional
parent
Resource
Uuid
?:
string
Optional
resource
Name
?:
string
Optional
tags
?:
string
[]
Returns
Promise
<
any
>
fetch
User
List
fetch
User
List
(
roomId
:
string
, params
:
{
count
?:
number
;
nextId
:
undefined
|
null
|
string
|
number
;
role
:
EduRoleTypeEnum
;
type
?:
"0"
|
"1"
;
userName
?:
string
}
)
:
Promise
<
any
>
Parameters
roomId:
string
params:
{
count
?:
number
;
nextId
:
undefined
|
null
|
string
|
number
;
role
:
EduRoleTypeEnum
;
type
?:
"0"
|
"1"
;
userName
?:
string
}
Optional
count
?:
number
next
Id
:
undefined
|
null
|
string
|
number
role
:
EduRoleTypeEnum
Optional
type
?:
"0"
|
"1"
Optional
user
Name
?:
string
Returns
Promise
<
any
>
get
Agora
Chat
Token
get
Agora
Chat
Token
(
__namedParameters
:
{
roomUuid
:
string
;
userUuid
:
string
}
)
:
Promise
<
any
>
Parameters
__namedParameters:
{
roomUuid
:
string
;
userUuid
:
string
}
room
Uuid
:
string
user
Uuid
:
string
Returns
Promise
<
any
>
get
Answer
List
get
Answer
List
(
roomUuid
:
string
, popupQuizId
:
string
, query
:
{
count
:
number
;
nextId
:
number
}
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
popupQuizId:
string
query:
{
count
:
number
;
nextId
:
number
}
count
:
number
next
Id
:
number
Returns
Promise
<
{
data
:
any
}
>
get
Conversation
History
Chat
Message
get
Conversation
History
Chat
Message
(
params
:
{
data
:
{
nextId
:
string
;
sort
:
number
;
studentUuid
:
string
}
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
data
:
{
nextId
:
string
;
sort
:
number
;
studentUuid
:
string
}
;
roomUuid
:
string
}
data
:
{
nextId
:
string
;
sort
:
number
;
studentUuid
:
string
}
next
Id
:
string
sort
:
number
student
Uuid
:
string
room
Uuid
:
string
Returns
Promise
<
any
>
get
Conversation
List
get
Conversation
List
(
params
:
{
data
:
{
nextId
:
string
}
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
data
:
{
nextId
:
string
}
;
roomUuid
:
string
}
data
:
{
nextId
:
string
}
next
Id
:
string
room
Uuid
:
string
Returns
Promise
<
any
>
get
History
Chat
Message
get
History
Chat
Message
(
params
:
{
data
:
{
nextId
:
string
;
sort
:
number
}
;
roomUuid
:
string
;
userUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
data
:
{
nextId
:
string
;
sort
:
number
}
;
roomUuid
:
string
;
userUuid
:
string
}
data
:
{
nextId
:
string
;
sort
:
number
}
next
Id
:
string
sort
:
number
room
Uuid
:
string
user
Uuid
:
string
Returns
Promise
<
any
>
get
Record
List
get
Record
List
(
__namedParameters
:
{
nextId
?:
number
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
__namedParameters:
{
nextId
?:
number
;
roomUuid
:
string
}
Optional
next
Id
?:
number
room
Uuid
:
string
Returns
Promise
<
any
>
get
Room
Events
get
Room
Events
(
__namedParameters
:
{
causeDataFilterKeys
?:
string
;
causeDataFilterValues
?:
string
;
cmd
?:
number
;
nextId
?:
number
;
roomUuid
:
string
;
userUuid
?:
string
}
)
:
Promise
<
any
>
Parameters
__namedParameters:
{
causeDataFilterKeys
?:
string
;
causeDataFilterValues
?:
string
;
cmd
?:
number
;
nextId
?:
number
;
roomUuid
:
string
;
userUuid
?:
string
}
Optional
cause
Data
Filter
Keys
?:
string
Optional
cause
Data
Filter
Values
?:
string
Optional
cmd
?:
number
Optional
next
Id
?:
number
room
Uuid
:
string
Optional
user
Uuid
?:
string
Returns
Promise
<
any
>
get
Window
Manager
Attributes
get
Window
Manager
Attributes
(
roomUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
Returns
Promise
<
any
>
kick
Out
Once
Or
Ban
kick
Out
Once
Or
Ban
(
userUuid
:
string
, isBan
:
boolean
, roomUuid
:
string
)
:
Promise
<
any
>
Parameters
userUuid:
string
isBan:
boolean
roomUuid:
string
Returns
Promise
<
any
>
mute
Chat
mute
Chat
(
params
:
{
muteChat
:
number
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
muteChat
:
number
;
roomUuid
:
string
}
mute
Chat
:
number
room
Uuid
:
string
Returns
Promise
<
any
>
pause
Countdown
Timer
pause
Countdown
Timer
(
roomUuid
:
string
, countdownTimerId
:
string
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
countdownTimerId:
string
Returns
Promise
<
{
data
:
any
}
>
refuse
Hands
Up
refuse
Hands
Up
(
params
:
{
roomUuid
:
string
;
toUserUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
;
toUserUuid
:
string
}
room
Uuid
:
string
to
User
Uuid
:
string
Returns
Promise
<
any
>
reject
Group
Invite
reject
Group
Invite
(
roomUuid
:
string
, groupUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
groupUuid:
string
Returns
Promise
<
any
>
remote
Control
Get
Tokens
remote
Control
Get
Tokens
(
roomUuid
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
userUuid:
string
Returns
Promise
<
any
>
remote
Control
Student
Accept
Invite
remote
Control
Student
Accept
Invite
(
roomUuid
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
userUuid:
string
Returns
Promise
<
any
>
remote
Control
Teacher
Authorization
remote
Control
Teacher
Authorization
(
roomUuid
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
userUuid:
string
Returns
Promise
<
any
>
remote
Control
Teacher
Invite
remote
Control
Teacher
Invite
(
roomUuid
:
string
, data
:
{
toUserUuid
:
string
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
toUserUuid
:
string
}
to
User
Uuid
:
string
Returns
Promise
<
any
>
remote
Control
Teacher
Stop
Invite
remote
Control
Teacher
Stop
Invite
(
roomUuid
:
string
, toUserUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
toUserUuid:
string
Returns
Promise
<
any
>
remote
Control
Teacher
Unauthorization
remote
Control
Teacher
Unauthorization
(
roomUuid
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomUuid:
string
userUuid:
string
Returns
Promise
<
any
>
remove
Group
remove
Group
(
roomUuid
:
string
, data
:
{
removeGroupUuids
:
string
[]
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
removeGroupUuids
:
string
[]
}
remove
Group
Uuids
:
string
[]
Returns
Promise
<
any
>
remove
Materials
remove
Materials
(
resourceUuids
:
string
[]
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
resourceUuids:
string
[]
userUuid:
string
Returns
Promise
<
any
>
remove
Widget
Extra
Properties
remove
Widget
Extra
Properties
(
roomUuid
:
string
, widgetUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
widgetUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
remove
Widget
User
Properties
remove
Widget
User
Properties
(
roomUuid
:
string
, widgetUuid
:
string
, userUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
widgetUuid:
string
userUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
report
Mic
Camera
State
Leagcy
report
Mic
Camera
State
Leagcy
(
payload
:
{
data
:
unknown
;
roomUuid
:
string
;
userUuid
:
string
}
)
:
Promise
<
any
>
Parameters
payload:
{
data
:
unknown
;
roomUuid
:
string
;
userUuid
:
string
}
data
:
unknown
room
Uuid
:
string
user
Uuid
:
string
Returns
Promise
<
any
>
resume
Countdown
Timer
resume
Countdown
Timer
(
roomUuid
:
string
, countdownTimerId
:
string
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
countdownTimerId:
string
Returns
Promise
<
{
data
:
any
}
>
revoke
All
Co
Video
revoke
All
Co
Video
(
params
:
{
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
}
room
Uuid
:
string
Returns
Promise
<
any
>
revoke
Co
Video
revoke
Co
Video
(
params
:
{
roomUuid
:
string
;
toUserUuid
?:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
;
toUserUuid
?:
string
}
room
Uuid
:
string
Optional
to
User
Uuid
?:
string
Returns
Promise
<
any
>
send
Chat
send
Chat
(
params
:
{
data
:
{
message
:
string
;
type
:
number
}
;
roomUuid
:
string
;
userUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
data
:
{
message
:
string
;
type
:
number
}
;
roomUuid
:
string
;
userUuid
:
string
}
data
:
{
message
:
string
;
type
:
number
}
message
:
string
type
:
number
room
Uuid
:
string
user
Uuid
:
string
Returns
Promise
<
any
>
send
Conversation
Chat
send
Conversation
Chat
(
params
:
{
data
:
{
message
:
string
;
type
:
number
}
;
roomUuid
:
string
;
userUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
data
:
{
message
:
string
;
type
:
number
}
;
roomUuid
:
string
;
userUuid
:
string
}
data
:
{
message
:
string
;
type
:
number
}
message
:
string
type
:
number
room
Uuid
:
string
user
Uuid
:
string
Returns
Promise
<
any
>
send
Notification
Message
send
Notification
Message
(
roomUuid
:
string
, data
:
{
msg
:
string
;
rang
:
number
;
toGroupUuids
:
string
[]
;
type
:
string
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
msg
:
string
;
rang
:
number
;
toGroupUuids
:
string
[]
;
type
:
string
}
msg
:
string
rang
:
number
to
Group
Uuids
:
string
[]
type
:
string
Returns
Promise
<
any
>
send
Rewards
send
Rewards
(
params
:
{
rewards
:
{
changeReward
:
number
;
userUuid
:
string
}
[]
;
roomUuid
:
string
}
, isBatch
?:
boolean
)
:
Promise
<
any
>
Parameters
params:
{
rewards
:
{
changeReward
:
number
;
userUuid
:
string
}
[]
;
roomUuid
:
string
}
rewards
:
{
changeReward
:
number
;
userUuid
:
string
}
[]
room
Uuid
:
string
Optional
isBatch:
boolean
Returns
Promise
<
any
>
set
Window
Manager
Attributes
set
Window
Manager
Attributes
(
roomUuid
:
string
, data
:
unknown
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
unknown
Returns
Promise
<
any
>
start
Answer
start
Answer
(
roomUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
start
Carousel
start
Carousel
(
payload
:
{
count
?:
number
;
interval
?:
number
;
range
?:
number
;
roomUuid
:
string
;
type
?:
number
}
)
:
Promise
<
any
>
Parameters
payload:
{
count
?:
number
;
interval
?:
number
;
range
?:
number
;
roomUuid
:
string
;
type
?:
number
}
Optional
count
?:
number
Optional
interval
?:
number
Optional
range
?:
number
room
Uuid
:
string
Optional
type
?:
number
Returns
Promise
<
any
>
start
Countdown
Timer
start
Countdown
Timer
(
roomUuid
:
string
, duration
:
number
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
duration:
number
Returns
Promise
<
{
data
:
any
}
>
start
Hands
Up
start
Hands
Up
(
params
:
{
payload
?:
unknown
;
retry
?:
boolean
;
roomUuid
:
string
;
timout
?:
number
;
toUserUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
payload
?:
unknown
;
retry
?:
boolean
;
roomUuid
:
string
;
timout
?:
number
;
toUserUuid
:
string
}
Optional
payload
?:
unknown
Optional
retry
?:
boolean
room
Uuid
:
string
Optional
timout
?:
number
to
User
Uuid
:
string
Returns
Promise
<
any
>
start
Polling
start
Polling
(
roomUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
start
Share
Screen
start
Share
Screen
(
roomId
:
string
, userUuid
:
string
, audioOptions
?:
Partial
<
AgoraStreamStates
>
)
:
Promise
<
any
>
Parameters
roomId:
string
userUuid:
string
Optional
audioOptions:
Partial
<
AgoraStreamStates
>
Returns
Promise
<
any
>
start
Share
Screen
Stateless
start
Share
Screen
Stateless
(
roomId
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomId:
string
userUuid:
string
Returns
Promise
<
any
>
stop
Answer
stop
Answer
(
roomUuid
:
string
, popupQuizId
:
string
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
popupQuizId:
string
Returns
Promise
<
{
data
:
any
}
>
stop
Carousel
stop
Carousel
(
payload
:
{
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
payload:
{
roomUuid
:
string
}
room
Uuid
:
string
Returns
Promise
<
any
>
stop
Countdown
Timer
stop
Countdown
Timer
(
roomUuid
:
string
, countdownTimerId
:
string
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
countdownTimerId:
string
Returns
Promise
<
{
data
:
any
}
>
stop
Polling
stop
Polling
(
roomUuid
:
string
, pollId
:
string
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
pollId:
string
Returns
Promise
<
{
data
:
any
}
>
stop
Share
Screen
stop
Share
Screen
(
roomId
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomId:
string
userUuid:
string
Returns
Promise
<
any
>
stop
Share
Screen
Stateless
stop
Share
Screen
Stateless
(
roomId
:
string
, userUuid
:
string
)
:
Promise
<
any
>
Parameters
roomId:
string
userUuid:
string
Returns
Promise
<
any
>
submit
Answer
submit
Answer
(
roomUuid
:
string
, popupQuizId
:
string
, userUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
popupQuizId:
string
userUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
submit
Result
submit
Result
(
roomUuid
:
string
, pollId
:
string
, userUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
pollId:
string
userUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
update
Answer
Correct
Items
update
Answer
Correct
Items
(
roomUuid
:
string
, popupQuizId
:
string
, correctItems
:
string
[]
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
popupQuizId:
string
correctItems:
string
[]
Returns
Promise
<
{
data
:
any
}
>
update
Batch
User
Properties
update
Batch
User
Properties
(
__namedParameters
:
{
data
:
{
cause
?:
unknown
;
properties
:
unknown
;
userUuid
:
string
}
[]
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
__namedParameters:
{
data
:
{
cause
?:
unknown
;
properties
:
unknown
;
userUuid
:
string
}
[]
;
roomUuid
:
string
}
data
:
{
cause
?:
unknown
;
properties
:
unknown
;
userUuid
:
string
}
[]
room
Uuid
:
string
Returns
Promise
<
any
>
update
Class
State
update
Class
State
(
params
:
{
roomUuid
:
string
;
state
:
ClassState
}
)
:
Promise
<
any
>
Parameters
params:
{
roomUuid
:
string
;
state
:
ClassState
}
room
Uuid
:
string
state
:
ClassState
Returns
Promise
<
any
>
update
Cloud
Drive
File
update
Cloud
Drive
File
(
resourceUuid
:
string
, userUuid
:
string
, resourceInfo
:
Pick
<
CloudDriveResourceInfo
,
"resourceName"
>
)
:
Promise
<
any
>
Parameters
resourceUuid:
string
userUuid:
string
resourceInfo:
Pick
<
CloudDriveResourceInfo
,
"resourceName"
>
Returns
Promise
<
any
>
update
Expanded
Scope
And
Streams
update
Expanded
Scope
And
Streams
(
roomUuid
:
string
, state
:
0
|
1
, data
:
{
userUuids
:
string
[]
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
state:
0
|
1
data:
{
userUuids
:
string
[]
}
user
Uuids
:
string
[]
Returns
Promise
<
any
>
update
Flex
Properties
update
Flex
Properties
(
roomUuid
:
string
, params
:
{
cause
?:
unknown
;
increments
?:
unknown
;
properties
?:
unknown
;
throttleTime
?:
number
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
params:
{
cause
?:
unknown
;
increments
?:
unknown
;
properties
?:
unknown
;
throttleTime
?:
number
}
Optional
cause
?:
unknown
Optional
increments
?:
unknown
Optional
properties
?:
unknown
Optional
throttle
Time
?:
number
Returns
Promise
<
any
>
update
Group
Info
update
Group
Info
(
roomUuid
:
string
, data
:
{
groups
:
PatchGroup
[]
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
groups
:
PatchGroup
[]
}
groups
:
PatchGroup
[]
Returns
Promise
<
any
>
update
Group
State
update
Group
State
(
roomUuid
:
string
, data
:
{
groups
:
GroupDetail
[]
;
inProgress
?:
boolean
;
syncBoardScenes
?:
boolean
}
, state
?:
GroupState
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
groups
:
GroupDetail
[]
;
inProgress
?:
boolean
;
syncBoardScenes
?:
boolean
}
groups
:
GroupDetail
[]
Optional
in
Progress
?:
boolean
Optional
sync
Board
Scenes
?:
boolean
Optional
state:
GroupState
Returns
Promise
<
any
>
update
Group
Users
update
Group
Users
(
roomUuid
:
string
, data
:
{
groups
:
PatchGroup
[]
;
inProgress
:
boolean
}
)
:
Promise
<
any
>
Parameters
roomUuid:
string
data:
{
groups
:
PatchGroup
[]
;
inProgress
:
boolean
}
groups
:
PatchGroup
[]
in
Progress
:
boolean
Returns
Promise
<
any
>
update
Recording
State
update
Recording
State
(
params
:
{
args
?:
unknown
;
backupCount
?:
number
;
roomUuid
:
string
;
state
:
number
}
)
:
Promise
<
any
>
Parameters
params:
{
args
?:
unknown
;
backupCount
?:
number
;
roomUuid
:
string
;
state
:
number
}
Optional
args
?:
unknown
Optional
backup
Count
?:
number
room
Uuid
:
string
state
:
number
Returns
Promise
<
any
>
update
Recording
State
Ongoing
update
Recording
State
Ongoing
(
params
:
{
opts
:
{
onHold
:
boolean
}
;
roomUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
opts
:
{
onHold
:
boolean
}
;
roomUuid
:
string
}
opts
:
{
onHold
:
boolean
}
on
Hold
:
boolean
room
Uuid
:
string
Returns
Promise
<
any
>
update
User
Tags
update
User
Tags
(
__namedParameters
:
{
data
:
unknown
;
key
:
string
;
roomUuid
:
string
;
userUuid
:
string
}
)
:
Promise
<
any
>
Parameters
__namedParameters:
{
data
:
unknown
;
key
:
string
;
roomUuid
:
string
;
userUuid
:
string
}
data
:
unknown
key
:
string
room
Uuid
:
string
user
Uuid
:
string
Returns
Promise
<
any
>
update
Widget
Properties
update
Widget
Properties
(
roomUuid
:
string
, widgetUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
widgetUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
update
Widget
User
Properties
update
Widget
User
Properties
(
roomUuid
:
string
, widgetUuid
:
string
, userUuid
:
string
, properties
:
unknown
)
:
Promise
<
{
data
:
any
}
>
Parameters
roomUuid:
string
widgetUuid:
string
userUuid:
string
properties:
unknown
Returns
Promise
<
{
data
:
any
}
>
wave
Arm
wave
Arm
(
params
:
{
payload
?:
unknown
;
retry
?:
boolean
;
roomUuid
:
string
;
timout
?:
number
;
toUserUuid
:
string
}
)
:
Promise
<
any
>
Parameters
params:
{
payload
?:
unknown
;
retry
?:
boolean
;
roomUuid
:
string
;
timout
?:
number
;
toUserUuid
:
string
}
Optional
payload
?:
unknown
Optional
retry
?:
boolean
room
Uuid
:
string
Optional
timout
?:
number
to
User
Uuid
:
string
Returns
Promise
<
any
>
Exports
"agora-
edu-
core/src/configs/index"
"agora-
edu-
core/src/event-
center"
"agora-
edu-
core/src/index"
"agora-
edu-
core/src/log-
reporter"
"agora-
edu-
core/src/services/api"
"agora-
edu-
core/src/services/error"
"agora-
edu-
core/src/services/report-
v2"
"agora-
edu-
core/src/stores/domain/common/base"
"agora-
edu-
core/src/stores/domain/common/cloud-
drive/index"
"agora-
edu-
core/src/stores/domain/common/cloud-
drive/struct"
"agora-
edu-
core/src/stores/domain/common/cloud-
drive/type"
"agora-
edu-
core/src/stores/domain/common/cloud-
drive/utils"
"agora-
edu-
core/src/stores/domain/common/connection"
"agora-
edu-
core/src/stores/domain/common/group/index"
"agora-
edu-
core/src/stores/domain/common/group/type"
"agora-
edu-
core/src/stores/domain/common/hand-
up/index"
"agora-
edu-
core/src/stores/domain/common/hand-
up/type"
"agora-
edu-
core/src/stores/domain/common/index"
"agora-
edu-
core/src/stores/domain/common/media/index"
"agora-
edu-
core/src/stores/domain/common/media/type"
"agora-
edu-
core/src/stores/domain/common/message/index"
"agora-
edu-
core/src/stores/domain/common/message/struct"
"agora-
edu-
core/src/stores/domain/common/message/type"
"agora-
edu-
core/src/stores/domain/common/recording/index"
"agora-
edu-
core/src/stores/domain/common/recording/type"
"agora-
edu-
core/src/stores/domain/common/report/index"
"agora-
edu-
core/src/stores/domain/common/room/command-
handler"
"agora-
edu-
core/src/stores/domain/common/room/index"
"agora-
edu-
core/src/stores/domain/common/room/type"
"agora-
edu-
core/src/stores/domain/common/statistics/index"
"agora-
edu-
core/src/stores/domain/common/stream/index"
"agora-
edu-
core/src/stores/domain/common/stream/struct"
"agora-
edu-
core/src/stores/domain/common/user/index"
"agora-
edu-
core/src/stores/domain/common/user/struct"
"agora-
edu-
core/src/stores/domain/common/user/type"
"agora-
edu-
core/src/stores/domain/common/widget/controller"
"agora-
edu-
core/src/stores/domain/common/widget/helper"
"agora-
edu-
core/src/stores/domain/common/widget/index"
"agora-
edu-
core/src/stores/domain/common/widget/struct"
"agora-
edu-
core/src/stores/domain/common/widget/type"
"agora-
edu-
core/src/stores/domain/index"
"agora-
edu-
core/src/stores/domain/interactive/index"
"agora-
edu-
core/src/stores/domain/lecture/index"
"agora-
edu-
core/src/stores/domain/one-
on-
one/index"
"agora-
edu-
core/src/stores/index"
"agora-
edu-
core/src/type"
"agora-
edu-
core/src/utils/batch"
"agora-
edu-
core/src/utils/collection"
"agora-
edu-
core/src/utils/error"
"agora-
edu-
core/src/utils/index"
"agora-
rte-
sdk/src/configs/index"
"agora-
rte-
sdk/src/core/decorator/bound/index"
"agora-
rte-
sdk/src/core/decorator/index"
"agora-
rte-
sdk/src/core/decorator/lodash/index"
"agora-
rte-
sdk/src/core/decorator/log/handler"
"agora-
rte-
sdk/src/core/decorator/log/index"
"agora-
rte-
sdk/src/core/decorator/log/log-
serializer"
"agora-
rte-
sdk/src/core/decorator/log/logger"
"agora-
rte-
sdk/src/core/decorator/proxy"
"agora-
rte-
sdk/src/core/decorator/type"
"agora-
rte-
sdk/src/core/engine/index"
"agora-
rte-
sdk/src/core/log-
upload/handler"
"agora-
rte-
sdk/src/core/log-
upload/scheduler"
"agora-
rte-
sdk/src/core/log-
upload/type"
"agora-
rte-
sdk/src/core/logger/constants"
"agora-
rte-
sdk/src/core/logger/hijack"
"agora-
rte-
sdk/src/core/logger/index"
"agora-
rte-
sdk/src/core/logger/logger-
impl"
"agora-
rte-
sdk/src/core/logger/manager-
impl"
"agora-
rte-
sdk/src/core/logger/type"
"agora-
rte-
sdk/src/core/media-
player/index"
"agora-
rte-
sdk/src/core/media-
player/stream-
media-
player"
"agora-
rte-
sdk/src/core/media-
player/type"
"agora-
rte-
sdk/src/core/media/control"
"agora-
rte-
sdk/src/core/media/loopback"
"agora-
rte-
sdk/src/core/media/player"
"agora-
rte-
sdk/src/core/media/track"
"agora-
rte-
sdk/src/core/media/type"
"agora-
rte-
sdk/src/core/processor/message-
handler"
"agora-
rte-
sdk/src/core/processor/sequence-
msg/data"
"agora-
rte-
sdk/src/core/processor/sequence-
msg/message-
parser"
"agora-
rte-
sdk/src/core/processor/sequence-
msg/synchronizer"
"agora-
rte-
sdk/src/core/processor/struct"
"agora-
rte-
sdk/src/core/processor/type"
"agora-
rte-
sdk/src/core/rtc/adapter/base"
"agora-
rte-
sdk/src/core/rtc/adapter/electron/device"
"agora-
rte-
sdk/src/core/rtc/adapter/electron/index"
"agora-
rte-
sdk/src/core/rtc/adapter/electron/stats"
"agora-
rte-
sdk/src/core/rtc/adapter/electron/thread"
"agora-
rte-
sdk/src/core/rtc/adapter/index"
"agora-
rte-
sdk/src/core/rtc/adapter/web/client"
"agora-
rte-
sdk/src/core/rtc/adapter/web/device"
"agora-
rte-
sdk/src/core/rtc/adapter/web/dispatcher"
"agora-
rte-
sdk/src/core/rtc/adapter/web/index"
"agora-
rte-
sdk/src/core/rtc/adapter/web/player"
"agora-
rte-
sdk/src/core/rtc/adapter/web/stats"
"agora-
rte-
sdk/src/core/rtc/adapter/web/thread"
"agora-
rte-
sdk/src/core/rtc/canvas"
"agora-
rte-
sdk/src/core/rtc/channel"
"agora-
rte-
sdk/src/core/rtc/index"
"agora-
rte-
sdk/src/core/rtc/type"
"agora-
rte-
sdk/src/core/rtm/index"
"agora-
rte-
sdk/src/core/rtm/type"
"agora-
rte-
sdk/src/core/schedule/index"
"agora-
rte-
sdk/src/core/schedule/scheduler"
"agora-
rte-
sdk/src/core/schedule/task"
"agora-
rte-
sdk/src/core/services/api"
"agora-
rte-
sdk/src/core/services/base"
"agora-
rte-
sdk/src/core/services/domain-
region-
map"
"agora-
rte-
sdk/src/core/services/fallback-
request-
handler"
"agora-
rte-
sdk/src/core/services/report"
"agora-
rte-
sdk/src/core/upload/index"
"agora-
rte-
sdk/src/core/upload/scheduler"
"agora-
rte-
sdk/src/core/upload/type"
"agora-
rte-
sdk/src/core/utils/electron-
log-
file"
"agora-
rte-
sdk/src/core/utils/error"
"agora-
rte-
sdk/src/core/utils/events"
"agora-
rte-
sdk/src/core/utils/file-
reader"
"agora-
rte-
sdk/src/core/utils/http-
client"
"agora-
rte-
sdk/src/core/utils/interceptor"
"agora-
rte-
sdk/src/core/utils/networkutils"
"agora-
rte-
sdk/src/core/utils/race-
condition"
"agora-
rte-
sdk/src/core/utils/thread"
"agora-
rte-
sdk/src/core/utils/types"
"agora-
rte-
sdk/src/core/utils/utils"
"agora-
rte-
sdk/src/core/worker/constants"
"agora-
rte-
sdk/src/core/worker/handler/binary"
"agora-
rte-
sdk/src/core/worker/handler/db"
"agora-
rte-
sdk/src/core/worker/handler/log"
"agora-
rte-
sdk/src/core/worker/handler/reply"
"agora-
rte-
sdk/src/core/worker/index"
"agora-
rte-
sdk/src/core/worker/interactor"
"agora-
rte-
sdk/src/core/worker/mutex"
"agora-
rte-
sdk/src/core/worker/type"
"agora-
rte-
sdk/src/core/worker/worker-
entry"
"agora-
rte-
sdk/src/core/worker/worker-
factory"
"agora-
rte-
sdk/src/core/worker/worker-
installer"
"agora-
rte-
sdk/src/index"
"agora-
rte-
sdk/src/scene/index"
"agora-
rte-
sdk/src/scene/state-
sync"
"agora-
rte-
sdk/src/type"
"agora-
rte-
sdk/src/user/index"
Edu
Api
Service
constructor
fallback
Request
Handler
headers
host
logger
path
Prefix
domain
Holder
accept
Group
Invite
accept
Hands
Up
add
Cloud
Drive
File
add
Cloud
Drive
File
V3
add
Group
allow
Hands
Up
broadcast
Hx
Chat
Message
broadcast
Message
broadcast
Rtm
Chat
Message
cancel
Hands
Up
check
In
confirm
Invited
copy
Scenes
delete
Batch
User
Properties
delete
Widget
dismiss
Hands
Up
entry
fetch
fetch
File
Upload
Sts
fetch
Personal
Resources
fetch
User
List
get
Agora
Chat
Token
get
Answer
List
get
Conversation
History
Chat
Message
get
Conversation
List
get
History
Chat
Message
get
Record
List
get
Room
Events
get
Window
Manager
Attributes
kick
Out
Once
Or
Ban
mute
Chat
pause
Countdown
Timer
refuse
Hands
Up
reject
Group
Invite
remote
Control
Get
Tokens
remote
Control
Student
Accept
Invite
remote
Control
Teacher
Authorization
remote
Control
Teacher
Invite
remote
Control
Teacher
Stop
Invite
remote
Control
Teacher
Unauthorization
remove
Group
remove
Materials
remove
Widget
Extra
Properties
remove
Widget
User
Properties
report
Mic
Camera
State
Leagcy
resume
Countdown
Timer
revoke
All
Co
Video
revoke
Co
Video
send
Chat
send
Conversation
Chat
send
Notification
Message
send
Rewards
set
Window
Manager
Attributes
start
Answer
start
Carousel
start
Countdown
Timer
start
Hands
Up
start
Polling
start
Share
Screen
start
Share
Screen
Stateless
stop
Answer
stop
Carousel
stop
Countdown
Timer
stop
Polling
stop
Share
Screen
stop
Share
Screen
Stateless
submit
Answer
submit
Result
update
Answer
Correct
Items
update
Batch
User
Properties
update
Class
State
update
Cloud
Drive
File
update
Expanded
Scope
And
Streams
update
Flex
Properties
update
Group
Info
update
Group
State
update
Group
Users
update
Recording
State
update
Recording
State
Ongoing
update
User
Tags
update
Widget
Properties
update
Widget
User
Properties
wave
Arm