@borealise/api 2.0.0-alpha.1 → 2.0.0-alpha.3
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 +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -117,6 +117,12 @@ interface AuthResource {
|
|
|
117
117
|
message: string;
|
|
118
118
|
}>>;
|
|
119
119
|
me(): Promise<ApiResponse<MeResponse>>;
|
|
120
|
+
forgotPassword(email: string): Promise<ApiResponse<{
|
|
121
|
+
success: boolean;
|
|
122
|
+
}>>;
|
|
123
|
+
resetPassword(token: string, password: string): Promise<ApiResponse<{
|
|
124
|
+
success: boolean;
|
|
125
|
+
}>>;
|
|
120
126
|
}
|
|
121
127
|
declare const createAuthResource: (api: Api) => AuthResource;
|
|
122
128
|
|
|
@@ -692,6 +698,9 @@ interface AvatarCatalogResponse {
|
|
|
692
698
|
xp: number;
|
|
693
699
|
};
|
|
694
700
|
}
|
|
701
|
+
interface EquipAvatarData {
|
|
702
|
+
avatarId: string;
|
|
703
|
+
}
|
|
695
704
|
interface ShopResource {
|
|
696
705
|
getAvatarCatalog(): Promise<ApiResponse<AvatarCatalogResponse>>;
|
|
697
706
|
unlockAvatar(avatarId: string): Promise<ApiResponse<{
|
|
@@ -802,4 +811,4 @@ interface ApiClient {
|
|
|
802
811
|
}
|
|
803
812
|
declare const createApiClient: (config: ApiConfig) => ApiClient;
|
|
804
813
|
|
|
805
|
-
export { Api, type ApiClient, type ApiConfig, ApiError, type ApiResponse, type AuthResource, type BackendErrorResponse, type ChatResource, type FriendResource, Logger, type PlaylistResource, type RoomResource, type ShopResource, type SourceResource, type SubscriptionResource, type UserResource, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
|
814
|
+
export { type AddMediaData, Api, type ApiClient, type ApiConfig, ApiError, type ApiResponse, 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 EquipAvatarData, type FeaturedRoomsResponse, type FriendActionResponse, type FriendEntry, type FriendList, type FriendListResponse, type FriendResource, type FriendStatusResponse, type FriendshipStatus, 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 PaginationMeta, type PlayHistoryItem, type Playlist, type PlaylistResource, type PlaylistResponse, type PlaylistsResponse, type PortalResponse, type Room, type RoomBan, type RoomBansResponse, 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 VoteResponse, type WaitlistResponse, type WaitlistUser, type YouTubeSearchResponse, type YouTubeVideoResponse, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,12 @@ interface AuthResource {
|
|
|
117
117
|
message: string;
|
|
118
118
|
}>>;
|
|
119
119
|
me(): Promise<ApiResponse<MeResponse>>;
|
|
120
|
+
forgotPassword(email: string): Promise<ApiResponse<{
|
|
121
|
+
success: boolean;
|
|
122
|
+
}>>;
|
|
123
|
+
resetPassword(token: string, password: string): Promise<ApiResponse<{
|
|
124
|
+
success: boolean;
|
|
125
|
+
}>>;
|
|
120
126
|
}
|
|
121
127
|
declare const createAuthResource: (api: Api) => AuthResource;
|
|
122
128
|
|
|
@@ -692,6 +698,9 @@ interface AvatarCatalogResponse {
|
|
|
692
698
|
xp: number;
|
|
693
699
|
};
|
|
694
700
|
}
|
|
701
|
+
interface EquipAvatarData {
|
|
702
|
+
avatarId: string;
|
|
703
|
+
}
|
|
695
704
|
interface ShopResource {
|
|
696
705
|
getAvatarCatalog(): Promise<ApiResponse<AvatarCatalogResponse>>;
|
|
697
706
|
unlockAvatar(avatarId: string): Promise<ApiResponse<{
|
|
@@ -802,4 +811,4 @@ interface ApiClient {
|
|
|
802
811
|
}
|
|
803
812
|
declare const createApiClient: (config: ApiConfig) => ApiClient;
|
|
804
813
|
|
|
805
|
-
export { Api, type ApiClient, type ApiConfig, ApiError, type ApiResponse, type AuthResource, type BackendErrorResponse, type ChatResource, type FriendResource, Logger, type PlaylistResource, type RoomResource, type ShopResource, type SourceResource, type SubscriptionResource, type UserResource, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
|
814
|
+
export { type AddMediaData, Api, type ApiClient, type ApiConfig, ApiError, type ApiResponse, 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 EquipAvatarData, type FeaturedRoomsResponse, type FriendActionResponse, type FriendEntry, type FriendList, type FriendListResponse, type FriendResource, type FriendStatusResponse, type FriendshipStatus, 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 PaginationMeta, type PlayHistoryItem, type Playlist, type PlaylistResource, type PlaylistResponse, type PlaylistsResponse, type PortalResponse, type Room, type RoomBan, type RoomBansResponse, 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 VoteResponse, type WaitlistResponse, type WaitlistUser, type YouTubeSearchResponse, type YouTubeVideoResponse, createApi, createApiClient, createAuthResource, createChatResource, createFriendResource, createPlaylistResource, createRoomResource, createShopResource, createSourceResource, createSubscriptionResource, createUserResource };
|
package/dist/index.js
CHANGED
|
@@ -225,7 +225,9 @@ var createAuthResource = (api) => ({
|
|
|
225
225
|
register: (data) => api.post(`${endpoint}/register`, data),
|
|
226
226
|
refresh: (refreshToken) => api.post(`${endpoint}/refresh`, { refreshToken }),
|
|
227
227
|
logout: () => api.post(`${endpoint}/logout`),
|
|
228
|
-
me: () => api.get(`${endpoint}/me`)
|
|
228
|
+
me: () => api.get(`${endpoint}/me`),
|
|
229
|
+
forgotPassword: (email) => api.post(`${endpoint}/forgot-password`, { email }),
|
|
230
|
+
resetPassword: (token, password) => api.post(`${endpoint}/reset-password`, { token, password })
|
|
229
231
|
});
|
|
230
232
|
|
|
231
233
|
// src/resources/user.ts
|
package/dist/index.mjs
CHANGED
|
@@ -176,7 +176,9 @@ var createAuthResource = (api) => ({
|
|
|
176
176
|
register: (data) => api.post(`${endpoint}/register`, data),
|
|
177
177
|
refresh: (refreshToken) => api.post(`${endpoint}/refresh`, { refreshToken }),
|
|
178
178
|
logout: () => api.post(`${endpoint}/logout`),
|
|
179
|
-
me: () => api.get(`${endpoint}/me`)
|
|
179
|
+
me: () => api.get(`${endpoint}/me`),
|
|
180
|
+
forgotPassword: (email) => api.post(`${endpoint}/forgot-password`, { email }),
|
|
181
|
+
resetPassword: (token, password) => api.post(`${endpoint}/reset-password`, { token, password })
|
|
180
182
|
});
|
|
181
183
|
|
|
182
184
|
// src/resources/user.ts
|