OBJECT

OnsiteNotification

link GraphQL Schema definition

1type OnsiteNotification {
2
3# Actions of the notification.
4actions: [OnsiteNotificationAction!]!
5
6# Body of the notification in Markdown format.
7body: String!
8
9# Category of the notification (only for dart ones).
10category: String
11
12# When this notification was created.
13createdAt: Time!
14
15# List of users that created this notification.
16creators: [User]!
17
18# Destination type to route users to when they interact with the notification on
19# non-web clients.
20# Values include Homepage, ChannelPage, NotificationSettingsPage, and
21# BroadcasterDashboard.
22destinationType: String
23
24# Determines where the notification will be displayed at front end.
25displayType: OnsiteNotificationDisplayType!
26
27# Optional extra notification content.
28# When type is "vodupload", extra is Video.
29# When type is "hotclipfollower", extra is Clip.
30# When type is "hotclip", extra is Clip.
31# When type is "subgiftreceived", extra is User.
32# When type is "vodcomment", extra is VideoComment.
33# When type is "vodcommentmod", extra is VideoComment.
34# When type is "vodcommentreply", extra is VideoComment.
35# When destination is "ChannelPage", extra is User.
36# When destination is "BrowseGame", extra is Game.
37# When destination is "ExternalLink", extra is OnsiteNotificationExternalLink.
38extra: OnsiteNotificationContent
39
40# ID of the notification.
41id: ID!
42
43# Whether this notification is read.
44isRead: Boolean!
45
46# Type of onsite render style.
47renderStyle: OnsiteNotificationRenderStyle!
48
49# A URL to a thumbnail image.
50thumbnailURL: String!
51
52# Type of notification.
53type: String!
54
55# When notification was last updated.
56updatedAt: Time!
57
58}