@seayoo-web/gamer-api 2.9.8 → 2.10.0

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/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.9.8",
4
+ "version": "2.10.0",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -30,17 +30,17 @@
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.13.1",
33
- "@seayoo-web/combo-webview": "2.7.0",
34
33
  "@seayoo-web/request": "3.4.0",
35
- "@seayoo-web/scripts": "3.1.3",
34
+ "@seayoo-web/combo-webview": "2.7.0",
36
35
  "@seayoo-web/tsconfig": "1.0.5",
36
+ "@seayoo-web/validator": "1.1.0",
37
37
  "@seayoo-web/utils": "4.1.3",
38
- "@seayoo-web/validator": "1.1.0"
38
+ "@seayoo-web/scripts": "3.1.3"
39
39
  },
40
40
  "peerDependencies": {
41
+ "@seayoo-web/combo-webview": "^2.7.0",
41
42
  "@seayoo-web/utils": "^4.1.3",
42
- "@seayoo-web/validator": "^1.1.0",
43
- "@seayoo-web/combo-webview": "^2.7.0"
43
+ "@seayoo-web/validator": "^1.1.0"
44
44
  },
45
45
  "scripts": {
46
46
  "prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
@@ -17,6 +17,7 @@ import { type EventFeatureConfigOfSubscribe } from "./feature.subscribe";
17
17
  import { type EventFeatureConfigOfSurvey } from "./feature.survey";
18
18
  import { type EventFeatureConfigOfTeam } from "./feature.team";
19
19
  import { type EventFeatureConfigOfVote } from "./feature.vote";
20
+ import { type EventFeatureConfigOfVote2 } from "./feature.vote2";
20
21
  import { type EventFeatureConfigOfZeroChatgpt } from "./feature.zeroChatgpt";
21
22
  export * from "./feature.cashback";
22
23
  export * from "./feature.checkIn";
@@ -36,6 +37,7 @@ export * from "./feature.subscribe";
36
37
  export * from "./feature.survey";
37
38
  export * from "./feature.team";
38
39
  export * from "./feature.vote";
40
+ export * from "./feature.vote2";
39
41
  export * from "./feature.claimActivationKey";
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/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>;
42
+ export type EventFeatureConfig = EventFeatureConfigOfCashback | EventFeatureConfigOfCheckIn | EventFeatureConfigOfClaimRewards | EventFeatureConfigOfComment | EventFeatureConfigOfFollow | EventFeatureConfigOfGiftCode | EventFeatureConfigOfInvite | EventFeatureConfigOfInvitedRegister | EventFeatureConfigOfLottery | EventFeatureConfigOfLotteryDraw | EventFeatureConfigOfPreregister | EventFeatureConfigOfQuest | EventFeatureConfigOfRegister | EventFeatureConfigOfShare | EventFeatureConfigOfSubscribe | EventFeatureConfigOfSurvey | EventFeatureConfigOfTeam | EventFeatureConfigOfVote | EventFeatureConfigOfVote2 | EventFeatureConfigOfClaimActivationKey | EventFeatureConfigOfZeroChatgpt;
43
+ 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<EventFeatureConfigOfVote2, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>, import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>], false, false>;
@@ -0,0 +1,49 @@
1
+ import { type EventFeatureBaseConfig } from "./feature.base";
2
+ import { type CommonRewardItem } from "./reward";
3
+ declare const featureType: "vote2";
4
+ export interface FeatureVoteCandidate {
5
+ /** 选项标识 */
6
+ candidate_id: string;
7
+ /** 选项名称 */
8
+ display_name: string;
9
+ /** 选项图片地址 */
10
+ images?: string[];
11
+ /** 选项视频地址 */
12
+ videos?: string[];
13
+ /** 选项描述文本 */
14
+ description?: string;
15
+ /** 跳转地址 */
16
+ jump_url: string;
17
+ /** 用于修正得票数的基数。默认为 `0` */
18
+ base_votes: number;
19
+ /** 用于修正得票数的系数,不小于 `1.0`,默认为 `1.0` */
20
+ votes_multiplier: number;
21
+ }
22
+ export interface FeatureVote2Config {
23
+ /** 投票行为消耗活动道具 ID。可选,如果为 0 则同样表示不需要消耗道具 */
24
+ vote_item_id?: number;
25
+ /** 投票选项配置 */
26
+ candidates: FeatureVoteCandidate[];
27
+ /** 投票开始时间,秒时间戳 */
28
+ vote_since: number;
29
+ /** 投票结束时间,秒时间戳 */
30
+ vote_until: number;
31
+ /** 可领奖开始时间,秒时间戳 */
32
+ rewards_since: number;
33
+ /** 可领奖结束时间,秒时间戳 */
34
+ rewards_until: number;
35
+ /** 胜出策略,votes 得票数 manual 手动指定 */
36
+ winner_strategy: "votes" | "manual";
37
+ /** 获胜选项数量 */
38
+ total_winners: number;
39
+ /** 获胜奖励 */
40
+ winner_rewards?: CommonRewardItem[];
41
+ /** 安慰奖 */
42
+ consolation_rewards?: CommonRewardItem[];
43
+ }
44
+ export type EventFeatureConfigOfVote2 = EventFeatureBaseConfig & {
45
+ feature_type: typeof featureType;
46
+ config: FeatureVote2Config;
47
+ };
48
+ export declare const EventFeatureConfigOfVote2Validator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfVote2, false, false>;
49
+ export {};
@@ -52,4 +52,9 @@ export declare const FeatureRewardValidator: import("@seayoo-web/validator").Uni
52
52
  satisfies: never;
