Skip to content

unitysvc-py 0.2.4

Choose a tag to compare

@bo-unitysvc bo-unitysvc released this 31 Oct 18:45
5da9adf

Rooms: find an enrollment's rooms, leave a chat room, an owner-set room status, and a usvc rooms CLI with a Rooms guide.

  • client.rooms.list() takes enrollment= and service= next to kind=. Each takes an id or an SDK object and matches that exact scope (a service's own rooms, not its enrollments' rooms).
  • enrollment.rooms() lists the rooms of one enrollment, on Enrollment and AsyncEnrollment.
  • client.rooms.leave(room) leaves a room the account joined, where the room kind allows it (chat rooms; never the owner).
  • client.rooms.update(room, status="readonly") lets only the owner and moderators post; status="active" reopens the room. Room views carry status_changed_at.
  • Room views no longer carry permanent, expires_at or idle_expiry_seconds, and rooms.update() no longer accepts the last two: rooms don't expire. A room's role is the one you hold now, and an enrollment's rooms close while it is paused or cancelled.
  • New usvc rooms command group: list, show, post, members, set, delivery, invite, invitations, revoke, join, leave. --format json writes plain JSON, and room content is always printed literally.
  • New Rooms guide.

The enrollment and service filters, leave() and status need a backend with unitysvc/unitysvc#2841 and unitysvc/unitysvc#2848.