uapi-browser-sdk 0.1.12 → 0.1.13

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 (74) hide show
  1. package/README.md +1 -1
  2. package/dist/internal/src/apis/ClipzyApi.d.ts +0 -12
  3. package/dist/internal/src/apis/ClipzyApi.js +15 -36
  4. package/dist/internal/src/apis/ConvertApi.d.ts +0 -8
  5. package/dist/internal/src/apis/ConvertApi.js +10 -24
  6. package/dist/internal/src/apis/DailyApi.d.ts +0 -4
  7. package/dist/internal/src/apis/DailyApi.js +5 -12
  8. package/dist/internal/src/apis/DefaultApi.d.ts +0 -20
  9. package/dist/internal/src/apis/DefaultApi.js +25 -60
  10. package/dist/internal/src/apis/GameApi.d.ts +0 -20
  11. package/dist/internal/src/apis/GameApi.js +25 -60
  12. package/dist/internal/src/apis/ImageApi.d.ts +0 -44
  13. package/dist/internal/src/apis/ImageApi.js +55 -132
  14. package/dist/internal/src/apis/MiscApi.d.ts +0 -60
  15. package/dist/internal/src/apis/MiscApi.js +75 -180
  16. package/dist/internal/src/apis/NetworkApi.d.ts +0 -40
  17. package/dist/internal/src/apis/NetworkApi.js +50 -120
  18. package/dist/internal/src/apis/PoemApi.d.ts +0 -4
  19. package/dist/internal/src/apis/PoemApi.js +5 -12
  20. package/dist/internal/src/apis/RandomApi.d.ts +0 -16
  21. package/dist/internal/src/apis/RandomApi.js +20 -48
  22. package/dist/internal/src/apis/SocialApi.d.ts +0 -32
  23. package/dist/internal/src/apis/SocialApi.js +40 -96
  24. package/dist/internal/src/apis/StatusApi.d.ts +0 -8
  25. package/dist/internal/src/apis/StatusApi.js +10 -24
  26. package/dist/internal/src/apis/TextApi.d.ts +0 -44
  27. package/dist/internal/src/apis/TextApi.js +55 -132
  28. package/dist/internal/src/apis/TranslateApi.d.ts +0 -16
  29. package/dist/internal/src/apis/TranslateApi.js +20 -48
  30. package/dist/internal/src/apis/WebParseApi.d.ts +0 -16
  31. package/dist/internal/src/apis/WebParseApi.js +20 -48
  32. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.d.ts +1 -1
  33. package/dist/internal/src/models/GetMiscWeather200Response.d.ts +1 -1
  34. package/dist/internal/src/models/PostAiTranslateRequest.d.ts +2 -2
  35. package/dist/internal/src/models/PostSearchAggregateRequest.d.ts +2 -2
  36. package/dist/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.d.ts +2 -2
  37. package/dist/internal/src/models/PostTextAesDecryptAdvancedRequest.d.ts +2 -2
  38. package/dist/internal/src/models/PostTextAesEncryptAdvancedRequest.d.ts +3 -3
  39. package/dist/internal/src/models/PostTextConvertRequest.d.ts +2 -2
  40. package/dist/internal/src/models/PostTranslateStream400Response.d.ts +1 -1
  41. package/dist/internal/src/runtime.js +0 -15
  42. package/dist/src/errors.d.ts +85 -0
  43. package/dist/src/errors.js +247 -0
  44. package/dist/src/index.d.ts +5 -6
  45. package/dist/src/index.js +9 -10
  46. package/internal/.openapi-generator/VERSION +1 -1
  47. package/internal/src/apis/ClipzyApi.ts +15 -39
  48. package/internal/src/apis/ConvertApi.ts +10 -26
  49. package/internal/src/apis/DailyApi.ts +5 -13
  50. package/internal/src/apis/DefaultApi.ts +25 -65
  51. package/internal/src/apis/GameApi.ts +25 -65
  52. package/internal/src/apis/ImageApi.ts +55 -143
  53. package/internal/src/apis/MiscApi.ts +75 -195
  54. package/internal/src/apis/NetworkApi.ts +50 -130
  55. package/internal/src/apis/PoemApi.ts +5 -13
  56. package/internal/src/apis/RandomApi.ts +20 -52
  57. package/internal/src/apis/SocialApi.ts +40 -104
  58. package/internal/src/apis/StatusApi.ts +10 -26
  59. package/internal/src/apis/TextApi.ts +55 -143
  60. package/internal/src/apis/TranslateApi.ts +20 -52
  61. package/internal/src/apis/WebParseApi.ts +20 -52
  62. package/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.ts +1 -1
  63. package/internal/src/models/GetMiscWeather200Response.ts +1 -1
  64. package/internal/src/models/PostAiTranslateRequest.ts +2 -2
  65. package/internal/src/models/PostSearchAggregateRequest.ts +2 -2
  66. package/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.ts +2 -2
  67. package/internal/src/models/PostTextAesDecryptAdvancedRequest.ts +2 -2
  68. package/internal/src/models/PostTextAesEncryptAdvancedRequest.ts +3 -3
  69. package/internal/src/models/PostTextConvertRequest.ts +2 -2
  70. package/internal/src/models/PostTranslateStream400Response.ts +1 -1
  71. package/internal/src/runtime.ts +0 -18
  72. package/package.json +1 -1
  73. package/src/errors.ts +282 -0
  74. package/src/index.ts +12 -8
