@seayoo-web/gamer-api 2.10.3 → 2.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { isComboWebView as ue } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as w, supportWx as b, useConsole as de, usePromise as ge, pruneURL as pe, supportWindow as _e, queryString as L, pruneObject as c, omitFields as k, parseJSON as be, removePara as G } from "@seayoo-web/utils";
1
+ import { isComboWebView as me } from "@seayoo-web/combo-webview";
2
+ import { isPlainObject as w, supportWx as b, useConsole as de, usePromise as ge, pruneURL as pe, supportWindow as _e, queryString as L, pruneObject as c, omitFields as k, parseJSON as be, removePara as O } from "@seayoo-web/utils";
3
3
  import { v as e, objectGuard as s } from "@seayoo-web/validator";
4
4
  function ye(i) {
5
5
  return w(i, "gamer_token") && typeof i.gamer_token == "string";
6
6
  }
7
- function O(i) {
7
+ function N(i) {
8
8
  return w(i);
9
9
  }
10
10
  const j = de("GamerApiSDK");
@@ -56,7 +56,7 @@ const we = {
56
56
  }
57
57
  }
58
58
  }, y = "gamer_token";
59
- class Br {
59
+ class Qr {
60
60
  $NetRequest;
61
61
  $idToken = "";
62
62
  $weixinToken = "";
@@ -88,7 +88,7 @@ class Br {
88
88
  }
89
89
  }), _e()) {
90
90
  const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = L("gamer_token");
91
- (ue() || a && o) && (this.$gamerToken = o);
91
+ (me() || a && o) && (this.$gamerToken = o);
92
92
  }
93
93
  this.$gamerToken || this.loadGamerTokenCache();
94
94
  }
