@seayoo-web/gamer-api 2.6.0 → 2.7.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.
Files changed (55) hide show
  1. package/dist/index.js +402 -398
  2. package/package.json +10 -8
  3. package/types/src/club.d.ts +4 -1
  4. package/types/src/club.define.d.ts +18 -18
  5. package/types/src/club.enums.d.ts +6 -6
  6. package/types/src/community.d.ts +1 -1
  7. package/types/src/community.define.d.ts +21 -21
  8. package/types/src/community.enums.d.ts +5 -5
  9. package/types/src/community.guards.d.ts +1 -1
  10. package/types/src/event.config/feature.base.d.ts +1 -1
  11. package/types/src/event.config/feature.cashback.d.ts +1 -1
  12. package/types/src/event.config/feature.checkIn.d.ts +1 -1
  13. package/types/src/event.config/feature.claimActivationKey.d.ts +1 -1
  14. package/types/src/event.config/feature.claimRewards.d.ts +1 -1
  15. package/types/src/event.config/feature.comment.d.ts +1 -1
  16. package/types/src/event.config/feature.d.ts +1 -1
  17. package/types/src/event.config/feature.follow.d.ts +1 -1
  18. package/types/src/event.config/feature.giftcode.d.ts +1 -1
  19. package/types/src/event.config/feature.invite.d.ts +1 -1
  20. package/types/src/event.config/feature.invitedRegister.d.ts +1 -1
  21. package/types/src/event.config/feature.lottery.d.ts +3 -3
  22. package/types/src/event.config/feature.lotteryDraw.d.ts +1 -1
  23. package/types/src/event.config/feature.preregister.d.ts +1 -1
  24. package/types/src/event.config/feature.quest.d.ts +1 -1
  25. package/types/src/event.config/feature.register.d.ts +1 -1
  26. package/types/src/event.config/feature.share.d.ts +1 -1
  27. package/types/src/event.config/feature.subscribe.d.ts +1 -1
  28. package/types/src/event.config/feature.survey.d.ts +1 -1
  29. package/types/src/event.config/feature.team.d.ts +1 -1
  30. package/types/src/event.config/feature.vote.d.ts +1 -1
  31. package/types/src/event.config/feature.zeroChatgpt.d.ts +1 -1
  32. package/types/src/event.config/index.d.ts +1 -1
  33. package/types/src/event.config/reward.d.ts +6 -6
  34. package/types/src/event.d.ts +2 -2
  35. package/types/src/event.define.d.ts +4 -4
  36. package/types/src/event.engage/engage.cashback.d.ts +1 -1
  37. package/types/src/event.engage/engage.claimActivationKey.d.ts +1 -1
  38. package/types/src/event.engage/engage.comment.d.ts +1 -1
  39. package/types/src/event.engage/engage.d.ts +5 -5
  40. package/types/src/event.engage/engage.giftcode.d.ts +1 -1
  41. package/types/src/event.engage/engage.invite.d.ts +1 -1
  42. package/types/src/event.engage/engage.lottery.d.ts +1 -1
  43. package/types/src/event.engage/engage.lotteryDraw.d.ts +3 -3
  44. package/types/src/event.engage/engage.lotteryDraw.reward.d.ts +1 -1
  45. package/types/src/event.engage/engage.preregister.d.ts +1 -1
  46. package/types/src/event.engage/engage.quest.d.ts +1 -1
  47. package/types/src/event.engage/engage.share.d.ts +1 -1
  48. package/types/src/event.engage/engage.subscribe.d.ts +1 -1
  49. package/types/src/event.engage/engage.survey.d.ts +1 -1
  50. package/types/src/event.engage/engage.team.d.ts +3 -3
  51. package/types/src/event.engage/engage.vote.d.ts +1 -1
  52. package/types/src/event.engage/engage.zeroChatGPT.d.ts +2 -2
  53. package/types/src/event.engage/index.d.ts +1 -1
  54. package/types/src/event.engage/reward.d.ts +2 -2
  55. package/types/src/event.enums.d.ts +16 -16
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.6.0",
4
+ "version": "2.7.1",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -30,15 +30,17 @@
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.13.1",
33
- "@seayoo-web/combo-webview": "^2.5.4",
34
- "@seayoo-web/request": "^3.3.2",
35
- "@seayoo-web/scripts": "^2.8.2",
36
- "@seayoo-web/tsconfig": "^1.0.5",
37
- "@seayoo-web/utils": "^3.7.1"
33
+ "@seayoo-web/combo-webview": "2.6.0",
34
+ "@seayoo-web/request": "3.4.0",
35
+ "@seayoo-web/utils": "4.0.2",
36
+ "@seayoo-web/tsconfig": "1.0.5",
37
+ "@seayoo-web/scripts": "3.0.5",
38
+ "@seayoo-web/validator": "1.0.1"
38
39
  },
39
40
  "peerDependencies": {
40
- "@seayoo-web/combo-webview": "^2.5.4",
41
- "@seayoo-web/utils": "^3.7.1"
41
+ "@seayoo-web/combo-webview": "2.6.0",
42
+ "@seayoo-web/utils": "4.0.2",
43
+ "@seayoo-web/validator": "1.0.1"
42
44
  },
