@laplace.live/internal 1.3.47 → 1.3.49
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/package.json
CHANGED
|
@@ -3850,10 +3850,14 @@ export declare namespace BilibiliInternal {
|
|
|
3850
3850
|
total_sale_amount: number
|
|
3851
3851
|
item_list: CollectionDetailsListItem[]
|
|
3852
3852
|
effective_forever: number
|
|
3853
|
+
/** 保底,少数卡池为 null */
|
|
3853
3854
|
lottery_bottom: {
|
|
3854
3855
|
draw_cnt: number
|
|
3856
|
+
/** 第 N 抽必得大隐藏,0 为无保底 */
|
|
3855
3857
|
bottom_cnt: number
|
|
3856
|
-
|
|
3858
|
+
/** 第 N 抽必得任意隐藏款,0 为无保底 */
|
|
3859
|
+
bottom_cnt_rate: number
|
|
3860
|
+
} | null
|
|
3857
3861
|
}
|
|
3858
3862
|
|
|
3859
3863
|
/** Item of `CollectionDetailsData` */
|
|
@@ -3998,6 +4002,8 @@ export declare namespace BilibiliInternal {
|
|
|
3998
4002
|
/** 解锁的表情包之类的额外内容可通过此 ID 获取,该 ID 可以拿到 /bilibili/suits/ 下请求到具体数据 */
|
|
3999
4003
|
redeem_item_id: string
|
|
4000
4004
|
redeem_item_name: string
|
|
4005
|
+
/** 奖励类型名,如 `"表情包"`、`"头像挂件"` */
|
|
4006
|
+
redeem_item_type_name?: string
|
|
4001
4007
|
redeem_item_image: string
|
|
4002
4008
|
owned_item_amount: number
|
|
4003
4009
|
require_item_amount: number
|
|
@@ -131,9 +131,89 @@ export declare namespace LaplaceInternal {
|
|
|
131
131
|
videos: number,
|
|
132
132
|
group: string,
|
|
133
133
|
room: number,
|
|
134
|
+
/** 粉丝团人数,直播间从未同步过的主播为 0 */
|
|
135
|
+
fanClub: number,
|
|
134
136
|
][]
|
|
135
137
|
}
|
|
136
138
|
|
|
139
|
+
/**
|
|
140
|
+
* 收藏集抽卡卡池,单个收藏集的精简卡牌与官方概率
|
|
141
|
+
* /laplace/gacha/pool/:actId
|
|
142
|
+
*/
|
|
143
|
+
export interface GachaPool {
|
|
144
|
+
v: 1
|
|
145
|
+
/** 收藏集 `act_id` */
|
|
146
|
+
id: number
|
|
147
|
+
title: string
|
|
148
|
+
/** 关联 UP 主 uid */
|
|
149
|
+
mids: number[]
|
|
150
|
+
updatedAt: string
|
|
151
|
+
/** 只包含有卡牌的卡池 */
|
|
152
|
+
lotteries: GachaPoolLottery[]
|
|
153
|
+
/** 可在游戏内达成的收集奖励(`collect_chain` 与 `collect_infos`),排行榜与指定编号奖励除外 */
|
|
154
|
+
milestones: GachaPoolMilestone[]
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** 收集奖励,达成条件对应 B 站的 `redeem_cond_type` */
|
|
158
|
+
export interface GachaPoolMilestone {
|
|
159
|
+
/** `collect_id`;为 0 的首抽勋章取收藏集 id 的相反数,卡池首个进度奖励取卡池 id 的相反数 */
|
|
160
|
+
id: number
|
|
161
|
+
/** 奖励名 */
|
|
162
|
+
name: string
|
|
163
|
+
/** 奖励类型,如「表情包」,可能为空 */
|
|
164
|
+
kind: string
|
|
165
|
+
image: string
|
|
166
|
+
/** `draws` 抽数 · `distinct` 不同卡牌数 · `hidden` 隐藏款张数 · `cards` 指定卡牌中的不同卡牌数 */
|
|
167
|
+
goal: 'draws' | 'distinct' | 'hidden' | 'cards'
|
|
168
|
+
amount: number
|
|
169
|
+
/** 只计入该卡池,省略时整个收藏集通用 */
|
|
170
|
+
lottery?: number
|
|
171
|
+
/** `cards` 目标的卡牌 id */
|
|
172
|
+
cards?: number[]
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** 收藏集内的单个卡池(lottery) */
|
|
176
|
+
export interface GachaPoolLottery {
|
|
177
|
+
/** `lottery_id` */
|
|
178
|
+
id: number
|
|
179
|
+
name: string
|
|
180
|
+
/** 卡池封面 */
|
|
181
|
+
image: string
|
|
182
|
+
/** 第 N 抽必得大隐藏,0 为无保底(`lottery_bottom.bottom_cnt`) */
|
|
183
|
+
pityBig: number
|
|
184
|
+
/** 第 N 抽必得任意隐藏款,0 为无保底(`lottery_bottom.bottom_cnt_rate`) */
|
|
185
|
+
pityHidden: number
|
|
186
|
+
/** `official` 为解析自官方概率说明,`template` 为按 86/9/4.5/0.5 标准表推算 */
|
|
187
|
+
odds: 'official' | 'template'
|
|
188
|
+
cards: GachaPoolCard[]
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** 卡池中的单张卡牌 */
|
|
192
|
+
export interface GachaPoolCard {
|
|
193
|
+
/** `card_type_id` */
|
|
194
|
+
id: number
|
|
195
|
+
name: string
|
|
196
|
+
/** 10 普通 · 20 稀缺(B 站同样显示为普通)· 30 小隐藏 · 40 大隐藏 */
|
|
197
|
+
scarcity: 10 | 20 | 30 | 40
|
|
198
|
+
/** 单抽概率,同一卡池所有卡牌之和为 1;售罄的限量卡为 0 */
|
|
199
|
+
p: number
|
|
200
|
+
/** 卡面图片,可追加 `@600w.webp` 等缩放后缀 */
|
|
201
|
+
image: string
|
|
202
|
+
/** 视频卡的存档 MP4,尚未存档时省略 */
|
|
203
|
+
video?: string
|
|
204
|
+
/** B 站限量发售 */
|
|
205
|
+
limited?: true
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* 为抽到的卡牌分配全站编号
|
|
210
|
+
* POST /laplace/gacha/mint
|
|
211
|
+
*/
|
|
212
|
+
export interface GachaMint {
|
|
213
|
+
/** 每种卡牌分配到的编号区间(含首尾),顺序同请求 */
|
|
214
|
+
minted: { id: number; first: number; last: number }[]
|
|
215
|
+
}
|
|
216
|
+
|
|
137
217
|
/**
|
|
138
218
|
* 直播间排名列表,由外部 API 聚合而来
|
|
139
219
|
* /laplace/ranking
|