Skip to content

Releases: tybug/ossapi

v3.3.4

05 Sep 01:26
Compare
Choose a tag to compare
  • update api#rooms with new parameters and search modes
  • add Scope.{CHAT_WRITE_MANAGE, CHAT_READ}
    • No chat endpoints are implemented yet. Coming soon tm.
  • always return floats for float properties
    • previously, if float properties were an integer in the json (7 instead of 7.0), they would be returned as int. This could cause issues for some type checkers.
  • port automatic reauth to OssapiAsync

v3.3.3

14 Aug 23:25
Compare
Choose a tag to compare
  • automatically ask for reauthentication when application user revokes application or refresh token is invalidated by osu-web
    • only relevant for authorization code grant
    • I've never seen osu-web invalidate a refresh token, but I think it may happen after several months of inactivity
    • will raise instead of re-authing if you passed access_token or refresh_token, since it's assumed you have your own method of authenticating with the user in that case. You should handle the possibility that ossapi requests raise ReauthenticationRequired in this case
  • add UserAccountHistoryType.TOURNAMENT_BAN
  • add UserAccountHistory.{id, permanent}

v3.3.2

24 Jul 19:09
Compare
Choose a tag to compare
  • add UserBeatmapType.GUEST

v3.3.1

17 Jul 20:10
Compare
Choose a tag to compare
  • return full Event subclasses from api.events() instead of bare Event class
  • update mania Key{n} mod acronyms to match osu-web (fixes some mania scores erroring on retrieval)

v3.3.0

16 Jul 05:16
Compare
Choose a tag to compare
  • implement endpoint api.events()
  • add ChatChannel.message_length_limit
  • add Build.youtube_id
  • add RoomCategory.FEATURED_ARTIST
  • add ChannelType.ANNOUNCE
  • mark UserCompact.default_group as optional
  • move Beatmapset.pack_tags to BeatmapsetCompact
  • move Beatmapset.current_nominations to BeatmapsetCompact
  • add proper model for UserStatistics.variants (breaking change if you previously consumed the raw json of this attribute)
  • add proper model for ForumTopic.poll (breaking change if you previously consumed the raw json of this attribute)
  • rename BeatmapDifficultyAttributes attributes for typos: approach_raty to approach_rate and great_hit_windoy to great_hit_window.
  • remove unused MessageType.{DISQUALIFY, NOMINATION_RESET}
  • remove deprecated and no longer returned ChatChannel.first_message_id attribute

v3.2.0

27 May 00:17
Compare
Choose a tag to compare

Add support for the lazer (lazer.ppy.sh) and dev (dev.ppy.sh) domains, in addition to the default osu (osu.ppy.sh) domain. The short of it is that you will now be able to retrieve lazer-specific information (scores, leaderboards) by specifying domain="lazer" to Ossapi.

See https://circleguard.github.io/ossapi/domains.html for more information.

v3.1.9

09 Apr 00:28
Compare
Choose a tag to compare
  • fix OssapiAsync.download_score erroring

v3.1.8

07 Apr 18:53
Compare
Choose a tag to compare
  • fix OssapiAsync#users and OssapiAsync#beatmaps methods erroring

v3.1.7

06 Apr 23:43
Compare
Choose a tag to compare
  • speculative fix for rare case of invalid json decode in OssapiAsync (#60)

v3.1.6

06 Apr 00:57
Compare
Choose a tag to compare
  • fix incorrect error messages and resource warnings when OssapiAsync raises an error