Closed neet closed 1 week ago
This Pull Request adds types:
Event["event"]
"notification_merged"
v1.AccountWarning
v1.Appeal
v1.GroupedNotificationsResults
v1.PartialAccountWithAvatar
v1.NotificationGroup
v1.Notification["groupKey"]
v1.SeveredRelationshipsNotification
v1.ModerationWarningNotification
v1.NotificationRequest
v1.RelationshipSeveranceEvent
v1.Suggestion["sources"]
v2.Instance["icon"]
v2.Instance["apiVersions"]
v2.Instance["configuration"]["vapid"]
v2.NotificationPolicy
And introduces APIs:
masto.v1.accounts.fetch({ id: [id1, id2, ...] })
masto.v1.accounts.relationship.fetch({ id: [...], withSuspended: boolean })
masto.v1.notifications.requests.$select(id).accept()
masto.v1.notifications.requests.$select(id).dismiss()
masto.v1.notifications.requests.$select(id).fetch()
masto.v1.notifications.requests.accept()
masto.v1.notifications.requests.dismiss()
masto.v1.notifications.requests.list()
masto.v1.notifications.requests.merged.fetch()
masto.v1.notifications.unreadCount.fetch()
masto.v1.statuses.fetch({ id: [id1, id2, ...] })
masto.v1.timelines.link.list({ url: "..." })
masto.v2.notifications.$select(id).accounts.fetch()
masto.v2.notifications.$select(id).dismiss()
masto.v2.notifications.$select(id).fetch()
masto.v2.notifications.policy.fetch()
masto.v2.notifications.policy.update()
masto.v2.notifications.unreadCount.fetch()
This Pull Request adds types:
Event["event"]
with"notification_merged"
v1.AccountWarning
typev1.Appeal
typev1.GroupedNotificationsResults
,v1.PartialAccountWithAvatar
, andv1.NotificationGroup
typesv1.Notification["groupKey"]
,v1.SeveredRelationshipsNotification
, andv1.ModerationWarningNotification
typesv1.NotificationRequest
typev1.RelationshipSeveranceEvent
typev1.Suggestion["sources"]
propertyv2.Instance["icon"]
,v2.Instance["apiVersions"]
,v2.Instance["configuration"]["vapid"]
propertiesv2.NotificationPolicy
typeAnd introduces APIs:
masto.v1.accounts.fetch({ id: [id1, id2, ...] })
masto.v1.accounts.relationship.fetch({ id: [...], withSuspended: boolean })
masto.v1.notifications.requests.$select(id).accept()
masto.v1.notifications.requests.$select(id).dismiss()
masto.v1.notifications.requests.$select(id).fetch()
masto.v1.notifications.requests.accept()
masto.v1.notifications.requests.dismiss()
masto.v1.notifications.requests.list()
masto.v1.notifications.requests.merged.fetch()
masto.v1.notifications.unreadCount.fetch()
masto.v1.statuses.fetch({ id: [id1, id2, ...] })
masto.v1.timelines.link.list({ url: "..." })
masto.v2.notifications.$select(id).accounts.fetch()
masto.v2.notifications.$select(id).dismiss()
masto.v2.notifications.$select(id).fetch()
masto.v2.notifications.policy.fetch()
masto.v2.notifications.policy.update()
masto.v2.notifications.unreadCount.fetch()