Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Mastodon v4.3.0 #1155

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Support Mastodon v4.3.0 #1155

merged 1 commit into from
Oct 14, 2024

Conversation

neet
Copy link
Owner

@neet neet commented Aug 20, 2024

This Pull Request adds types:

  • Event["event"] with "notification_merged"
  • v1.AccountWarning type
  • v1.Appeal type
  • v1.GroupedNotificationsResults, v1.PartialAccountWithAvatar, and v1.NotificationGroup types
  • v1.Notification["groupKey"], v1.SeveredRelationshipsNotification, and v1.ModerationWarningNotification types
  • v1.NotificationRequest type
  • v1.RelationshipSeveranceEvent type
  • v1.Suggestion["sources"] property
  • v2.Instance["icon"], v2.Instance["apiVersions"], v2.Instance["configuration"]["vapid"] properties
  • v2.NotificationPolicy type

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()

Copy link

github-actions bot commented Aug 20, 2024

size-limit report 📦

Path Size
./dist/index.js 6.32 KB (0%)

@neet neet force-pushed the support-4.3.0 branch 3 times, most recently from 21ff726 to 85ba713 Compare October 13, 2024 03:17
@neet neet changed the title Add 4.3.0 APIs Support Mastodon v4.3.0 Oct 13, 2024
@neet neet force-pushed the support-4.3.0 branch 5 times, most recently from 13edcc0 to 80c500d Compare October 14, 2024 06:47
wip

Bump docker image for testing

Add support notification group

Move NotificationPolicy to v2

Add NotificationsMerged event

Add link timeline

Add test todo

Fix tests

fix settings
@neet neet enabled auto-merge October 14, 2024 07:04
@neet neet merged commit 0979fdf into main Oct 14, 2024
5 checks passed
@neet neet deleted the support-4.3.0 branch October 14, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant