@laplace.live/internal 1.2.54 → 1.2.56

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.
Files changed (2) hide show
  1. package/index.d.ts +328 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -615,12 +615,14 @@ export declare namespace LaplaceInternal {
615
615
 
616
616
  /** Tag with usage count (viewer-facing, entity type is not exposed) */
617
617
  export interface TagWithCount extends Tag {
618
+ /** Number of entities using this tag, computed on-the-fly for the requested entity type. */
618
619
  count: number
619
620
  }
620
621
 
621
622
  /** Full tag definition (admin-facing, includes internal fields) */
622
623
  export interface TagAdmin extends Tag {
623
624
  scope: string[] | null
625
+ /** Per-entity-type usage counts, computed on-the-fly. Keys are entity type names (e.g. `bilibili_user`, `bilibili_meme`). */
624
626
  entityCounts: Record<string, number>
625
627
  createdAt: string
626
628
  updatedAt: string
@@ -5975,6 +5977,332 @@ export declare namespace BilibiliInternal {
5975
5977
  ttl: number
5976
5978
  data: null
5977
5979
  }
5980
+
5981
+ /**
5982
+ * 视频元信息
5983
+ * @link https://api.bilibili.com/x/web-interface/view?bvid={bvid}
5984
+ * @example /bilibili/video-meta/BV1fkPazmENy
5985
+ */
5986
+ export interface VideoMeta {
5987
+ /**
5988
+ * - `0`: 成功
5989
+ * - `-400`: 请求错误
5990
+ * - `-403`: 权限不足
5991
+ * - `-404`: 无视频
5992
+ * - `62002`: 稿件不可见
5993
+ * - `62004`: 稿件审核中
5994
+ */
5995
+ code: number
5996
+ /** @example "OK" */
5997
+ message: string
5998
+ ttl: number
5999
+ data: VideoMetaData
6000
+ }
6001
+
6002
+ /** Data of `VideoMeta` */
6003
+ export interface VideoMetaData {
6004
+ /** BV 号 @example "BV1fkPazmENy" */
6005
+ bvid: string
6006
+ /** AV 号 @example 116187304304042 */
6007
+ aid: number
6008
+ /** 分P数量 @example 1 */
6009
+ videos: number
6010
+ /** 分区 ID @example 231 */
6011
+ tid: number
6012
+ /** 分区 ID v2 @example 2098 */
6013
+ tid_v2: number
6014
+ /** 分区名称 */
6015
+ tname: string
6016
+ /** 分区名称 v2 */
6017
+ tname_v2: string
6018
+ /**
6019
+ * 版权标志
6020
+ * - `1`: 原创
6021
+ * - `2`: 转载
6022
+ */
6023
+ copyright: number
6024
+ /** 封面图 URL @example "http://i1.hdslb.com/bfs/archive/0098eef11ef622a6f0b95a642216c68ecbea3b97.jpg" */
6025
+ pic: string
6026
+ /** 视频标题 */
6027
+ title: string
6028
+ /** 发布时间,UNIX 时间戳 @example 1772877873 */
6029
+ pubdate: number
6030
+ /** 投稿时间,UNIX 时间戳 @example 1772877873 */
6031
+ ctime: number
6032
+ /** 视频简介 */
6033
+ desc: string
6034
+ /** 视频简介 v2,结构化富文本 */
6035
+ desc_v2: VideoMetaDescV2[]
6036
+ /**
6037
+ * 视频状态
6038
+ * - `0`: 正常
6039
+ * - `-1`: 待审
6040
+ * - `-2`: 打回
6041
+ * - `-3`: 网警锁定
6042
+ * - `-4`: 锁定
6043
+ */
6044
+ state: number
6045
+ /** 视频时长,单位秒 @example 599 */
6046
+ duration: number
6047
+ /** 视频属性标志 */
6048
+ rights: VideoMetaRights
6049
+ /** 视频 UP 主信息 */
6050
+ owner: VideoMetaOwner
6051
+ /** 视频状态统计 */
6052
+ stat: VideoMetaStat
6053
+ /** 争议/声明信息 */
6054
+ argue_info: VideoMetaArgueInfo
6055
+ /** 动态内容 */
6056
+ dynamic: string
6057
+ /** 视频 CID,多P视频为第一P的 CID @example 36545235958 */
6058
+ cid: number
6059
+ /** 视频分辨率 */
6060
+ dimension: VideoMetaDimension
6061
+ premiere: null
6062
+ /** 青少年模式,`1` 为开启 */
6063
+ teenage_mode: number
6064
+ /** 是否为付费合集 */
6065
+ is_chargeable_season: boolean
6066
+ /** 是否为 Story 模式(竖屏视频) */
6067
+ is_story: boolean
6068
+ /** 是否为充电专属视频 */
6069
+ is_upower_exclusive: boolean
6070
+ is_upower_play: boolean
6071
+ is_upower_preview: boolean
6072
+ enable_vt: number
6073
+ vt_display: string
6074
+ is_upower_exclusive_with_qa: boolean
6075
+ no_cache: boolean
6076
+ /** 视频分P列表 */
6077
+ pages: VideoMetaPage[]
6078
+ /** 字幕信息 */
6079
+ subtitle: VideoMetaSubtitle
6080
+ label: { type: number }
6081
+ /** 是否为合集展示 */
6082
+ is_season_display: boolean
6083
+ /** 用户装扮信息 */
6084
+ user_garb: {
6085
+ /** 装扮动画裁剪图 URL */
6086
+ url_image_ani_cut: string
6087
+ }
6088
+ /** 荣誉信息 */
6089
+ honor_reply: { honor: VideoMetaHonor[] }
6090
+ like_icon: string
6091
+ need_jump_bv: boolean
6092
+ disable_show_up_info: boolean
6093
+ /** 是否为 Story 播放模式,`1` 为是 */
6094
+ is_story_play: number
6095
+ is_view_self: boolean
6096
+ }
6097
+
6098
+ /** 视频简介 v2 富文本条目 */
6099
+ export interface VideoMetaDescV2 {
6100
+ /** 富文本原始文本内容 */
6101
+ raw_text: string
6102
+ /**
6103
+ * 内容类型
6104
+ * - `1`: 普通文本
6105
+ * - `2`: @用户
6106
+ */
6107
+ type: number
6108
+ /** 关联业务 ID,普通文本时为 `0` */
6109
+ biz_id: number
6110
+ }
6111
+
6112
+ /** 视频属性标志 */
6113
+ export interface VideoMetaRights {
6114
+ /** 是否允许承包 */
6115
+ bp: number
6116
+ /** 是否允许充电 */
6117
+ elec: number
6118
+ /** 是否允许下载 */
6119
+ download: number
6120
+ /** 是否为电影 */
6121
+ movie: number
6122
+ /** 是否为付费视频 */
6123
+ pay: number
6124
+ /** 是否支持高清 1080P+ */
6125
+ hd5: number
6126
+ /** 是否禁止转载,`1` 为禁止 */
6127
+ no_reprint: number
6128
+ /** 是否自动播放 */
6129
+ autoplay: number
6130
+ /** 是否为 UGC 付费 */
6131
+ ugc_pay: number
6132
+ /** 是否为联合投稿 */
6133
+ is_cooperation: number
6134
+ ugc_pay_preview: number
6135
+ no_background: number
6136
+ clean_mode: number
6137
+ /** 是否为互动视频 */
6138
+ is_stein_gate: number
6139
+ /** 是否为全景视频 */
6140
+ is_360: number
6141
+ /** 是否禁止分享 */
6142
+ no_share: number
6143
+ arc_pay: number
6144
+ free_watch: number
6145
+ }
6146
+
6147
+ /** 视频 UP 主信息 */
6148
+ export interface VideoMetaOwner {
6149
+ /** UP 主 UID @example 2475977 */
6150
+ mid: number
6151
+ /** UP 主昵称 @example "人工大黑" */
6152
+ name: string
6153
+ /** UP 主头像 URL @example "https://i2.hdslb.com/bfs/face/de00113b700dd9394326c4ec05b5e130edcd980c.jpg" */
6154
+ face: string
6155
+ }
6156
+
6157
+ /** 视频状态统计 */
6158
+ export interface VideoMetaStat {
6159
+ /** AV 号 @example 116187304304042 */
6160
+ aid: number
6161
+ /** 播放量 @example 167044 */
6162
+ view: number
6163
+ /** 弹幕数 @example 610 */
6164
+ danmaku: number
6165
+ /** 评论数 @example 638 */
6166
+ reply: number
6167
+ /** 收藏数 @example 3542 */
6168
+ favorite: number
6169
+ /** 投币数 @example 1211 */
6170
+ coin: number
6171
+ /** 分享数 @example 967 */
6172
+ share: number
6173
+ /** 当前排名,`0` 为无排名 */
6174
+ now_rank: number
6175
+ /** 历史最高排名,`0` 为无 */
6176
+ his_rank: number
6177
+ /** 点赞数 @example 3071 */
6178
+ like: number
6179
+ /** 点踩数(已废弃,固定为 `0`) */
6180
+ dislike: number
6181
+ evaluation: string
6182
+ vt: number
6183
+ }
6184
+
6185
+ /** 争议/声明信息 */
6186
+ export interface VideoMetaArgueInfo {
6187
+ /** 声明内容 @example "作者声明:个人观点,仅供参考" */
6188
+ argue_msg: string
6189
+ argue_type: number
6190
+ argue_link: string
6191
+ }
6192
+
6193
+ /** 视频分辨率信息 */
6194
+ export interface VideoMetaDimension {
6195
+ /** @example 3840 */
6196
+ width: number
6197
+ /** @example 2560 */
6198
+ height: number
6199
+ /**
6200
+ * 是否旋转
6201
+ * - `0`: 正常
6202
+ * - `1`: 顺时针旋转90度
6203
+ */
6204
+ rotate: number
6205
+ }
6206
+
6207
+ /** 视频分P信息 */
6208
+ export interface VideoMetaPage {
6209
+ /** 分P CID @example 36545235958 */
6210
+ cid: number
6211
+ /** 分P序号,从 `1` 开始 @example 1 */
6212
+ page: number
6213
+ /** 来源,`vupload` 为UP主上传 @example "vupload" */
6214
+ from: string
6215
+ /** 分P标题 @example "有字幕-大" */
6216
+ part: string
6217
+ /** 分P时长,单位秒 @example 599 */
6218
+ duration: number
6219
+ vid: string
6220
+ weblink: string
6221
+ /** 分P分辨率 */
6222
+ dimension: VideoMetaDimension
6223
+ /** 第一帧画面 URL */
6224
+ first_frame: string
6225
+ /** 创建时间,UNIX 时间戳 */
6226
+ ctime: number
6227
+ }
6228
+
6229
+ /** 字幕信息 */
6230
+ export interface VideoMetaSubtitle {
6231
+ /** 是否允许投稿字幕 */
6232
+ allow_submit: boolean
6233
+ /** 字幕列表 */
6234
+ list: VideoMetaSubtitleItem[]
6235
+ }
6236
+
6237
+ /** 字幕条目 */
6238
+ export interface VideoMetaSubtitleItem {
6239
+ /** 字幕 ID @example 1969648887497179136 */
6240
+ id: number
6241
+ /** 字幕语言代码 @example "ai-zh" */
6242
+ lan: string
6243
+ /** 字幕语言名称 @example "中文" */
6244
+ lan_doc: string
6245
+ /** 是否锁定 */
6246
+ is_lock: boolean
6247
+ /** 字幕文件 URL */
6248
+ subtitle_url: string
6249
+ /**
6250
+ * 字幕类型
6251
+ * - `0`: CC字幕(UP主上传)
6252
+ * - `1`: AI字幕
6253
+ */
6254
+ type: number
6255
+ /** 字幕 ID 字符串形式 @example "1969648887497179136" */
6256
+ id_str: string
6257
+ ai_type: number
6258
+ /**
6259
+ * AI 字幕状态
6260
+ * - `0`: 无
6261
+ * - `1`: 生成中
6262
+ * - `2`: 已完成
6263
+ */
6264
+ ai_status: number
6265
+ subtitle_height: number | null
6266
+ /** 字幕作者信息 */
6267
+ author: VideoMetaSubtitleAuthor
6268
+ }
6269
+
6270
+ /** 字幕作者信息 */
6271
+ export interface VideoMetaSubtitleAuthor {
6272
+ /** 用户 UID,AI 字幕时为 `0` */
6273
+ mid: number
6274
+ name: string
6275
+ sex: string
6276
+ face: string
6277
+ sign: string
6278
+ rank: number
6279
+ birthday: number
6280
+ is_fake_account: number
6281
+ is_deleted: number
6282
+ in_reg_audit: number
6283
+ is_senior_member: number
6284
+ name_render: null
6285
+ handle: string
6286
+ }
6287
+
6288
+ /** 视频荣誉信息 */
6289
+ export interface VideoMetaHonor {
6290
+ /** AV 号 @example 116187304304042 */
6291
+ aid: number
6292
+ /**
6293
+ * 荣誉类型
6294
+ * - `1`: 入站必刷
6295
+ * - `2`: 每周必看
6296
+ * - `3`: 全站排行榜
6297
+ * - `4`: 热门
6298
+ * - `7`: 热门收录
6299
+ */
6300
+ type: number
6301
+ /** 荣誉描述 @example "热门收录" */
6302
+ desc: string
6303
+ /** 每周推荐次数 */
6304
+ weekly_recommend_num: number
6305
+ }
5978
6306
  }
5979
6307
 
5980
6308
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.54",
3
+ "version": "1.2.56",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"