@seayoo-web/gamer-api 2.12.2 → 2.12.4

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/dist/index.js CHANGED
@@ -1223,7 +1223,7 @@ const v = {
1223
1223
  })
1224
1224
  )
1225
1225
  }), Fn = e.object({
1226
- ugc_id: e.string(),
1226
+ ugc_id: e.number(),
1227
1227
  title: e.string(),
1228
1228
  content: e.string().optional(),
1229
1229
  image_urls: e.array(e.string()).optional(),
@@ -1245,7 +1245,7 @@ const v = {
1245
1245
  role_name: e.string().optional(),
1246
1246
  total_likes: e.number().optional()
1247
1247
  })
1248
- ).maybeNull(),
1248
+ ).optional(),
1249
1249
  next_token: e.string().optional()
1250
1250
  }), In = e.object({
1251
1251
  existed: e.bool(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seayoo-web/gamer-api",
3
3
  "description": "agent for gamer api",
4
- "version": "2.12.2",
4
+ "version": "2.12.4",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -31,16 +31,16 @@
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.13.1",
33
33
  "@seayoo-web/combo-webview": "2.8.0",
34
- "@seayoo-web/scripts": "3.1.5",
35
34
  "@seayoo-web/tsconfig": "1.0.5",
36
- "@seayoo-web/utils": "4.1.3",
37
35
  "@seayoo-web/request": "3.4.0",
36
+ "@seayoo-web/scripts": "3.1.5",
37
+ "@seayoo-web/utils": "4.1.3",
38
38
  "@seayoo-web/validator": "1.1.1"
39
39
  },
40
40
  "peerDependencies": {
41
- "@seayoo-web/combo-webview": "^2.8.0",
42
41
  "@seayoo-web/utils": "^4.1.3",
43
- "@seayoo-web/validator": "^1.1.1"
42
+ "@seayoo-web/validator": "^1.1.1",
43
+ "@seayoo-web/combo-webview": "^2.8.0"
44
44
  },
45
45
  "scripts": {
46
46
  "prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
@@ -14,7 +14,7 @@ export type UgcEngagementParam = {
14
14
  };
15
15
  export interface UgcEngagementData {
16
16
  /** 投稿记录 ID */
17
- ugc_id: string;
17
+ ugc_id: number;
18
18
  /** 标题 */
19
19
  title: string;
20
20
  /** 描述 */
@@ -55,7 +55,7 @@ export interface UgcRecord {
55
55
  }
56
56
  export interface UgcRecordResponse {
57
57
  /** 稿件列表 */
58
- ugcs: Array<UgcRecord> | null;
58
+ ugcs?: Array<UgcRecord>;
59
59
  /** 分页标识,返回空表示后续没有数据了 */
60
60
  next_token?: string;
61
61
  }
@@ -454,7 +454,7 @@ export declare const UgcSocialMedia: {
454
454
  readonly Douyu: "douyu";
455
455
  };
456
456
  export type UgcSocialMedia = ValueOf<typeof UgcSocialMedia>;
457
- export declare const UgcSocialMediaValidator: import("@seayoo-web/validator").StringValidator<"douyin" | "xiaohongshu" | "taptap" | "bilibili" | "weibo" | "huya" | "douyu", false, false> & {
457
+ export declare const UgcSocialMediaValidator: import("@seayoo-web/validator").StringValidator<UgcSocialMedia, false, false> & {
458
458
  pattern: never;
459
459
  url: never;
460
460
  dataUri: never;