@@ -126,9 +126,10 @@ export interface GetSocialQqUserinfoRequest {
126
126
  export class SocialApi extends runtime.BaseAPI {
127
127
 
128
128
  /**
129
- * Creates request options for getGithubRepo without sending the request
129
+ * 需要快速获取一个GitHub仓库的核心信息?这个接口为你聚合了最有价值的数据,避免了多次调用GitHub官方API的麻烦,并且内置了缓存优化,速度更快、更稳定。 ### 聚合高价值数据 一次请求,即可获得以下信息: - **核心指标**: `star`, `fork`, `open_issues` 等关键统计数据。 - **项目详情**: 描述、主页、分支、语言、话题标签、开源协议。 - **参与者信息**: 获取协作者(`collaborators`)和推断的维护者(`maintainers`)列表,包括他们的公开邮箱(如果可用)。 > [!NOTE] > `collaborators` 字段在私有仓库或权限受限时可能为空。`maintainers` 是根据最新提交记录推断的,仅供参考。 ### 性能与稳定性 我们内置了多级缓存,有效避免触发GitHub的API速率限制。对于需要更高请求额度的用户,可以联系我们定制接口。
130
+ * 查询 GitHub 仓库
130
131
  */
131
- async getGithubRepoRequestOpts(requestParameters: GetGithubRepoRequest): Promise<runtime.RequestOpts> {
132
+ async getGithubRepoRaw(requestParameters: GetGithubRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetGithubRepo200Response>> {
132
133
  if (requestParameters['repo'] == null) {
133
134
  throw new runtime.RequiredError(
134
135
  'repo',
@@ -147,21 +148,12 @@ export class SocialApi extends runtime.BaseAPI {
147
148
 
148
149
  let urlPath = `/github/repo`;
149
150
 
150
- return {
151
+ const response = await this.request({
151
152
  path: urlPath,
152
153
  method: 'GET',
153
154
  headers: headerParameters,
154
155
  query: queryParameters,
155
- };
156
- }
157
-
158
- /**
159
- * 需要快速获取一个GitHub仓库的核心信息?这个接口为你聚合了最有价值的数据,避免了多次调用GitHub官方API的麻烦,并且内置了缓存优化,速度更快、更稳定。 ### 聚合高价值数据 一次请求,即可获得以下信息: - **核心指标**: `star`, `fork`, `open_issues` 等关键统计数据。 - **项目详情**: 描述、主页、分支、语言、话题标签、开源协议。 - **参与者信息**: 获取协作者(`collaborators`)和推断的维护者(`maintainers`)列表,包括他们的公开邮箱(如果可用)。 > [!NOTE] > `collaborators` 字段在私有仓库或权限受限时可能为空。`maintainers` 是根据最新提交记录推断的,仅供参考。 ### 性能与稳定性 我们内置了多级缓存,有效避免触发GitHub的API速率限制。对于需要更高请求额度的用户,可以联系我们定制接口。
160
- * 查询 GitHub 仓库
161
- */
162
- async getGithubRepoRaw(requestParameters: GetGithubRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetGithubRepo200Response>> {
163
- const requestOptions = await this.getGithubRepoRequestOpts(requestParameters);
164
- const response = await this.request(requestOptions, initOverrides);
156
+ }, initOverrides);
165
157
 
166
158
  return new runtime.JSONApiResponse(response, (jsonValue) => GetGithubRepo200ResponseFromJSON(jsonValue));
167
159
  }
@@ -176,9 +168,10 @@ export class SocialApi extends runtime.BaseAPI {
176
168
  }
177
169
 
178
170
  /**
179
- * Creates request options for getSocialBilibiliArchives without sending the request
171
+ * 想要获取UP主的所有投稿视频?或者想在你的应用里展示创作者的作品集?这个接口能帮你轻松实现。 ## 功能概述 通过用户的 `mid`(用户ID),你可以获取该UP主的投稿视频列表。接口支持关键词搜索、分页加载和多种排序方式,让你能够灵活地展示和分析创作者的内容。 ## 参数说明 - **`mid` (用户ID)**: B站用户的mid,必填参数。 - **`keywords` (搜索关键词)**: 可选,用于在该UP主的投稿中搜索特定关键词。 - **`orderby` (排序方式)**: - `pubdate`: 按最新发布排序(默认) - `views`: 按最多播放排序 - **`ps` (每页条数)**: 默认20条。 - **`pn` (页码)**: 默认1,用于分页。 ## 响应体字段说明 - **`total` (总稿件数)**: UP主的投稿总数。 - **`page` (当前页码)**: 当前返回的页码。 - **`size` (每页数量)**: 每页返回的视频数量。 - **`videos` (视频列表)**: 包含当前页的所有视频信息: - `aid`: 视频的AV号 - `bvid`: 视频的BV号 - `title`: 视频标题 - `cover`: 封面URL - `duration`: 时长(秒) - `play_count`: 播放量 - `publish_time`: 发布时间戳 - `create_time`: 创建时间戳 - `state`: 视频状态 - `is_ugc_pay`: 是否付费视频(0=免费,1=付费) - `is_interactive`: 是否为互动视频
172
+ * 查询 B站投稿
180
173
  */
181
- async getSocialBilibiliArchivesRequestOpts(requestParameters: GetSocialBilibiliArchivesRequest): Promise<runtime.RequestOpts> {
174
+ async getSocialBilibiliArchivesRaw(requestParameters: GetSocialBilibiliArchivesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliArchives200Response>> {
182
175
  if (requestParameters['mid'] == null) {
183
176
  throw new runtime.RequiredError(
184
177
  'mid',
@@ -213,21 +206,12 @@ export class SocialApi extends runtime.BaseAPI {
213
206
 
214
207
  let urlPath = `/social/bilibili/archives`;
215
208
 
216
- return {
209
+ const response = await this.request({
217
210
  path: urlPath,
218
211
  method: 'GET',
219
212
  headers: headerParameters,
220
213
  query: queryParameters,
221
- };
222
- }
223
-
224
- /**
225
- * 想要获取UP主的所有投稿视频?或者想在你的应用里展示创作者的作品集?这个接口能帮你轻松实现。 ## 功能概述 通过用户的 `mid`(用户ID),你可以获取该UP主的投稿视频列表。接口支持关键词搜索、分页加载和多种排序方式,让你能够灵活地展示和分析创作者的内容。 ## 参数说明 - **`mid` (用户ID)**: B站用户的mid,必填参数。 - **`keywords` (搜索关键词)**: 可选,用于在该UP主的投稿中搜索特定关键词。 - **`orderby` (排序方式)**: - `pubdate`: 按最新发布排序(默认) - `views`: 按最多播放排序 - **`ps` (每页条数)**: 默认20条。 - **`pn` (页码)**: 默认1,用于分页。 ## 响应体字段说明 - **`total` (总稿件数)**: UP主的投稿总数。 - **`page` (当前页码)**: 当前返回的页码。 - **`size` (每页数量)**: 每页返回的视频数量。 - **`videos` (视频列表)**: 包含当前页的所有视频信息: - `aid`: 视频的AV号 - `bvid`: 视频的BV号 - `title`: 视频标题 - `cover`: 封面URL - `duration`: 时长(秒) - `play_count`: 播放量 - `publish_time`: 发布时间戳 - `create_time`: 创建时间戳 - `state`: 视频状态 - `is_ugc_pay`: 是否付费视频(0=免费,1=付费) - `is_interactive`: 是否为互动视频
226
- * 查询 B站投稿
227
- */
228
- async getSocialBilibiliArchivesRaw(requestParameters: GetSocialBilibiliArchivesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliArchives200Response>> {
229
- const requestOptions = await this.getSocialBilibiliArchivesRequestOpts(requestParameters);
230
- const response = await this.request(requestOptions, initOverrides);
214
+ }, initOverrides);
231
215
 
232
216
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialBilibiliArchives200ResponseFromJSON(jsonValue));
233
217
  }
@@ -242,9 +226,10 @@ export class SocialApi extends runtime.BaseAPI {
242
226
  }
243
227
 
244
228
  /**
245
- * Creates request options for getSocialBilibiliLiveroom without sending the request
229
+ * 想知道你喜欢的主播开播了吗?或者想在你的应用里集成B站直播间状态?这个接口能满足你。 ## 功能概述 这是一个智能接口,你可以用主播的 `mid` (用户ID) 或者直播间的 `room_id` (长号或短号)来查询。它会返回直播间的详细信息,包括是否在直播、标题、封面、人气、分区等。 ## 响应体字段说明 - **`live_status` (直播状态)**: `0` 代表未开播,`1` 代表直播中,`2` 代表轮播中。
230
+ * 查询 B站直播间
246
231
  */
247
- async getSocialBilibiliLiveroomRequestOpts(requestParameters: GetSocialBilibiliLiveroomRequest): Promise<runtime.RequestOpts> {
232
+ async getSocialBilibiliLiveroomRaw(requestParameters: GetSocialBilibiliLiveroomRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliLiveroom200Response>> {
248
233
  const queryParameters: any = {};
249
234
 
250
235
  if (requestParameters['mid'] != null) {
@@ -260,21 +245,12 @@ export class SocialApi extends runtime.BaseAPI {
260
245
 
261
246
  let urlPath = `/social/bilibili/liveroom`;
262
247
 
263
- return {
248
+ const response = await this.request({
264
249
  path: urlPath,
265
250
  method: 'GET',
266
251
  headers: headerParameters,
267
252
  query: queryParameters,
268
- };
269
- }
270
-
271
- /**
272
- * 想知道你喜欢的主播开播了吗?或者想在你的应用里集成B站直播间状态?这个接口能满足你。 ## 功能概述 这是一个智能接口,你可以用主播的 `mid` (用户ID) 或者直播间的 `room_id` (长号或短号)来查询。它会返回直播间的详细信息,包括是否在直播、标题、封面、人气、分区等。 ## 响应体字段说明 - **`live_status` (直播状态)**: `0` 代表未开播,`1` 代表直播中,`2` 代表轮播中。
273
- * 查询 B站直播间
274
- */
275
- async getSocialBilibiliLiveroomRaw(requestParameters: GetSocialBilibiliLiveroomRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliLiveroom200Response>> {
276
- const requestOptions = await this.getSocialBilibiliLiveroomRequestOpts(requestParameters);
277
- const response = await this.request(requestOptions, initOverrides);
253
+ }, initOverrides);
278
254
 
279
255
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialBilibiliLiveroom200ResponseFromJSON(jsonValue));
280
256
  }
@@ -289,9 +265,10 @@ export class SocialApi extends runtime.BaseAPI {
289
265
  }
290
266
 
291
267
  /**
292
- * Creates request options for getSocialBilibiliReplies without sending the request
268
+ * 想要分析B站视频的评论区?这个接口可以帮你轻松获取评论数据,包括热门评论和最新评论,还支持分页加载。 ## 功能概述 通过视频的 `oid`(通常就是视频的`aid`),你可以分页获取该视频的评论区内容。你可以指定排序方式和分页参数,来精确地获取你需要的数据。 ## 参数说明 - **`sort` (排序方式)** - `0` 或 `time`:按时间排序 - `1` 或 `like`:按点赞排序 - `2` 或 `reply`:按回复数排序 - `3` 或 `hot`(也支持 `hottest`、`最热`):按最热排序 ## 响应体字段说明 - **`hots` (热门评论)**: 仅在请求第一页时,可能会返回热门评论列表。其结构与 `replies` 中的对象一致。 - **`replies` (评论列表)**: 这是一个数组,包含了当前页的评论。其中: - `root`: 指向根评论的ID。如果评论本身就是根评论,则为 `0`。 - `parent`: 指向该条回复所回复的上一级评论ID。如果评论是根评论,则为 `0`。
269
+ * 查询 B站评论
293
270
  */
294
- async getSocialBilibiliRepliesRequestOpts(requestParameters: GetSocialBilibiliRepliesRequest): Promise<runtime.RequestOpts> {
271
+ async getSocialBilibiliRepliesRaw(requestParameters: GetSocialBilibiliRepliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliReplies200Response>> {
295
272
  if (requestParameters['oid'] == null) {
296
273
  throw new runtime.RequiredError(
297
274
  'oid',
@@ -322,21 +299,12 @@ export class SocialApi extends runtime.BaseAPI {
322
299
 
323
300
  let urlPath = `/social/bilibili/replies`;
324
301
 
325
- return {
302
+ const response = await this.request({
326
303
  path: urlPath,
327
304
  method: 'GET',
328
305
  headers: headerParameters,
329
306
  query: queryParameters,
330
- };
331
- }
332
-
333
- /**
334
- * 想要分析B站视频的评论区?这个接口可以帮你轻松获取评论数据,包括热门评论和最新评论,还支持分页加载。 ## 功能概述 通过视频的 `oid`(通常就是视频的`aid`),你可以分页获取该视频的评论区内容。你可以指定排序方式和分页参数,来精确地获取你需要的数据。 ## 参数说明 - **`sort` (排序方式)** - `0` 或 `time`:按时间排序 - `1` 或 `like`:按点赞排序 - `2` 或 `reply`:按回复数排序 - `3` 或 `hot`(也支持 `hottest`、`最热`):按最热排序 ## 响应体字段说明 - **`hots` (热门评论)**: 仅在请求第一页时,可能会返回热门评论列表。其结构与 `replies` 中的对象一致。 - **`replies` (评论列表)**: 这是一个数组,包含了当前页的评论。其中: - `root`: 指向根评论的ID。如果评论本身就是根评论,则为 `0`。 - `parent`: 指向该条回复所回复的上一级评论ID。如果评论是根评论,则为 `0`。
335
- * 查询 B站评论
336
- */
337
- async getSocialBilibiliRepliesRaw(requestParameters: GetSocialBilibiliRepliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliReplies200Response>> {
338
- const requestOptions = await this.getSocialBilibiliRepliesRequestOpts(requestParameters);
339
- const response = await this.request(requestOptions, initOverrides);
307
+ }, initOverrides);
340
308
 
341
309
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialBilibiliReplies200ResponseFromJSON(jsonValue));
342
310
  }
@@ -351,9 +319,10 @@ export class SocialApi extends runtime.BaseAPI {
351
319
  }
352
320
 
353
321
  /**
354
- * Creates request options for getSocialBilibiliUserinfo without sending the request
322
+ * 想在你的应用里集成B站用户资料展示?这个接口可以轻松获取用户的公开信息。 ## 功能概述 通过一个用户的UID(那一串纯数字ID),你可以查询到该用户的昵称、性别、头像、等级、签名等一系列公开的基本信息。
323
+ * 查询 B站用户
355
324
  */
356
- async getSocialBilibiliUserinfoRequestOpts(requestParameters: GetSocialBilibiliUserinfoRequest): Promise<runtime.RequestOpts> {
325
+ async getSocialBilibiliUserinfoRaw(requestParameters: GetSocialBilibiliUserinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliUserinfo200Response>> {
357
326
  if (requestParameters['uid'] == null) {
358
327
  throw new runtime.RequiredError(
359
328
  'uid',
@@ -372,21 +341,12 @@ export class SocialApi extends runtime.BaseAPI {
372
341
 
373
342
  let urlPath = `/social/bilibili/userinfo`;
374
343
 
375
- return {
344
+ const response = await this.request({
376
345
  path: urlPath,
377
346
  method: 'GET',
378
347
  headers: headerParameters,
379
348
  query: queryParameters,
380
- };
381
- }
382
-
383
- /**
384
- * 想在你的应用里集成B站用户资料展示?这个接口可以轻松获取用户的公开信息。 ## 功能概述 通过一个用户的UID(那一串纯数字ID),你可以查询到该用户的昵称、性别、头像、等级、签名等一系列公开的基本信息。
385
- * 查询 B站用户
386
- */
387
- async getSocialBilibiliUserinfoRaw(requestParameters: GetSocialBilibiliUserinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliUserinfo200Response>> {
388
- const requestOptions = await this.getSocialBilibiliUserinfoRequestOpts(requestParameters);
389
- const response = await this.request(requestOptions, initOverrides);
349
+ }, initOverrides);
390
350
 
391
351
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialBilibiliUserinfo200ResponseFromJSON(jsonValue));
392
352
  }
@@ -401,9 +361,10 @@ export class SocialApi extends runtime.BaseAPI {
401
361
  }
402
362
 
403
363
  /**
404
- * Creates request options for getSocialBilibiliVideoinfo without sending the request
364
+ * 想在你的应用里展示B站视频的详细信息吗?无论是封面、标题,还是播放量、UP主信息,这个接口都能一网打尽。 ## 功能概述 通过提供视频的 `aid` `bvid`,你可以获取到该视频的完整元数据,包括多P信息、UP主资料、数据统计等。 ## 响应体字段说明 - **`copyright` (视频类型)**: `1` 代表原创,`2` 代表转载。 - **`owner` (UP主信息)**: 包含 `mid`, `name`, `face` 等UP主的基本资料。 - **`stat` (数据统计)**: 包含了播放、弹幕、评论、点赞、投币、收藏、分享等核心数据。 - **`pages` (分P列表)**: 这是一个数组,包含了视频的每一个分P的信息,即使是单P视频也会有一个元素。
365
+ * 查询 B站视频
405
366
  */
406
- async getSocialBilibiliVideoinfoRequestOpts(requestParameters: GetSocialBilibiliVideoinfoRequest): Promise<runtime.RequestOpts> {
367
+ async getSocialBilibiliVideoinfoRaw(requestParameters: GetSocialBilibiliVideoinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliVideoinfo200Response>> {
407
368
  const queryParameters: any = {};
408
369
 
409
370
  if (requestParameters['aid'] != null) {
@@ -419,21 +380,12 @@ export class SocialApi extends runtime.BaseAPI {
419
380
 
420
381
  let urlPath = `/social/bilibili/videoinfo`;
421
382
 
422
- return {
383
+ const response = await this.request({
423
384
  path: urlPath,
424
385
  method: 'GET',
425
386
  headers: headerParameters,
426
387
  query: queryParameters,
427
- };
428
- }
429
-
430
- /**
431
- * 想在你的应用里展示B站视频的详细信息吗?无论是封面、标题,还是播放量、UP主信息,这个接口都能一网打尽。 ## 功能概述 通过提供视频的 `aid` 或 `bvid`,你可以获取到该视频的完整元数据,包括多P信息、UP主资料、数据统计等。 ## 响应体字段说明 - **`copyright` (视频类型)**: `1` 代表原创,`2` 代表转载。 - **`owner` (UP主信息)**: 包含 `mid`, `name`, `face` 等UP主的基本资料。 - **`stat` (数据统计)**: 包含了播放、弹幕、评论、点赞、投币、收藏、分享等核心数据。 - **`pages` (分P列表)**: 这是一个数组,包含了视频的每一个分P的信息,即使是单P视频也会有一个元素。
432
- * 查询 B站视频
433
- */
434
- async getSocialBilibiliVideoinfoRaw(requestParameters: GetSocialBilibiliVideoinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialBilibiliVideoinfo200Response>> {
435
- const requestOptions = await this.getSocialBilibiliVideoinfoRequestOpts(requestParameters);
436
- const response = await this.request(requestOptions, initOverrides);
388
+ }, initOverrides);
437
389
 
438
390
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialBilibiliVideoinfo200ResponseFromJSON(jsonValue));
439
391
  }
@@ -448,9 +400,10 @@ export class SocialApi extends runtime.BaseAPI {
448
400
  }
449
401
 
450
402
  /**
451
- * Creates request options for getSocialQqGroupinfo without sending the request
403
+ * 想在你的应用里展示QQ群信息?这个接口让你轻松获取群名称、群头像、群简介、成员数量等详细公开信息。 ## 功能概述 你只需要提供一个QQ群号(5-12位纯数字),接口就会返回该群的完整公开信息。我们会先验证群号的有效性,确保返回的数据准确可靠。接口响应速度快,数据结构清晰,非常适合集成到各类应用场景中。 ## 返回数据说明 接口会返回以下QQ群的关键信息: ### 基础字段(所有群都有) - **群基础信息**: 包括群号、群名称,让你能够准确识别和展示群聊 - **视觉素材**: 提供群头像URL(支持多种尺寸),可直接用于在你的界面中展示群聊图标 - **群介绍资料**: 包含群描述/简介和群标签,帮助用户了解群聊的主题和特色 - **便捷入口**: 返回加群链接(二维码URL),方便用户一键加入感兴趣的群聊 - **成员统计**: 当前成员数和最大成员数,直观了解群规模 - **数据时效**: 提供最后更新时间戳,让你了解数据的新鲜度 ### 扩展字段(部分群有) - **活跃度**: 活跃成员数量(可选) - **群主信息**: 群主QQ号和UID(可选) - **时间信息**: 建群时间戳和格式化时间(可选) - **群等级**: 群等级数值(可选) - **群公告**: 群公告/简介内容(可选) - **认证信息**: 官方认证类型和说明(可选) 所有返回的数据都遵循标准的JSON格式,字段命名清晰,便于解析和使用。扩展字段仅在数据可用时返回,保持响应体精简。
404
+ * 查询 QQ 群信息
452
405
  */
453
- async getSocialQqGroupinfoRequestOpts(requestParameters: GetSocialQqGroupinfoRequest): Promise<runtime.RequestOpts> {
406
+ async getSocialQqGroupinfoRaw(requestParameters: GetSocialQqGroupinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialQqGroupinfo200Response>> {
454
407
  if (requestParameters['groupId'] == null) {
455
408
  throw new runtime.RequiredError(
456
409
  'groupId',
@@ -469,21 +422,12 @@ export class SocialApi extends runtime.BaseAPI {
469
422
 
470
423
  let urlPath = `/social/qq/groupinfo`;
471
424
 
472
- return {
425
+ const response = await this.request({
473
426
  path: urlPath,
474
427
  method: 'GET',
475
428
  headers: headerParameters,
476
429
  query: queryParameters,
477
- };
478
- }
479
-
480
- /**
481
- * 想在你的应用里展示QQ群信息?这个接口让你轻松获取群名称、群头像、群简介、成员数量等详细公开信息。 ## 功能概述 你只需要提供一个QQ群号(5-12位纯数字),接口就会返回该群的完整公开信息。我们会先验证群号的有效性,确保返回的数据准确可靠。接口响应速度快,数据结构清晰,非常适合集成到各类应用场景中。 ## 返回数据说明 接口会返回以下QQ群的关键信息: ### 基础字段(所有群都有) - **群基础信息**: 包括群号、群名称,让你能够准确识别和展示群聊 - **视觉素材**: 提供群头像URL(支持多种尺寸),可直接用于在你的界面中展示群聊图标 - **群介绍资料**: 包含群描述/简介和群标签,帮助用户了解群聊的主题和特色 - **便捷入口**: 返回加群链接(二维码URL),方便用户一键加入感兴趣的群聊 - **成员统计**: 当前成员数和最大成员数,直观了解群规模 - **数据时效**: 提供最后更新时间戳,让你了解数据的新鲜度 ### 扩展字段(部分群有) - **活跃度**: 活跃成员数量(可选) - **群主信息**: 群主QQ号和UID(可选) - **时间信息**: 建群时间戳和格式化时间(可选) - **群等级**: 群等级数值(可选) - **群公告**: 群公告/简介内容(可选) - **认证信息**: 官方认证类型和说明(可选) 所有返回的数据都遵循标准的JSON格式,字段命名清晰,便于解析和使用。扩展字段仅在数据可用时返回,保持响应体精简。
482
- * 查询 QQ 群信息
483
- */
484
- async getSocialQqGroupinfoRaw(requestParameters: GetSocialQqGroupinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialQqGroupinfo200Response>> {
485
- const requestOptions = await this.getSocialQqGroupinfoRequestOpts(requestParameters);
486
- const response = await this.request(requestOptions, initOverrides);
430
+ }, initOverrides);
487
431
 
488
432
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialQqGroupinfo200ResponseFromJSON(jsonValue));
489
433
  }
@@ -498,9 +442,10 @@ export class SocialApi extends runtime.BaseAPI {
498
442
  }
499
443
 
500
444
  /**
501
- * Creates request options for getSocialQqUserinfo without sending the request
445
+ * 这是一个功能丰富的QQ用户信息查询接口,能够获取QQ用户的详细公开信息。 ## 功能概述 通过QQ号查询用户的详细信息,包括基础资料、等级信息、VIP状态等。返回的信息丰富全面,适合用于用户画像分析、社交应用集成等场景。 ## 数据字段说明 - **基础信息**: 昵称、个性签名、头像、年龄、性别 - **联系信息**: QQ邮箱、个性域名(QID) - **等级信息**: QQ等级、VIP状态和等级 - **时间信息**: 注册时间、最后更新时间
446
+ * 查询 QQ 信息
502
447
  */
503
- async getSocialQqUserinfoRequestOpts(requestParameters: GetSocialQqUserinfoRequest): Promise<runtime.RequestOpts> {
448
+ async getSocialQqUserinfoRaw(requestParameters: GetSocialQqUserinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialQqUserinfo200Response>> {
504
449
  if (requestParameters['qq'] == null) {
505
450
  throw new runtime.RequiredError(
506
451
  'qq',
@@ -519,21 +464,12 @@ export class SocialApi extends runtime.BaseAPI {
519
464
 
520
465
  let urlPath = `/social/qq/userinfo`;
521
466
 
522
- return {
467
+ const response = await this.request({
523
468
  path: urlPath,
524
469
  method: 'GET',
525
470
  headers: headerParameters,
526
471
  query: queryParameters,
527
- };
528
- }
529
-
530
- /**
531
- * 这是一个功能丰富的QQ用户信息查询接口,能够获取QQ用户的详细公开信息。 ## 功能概述 通过QQ号查询用户的详细信息,包括基础资料、等级信息、VIP状态等。返回的信息丰富全面,适合用于用户画像分析、社交应用集成等场景。 ## 数据字段说明 - **基础信息**: 昵称、个性签名、头像、年龄、性别 - **联系信息**: QQ邮箱、个性域名(QID) - **等级信息**: QQ等级、VIP状态和等级 - **时间信息**: 注册时间、最后更新时间
532
- * 查询 QQ 信息
533
- */
534
- async getSocialQqUserinfoRaw(requestParameters: GetSocialQqUserinfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSocialQqUserinfo200Response>> {
535
- const requestOptions = await this.getSocialQqUserinfoRequestOpts(requestParameters);
536
- const response = await this.request(requestOptions, initOverrides);
472
+ }, initOverrides);
537
473
 
538
474
  return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialQqUserinfo200ResponseFromJSON(jsonValue));
539
475
  }
@@ -45,9 +45,10 @@ export interface GetStatusUsageRequest {
45
45
  export class StatusApi extends runtime.BaseAPI {
46
46
 
47
47
  /**
48
- * Creates request options for getStatusRatelimit without sending the request
48
+ * 想了解我们API的当前负载情况吗?这个接口为你提供了服务的“心电图”。 ## 功能概述 此接口返回我们后端自适应限流器的实时状态。你可以看到当前并发请求数、并发上限、系统负载、请求接受/拒绝数等核心指标。这对于监控API健康状况和性能表现至关重要。 > [!IMPORTANT] > 此接口为管理接口,需要提供有效的管理员级别API密钥才能访问。 ### 认证方式 请在请求头中添加 `Authorization: Bearer <你的API密钥>`。
49
+ * 限流状态
49
50
  */
50
- async getStatusRatelimitRequestOpts(requestParameters: GetStatusRatelimitRequest): Promise<runtime.RequestOpts> {
51
+ async getStatusRatelimitRaw(requestParameters: GetStatusRatelimitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetStatusRatelimit200Response>> {
51
52
  if (requestParameters['authorization'] == null) {
52
53
  throw new runtime.RequiredError(
53
54
  'authorization',
@@ -66,21 +67,12 @@ export class StatusApi extends runtime.BaseAPI {
66
67
 
67
68
  let urlPath = `/status/ratelimit`;
68
69
 
69
- return {
70
+ const response = await this.request({
70
71
  path: urlPath,
71
72
  method: 'GET',
72
73
  headers: headerParameters,
73
74
  query: queryParameters,
74
- };
75
- }
76
-
77
- /**
78
- * 想了解我们API的当前负载情况吗?这个接口为你提供了服务的“心电图”。 ## 功能概述 此接口返回我们后端自适应限流器的实时状态。你可以看到当前并发请求数、并发上限、系统负载、请求接受/拒绝数等核心指标。这对于监控API健康状况和性能表现至关重要。 > [!IMPORTANT] > 此接口为管理接口,需要提供有效的管理员级别API密钥才能访问。 ### 认证方式 请在请求头中添加 `Authorization: Bearer <你的API密钥>`。
79
- * 限流状态
80
- */
81
- async getStatusRatelimitRaw(requestParameters: GetStatusRatelimitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetStatusRatelimit200Response>> {
82
- const requestOptions = await this.getStatusRatelimitRequestOpts(requestParameters);
83
- const response = await this.request(requestOptions, initOverrides);
75
+ }, initOverrides);
84
76
 
85
77
  return new runtime.JSONApiResponse(response, (jsonValue) => GetStatusRatelimit200ResponseFromJSON(jsonValue));
86
78
  }
@@ -95,9 +87,10 @@ export class StatusApi extends runtime.BaseAPI {
95
87
  }
96
88
 
97
89
  /**
98
- * Creates request options for getStatusUsage without sending the request
90
+ * 想知道哪个API接口最受欢迎吗?这个接口提供了详细的“账单”。 ## 功能概述 此接口用于获取每个API端点(Endpoint)的使用情况统计。你可以查询所有端点的列表,也可以通过 `path` 参数指定查询某一个特定端点。返回信息包括调用次数和平均处理时长
91
+ * 获取API端点使用统计
99
92
  */
100
- async getStatusUsageRequestOpts(requestParameters: GetStatusUsageRequest): Promise<runtime.RequestOpts> {
93
+ async getStatusUsageRaw(requestParameters: GetStatusUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetStatusUsage200Response>> {
101
94
  const queryParameters: any = {};
102
95
 
103
96
  if (requestParameters['path'] != null) {
@@ -109,21 +102,12 @@ export class StatusApi extends runtime.BaseAPI {
109
102
 
110
103
  let urlPath = `/status/usage`;
111
104
 
112
- return {
105
+ const response = await this.request({
113
106
  path: urlPath,
114
107
  method: 'GET',
115
108
  headers: headerParameters,
116
109
  query: queryParameters,
117
- };
118
- }
119
-
120
- /**
121
- * 想知道哪个API接口最受欢迎吗?这个接口提供了详细的“账单”。 ## 功能概述 此接口用于获取每个API端点(Endpoint)的使用情况统计。你可以查询所有端点的列表,也可以通过 `path` 参数指定查询某一个特定端点。返回信息包括调用次数和平均处理时长
122
- * 获取API端点使用统计
123
- */
124
- async getStatusUsageRaw(requestParameters: GetStatusUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetStatusUsage200Response>> {
125
- const requestOptions = await this.getStatusUsageRequestOpts(requestParameters);
126
- const response = await this.request(requestOptions, initOverrides);
110
+ }, initOverrides);
127
111
 
128
112
  return new runtime.JSONApiResponse(response, (jsonValue) => GetStatusUsage200ResponseFromJSON(jsonValue));
129
113
  }