@@ -197,7 +197,7 @@ class Br {
197
197
  */
198
198
  async getSession() {
199
199
  if (!await this.autoLogin()) return null;
200
- const { data: t } = await this.req.get("session", O, {
200
+ const { data: t } = await this.req.get("session", N, {
201
201
  message: !1
202
202
  });
203
203
  return t;
@@ -209,7 +209,7 @@ class Br {
209
209
  */
210
210
  async authRealName(t) {
211
211
  if (!await this.autoLogin()) return null;
212
- const { data: n } = await this.req.post("auth-real-name", c(t), O);
212
+ const { data: n } = await this.req.post("auth-real-name", c(t), N);
213
213
  return n;
214
214
  }
215
215
  }
@@ -317,12 +317,12 @@ const ve = {
317
317
  district: e.string(),
318
318
  address: e.string(),
319
319
  is_default: e.bool()
320
- }).lock(), Ie = e.object({
320
+ }).lock(), De = e.object({
321
321
  increased_credit: e.number(),
322
322
  decreased_credit: e.number(),
323
323
  expired_credit: e.number(),
324
324
  balance_credit: e.number()
325
- }).lock(), De = e.object({
325
+ }).lock(), Ie = e.object({
326
326
  id: e.number(),
327
327
  change_type: Re,
328
328
  change_scene: Te,
@@ -367,7 +367,7 @@ const ve = {
367
367
  }).lock(), Ae = e.object({
368
368
  ...k(X.shape, "tag"),
369
369
  product: Y.clone().optional()
370
- }).lock(), Mr = e.union(
370
+ }).lock(), Br = e.union(
371
371
  e.object({
372
372
  server_id: e.string(),
373
373
  role_id: e.string()
@@ -402,14 +402,14 @@ const ve = {
402
402
  status: Se,
403
403
  created_at: e.number(),
404
404
  extra_data: e.union(Ge.clone(), Oe.clone()).satisfies().optional()
405
- }), Qe = e.guard(Le), N = s({ player: Pe }), Be = s({ roles: e.array(J) }), T = s({ role_card: Fe }), Q = e.guard(Ue), B = e.guard(Z), Me = s({ addresses: e.array(Z) }), Ke = e.guard(Ie), He = s({
406
- credit_logs: e.array(De),
405
+ }), Qe = e.guard(Le), Q = s({ player: Pe }), Be = s({ roles: e.array(J) }), T = s({ role_card: Fe }), B = e.guard(Ue), M = e.guard(Z), Me = s({ addresses: e.array(Z) }), Ke = e.guard(De), He = s({
406
+ credit_logs: e.array(Ie),
407
407
  next_token: e.string().optional()
408
408
  }), ze = s({ products: e.array(Y) }), Je = s({ benefits: e.array(X) }), Ze = s({ benefit: Ae }), Xe = s({
409
409
  redemptions: e.array(Ne),
410
410
  next_token: e.string().optional()
411
411
  });
412
- class Kr {
412
+ class Mr {
413
413
  token;
414
414
  req;
415
415
  constructor(t) {
@@ -431,7 +431,7 @@ class Kr {
431
431
  */
432
432
  async getCurrentPlayer(t) {
433
433
  await this.token.autoLogin();
434
- const { data: n, code: r, message: a } = await this.req.get("club/current-player", N, t);
434
+ const { data: n, code: r, message: a } = await this.req.get("club/current-player", Q, t);
435
435
  return n?.player ?? {
436
436
  message: a,
437
437
  error: r
@@ -447,7 +447,7 @@ class Kr {
447
447
  const { data: n, code: r, message: a } = await this.req.post(
448
448
  "club/link-player",
449
449
  { id_token: this.token.idToken },
450
- N,
450
+ Q,
451
451
  t
452
452
  );
453
453
  return n?.player ?? {
@@ -506,7 +506,7 @@ class Kr {
506
506
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TMWBCFcOr2
507
507
  */
508
508
  async getUserProfile(t, n) {
509
- const { data: r } = await this.req.get("club/user-profile", Q, {
509
+ const { data: r } = await this.req.get("club/user-profile", B, {
510
510
  ...n,
511
511
  params: { member_id: t }
512
512
  });
@@ -521,7 +521,7 @@ class Kr {
521
521
  if (Object.keys(t).length === 0)
522
522
  return { error: "OptionIsEmpty", message: "请提供需要修改的信息" };
523
523
  await this.token.autoLogin();
524
- const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t, Q, n);
524
+ const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t, B, n);
525
525
  return r ?? {
526
526
  message: o,
527
527
  error: a
@@ -544,7 +544,7 @@ class Kr {
544
544
  */
545
545
  async addAddress(t, n) {
546
546
  if (!await this.token.autoLogin()) return null;
547
- const { data: r } = await this.req.post("/club/add-address", c(t), B, n);
547
+ const { data: r } = await this.req.post("/club/add-address", c(t), M, n);
548
548
  return r;
549
549
  }
550
550
  /**
@@ -557,7 +557,7 @@ class Kr {
557
557
  const { data: r, code: a, message: o } = await this.req.post(
558
558
  "club/update-address",
559
559
  c(t),
560
- B,
560
+ M,
561
561
  n
562
562
  );
563
563
  return r ?? {
@@ -693,7 +693,7 @@ const v = {
693
693
  ExternalCode: "external_gift_code",
694
694
  /** 空奖励 */
695
695
  VoidItem: "void_item"
696
- }, W = e.string().enum(v).lock(), Hr = v, ee = W, Ye = {
696
+ }, W = e.string().enum(v).lock(), Kr = v, ee = W, Ye = {
697
697
  /** 世游通行证 ID / Combo ID */
698
698
  UserId: "user_id",
699
699
  /** 游戏角色 ID */
@@ -783,7 +783,7 @@ const v = {
783
783
  Failed: "failed",
784
784
  /** 奖励已发货 */
785
785
  Delivered: "delivered"
786
- }, zr = e.string().enum(d).lock(), it = {
786
+ }, Hr = e.string().enum(d).lock(), it = {
787
787
  /** 奖励未领取 */
788
788
  Unclaimed: d.Unclaimed,
789
789
  /** 奖励已领取 */
@@ -803,17 +803,17 @@ const v = {
803
803
  Failed: d.Failed,
804
804
  /** 奖励已发货 */
805
805
  Delivered: d.Delivered
806
- }, P = e.string().enum(st).lock(), ct = {
806
+ }, E = e.string().enum(st).lock(), ct = {
807
807
  /** 玩法产出奖励 */
808
808
  Output: "output",
809
809
  /** 玩法参与奖励 */
810
810
  Engage: "engage"
811
- }, E = e.string().enum(ct).lock(), lt = {
811
+ }, $ = e.string().enum(ct).lock(), lt = {
812
812
  /** 私有队伍 */
813
813
  Private: "private",
814
814
  /** 公开队伍 */
815
815
  Public: "public"
816
- }, mt = e.string().enum(lt).lock(), f = {
816
+ }, ut = e.string().enum(lt).lock(), f = {
817
817
  /** 未知状态 */
818
818
  Unknown: "unknown",
819
819
  /** 等待开奖 */
@@ -824,7 +824,7 @@ const v = {
824
824
  Claimed: "claimed",
825
825
  /** 领奖失败 */
826
826
  Fail: "fail"
827
- }, Jr = e.string().enum(f).lock(), ut = {
827
+ }, zr = e.string().enum(f).lock(), mt = {
828
828
  /** 发起组队 */
829
829
  Assemble: "assemble",
830
830
  /** 加入队伍 */
@@ -835,26 +835,26 @@ const v = {
835
835
  ChangeVisibility: "change_visibility",
836
836
  /** 查询组队信息 */
837
837
  Query: "query"
838
- }, Zr = e.string().enum(ut).lock(), dt = {
838
+ }, Jr = e.string().enum(mt).lock(), dt = {
839
839
  /** 查询抽奖券 */
840
840
  Query: "query",
841
841
  /** 开奖 */
842
842
  Draw: "draw",
843
843
  /** 领奖 */
844
844
  Claim: "claim"
845
- }, Xr = e.string().enum(dt).lock(), re = {
845
+ }, Zr = e.string().enum(dt).lock(), re = {
846
846
  /** 将所有队员的进度值求和,作为队伍进度值 */
847
847
  Sum: "sum",
848
848
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
849
849
  TopN: "top_n"
850
- }, Yr = e.string().enum(re).lock(), gt = e.string().enum(re).optional().lock(), pt = {
850
+ }, Xr = e.string().enum(re).lock(), gt = e.string().enum(re).optional().lock(), pt = {
851
851
  /** 尚未结算 */
852
852
  None: "none",
853
853
  /** 获胜奖励 */
854
854
  Winner: "winner",
855
855
  /** 安慰奖励 */
856
856
  Consolation: "consolation"
857
- }, _t = e.string().enum(pt).lock(), bt = e.string().enum(k(v, "GiftCode", "LotteryTicket")), $ = e.object({
857
+ }, _t = e.string().enum(pt).lock(), bt = e.string().enum(k(v, "GiftCode", "LotteryTicket")), F = e.object({
858
858
  reward_item_id: e.number(),
859
859
  reward_amount: e.number(),
860
860
  reward_item_name: e.string(),
@@ -864,20 +864,17 @@ const v = {
864
864
  reward_item_rating: e.number()
865
865
  }).lock(), yt = e.object({
866
866
  engage_count: e.number(),
867
- rewards: e.array($)
867
+ rewards: e.array(F)
868
868
  }).lock(), ft = e.union(
869
869
  e.object({
870
870
  feature_reward_type: e.string().enum("every"),
871
- reward_details: e.array($)
871
+ reward_details: e.array(F)
872
872
  }),
873
873
  e.object({
874
874
  feature_reward_type: e.string().enum("regular"),
875
875
  reward_details: e.array(yt)
876
876
  })
877
- ).satisfies().lock(), M = e.object({
878
- item_id: e.number(),
879
- item_amount: e.number()
880
- }), m = e.object({
877
+ ).satisfies().lock(), u = e.object({
881
878
  feature_name: e.string(),
882
879
  feature_id: e.number(),
883
880
  description: e.string(),
@@ -890,7 +887,7 @@ const v = {
890
887
  feature_rewards: ft.clone().optional(),
891
888
  sort: e.number().optional()
892
889
  }), ht = l.Cashback, wt = e.object({
893
- ...m.shape,
890
+ ...u.shape,
894
891
  feature_type: e.string().enum(ht),
895
892
  config: e.object({
896
893
  order_start_time: e.number(),
@@ -899,23 +896,23 @@ const v = {
899
896
  claim_rewards_end_time: e.number()
900
897
  })
901
898
  }), kt = l.CheckIn, vt = e.object({
902
- ...m.shape,
899
+ ...u.shape,
903
900
  feature_type: e.string().enum(kt)
904
901
  }), Vt = l.ClaimActivationKey, Ct = e.object({
905
- ...m.shape,
902
+ ...u.shape,
906
903
  feature_type: e.string().enum(Vt)
907
904
  }), Rt = l.ClaimRewards, jt = e.object({
908
- ...m.shape,
905
+ ...u.shape,
909
906
  feature_type: e.string().enum(Rt)
910
907
  }), Tt = l.Comment, qt = e.object({
911
- ...m.shape,
908
+ ...u.shape,
912
909
  feature_type: e.string().enum(Tt),
913
910
  config: e.object({
914
911
  comments: e.array(e.string()),
915
912
  send_rate: e.number()
916
913
  })
917
914
  }), xt = l.Follow, St = e.object({
918
- ...m.shape,
915
+ ...u.shape,
919
916
  feature_type: e.string().enum(xt),
920
917
  config: e.object({
921
918
  platform: e.string(),
@@ -929,7 +926,7 @@ const v = {
929
926
  icon_url: e.string(),
930
927
  count: e.number()
931
928
  }), Et = e.object({
932
- ...m.shape,
929
+ ...u.shape,
933
930
  feature_type: e.string().enum(Lt),
934
931
  config: e.object({
935
932
  gift_items: e.array(Pt),
@@ -937,25 +934,25 @@ const v = {
937
934
  mp_qrcode_url: e.string().optional()
938
935
  })
939
936
  }), $t = l.Invite, Ft = e.object({
940
- ...m.shape,
937
+ ...u.shape,
941
938
  feature_type: e.string().enum($t),
942
939
  config: e.object({
943
940
  share_url: e.string()
944
941
  })
945
- }), Ut = l.InvitedRegister, It = e.object({
946
- ...m.shape,
942
+ }), Ut = l.InvitedRegister, Dt = e.object({
943
+ ...u.shape,
947
944
  feature_type: e.string().enum(Ut)
948
- }), Dt = e.string().enum(k(v, "GiftCode", "LotteryTicket")), At = l.Lottery, Gt = e.object({
945
+ }), It = e.string().enum(k(v, "GiftCode", "LotteryTicket")), At = l.Lottery, Gt = e.object({
949
946
  reward_item_id: e.number(),
950
947
  reward_item_name: e.string(),
951
- reward_item_type: Dt,
948
+ reward_item_type: It,
952
949
  reward_item_icon_url: e.string(),
953
950
  reward_item_desc: e.string().optional(),
954
951
  reward_amount: e.number(),
955
952
  reward_remaining_stock: e.number(),
956
953
  reward_item_rating: e.number()
957
954
  }), Ot = e.object({
958
- ...m.shape,
955
+ ...u.shape,
959
956
  feature_type: e.string().enum(At),
960
957
  config: e.object({
961
958
  consume_item_id: e.number(),
@@ -966,17 +963,17 @@ const v = {
966
963
  rewards: e.array(Gt)
967
964
  })
968
965
  }), Nt = l.LotteryDraw, Qt = e.object({
969
- ...m.shape,
966
+ ...u.shape,
970
967
  feature_type: e.string().enum(Nt),
971
968
  config: e.object({
972
969
  draw_not_before: e.number(),
973
970
  draw_not_after: e.number()
974
971
  })
975
972
  }), Bt = l.Preregister, Mt = e.object({
976
- ...m.shape,
973
+ ...u.shape,
977
974
  feature_type: e.string().enum(Bt)
978
975
  }), Kt = l.Quest, Ht = e.object({
979
- ...m.shape,
976
+ ...u.shape,
980
977
  feature_type: e.string().enum(Kt),
981
978
  config: e.object({
982
979
  objective: te,
@@ -995,10 +992,10 @@ const v = {
995
992
  }).optional()
996
993
  })
997
994
  }), zt = l.Register, Jt = e.object({
998
- ...m.shape,
995
+ ...u.shape,
999
996
  feature_type: e.string().enum(zt)
1000
997
  }), Zt = l.Share, Xt = e.object({
1001
- ...m.shape,
998
+ ...u.shape,
1002
999
  feature_type: e.string().enum(Zt),
1003
1000
  config: e.object({
1004
1001
  share_platform: e.string(),
@@ -1006,20 +1003,20 @@ const v = {
1006
1003
  icon_url: e.string().optional()
1007
1004
  })
1008
1005
  }), Yt = l.Subscribe, Wt = e.object({
1009
- ...m.shape,
1006
+ ...u.shape,
1010
1007
  feature_type: e.string().enum(Yt),
1011
1008
  config: e.object({
1012
1009
  weixin_template_ids: e.array(e.string())
1013
1010
  })
1014
1011
  }), en = l.Survey, tn = e.object({
1015
- ...m.shape,
1012
+ ...u.shape,
1016
1013
  feature_type: e.string().enum(en),
1017
1014
  config: e.object({
1018
1015
  survey_id: e.string(),
1019
1016
  survey_url: e.string()
1020
1017
  })
1021
1018
  }), nn = l.Team, rn = e.object({
1022
- ...m.shape,
1019
+ ...u.shape,
1023
1020
  feature_type: e.string().enum(nn),
1024
1021
  config: e.object({
1025
1022
  max_members: e.number().min(1),
@@ -1036,7 +1033,7 @@ const v = {
1036
1033
  finalists: e.bool(),
1037
1034
  last_vote_time: e.number()
1038
1035
  }), sn = e.object({
1039
- ...m.shape,
1036
+ ...u.shape,
1040
1037
  feature_type: e.string().enum(an),
1041
1038
  config: e.object({
1042
1039
  vote_feature_ids: e.array(e.number()),
@@ -1044,7 +1041,7 @@ const v = {
1044
1041
  finalists_amount: e.number(),
1045
1042
  source: ot,
1046
1043
  options: e.array(on),
1047
- rewards: e.array($)
1044
+ rewards: e.array(F)
1048
1045
  })
1049
1046
  }), cn = l.Vote2, ln = e.object({
1050
1047
  candidate_id: e.string(),
@@ -1053,8 +1050,8 @@ const v = {
1053
1050
  videos: e.array(e.string()).optional(),
1054
1051
  description: e.string().optional(),
1055
1052
  jump_url: e.string()
1056
- }), mn = e.object({
1057
- ...m.shape,
1053
+ }), un = e.object({
1054
+ ...u.shape,
1058
1055
  feature_type: e.string().enum(cn),
1059
1056
  config: e.object({
1060
1057
  vote_item_id: e.number().optional(),
@@ -1063,12 +1060,12 @@ const v = {
1063
1060
  vote_until: e.number(),
1064
1061
  rewards_since: e.number(),
1065
1062
  rewards_until: e.number(),
1066
- winner_rewards: e.array(M).optional(),
1067
- consolation_rewards: e.array(M).optional()
1063
+ winner_rewards: e.array(P).optional(),
1064
+ consolation_rewards: e.array(P).optional()
1068
1065
  })
1069
- }), un = l.ZeroChatgpt, dn = e.object({
1070
- ...m.shape,
1071
- feature_type: e.string().enum(un)
1066
+ }), mn = l.ZeroChatgpt, dn = e.object({
1067
+ ...u.shape,
1068
+ feature_type: e.string().enum(mn)
1072
1069
  }), gn = e.union(
1073
1070
  wt,
1074
1071
  vt,
@@ -1077,7 +1074,7 @@ const v = {
1077
1074
  St,
1078
1075
  Et,
1079
1076
  Ft,
1080
- It,
1077
+ Dt,
1081
1078
  Ot,
1082
1079
  Qt,
1083
1080
  Mt,
@@ -1088,7 +1085,7 @@ const v = {
1088
1085
  tn,
1089
1086
  rn,
1090
1087
  sn,
1091
- mn,
1088
+ un,
1092
1089
  Ct,
1093
1090
  dn
1094
1091
  ).key("feature_type").satisfies(), pn = e.object({
@@ -1115,14 +1112,14 @@ const v = {
1115
1112
  }), V = e.object({
1116
1113
  reward_id: e.number(),
1117
1114
  reward_item_id: e.number(),
1118
- reward_source: E,
1115
+ reward_source: $,
1119
1116
  reward_item_name: e.string(),
1120
1117
  reward_item_type: W,
1121
1118
  reward_item_icon_url: e.string(),
1122
1119
  reward_item_desc: e.string().optional(),
1123
1120
  reward_item_rating: e.number(),
1124
1121
  reward_amount: e.number(),
1125
- reward_status: P,
1122
+ reward_status: E,
1126
1123
  event_id: e.number(),
1127
1124
  event_name: e.string(),
1128
1125
  feature_id: e.number(),
@@ -1174,14 +1171,14 @@ const v = {
1174
1171
  team_code: e.string(),
1175
1172
  leader_name: e.string(),
1176
1173
  total_members: e.number()
1177
- }), Wr = e.object({
1174
+ }), Yr = e.object({
1178
1175
  is_leader: e.bool(),
1179
1176
  is_myself: e.bool().optional(),
1180
1177
  role_name: e.string(),
1181
1178
  server_name: e.string()
1182
1179
  }), Sn = e.object({
1183
1180
  team_code: e.string(),
1184
- visibility: mt,
1181
+ visibility: ut,
1185
1182
  members: e.array(
1186
1183
  e.object({
1187
1184
  is_leader: e.bool(),
@@ -1209,14 +1206,14 @@ const v = {
1209
1206
  content: e.string()
1210
1207
  }), Un = e.object({
1211
1208
  conversations: e.array(Fn)
1212
- }), In = e.object({
1209
+ }), Dn = e.object({
1213
1210
  user_id: e.string(),
1214
1211
  name: e.string(),
1215
1212
  avatar_url: e.string(),
1216
1213
  comment: e.string(),
1217
1214
  video_note: e.number(),
1218
1215
  created_at: e.number()
1219
- }), F = e.union(
1216
+ }), U = e.union(
1220
1217
  Vn,
1221
1218
  hn,
1222
1219
  qn,
@@ -1236,20 +1233,20 @@ const v = {
1236
1233
  "EmptyObject",
1237
1234
  (i) => w(i) && Object.keys(i).length === 0
1238
1235
  )
1239
- ).satisfies().lock(), Dn = e.object({
1236
+ ).satisfies().lock(), In = e.object({
1240
1237
  reward_id: e.number(),
1241
1238
  reward_item_id: e.number(),
1242
1239
  reward_item_type: ee,
1243
1240
  reward_count: e.number(),
1244
1241
  reward_status: ne,
1245
- reward_source: E,
1242
+ reward_source: $,
1246
1243
  reward_item_name: e.string(),
1247
1244
  reward_item_icon_url: e.string(),
1248
1245
  reward_item_desc: e.string().optional(),
1249
1246
  reward_item_rating: e.number(),
1250
1247
  receive_time: e.number(),
1251
- extra_data: e.union(...F.validators, e.record(e.unknown())).satisfies().optional()
1252
- }), An = e.object({
1248
+ extra_data: e.union(...U.validators, e.record(e.unknown())).satisfies().optional()
1249
+ }), P = e.object({
1253
1250
  reward_id: e.number(),
1254
1251
  reward_item_id: e.number(),
1255
1252
  reward_item_name: e.string(),
@@ -1259,69 +1256,69 @@ const v = {
1259
1256
  reward_item_rating: e.number(),
1260
1257
  reward_amount: e.number(),
1261
1258
  reward_status: ne,
1262
- reward_source: E,
1259
+ reward_source: $,
1263
1260
  extra_data: e.record(e.unknown()).optional()
1264
- }), Gn = e.object({
1261
+ }), An = e.object({
1265
1262
  engagement_id: e.number(),
1266
1263
  user_id: e.string(),
1267
1264
  event_id: e.number(),
1268
1265
  feature_id: e.number(),
1269
1266
  sequence: e.number(),
1270
- data: F.clone().optional(),
1267
+ data: U.clone().optional(),
1271
1268
  server_id: e.string().optional(),
1272
1269
  role_id: e.string().optional(),
1273
1270
  created_at: e.number(),
1274
- rewards: e.array(Dn).optional()
1275
- }).lock(), On = e.object({
1271
+ rewards: e.array(In).optional()
1272
+ }).lock(), Gn = e.object({
1276
1273
  allowed: e.bool(),
1277
1274
  registered: e.bool()
1278
- }), Nn = e.object({
1275
+ }), On = e.object({
1279
1276
  feature_id: e.number(),
1280
1277
  can_engage: e.bool(),
1281
1278
  has_unclaimed_rewards: e.bool()
1282
- }), Qn = e.object({
1279
+ }), Nn = e.object({
1283
1280
  engagement_id: e.number(),
1284
1281
  engagement: e.object({
1285
1282
  engagement_id: e.number(),
1286
1283
  sequence: e.number(),
1287
1284
  feature_id: e.number(),
1288
- data: F.clone().optional()
1285
+ data: U.clone().optional()
1289
1286
  }).optional(),
1290
- rewards: e.array(An).optional(),
1287
+ rewards: e.array(P).optional(),
1291
1288
  scan: e.bool().optional()
1292
- }), Bn = e.object({
1289
+ }), Qn = e.object({
1293
1290
  reward_id: e.number(),
1294
- reward_status: P
1295
- }), Mn = e.guard(pn), Kn = e.guard(On), x = s({ count: e.number() }), Hn = s({ first_visit: e.bool() }), zn = s({
1296
- engagements: e.union(e.array(In), e.array(xn))
1291
+ reward_status: E
1292
+ }), Bn = e.guard(pn), Mn = e.guard(Gn), x = s({ count: e.number() }), Kn = s({ first_visit: e.bool() }), Hn = s({
1293
+ engagements: e.union(e.array(Dn), e.array(xn))
1294
+ }), zn = s({
1295
+ status: e.array(On)
1297
1296
  }), Jn = s({
1298
- status: e.array(Nn)
1299
- }), Zn = s({
1300
1297
  engagements_counts: e.record(e.number())
1301
- }), Xn = s({
1302
- engagements: e.array(Gn),
1298
+ }), Zn = s({
1299
+ engagements: e.array(An),
1303
1300
  next_token: e.string().optional()
1304
- }), Yn = e.guard(Qn), Wn = s({
1305
- claimed_items: e.array(Bn)
1306
- }), er = s({
1301
+ }), Xn = e.guard(Nn), Yn = s({
1302
+ claimed_items: e.array(Qn)
1303
+ }), Wn = s({
1307
1304
  rewards: e.array(V)
1305
+ }), er = s({
1306
+ reward_status: E
1308
1307
  }), tr = s({
1309
- reward_status: P
1310
- }), nr = s({
1311
1308
  user_rewards: e.array(V),
1312
1309
  next_token: e.string().optional()
1313
- }), rr = s({
1310
+ }), nr = s({
1314
1311
  scene: e.string()
1315
- }), ar = s({
1312
+ }), rr = s({
1316
1313
  params: e.string()
1317
- }), or = s({
1314
+ }), ar = s({
1318
1315
  img: e.string()
1319
- }), ir = e.guard(Rn), sr = e.guard(En), cr = e.guard(
1316
+ }), or = e.guard(Rn), ir = e.guard(En), sr = e.guard(
1320
1317
  e.object({
1321
1318
  candidate_votes: e.array($n)
1322
1319
  })
1323
1320
  );
1324
- class ea {
1321
+ class Wr {
1325
1322
  token;
1326
1323
  event = 0;
1327
1324
  req;
@@ -1334,7 +1331,7 @@ class ea {
1334
1331
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
1335
1332
  */
1336
1333
  async verifyMobileAllowed(t, n, r) {
1337
- const { data: a } = await this.req.get("verify-mobile-allowed", Kn, {
1334
+ const { data: a } = await this.req.get("verify-mobile-allowed", Mn, {
1338
1335
  ...r,
1339
1336
  params: { game_id: t, mobile: n }
1340
1337
  });
@@ -1346,7 +1343,7 @@ class ea {
1346
1343
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
1347
1344
  */
1348
1345
  async getConfig(t) {
1349
- const { data: n } = await this.req.get(`event/${this.event}/event-config`, Mn, t);
1346
+ const { data: n } = await this.req.get(`event/${this.event}/event-config`, Bn, t);
1350
1347
  return n;
1351
1348
  }
1352
1349
  /**
@@ -1381,7 +1378,7 @@ class ea {
1381
1378
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
1382
1379
  */
1383
1380
  async getEngagements(t, n) {
1384
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, zn, {
1381
+ const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, Hn, {
1385
1382
  ...n,
1386
1383
  params: { feature_id: t }
1387
1384
  });
@@ -1397,7 +1394,7 @@ class ea {
1397
1394
  const { data: r, code: a, message: o } = await this.req.post(
1398
1395
  `event/${this.event}/visit`,
1399
1396
  c(t || {}),
1400
- Hn,
1397
+ Kn,
1401
1398
  n
1402
1399
  );
1403
1400
  return r ?? {
@@ -1414,7 +1411,7 @@ class ea {
1414
1411
  */
1415
1412
  async getUserFeatureStatus(t, n) {
1416
1413
  if (!await this.token.autoLogin()) return [];
1417
- const { data: r } = await this.req.get("event/user-feature-status", Jn, {
1414
+ const { data: r } = await this.req.get("event/user-feature-status", zn, {
1418
1415
  ...n,
1419
1416
  message: !1,
1420
1417
  params: c({ ...t, event_id: this.event })
@@ -1428,7 +1425,7 @@ class ea {
1428
1425
  */
1429
1426
  async getUserEngagementCount(t, n) {
1430
1427
  if (!await this.token.autoLogin()) return {};
1431
- const { data: r } = await this.req.get("event/user-engagements-count", Zn, {
1428
+ const { data: r } = await this.req.get("event/user-engagements-count", Jn, {
1432
1429
  message: !1,
1433
1430
  params: c({ ...n, event_id: this.event, feature_id: t })
1434
1431
  });
@@ -1447,7 +1444,7 @@ class ea {
1447
1444
  engagements: [],
1448
1445
  next_token: ""
1449
1446
  };
1450
- const { data: a } = await this.req.get("event/user-engagements", Xn, {
1447
+ const { data: a } = await this.req.get("event/user-engagements", Zn, {
1451
1448
  ...r,
1452
1449
  params: c({
1453
1450
  max_results: 20,
@@ -1479,7 +1476,7 @@ class ea {
1479
1476
  engagement: n,
1480
1477
  ...r
1481
1478
  }),
1482
- Yn,
1479
+ Xn,
1483
1480
  a
1484
1481
  );
1485
1482
  return o ?? {
@@ -1503,7 +1500,7 @@ class ea {
1503
1500
  ...t,
1504
1501
  server_id: t.server_id ? +t.server_id : void 0
1505
1502
  }),
1506
- Wn,
1503
+ Yn,
1507
1504
  n
1508
1505
  );
1509
1506
  return r?.claimed_items || {
@@ -1524,7 +1521,7 @@ class ea {
1524
1521
  ...t,
1525
1522
  server_id: t.server_id ? +t.server_id : void 0
1526
1523
  }),
1527
- er,
1524
+ Wn,
1528
1525
  n
1529
1526
  );
1530
1527
  return r?.rewards || {
@@ -1542,7 +1539,7 @@ class ea {
1542
1539
  const { data: r, code: a, message: o } = await this.req.post(
1543
1540
  "event/claim-weixin-hongbao",
1544
1541
  { reward_id: t },
1545
- tr,
1542
+ er,
1546
1543
  n
1547
1544
  );
1548
1545
  return r || {
@@ -1583,7 +1580,7 @@ class ea {
1583
1580
  const { data: r } = await this.req.post(
1584
1581
  "event/user-rewards",
1585
1582
  c({ max_results: 20, ...t, event_id: this.event }),
1586
- nr,
1583
+ tr,
1587
1584
  n
1588
1585
  );
1589
1586
  return {
@@ -1631,7 +1628,7 @@ class ea {
1631
1628
  */
1632
1629
  async getUnlimitQrcodeScene(t, n) {
1633
1630
  if (!await this.token.autoLogin()) return null;
1634
- const { data: r } = await this.req.get("event/unlimit-qrcode-scene", rr, {
1631
+ const { data: r } = await this.req.get("event/unlimit-qrcode-scene", nr, {
1635
1632
  ...n,
1636
1633
  params: { params: t }
1637
1634
  });
@@ -1645,7 +1642,7 @@ class ea {
1645
1642
  * @param scene - 小程序码 scene 值
1646
1643
  */
1647
1644
  async getParamsByQrcodeScene(t, n) {
1648
- const { data: r } = await this.req.get("event/params-by-qrcode-scene", ar, {
1645
+ const { data: r } = await this.req.get("event/params-by-qrcode-scene", rr, {
1649
1646
  ...n,
1650
1647
  params: { scene: t }
1651
1648
  });
@@ -1661,7 +1658,7 @@ class ea {
1661
1658
  const { data: r } = await this.req.post(
1662
1659
  "event/unlimit-qrcode",
1663
1660
  c(t),
1664
- or,
1661
+ ar,
1665
1662
  n
1666
1663
  );
1667
1664
  return r?.img ?? null;
@@ -1673,7 +1670,7 @@ class ea {
1673
1670
  */
1674
1671
  async getQuestProgress(t, n) {
1675
1672
  if (!await this.token.autoLogin()) return null;
1676
- const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, ir, {
1673
+ const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, or, {
1677
1674
  message: !1,
1678
1675
  ...n,
1679
1676
  params: { feature_id: t }
@@ -1693,7 +1690,7 @@ class ea {
1693
1690
  const { data: r, code: a, message: o } = await this.req.post(
1694
1691
  "event/vote2/rewards",
1695
1692
  { feature_id: t },
1696
- sr,
1693
+ ir,
1697
1694
  n
1698
1695
  );
1699
1696
  return r || {
@@ -1708,19 +1705,19 @@ class ea {
1708
1705
  */
1709
1706
  async getVote2Leaderboard(t, n) {
1710
1707
  if (!await this.token.autoLogin()) return [];
1711
- const { data: r } = await this.req.get("event/vote2/leaderboard", cr, {
1708
+ const { data: r } = await this.req.get("event/vote2/leaderboard", sr, {
1712
1709
  ...n,
1713
1710
  params: { feature_id: t }
1714
1711
  });
1715
1712
  return r?.candidate_votes || [];
1716
1713
  }
1717
1714
  }
1718
- const lr = {
1715
+ const cr = {
1719
1716
  /** 所有人均可以发帖 */
1720
1717
  All: "all",
1721
1718
  /** 指定用户可发帖 */
1722
1719
  Limit: "limit"
1723
- }, mr = e.string().enum(lr).lock(), ur = {
1720
+ }, lr = e.string().enum(cr).lock(), ur = {
1724
1721
  /** 待审核(仅自己可见) */
1725
1722
  Pending: "pending",
1726
1723
  /** 审核通过 */
@@ -1729,14 +1726,14 @@ const lr = {
1729
1726
  Failed: "failed",
1730
1727
  /** 嫌疑(仅自己可见) */
1731
1728
  Suspect: "suspect"
1732
- }, oe = e.string().enum(ur).lock(), dr = {
1729
+ }, oe = e.string().enum(ur).lock(), mr = {
1733
1730
  /** 系统通知 */
1734
1731
  System: "system",
1735
1732
  /** 评论我的 */
1736
1733
  Comment: "comment",
1737
1734
  /** 点赞通知 */
1738
1735
  Like: "like"
1739
- }, ta = e.string().enum(dr).lock(), u = {
1736
+ }, ea = e.string().enum(mr).lock(), m = {
1740
1737
  /** 系统通知 */
1741
1738
  System: "system",
1742
1739
  /** 帖子被置顶 */
@@ -1761,15 +1758,15 @@ const lr = {
1761
1758
  ReplyLiked: "reply_liked",
1762
1759
  /** 回复被删除 */
1763
1760
  ReplyDeleted: "reply_deleted"
1764
- }, gr = e.string().enum(u).lock(), ie = e.object({
1761
+ }, dr = e.string().enum(m).lock(), ie = e.object({
1765
1762
  forum_id: e.number(),
1766
1763
  icon_url: e.string(),
1767
1764
  name: e.string(),
1768
1765
  tags: e.array(e.string()),
1769
1766
  sort: e.number(),
1770
- mode: mr,
1767
+ mode: lr,
1771
1768
  member_ids: e.array(e.number())
1772
- }).lock(), U = e.object({
1769
+ }).lock(), D = e.object({
1773
1770
  topic_id: e.number(),
1774
1771
  cover_url: e.string(),
1775
1772
  name: e.string(),
@@ -1790,7 +1787,7 @@ const lr = {
1790
1787
  comments_num: e.number(),
1791
1788
  liked: e.bool(),
1792
1789
  image_urls: e.array(e.string()),
1793
- topics: e.array(U),
1790
+ topics: e.array(D),
1794
1791
  event_ids: e.array(e.number()),
1795
1792
  is_pinned: e.bool(),
1796
1793
  is_highlighted: e.bool(),
@@ -1798,7 +1795,7 @@ const lr = {
1798
1795
  create_time: e.number()
1799
1796
  }).lock(), se = e.object({
1800
1797
  err_msg: e.string().optional()
1801
- }).optional().lock(), pr = e.object({
1798
+ }).optional().lock(), gr = e.object({
1802
1799
  reply_id: e.number(),
1803
1800
  reply_content: e.string().optional(),
1804
1801
  replied_by: e.string(),
@@ -1817,7 +1814,7 @@ const lr = {
1817
1814
  content: e.string(),
1818
1815
  like_num: e.number(),
1819
1816
  liked: e.bool(),
1820
- reply_to: pr,
1817
+ reply_to: gr,
1821
1818
  create_time: e.number()
1822
1819
  }).lock(), h = e.object({
1823
1820
  comment_id: e.number(),
@@ -1839,22 +1836,22 @@ const lr = {
1839
1836
  create_time: e.number(),
1840
1837
  status: oe,
1841
1838
  replies: e.array(C).optional()
1842
- }).lock(), _r = e.object({
1839
+ }).lock(), pr = e.object({
1843
1840
  image_url: e.string(),
1844
1841
  upload_url: e.string(),
1845
1842
  existed: e.bool()
1846
1843
  }).lock(), _ = e.object({
1847
1844
  notification_id: e.string(),
1848
- notification_type: gr,
1845
+ notification_type: dr,
1849
1846
  is_read: e.bool(),
1850
1847
  create_time: e.number(),
1851
1848
  origin_user_id: e.string(),
1852
1849
  origin_user_name: e.string(),
1853
1850
  origin_user_avatar_url: e.string()
1854
- }).lock(), br = e.object({
1851
+ }).lock(), _r = e.object({
1855
1852
  system_message_subject: e.string(),
1856
1853
  system_message_content: e.string()
1857
- }).lock(), D = e.object({
1854
+ }).lock(), A = e.object({
1858
1855
  post_id: e.number(),
1859
1856
  post_subject: e.string(),
1860
1857
  post_summary: e.string(),
@@ -1862,84 +1859,84 @@ const lr = {
1862
1859
  }).lock(), R = e.object({
1863
1860
  comment_id: e.number(),
1864
1861
  comment_content: e.string()
1865
- }).lock(), A = e.object({
1862
+ }).lock(), G = e.object({
1866
1863
  reply_id: e.number(),
1867
1864
  reply_content: e.string()
1868
- }).lock(), yr = e.object({
1865
+ }).lock(), br = e.object({
1869
1866
  ..._.shape,
1870
- ...br.shape,
1871
- notification_type: e.string().enum(u.System)
1872
- }), fr = e.object({
1867
+ ..._r.shape,
1868
+ notification_type: e.string().enum(m.System)
1869
+ }), yr = e.object({
1873
1870
  ..._.shape,
1874
- ...D.shape,
1871
+ ...A.shape,
1875
1872
  notification_type: e.string().enum(
1876
- u.PostPinned,
1877
- u.PostHighlighted,
1878
- u.PostDeleted,
1879
- u.PostLiked
1873
+ m.PostPinned,
1874
+ m.PostHighlighted,
1875
+ m.PostDeleted,
1876
+ m.PostLiked
1880
1877
  )
1878
+ }), fr = e.object({
1879
+ ..._.shape,
1880
+ ...A.shape,
1881
+ ...R.shape,
1882
+ notification_type: e.string().enum(m.PostCommented)
1881
1883
  }), hr = e.object({
1882
1884
  ..._.shape,
1883
- ...D.shape,
1884
1885
  ...R.shape,
1885
- notification_type: e.string().enum(u.PostCommented)
1886
+ ...G.shape,
1887
+ notification_type: e.string().enum(m.CommentReplied)
1886
1888
  }), wr = e.object({
1887
1889
  ..._.shape,
1888
1890
  ...R.shape,
1889
1891
  ...A.shape,
1890
- notification_type: e.string().enum(u.CommentReplied)
1892
+ notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
1891
1893
  }), kr = e.object({
1892
1894
  ..._.shape,
1893
- ...R.shape,
1894
- ...D.shape,
1895
- notification_type: e.string().enum(u.CommentLiked, u.CommentDeleted)
1896
- }), vr = e.object({
1897
- ..._.shape,
1898
- ...A.shape,
1899
- notification_type: e.string().enum(u.ReplyReplied),
1895
+ ...G.shape,
1896
+ notification_type: e.string().enum(m.ReplyReplied),
1900
1897
  comment_id: e.number(),
1901
1898
  reply_to_reply_id: e.number(),
1902
1899
  reply_to_reply_content: e.string()
1903
- }), Vr = e.object({
1900
+ }), vr = e.object({
1904
1901
  ..._.shape,
1905
- ...A.shape,
1902
+ ...G.shape,
1906
1903
  ...R.shape,
1907
- notification_type: e.string().enum(u.ReplyLiked, u.ReplyDeleted)
1908
- }), Cr = e.union(
1904
+ notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
1905
+ }), Vr = e.union(
1906
+ br,
1909
1907
  yr,
1910
1908
  fr,
1911
1909
  hr,
1912
1910
  wr,
1913
1911
  kr,
1914
- vr,
1915
- Vr
1916
- ).satisfies().lock(), Rr = s({ forums: e.array(ie) }), jr = s({ topics: e.array(U) }), Tr = s({ topic: U }), qr = s({ post: I }), K = s({
1912
+ vr
1913
+ ).satisfies().lock(), Cr = s({ forums: e.array(ie) }), Rr = s({ topics: e.array(D) }), jr = s({ topic: D }), Tr = s({ post: I }), K = s({
1917
1914
  posts: e.array(I),
1918
1915
  next_token: e.string().optional()
1919
- }), xr = s({
1916
+ }), qr = s({
1920
1917
  post: I.clone().optional(),
1921
1918
  antispam: se.clone().optional()
1922
- }), Sr = s({
1919
+ }), xr = s({
1923
1920
  replies: e.array(C),
1924
1921
  next_token: e.string().optional()
1925
- }), Lr = s({ reply: C }), Pr = s({
1922
+ }), Sr = s({ reply: C }), Lr = s({
1926
1923
  reply: C.clone().optional(),
1927
1924
  antispam: se.clone().optional()
1928
- }), Er = s({ comment: h }), $r = s({
1925
+ }), Pr = s({ comment: h }), Er = s({
1929
1926
  comments: e.array(h),
1930
1927
  next_token: e.string().optional()
1931
- }), Fr = s({
1928
+ }), $r = s({
1932
1929
  comment: h.clone().optional(),
1933
1930
  antispam: h.clone().optional()
1934
- }), Ur = e.guard(_r), Ir = s({
1935
- notifications: e.array(Cr),
1931
+ }), Fr = e.guard(pr), Ur = s({
1932
+ notifications: e.array(Vr),
1936
1933
  next_token: e.string().optional()
1937
1934
  }), Dr = s({
1938
1935
  system: e.number(),
1939
1936
  comment: e.number(),
1940
1937
  like: e.number()
1941
1938
  });
1942
- class na {
1939
+ class ta {
1943
1940
  token;
1944
1941
  req;
1945
1942
  constructor(t) {
@@ -1951,7 +1948,7 @@ class na {
1951
1948
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
1952
1949
  */
1953
1950
  async getForums(t) {
1954
- const { data: n } = await this.req.get("community/forums", Rr, t);
1951
+ const { data: n } = await this.req.get("community/forums", Cr, t);
1955
1952
  return n?.forums || [];
1956
1953
  }
1957
1954
  /**
@@ -1960,7 +1957,7 @@ class na {
1960
1957
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
1961
1958
  */
1962
1959
  async getTopics(t) {
1963
- const { data: n } = await this.req.get("community/topics", jr, t);
1960
+ const { data: n } = await this.req.get("community/topics", Rr, t);
1964
1961
  return n?.topics || [];
1965
1962
  }
1966
1963
  /**
@@ -1969,7 +1966,7 @@ class na {
1969
1966
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
1970
1967
  */
1971
1968
  async getTopic(t, n) {
1972
- const { data: r, code: a } = await this.req.get("community/topic", Tr, {
1969
+ const { data: r, code: a } = await this.req.get("community/topic", jr, {
1973
1970
  ...n,
1974
1971
  params: { topic_id: t }
1975
1972
  });
@@ -2011,7 +2008,7 @@ class na {
2011
2008
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2012
2009
  */
2013
2010
  async getPost(t, n) {
2014
- const { data: r, code: a, message: o } = await this.req.get("community/post", qr, {
2011
+ const { data: r, code: a, message: o } = await this.req.get("community/post", Tr, {
2015
2012
  ...n,
2016
2013
  params: { post_id: t }
2017
2014
  });
@@ -2029,7 +2026,7 @@ class na {
2029
2026
  const { data: r, code: a, message: o } = await this.req.post(
2030
2027
  "community/post",
2031
2028
  c(t),
2032
- xr,
2029
+ qr,
2033
2030
  n
2034
2031
  );
2035
2032
  return r ?? {
@@ -2043,7 +2040,7 @@ class na {
2043
2040
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2044
2041
  */
2045
2042
  async getComments(t, n) {
2046
- const { data: r, code: a, message: o } = await this.req.get("community/comments", $r, {
2043
+ const { data: r, code: a, message: o } = await this.req.get("community/comments", Er, {
2047
2044
  ...n,
2048
2045
  params: c(t)
2049
2046
  });
@@ -2058,7 +2055,7 @@ class na {
2058
2055
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2059
2056
  */
2060
2057
  async getComment(t, n) {
2061
- const { data: r, code: a, message: o } = await this.req.get("community/comment", Er, {
2058
+ const { data: r, code: a, message: o } = await this.req.get("community/comment", Pr, {
2062
2059
  ...n,
2063
2060
  params: { comment_id: t }
2064
2061
  });
@@ -2077,7 +2074,7 @@ class na {
2077
2074
  const { data: r, code: a, message: o } = await this.req.post(
2078
2075
  "community/comment",
2079
2076
  c(t),
2080
- Fr,
2077
+ $r,
2081
2078
  n
2082
2079
  );
2083
2080
  return r ?? {
@@ -2091,7 +2088,7 @@ class na {
2091
2088
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2092
2089
  */
2093
2090
  async getReplies(t, n) {
2094
- const { data: r } = await this.req.get("community/replies", Sr, {
2091
+ const { data: r } = await this.req.get("community/replies", xr, {
2095
2092
  ...n,
2096
2093
  params: c({ max_results: 20, ...t })
2097
2094
  });
@@ -2106,7 +2103,7 @@ class na {
2106
2103
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2107
2104
  */
2108
2105
  async getReply(t, n) {
2109
- const { data: r, code: a, message: o } = await this.req.get("community/reply", Lr, {
2106
+ const { data: r, code: a, message: o } = await this.req.get("community/reply", Sr, {
2110
2107
  ...n,
2111
2108
  params: { reply_id: t }
2112
2109
  });
@@ -2125,7 +2122,7 @@ class na {
2125
2122
  const { data: r, code: a, message: o } = await this.req.post(
2126
2123
  "community/reply",
2127
2124
  c(t),
2128
- Pr,
2125
+ Lr,
2129
2126
  n
2130
2127
  );
2131
2128
  return r ?? {
@@ -2176,7 +2173,7 @@ class na {
2176
2173
  */
2177
2174
  async getMediaPresignedUrl(t, n) {
2178
2175
  await this.token.autoLogin();
2179
- const { data: r } = await this.req.get("community/media-presign-url", Ur, {
2176
+ const { data: r } = await this.req.get("community/media-presign-url", Fr, {
2180
2177
  ...n,
2181
2178
  params: t
2182
2179
  });
@@ -2191,7 +2188,7 @@ class na {
2191
2188
  */
2192
2189
  async getNotifications(t, n) {
2193
2190
  await this.token.autoLogin();
2194
- const { data: r } = await this.req.get("community/notifications", Ir, {
2191
+ const { data: r } = await this.req.get("community/notifications", Ur, {
2195
2192
  ...n,
2196
2193
  params: c({ max_results: 20, ...t })
2197
2194
  });
@@ -2225,17 +2222,17 @@ class na {
2225
2222
  return r;
2226
2223
  }
2227
2224
  }
2228
- const Ar = s({
2225
+ const Ir = s({
2229
2226
  nonce_str: e.string(),
2230
2227
  timestamp: e.number(),
2231
2228
  signature: e.string()
2232
2229
  });
2233
- var Gr = /* @__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))(Gr || {});
2230
+ var Ar = /* @__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))(Ar || {});
2234
2231
  function S(i) {
2235
2232
  return w(i, "open_id", "union_id", "weixin_token");
2236
2233
  }
2237
2234
  const H = "wx_login_cache";
2238
- class ra {
2235
+ class na {
2239
2236
  token;
2240
2237
  $appid;
2241
2238
  req;
@@ -2325,9 +2322,9 @@ class ra {
2325
2322
  async webLogin(t = "snsapi_userinfo", n) {
2326
2323
  const r = L("code"), a = Date.now(), o = +L("state");
2327
2324
  if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
2328
- const me = G(["code", "state"]);
2325
+ const ue = O(["code", "state"]);
2329
2326
  location.replace(
2330
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(me)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2327
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ue)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2331
2328
  );
2332
2329
  return;
2333
2330
  }
@@ -2336,7 +2333,7 @@ class ra {
2336
2333
  message: "Error: " + r,
2337
2334
  error: r
2338
2335
  };
2339
- const g = G(["code", "state"]);
2336
+ const g = O(["code", "state"]);
2340
2337
  "replaceState" in history && history.replaceState({}, "", g);
2341
2338
  const {
2342
2339
  data: p,
@@ -2375,7 +2372,7 @@ class ra {
2375
2372
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2376
2373
  */
2377
2374
  async getJSSDKConfig(t) {
2378
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", Ar, {
2375
+ const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", Ir, {
2379
2376
  ...t,
2380
2377
  params: {
2381
2378
  appid: this.appid,
@@ -2392,22 +2389,22 @@ class ra {
2392
2389
  }
2393
2390
  export {
2394
2391
  se as AntispamValidator,
2395
- Br as AuthToken,
2392
+ Qr as AuthToken,
2396
2393
  $n as CandidateVoteValidator,
2397
2394
  _n as CashbackEngagementDataValidator,
2398
2395
  bn as ClaimActivationKeyEngagementDataValidator,
2399
2396
  st as ClaimRewardStatus,
2400
- P as ClaimRewardStatusValidator,
2401
- Bn as ClaimedItemValidator,
2397
+ E as ClaimRewardStatusValidator,
2398
+ Qn as ClaimedItemValidator,
2402
2399
  Z as ClubAddressValidator,
2403
- Kr as ClubApi,
2400
+ Mr as ClubApi,
2404
2401
  X as ClubBenefitSummaryValidator,
2405
2402
  Ae as ClubBenefitValidator,
2406
2403
  je as ClubCreditChangeScene,
2407
2404
  Te as ClubCreditChangeSceneValidator,
2408
2405
  Ce as ClubCreditChangeType,
2409
2406
  Re as ClubCreditChangeTypeValidator,
2410
- De as ClubCreditLogValidator,
2407
+ Ie as ClubCreditLogValidator,
2411
2408
  Le as ClubGlobalConfigValidator,
2412
2409
  qe as ClubItemType,
2413
2410
  z as ClubItemTypeValidator,
@@ -2415,17 +2412,16 @@ export {
2415
2412
  Y as ClubProductValidator,
2416
2413
  xe as ClubRedemptionStatus,
2417
2414
  Se as ClubRedemptionStatusValidator,
2418
- Ie as ClubUserCreditValidator,
2415
+ De as ClubUserCreditValidator,
2419
2416
  Ue as ClubUserProfileValidator,
2420
- In as CommentEngagementValidator,
2417
+ Dn as CommentEngagementValidator,
2421
2418
  h as CommentValidator,
2422
- M as CommonRewardItemValidator,
2423
- na as CommunityApi,
2419
+ ta as CommunityApi,
2424
2420
  Ye as EngageAccountType,
2425
2421
  We as EngageAccountTypeValidator,
2426
- Qn as EngageResponseValidator,
2427
- An as EngageRewardValidator,
2428
- ea as EventApi,
2422
+ Nn as EngageResponseValidator,
2423
+ P as EngageRewardValidator,
2424
+ Wr as EventApi,
2429
2425
  pn as EventConfigValidator,
2430
2426
  wt as EventFeatureConfigOfCashbackValidator,
2431
2427
  vt as EventFeatureConfigOfCheckInValidator,
@@ -2435,7 +2431,7 @@ export {
2435
2431
  St as EventFeatureConfigOfFollowValidator,
2436
2432
  Et as EventFeatureConfigOfGiftCodeValidator,
2437
2433
  Ft as EventFeatureConfigOfInviteValidator,
2438
- It as EventFeatureConfigOfInvitedRegisterValidator,
2434
+ Dt as EventFeatureConfigOfInvitedRegisterValidator,
2439
2435
  Qt as EventFeatureConfigOfLotteryDrawValidator,
2440
2436
  Ot as EventFeatureConfigOfLotteryValidator,
2441
2437
  Mt as EventFeatureConfigOfPreregisterValidator,
@@ -2445,19 +2441,19 @@ export {
2445
2441
  Wt as EventFeatureConfigOfSubscribeValidator,
2446
2442
  tn as EventFeatureConfigOfSurveyValidator,
2447
2443
  rn as EventFeatureConfigOfTeamValidator,
2448
- mn as EventFeatureConfigOfVote2Validator,
2444
+ un as EventFeatureConfigOfVote2Validator,
2449
2445
  sn as EventFeatureConfigOfVoteValidator,
2450
2446
  gn as EventFeatureConfigValidator,
2451
2447
  et as EventPeriodType,
2452
2448
  tt as EventPeriodTypeValidator,
2453
- $ as EventRewardItemConfigValidator,
2449
+ F as EventRewardItemConfigValidator,
2454
2450
  Oe as ExtraGameRewardValidator,
2455
2451
  Ge as ExtraPhysicalShipmentValidator,
2456
2452
  ft as FeatureRewardValidator,
2457
2453
  l as FeatureType,
2458
2454
  nt as FeatureTypeValidator,
2459
- lr as ForumMode,
2460
- mr as ForumModeValidator,
2455
+ cr as ForumMode,
2456
+ lr as ForumModeValidator,
2461
2457
  ie as ForumValidator,
2462
2458
  v as GamerItemType,
2463
2459
  W as GamerItemTypeValidator,
@@ -2466,73 +2462,73 @@ export {
2466
2462
  yn as GiftCodeEngagementDataValidator,
2467
2463
  fn as InviteEngagementDataValidator,
2468
2464
  dt as LotteryDrawAction,
2469
- Xr as LotteryDrawActionValidator,
2465
+ Zr as LotteryDrawActionValidator,
2470
2466
  vn as LotteryDrawEngagementDataValidator,
2471
2467
  hn as LotteryEngagementDataValidator,
2472
2468
  f as LotteryTicketStatus,
2473
- Jr as LotteryTicketStatusValidator,
2469
+ zr as LotteryTicketStatusValidator,
2474
2470
  _ as NotificationBaseValidator,
2475
- dr as NotificationCategory,
2476
- ta as NotificationCategoryValidator,
2477
- wr as NotificationCommentReplyValidator,
2478
- kr as NotificationCommentValidator,
2471
+ mr as NotificationCategory,
2472
+ ea as NotificationCategoryValidator,
2473
+ hr as NotificationCommentReplyValidator,
2474
+ wr as NotificationCommentValidator,
2479
2475
  R as NotificationPayloadCommentValidator,
2480
- D as NotificationPayloadPostValidator,
2481
- A as NotificationPayloadReplyValidator,
2482
- br as NotificationPayloadSystemValidator,
2483
- hr as NotificationPostCommentValidator,
2484
- fr as NotificationPostValidator,
2485
- vr as NotificationReplyRepliedValidator,
2486
- Vr as NotificationReplyValidator,
2487
- yr as NotificationSystemValidator,
2488
- u as NotificationType,
2489
- gr as NotificationTypeValidator,
2490
- Cr as NotificationValidator,
2476
+ A as NotificationPayloadPostValidator,
2477
+ G as NotificationPayloadReplyValidator,
2478
+ _r as NotificationPayloadSystemValidator,
2479
+ fr as NotificationPostCommentValidator,
2480
+ yr as NotificationPostValidator,
2481
+ kr as NotificationReplyRepliedValidator,
2482
+ vr as NotificationReplyValidator,
2483
+ br as NotificationSystemValidator,
2484
+ m as NotificationType,
2485
+ dr as NotificationTypeValidator,
2486
+ Vr as NotificationValidator,
2491
2487
  Fe as PlayerRoleCardValidator,
2492
2488
  J as PlayerRoleValidator,
2493
2489
  ur as PostStatus,
2494
2490
  oe as PostStatusValidator,
2495
2491
  I as PostValidator,
2496
2492
  Vn as PreregisterEngagementDataValidator,
2497
- _r as PresignedUrlResponseValidator,
2493
+ pr as PresignedUrlResponseValidator,
2498
2494
  Cn as QuestEngagementDataValidator,
2499
2495
  rt as QuestObjective,
2500
2496
  te as QuestObjectiveValidator,
2501
2497
  re as QuestProgressAlgorithm,
2502
2498
  gt as QuestProgressAlgorithmOptionalValidator,
2503
- Yr as QuestProgressAlgorithmValidator,
2499
+ Xr as QuestProgressAlgorithmValidator,
2504
2500
  Rn as QuestProgressValidator,
2505
- Mr as RedeemParamsValidator,
2501
+ Br as RedeemParamsValidator,
2506
2502
  Ne as RedemptionValidator,
2507
2503
  yt as RegularRewardValidator,
2508
- pr as ReplyToValidator,
2504
+ gr as ReplyToValidator,
2509
2505
  C as ReplyValidator,
2510
- Hr as RewardItemType,
2506
+ Kr as RewardItemType,
2511
2507
  ee as RewardItemTypeValidator,
2512
2508
  ct as RewardSource,
2513
- E as RewardSourceValidator,
2509
+ $ as RewardSourceValidator,
2514
2510
  d as RewardStatus,
2515
2511
  it as RewardStatusSuffix,
2516
2512
  ne as RewardStatusSuffixValidator,
2517
- zr as RewardStatusValidator,
2518
- Dn as RewardValidator,
2513
+ Hr as RewardStatusValidator,
2514
+ In as RewardValidator,
2519
2515
  $e as RoleBaseInfoValidator,
2520
2516
  Ee as ServerBaseInfoValidator,
2521
2517
  jn as ShareEngagementDataValidator,
2522
2518
  qn as SurveyEngagementDataValidator,
2523
- ut as TeamAction,
2524
- Zr as TeamActionValidator,
2519
+ mt as TeamAction,
2520
+ Jr as TeamActionValidator,
2525
2521
  Sn as TeamEngagementDataValidator,
2526
2522
  xn as TeamEngagementValidator,
2527
- Wr as TeamMemberValidator,
2523
+ Yr as TeamMemberValidator,
2528
2524
  lt as TeamVisibility,
2529
- mt as TeamVisibilityValidator,
2530
- U as TopicValidator,
2531
- F as UserEngagementDataValidator,
2532
- Gn as UserEngagementValidator,
2533
- Nn as UserFeatureStatusValidator,
2525
+ ut as TeamVisibilityValidator,
2526
+ D as TopicValidator,
2527
+ U as UserEngagementDataValidator,
2528
+ An as UserEngagementValidator,
2529
+ On as UserFeatureStatusValidator,
2534
2530
  V as UserRewardValidator,
2535
- On as VerifyMobileResultValidator,
2531
+ Gn as VerifyMobileResultValidator,
2536
2532
  En as Vote2ClaimRewardsResponseValidator,
2537
2533
  Pn as Vote2EngagementDataValidator,
2538
2534
  pt as Vote2RewardType,
@@ -2540,8 +2536,8 @@ export {
2540
2536
  Ln as VoteEngagementDataValidator,
2541
2537
  at as VoteOptionSource,
2542
2538
  ot as VoteOptionSourceValidator,
2543
- ra as WeixinApi,
2539
+ na as WeixinApi,
2544
2540
  Tn as WeixinSubscribeEngagementDataValidator,
2545
- Gr as WeixinWebLoginErrorCode,
2546
- Ar as isWeixinSignResponse
2541
+ Ar as WeixinWebLoginErrorCode,
2542
+ Ir as isWeixinSignResponse
2547
2543
  };