@laplace.live/internal 1.2.53 → 1.2.55

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