@borealise/api 2.1.0-alpha.5 → 2.1.0-alpha.7
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/dist/index.d.mts +51 -5
- package/dist/index.d.ts +51 -5
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -246,6 +246,7 @@ interface UserResource {
|
|
|
246
246
|
declare const createUserResource: (api: Api) => UserResource;
|
|
247
247
|
|
|
248
248
|
type RoomRole = 'user' | 'resident_dj' | 'bouncer' | 'manager' | 'cohost' | 'host';
|
|
249
|
+
type RoomMode = 'standard' | 'dj_live';
|
|
249
250
|
interface Room {
|
|
250
251
|
id: number;
|
|
251
252
|
slug: string;
|
|
@@ -258,6 +259,7 @@ interface Room {
|
|
|
258
259
|
isNsfw: boolean;
|
|
259
260
|
waitlistLocked: boolean;
|
|
260
261
|
waitlistCycleEnabled: boolean;
|
|
262
|
+
mode: RoomMode;
|
|
261
263
|
population: number;
|
|
262
264
|
totalPlays: number;
|
|
263
265
|
isFeatured: boolean;
|
|
@@ -270,7 +272,7 @@ interface Room {
|
|
|
270
272
|
} | null;
|
|
271
273
|
currentMedia?: {
|
|
272
274
|
id: number;
|
|
273
|
-
source: 'youtube' | 'soundcloud';
|
|
275
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
274
276
|
sourceId: string;
|
|
275
277
|
title: string;
|
|
276
278
|
artist: string | null;
|
|
@@ -302,6 +304,7 @@ interface CreateRoomData {
|
|
|
302
304
|
welcomeMessage?: string;
|
|
303
305
|
isPrivate?: boolean;
|
|
304
306
|
isNsfw?: boolean;
|
|
307
|
+
mode?: RoomMode;
|
|
305
308
|
}
|
|
306
309
|
interface UpdateRoomData {
|
|
307
310
|
name?: string;
|
|
@@ -312,6 +315,7 @@ interface UpdateRoomData {
|
|
|
312
315
|
isNsfw?: boolean;
|
|
313
316
|
waitlistLocked?: boolean;
|
|
314
317
|
waitlistCycleEnabled?: boolean;
|
|
318
|
+
mode?: RoomMode;
|
|
315
319
|
}
|
|
316
320
|
interface RoomResponse {
|
|
317
321
|
success: boolean;
|
|
@@ -418,7 +422,7 @@ interface BoothDJ {
|
|
|
418
422
|
}
|
|
419
423
|
interface BoothMedia {
|
|
420
424
|
id: number;
|
|
421
|
-
source: 'youtube' | 'soundcloud';
|
|
425
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
422
426
|
sourceId: string;
|
|
423
427
|
title: string;
|
|
424
428
|
artist: string | null;
|
|
@@ -446,6 +450,38 @@ interface JoinMuteInfo {
|
|
|
446
450
|
remainingSeconds: number | null;
|
|
447
451
|
reason: string | null;
|
|
448
452
|
}
|
|
453
|
+
interface RoomLiveStreamStatus {
|
|
454
|
+
status: 'offline' | 'starting' | 'live' | 'error';
|
|
455
|
+
hlsUrl?: string;
|
|
456
|
+
userId?: number;
|
|
457
|
+
startedAt?: number | null;
|
|
458
|
+
updatedAt?: number;
|
|
459
|
+
reason?: string;
|
|
460
|
+
role?: 'host' | 'cohost';
|
|
461
|
+
}
|
|
462
|
+
interface RoomLiveStatusResponse {
|
|
463
|
+
success: boolean;
|
|
464
|
+
data: {
|
|
465
|
+
roomSlug: string;
|
|
466
|
+
mode: RoomMode;
|
|
467
|
+
canBroadcast: boolean;
|
|
468
|
+
stream: RoomLiveStreamStatus;
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
interface RoomLiveStartResponse {
|
|
472
|
+
success: boolean;
|
|
473
|
+
data: {
|
|
474
|
+
roomSlug: string;
|
|
475
|
+
status: 'starting' | 'live';
|
|
476
|
+
ingestUrl: string;
|
|
477
|
+
streamName: string;
|
|
478
|
+
hlsUrl: string;
|
|
479
|
+
streamKey: string;
|
|
480
|
+
userId: number;
|
|
481
|
+
startedAt?: number | null;
|
|
482
|
+
role: 'host' | 'cohost';
|
|
483
|
+
};
|
|
484
|
+
}
|
|
449
485
|
interface JoinRoomResponse {
|
|
450
486
|
success: boolean;
|
|
451
487
|
data: {
|
|
@@ -455,6 +491,7 @@ interface JoinRoomResponse {
|
|
|
455
491
|
name: string;
|
|
456
492
|
waitlistLocked: boolean;
|
|
457
493
|
waitlistCycleEnabled: boolean;
|
|
494
|
+
mode: RoomMode;
|
|
458
495
|
};
|
|
459
496
|
role: RoomRole;
|
|
460
497
|
users: RoomUserState[];
|
|
@@ -521,7 +558,7 @@ interface PlayHistoryItem {
|
|
|
521
558
|
avatarId: string;
|
|
522
559
|
media: {
|
|
523
560
|
id: number;
|
|
524
|
-
source: 'youtube' | 'soundcloud';
|
|
561
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
525
562
|
sourceId: string;
|
|
526
563
|
title: string;
|
|
527
564
|
artist: string | null;
|
|
@@ -579,7 +616,7 @@ interface DashboardActivityItem {
|
|
|
579
616
|
};
|
|
580
617
|
media: {
|
|
581
618
|
id: number;
|
|
582
|
-
source: 'youtube' | 'soundcloud';
|
|
619
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
583
620
|
sourceId: string;
|
|
584
621
|
title: string;
|
|
585
622
|
artist: string | null;
|
|
@@ -680,6 +717,15 @@ interface RoomResource {
|
|
|
680
717
|
}>>;
|
|
681
718
|
vote(slug: string, type: 'woot' | 'meh'): Promise<ApiResponse<VoteResponse>>;
|
|
682
719
|
grabTrack(slug: string, playlistId?: number): Promise<ApiResponse<GrabResponse>>;
|
|
720
|
+
startLive(slug: string): Promise<ApiResponse<RoomLiveStartResponse>>;
|
|
721
|
+
stopLive(slug: string): Promise<ApiResponse<{
|
|
722
|
+
success: boolean;
|
|
723
|
+
data: {
|
|
724
|
+
roomSlug: string;
|
|
725
|
+
status: 'offline' | 'error' | 'starting' | 'live';
|
|
726
|
+
};
|
|
727
|
+
}>>;
|
|
728
|
+
getLiveStatus(slug: string): Promise<ApiResponse<RoomLiveStatusResponse>>;
|
|
683
729
|
getAssets(slug: string): Promise<ApiResponse<RoomAssetsResponse>>;
|
|
684
730
|
createEmoji(slug: string, data: {
|
|
685
731
|
name?: string;
|
|
@@ -1199,4 +1245,4 @@ interface ApiClient {
|
|
|
1199
1245
|
}
|
|
1200
1246
|
declare const createApiClient: (config: ApiConfig) => ApiClient;
|
|
1201
1247
|
|
|
1202
|
-
export { type AccountViolation, type AddMediaData, type AddViolationResponse, type AdminListUsersParams, type AdminResource, type AdminStatsResponse, type AdminStatsRoom, type AdminUserEntry, type AdminUsersResponse, type Api, type ApiClient, type ApiConfig, ApiError, type ApiQueryParams, type ApiRequestConfig, type ApiResponse, type AuditAction, type AuthResource, type AuthUser, type AvatarCatalogItem, type AvatarCatalogResponse, type AvatarUnlockType, type BackendErrorResponse, type BanResponse, type BoothDJ, type BoothMedia, type BoothResponse, type BoothState, type ChatMessage, type ChatMessageResponse, type ChatMessagesResponse, type ChatResource, type CreateIntentResponse, type CreateRoomData, type DashboardActivityItem, type DashboardActivityResponse, type DashboardActivityType, type EquipAvatarData, type FeaturedRoomsResponse, type FriendActionResponse, type FriendEntry, type FriendList, type FriendListResponse, type FriendResource, type FriendStatusResponse, type FriendshipStatus, type GifSearchItem, type GifSearchResponse, type GlobalRole, type GrabResponse, type ImportPlaylistData, type ImportPlaylistResponse, type ImportResult, type JoinMuteInfo, type JoinRoomResponse, Logger, type MediaItem, type MediaItemResponse, type MediaSearchResult, type MediaSource, type ModerateUserData, type MuteResponse, type MyViolation, type MyViolationsResponse, type PaginationMeta, type PlayHistoryItem, type Playlist, type PlaylistResource, type PlaylistResponse, type PlaylistsResponse, type PortalResponse, type PublicProfileFriend, type PublicUser, type Room, type RoomAssetsResponse, type RoomAuditLog, type RoomBan, type RoomBansResponse, type RoomCustomEmoji, type RoomCustomSticker, type RoomHistoryResponse, type RoomMember, type RoomMute, type RoomMutesResponse, type RoomResource, type RoomResponse, type RoomRole, type RoomStaffResponse, type RoomUserState, type RoomsResponse, type SendMessageData, type ShopResource, type ShuffleResponse, type SoundCloudSearchResponse, type SoundCloudTrackResponse, type SourceResource, type SubscriptionPlan, type SubscriptionResource, type SubscriptionStatus, type UpdateProfileData, type UpdateRoomData, type User, type UserResource, type UserResponse, type UserViolationsResponse, type VoteResponse, type WaitlistResponse, type WaitlistUser, type YouTubeSearchResponse, type YouTubeVideoResponse, createAdminResource, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
|
1248
|
+
export { type AccountViolation, type AddMediaData, type AddViolationResponse, type AdminListUsersParams, type AdminResource, type AdminStatsResponse, type AdminStatsRoom, type AdminUserEntry, type AdminUsersResponse, type Api, type ApiClient, type ApiConfig, ApiError, type ApiQueryParams, type ApiRequestConfig, type ApiResponse, type AuditAction, type AuthResource, type AuthUser, type AvatarCatalogItem, type AvatarCatalogResponse, type AvatarUnlockType, type BackendErrorResponse, type BanResponse, type BoothDJ, type BoothMedia, type BoothResponse, type BoothState, type ChatMessage, type ChatMessageResponse, type ChatMessagesResponse, type ChatResource, type CreateIntentResponse, type CreateRoomData, type DashboardActivityItem, type DashboardActivityResponse, type DashboardActivityType, type EquipAvatarData, type FeaturedRoomsResponse, type FriendActionResponse, type FriendEntry, type FriendList, type FriendListResponse, type FriendResource, type FriendStatusResponse, type FriendshipStatus, type GifSearchItem, type GifSearchResponse, type GlobalRole, type GrabResponse, type ImportPlaylistData, type ImportPlaylistResponse, type ImportResult, type JoinMuteInfo, type JoinRoomResponse, Logger, type MediaItem, type MediaItemResponse, type MediaSearchResult, type MediaSource, type ModerateUserData, type MuteResponse, type MyViolation, type MyViolationsResponse, type PaginationMeta, type PlayHistoryItem, type Playlist, type PlaylistResource, type PlaylistResponse, type PlaylistsResponse, type PortalResponse, type PublicProfileFriend, type PublicUser, type Room, type RoomAssetsResponse, type RoomAuditLog, type RoomBan, type RoomBansResponse, type RoomCustomEmoji, type RoomCustomSticker, type RoomHistoryResponse, type RoomLiveStartResponse, type RoomLiveStatusResponse, type RoomLiveStreamStatus, type RoomMember, type RoomMode, type RoomMute, type RoomMutesResponse, type RoomResource, type RoomResponse, type RoomRole, type RoomStaffResponse, type RoomUserState, type RoomsResponse, type SendMessageData, type ShopResource, type ShuffleResponse, type SoundCloudSearchResponse, type SoundCloudTrackResponse, type SourceResource, type SubscriptionPlan, type SubscriptionResource, type SubscriptionStatus, type UpdateProfileData, type UpdateRoomData, type User, type UserResource, type UserResponse, type UserViolationsResponse, type VoteResponse, type WaitlistResponse, type WaitlistUser, type YouTubeSearchResponse, type YouTubeVideoResponse, createAdminResource, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,7 @@ interface UserResource {
|
|
|
246
246
|
declare const createUserResource: (api: Api) => UserResource;
|
|
247
247
|
|
|
248
248
|
type RoomRole = 'user' | 'resident_dj' | 'bouncer' | 'manager' | 'cohost' | 'host';
|
|
249
|
+
type RoomMode = 'standard' | 'dj_live';
|
|
249
250
|
interface Room {
|
|
250
251
|
id: number;
|
|
251
252
|
slug: string;
|
|
@@ -258,6 +259,7 @@ interface Room {
|
|
|
258
259
|
isNsfw: boolean;
|
|
259
260
|
waitlistLocked: boolean;
|
|
260
261
|
waitlistCycleEnabled: boolean;
|
|
262
|
+
mode: RoomMode;
|
|
261
263
|
population: number;
|
|
262
264
|
totalPlays: number;
|
|
263
265
|
isFeatured: boolean;
|
|
@@ -270,7 +272,7 @@ interface Room {
|
|
|
270
272
|
} | null;
|
|
271
273
|
currentMedia?: {
|
|
272
274
|
id: number;
|
|
273
|
-
source: 'youtube' | 'soundcloud';
|
|
275
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
274
276
|
sourceId: string;
|
|
275
277
|
title: string;
|
|
276
278
|
artist: string | null;
|
|
@@ -302,6 +304,7 @@ interface CreateRoomData {
|
|
|
302
304
|
welcomeMessage?: string;
|
|
303
305
|
isPrivate?: boolean;
|
|
304
306
|
isNsfw?: boolean;
|
|
307
|
+
mode?: RoomMode;
|
|
305
308
|
}
|
|
306
309
|
interface UpdateRoomData {
|
|
307
310
|
name?: string;
|
|
@@ -312,6 +315,7 @@ interface UpdateRoomData {
|
|
|
312
315
|
isNsfw?: boolean;
|
|
313
316
|
waitlistLocked?: boolean;
|
|
314
317
|
waitlistCycleEnabled?: boolean;
|
|
318
|
+
mode?: RoomMode;
|
|
315
319
|
}
|
|
316
320
|
interface RoomResponse {
|
|
317
321
|
success: boolean;
|
|
@@ -418,7 +422,7 @@ interface BoothDJ {
|
|
|
418
422
|
}
|
|
419
423
|
interface BoothMedia {
|
|
420
424
|
id: number;
|
|
421
|
-
source: 'youtube' | 'soundcloud';
|
|
425
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
422
426
|
sourceId: string;
|
|
423
427
|
title: string;
|
|
424
428
|
artist: string | null;
|
|
@@ -446,6 +450,38 @@ interface JoinMuteInfo {
|
|
|
446
450
|
remainingSeconds: number | null;
|
|
447
451
|
reason: string | null;
|
|
448
452
|
}
|
|
453
|
+
interface RoomLiveStreamStatus {
|
|
454
|
+
status: 'offline' | 'starting' | 'live' | 'error';
|
|
455
|
+
hlsUrl?: string;
|
|
456
|
+
userId?: number;
|
|
457
|
+
startedAt?: number | null;
|
|
458
|
+
updatedAt?: number;
|
|
459
|
+
reason?: string;
|
|
460
|
+
role?: 'host' | 'cohost';
|
|
461
|
+
}
|
|
462
|
+
interface RoomLiveStatusResponse {
|
|
463
|
+
success: boolean;
|
|
464
|
+
data: {
|
|
465
|
+
roomSlug: string;
|
|
466
|
+
mode: RoomMode;
|
|
467
|
+
canBroadcast: boolean;
|
|
468
|
+
stream: RoomLiveStreamStatus;
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
interface RoomLiveStartResponse {
|
|
472
|
+
success: boolean;
|
|
473
|
+
data: {
|
|
474
|
+
roomSlug: string;
|
|
475
|
+
status: 'starting' | 'live';
|
|
476
|
+
ingestUrl: string;
|
|
477
|
+
streamName: string;
|
|
478
|
+
hlsUrl: string;
|
|
479
|
+
streamKey: string;
|
|
480
|
+
userId: number;
|
|
481
|
+
startedAt?: number | null;
|
|
482
|
+
role: 'host' | 'cohost';
|
|
483
|
+
};
|
|
484
|
+
}
|
|
449
485
|
interface JoinRoomResponse {
|
|
450
486
|
success: boolean;
|
|
451
487
|
data: {
|
|
@@ -455,6 +491,7 @@ interface JoinRoomResponse {
|
|
|
455
491
|
name: string;
|
|
456
492
|
waitlistLocked: boolean;
|
|
457
493
|
waitlistCycleEnabled: boolean;
|
|
494
|
+
mode: RoomMode;
|
|
458
495
|
};
|
|
459
496
|
role: RoomRole;
|
|
460
497
|
users: RoomUserState[];
|
|
@@ -521,7 +558,7 @@ interface PlayHistoryItem {
|
|
|
521
558
|
avatarId: string;
|
|
522
559
|
media: {
|
|
523
560
|
id: number;
|
|
524
|
-
source: 'youtube' | 'soundcloud';
|
|
561
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
525
562
|
sourceId: string;
|
|
526
563
|
title: string;
|
|
527
564
|
artist: string | null;
|
|
@@ -579,7 +616,7 @@ interface DashboardActivityItem {
|
|
|
579
616
|
};
|
|
580
617
|
media: {
|
|
581
618
|
id: number;
|
|
582
|
-
source: 'youtube' | 'soundcloud';
|
|
619
|
+
source: 'youtube' | 'soundcloud' | 'hls' | 'mp4';
|
|
583
620
|
sourceId: string;
|
|
584
621
|
title: string;
|
|
585
622
|
artist: string | null;
|
|
@@ -680,6 +717,15 @@ interface RoomResource {
|
|
|
680
717
|
}>>;
|
|
681
718
|
vote(slug: string, type: 'woot' | 'meh'): Promise<ApiResponse<VoteResponse>>;
|
|
682
719
|
grabTrack(slug: string, playlistId?: number): Promise<ApiResponse<GrabResponse>>;
|
|
720
|
+
startLive(slug: string): Promise<ApiResponse<RoomLiveStartResponse>>;
|
|
721
|
+
stopLive(slug: string): Promise<ApiResponse<{
|
|
722
|
+
success: boolean;
|
|
723
|
+
data: {
|
|
724
|
+
roomSlug: string;
|
|
725
|
+
status: 'offline' | 'error' | 'starting' | 'live';
|
|
726
|
+
};
|
|
727
|
+
}>>;
|
|
728
|
+
getLiveStatus(slug: string): Promise<ApiResponse<RoomLiveStatusResponse>>;
|
|
683
729
|
getAssets(slug: string): Promise<ApiResponse<RoomAssetsResponse>>;
|
|
684
730
|
createEmoji(slug: string, data: {
|
|
685
731
|
name?: string;
|
|
@@ -1199,4 +1245,4 @@ interface ApiClient {
|
|
|
1199
1245
|
}
|
|
1200
1246
|
declare const createApiClient: (config: ApiConfig) => ApiClient;
|
|
1201
1247
|
|
|
1202
|
-
export { type AccountViolation, type AddMediaData, type AddViolationResponse, type AdminListUsersParams, type AdminResource, type AdminStatsResponse, type AdminStatsRoom, type AdminUserEntry, type AdminUsersResponse, type Api, type ApiClient, type ApiConfig, ApiError, type ApiQueryParams, type ApiRequestConfig, type ApiResponse, type AuditAction, type AuthResource, type AuthUser, type AvatarCatalogItem, type AvatarCatalogResponse, type AvatarUnlockType, type BackendErrorResponse, type BanResponse, type BoothDJ, type BoothMedia, type BoothResponse, type BoothState, type ChatMessage, type ChatMessageResponse, type ChatMessagesResponse, type ChatResource, type CreateIntentResponse, type CreateRoomData, type DashboardActivityItem, type DashboardActivityResponse, type DashboardActivityType, type EquipAvatarData, type FeaturedRoomsResponse, type FriendActionResponse, type FriendEntry, type FriendList, type FriendListResponse, type FriendResource, type FriendStatusResponse, type FriendshipStatus, type GifSearchItem, type GifSearchResponse, type GlobalRole, type GrabResponse, type ImportPlaylistData, type ImportPlaylistResponse, type ImportResult, type JoinMuteInfo, type JoinRoomResponse, Logger, type MediaItem, type MediaItemResponse, type MediaSearchResult, type MediaSource, type ModerateUserData, type MuteResponse, type MyViolation, type MyViolationsResponse, type PaginationMeta, type PlayHistoryItem, type Playlist, type PlaylistResource, type PlaylistResponse, type PlaylistsResponse, type PortalResponse, type PublicProfileFriend, type PublicUser, type Room, type RoomAssetsResponse, type RoomAuditLog, type RoomBan, type RoomBansResponse, type RoomCustomEmoji, type RoomCustomSticker, type RoomHistoryResponse, type RoomMember, type RoomMute, type RoomMutesResponse, type RoomResource, type RoomResponse, type RoomRole, type RoomStaffResponse, type RoomUserState, type RoomsResponse, type SendMessageData, type ShopResource, type ShuffleResponse, type SoundCloudSearchResponse, type SoundCloudTrackResponse, type SourceResource, type SubscriptionPlan, type SubscriptionResource, type SubscriptionStatus, type UpdateProfileData, type UpdateRoomData, type User, type UserResource, type UserResponse, type UserViolationsResponse, type VoteResponse, type WaitlistResponse, type WaitlistUser, type YouTubeSearchResponse, type YouTubeVideoResponse, createAdminResource, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
|
1248
|
+
export { type AccountViolation, type AddMediaData, type AddViolationResponse, type AdminListUsersParams, type AdminResource, type AdminStatsResponse, type AdminStatsRoom, type AdminUserEntry, type AdminUsersResponse, type Api, type ApiClient, type ApiConfig, ApiError, type ApiQueryParams, type ApiRequestConfig, type ApiResponse, type AuditAction, type AuthResource, type AuthUser, type AvatarCatalogItem, type AvatarCatalogResponse, type AvatarUnlockType, type BackendErrorResponse, type BanResponse, type BoothDJ, type BoothMedia, type BoothResponse, type BoothState, type ChatMessage, type ChatMessageResponse, type ChatMessagesResponse, type ChatResource, type CreateIntentResponse, type CreateRoomData, type DashboardActivityItem, type DashboardActivityResponse, type DashboardActivityType, type EquipAvatarData, type FeaturedRoomsResponse, type FriendActionResponse, type FriendEntry, type FriendList, type FriendListResponse, type FriendResource, type FriendStatusResponse, type FriendshipStatus, type GifSearchItem, type GifSearchResponse, type GlobalRole, type GrabResponse, type ImportPlaylistData, type ImportPlaylistResponse, type ImportResult, type JoinMuteInfo, type JoinRoomResponse, Logger, type MediaItem, type MediaItemResponse, type MediaSearchResult, type MediaSource, type ModerateUserData, type MuteResponse, type MyViolation, type MyViolationsResponse, type PaginationMeta, type PlayHistoryItem, type Playlist, type PlaylistResource, type PlaylistResponse, type PlaylistsResponse, type PortalResponse, type PublicProfileFriend, type PublicUser, type Room, type RoomAssetsResponse, type RoomAuditLog, type RoomBan, type RoomBansResponse, type RoomCustomEmoji, type RoomCustomSticker, type RoomHistoryResponse, type RoomLiveStartResponse, type RoomLiveStatusResponse, type RoomLiveStreamStatus, type RoomMember, type RoomMode, type RoomMute, type RoomMutesResponse, type RoomResource, type RoomResponse, type RoomRole, type RoomStaffResponse, type RoomUserState, type RoomsResponse, type SendMessageData, type ShopResource, type ShuffleResponse, type SoundCloudSearchResponse, type SoundCloudTrackResponse, type SourceResource, type SubscriptionPlan, type SubscriptionResource, type SubscriptionStatus, type UpdateProfileData, type UpdateRoomData, type User, type UserResource, type UserResponse, type UserViolationsResponse, type VoteResponse, type WaitlistResponse, type WaitlistUser, type YouTubeSearchResponse, type YouTubeVideoResponse, createAdminResource, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
package/dist/index.js
CHANGED
|
@@ -330,6 +330,9 @@ var createRoomResource = (api) => ({
|
|
|
330
330
|
),
|
|
331
331
|
vote: (slug, type) => api.post(`${endpoint3}/${slug}/booth/vote`, { type }),
|
|
332
332
|
grabTrack: (slug, playlistId) => api.post(`${endpoint3}/${slug}/booth/grab`, playlistId ? { playlistId } : {}),
|
|
333
|
+
startLive: (slug) => api.post(`${endpoint3}/${slug}/live/start`),
|
|
334
|
+
stopLive: (slug) => api.post(`${endpoint3}/${slug}/live/stop`),
|
|
335
|
+
getLiveStatus: (slug) => api.get(`${endpoint3}/${slug}/live/status`),
|
|
333
336
|
getAssets: (slug) => api.get(`${endpoint3}/${slug}/assets`),
|
|
334
337
|
createEmoji: (slug, data) => {
|
|
335
338
|
const FormDataCtor = globalThis.FormData;
|
package/dist/index.mjs
CHANGED
|
@@ -281,6 +281,9 @@ var createRoomResource = (api) => ({
|
|
|
281
281
|
),
|
|
282
282
|
vote: (slug, type) => api.post(`${endpoint3}/${slug}/booth/vote`, { type }),
|
|
283
283
|
grabTrack: (slug, playlistId) => api.post(`${endpoint3}/${slug}/booth/grab`, playlistId ? { playlistId } : {}),
|
|
284
|
+
startLive: (slug) => api.post(`${endpoint3}/${slug}/live/start`),
|
|
285
|
+
stopLive: (slug) => api.post(`${endpoint3}/${slug}/live/stop`),
|
|
286
|
+
getLiveStatus: (slug) => api.get(`${endpoint3}/${slug}/live/status`),
|
|
284
287
|
getAssets: (slug) => api.get(`${endpoint3}/${slug}/assets`),
|
|
285
288
|
createEmoji: (slug, data) => {
|
|
286
289
|
const FormDataCtor = globalThis.FormData;
|