@laplace.live/internal 1.2.57 → 1.3.1
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 +6 -2
- package/src/common.d.ts +124 -0
- package/src/const/steam.ts +38 -0
- package/src/index.d.ts +16 -0
- package/src/namespaces/aicu.d.ts +120 -0
- package/src/namespaces/aliyun.d.ts +61 -0
- package/{index.d.ts → src/namespaces/bilibili.d.ts} +5 -2643
- package/src/namespaces/danmakus.d.ts +254 -0
- package/src/namespaces/kuaidi100.d.ts +56 -0
- package/src/namespaces/laplace.d.ts +1608 -0
- package/src/namespaces/loveava.d.ts +45 -0
- package/src/namespaces/steam.d.ts +273 -0
- package/src/namespaces/vtbs.d.ts +93 -0
- package/src/namespaces/zeroroku.d.ts +23 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vup.loveava.top API
|
|
3
|
+
*/
|
|
4
|
+
export declare namespace LoveAvA {
|
|
5
|
+
/** 直播实时排行 */
|
|
6
|
+
export interface RankingProps {
|
|
7
|
+
/**
|
|
8
|
+
* 0: success
|
|
9
|
+
*/
|
|
10
|
+
code: number
|
|
11
|
+
/**
|
|
12
|
+
* `'success'`
|
|
13
|
+
*/
|
|
14
|
+
message: string
|
|
15
|
+
data: {
|
|
16
|
+
rooms: RankingItem[]
|
|
17
|
+
ctime: number
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Item of `RankingProps` */
|
|
22
|
+
export interface RankingItem {
|
|
23
|
+
roomid: number
|
|
24
|
+
uid: number
|
|
25
|
+
title: string
|
|
26
|
+
uname: string
|
|
27
|
+
system_cover: string
|
|
28
|
+
cover: string
|
|
29
|
+
face: string
|
|
30
|
+
parent_id: number
|
|
31
|
+
parent_name: string
|
|
32
|
+
area_id: number
|
|
33
|
+
area_name: string
|
|
34
|
+
area_v2_parent_id: number
|
|
35
|
+
area_v2_parent_name: string
|
|
36
|
+
area_v2_id: number
|
|
37
|
+
area_v2_name: string
|
|
38
|
+
start_time: number
|
|
39
|
+
/**
|
|
40
|
+
* 热度,danmakus 没有
|
|
41
|
+
*/
|
|
42
|
+
count: number
|
|
43
|
+
ten_minutes_counter: number
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import type { SteamLanguage } from '../const/steam'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Steam Store API
|
|
5
|
+
* @link https://store.steampowered.com/api/appdetails
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace Steam {
|
|
8
|
+
/**
|
|
9
|
+
* Steam API language codes for the Store API `l` parameter.
|
|
10
|
+
* Derived from the const array in `./steam.ts`.
|
|
11
|
+
* @link https://partner.steamgames.com/doc/store/localization/languages
|
|
12
|
+
*/
|
|
13
|
+
export type { SteamLanguage }
|
|
14
|
+
|
|
15
|
+
/** Query params for GET /steam/game-meta/:gameId */
|
|
16
|
+
export interface GameMetaQuery {
|
|
17
|
+
/**
|
|
18
|
+
* Two-letter country code for currency/pricing
|
|
19
|
+
* @default "us"
|
|
20
|
+
* @example "us"
|
|
21
|
+
*/
|
|
22
|
+
currency?: string
|
|
23
|
+
/**
|
|
24
|
+
* Steam API language code
|
|
25
|
+
* @default "english"
|
|
26
|
+
* @link https://partner.steamgames.com/doc/store/localization/languages
|
|
27
|
+
*/
|
|
28
|
+
lang?: SteamLanguage
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Steam Store appdetails API response, keyed by appid string
|
|
33
|
+
* @link https://store.steampowered.com/api/appdetails?appids={appid}
|
|
34
|
+
* @example /steam/game-meta/730
|
|
35
|
+
*/
|
|
36
|
+
export interface GameMeta {
|
|
37
|
+
[appid: string]: {
|
|
38
|
+
/** Whether the lookup was successful */
|
|
39
|
+
success: boolean
|
|
40
|
+
/** Absent when `success` is `false` */
|
|
41
|
+
data?: GameMetaData
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** App detail data */
|
|
46
|
+
export interface GameMetaData {
|
|
47
|
+
/**
|
|
48
|
+
* App type
|
|
49
|
+
* @example "game"
|
|
50
|
+
*/
|
|
51
|
+
type: string
|
|
52
|
+
/** App name @example "Counter-Strike 2" */
|
|
53
|
+
name: string
|
|
54
|
+
/** Steam App ID @example 730 */
|
|
55
|
+
steam_appid: number
|
|
56
|
+
/** Minimum age requirement, `0` for no restriction @example 0 */
|
|
57
|
+
required_age: number
|
|
58
|
+
/** Whether the app is free to play */
|
|
59
|
+
is_free: boolean
|
|
60
|
+
/** DLC app IDs @example [2678630] */
|
|
61
|
+
dlc?: number[]
|
|
62
|
+
/** Full HTML description */
|
|
63
|
+
detailed_description: string
|
|
64
|
+
/** HTML about section */
|
|
65
|
+
about_the_game: string
|
|
66
|
+
/** Short text description */
|
|
67
|
+
short_description: string
|
|
68
|
+
/** Supported languages in HTML format */
|
|
69
|
+
supported_languages: string
|
|
70
|
+
/** Header image URL @example "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/730/header.jpg" */
|
|
71
|
+
header_image: string
|
|
72
|
+
/** Capsule image URL (231x87) */
|
|
73
|
+
capsule_image: string
|
|
74
|
+
/** Capsule image URL v5 (184x69) */
|
|
75
|
+
capsule_imagev5: string
|
|
76
|
+
/** Official website URL, `null` if not set @example "http://counter-strike.net/" */
|
|
77
|
+
website: string | null
|
|
78
|
+
/** PC system requirements, empty array `[]` when not available */
|
|
79
|
+
pc_requirements: GameMetaRequirements | []
|
|
80
|
+
/** Mac system requirements, empty array `[]` when not available */
|
|
81
|
+
mac_requirements: GameMetaRequirements | []
|
|
82
|
+
/** Linux system requirements, empty array `[]` when not available */
|
|
83
|
+
linux_requirements: GameMetaRequirements | []
|
|
84
|
+
/** Legal notice text @example "© 2024 ambr, Inc." */
|
|
85
|
+
legal_notice?: string
|
|
86
|
+
/** Developer names @example ["Valve"] */
|
|
87
|
+
developers: string[]
|
|
88
|
+
/** Publisher names @example ["Valve"] */
|
|
89
|
+
publishers: string[]
|
|
90
|
+
/** Package IDs available for purchase */
|
|
91
|
+
packages: number[]
|
|
92
|
+
/** Purchase option groups */
|
|
93
|
+
package_groups: GameMetaPackageGroup[]
|
|
94
|
+
/** Platform availability */
|
|
95
|
+
platforms: GameMetaPlatforms
|
|
96
|
+
/** Category tags (multi-player, workshop, etc.) */
|
|
97
|
+
categories: GameMetaCategory[]
|
|
98
|
+
/** Genre classifications */
|
|
99
|
+
genres: GameMetaGenre[]
|
|
100
|
+
/** Screenshots */
|
|
101
|
+
screenshots: GameMetaScreenshot[]
|
|
102
|
+
/** Trailer videos */
|
|
103
|
+
movies?: GameMetaMovie[]
|
|
104
|
+
/** User recommendations */
|
|
105
|
+
recommendations?: { total: number }
|
|
106
|
+
/** Achievements info */
|
|
107
|
+
achievements?: GameMetaAchievements
|
|
108
|
+
/** Release date info */
|
|
109
|
+
release_date: GameMetaReleaseDate
|
|
110
|
+
/** Support contact info */
|
|
111
|
+
support_info: { url: string; email: string }
|
|
112
|
+
/** Store page background image URL */
|
|
113
|
+
background: string
|
|
114
|
+
/** Raw background image URL */
|
|
115
|
+
background_raw: string
|
|
116
|
+
/** Content descriptor IDs and notes */
|
|
117
|
+
content_descriptors: GameMetaContentDescriptors
|
|
118
|
+
/** Price overview, absent for free games */
|
|
119
|
+
price_overview?: GameMetaPriceOverview
|
|
120
|
+
/** Metacritic score, absent if not rated */
|
|
121
|
+
metacritic?: GameMetaMetacritic
|
|
122
|
+
/** Age ratings by region */
|
|
123
|
+
ratings?: Record<string, GameMetaRating>
|
|
124
|
+
/**
|
|
125
|
+
* Controller support level
|
|
126
|
+
* @example "full"
|
|
127
|
+
*/
|
|
128
|
+
controller_support?: string
|
|
129
|
+
/** Demo app IDs */
|
|
130
|
+
demos?: { appid: number; description: string }[]
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** System requirements (minimum and optionally recommended) */
|
|
134
|
+
export interface GameMetaRequirements {
|
|
135
|
+
/** Minimum requirements in HTML */
|
|
136
|
+
minimum: string
|
|
137
|
+
/** Recommended requirements in HTML */
|
|
138
|
+
recommended?: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface GameMetaPackageGroup {
|
|
142
|
+
/** @example "default" */
|
|
143
|
+
name: string
|
|
144
|
+
/** @example "Buy Counter-Strike 2" */
|
|
145
|
+
title: string
|
|
146
|
+
description: string
|
|
147
|
+
/** @example "Select a purchase option" */
|
|
148
|
+
selection_text: string
|
|
149
|
+
save_text: string
|
|
150
|
+
display_type: number
|
|
151
|
+
is_recurring_subscription: string
|
|
152
|
+
subs: GameMetaPackageSub[]
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface GameMetaPackageSub {
|
|
156
|
+
/** Package ID @example 298963 */
|
|
157
|
+
packageid: number
|
|
158
|
+
/** @example " " */
|
|
159
|
+
percent_savings_text: string
|
|
160
|
+
/** Discount percentage, `0` for no discount */
|
|
161
|
+
percent_savings: number
|
|
162
|
+
/** @example "Counter-Strike 2 - Free" */
|
|
163
|
+
option_text: string
|
|
164
|
+
option_description: string
|
|
165
|
+
can_get_free_license: string
|
|
166
|
+
is_free_license: boolean
|
|
167
|
+
/** Price in cents with discount applied @example 0 */
|
|
168
|
+
price_in_cents_with_discount: number
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface GameMetaPlatforms {
|
|
172
|
+
windows: boolean
|
|
173
|
+
mac: boolean
|
|
174
|
+
linux: boolean
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface GameMetaCategory {
|
|
178
|
+
/** @example 1 */
|
|
179
|
+
id: number
|
|
180
|
+
/** @example "Multi-player" */
|
|
181
|
+
description: string
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface GameMetaGenre {
|
|
185
|
+
/** @example "1" */
|
|
186
|
+
id: string
|
|
187
|
+
/** @example "Action" */
|
|
188
|
+
description: string
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface GameMetaScreenshot {
|
|
192
|
+
/** Screenshot index @example 0 */
|
|
193
|
+
id: number
|
|
194
|
+
/** Thumbnail URL (600x338) */
|
|
195
|
+
path_thumbnail: string
|
|
196
|
+
/** Full size URL (1920x1080) */
|
|
197
|
+
path_full: string
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface GameMetaMovie {
|
|
201
|
+
/** Movie ID @example 256972298 */
|
|
202
|
+
id: number
|
|
203
|
+
/** @example "Launch Trailer" */
|
|
204
|
+
name: string
|
|
205
|
+
/** Thumbnail URL */
|
|
206
|
+
thumbnail: string
|
|
207
|
+
/** DASH AV1 manifest URL */
|
|
208
|
+
dash_av1: string
|
|
209
|
+
/** DASH H.264 manifest URL */
|
|
210
|
+
dash_h264: string
|
|
211
|
+
/** HLS H.264 master playlist URL */
|
|
212
|
+
hls_h264: string
|
|
213
|
+
/** Whether this is a highlighted trailer */
|
|
214
|
+
highlight: boolean
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface GameMetaAchievements {
|
|
218
|
+
/** Total number of achievements @example 1 */
|
|
219
|
+
total: number
|
|
220
|
+
/** Featured achievements shown on the store page */
|
|
221
|
+
highlighted: {
|
|
222
|
+
name: string
|
|
223
|
+
path: string
|
|
224
|
+
}[]
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface GameMetaReleaseDate {
|
|
228
|
+
/** Whether the game is unreleased */
|
|
229
|
+
coming_soon: boolean
|
|
230
|
+
/** Formatted release date @example "21 Aug, 2012" */
|
|
231
|
+
date: string
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface GameMetaContentDescriptors {
|
|
235
|
+
/** Content descriptor IDs @example [2, 5] */
|
|
236
|
+
ids: number[]
|
|
237
|
+
/** @example "Includes intense violence and blood." */
|
|
238
|
+
notes: string | null
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface GameMetaPriceOverview {
|
|
242
|
+
/** Currency code @example "USD" */
|
|
243
|
+
currency: string
|
|
244
|
+
/** Original price in cents @example 5999 */
|
|
245
|
+
initial: number
|
|
246
|
+
/** Final price in cents after discount @example 5999 */
|
|
247
|
+
final: number
|
|
248
|
+
/** Discount percentage, `0` for no discount */
|
|
249
|
+
discount_percent: number
|
|
250
|
+
/** Formatted original price @example "$59.99" */
|
|
251
|
+
initial_formatted: string
|
|
252
|
+
/** Formatted final price @example "$59.99" */
|
|
253
|
+
final_formatted: string
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface GameMetaMetacritic {
|
|
257
|
+
/** Metacritic score @example 83 */
|
|
258
|
+
score: number
|
|
259
|
+
/** Metacritic page URL */
|
|
260
|
+
url: string
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface GameMetaRating {
|
|
264
|
+
rating: string
|
|
265
|
+
/** Age rating descriptors */
|
|
266
|
+
descriptors?: string
|
|
267
|
+
/** Whether rating was auto-generated */
|
|
268
|
+
rating_generated?: string
|
|
269
|
+
required_age?: string
|
|
270
|
+
banned?: string
|
|
271
|
+
use_age_gate?: string
|
|
272
|
+
}
|
|
273
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vtbs.moe API
|
|
3
|
+
*/
|
|
4
|
+
export declare namespace Vtbs {
|
|
5
|
+
/**
|
|
6
|
+
* VUP 列表,经过筛选的,并非 vtbs 官方列表,由 vtb 和 vdb 聚合而来
|
|
7
|
+
* @link https://github.com/sparanoid/vup.json
|
|
8
|
+
*/
|
|
9
|
+
export interface VupListItem {
|
|
10
|
+
uid: number
|
|
11
|
+
name: string
|
|
12
|
+
type: string
|
|
13
|
+
room: number | null
|
|
14
|
+
face: string
|
|
15
|
+
group_name: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 根据 vup list 增强后的数据
|
|
20
|
+
*/
|
|
21
|
+
export interface EnrichedGlobalGuardItem extends GlobalGuardItem {
|
|
22
|
+
uid: number
|
|
23
|
+
_t1: number
|
|
24
|
+
_t2: number
|
|
25
|
+
_t3: number
|
|
26
|
+
_price_t1: number
|
|
27
|
+
_price_t2: number
|
|
28
|
+
_price_t3: number
|
|
29
|
+
_price_sum: number
|
|
30
|
+
ddEnriched: VupListItem[][]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* dd 大航海
|
|
35
|
+
*/
|
|
36
|
+
export interface GlobalGuard {
|
|
37
|
+
[key: string]: GlobalGuardItem
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* dd 大航海 item
|
|
42
|
+
* @link https://api.vtbs.moe/v1/guard/all
|
|
43
|
+
* @link https://api.vtbs.moe/v1/guard/some
|
|
44
|
+
*/
|
|
45
|
+
export interface GlobalGuardItem {
|
|
46
|
+
uname: string
|
|
47
|
+
face: string
|
|
48
|
+
mid: number
|
|
49
|
+
dd: [number[], number[], number[]]
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 大航海历史 chart
|
|
54
|
+
*/
|
|
55
|
+
export interface LiveGuardsHistoryItem {
|
|
56
|
+
guardNum: number
|
|
57
|
+
time: number
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 直播间详细信息
|
|
62
|
+
*/
|
|
63
|
+
export interface LiveDetails {
|
|
64
|
+
mid: number
|
|
65
|
+
uuid: string
|
|
66
|
+
uname: string
|
|
67
|
+
video: number
|
|
68
|
+
roomid: number
|
|
69
|
+
sign: string
|
|
70
|
+
notice: string
|
|
71
|
+
face: string
|
|
72
|
+
rise: number
|
|
73
|
+
topPhoto: string
|
|
74
|
+
archiveView: number
|
|
75
|
+
follower: number
|
|
76
|
+
liveStatus: number
|
|
77
|
+
recordNum: number
|
|
78
|
+
guardNum: number
|
|
79
|
+
lastLive: {
|
|
80
|
+
online: number
|
|
81
|
+
time: number
|
|
82
|
+
}
|
|
83
|
+
guardChange: number
|
|
84
|
+
/**
|
|
85
|
+
* 总督,提督,舰长
|
|
86
|
+
*/
|
|
87
|
+
guardType: [number, number, number]
|
|
88
|
+
online: number
|
|
89
|
+
title: string
|
|
90
|
+
time: number
|
|
91
|
+
liveStartTime: number
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zeroroku API
|
|
3
|
+
*/
|
|
4
|
+
export declare namespace Zeroroku {
|
|
5
|
+
/**
|
|
6
|
+
* 被知名 UP 关注
|
|
7
|
+
*/
|
|
8
|
+
export interface FamousFansItem {
|
|
9
|
+
name: string
|
|
10
|
+
mid: number
|
|
11
|
+
face: string
|
|
12
|
+
fans: number
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* /fans-history API 中粉丝数项目
|
|
17
|
+
*/
|
|
18
|
+
export interface FansItem {
|
|
19
|
+
fans: number
|
|
20
|
+
created_at: string
|
|
21
|
+
date: string
|
|
22
|
+
}
|
|
23
|
+
}
|