53
53
  lock: never;
54
54
  };
55
+ export interface CommonRewardItem {
56
+ item_id: number;
57
+ item_amount: number;
58
+ }
59
+ export declare const CommonRewardItemValidator: import("@seayoo-web/validator").ObjectValidator<CommonRewardItem, false, false>;
55
60
  export {};
@@ -65,8 +65,6 @@ export declare class EventApi {
65
65
  *
66
66
  * 💡活动下包含 engage_account_type 为 role_id 的玩法时,需要提供 server_id 和 role_id
67
67
  *
68
- * 🔕请求静默进行,无消息提示
69
- *
70
68
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=WzX5BrMNpL
71
69
  */
72
70
  getUserFeatureStatus(option?: {
@@ -131,7 +129,7 @@ export declare class EventApi {
131
129
  role_name?: string;
132
130
  }, requestOptions?: IRequestOptions): Promise<import("./event.define").EngageResponse | {
133
131
  message: string;
134
- error: RequestInternalError | "event_not_found" | "visit_record_not_found" | "feature_not_found" | "invalid_weixin_appid" | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "engage_feature_reached_limit" | "comment_too_frequently" | "lottery_reward_is_empty" | "invalid_merchant_parameter" | "budget_not_enough" | "combo_id_not_found" | "query_user_order_total_amount_err" | "unique_gift_code_is_empty" | "player_created_at_out_of_range" | "user_had_joined_a_team" | "team_is_full" | "disband_team_not_allowed" | "change_team_visibility_not_allowed" | "team_not_found" | "join_team_conflict" | "team_has_been_disbanded" | "exceeded_assembled_team_limit" | "invalid_engage_lottery_draw_ticket" | "lottery_ticket_not_found" | "draw_lottery_ticket_not_start" | "draw_lottery_ticket_is_ended" | "activation_group_not_found" | "activation_group_expired" | "no_claim_activation_key_eligibility" | "no_activation_key_available" | "activation_key_all_claimed";
132
+ error: RequestInternalError | "event_not_found" | "visit_record_not_found" | "feature_not_found" | "invalid_weixin_appid" | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "engage_feature_reached_limit" | "comment_too_frequently" | "lottery_reward_is_empty" | "invalid_merchant_parameter" | "budget_not_enough" | "combo_id_not_found" | "query_user_order_total_amount_err" | "unique_gift_code_is_empty" | "player_created_at_out_of_range" | "user_had_joined_a_team" | "team_is_full" | "disband_team_not_allowed" | "change_team_visibility_not_allowed" | "team_not_found" | "join_team_conflict" | "team_has_been_disbanded" | "exceeded_assembled_team_limit" | "invalid_engage_lottery_draw_ticket" | "lottery_ticket_not_found" | "draw_lottery_ticket_not_start" | "draw_lottery_ticket_is_ended" | "activation_group_not_found" | "activation_group_expired" | "no_claim_activation_key_eligibility" | "no_activation_key_available" | "activation_key_all_claimed" | "vote_not_started" | "vote_already_ended" | "vote_candidate_not_found" | "consume_item_not_enough";
135
133
  }>;
136
134
  /**
137
135
  * 用户领取除红包和实物奖励以外的所有奖励
@@ -306,7 +304,7 @@ export declare class EventApi {
306
304
  is_hyaline?: boolean;
307
305
  }, requestOptions?: IRequestOptions): Promise<string | null>;
308
306
  /**
309
- * 本接口用于获取任务玩法的实时进度数据
307
+ * 本接口用于获取任务玩法的实时进度数据,支持部分任务进度的查询:累计充值金额 / 累计游戏内活跃值 / 账号等级目标
310
308
  *
311
309
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=ZAnm12d3f0
312
310
  */
@@ -314,4 +312,19 @@ export declare class EventApi {
314
312
  message: string;
315
313
  error: RequestInternalError | "invalid_token" | "feature_not_found";
316
314
  } | null>;
315
+ /**
316
+ * 领取投票(vote2)玩法获得的奖励
317
+ *
318
+ * https://www.kdocs.cn/l/chlVWKom7DzU?linkname=fabGKteIEK
319
+ */
320
+ claimVote2Rewards(featureId: number, requestOptions?: IRequestOptions): Promise<import("./event.engage").Vote2ClaimRewardsResponse | {
321
+ message: string;
322
+ code: RequestInternalError | "vote_rewards_not_started" | "vote_rewards_already_ended" | "engagement_not_found";
323
+ } | null>;
324
+ /**
325
+ * 查询投票(vote2)玩法排行榜数据
326
+ *
327
+ * https://www.kdocs.cn/l/chlVWKom7DzU?linkname=cYZMVXbP4u
328
+ */
329
+ getVote2Leaderboard(featureId: number, requestOptions?: IRequestOptions): Promise<import("./event.engage").CandidateVote[]>;
317
330
  }
@@ -11,6 +11,7 @@ import { type WeixinSubscribeEngagementData } from "./engage.subscribe";
11
11
  import { type SurveyEngagementData } from "./engage.survey";
12
12
  import { type TeamEngagementData } from "./engage.team";
13
13
  import { type VoteEngagementData } from "./engage.vote";
14
+ import { type Vote2EngagementData } from "./engage.vote2";
14
15
  import { type ZeroChatGPTData } from "./engage.zeroChatGPT";
15
16
  export * from "./engage.cashback";
16
17
  export * from "./engage.comment";
@@ -25,14 +26,15 @@ export * from "./engage.subscribe";
25
26
  export * from "./engage.survey";
26
27
  export * from "./engage.team";
27
28
  export * from "./engage.vote";
29
+ export * from "./engage.vote2";
28
30
  export * from "./engage.claimActivationKey";
29
31
  export type EmptyObject = Record<string | number | symbol, never>;
30
- export type UserEngagementData = PreregisterEngagementData | LotteryEngagementData | SurveyEngagementData | InviteEngagementData | ShareEngagementData | VoteEngagementData | WeixinSubscribeEngagementData | CashbackEngagementData | GiftCodeEngagementData | TeamEngagementData | QuestEngagementData | LotteryDrawEngagementData | ClaimActivationKeyEngagementData | ZeroChatGPTData | EmptyObject;
32
+ export type UserEngagementData = PreregisterEngagementData | LotteryEngagementData | SurveyEngagementData | InviteEngagementData | ShareEngagementData | VoteEngagementData | Vote2EngagementData | WeixinSubscribeEngagementData | CashbackEngagementData | GiftCodeEngagementData | TeamEngagementData | QuestEngagementData | LotteryDrawEngagementData | ClaimActivationKeyEngagementData | ZeroChatGPTData | EmptyObject;
31
33
  export declare const UserEngagementDataValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<{
32
34
  platforms: string[];
33
35
  }, false, false>, import("@seayoo-web/validator").ObjectValidator<LotteryEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<{
34
36
  serial_number: number;
35
- }, false, false>, import("@seayoo-web/validator").ObjectValidator<InviteEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<ShareEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<VoteEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<WeixinSubscribeEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<CashbackEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<GiftCodeEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<TeamEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<QuestEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<{
37
+ }, false, false>, import("@seayoo-web/validator").ObjectValidator<InviteEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<ShareEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<VoteEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<Vote2EngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<WeixinSubscribeEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<CashbackEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<GiftCodeEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<TeamEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<QuestEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<{
36
38
  tickets: ({
37
39
  ticket: /*elided*/ any;
38
40
  status: /*elided*/ any;
@@ -0,0 +1,38 @@
1
+ import { type Vote2RewardType } from "../event.enums";
2
+ import { type UserReward } from "./engage.lotteryDraw.reward";
3
+ export interface Vote2EngagementData {
4
+ /** 用户投票选项 */
5
+ candidate_id: string;
6
+ /** 候选者最终总票数,当调用 engage api 时有效 */
7
+ total_votes?: number;
8
+ /** 用户向候选者投入的总票数,当调用 engage api 时有效 */
9
+ my_votes?: number;
10
+ /** 用户当次向投出的票数,当调用 getUserEngagements api 时有效 */
11
+ votes?: number;
12
+ }
13
+ export declare const Vote2EngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<Vote2EngagementData, false, false>;
14
+ export interface Vote2EngagementParam {
15
+ /** 选项ID */
16
+ candidate_id: string;
17
+ /** 投票数量 */
18
+ votes: number;
19
+ }
20
+ export interface Vote2ClaimRewardsResponse {
21
+ /** 奖励结算状态 */
22
+ rewards_type: Vote2RewardType;
23
+ /** 投票玩法获得的奖励 */
24
+ rewards?: UserReward[];
25
+ }
26
+ export declare const Vote2ClaimRewardsResponseValidator: import("@seayoo-web/validator").ObjectValidator<Vote2ClaimRewardsResponse, false, false>;
27
+ /** 投票信息摘要 */
28
+ export interface CandidateVote {
29
+ /** 候选者唯一标识 */
30
+ candidate_id: string;
31
+ /** 是否是获胜者 */
32
+ is_winner: boolean;
33
+ /** 候选者最终总票数 */
34
+ total_votes: number;
35
+ /** 用户向候选者投入的总票数 */
36
+ my_votes: number;
37
+ }
38
+ export declare const CandidateVoteValidator: import("@seayoo-web/validator").ObjectValidator<CandidateVote, false, false>;
@@ -1,4 +1,4 @@
1
- import { type UserEngagementData, type CommentEngagementParam, type PreregisterEngagementParam, type LotteryEngagementParam, type LotteryDrawEngagementParam, type ShareEngagementParam, type SubscribeEngagementParam, type TeamEngagementParam, type VoteEngagementParam } from "./engage";
1
+ import { type UserEngagementData, type CommentEngagementParam, type PreregisterEngagementParam, type LotteryEngagementParam, type LotteryDrawEngagementParam, type ShareEngagementParam, type SubscribeEngagementParam, type TeamEngagementParam, type VoteEngagementParam, type Vote2EngagementParam } from "./engage";
2
2
  import { type Reward } from "./reward";
3
3
  import type { FeatureType } from "../event.enums";
4
4
  import type { ZeroChatGPTEngagementParam } from "./engage.zeroChatGPT";
@@ -32,9 +32,9 @@ export declare const UserEngagementValidator: import("@seayoo-web/validator").Ob
32
32
  /**
33
33
  * 部分玩法参与时需要提供的参数
34
34
  */
35
- export type EngagementParam = PreregisterEngagementParam | LotteryEngagementParam | CommentEngagementParam | ShareEngagementParam | VoteEngagementParam | SubscribeEngagementParam | TeamEngagementParam | LotteryDrawEngagementParam | ZeroChatGPTEngagementParam;
35
+ export type EngagementParam = PreregisterEngagementParam | LotteryEngagementParam | CommentEngagementParam | ShareEngagementParam | VoteEngagementParam | Vote2EngagementParam | SubscribeEngagementParam | TeamEngagementParam | LotteryDrawEngagementParam | ZeroChatGPTEngagementParam;
36
36
  export type EngagementFeatureType = FeatureType | unknown;
37
37
  /**
38
38
  * 根据玩法类型推导需要提交的参数数据类型
39
39
  */
40
- export type InferEngagementParam<T extends EngagementFeatureType> = [unknown] extends [T] ? EngagementParam : [T] extends ["preregister"] ? PreregisterEngagementParam : [T] extends ["lottery"] ? LotteryEngagementParam : [T] extends ["comment"] ? CommentEngagementParam : [T] extends ["share"] ? ShareEngagementParam : [T] extends ["vote"] ? VoteEngagementParam : [T] extends ["weixin_subscribe"] ? SubscribeEngagementParam : [T] extends ["team"] ? TeamEngagementParam : [T] extends ["lottery_draw"] ? LotteryDrawEngagementParam : [T] extends ["zero_chatgpt"] ? ZeroChatGPTEngagementParam : null;
40
+ export type InferEngagementParam<T extends EngagementFeatureType> = [unknown] extends [T] ? EngagementParam : [T] extends ["preregister"] ? PreregisterEngagementParam : [T] extends ["lottery"] ? LotteryEngagementParam : [T] extends ["comment"] ? CommentEngagementParam : [T] extends ["share"] ? ShareEngagementParam : [T] extends ["vote"] ? VoteEngagementParam : [T] extends ["vote2"] ? Vote2EngagementParam : [T] extends ["weixin_subscribe"] ? SubscribeEngagementParam : [T] extends ["team"] ? TeamEngagementParam : [T] extends ["lottery_draw"] ? LotteryDrawEngagementParam : [T] extends ["zero_chatgpt"] ? ZeroChatGPTEngagementParam : null;
@@ -40,6 +40,8 @@ export interface EngageReward {
40
40
  reward_item_icon_url: string;
41
41
  /** 奖励道具描述 */
42
42
  reward_item_desc?: string;
43
+ /** 奖励道具评级 */
44
+ reward_item_rating: number;
43
45
  /** 奖励道具数量 */
44
46
  reward_amount: number;
45
47
  /** 奖励状态 */
@@ -122,6 +122,8 @@ export declare const FeatureType: {
122
122
  readonly Comment: "comment";
123
123
  /** 投票 */
124
124
  readonly Vote: "vote";
125
+ /** 投票 V2 */
126
+ readonly Vote2: "vote2";
125
127
  /** 礼包码 */
126
128
  readonly GiftCode: "gift_code";
127
129
  /** 注册 */
@@ -416,3 +418,25 @@ export declare const QuestProgressAlgorithmOptionalValidator: import("@seayoo-we
416
418
  maybeNull: never;
417
419
  lock: never;
418
420
  };
421
+ /**
422
+ * vote2 玩法的奖励结算状态
423
+ */
424
+ export declare const Vote2RewardType: {
425
+ /** 尚未结算 */
426
+ readonly None: "none";
427
+ /** 获胜奖励 */
428
+ readonly Winner: "winner";
429
+ /** 安慰奖励 */
430
+ readonly Consolation: "consolation";
431
+ };
432
+ export type Vote2RewardType = (typeof Vote2RewardType)[keyof typeof Vote2RewardType];
433
+ export declare const Vote2RewardTypeValidator: import("@seayoo-web/validator").StringValidator<Vote2RewardType, false, false> & {
434
+ pattern: never;
435
+ url: never;
436
+ dataUri: never;
437
+ enum: never;
438
+ disallow: never;
439
+ optional: never;
440
+ maybeNull: never;
441
+ lock: never;
442
+ };
@@ -43,3 +43,7 @@ export declare const isGenerateUnlimitQrcodeResponse: (data: unknown) => data is
43
43
  img: string;
44
44
  };
45
45
  export declare const isQuestProgressResponse: (data: unknown) => data is import("./event.engage").QuestProgress;
46
+ export declare const isVote2ClaimRewardsResponse: (data: unknown) => data is import("./event.engage").Vote2ClaimRewardsResponse;
47
+ export declare const isVote2LeaderboardResponse: (data: unknown) => data is {
48
+ candidate_votes: import("./event.engage").CandidateVote[];
49
+ };