@wavezfm/api 0.7.33 → 0.7.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Type optional `RoomActiveUser.isVip` as an independent boolean benefit that can coexist with any room role. Older payloads may omit it.
6
+ - Clarify that `effectiveRoomRole` describes effective hierarchy, not every additional operational permission; Ambassador room-configuration grants are enforced by the server.
7
+
5
8
  - Add `roomBot.getScheduledEvents(roomId)` for approved active/upcoming room and global calendar events, including start/end timestamps. Existing `getEvents` continues to return presence history.
6
9
  - Add `roomBot.setVip(roomId, userId, enabled)` and optional `isVip` in user-update payloads. VIP can coexist with the main room role.
7
10
 
package/dist/types.d.ts CHANGED
@@ -209,10 +209,14 @@ export interface RoomActiveUser {
209
209
  avatarDjUrl?: string | null;
210
210
  avatarFrameCount?: number;
211
211
  guest?: boolean;
212
+ /** Independent VIP benefit; can coexist with any assigned room role. */
213
+ isVip?: boolean;
212
214
  role?: RoomRoleName | string;
213
- /** Bot snapshots expose effective authorization roles; website badges may use assignedRoomRole. */
215
+ /** Actual room assignment, independent of platform privileges. */
214
216
  roomRole?: RoomRoleName | string;
215
217
  assignedRoomRole?: RoomRoleName | string;
218
+ /** Effective hierarchy including platform privileges; not an exhaustive permission list. */
219
+ effectiveRoomRole?: RoomRoleName | string;
216
220
  platformRole?: string | null;
217
221
  platformRoles?: string[];
218
222
  customGlobalRoles?: unknown[];
@@ -1618,11 +1622,13 @@ export interface BotPrivateCommand {
1618
1622
  userId: string;
1619
1623
  username: string;
1620
1624
  displayUsername: string;
1621
- /** Effective authorization role: Admin/Developer >= Host; Ambassador >= Manager. */
1625
+ /** Actual assigned room role. */
1622
1626
  roomRole: string;
1623
- /** Effective role alias supplied by the current server; omitted by older deployments. */
1627
+ /** Actual assigned room role alias. */
1624
1628
  role?: string;
1625
1629
  assignedRoomRole?: string;
1630
+ /** Admin/Developer >= Host; Ambassador >= Manager. Additional grants are not encoded here. */
1631
+ effectiveRoomRole?: string;
1626
1632
  platformRole?: string;
1627
1633
  platformRoles: string[];
1628
1634
  isRoomOwner: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavezfm/api",
3
- "version": "0.7.33",
3
+ "version": "0.7.35",
4
4
  "description": "Official JavaScript/TypeScript API client for WavezFM.",
5
5
  "homepage": "https://docs.wavez.fm/docs",
6
6
  "repository": {