@seayoo-web/gamer-api 2.13.18 → 2.13.19
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 +400 -378
- package/package.json +6 -6
- package/types/src/club.d.ts +25 -0
- package/types/src/club.guards.d.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ const ve = {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}, f = "gamer_token";
|
|
62
|
-
class
|
|
62
|
+
class sa {
|
|
63
63
|
$NetRequest;
|
|
64
64
|
$idToken = "";
|
|
65
65
|
$weixinToken = "";
|
|
@@ -281,7 +281,7 @@ const Ce = {
|
|
|
281
281
|
Issued: "issued",
|
|
282
282
|
/** 发放失败 */
|
|
283
283
|
Failed: "failed"
|
|
284
|
-
}, Pe = e.string().enum(Se).lock(),
|
|
284
|
+
}, Pe = e.string().enum(Se).lock(), Ue = e.object({
|
|
285
285
|
default_avatar_url: e.string(),
|
|
286
286
|
official_avatar_urls: e.array(e.string()),
|
|
287
287
|
default_nickname: e.string(),
|
|
@@ -299,7 +299,7 @@ const Ce = {
|
|
|
299
299
|
exp_description: e.string(),
|
|
300
300
|
credit_description: e.string(),
|
|
301
301
|
send_role_mail_rate_limit: e.number()
|
|
302
|
-
}).lock(),
|
|
302
|
+
}).lock(), Ee = e.object({
|
|
303
303
|
member_id: e.string(),
|
|
304
304
|
player_id: e.string(),
|
|
305
305
|
exp: e.number(),
|
|
@@ -319,7 +319,7 @@ const Ce = {
|
|
|
319
319
|
...$e.shape,
|
|
320
320
|
role_level: e.number(),
|
|
321
321
|
last_login_time: e.number()
|
|
322
|
-
}).lock(),
|
|
322
|
+
}).lock(), Ie = e.object({
|
|
323
323
|
...J.shape,
|
|
324
324
|
/** 角色战力 */
|
|
325
325
|
role_fighting: e.number(),
|
|
@@ -329,7 +329,7 @@ const Ce = {
|
|
|
329
329
|
kin_name: e.string().optional(),
|
|
330
330
|
/** 宗门职位 */
|
|
331
331
|
kin_position: e.string().optional()
|
|
332
|
-
}).lock(),
|
|
332
|
+
}).lock(), De = e.object({
|
|
333
333
|
name: e.string(),
|
|
334
334
|
avatar_url: e.string(),
|
|
335
335
|
bio: e.string(),
|
|
@@ -403,7 +403,7 @@ const Ce = {
|
|
|
403
403
|
}).lock(), Oe = e.object({
|
|
404
404
|
...P(X.shape, "tag"),
|
|
405
405
|
product: Y.clone().optional()
|
|
406
|
-
}).lock(),
|
|
406
|
+
}).lock(), ca = e.union(
|
|
407
407
|
e.object({
|
|
408
408
|
server_id: e.string(),
|
|
409
409
|
role_id: e.string()
|
|
@@ -438,14 +438,18 @@ const Ce = {
|
|
|
438
438
|
status: Pe,
|
|
439
439
|
created_at: e.number(),
|
|
440
440
|
extra_data: e.union(Ne.clone(), Qe.clone()).satisfies().optional()
|
|
441
|
-
}), Me = e.guard(
|
|
441
|
+
}), Me = e.guard(Ue), N = s({ player: Ee }), Ke = s({ roles: e.array(J) }), T = s({ role_card: Ie }), Q = e.guard(De), B = e.guard(Z), He = s({ addresses: e.array(Z) }), ze = e.guard(Ae), Je = s({
|
|
442
442
|
credit_logs: e.array(Ge),
|
|
443
443
|
next_token: e.string().optional()
|
|
444
444
|
}), Ze = s({ products: e.array(Y) }), Xe = s({ benefits: e.array(X) }), Ye = s({ benefit: Oe }), We = s({
|
|
445
445
|
redemptions: e.array(Be),
|
|
446
446
|
next_token: e.string().optional()
|
|
447
|
+
}), et = s({
|
|
448
|
+
existed: e.bool(),
|
|
449
|
+
image_upload_url: e.string().optional(),
|
|
450
|
+
image_id: e.string()
|
|
447
451
|
});
|
|
448
|
-
class
|
|
452
|
+
class la {
|
|
449
453
|
token;
|
|
450
454
|
req;
|
|
451
455
|
constructor(t) {
|
|
@@ -711,6 +715,24 @@ class ca {
|
|
|
711
715
|
next_token: r?.next_token
|
|
712
716
|
};
|
|
713
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* 图片预上传地址获取,为 club 服务提供预签名上传 URL,供用户客户端上传图片资源
|
|
720
|
+
*
|
|
721
|
+
* https://www.kdocs.cn/l/cgp4gSBMbOf1?linkname=d4IHcCQu34
|
|
722
|
+
*/
|
|
723
|
+
async clubUploadImage(t, n) {
|
|
724
|
+
await this.token.autoLogin();
|
|
725
|
+
const { data: r, code: a, message: o } = await this.req.post(
|
|
726
|
+
"club/image-upload-url",
|
|
727
|
+
c(t),
|
|
728
|
+
et,
|
|
729
|
+
n
|
|
730
|
+
);
|
|
731
|
+
return r ?? {
|
|
732
|
+
message: o,
|
|
733
|
+
error: a
|
|
734
|
+
};
|
|
735
|
+
}
|
|
714
736
|
}
|
|
715
737
|
const v = {
|
|
716
738
|
/** 活动道具 */
|
|
@@ -735,17 +757,17 @@ const v = {
|
|
|
735
757
|
ExternalCode: "external_gift_code",
|
|
736
758
|
/** 空奖励 */
|
|
737
759
|
VoidItem: "void_item"
|
|
738
|
-
}, W = e.string().enum(v).lock(),
|
|
760
|
+
}, W = e.string().enum(v).lock(), ua = v, ee = W, tt = {
|
|
739
761
|
/** 世游通行证 ID / Combo ID */
|
|
740
762
|
UserId: "user_id",
|
|
741
763
|
/** 游戏角色 ID */
|
|
742
764
|
RoleId: "role_id"
|
|
743
|
-
},
|
|
765
|
+
}, nt = e.string().enum(tt).lock(), rt = {
|
|
744
766
|
None: "none",
|
|
745
767
|
Daily: "daily",
|
|
746
768
|
Weekly: "weekly",
|
|
747
769
|
Monthly: "monthly"
|
|
748
|
-
},
|
|
770
|
+
}, at = e.string().enum(rt).lock(), l = {
|
|
749
771
|
/** 预约 */
|
|
750
772
|
Preregister: "preregister",
|
|
751
773
|
/** 抽奖 */
|
|
@@ -792,7 +814,7 @@ const v = {
|
|
|
792
814
|
Ugc: "ugc",
|
|
793
815
|
/** 投稿点赞 */
|
|
794
816
|
UgcLike: "ugc_like"
|
|
795
|
-
},
|
|
817
|
+
}, ot = e.string().enum(l).lock(), it = {
|
|
796
818
|
/** 累计游戏内活跃值 */
|
|
797
819
|
Active: "player_active_points",
|
|
798
820
|
/** 累计登录,单位 人天 */
|
|
@@ -815,14 +837,14 @@ const v = {
|
|
|
815
837
|
EventItems: "event_items",
|
|
816
838
|
/**游戏内任务 */
|
|
817
839
|
GameTask: "game_task"
|
|
818
|
-
}, te = e.string().enum(
|
|
840
|
+
}, te = e.string().enum(it).lock(), st = {
|
|
819
841
|
/** 官方上传 */
|
|
820
842
|
System: "system",
|
|
821
843
|
/** 用户投稿 */
|
|
822
844
|
UserSubmission: "user_submission",
|
|
823
845
|
/** 投票入围 */
|
|
824
846
|
Shortlisted: "shortlisted"
|
|
825
|
-
},
|
|
847
|
+
}, ct = e.string().enum(st).lock(), d = {
|
|
826
848
|
/** 未获得奖励 */
|
|
827
849
|
Ineligible: "ineligible",
|
|
828
850
|
/** 奖励未领取 */
|
|
@@ -833,7 +855,7 @@ const v = {
|
|
|
833
855
|
Failed: "failed",
|
|
834
856
|
/** 奖励已发货 */
|
|
835
857
|
Delivered: "delivered"
|
|
836
|
-
},
|
|
858
|
+
}, ma = e.string().enum(d).lock(), lt = {
|
|
837
859
|
/** 奖励未领取 */
|
|
838
860
|
Unclaimed: d.Unclaimed,
|
|
839
861
|
/** 奖励已领取 */
|
|
@@ -842,7 +864,7 @@ const v = {
|
|
|
842
864
|
Failed: d.Failed,
|
|
843
865
|
/** 奖励已发货 */
|
|
844
866
|
Delivered: d.Delivered
|
|
845
|
-
}, ne = e.string().enum(
|
|
867
|
+
}, ne = e.string().enum(lt).lock(), ut = {
|
|
846
868
|
/** 未获得奖励 */
|
|
847
869
|
Ineligible: d.Ineligible,
|
|
848
870
|
/** 奖励未领取 */
|
|
@@ -853,17 +875,17 @@ const v = {
|
|
|
853
875
|
Failed: d.Failed,
|
|
854
876
|
/** 奖励已发货 */
|
|
855
877
|
Delivered: d.Delivered
|
|
856
|
-
},
|
|
878
|
+
}, U = e.string().enum(ut).lock(), mt = {
|
|
857
879
|
/** 玩法产出奖励 */
|
|
858
880
|
Output: "output",
|
|
859
881
|
/** 玩法参与奖励 */
|
|
860
882
|
Engage: "engage"
|
|
861
|
-
},
|
|
883
|
+
}, E = e.string().enum(mt).lock(), dt = {
|
|
862
884
|
/** 私有队伍 */
|
|
863
885
|
Private: "private",
|
|
864
886
|
/** 公开队伍 */
|
|
865
887
|
Public: "public"
|
|
866
|
-
},
|
|
888
|
+
}, gt = e.string().enum(dt).lock(), w = {
|
|
867
889
|
/** 未知状态 */
|
|
868
890
|
Unknown: "unknown",
|
|
869
891
|
/** 等待开奖 */
|
|
@@ -874,7 +896,7 @@ const v = {
|
|
|
874
896
|
Claimed: "claimed",
|
|
875
897
|
/** 领奖失败 */
|
|
876
898
|
Fail: "fail"
|
|
877
|
-
},
|
|
899
|
+
}, da = e.string().enum(w).lock(), pt = {
|
|
878
900
|
/** 发起组队 */
|
|
879
901
|
Assemble: "assemble",
|
|
880
902
|
/** 加入队伍 */
|
|
@@ -885,26 +907,26 @@ const v = {
|
|
|
885
907
|
ChangeVisibility: "change_visibility",
|
|
886
908
|
/** 查询组队信息 */
|
|
887
909
|
Query: "query"
|
|
888
|
-
},
|
|
910
|
+
}, ga = e.string().enum(pt).lock(), _t = {
|
|
889
911
|
/** 查询抽奖券 */
|
|
890
912
|
Query: "query",
|
|
891
913
|
/** 开奖 */
|
|
892
914
|
Draw: "draw",
|
|
893
915
|
/** 领奖 */
|
|
894
916
|
Claim: "claim"
|
|
895
|
-
},
|
|
917
|
+
}, pa = e.string().enum(_t).lock(), bt = {
|
|
896
918
|
/** 将所有队员的进度值求和,作为队伍进度值 */
|
|
897
919
|
Sum: "sum",
|
|
898
920
|
/** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
|
|
899
921
|
TopN: "top_n"
|
|
900
|
-
},
|
|
922
|
+
}, yt = e.string().enum(bt).lock(), ht = {
|
|
901
923
|
/** 尚未结算 */
|
|
902
924
|
None: "none",
|
|
903
925
|
/** 获胜奖励 */
|
|
904
926
|
Winner: "winner",
|
|
905
927
|
/** 安慰奖励 */
|
|
906
928
|
Consolation: "consolation"
|
|
907
|
-
},
|
|
929
|
+
}, ft = e.string().enum(ht).lock(), wt = {
|
|
908
930
|
/** 抖音 */
|
|
909
931
|
Douyin: "douyin",
|
|
910
932
|
/** 小红书 */
|
|
@@ -919,73 +941,73 @@ const v = {
|
|
|
919
941
|
Huya: "huya",
|
|
920
942
|
/** 斗鱼 */
|
|
921
943
|
Douyu: "douyu"
|
|
922
|
-
}, re = e.string().enum(
|
|
944
|
+
}, re = e.string().enum(wt).lock(), kt = {
|
|
923
945
|
/** 已提交 */
|
|
924
946
|
Submitted: "submitted",
|
|
925
947
|
/** 已接收 */
|
|
926
948
|
Accepted: "accepted",
|
|
927
949
|
/** 已拒绝 */
|
|
928
950
|
Rejected: "rejected"
|
|
929
|
-
},
|
|
951
|
+
}, vt = e.string().enum(kt).lock(), Vt = e.string().enum(v), y = e.object({
|
|
930
952
|
reward_item_id: e.number(),
|
|
931
953
|
reward_amount: e.number(),
|
|
932
954
|
reward_item_name: e.string(),
|
|
933
955
|
reward_item_icon_url: e.string(),
|
|
934
956
|
reward_item_desc: e.string().optional(),
|
|
935
|
-
reward_item_type:
|
|
957
|
+
reward_item_type: Vt,
|
|
936
958
|
reward_item_rating: e.number()
|
|
937
|
-
}).lock(),
|
|
959
|
+
}).lock(), Ct = e.object({
|
|
938
960
|
engage_count: e.number(),
|
|
939
961
|
rewards: e.array(y)
|
|
940
|
-
}).lock(),
|
|
962
|
+
}).lock(), Rt = e.union(
|
|
941
963
|
e.object({
|
|
942
964
|
feature_reward_type: e.string().enum("every"),
|
|
943
965
|
reward_details: e.array(y)
|
|
944
966
|
}),
|
|
945
967
|
e.object({
|
|
946
968
|
feature_reward_type: e.string().enum("regular"),
|
|
947
|
-
reward_details: e.array(
|
|
969
|
+
reward_details: e.array(Ct)
|
|
948
970
|
})
|
|
949
971
|
).satisfies().lock(), u = e.object({
|
|
950
972
|
feature_name: e.string(),
|
|
951
973
|
feature_id: e.number(),
|
|
952
974
|
description: e.string(),
|
|
953
|
-
cycle:
|
|
975
|
+
cycle: at,
|
|
954
976
|
cycle_limit: e.number(),
|
|
955
977
|
limit: e.number(),
|
|
956
978
|
since: e.number(),
|
|
957
979
|
until: e.number(),
|
|
958
|
-
engage_account:
|
|
959
|
-
feature_rewards:
|
|
980
|
+
engage_account: nt,
|
|
981
|
+
feature_rewards: Rt.clone().optional(),
|
|
960
982
|
sort: e.number().optional()
|
|
961
|
-
}),
|
|
983
|
+
}), jt = l.Cashback, Tt = e.object({
|
|
962
984
|
...u.shape,
|
|
963
|
-
feature_type: e.string().enum(
|
|
985
|
+
feature_type: e.string().enum(jt),
|
|
964
986
|
config: e.object({
|
|
965
987
|
order_start_time: e.number(),
|
|
966
988
|
order_end_time: e.number(),
|
|
967
989
|
claim_rewards_start_time: e.number(),
|
|
968
990
|
claim_rewards_end_time: e.number()
|
|
969
991
|
})
|
|
970
|
-
}),
|
|
992
|
+
}), qt = l.CheckIn, xt = e.object({
|
|
971
993
|
...u.shape,
|
|
972
|
-
feature_type: e.string().enum(
|
|
973
|
-
}),
|
|
994
|
+
feature_type: e.string().enum(qt)
|
|
995
|
+
}), Lt = l.ClaimActivationKey, St = e.object({
|
|
974
996
|
...u.shape,
|
|
975
|
-
feature_type: e.string().enum(
|
|
976
|
-
}),
|
|
997
|
+
feature_type: e.string().enum(Lt)
|
|
998
|
+
}), Pt = l.ClaimRewards, Ut = e.object({
|
|
977
999
|
...u.shape,
|
|
978
|
-
feature_type: e.string().enum(
|
|
979
|
-
}), Et = l.Comment,
|
|
1000
|
+
feature_type: e.string().enum(Pt)
|
|
1001
|
+
}), Et = l.Comment, $t = e.object({
|
|
980
1002
|
...u.shape,
|
|
981
1003
|
feature_type: e.string().enum(Et),
|
|
982
1004
|
config: e.object({
|
|
983
1005
|
comments: e.array(e.string()),
|
|
984
1006
|
send_rate: e.number()
|
|
985
1007
|
})
|
|
986
|
-
}),
|
|
1008
|
+
}), Ft = l.Follow, It = e.object({
|
|
987
1009
|
...u.shape,
|
|
988
|
-
feature_type: e.string().enum(
|
|
1010
|
+
feature_type: e.string().enum(Ft),
|
|
989
1011
|
config: e.object({
|
|
990
1012
|
platform: e.string(),
|
|
991
1013
|
platform_icon: e.string().optional(),
|
|
@@ -993,67 +1015,67 @@ const v = {
|
|
|
993
1015
|
qr_code_url: e.string().optional(),
|
|
994
1016
|
platform_desc: e.string().optional()
|
|
995
1017
|
})
|
|
996
|
-
}), Dt = l.GiftCode,
|
|
1018
|
+
}), Dt = l.GiftCode, At = e.object({
|
|
997
1019
|
name: e.string(),
|
|
998
1020
|
icon_url: e.string(),
|
|
999
1021
|
count: e.number()
|
|
1000
|
-
}),
|
|
1022
|
+
}), Gt = e.object({
|
|
1001
1023
|
...u.shape,
|
|
1002
1024
|
feature_type: e.string().enum(Dt),
|
|
1003
1025
|
config: e.object({
|
|
1004
|
-
gift_items: e.array(
|
|
1026
|
+
gift_items: e.array(At),
|
|
1005
1027
|
mp_url: e.string().optional(),
|
|
1006
1028
|
mp_qrcode_url: e.string().optional()
|
|
1007
1029
|
})
|
|
1008
|
-
}),
|
|
1030
|
+
}), Ot = l.Invite, Nt = e.object({
|
|
1009
1031
|
...u.shape,
|
|
1010
|
-
feature_type: e.string().enum(
|
|
1032
|
+
feature_type: e.string().enum(Ot),
|
|
1011
1033
|
config: e.object({
|
|
1012
1034
|
share_url: e.string()
|
|
1013
1035
|
})
|
|
1014
|
-
}),
|
|
1036
|
+
}), Qt = l.InvitedRegister, Bt = e.object({
|
|
1015
1037
|
...u.shape,
|
|
1016
|
-
feature_type: e.string().enum(
|
|
1017
|
-
}),
|
|
1038
|
+
feature_type: e.string().enum(Qt)
|
|
1039
|
+
}), Mt = e.string().enum(P(v, "GiftCode", "LotteryTicket")), Kt = l.Lottery, Ht = e.object({
|
|
1018
1040
|
reward_item_id: e.number(),
|
|
1019
1041
|
reward_item_name: e.string(),
|
|
1020
|
-
reward_item_type:
|
|
1042
|
+
reward_item_type: Mt,
|
|
1021
1043
|
reward_item_icon_url: e.string(),
|
|
1022
1044
|
reward_item_desc: e.string().optional(),
|
|
1023
1045
|
reward_amount: e.number(),
|
|
1024
1046
|
reward_remaining_stock: e.number(),
|
|
1025
1047
|
reward_item_rating: e.number()
|
|
1026
|
-
}),
|
|
1048
|
+
}), zt = e.object({
|
|
1027
1049
|
...u.shape,
|
|
1028
|
-
feature_type: e.string().enum(
|
|
1050
|
+
feature_type: e.string().enum(Kt),
|
|
1029
1051
|
config: e.object({
|
|
1030
1052
|
consume_item_id: e.number(),
|
|
1031
1053
|
consume_item_name: e.string(),
|
|
1032
1054
|
consume_item_icon_url: e.string(),
|
|
1033
1055
|
consume_item_count: e.array(e.number()),
|
|
1034
1056
|
consume_item_desc: e.string().optional(),
|
|
1035
|
-
rewards: e.array(
|
|
1057
|
+
rewards: e.array(Ht)
|
|
1036
1058
|
})
|
|
1037
|
-
}),
|
|
1059
|
+
}), Jt = l.LotteryDraw, Zt = e.object({
|
|
1038
1060
|
...u.shape,
|
|
1039
|
-
feature_type: e.string().enum(
|
|
1061
|
+
feature_type: e.string().enum(Jt),
|
|
1040
1062
|
config: e.object({
|
|
1041
1063
|
draw_not_before: e.number(),
|
|
1042
1064
|
draw_not_after: e.number()
|
|
1043
1065
|
})
|
|
1044
|
-
}),
|
|
1066
|
+
}), Xt = l.Preregister, Yt = e.object({
|
|
1045
1067
|
...u.shape,
|
|
1046
|
-
feature_type: e.string().enum(
|
|
1047
|
-
}),
|
|
1068
|
+
feature_type: e.string().enum(Xt)
|
|
1069
|
+
}), Wt = l.Quest, en = e.object({
|
|
1048
1070
|
...u.shape,
|
|
1049
|
-
feature_type: e.string().enum(
|
|
1071
|
+
feature_type: e.string().enum(Wt),
|
|
1050
1072
|
config: e.object({
|
|
1051
1073
|
objective: te,
|
|
1052
1074
|
completion_value: e.number(),
|
|
1053
1075
|
team: e.object({
|
|
1054
1076
|
feature_id: e.number().optional(),
|
|
1055
1077
|
completion_value: e.number(),
|
|
1056
|
-
progress_algorithm:
|
|
1078
|
+
progress_algorithm: yt.clone().optional(),
|
|
1057
1079
|
top_n: e.number().optional()
|
|
1058
1080
|
}).optional(),
|
|
1059
1081
|
config: e.object({
|
|
@@ -1063,51 +1085,51 @@ const v = {
|
|
|
1063
1085
|
event_item_id: e.number().optional()
|
|
1064
1086
|
}).optional()
|
|
1065
1087
|
})
|
|
1066
|
-
}),
|
|
1088
|
+
}), tn = l.Register, nn = e.object({
|
|
1067
1089
|
...u.shape,
|
|
1068
|
-
feature_type: e.string().enum(
|
|
1069
|
-
}),
|
|
1090
|
+
feature_type: e.string().enum(tn)
|
|
1091
|
+
}), rn = l.Share, an = e.object({
|
|
1070
1092
|
...u.shape,
|
|
1071
|
-
feature_type: e.string().enum(
|
|
1093
|
+
feature_type: e.string().enum(rn),
|
|
1072
1094
|
config: e.object({
|
|
1073
1095
|
share_platform: e.string(),
|
|
1074
1096
|
jump_url: e.string().optional(),
|
|
1075
1097
|
icon_url: e.string().optional()
|
|
1076
1098
|
})
|
|
1077
|
-
}),
|
|
1099
|
+
}), on = l.Subscribe, sn = e.object({
|
|
1078
1100
|
...u.shape,
|
|
1079
|
-
feature_type: e.string().enum(
|
|
1101
|
+
feature_type: e.string().enum(on),
|
|
1080
1102
|
config: e.object({
|
|
1081
1103
|
weixin_template_ids: e.array(e.string())
|
|
1082
1104
|
})
|
|
1083
|
-
}),
|
|
1105
|
+
}), cn = l.Survey, ln = e.object({
|
|
1084
1106
|
...u.shape,
|
|
1085
|
-
feature_type: e.string().enum(
|
|
1107
|
+
feature_type: e.string().enum(cn),
|
|
1086
1108
|
config: e.object({
|
|
1087
1109
|
survey_id: e.string(),
|
|
1088
1110
|
survey_url: e.string()
|
|
1089
1111
|
})
|
|
1090
|
-
}),
|
|
1112
|
+
}), un = l.Team, mn = e.object({
|
|
1091
1113
|
...u.shape,
|
|
1092
|
-
feature_type: e.string().enum(
|
|
1114
|
+
feature_type: e.string().enum(un),
|
|
1093
1115
|
config: e.object({
|
|
1094
1116
|
max_members: e.number().min(1),
|
|
1095
1117
|
min_members: e.number().min(1)
|
|
1096
1118
|
})
|
|
1097
|
-
}),
|
|
1119
|
+
}), dn = l.Ugc, gn = e.object({
|
|
1098
1120
|
...u.shape,
|
|
1099
|
-
feature_type: e.string().enum(
|
|
1121
|
+
feature_type: e.string().enum(dn),
|
|
1100
1122
|
config: e.object({
|
|
1101
1123
|
allowed_social_medias: e.array(e.string()).optional(),
|
|
1102
1124
|
acceptance_rewards: e.array(y).optional()
|
|
1103
1125
|
})
|
|
1104
|
-
}),
|
|
1126
|
+
}), pn = l.UgcLike, _n = e.object({
|
|
1105
1127
|
...u.shape,
|
|
1106
|
-
feature_type: e.string().enum(
|
|
1128
|
+
feature_type: e.string().enum(pn),
|
|
1107
1129
|
config: e.object({
|
|
1108
1130
|
ugc_feature_id: e.number()
|
|
1109
1131
|
})
|
|
1110
|
-
}),
|
|
1132
|
+
}), bn = l.Vote, yn = e.object({
|
|
1111
1133
|
sn: e.string(),
|
|
1112
1134
|
name: e.string(),
|
|
1113
1135
|
img_urls: e.array(e.string()).optional(),
|
|
@@ -1117,30 +1139,30 @@ const v = {
|
|
|
1117
1139
|
amount: e.number(),
|
|
1118
1140
|
finalists: e.bool(),
|
|
1119
1141
|
last_vote_time: e.number()
|
|
1120
|
-
}),
|
|
1142
|
+
}), hn = e.object({
|
|
1121
1143
|
...u.shape,
|
|
1122
|
-
feature_type: e.string().enum(
|
|
1144
|
+
feature_type: e.string().enum(bn),
|
|
1123
1145
|
config: e.object({
|
|
1124
1146
|
vote_feature_ids: e.array(e.number()),
|
|
1125
1147
|
submission_feature_ids: e.array(e.number()),
|
|
1126
1148
|
finalists_amount: e.number(),
|
|
1127
|
-
source:
|
|
1128
|
-
options: e.array(
|
|
1149
|
+
source: ct,
|
|
1150
|
+
options: e.array(yn),
|
|
1129
1151
|
rewards: e.array(y)
|
|
1130
1152
|
})
|
|
1131
|
-
}),
|
|
1153
|
+
}), fn = l.Vote2, wn = e.object({
|
|
1132
1154
|
candidate_id: e.string(),
|
|
1133
1155
|
display_name: e.string(),
|
|
1134
1156
|
images: e.array(e.string()).optional(),
|
|
1135
1157
|
videos: e.array(e.string()).optional(),
|
|
1136
1158
|
description: e.string().optional(),
|
|
1137
1159
|
jump_url: e.string()
|
|
1138
|
-
}),
|
|
1160
|
+
}), kn = e.object({
|
|
1139
1161
|
...u.shape,
|
|
1140
|
-
feature_type: e.string().enum(
|
|
1162
|
+
feature_type: e.string().enum(fn),
|
|
1141
1163
|
config: e.object({
|
|
1142
1164
|
vote_item_id: e.number().optional(),
|
|
1143
|
-
candidates: e.array(
|
|
1165
|
+
candidates: e.array(wn),
|
|
1144
1166
|
vote_since: e.number(),
|
|
1145
1167
|
vote_until: e.number(),
|
|
1146
1168
|
rewards_since: e.number(),
|
|
@@ -1148,85 +1170,85 @@ const v = {
|
|
|
1148
1170
|
winner_rewards: e.array(y).optional(),
|
|
1149
1171
|
consolation_rewards: e.array(y).optional()
|
|
1150
1172
|
})
|
|
1151
|
-
}),
|
|
1173
|
+
}), vn = l.ZeroChatgpt, Vn = e.object({
|
|
1152
1174
|
...u.shape,
|
|
1153
|
-
feature_type: e.string().enum(
|
|
1154
|
-
}),
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
Pt,
|
|
1175
|
+
feature_type: e.string().enum(vn)
|
|
1176
|
+
}), Cn = e.union(
|
|
1177
|
+
Tt,
|
|
1178
|
+
xt,
|
|
1158
1179
|
Ut,
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1180
|
+
$t,
|
|
1181
|
+
It,
|
|
1182
|
+
Gt,
|
|
1183
|
+
Nt,
|
|
1184
|
+
Bt,
|
|
1185
|
+
zt,
|
|
1186
|
+
Zt,
|
|
1187
|
+
Yt,
|
|
1188
|
+
en,
|
|
1189
|
+
nn,
|
|
1190
|
+
an,
|
|
1191
|
+
sn,
|
|
1192
|
+
ln,
|
|
1193
|
+
mn,
|
|
1194
|
+
hn,
|
|
1195
|
+
kn,
|
|
1196
|
+
St,
|
|
1197
|
+
Vn,
|
|
1198
|
+
gn,
|
|
1199
|
+
_n
|
|
1200
|
+
).key("feature_type").satisfies(), Rn = e.object({
|
|
1179
1201
|
event_name: e.string(),
|
|
1180
1202
|
rules: e.string(),
|
|
1181
1203
|
since: e.number(),
|
|
1182
1204
|
until: e.number(),
|
|
1183
1205
|
visit_count: e.number().optional(),
|
|
1184
|
-
features: e.array(
|
|
1206
|
+
features: e.array(Cn)
|
|
1185
1207
|
}).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ae = e.object({
|
|
1186
1208
|
order_total_amount: q,
|
|
1187
1209
|
cashback_total_amount: q,
|
|
1188
1210
|
game_item_count: q
|
|
1189
|
-
}), Rn = e.object({
|
|
1190
|
-
activation_key: e.string().disallow("")
|
|
1191
1211
|
}), jn = e.object({
|
|
1192
|
-
|
|
1212
|
+
activation_key: e.string().disallow("")
|
|
1193
1213
|
}), Tn = e.object({
|
|
1214
|
+
gift_code: e.string()
|
|
1215
|
+
}), qn = e.object({
|
|
1194
1216
|
user_id: e.string(),
|
|
1195
1217
|
name: e.string().optional(),
|
|
1196
1218
|
avatar_url: e.string().optional()
|
|
1197
|
-
}),
|
|
1219
|
+
}), xn = e.object({
|
|
1198
1220
|
lottery_count: e.number()
|
|
1199
1221
|
}), V = e.object({
|
|
1200
1222
|
reward_id: e.number(),
|
|
1201
1223
|
reward_item_id: e.number(),
|
|
1202
|
-
reward_source:
|
|
1224
|
+
reward_source: E,
|
|
1203
1225
|
reward_item_name: e.string(),
|
|
1204
1226
|
reward_item_type: W,
|
|
1205
1227
|
reward_item_icon_url: e.string(),
|
|
1206
1228
|
reward_item_desc: e.string().optional(),
|
|
1207
1229
|
reward_item_rating: e.number(),
|
|
1208
1230
|
reward_amount: e.number(),
|
|
1209
|
-
reward_status:
|
|
1231
|
+
reward_status: U,
|
|
1210
1232
|
event_id: e.number(),
|
|
1211
1233
|
event_name: e.string(),
|
|
1212
1234
|
feature_id: e.number(),
|
|
1213
1235
|
engagement_id: e.number(),
|
|
1214
|
-
feature_type:
|
|
1236
|
+
feature_type: ot,
|
|
1215
1237
|
receive_time: e.number(),
|
|
1216
1238
|
extra_data: e.record(e.unknown()).optional()
|
|
1217
|
-
}),
|
|
1239
|
+
}), Ln = e.string().enum(w.Unknown, w.Pending), Sn = e.union(
|
|
1218
1240
|
e.object({
|
|
1219
1241
|
ticket: e.string(),
|
|
1220
|
-
status:
|
|
1242
|
+
status: Ln
|
|
1221
1243
|
}),
|
|
1222
1244
|
e.object({
|
|
1223
1245
|
ticket: e.string(),
|
|
1224
1246
|
status: e.string().enum(P(w, "Unknown", "Pending")),
|
|
1225
1247
|
reward: V
|
|
1226
1248
|
})
|
|
1227
|
-
).satisfies(),
|
|
1228
|
-
tickets: e.array(
|
|
1229
|
-
}),
|
|
1249
|
+
).satisfies(), Pn = e.object({
|
|
1250
|
+
tickets: e.array(Sn)
|
|
1251
|
+
}), Un = e.object({
|
|
1230
1252
|
platforms: e.array(e.string())
|
|
1231
1253
|
}), oe = e.object({
|
|
1232
1254
|
role_name: e.string(),
|
|
@@ -1242,30 +1264,30 @@ const v = {
|
|
|
1242
1264
|
completion_value: e.number().optional(),
|
|
1243
1265
|
players: e.array(oe)
|
|
1244
1266
|
}).optional()
|
|
1245
|
-
}),
|
|
1267
|
+
}), $n = e.object({
|
|
1246
1268
|
progress: e.number(),
|
|
1247
1269
|
team: e.object({
|
|
1248
1270
|
progress: e.number(),
|
|
1249
1271
|
team_members: e.array(oe).optional()
|
|
1250
1272
|
}).optional()
|
|
1251
|
-
}), $n = e.object({
|
|
1252
|
-
platform: e.string()
|
|
1253
1273
|
}), Fn = e.object({
|
|
1274
|
+
platform: e.string()
|
|
1275
|
+
}), In = e.object({
|
|
1254
1276
|
weixin_openid: e.string()
|
|
1255
1277
|
}), Dn = e.object({
|
|
1256
1278
|
serial_number: e.number()
|
|
1257
|
-
}),
|
|
1279
|
+
}), An = e.object({
|
|
1258
1280
|
team_code: e.string(),
|
|
1259
1281
|
leader_name: e.string(),
|
|
1260
1282
|
total_members: e.number()
|
|
1261
|
-
}),
|
|
1283
|
+
}), _a = e.object({
|
|
1262
1284
|
is_leader: e.bool(),
|
|
1263
1285
|
is_myself: e.bool().optional(),
|
|
1264
1286
|
role_name: e.string(),
|
|
1265
1287
|
server_name: e.string()
|
|
1266
|
-
}),
|
|
1288
|
+
}), Gn = e.object({
|
|
1267
1289
|
team_code: e.string(),
|
|
1268
|
-
visibility:
|
|
1290
|
+
visibility: gt,
|
|
1269
1291
|
members: e.array(
|
|
1270
1292
|
e.object({
|
|
1271
1293
|
is_leader: e.bool(),
|
|
@@ -1273,21 +1295,21 @@ const v = {
|
|
|
1273
1295
|
server_name: e.string()
|
|
1274
1296
|
})
|
|
1275
1297
|
)
|
|
1276
|
-
}),
|
|
1298
|
+
}), On = e.object({
|
|
1277
1299
|
ugc_id: e.number(),
|
|
1278
1300
|
title: e.string(),
|
|
1279
1301
|
content: e.string().optional(),
|
|
1280
1302
|
image_urls: e.array(e.string()).optional(),
|
|
1281
1303
|
social_media: re.clone().optional(),
|
|
1282
1304
|
social_media_url: e.string().optional()
|
|
1283
|
-
}),
|
|
1305
|
+
}), Nn = e.object({
|
|
1284
1306
|
ugcs: e.array(
|
|
1285
1307
|
e.object({
|
|
1286
1308
|
ugc_id: e.number(),
|
|
1287
1309
|
event_id: e.number().optional(),
|
|
1288
1310
|
feature_id: e.number().optional(),
|
|
1289
1311
|
feature_name: e.string().optional(),
|
|
1290
|
-
review_status:
|
|
1312
|
+
review_status: vt,
|
|
1291
1313
|
title: e.string(),
|
|
1292
1314
|
content: e.string().optional(),
|
|
1293
1315
|
image_urls: e.array(e.string()).optional(),
|
|
@@ -1302,11 +1324,11 @@ const v = {
|
|
|
1302
1324
|
})
|
|
1303
1325
|
).optional(),
|
|
1304
1326
|
next_token: e.string().optional()
|
|
1305
|
-
}),
|
|
1327
|
+
}), Qn = e.object({
|
|
1306
1328
|
existed: e.bool(),
|
|
1307
1329
|
upload_url: e.string().optional(),
|
|
1308
1330
|
image_url: e.string()
|
|
1309
|
-
}),
|
|
1331
|
+
}), Bn = e.object({
|
|
1310
1332
|
ugcs: e.array(
|
|
1311
1333
|
e.object({
|
|
1312
1334
|
ugc_id: e.number(),
|
|
@@ -1319,27 +1341,27 @@ const v = {
|
|
|
1319
1341
|
role_name: e.string().optional()
|
|
1320
1342
|
})
|
|
1321
1343
|
).optional()
|
|
1322
|
-
}), Bn = e.object({
|
|
1323
|
-
option_sn: e.string()
|
|
1324
1344
|
}), Mn = e.object({
|
|
1345
|
+
option_sn: e.string()
|
|
1346
|
+
}), Kn = e.object({
|
|
1325
1347
|
candidate_id: e.string(),
|
|
1326
1348
|
total_votes: e.number().optional(),
|
|
1327
1349
|
my_votes: e.number().optional(),
|
|
1328
1350
|
votes: e.number().optional()
|
|
1329
|
-
}), Kn = e.object({
|
|
1330
|
-
rewards_type: ht,
|
|
1331
|
-
rewards: e.array(V).optional()
|
|
1332
1351
|
}), Hn = e.object({
|
|
1352
|
+
rewards_type: ft,
|
|
1353
|
+
rewards: e.array(V).optional()
|
|
1354
|
+
}), zn = e.object({
|
|
1333
1355
|
candidate_id: e.string(),
|
|
1334
1356
|
is_winner: e.bool(),
|
|
1335
1357
|
total_votes: e.number(),
|
|
1336
1358
|
my_votes: e.number()
|
|
1337
|
-
}),
|
|
1359
|
+
}), Jn = e.object({
|
|
1338
1360
|
role: e.string(),
|
|
1339
1361
|
content: e.string()
|
|
1340
|
-
}), Jn = e.object({
|
|
1341
|
-
conversations: e.array(zn)
|
|
1342
1362
|
}), Zn = e.object({
|
|
1363
|
+
conversations: e.array(Jn)
|
|
1364
|
+
}), Xn = e.object({
|
|
1343
1365
|
user_id: e.string(),
|
|
1344
1366
|
name: e.string(),
|
|
1345
1367
|
avatar_url: e.string(),
|
|
@@ -1347,40 +1369,40 @@ const v = {
|
|
|
1347
1369
|
video_note: e.number(),
|
|
1348
1370
|
created_at: e.number()
|
|
1349
1371
|
}), $ = e.union(
|
|
1350
|
-
|
|
1351
|
-
|
|
1372
|
+
Un,
|
|
1373
|
+
xn,
|
|
1352
1374
|
Dn,
|
|
1353
|
-
|
|
1354
|
-
$n,
|
|
1355
|
-
Bn,
|
|
1356
|
-
Mn,
|
|
1375
|
+
qn,
|
|
1357
1376
|
Fn,
|
|
1377
|
+
Mn,
|
|
1378
|
+
Kn,
|
|
1379
|
+
In,
|
|
1358
1380
|
ae,
|
|
1359
|
-
|
|
1360
|
-
An,
|
|
1361
|
-
En,
|
|
1362
|
-
Sn,
|
|
1363
|
-
Rn,
|
|
1364
|
-
Jn,
|
|
1381
|
+
Tn,
|
|
1365
1382
|
Gn,
|
|
1383
|
+
En,
|
|
1384
|
+
Pn,
|
|
1385
|
+
jn,
|
|
1386
|
+
Zn,
|
|
1387
|
+
On,
|
|
1366
1388
|
e.custom(
|
|
1367
1389
|
"EmptyObject",
|
|
1368
1390
|
(i) => h(i) && Object.keys(i).length === 0
|
|
1369
1391
|
)
|
|
1370
|
-
).satisfies().lock(),
|
|
1392
|
+
).satisfies().lock(), Yn = e.object({
|
|
1371
1393
|
reward_id: e.number(),
|
|
1372
1394
|
reward_item_id: e.number(),
|
|
1373
1395
|
reward_item_type: ee,
|
|
1374
1396
|
reward_count: e.number(),
|
|
1375
1397
|
reward_status: ne,
|
|
1376
|
-
reward_source:
|
|
1398
|
+
reward_source: E,
|
|
1377
1399
|
reward_item_name: e.string(),
|
|
1378
1400
|
reward_item_icon_url: e.string(),
|
|
1379
1401
|
reward_item_desc: e.string().optional(),
|
|
1380
1402
|
reward_item_rating: e.number(),
|
|
1381
1403
|
receive_time: e.number(),
|
|
1382
1404
|
extra_data: e.union(...$.validators, e.record(e.unknown())).satisfies().optional()
|
|
1383
|
-
}),
|
|
1405
|
+
}), Wn = e.object({
|
|
1384
1406
|
reward_id: e.number(),
|
|
1385
1407
|
reward_item_id: e.number(),
|
|
1386
1408
|
reward_item_name: e.string(),
|
|
@@ -1390,9 +1412,9 @@ const v = {
|
|
|
1390
1412
|
reward_item_rating: e.number(),
|
|
1391
1413
|
reward_amount: e.number(),
|
|
1392
1414
|
reward_status: ne,
|
|
1393
|
-
reward_source:
|
|
1415
|
+
reward_source: E,
|
|
1394
1416
|
extra_data: e.record(e.unknown()).optional()
|
|
1395
|
-
}),
|
|
1417
|
+
}), er = e.object({
|
|
1396
1418
|
engagement_id: e.number(),
|
|
1397
1419
|
user_id: e.string(),
|
|
1398
1420
|
event_id: e.number(),
|
|
@@ -1402,18 +1424,18 @@ const v = {
|
|
|
1402
1424
|
server_id: e.string().optional(),
|
|
1403
1425
|
role_id: e.string().optional(),
|
|
1404
1426
|
created_at: e.number(),
|
|
1405
|
-
rewards: e.array(
|
|
1406
|
-
}).lock(),
|
|
1427
|
+
rewards: e.array(Yn).optional()
|
|
1428
|
+
}).lock(), tr = e.object({
|
|
1407
1429
|
allowed: e.bool(),
|
|
1408
1430
|
registered: e.bool()
|
|
1409
|
-
}),
|
|
1431
|
+
}), nr = e.object({
|
|
1410
1432
|
feature_id: e.number(),
|
|
1411
1433
|
can_engage: e.bool(),
|
|
1412
1434
|
has_unclaimed_rewards: e.bool(),
|
|
1413
1435
|
final_available_count: e.number(),
|
|
1414
1436
|
total_remaining_engagements: e.number(),
|
|
1415
1437
|
cycle_remaining_engagements: e.number()
|
|
1416
|
-
}),
|
|
1438
|
+
}), rr = e.object({
|
|
1417
1439
|
engagement_id: e.number(),
|
|
1418
1440
|
engagement: e.object({
|
|
1419
1441
|
engagement_id: e.number(),
|
|
@@ -1421,41 +1443,41 @@ const v = {
|
|
|
1421
1443
|
feature_id: e.number(),
|
|
1422
1444
|
data: $.clone().optional()
|
|
1423
1445
|
}).optional(),
|
|
1424
|
-
rewards: e.array(
|
|
1446
|
+
rewards: e.array(Wn).optional(),
|
|
1425
1447
|
scan: e.bool().optional()
|
|
1426
|
-
}),
|
|
1448
|
+
}), ar = e.object({
|
|
1427
1449
|
reward_id: e.number(),
|
|
1428
|
-
reward_status:
|
|
1429
|
-
}),
|
|
1430
|
-
engagements: e.union(e.array(
|
|
1431
|
-
}), cr = s({
|
|
1432
|
-
status: e.array(tr)
|
|
1450
|
+
reward_status: U
|
|
1451
|
+
}), or = e.guard(Rn), ir = e.guard(tr), x = s({ count: e.number() }), sr = s({ first_visit: e.bool() }), cr = s({
|
|
1452
|
+
engagements: e.union(e.array(Xn), e.array(An))
|
|
1433
1453
|
}), lr = s({
|
|
1434
|
-
|
|
1454
|
+
status: e.array(nr)
|
|
1435
1455
|
}), ur = s({
|
|
1436
|
-
|
|
1456
|
+
engagements_counts: e.record(e.number())
|
|
1457
|
+
}), mr = s({
|
|
1458
|
+
engagements: e.array(er),
|
|
1437
1459
|
next_token: e.string().optional()
|
|
1438
|
-
}),
|
|
1439
|
-
claimed_items: e.array(
|
|
1440
|
-
}), gr = s({
|
|
1441
|
-
rewards: e.array(V)
|
|
1460
|
+
}), dr = e.guard(rr), gr = s({
|
|
1461
|
+
claimed_items: e.array(ar)
|
|
1442
1462
|
}), pr = s({
|
|
1443
|
-
|
|
1463
|
+
rewards: e.array(V)
|
|
1444
1464
|
}), _r = s({
|
|
1465
|
+
reward_status: U
|
|
1466
|
+
}), br = s({
|
|
1445
1467
|
user_rewards: e.array(V),
|
|
1446
1468
|
next_token: e.string().optional()
|
|
1447
|
-
}), br = s({
|
|
1448
|
-
scene: e.string()
|
|
1449
1469
|
}), yr = s({
|
|
1450
|
-
|
|
1470
|
+
scene: e.string()
|
|
1451
1471
|
}), hr = s({
|
|
1472
|
+
params: e.string()
|
|
1473
|
+
}), fr = s({
|
|
1452
1474
|
img: e.string()
|
|
1453
|
-
}),
|
|
1475
|
+
}), wr = e.guard($n), kr = e.guard(Hn), vr = e.guard(
|
|
1454
1476
|
e.object({
|
|
1455
|
-
candidate_votes: e.array(
|
|
1477
|
+
candidate_votes: e.array(zn)
|
|
1456
1478
|
})
|
|
1457
|
-
),
|
|
1458
|
-
class
|
|
1479
|
+
), Vr = e.guard(ae), M = e.guard(Nn), Cr = e.guard(Qn), Rr = e.guard(Bn);
|
|
1480
|
+
class ba {
|
|
1459
1481
|
token;
|
|
1460
1482
|
event = 0;
|
|
1461
1483
|
req;
|
|
@@ -1468,7 +1490,7 @@ class _a {
|
|
|
1468
1490
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1469
1491
|
*/
|
|
1470
1492
|
async verifyMobileAllowed(t, n, r) {
|
|
1471
|
-
const { data: a } = await this.req.get("verify-mobile-allowed",
|
|
1493
|
+
const { data: a } = await this.req.get("verify-mobile-allowed", ir, {
|
|
1472
1494
|
...r,
|
|
1473
1495
|
params: { game_id: t, mobile: n }
|
|
1474
1496
|
});
|
|
@@ -1480,7 +1502,7 @@ class _a {
|
|
|
1480
1502
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1481
1503
|
*/
|
|
1482
1504
|
async getConfig(t) {
|
|
1483
|
-
const { data: n } = await this.req.get(`event/${this.event}/event-config`,
|
|
1505
|
+
const { data: n } = await this.req.get(`event/${this.event}/event-config`, or, t);
|
|
1484
1506
|
return n;
|
|
1485
1507
|
}
|
|
1486
1508
|
/**
|
|
@@ -1515,7 +1537,7 @@ class _a {
|
|
|
1515
1537
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1516
1538
|
*/
|
|
1517
1539
|
async getEngagements(t, n) {
|
|
1518
|
-
const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1540
|
+
const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, cr, {
|
|
1519
1541
|
...n,
|
|
1520
1542
|
params: { feature_id: t }
|
|
1521
1543
|
});
|
|
@@ -1531,7 +1553,7 @@ class _a {
|
|
|
1531
1553
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1532
1554
|
`event/${this.event}/visit`,
|
|
1533
1555
|
c(t || {}),
|
|
1534
|
-
|
|
1556
|
+
sr,
|
|
1535
1557
|
n
|
|
1536
1558
|
);
|
|
1537
1559
|
return r ?? {
|
|
@@ -1548,7 +1570,7 @@ class _a {
|
|
|
1548
1570
|
*/
|
|
1549
1571
|
async getUserFeatureStatus(t, n) {
|
|
1550
1572
|
if (!await this.token.autoLogin()) return [];
|
|
1551
|
-
const { data: r } = await this.req.get("event/user-feature-status",
|
|
1573
|
+
const { data: r } = await this.req.get("event/user-feature-status", lr, {
|
|
1552
1574
|
...n,
|
|
1553
1575
|
message: !1,
|
|
1554
1576
|
params: c({ ...t, event_id: this.event })
|
|
@@ -1562,7 +1584,7 @@ class _a {
|
|
|
1562
1584
|
*/
|
|
1563
1585
|
async getUserEngagementCount(t, n) {
|
|
1564
1586
|
if (!await this.token.autoLogin()) return {};
|
|
1565
|
-
const { data: r } = await this.req.get("event/user-engagements-count",
|
|
1587
|
+
const { data: r } = await this.req.get("event/user-engagements-count", ur, {
|
|
1566
1588
|
message: !1,
|
|
1567
1589
|
params: c({ ...n, event_id: this.event, feature_id: t })
|
|
1568
1590
|
});
|
|
@@ -1581,7 +1603,7 @@ class _a {
|
|
|
1581
1603
|
engagements: [],
|
|
1582
1604
|
next_token: ""
|
|
1583
1605
|
};
|
|
1584
|
-
const { data: a } = await this.req.get("event/user-engagements",
|
|
1606
|
+
const { data: a } = await this.req.get("event/user-engagements", mr, {
|
|
1585
1607
|
...r,
|
|
1586
1608
|
params: c({
|
|
1587
1609
|
max_results: 20,
|
|
@@ -1613,7 +1635,7 @@ class _a {
|
|
|
1613
1635
|
engagement: n,
|
|
1614
1636
|
...r
|
|
1615
1637
|
}),
|
|
1616
|
-
|
|
1638
|
+
dr,
|
|
1617
1639
|
a
|
|
1618
1640
|
);
|
|
1619
1641
|
return o ?? {
|
|
@@ -1636,7 +1658,7 @@ class _a {
|
|
|
1636
1658
|
...t,
|
|
1637
1659
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1638
1660
|
}),
|
|
1639
|
-
|
|
1661
|
+
gr,
|
|
1640
1662
|
n
|
|
1641
1663
|
);
|
|
1642
1664
|
return r?.claimed_items || {
|
|
@@ -1657,7 +1679,7 @@ class _a {
|
|
|
1657
1679
|
...t,
|
|
1658
1680
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1659
1681
|
}),
|
|
1660
|
-
|
|
1682
|
+
pr,
|
|
1661
1683
|
n
|
|
1662
1684
|
);
|
|
1663
1685
|
return r?.rewards || {
|
|
@@ -1675,7 +1697,7 @@ class _a {
|
|
|
1675
1697
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1676
1698
|
"event/claim-weixin-hongbao",
|
|
1677
1699
|
{ reward_id: t },
|
|
1678
|
-
|
|
1700
|
+
_r,
|
|
1679
1701
|
n
|
|
1680
1702
|
);
|
|
1681
1703
|
return r || {
|
|
@@ -1716,7 +1738,7 @@ class _a {
|
|
|
1716
1738
|
const { data: r } = await this.req.post(
|
|
1717
1739
|
"event/user-rewards",
|
|
1718
1740
|
c({ max_results: 20, ...t, event_id: this.event }),
|
|
1719
|
-
|
|
1741
|
+
br,
|
|
1720
1742
|
n
|
|
1721
1743
|
);
|
|
1722
1744
|
return {
|
|
@@ -1764,7 +1786,7 @@ class _a {
|
|
|
1764
1786
|
*/
|
|
1765
1787
|
async getUnlimitQrcodeScene(t, n) {
|
|
1766
1788
|
if (!await this.token.autoLogin()) return null;
|
|
1767
|
-
const { data: r } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1789
|
+
const { data: r } = await this.req.get("event/unlimit-qrcode-scene", yr, {
|
|
1768
1790
|
...n,
|
|
1769
1791
|
params: { params: t }
|
|
1770
1792
|
});
|
|
@@ -1778,7 +1800,7 @@ class _a {
|
|
|
1778
1800
|
* @param scene - 小程序码 scene 值
|
|
1779
1801
|
*/
|
|
1780
1802
|
async getParamsByQrcodeScene(t, n) {
|
|
1781
|
-
const { data: r } = await this.req.get("event/params-by-qrcode-scene",
|
|
1803
|
+
const { data: r } = await this.req.get("event/params-by-qrcode-scene", hr, {
|
|
1782
1804
|
...n,
|
|
1783
1805
|
params: { scene: t }
|
|
1784
1806
|
});
|
|
@@ -1794,7 +1816,7 @@ class _a {
|
|
|
1794
1816
|
const { data: r } = await this.req.post(
|
|
1795
1817
|
"event/unlimit-qrcode",
|
|
1796
1818
|
c(t),
|
|
1797
|
-
|
|
1819
|
+
fr,
|
|
1798
1820
|
n
|
|
1799
1821
|
);
|
|
1800
1822
|
return r?.img ?? null;
|
|
@@ -1806,7 +1828,7 @@ class _a {
|
|
|
1806
1828
|
*/
|
|
1807
1829
|
async getQuestProgress(t, n) {
|
|
1808
1830
|
if (!await this.token.autoLogin()) return null;
|
|
1809
|
-
const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`,
|
|
1831
|
+
const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, wr, {
|
|
1810
1832
|
message: !1,
|
|
1811
1833
|
...n,
|
|
1812
1834
|
params: { feature_id: t }
|
|
@@ -1828,7 +1850,7 @@ class _a {
|
|
|
1828
1850
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1829
1851
|
"event/vote2/rewards",
|
|
1830
1852
|
{ feature_id: t, event_id: this.event },
|
|
1831
|
-
|
|
1853
|
+
kr,
|
|
1832
1854
|
n
|
|
1833
1855
|
);
|
|
1834
1856
|
return r || {
|
|
@@ -1843,7 +1865,7 @@ class _a {
|
|
|
1843
1865
|
*/
|
|
1844
1866
|
async getVote2Leaderboard(t, n) {
|
|
1845
1867
|
if (!await this.token.autoLogin()) return [];
|
|
1846
|
-
const { data: r } = await this.req.get("event/vote2/leaderboard",
|
|
1868
|
+
const { data: r } = await this.req.get("event/vote2/leaderboard", vr, {
|
|
1847
1869
|
...n,
|
|
1848
1870
|
params: { feature_id: t, event_id: this.event }
|
|
1849
1871
|
});
|
|
@@ -1856,7 +1878,7 @@ class _a {
|
|
|
1856
1878
|
*/
|
|
1857
1879
|
async getCashbackQuery(t, n) {
|
|
1858
1880
|
if (!await this.token.autoLogin()) return null;
|
|
1859
|
-
const { data: r, code: a, message: o } = await this.req.get("event/cashback/query",
|
|
1881
|
+
const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", Vr, {
|
|
1860
1882
|
...n,
|
|
1861
1883
|
params: { feature_id: t, event_id: this.event }
|
|
1862
1884
|
});
|
|
@@ -1898,7 +1920,7 @@ class _a {
|
|
|
1898
1920
|
const { data: a, code: o, message: g } = await this.req.post(
|
|
1899
1921
|
"event/ugc/upload-image",
|
|
1900
1922
|
{ feature_id: t, ...n, event_id: this.event },
|
|
1901
|
-
|
|
1923
|
+
Cr,
|
|
1902
1924
|
r
|
|
1903
1925
|
);
|
|
1904
1926
|
return a || {
|
|
@@ -1937,7 +1959,7 @@ class _a {
|
|
|
1937
1959
|
*/
|
|
1938
1960
|
async getUgcLeaderboard(t, n) {
|
|
1939
1961
|
if (!await this.token.autoLogin()) return null;
|
|
1940
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard",
|
|
1962
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", Rr, {
|
|
1941
1963
|
...n,
|
|
1942
1964
|
params: {
|
|
1943
1965
|
feature_id: t,
|
|
@@ -1950,12 +1972,12 @@ class _a {
|
|
|
1950
1972
|
};
|
|
1951
1973
|
}
|
|
1952
1974
|
}
|
|
1953
|
-
const
|
|
1975
|
+
const jr = {
|
|
1954
1976
|
/** 所有人均可以发帖 */
|
|
1955
1977
|
All: "all",
|
|
1956
1978
|
/** 指定用户可发帖 */
|
|
1957
1979
|
Limit: "limit"
|
|
1958
|
-
},
|
|
1980
|
+
}, Tr = e.string().enum(jr).lock(), qr = {
|
|
1959
1981
|
/** 待审核(仅自己可见) */
|
|
1960
1982
|
Pending: "pending",
|
|
1961
1983
|
/** 审核通过 */
|
|
@@ -1964,14 +1986,14 @@ const Rr = {
|
|
|
1964
1986
|
Failed: "failed",
|
|
1965
1987
|
/** 嫌疑(仅自己可见) */
|
|
1966
1988
|
Suspect: "suspect"
|
|
1967
|
-
}, ie = e.string().enum(
|
|
1989
|
+
}, ie = e.string().enum(qr).lock(), xr = {
|
|
1968
1990
|
/** 系统通知 */
|
|
1969
1991
|
System: "system",
|
|
1970
1992
|
/** 评论我的 */
|
|
1971
1993
|
Comment: "comment",
|
|
1972
1994
|
/** 点赞通知 */
|
|
1973
1995
|
Like: "like"
|
|
1974
|
-
},
|
|
1996
|
+
}, ya = e.string().enum(xr).lock(), m = {
|
|
1975
1997
|
/** 系统通知 */
|
|
1976
1998
|
System: "system",
|
|
1977
1999
|
/** 帖子被置顶 */
|
|
@@ -1996,13 +2018,13 @@ const Rr = {
|
|
|
1996
2018
|
ReplyLiked: "reply_liked",
|
|
1997
2019
|
/** 回复被删除 */
|
|
1998
2020
|
ReplyDeleted: "reply_deleted"
|
|
1999
|
-
},
|
|
2021
|
+
}, Lr = e.string().enum(m).lock(), se = e.object({
|
|
2000
2022
|
forum_id: e.number(),
|
|
2001
2023
|
icon_url: e.string(),
|
|
2002
2024
|
name: e.string(),
|
|
2003
2025
|
tags: e.array(e.string()),
|
|
2004
2026
|
sort: e.number(),
|
|
2005
|
-
mode:
|
|
2027
|
+
mode: Tr,
|
|
2006
2028
|
member_ids: e.array(e.number())
|
|
2007
2029
|
}).lock(), F = e.object({
|
|
2008
2030
|
topic_id: e.number(),
|
|
@@ -2011,7 +2033,7 @@ const Rr = {
|
|
|
2011
2033
|
description: e.string(),
|
|
2012
2034
|
tags: e.array(e.string()),
|
|
2013
2035
|
post_num: e.number()
|
|
2014
|
-
}).lock(),
|
|
2036
|
+
}).lock(), I = e.object({
|
|
2015
2037
|
post_id: e.number(),
|
|
2016
2038
|
forum: se,
|
|
2017
2039
|
posted_by: e.string(),
|
|
@@ -2033,7 +2055,7 @@ const Rr = {
|
|
|
2033
2055
|
create_time: e.number()
|
|
2034
2056
|
}).lock(), ce = e.object({
|
|
2035
2057
|
err_msg: e.string().optional()
|
|
2036
|
-
}).optional().lock(),
|
|
2058
|
+
}).optional().lock(), Sr = e.object({
|
|
2037
2059
|
reply_id: e.number(),
|
|
2038
2060
|
reply_content: e.string().optional(),
|
|
2039
2061
|
replied_by: e.string(),
|
|
@@ -2052,7 +2074,7 @@ const Rr = {
|
|
|
2052
2074
|
content: e.string(),
|
|
2053
2075
|
like_num: e.number(),
|
|
2054
2076
|
liked: e.bool(),
|
|
2055
|
-
reply_to:
|
|
2077
|
+
reply_to: Sr,
|
|
2056
2078
|
create_time: e.number()
|
|
2057
2079
|
}).lock(), k = e.object({
|
|
2058
2080
|
comment_id: e.number(),
|
|
@@ -2074,22 +2096,22 @@ const Rr = {
|
|
|
2074
2096
|
create_time: e.number(),
|
|
2075
2097
|
status: ie,
|
|
2076
2098
|
replies: e.array(C).optional()
|
|
2077
|
-
}).lock(),
|
|
2099
|
+
}).lock(), Pr = e.object({
|
|
2078
2100
|
image_url: e.string(),
|
|
2079
2101
|
upload_url: e.string(),
|
|
2080
2102
|
existed: e.bool()
|
|
2081
2103
|
}).lock(), b = e.object({
|
|
2082
2104
|
notification_id: e.string(),
|
|
2083
|
-
notification_type:
|
|
2105
|
+
notification_type: Lr,
|
|
2084
2106
|
is_read: e.bool(),
|
|
2085
2107
|
create_time: e.number(),
|
|
2086
2108
|
origin_user_id: e.string(),
|
|
2087
2109
|
origin_user_name: e.string(),
|
|
2088
2110
|
origin_user_avatar_url: e.string()
|
|
2089
|
-
}).lock(),
|
|
2111
|
+
}).lock(), Ur = e.object({
|
|
2090
2112
|
system_message_subject: e.string(),
|
|
2091
2113
|
system_message_content: e.string()
|
|
2092
|
-
}).lock(),
|
|
2114
|
+
}).lock(), D = e.object({
|
|
2093
2115
|
post_id: e.number(),
|
|
2094
2116
|
post_subject: e.string(),
|
|
2095
2117
|
post_summary: e.string(),
|
|
@@ -2102,23 +2124,23 @@ const Rr = {
|
|
|
2102
2124
|
reply_content: e.string()
|
|
2103
2125
|
}).lock(), Er = e.object({
|
|
2104
2126
|
...b.shape,
|
|
2105
|
-
...
|
|
2127
|
+
...Ur.shape,
|
|
2106
2128
|
notification_type: e.string().enum(m.System)
|
|
2107
|
-
}),
|
|
2129
|
+
}), $r = e.object({
|
|
2108
2130
|
...b.shape,
|
|
2109
|
-
...
|
|
2131
|
+
...D.shape,
|
|
2110
2132
|
notification_type: e.string().enum(
|
|
2111
2133
|
m.PostPinned,
|
|
2112
2134
|
m.PostHighlighted,
|
|
2113
2135
|
m.PostDeleted,
|
|
2114
2136
|
m.PostLiked
|
|
2115
2137
|
)
|
|
2116
|
-
}),
|
|
2138
|
+
}), Fr = e.object({
|
|
2117
2139
|
...b.shape,
|
|
2118
|
-
...
|
|
2140
|
+
...D.shape,
|
|
2119
2141
|
...R.shape,
|
|
2120
2142
|
notification_type: e.string().enum(m.PostCommented)
|
|
2121
|
-
}),
|
|
2143
|
+
}), Ir = e.object({
|
|
2122
2144
|
...b.shape,
|
|
2123
2145
|
...R.shape,
|
|
2124
2146
|
...A.shape,
|
|
@@ -2126,55 +2148,55 @@ const Rr = {
|
|
|
2126
2148
|
}), Dr = e.object({
|
|
2127
2149
|
...b.shape,
|
|
2128
2150
|
...R.shape,
|
|
2129
|
-
...
|
|
2151
|
+
...D.shape,
|
|
2130
2152
|
notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
|
|
2131
|
-
}),
|
|
2153
|
+
}), Ar = e.object({
|
|
2132
2154
|
...b.shape,
|
|
2133
2155
|
...A.shape,
|
|
2134
2156
|
notification_type: e.string().enum(m.ReplyReplied),
|
|
2135
2157
|
comment_id: e.number(),
|
|
2136
2158
|
reply_to_reply_id: e.number(),
|
|
2137
2159
|
reply_to_reply_content: e.string()
|
|
2138
|
-
}),
|
|
2160
|
+
}), Gr = e.object({
|
|
2139
2161
|
...b.shape,
|
|
2140
2162
|
...A.shape,
|
|
2141
2163
|
...R.shape,
|
|
2142
2164
|
notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
|
|
2143
|
-
}),
|
|
2165
|
+
}), Or = e.union(
|
|
2144
2166
|
Er,
|
|
2145
|
-
Ur,
|
|
2146
2167
|
$r,
|
|
2147
2168
|
Fr,
|
|
2148
|
-
Dr,
|
|
2149
2169
|
Ir,
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2170
|
+
Dr,
|
|
2171
|
+
Ar,
|
|
2172
|
+
Gr
|
|
2173
|
+
).satisfies().lock(), Nr = s({ forums: e.array(se) }), Qr = s({ topics: e.array(F) }), Br = s({ topic: F }), Mr = s({ post: I }), K = s({
|
|
2174
|
+
posts: e.array(I),
|
|
2153
2175
|
next_token: e.string().optional()
|
|
2154
|
-
}), Mr = s({
|
|
2155
|
-
post: D.clone().optional(),
|
|
2156
|
-
antispam: ce.clone().optional()
|
|
2157
2176
|
}), Kr = s({
|
|
2177
|
+
post: I.clone().optional(),
|
|
2178
|
+
antispam: ce.clone().optional()
|
|
2179
|
+
}), Hr = s({
|
|
2158
2180
|
replies: e.array(C),
|
|
2159
2181
|
next_token: e.string().optional()
|
|
2160
|
-
}),
|
|
2182
|
+
}), zr = s({ reply: C }), Jr = s({
|
|
2161
2183
|
reply: C.clone().optional(),
|
|
2162
2184
|
antispam: ce.clone().optional()
|
|
2163
|
-
}),
|
|
2185
|
+
}), Zr = s({ comment: k }), Xr = s({
|
|
2164
2186
|
comments: e.array(k),
|
|
2165
2187
|
next_token: e.string().optional()
|
|
2166
|
-
}),
|
|
2188
|
+
}), Yr = s({
|
|
2167
2189
|
comment: k.clone().optional(),
|
|
2168
2190
|
antispam: k.clone().optional()
|
|
2169
|
-
}),
|
|
2170
|
-
notifications: e.array(
|
|
2191
|
+
}), Wr = e.guard(Pr), ea = s({
|
|
2192
|
+
notifications: e.array(Or),
|
|
2171
2193
|
next_token: e.string().optional()
|
|
2172
|
-
}),
|
|
2194
|
+
}), ta = s({
|
|
2173
2195
|
system: e.number(),
|
|
2174
2196
|
comment: e.number(),
|
|
2175
2197
|
like: e.number()
|
|
2176
2198
|
});
|
|
2177
|
-
class
|
|
2199
|
+
class ha {
|
|
2178
2200
|
token;
|
|
2179
2201
|
req;
|
|
2180
2202
|
constructor(t) {
|
|
@@ -2186,7 +2208,7 @@ class ya {
|
|
|
2186
2208
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
2187
2209
|
*/
|
|
2188
2210
|
async getForums(t) {
|
|
2189
|
-
const { data: n } = await this.req.get("community/forums",
|
|
2211
|
+
const { data: n } = await this.req.get("community/forums", Nr, t);
|
|
2190
2212
|
return n?.forums || [];
|
|
2191
2213
|
}
|
|
2192
2214
|
/**
|
|
@@ -2195,7 +2217,7 @@ class ya {
|
|
|
2195
2217
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
2196
2218
|
*/
|
|
2197
2219
|
async getTopics(t) {
|
|
2198
|
-
const { data: n } = await this.req.get("community/topics",
|
|
2220
|
+
const { data: n } = await this.req.get("community/topics", Qr, t);
|
|
2199
2221
|
return n?.topics || [];
|
|
2200
2222
|
}
|
|
2201
2223
|
/**
|
|
@@ -2204,7 +2226,7 @@ class ya {
|
|
|
2204
2226
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
2205
2227
|
*/
|
|
2206
2228
|
async getTopic(t, n) {
|
|
2207
|
-
const { data: r, code: a } = await this.req.get("community/topic",
|
|
2229
|
+
const { data: r, code: a } = await this.req.get("community/topic", Br, {
|
|
2208
2230
|
...n,
|
|
2209
2231
|
params: { topic_id: t }
|
|
2210
2232
|
});
|
|
@@ -2246,7 +2268,7 @@ class ya {
|
|
|
2246
2268
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
2247
2269
|
*/
|
|
2248
2270
|
async getPost(t, n) {
|
|
2249
|
-
const { data: r, code: a, message: o } = await this.req.get("community/post",
|
|
2271
|
+
const { data: r, code: a, message: o } = await this.req.get("community/post", Mr, {
|
|
2250
2272
|
...n,
|
|
2251
2273
|
params: { post_id: t }
|
|
2252
2274
|
});
|
|
@@ -2264,7 +2286,7 @@ class ya {
|
|
|
2264
2286
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2265
2287
|
"community/post",
|
|
2266
2288
|
c(t),
|
|
2267
|
-
|
|
2289
|
+
Kr,
|
|
2268
2290
|
n
|
|
2269
2291
|
);
|
|
2270
2292
|
return r ?? {
|
|
@@ -2278,7 +2300,7 @@ class ya {
|
|
|
2278
2300
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
2279
2301
|
*/
|
|
2280
2302
|
async getComments(t, n) {
|
|
2281
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comments",
|
|
2303
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comments", Xr, {
|
|
2282
2304
|
...n,
|
|
2283
2305
|
params: c(t)
|
|
2284
2306
|
});
|
|
@@ -2293,7 +2315,7 @@ class ya {
|
|
|
2293
2315
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
2294
2316
|
*/
|
|
2295
2317
|
async getComment(t, n) {
|
|
2296
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comment",
|
|
2318
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comment", Zr, {
|
|
2297
2319
|
...n,
|
|
2298
2320
|
params: { comment_id: t }
|
|
2299
2321
|
});
|
|
@@ -2312,7 +2334,7 @@ class ya {
|
|
|
2312
2334
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2313
2335
|
"community/comment",
|
|
2314
2336
|
c(t),
|
|
2315
|
-
|
|
2337
|
+
Yr,
|
|
2316
2338
|
n
|
|
2317
2339
|
);
|
|
2318
2340
|
return r ?? {
|
|
@@ -2326,7 +2348,7 @@ class ya {
|
|
|
2326
2348
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
2327
2349
|
*/
|
|
2328
2350
|
async getReplies(t, n) {
|
|
2329
|
-
const { data: r } = await this.req.get("community/replies",
|
|
2351
|
+
const { data: r } = await this.req.get("community/replies", Hr, {
|
|
2330
2352
|
...n,
|
|
2331
2353
|
params: c({ max_results: 20, ...t })
|
|
2332
2354
|
});
|
|
@@ -2341,7 +2363,7 @@ class ya {
|
|
|
2341
2363
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
2342
2364
|
*/
|
|
2343
2365
|
async getReply(t, n) {
|
|
2344
|
-
const { data: r, code: a, message: o } = await this.req.get("community/reply",
|
|
2366
|
+
const { data: r, code: a, message: o } = await this.req.get("community/reply", zr, {
|
|
2345
2367
|
...n,
|
|
2346
2368
|
params: { reply_id: t }
|
|
2347
2369
|
});
|
|
@@ -2360,7 +2382,7 @@ class ya {
|
|
|
2360
2382
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2361
2383
|
"community/reply",
|
|
2362
2384
|
c(t),
|
|
2363
|
-
|
|
2385
|
+
Jr,
|
|
2364
2386
|
n
|
|
2365
2387
|
);
|
|
2366
2388
|
return r ?? {
|
|
@@ -2411,7 +2433,7 @@ class ya {
|
|
|
2411
2433
|
*/
|
|
2412
2434
|
async getMediaPresignedUrl(t, n) {
|
|
2413
2435
|
await this.token.autoLogin();
|
|
2414
|
-
const { data: r } = await this.req.get("community/media-presign-url",
|
|
2436
|
+
const { data: r } = await this.req.get("community/media-presign-url", Wr, {
|
|
2415
2437
|
...n,
|
|
2416
2438
|
params: t
|
|
2417
2439
|
});
|
|
@@ -2426,7 +2448,7 @@ class ya {
|
|
|
2426
2448
|
*/
|
|
2427
2449
|
async getNotifications(t, n) {
|
|
2428
2450
|
await this.token.autoLogin();
|
|
2429
|
-
const { data: r } = await this.req.get("community/notifications",
|
|
2451
|
+
const { data: r } = await this.req.get("community/notifications", ea, {
|
|
2430
2452
|
...n,
|
|
2431
2453
|
params: c({ max_results: 20, ...t })
|
|
2432
2454
|
});
|
|
@@ -2444,7 +2466,7 @@ class ya {
|
|
|
2444
2466
|
if (!await this.token.autoLogin()) return null;
|
|
2445
2467
|
const { data: n } = await this.req.get(
|
|
2446
2468
|
"community/unread-notifications-count",
|
|
2447
|
-
|
|
2469
|
+
ta,
|
|
2448
2470
|
t
|
|
2449
2471
|
);
|
|
2450
2472
|
return n;
|
|
@@ -2460,17 +2482,17 @@ class ya {
|
|
|
2460
2482
|
return r;
|
|
2461
2483
|
}
|
|
2462
2484
|
}
|
|
2463
|
-
const
|
|
2485
|
+
const na = s({
|
|
2464
2486
|
nonce_str: e.string(),
|
|
2465
2487
|
timestamp: e.number(),
|
|
2466
2488
|
signature: e.string()
|
|
2467
2489
|
});
|
|
2468
|
-
var
|
|
2490
|
+
var ra = /* @__PURE__ */ ((i) => (i.RedirectUriDisMatch = "10003", i.AppidError = "10016", i.AuthorizationError = "10015", i.NoRightForScope = "10005", i.Frequently = "10009", i.AppBanded = "10004", i.ShouldFollow = "10006", i.ScopeNull = "10010", i.RedirectUriNull = "10011", i.AppidNull = "10012", i.StateNull = "10013", i))(ra || {});
|
|
2469
2491
|
function L(i) {
|
|
2470
2492
|
return h(i, "open_id", "union_id", "weixin_token");
|
|
2471
2493
|
}
|
|
2472
2494
|
const H = "wx_login_cache";
|
|
2473
|
-
class
|
|
2495
|
+
class fa {
|
|
2474
2496
|
token;
|
|
2475
2497
|
$appid;
|
|
2476
2498
|
req;
|
|
@@ -2610,7 +2632,7 @@ class ha {
|
|
|
2610
2632
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2611
2633
|
*/
|
|
2612
2634
|
async getJSSDKConfig(t) {
|
|
2613
|
-
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2635
|
+
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", na, {
|
|
2614
2636
|
...t,
|
|
2615
2637
|
params: {
|
|
2616
2638
|
appid: this.appid,
|
|
@@ -2627,15 +2649,15 @@ class ha {
|
|
|
2627
2649
|
}
|
|
2628
2650
|
export {
|
|
2629
2651
|
ce as AntispamValidator,
|
|
2630
|
-
|
|
2631
|
-
|
|
2652
|
+
sa as AuthToken,
|
|
2653
|
+
zn as CandidateVoteValidator,
|
|
2632
2654
|
ae as CashbackEngagementDataValidator,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2655
|
+
jn as ClaimActivationKeyEngagementDataValidator,
|
|
2656
|
+
ut as ClaimRewardStatus,
|
|
2657
|
+
U as ClaimRewardStatusValidator,
|
|
2658
|
+
ar as ClaimedItemValidator,
|
|
2637
2659
|
Z as ClubAddressValidator,
|
|
2638
|
-
|
|
2660
|
+
la as ClubApi,
|
|
2639
2661
|
X as ClubBenefitSummaryValidator,
|
|
2640
2662
|
Oe as ClubBenefitValidator,
|
|
2641
2663
|
qe as ClubCreditChangeScene,
|
|
@@ -2643,150 +2665,150 @@ export {
|
|
|
2643
2665
|
je as ClubCreditChangeType,
|
|
2644
2666
|
Te as ClubCreditChangeTypeValidator,
|
|
2645
2667
|
Ge as ClubCreditLogValidator,
|
|
2646
|
-
|
|
2668
|
+
Ue as ClubGlobalConfigValidator,
|
|
2647
2669
|
Le as ClubItemType,
|
|
2648
2670
|
z as ClubItemTypeValidator,
|
|
2649
|
-
|
|
2671
|
+
Ee as ClubPlayerValidator,
|
|
2650
2672
|
Y as ClubProductValidator,
|
|
2651
2673
|
Se as ClubRedemptionStatus,
|
|
2652
2674
|
Pe as ClubRedemptionStatusValidator,
|
|
2653
2675
|
Ae as ClubUserCreditValidator,
|
|
2654
|
-
|
|
2655
|
-
|
|
2676
|
+
De as ClubUserProfileValidator,
|
|
2677
|
+
Xn as CommentEngagementValidator,
|
|
2656
2678
|
k as CommentValidator,
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2679
|
+
ha as CommunityApi,
|
|
2680
|
+
Jn as ConversationValidator,
|
|
2681
|
+
tt as EngageAccountType,
|
|
2682
|
+
nt as EngageAccountTypeValidator,
|
|
2683
|
+
rr as EngageResponseValidator,
|
|
2684
|
+
Wn as EngageRewardValidator,
|
|
2685
|
+
ba as EventApi,
|
|
2686
|
+
Rn as EventConfigValidator,
|
|
2687
|
+
Tt as EventFeatureConfigOfCashbackValidator,
|
|
2688
|
+
xt as EventFeatureConfigOfCheckInValidator,
|
|
2689
|
+
St as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2690
|
+
Ut as EventFeatureConfigOfClaimRewardsValidator,
|
|
2691
|
+
$t as EventFeatureConfigOfCommentValidator,
|
|
2692
|
+
It as EventFeatureConfigOfFollowValidator,
|
|
2693
|
+
Gt as EventFeatureConfigOfGiftCodeValidator,
|
|
2694
|
+
Nt as EventFeatureConfigOfInviteValidator,
|
|
2695
|
+
Bt as EventFeatureConfigOfInvitedRegisterValidator,
|
|
2696
|
+
Zt as EventFeatureConfigOfLotteryDrawValidator,
|
|
2697
|
+
zt as EventFeatureConfigOfLotteryValidator,
|
|
2698
|
+
Yt as EventFeatureConfigOfPreregisterValidator,
|
|
2699
|
+
en as EventFeatureConfigOfQuestValidator,
|
|
2700
|
+
nn as EventFeatureConfigOfRegisterValidator,
|
|
2701
|
+
an as EventFeatureConfigOfShareValidator,
|
|
2702
|
+
sn as EventFeatureConfigOfSubscribeValidator,
|
|
2703
|
+
ln as EventFeatureConfigOfSurveyValidator,
|
|
2704
|
+
mn as EventFeatureConfigOfTeamValidator,
|
|
2705
|
+
_n as EventFeatureConfigOfUgcLikeValidator,
|
|
2706
|
+
gn as EventFeatureConfigOfUgcValidator,
|
|
2707
|
+
kn as EventFeatureConfigOfVote2Validator,
|
|
2708
|
+
hn as EventFeatureConfigOfVoteValidator,
|
|
2709
|
+
Cn as EventFeatureConfigValidator,
|
|
2710
|
+
rt as EventPeriodType,
|
|
2711
|
+
at as EventPeriodTypeValidator,
|
|
2690
2712
|
y as EventRewardItemConfigValidator,
|
|
2691
2713
|
Qe as ExtraGameRewardValidator,
|
|
2692
2714
|
Ne as ExtraPhysicalShipmentValidator,
|
|
2693
|
-
|
|
2715
|
+
Rt as FeatureRewardValidator,
|
|
2694
2716
|
l as FeatureType,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2717
|
+
ot as FeatureTypeValidator,
|
|
2718
|
+
jr as ForumMode,
|
|
2719
|
+
Tr as ForumModeValidator,
|
|
2698
2720
|
se as ForumValidator,
|
|
2699
2721
|
v as GamerItemType,
|
|
2700
2722
|
W as GamerItemTypeValidator,
|
|
2701
2723
|
Ce as Gender,
|
|
2702
2724
|
Re as GenderValidator,
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2725
|
+
Tn as GiftCodeEngagementDataValidator,
|
|
2726
|
+
qn as InviteEngagementDataValidator,
|
|
2727
|
+
_t as LotteryDrawAction,
|
|
2728
|
+
pa as LotteryDrawActionValidator,
|
|
2729
|
+
Pn as LotteryDrawEngagementDataValidator,
|
|
2730
|
+
xn as LotteryEngagementDataValidator,
|
|
2709
2731
|
w as LotteryTicketStatus,
|
|
2710
|
-
|
|
2732
|
+
da as LotteryTicketStatusValidator,
|
|
2711
2733
|
b as NotificationBaseValidator,
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2734
|
+
xr as NotificationCategory,
|
|
2735
|
+
ya as NotificationCategoryValidator,
|
|
2736
|
+
Ir as NotificationCommentReplyValidator,
|
|
2715
2737
|
Dr as NotificationCommentValidator,
|
|
2716
2738
|
R as NotificationPayloadCommentValidator,
|
|
2717
|
-
|
|
2739
|
+
D as NotificationPayloadPostValidator,
|
|
2718
2740
|
A as NotificationPayloadReplyValidator,
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2741
|
+
Ur as NotificationPayloadSystemValidator,
|
|
2742
|
+
Fr as NotificationPostCommentValidator,
|
|
2743
|
+
$r as NotificationPostValidator,
|
|
2744
|
+
Ar as NotificationReplyRepliedValidator,
|
|
2745
|
+
Gr as NotificationReplyValidator,
|
|
2724
2746
|
Er as NotificationSystemValidator,
|
|
2725
2747
|
m as NotificationType,
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2748
|
+
Lr as NotificationTypeValidator,
|
|
2749
|
+
Or as NotificationValidator,
|
|
2750
|
+
Ie as PlayerRoleCardValidator,
|
|
2729
2751
|
J as PlayerRoleValidator,
|
|
2730
|
-
|
|
2752
|
+
qr as PostStatus,
|
|
2731
2753
|
ie as PostStatusValidator,
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2754
|
+
I as PostValidator,
|
|
2755
|
+
Un as PreregisterEngagementDataValidator,
|
|
2756
|
+
Pr as PresignedUrlResponseValidator,
|
|
2735
2757
|
En as QuestEngagementDataValidator,
|
|
2736
|
-
|
|
2758
|
+
it as QuestObjective,
|
|
2737
2759
|
te as QuestObjectiveValidator,
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2760
|
+
bt as QuestProgressAlgorithm,
|
|
2761
|
+
yt as QuestProgressAlgorithmValidator,
|
|
2762
|
+
$n as QuestProgressValidator,
|
|
2763
|
+
ca as RedeemParamsValidator,
|
|
2742
2764
|
Be as RedemptionValidator,
|
|
2743
|
-
|
|
2744
|
-
|
|
2765
|
+
Ct as RegularRewardValidator,
|
|
2766
|
+
Sr as ReplyToValidator,
|
|
2745
2767
|
C as ReplyValidator,
|
|
2746
|
-
|
|
2768
|
+
ua as RewardItemType,
|
|
2747
2769
|
ee as RewardItemTypeValidator,
|
|
2748
|
-
|
|
2749
|
-
|
|
2770
|
+
mt as RewardSource,
|
|
2771
|
+
E as RewardSourceValidator,
|
|
2750
2772
|
d as RewardStatus,
|
|
2751
|
-
|
|
2773
|
+
lt as RewardStatusSuffix,
|
|
2752
2774
|
ne as RewardStatusSuffixValidator,
|
|
2753
|
-
|
|
2754
|
-
|
|
2775
|
+
ma as RewardStatusValidator,
|
|
2776
|
+
Yn as RewardValidator,
|
|
2755
2777
|
Fe as RoleBaseInfoValidator,
|
|
2756
2778
|
$e as ServerBaseInfoValidator,
|
|
2757
|
-
|
|
2779
|
+
Fn as ShareEngagementDataValidator,
|
|
2758
2780
|
Dn as SurveyEngagementDataValidator,
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2781
|
+
pt as TeamAction,
|
|
2782
|
+
ga as TeamActionValidator,
|
|
2783
|
+
Gn as TeamEngagementDataValidator,
|
|
2784
|
+
An as TeamEngagementValidator,
|
|
2785
|
+
_a as TeamMemberValidator,
|
|
2786
|
+
dt as TeamVisibility,
|
|
2787
|
+
gt as TeamVisibilityValidator,
|
|
2766
2788
|
F as TopicValidator,
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2789
|
+
On as UgcEngagementDataValidator,
|
|
2790
|
+
Bn as UgcLeaderboardResponseValidator,
|
|
2791
|
+
Nn as UgcRecordResponseValidator,
|
|
2792
|
+
kt as UgcReviewStatus,
|
|
2793
|
+
vt as UgcReviewStatusValidator,
|
|
2794
|
+
wt as UgcSocialMedia,
|
|
2773
2795
|
re as UgcSocialMediaValidator,
|
|
2774
|
-
|
|
2796
|
+
Qn as UgcUploadImageValidator,
|
|
2775
2797
|
$ as UserEngagementDataValidator,
|
|
2776
|
-
|
|
2777
|
-
|
|
2798
|
+
er as UserEngagementValidator,
|
|
2799
|
+
nr as UserFeatureStatusValidator,
|
|
2778
2800
|
V as UserRewardValidator,
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2801
|
+
tr as VerifyMobileResultValidator,
|
|
2802
|
+
Hn as Vote2ClaimRewardsResponseValidator,
|
|
2803
|
+
Kn as Vote2EngagementDataValidator,
|
|
2804
|
+
ht as Vote2RewardType,
|
|
2805
|
+
ft as Vote2RewardTypeValidator,
|
|
2806
|
+
Mn as VoteEngagementDataValidator,
|
|
2807
|
+
st as VoteOptionSource,
|
|
2808
|
+
ct as VoteOptionSourceValidator,
|
|
2809
|
+
fa as WeixinApi,
|
|
2810
|
+
In as WeixinSubscribeEngagementDataValidator,
|
|
2811
|
+
ra as WeixinWebLoginErrorCode,
|
|
2812
|
+
Zn as ZeroChatGPTDataValidator,
|
|
2813
|
+
na as isWeixinSignResponse
|
|
2792
2814
|
};
|