43
45
  "scripts": {
44
46
  "prebuild": "pnpm -F request build && pnpm -F combo-webview build",
@@ -72,7 +72,10 @@ export declare class ClubApi {
72
72
  *
73
73
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=Qt822A57jd
74
74
  */
75
- updateUserProfile(option: ClubUserProfile, requestOptions?: IRequestOptions): Promise<ClubUserProfile | {
75
+ updateUserProfile(option: Partial<ClubUserProfile>, requestOptions?: IRequestOptions): Promise<ClubUserProfile | {
76
+ error: "OptionIsEmpty";
77
+ message: string;
78
+ } | {
76
79
  message: string;
77
80
  error: RequestInternalError | "player_not_found" | "sensitive_nickname" | "sensitive_bio" | "sensitive_avatar";
78
81
  }>;
@@ -30,7 +30,7 @@ export type ClubGlobalConfig = {
30
30
  /** 发送角色邮件的频次限制,单位:秒 */
31
31
  send_role_mail_rate_limit: number;
32
32
  };
33
- export declare const ClubGlobalConfigValidator: import("@seayoo-web/utils").ObjectValidator<ClubGlobalConfig, false, false> & {
33
+ export declare const ClubGlobalConfigValidator: import("@seayoo-web/validator").ObjectValidator<ClubGlobalConfig, false, false> & {
34
34
  plain: never;
35
35
  optional: never;
36
36
  maybeNull: never;
@@ -54,7 +54,7 @@ export type ClubPlayer = {
54
54
  /** 等级过期时间 */
55
55
  level_expire_time: number;
56
56
  };
57
- export declare const ClubPlayerValidator: import("@seayoo-web/utils").ObjectValidator<ClubPlayer, false, false> & {
57
+ export declare const ClubPlayerValidator: import("@seayoo-web/validator").ObjectValidator<ClubPlayer, false, false> & {
58
58
  plain: never;
59
59
  optional: never;
60
60
  maybeNull: never;
@@ -66,7 +66,7 @@ export type ServerBaseInfo = {
66
66
  /** 服务器名称 */
67
67
  server_name: string;
68
68
  };
69
- export declare const ServerBaseInfoValidator: import("@seayoo-web/utils").ObjectValidator<ServerBaseInfo, false, false> & {
69
+ export declare const ServerBaseInfoValidator: import("@seayoo-web/validator").ObjectValidator<ServerBaseInfo, false, false> & {
70
70
  plain: never;
71
71
  optional: never;
72
72
  maybeNull: never;
@@ -78,7 +78,7 @@ export type RoleBaseInfo = {
78
78
  /** 角色昵称 */
79
79
  role_name: string;
80
80
  };
81
- export declare const RoleBaseInfoValidator: import("@seayoo-web/utils").ObjectValidator<RoleBaseInfo, false, false> & {
81
+ export declare const RoleBaseInfoValidator: import("@seayoo-web/validator").ObjectValidator<RoleBaseInfo, false, false> & {
82
82
  plain: never;
83
83
  optional: never;
84
84
  maybeNull: never;
@@ -90,7 +90,7 @@ export type PlayerRole = RoleBaseInfo & ServerBaseInfo & {
90
90
  /** 最后一次登录时间 */
91
91
  last_login_time: number;
92
92
  };
93
- export declare const PlayerRoleValidator: import("@seayoo-web/utils").ObjectValidator<PlayerRole, false, false> & {
93
+ export declare const PlayerRoleValidator: import("@seayoo-web/validator").ObjectValidator<PlayerRole, false, false> & {
94
94
  plain: never;
95
95
  optional: never;
96
96
  maybeNull: never;
@@ -106,7 +106,7 @@ export type PlayerRoleCard = PlayerRole & {
106
106
  /** 宗门职位 */
107
107
  kin_position?: string;
108
108
  };
109
- export declare const PlayerRoleCardValidator: import("@seayoo-web/utils").ObjectValidator<PlayerRoleCard, false, false> & {
109
+ export declare const PlayerRoleCardValidator: import("@seayoo-web/validator").ObjectValidator<PlayerRoleCard, false, false> & {
110
110
  plain: never;
111
111
  optional: never;
112
112
  maybeNull: never;
@@ -128,7 +128,7 @@ export type ClubUserProfile = {
128
128
  day: number;
129
129
  };
130
130
  };
131
- export declare const ClubUserProfileValidator: import("@seayoo-web/utils").ObjectValidator<ClubUserProfile, false, false> & {
131
+ export declare const ClubUserProfileValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserProfile, false, false> & {
132
132
  plain: never;
133
133
  optional: never;
134
134
  maybeNull: never;
@@ -152,7 +152,7 @@ export type ClubAddress = {
152
152
  /** 是否默认地址 */
153
153
  is_default: boolean;
154
154
  };
155
- export declare const ClubAddressValidator: import("@seayoo-web/utils").ObjectValidator<ClubAddress, false, false> & {
155
+ export declare const ClubAddressValidator: import("@seayoo-web/validator").ObjectValidator<ClubAddress, false, false> & {
156
156
  plain: never;
157
157
  optional: never;
158
158
  maybeNull: never;
@@ -168,7 +168,7 @@ export type ClubUserCredit = {
168
168
  /** 积分余额 */
169
169
  balance_credit: number;
170
170
  };
171
- export declare const ClubUserCreditValidator: import("@seayoo-web/utils").ObjectValidator<ClubUserCredit, false, false> & {
171
+ export declare const ClubUserCreditValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserCredit, false, false> & {
172
172
  plain: never;
173
173
  optional: never;
174
174
  maybeNull: never;
@@ -188,7 +188,7 @@ export type ClubCreditLog = {
188
188
  /** 变动时间 */
189
189
  change_time: number;
190
190
  };
191
- export declare const ClubCreditLogValidator: import("@seayoo-web/utils").ObjectValidator<ClubCreditLog, false, false> & {
191
+ export declare const ClubCreditLogValidator: import("@seayoo-web/validator").ObjectValidator<ClubCreditLog, false, false> & {
192
192
  plain: never;
193
193
  optional: never;
194
194
  maybeNull: never;
@@ -212,7 +212,7 @@ export type ClubBenefitSummary = {
212
212
  /** 权益标签 */
213
213
  tag: string;
214
214
  };
215
- export declare const ClubBenefitSummaryValidator: import("@seayoo-web/utils").ObjectValidator<ClubBenefitSummary, false, false> & {
215
+ export declare const ClubBenefitSummaryValidator: import("@seayoo-web/validator").ObjectValidator<ClubBenefitSummary, false, false> & {
216
216
  plain: never;
217
217
  optional: never;
218
218
  maybeNull: never;
@@ -270,7 +270,7 @@ export type ClubProduct = {
270
270
  /** 当前可以兑换的数量 -1 代表不限制兑换数量 (只有关联了player的账号才会返回这个数据) */
271
271
  redeemable_quantity?: number;
272
272
  };
273
- export declare const ClubProductValidator: import("@seayoo-web/utils").ObjectValidator<ClubProduct, false, false> & {
273
+ export declare const ClubProductValidator: import("@seayoo-web/validator").ObjectValidator<ClubProduct, false, false> & {
274
274
  plain: never;
275
275
  optional: never;
276
276
  maybeNull: never;
@@ -280,7 +280,7 @@ export type ClubBenefit = Omit<ClubBenefitSummary, "tag"> & {
280
280
  /** 权益关联的商品详细信息 */
281
281
  product?: ClubProduct;
282
282
  };
283
- export declare const ClubBenefitValidator: import("@seayoo-web/utils").ObjectValidator<ClubBenefit, false, false> & {
283
+ export declare const ClubBenefitValidator: import("@seayoo-web/validator").ObjectValidator<ClubBenefit, false, false> & {
284
284
  plain: never;
285
285
  optional: never;
286
286
  maybeNull: never;
@@ -293,10 +293,10 @@ export type RedeemParams = {
293
293
  } | {
294
294
  address_id: number;
295
295
  };
296
- export declare const RedeemParamsValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<{
296
+ export declare const RedeemParamsValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<{
297
297
  server_id: string;
298
298
  role_id: string;
299
- }, false, false>, import("@seayoo-web/utils").ObjectValidator<{
299
+ }, false, false>, import("@seayoo-web/validator").ObjectValidator<{
300
300
  address_id: number;
301
301
  }, false, false>], false, false> & {
302
302
  optional: never;
@@ -323,7 +323,7 @@ export type ExtraPhysicalShipment = {
323
323
  /** 快递公司单号 */
324
324
  express_number: string;
325
325
  };
326
- export declare const ExtraPhysicalShipmentValidator: import("@seayoo-web/utils").ObjectValidator<ExtraPhysicalShipment, false, false> & {
326
+ export declare const ExtraPhysicalShipmentValidator: import("@seayoo-web/validator").ObjectValidator<ExtraPhysicalShipment, false, false> & {
327
327
  plain: never;
328
328
  optional: never;
329
329
  maybeNull: never;
@@ -334,7 +334,7 @@ export type ExtraGameReward = {
334
334
  role_id: string;
335
335
  role_name: string;
336
336
  };
337
- export declare const ExtraGameRewardValidator: import("@seayoo-web/utils").ObjectValidator<ExtraGameReward, false, false> & {
337
+ export declare const ExtraGameRewardValidator: import("@seayoo-web/validator").ObjectValidator<ExtraGameReward, false, false> & {
338
338
  plain: never;
339
339
  optional: never;
340
340
  maybeNull: never;
@@ -368,4 +368,4 @@ export type Redemption = {
368
368
  /** 额外附加数据 */
369
369
  extra_data?: ExtraPhysicalShipment | ExtraGameReward;
370
370
  };
371
- export declare const RedemptionValidator: import("@seayoo-web/utils").ObjectValidator<Redemption, false, false>;
371
+ export declare const RedemptionValidator: import("@seayoo-web/validator").ObjectValidator<Redemption, false, false>;
@@ -1,4 +1,4 @@
1
- import { type ValueOf } from "@seayoo-web/utils";
1
+ import type { ValueOf } from "@seayoo-web/utils";
2
2
  export declare const Gender: {
3
3
  /** 未知 */
4
4
  readonly Unknown: "unknown";
@@ -8,7 +8,7 @@ export declare const Gender: {
8
8
  readonly Female: "female";
9
9
  };
10
10
  export type Gender = ValueOf<typeof Gender>;
11
- export declare const GenderValidator: import("@seayoo-web/utils").StringValidator<Gender, false, false> & {
11
+ export declare const GenderValidator: import("@seayoo-web/validator").StringValidator<Gender, false, false> & {
12
12
  pattern: never;
13
13
  url: never;
14
14
  dataUri: never;
@@ -28,7 +28,7 @@ export declare const ClubCreditChangeType: {
28
28
  readonly Expired: "expired";
29
29
  };
30
30
  export type ClubCreditChangeType = ValueOf<typeof ClubCreditChangeType>;
31
- export declare const ClubCreditChangeTypeValidator: import("@seayoo-web/utils").StringValidator<ClubCreditChangeType, false, false> & {
31
+ export declare const ClubCreditChangeTypeValidator: import("@seayoo-web/validator").StringValidator<ClubCreditChangeType, false, false> & {
32
32
  pattern: never;
33
33
  url: never;
34
34
  dataUri: never;
@@ -54,7 +54,7 @@ export declare const ClubCreditChangeScene: {
54
54
  readonly Event: "event";
55
55
  };
56
56
  export type ClubCreditChangeScene = ValueOf<typeof ClubCreditChangeScene>;
57
- export declare const ClubCreditChangeSceneValidator: import("@seayoo-web/utils").StringValidator<ClubCreditChangeScene, false, false> & {
57
+ export declare const ClubCreditChangeSceneValidator: import("@seayoo-web/validator").StringValidator<ClubCreditChangeScene, false, false> & {
58
58
  pattern: never;
59
59
  url: never;
60
60
  dataUri: never;
@@ -73,7 +73,7 @@ export declare const ClubItemType: {
73
73
  readonly Virtual: "virtual";
74
74
  };
75
75
  export type ClubItemType = ValueOf<typeof ClubItemType>;
76
- export declare const ClubItemTypeValidator: import("@seayoo-web/utils").StringValidator<ClubItemType, false, false> & {
76
+ export declare const ClubItemTypeValidator: import("@seayoo-web/validator").StringValidator<ClubItemType, false, false> & {
77
77
  pattern: never;
78
78
  url: never;
79
79
  dataUri: never;
@@ -92,7 +92,7 @@ export declare const ClubRedemptionStatus: {
92
92
  readonly Failed: "failed";
93
93
  };
94
94
  export type ClubRedemptionStatus = ValueOf<typeof ClubRedemptionStatus>;
95
- export declare const ClubRedemptionStatusValidator: import("@seayoo-web/utils").StringValidator<ClubRedemptionStatus, false, false> & {
95
+ export declare const ClubRedemptionStatusValidator: import("@seayoo-web/validator").StringValidator<ClubRedemptionStatus, false, false> & {
96
96
  pattern: never;
97
97
  url: never;
98
98
  dataUri: never;
@@ -97,7 +97,7 @@ export declare class CommunityApi {
97
97
  topic_ids?: number[];
98
98
  }, requestOptions?: IRequestOptions): Promise<{
99
99
  post: import("./community.define").Post;
100
- antispam: import("./community.define").Antispam;
100
+ antispam: import("./community.define").Antispam | undefined;
101
101
  } | {
102
102
  message: string;
103
103
  error: RequestInternalError | "post_body_too_long" | "post_subject_too_long" | "post_tag_already_exists" | "moderation_check_text_error" | "moderation_check_image_error" | "unknown_moderation_suggestion" | "invalid_content_length" | "forum_disabled" | "not_allowed_to_post" | "please_real_name" | "post_tag_not_exists";
@@ -16,7 +16,7 @@ export interface Forum {
16
16
  /** 指定可发帖的用户 id */
17
17
  member_ids: number[];
18
18
  }
19
- export declare const ForumValidator: import("@seayoo-web/utils").ObjectValidator<Forum, false, false> & {
19
+ export declare const ForumValidator: import("@seayoo-web/validator").ObjectValidator<Forum, false, false> & {
20
20
  plain: never;
21
21
  optional: never;
22
22
  maybeNull: never;
@@ -36,7 +36,7 @@ export interface Topic {
36
36
  /** 话题下帖子数量 */
37
37
  post_num: number;
38
38
  }
39
- export declare const TopicValidator: import("@seayoo-web/utils").ObjectValidator<Topic, false, false> & {
39
+ export declare const TopicValidator: import("@seayoo-web/validator").ObjectValidator<Topic, false, false> & {
40
40
  plain: never;
41
41
  optional: never;
42
42
  maybeNull: never;
@@ -82,7 +82,7 @@ export interface Post {
82
82
  /** 帖子发布时间 */
83
83
  create_time: number;
84
84
  }
85
- export declare const PostValidator: import("@seayoo-web/utils").ObjectValidator<Post, false, false> & {
85
+ export declare const PostValidator: import("@seayoo-web/validator").ObjectValidator<Post, false, false> & {
86
86
  plain: never;
87
87
  optional: never;
88
88
  maybeNull: never;
@@ -92,7 +92,7 @@ export interface Antispam {
92
92
  /** 安全检测返回异常提示 */
93
93
  err_msg?: string;
94
94
  }
95
- export declare const AntispamValidator: import("@seayoo-web/utils").ObjectValidator<Antispam, false, false> & {
95
+ export declare const AntispamValidator: import("@seayoo-web/validator").ObjectValidator<Antispam, true, false> & {
96
96
  plain: never;
97
97
  optional: never;
98
98
  maybeNull: never;
@@ -110,7 +110,7 @@ export interface ReplyTo {
110
110
  /** 回复者的头像 */
111
111
  avatar_url: string;
112
112
  }
113
- export declare const ReplyToValidator: import("@seayoo-web/utils").ObjectValidator<ReplyTo, false, false> & {
113
+ export declare const ReplyToValidator: import("@seayoo-web/validator").ObjectValidator<ReplyTo, false, false> & {
114
114
  plain: never;
115
115
  optional: never;
116
116
  maybeNull: never;
@@ -146,7 +146,7 @@ export interface Reply {
146
146
  /** 回复发布时间 */
147
147
  create_time: number;
148
148
  }
149
- export declare const ReplyValidator: import("@seayoo-web/utils").ObjectValidator<Reply, false, false> & {
149
+ export declare const ReplyValidator: import("@seayoo-web/validator").ObjectValidator<Reply, false, false> & {
150
150
  plain: never;
151
151
  optional: never;
152
152
  maybeNull: never;
@@ -192,7 +192,7 @@ export interface Comment {
192
192
  /** 评论下最新两条回复 */
193
193
  replies?: Reply[];
194
194
  }
195
- export declare const CommentValidator: import("@seayoo-web/utils").ObjectValidator<Comment, false, false> & {
195
+ export declare const CommentValidator: import("@seayoo-web/validator").ObjectValidator<Comment, false, false> & {
196
196
  plain: never;
197
197
  optional: never;
198
198
  maybeNull: never;
@@ -206,7 +206,7 @@ export interface PresignedUrlResponse {
206
206
  /** 媒体文件是否已存在,已存在无需上传 */
207
207
  existed: boolean;
208
208
  }
209
- export declare const PresignedUrlResponseValidator: import("@seayoo-web/utils").ObjectValidator<PresignedUrlResponse, false, false> & {
209
+ export declare const PresignedUrlResponseValidator: import("@seayoo-web/validator").ObjectValidator<PresignedUrlResponse, false, false> & {
210
210
  plain: never;
211
211
  optional: never;
212
212
  maybeNull: never;
@@ -228,7 +228,7 @@ export interface NotificationBase {
228
228
  /** 触发通知的用户头像 */
229
229
  origin_user_avatar_url: string;
230
230
  }
231
- export declare const NotificationBaseValidator: import("@seayoo-web/utils").ObjectValidator<NotificationBase, false, false> & {
231
+ export declare const NotificationBaseValidator: import("@seayoo-web/validator").ObjectValidator<NotificationBase, false, false> & {
232
232
  plain: never;
233
233
  optional: never;
234
234
  maybeNull: never;
@@ -240,7 +240,7 @@ export interface NotificationPayloadSystem {
240
240
  /** 系统通知的内容 */
241
241
  system_message_content: string;
242
242
  }
243
- export declare const NotificationPayloadSystemValidator: import("@seayoo-web/utils").ObjectValidator<NotificationPayloadSystem, false, false> & {
243
+ export declare const NotificationPayloadSystemValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadSystem, false, false> & {
244
244
  plain: never;
245
245
  optional: never;
246
246
  maybeNull: never;
@@ -256,7 +256,7 @@ export interface NotificationPayloadPost {
256
256
  /** 帖子的首张图片地址 */
257
257
  post_image_url: string;
258
258
  }
259
- export declare const NotificationPayloadPostValidator: import("@seayoo-web/utils").ObjectValidator<NotificationPayloadPost, false, false> & {
259
+ export declare const NotificationPayloadPostValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadPost, false, false> & {
260
260
  plain: never;
261
261
  optional: never;
262
262
  maybeNull: never;
@@ -268,7 +268,7 @@ export interface NotificationPayloadComment {
268
268
  /** 评论内容 */
269
269
  comment_content: string;
270
270
  }
271
- export declare const NotificationPayloadCommentValidator: import("@seayoo-web/utils").ObjectValidator<NotificationPayloadComment, false, false> & {
271
+ export declare const NotificationPayloadCommentValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadComment, false, false> & {
272
272
  plain: never;
273
273
  optional: never;
274
274
  maybeNull: never;
@@ -280,7 +280,7 @@ export interface NotificationPayloadReply {
280
280
  /** 回复内容 */
281
281
  reply_content: string;
282
282
  }
283
- export declare const NotificationPayloadReplyValidator: import("@seayoo-web/utils").ObjectValidator<NotificationPayloadReply, false, false> & {
283
+ export declare const NotificationPayloadReplyValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadReply, false, false> & {
284
284
  plain: never;
285
285
  optional: never;
286
286
  maybeNull: never;
@@ -289,23 +289,23 @@ export declare const NotificationPayloadReplyValidator: import("@seayoo-web/util
289
289
  export interface NotificationSystem extends NotificationBase, NotificationPayloadSystem {
290
290
  notification_type: typeof NotificationType.System;
291
291
  }
292
- export declare const NotificationSystemValidator: import("@seayoo-web/utils").ObjectValidator<NotificationSystem, false, false>;
292
+ export declare const NotificationSystemValidator: import("@seayoo-web/validator").ObjectValidator<NotificationSystem, false, false>;
293
293
  export interface NotificationPost extends NotificationBase, NotificationPayloadPost {
294
294
  notification_type: typeof NotificationType.PostPinned | typeof NotificationType.PostHighlighted | typeof NotificationType.PostDeleted | typeof NotificationType.PostLiked;
295
295
  }
296
- export declare const NotificationPostValidator: import("@seayoo-web/utils").ObjectValidator<NotificationPost, false, false>;
296
+ export declare const NotificationPostValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPost, false, false>;
297
297
  export interface NotificationPostComment extends NotificationBase, NotificationPayloadPost, NotificationPayloadComment {
298
298
  notification_type: typeof NotificationType.PostCommented;
299
299
  }
300
- export declare const NotificationPostCommentValidator: import("@seayoo-web/utils").ObjectValidator<NotificationPostComment, false, false>;
300
+ export declare const NotificationPostCommentValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPostComment, false, false>;
301
301
  export interface NotificationCommentReply extends NotificationBase, NotificationPayloadComment, NotificationPayloadReply {
302
302
  notification_type: typeof NotificationType.CommentReplied;
303
303
  }
304
- export declare const NotificationCommentReplyValidator: import("@seayoo-web/utils").ObjectValidator<NotificationCommentReply, false, false>;
304
+ export declare const NotificationCommentReplyValidator: import("@seayoo-web/validator").ObjectValidator<NotificationCommentReply, false, false>;
305
305
  export interface NotificationComment extends NotificationBase, NotificationPayloadComment, NotificationPayloadPost {
306
306
  notification_type: typeof NotificationType.CommentLiked | typeof NotificationType.CommentDeleted;
307
307
  }
308
- export declare const NotificationCommentValidator: import("@seayoo-web/utils").ObjectValidator<NotificationComment, false, false>;
308
+ export declare const NotificationCommentValidator: import("@seayoo-web/validator").ObjectValidator<NotificationComment, false, false>;
309
309
  export interface NotificationReplyReplied extends NotificationBase, NotificationPayloadReply {
310
310
  notification_type: typeof NotificationType.ReplyReplied;
311
311
  /** 评论 ID */
@@ -315,14 +315,14 @@ export interface NotificationReplyReplied extends NotificationBase, Notification
315
315
  /** 回复的回复内容 */
316
316
  reply_to_reply_content: string;
317
317
  }
318
- export declare const NotificationReplyRepliedValidator: import("@seayoo-web/utils").ObjectValidator<NotificationReplyReplied, false, false>;
318
+ export declare const NotificationReplyRepliedValidator: import("@seayoo-web/validator").ObjectValidator<NotificationReplyReplied, false, false>;
319
319
  export interface NotificationReply extends NotificationBase, NotificationPayloadReply, NotificationPayloadComment {
320
320
  notification_type: typeof NotificationType.ReplyLiked | typeof NotificationType.ReplyDeleted;
321
321
  }
322
- export declare const NotificationReplyValidator: import("@seayoo-web/utils").ObjectValidator<NotificationReply, false, false>;
322
+ export declare const NotificationReplyValidator: import("@seayoo-web/validator").ObjectValidator<NotificationReply, false, false>;
323
323
  /** 社区通知 */
324
324
  export type NotificationAll = NotificationSystem | NotificationPost | NotificationPostComment | NotificationCommentReply | NotificationComment | NotificationReplyReplied | NotificationReply;
325
- export declare const NotificationValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<NotificationSystem, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationPost, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationPostComment, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationCommentReply, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationComment, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationReplyReplied, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationReply, false, false>], false, false> & {
325
+ export declare const NotificationValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<NotificationSystem, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationPost, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationPostComment, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationCommentReply, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationComment, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationReplyReplied, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationReply, false, false>], false, false> & {
326
326
  optional: never;
327
327
  maybeNull: never;
328
328
  key: never;
@@ -1,4 +1,4 @@
1
- import { type ValueOf } from "@seayoo-web/utils";
1
+ import type { ValueOf } from "@seayoo-web/utils";
2
2
  /** 社区板块模式 */
3
3
  export declare const ForumMode: {
4
4
  /** 所有人均可以发帖 */
@@ -7,7 +7,7 @@ export declare const ForumMode: {
7
7
  readonly Limit: "limit";
8
8
  };
9
9
  export type ForumMode = ValueOf<typeof ForumMode>;
10
- export declare const ForumModeValidator: import("@seayoo-web/utils").StringValidator<ForumMode, false, false> & {
10
+ export declare const ForumModeValidator: import("@seayoo-web/validator").StringValidator<ForumMode, false, false> & {
11
11
  pattern: never;
12
12
  url: never;
13
13
  dataUri: never;
@@ -29,7 +29,7 @@ export declare const PostStatus: {
29
29
  readonly Suspect: "suspect";
30
30
  };
31
31
  export type PostStatus = ValueOf<typeof PostStatus>;
32
- export declare const PostStatusValidator: import("@seayoo-web/utils").StringValidator<PostStatus, false, false> & {
32
+ export declare const PostStatusValidator: import("@seayoo-web/validator").StringValidator<PostStatus, false, false> & {
33
33
  pattern: never;
34
34
  url: never;
35
35
  dataUri: never;
@@ -49,7 +49,7 @@ export declare const NotificationCategory: {
49
49
  readonly Like: "like";
50
50
  };
51
51
  export type NotificationCategory = ValueOf<typeof NotificationCategory>;
52
- export declare const NotificationCategoryValidator: import("@seayoo-web/utils").StringValidator<NotificationCategory, false, false> & {
52
+ export declare const NotificationCategoryValidator: import("@seayoo-web/validator").StringValidator<NotificationCategory, false, false> & {
53
53
  pattern: never;
54
54
  url: never;
55
55
  dataUri: never;
@@ -87,7 +87,7 @@ export declare const NotificationType: {
87
87
  readonly ReplyDeleted: "reply_deleted";
88
88
  };
89
89
  export type NotificationType = ValueOf<typeof NotificationType>;
90
- export declare const NotificationTypeValidator: import("@seayoo-web/utils").StringValidator<NotificationType, false, false> & {
90
+ export declare const NotificationTypeValidator: import("@seayoo-web/validator").StringValidator<NotificationType, false, false> & {
91
91
  pattern: never;
92
92
  url: never;
93
93
  dataUri: never;
@@ -16,7 +16,7 @@ export declare const isGetPostsResponse: (data: unknown) => data is {
16
16
  };
17
17
  export declare const isCreatePostResponse: (data: unknown) => data is {
18
18
  post: import("./community.define").Post;
19
- antispam: import("./community.define").Antispam;
19
+ antispam: import("./community.define").Antispam | undefined;
20
20
  };
21
21
  export declare const isRelyListResponse: (data: unknown) => data is {
22
22
  replies: import("./community.define").Reply[];
@@ -22,4 +22,4 @@ export interface EventFeatureBaseConfig {
22
22
  /** 玩法参与奖励 */
23
23
  feature_rewards?: FeatureReward;
24
24
  }
25
- export declare const EventFeatureBaseConfigValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureBaseConfig, false, false>;
25
+ export declare const EventFeatureBaseConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureBaseConfig, false, false>;
@@ -14,5 +14,5 @@ export type EventFeatureConfigOfCashback = EventFeatureBaseConfig & {
14
14
  feature_type: typeof featureType;
15
15
  config: FeatureCashbackConfig;
16
16
  };
17
- export declare const EventFeatureConfigOfCashbackValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCashback, false, false>;
17
+ export declare const EventFeatureConfigOfCashbackValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfCashback, false, false>;
18
18
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "check_in";
3
3
  export type EventFeatureConfigOfCheckIn = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfCheckInValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>;
6
+ export declare const EventFeatureConfigOfCheckInValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>;
7
7
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "claim_activation_key";
3
3
  export type EventFeatureConfigOfClaimActivationKey = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfClaimActivationKeyValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>;
6
+ export declare const EventFeatureConfigOfClaimActivationKeyValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>;
7
7
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "claim_rewards";
3
3
  export type EventFeatureConfigOfClaimRewards = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfClaimRewardsValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>;
6
+ export declare const EventFeatureConfigOfClaimRewardsValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>;
7
7
  export {};
@@ -10,5 +10,5 @@ export type EventFeatureConfigOfComment = EventFeatureBaseConfig & {
10
10
  feature_type: typeof featureType;
11
11
  config: FeatureCommentConfig;
12
12
  };
13
- export declare const EventFeatureConfigOfCommentValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfComment, false, false>;
13
+ export declare const EventFeatureConfigOfCommentValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfComment, false, false>;
14
14
  export {};
@@ -38,4 +38,4 @@ export * from "./feature.team";
38
38
  export * from "./feature.vote";
39
39
  export * from "./feature.claimActivationKey";
40
40
  export type EventFeatureConfig = EventFeatureConfigOfCashback | EventFeatureConfigOfCheckIn | EventFeatureConfigOfClaimRewards | EventFeatureConfigOfComment | EventFeatureConfigOfFollow | EventFeatureConfigOfGiftCode | EventFeatureConfigOfInvite | EventFeatureConfigOfInvitedRegister | EventFeatureConfigOfLottery | EventFeatureConfigOfLotteryDraw | EventFeatureConfigOfPreregister | EventFeatureConfigOfQuest | EventFeatureConfigOfRegister | EventFeatureConfigOfShare | EventFeatureConfigOfSubscribe | EventFeatureConfigOfSurvey | EventFeatureConfigOfTeam | EventFeatureConfigOfVote | EventFeatureConfigOfClaimActivationKey | EventFeatureConfigOfZeroChatgpt;
41
- export declare const EventFeatureConfigValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCashback, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfComment, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfFollow, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvite, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLottery, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfPreregister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfQuest, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfShare, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSubscribe, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSurvey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfTeam, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfVote, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>], false, false>;
41
+ export declare const EventFeatureConfigValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfCashback, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfComment, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfFollow, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfInvite, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfLottery, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfPreregister, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfQuest, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfRegister, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfShare, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfSubscribe, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfSurvey, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfTeam, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfVote, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>], false, false>;
@@ -20,5 +20,5 @@ export type EventFeatureConfigOfFollow = EventFeatureBaseConfig & {
20
20
  feature_type: typeof featureType;
21
21
  config: FeatureFollowConfig;
22
22
  };
23
- export declare const EventFeatureConfigOfFollowValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfFollow, false, false>;
23
+ export declare const EventFeatureConfigOfFollowValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfFollow, false, false>;
24
24
  export {};
@@ -20,5 +20,5 @@ export type EventFeatureConfigOfGiftCode = EventFeatureBaseConfig & {
20
20
  feature_type: typeof featureType;
21
21
  config: FeatureGiftCodeConfig;
22
22
  };
23
- export declare const EventFeatureConfigOfGiftCodeValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>;
23
+ export declare const EventFeatureConfigOfGiftCodeValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>;
24
24
  export {};
@@ -8,5 +8,5 @@ export type EventFeatureConfigOfInvite = EventFeatureBaseConfig & {
8
8
  feature_type: typeof featureType;
9
9
  config: FeatureInviteConfig;
10
10
  };
11
- export declare const EventFeatureConfigOfInviteValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvite, false, false>;
11
+ export declare const EventFeatureConfigOfInviteValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfInvite, false, false>;
12
12
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "invited_register";
3
3
  export type EventFeatureConfigOfInvitedRegister = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfInvitedRegisterValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>;
6
+ export declare const EventFeatureConfigOfInvitedRegisterValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>;
7
7
  export {};
@@ -1,6 +1,6 @@
1
- import { type InferType } from "@seayoo-web/utils";
1
+ import { type InferType } from "@seayoo-web/validator";
2
2
  import { type EventFeatureBaseConfig } from "./feature.base";
3
- declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
3
+ declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"credit" | "activation_key" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "external_gift_code" | "void_item", false, false>;
4
4
  declare const featureType: "lottery";
5
5
  export interface FeatureLotteryItemConfig {
6
6
  /** 抽奖奖励道具 id */
@@ -36,5 +36,5 @@ export type EventFeatureConfigOfLottery = EventFeatureBaseConfig & {
36
36
  feature_type: typeof featureType;
37
37
  config: FeatureLotteryConfig;
38
38
  };
39
- export declare const EventFeatureConfigOfLotteryValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLottery, false, false>;
39
+ export declare const EventFeatureConfigOfLotteryValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfLottery, false, false>;
40
40
  export {};
@@ -10,5 +10,5 @@ export type EventFeatureConfigOfLotteryDraw = EventFeatureBaseConfig & {
10
10
  feature_type: typeof featureType;
11
11
  config: FeatureLotteryDrawConfig;
12
12
  };
13
- export declare const EventFeatureConfigOfLotteryDrawValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>;
13
+ export declare const EventFeatureConfigOfLotteryDrawValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>;
14
14
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "preregister";
3
3
  export type EventFeatureConfigOfPreregister = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfPreregisterValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfPreregister, false, false>;
6
+ export declare const EventFeatureConfigOfPreregisterValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfPreregister, false, false>;
7
7
  export {};
@@ -27,5 +27,5 @@ export type EventFeatureConfigOfQuest = EventFeatureBaseConfig & {
27
27
  feature_type: typeof featureType;
28
28
  config: FeatureQuestConfig;
29
29
  };
30
- export declare const EventFeatureConfigOfQuestValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfQuest, false, false>;
30
+ export declare const EventFeatureConfigOfQuestValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfQuest, false, false>;
31
31
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "register";
3
3
  export type EventFeatureConfigOfRegister = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfRegisterValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfRegister, false, false>;
6
+ export declare const EventFeatureConfigOfRegisterValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfRegister, false, false>;
7
7
  export {};