@seayoo-web/gamer-api 3.0.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { isComboWebView as me } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as y, usePromise as de, useConsole as ge, weixinStorageHelper as _e, localStorageHelper as pe, supportWx as h, pruneURL as be, supportWindow as ye, queryString as x, pruneObject as c, omitFields as L, parseJSON as fe, removePara as O } from "@seayoo-web/utils";
2
+ import { isPlainObject as y, usePromise as de, useConsole as ge, weixinStorageHelper as _e, localStorageHelper as pe, supportWx as h, pruneURL as be, supportWindow as ye, queryString as x, pruneObject as l, omitFields as L, parseJSON as fe, removePara as O } from "@seayoo-web/utils";
3
3
  import { v as e, objectGuard as s } from "@seayoo-web/validator";
4
- function he(a) {
5
- return y(a, "gamer_token") && typeof a.gamer_token == "string";
4
+ function he(o) {
5
+ return y(o, "gamer_token") && typeof o.gamer_token == "string";
6
6
  }
7
- function we(a) {
8
- return y(a, "gamer_token", "game_id") && typeof a.gamer_token == "string" && typeof a.game_id == "string";
7
+ function we(o) {
8
+ return y(o, "gamer_token", "game_id") && typeof o.gamer_token == "string" && typeof o.game_id == "string";
9
9
  }
10
- function G(a) {
11
- return y(a);
10
+ function G(o) {
11
+ return y(o);
12
12
  }
13
13
  ge("GamerApiSDK");
14
- function ke(a) {
15
- return /^\/[a-z\d-]+$/.test(a);
14
+ function ke(o) {
15
+ return /^\/[a-z\d-]+$/.test(o);
16
16
  }
17
17
  async function ve() {
18
- const { promise: a, resolve: t } = de();
18
+ const { promise: o, resolve: t } = de();
19
19
  return wx.login({
20
20
  success(n) {
21
21
  t(n.code);
@@ -23,10 +23,10 @@ async function ve() {
23
23
  fail() {
24
24
  t("");
25
25
  }
26
- }), await a;
26
+ }), await o;
27
27
  }
28
28
  const f = "gamer_token";
29
- class ba {
29
+ class yo {
30
30
  _NetRequest;
31
31
  _idToken = "";
32
32
  _weixinToken = "";
@@ -41,9 +41,6 @@ class ba {
41
41
  timeout: 1e4,
42
42
  maxRetry: 2,
43
43
  retryInterval: "2EB",
44
- retryResolve({ method: o, status: i }) {
45
- return o === "GET" && i < 0;
46
- },
47
44
  responseRule: {
48
45
  ok: { resolve: "body" },
49
46
  failed: {
@@ -53,12 +50,12 @@ class ba {
53
50
  }
54
51
  },
55
52
  // 使用箭头函数绑定执行上下文
56
- requestTransformer: (o) => {
57
- this._gamerToken && (o.headers.Authorization = `Bearer ${this._gamerToken}`);
53
+ requestTransformer: (a) => {
54
+ this._gamerToken && (a.headers.Authorization = `Bearer ${this._gamerToken}`);
58
55
  }
59
56
  }), ye()) {
60
- const o = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), i = x("gamer_token");
61
- (me() || o && i) && (this._gamerToken = i);
57
+ const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), i = x("gamer_token");
58
+ (me() || a && i) && (this._gamerToken = i);
62
59
  }
63
60
  this._gamerToken || this.loadGamerTokenCache();
64
61
  }
@@ -68,9 +65,9 @@ class ba {
68
65
  loadGamerTokenCache() {
69
66
  const n = this.storage.get(f).match(/^(\d{12,})#(.{8,})$/);
70
67
  if (n) {
71
- const r = parseInt(n[1]), o = n[2];
68
+ const r = parseInt(n[1]), a = n[2];
72
69
  if (r > Date.now() - (24 * 3600 - 10) * 1e3) {
73
- this._gamerToken = o;
70
+ this._gamerToken = a;
74
71
  return;
75
72
  }
76
73
  }
@@ -140,7 +137,7 @@ class ba {
140
137
  return !1;
141
138
  const { code: n, data: r } = await this.req.post(
142
139
  "login-with-token",
143
- c({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
140
+ l({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
144
141
  he,
145
142
  {
146
143
  message: !1,
@@ -167,16 +164,16 @@ class ba {
167
164
  const n = h();
168
165
  if (!this.idToken || n && !this.weixinToken)
169
166
  return !1;
170
- const { code: r, data: o } = await this.req.post(
167
+ const { code: r, data: a } = await this.req.post(
171
168
  "session/switch-game",
172
- c({ game_id: t }),
169
+ l({ game_id: t }),
173
170
  we,
174
171
  {
175
172
  message: !1,
176
173
  maxRetry: 2
177
174
  }
178
175
  );
179
- return r === "game_not_allowed" ? !1 : (this.gamerToken = o?.gamer_token || "", !!this.gamerToken);
176
+ return r === "game_not_allowed" ? !1 : (this.gamerToken = a?.gamer_token || "", !!this.gamerToken);
180
177
  }
181
178
  /**
182
179
  * 获取当前登录用户的 Session 的信息
@@ -187,7 +184,7 @@ class ba {
187
184
  */
188
185
  async getSession() {
189
186
  if (!await this.autoLogin()) return null;
190
- const { data: t } = await this.req.get("session", G, {
187
+ const { data: t } = await this.req.get("session", null, G, {
191
188
  message: !1
192
189
  });
193
190
  return t;
@@ -199,7 +196,7 @@ class ba {
199
196
  */
200
197
  async authRealName(t) {
201
198
  if (!await this.autoLogin()) return null;
202
- const { data: n } = await this.req.post("auth-real-name", c(t), G);
199
+ const { data: n } = await this.req.post("auth-real-name", l(t), G);
203
200
  return n;
204
201
  }
205
202
  }
@@ -364,7 +361,7 @@ const Re = {
364
361
  }).lock(), Oe = e.object({
365
362
  ...L(Z.shape, "tag"),
366
363
  product: X.clone().optional()
367
- }).lock(), ya = e.union(
364
+ }).lock(), fo = e.union(
368
365
  e.object({
369
366
  server_id: e.string(),
370
367
  role_id: e.string()
@@ -410,7 +407,7 @@ const Re = {
410
407
  image_upload_url: e.string().optional(),
411
408
  image_id: e.string()
412
409
  });
413
- class fa {
410
+ class ho {
414
411
  token;
415
412
  req;
416
413
  constructor(t) {
@@ -423,7 +420,7 @@ class fa {
423
420
  */
424
421
  async getConfig(t) {
425
422
  await this.token.autoLogin();
426
- const { data: n } = await this.req.get("club/config", Be, t);
423
+ const { data: n } = await this.req.get("club/config", null, Be, t);
427
424
  return n;
428
425
  }
429
426
  /**
@@ -433,9 +430,14 @@ class fa {
433
430
  */
434
431
  async getCurrentPlayer(t) {
435
432
  await this.token.autoLogin();
436
- const { data: n, code: r, message: o } = await this.req.get("club/current-player", N, t);
433
+ const { data: n, code: r, message: a } = await this.req.get(
434
+ "club/current-player",
435
+ null,
436
+ N,
437
+ t
438
+ );
437
439
  return n?.player ?? {
438
- message: o,
440
+ message: a,
439
441
  error: r
440
442
  };
441
443
  }
@@ -446,14 +448,14 @@ class fa {
446
448
  */
447
449
  async linkPlayer(t) {
448
450
  await this.token.autoLogin();
449
- const { data: n, code: r, message: o } = await this.req.post(
451
+ const { data: n, code: r, message: a } = await this.req.post(
450
452
  "club/link-player",
451
453
  { id_token: this.token.idToken },
452
454
  N,
453
455
  t
454
456
  );
455
457
  return n?.player ?? {
456
- message: o,
458
+ message: a,
457
459
  error: r
458
460
  };
459
461
  }
@@ -464,11 +466,13 @@ class fa {
464
466
  */
465
467
  async getRoles(t, n, r) {
466
468
  if (!await this.token.autoLogin()) return [];
467
- const { data: o } = await this.req.get("club/roles", Me, {
468
- ...r,
469
- params: c({ player_id: t, refresh: n })
470
- });
471
- return o?.roles || [];
469
+ const { data: a } = await this.req.get(
470
+ "club/roles",
471
+ { player_id: t, refresh: n },
472
+ Me,
473
+ r
474
+ );
475
+ return a?.roles || [];
472
476
  }
473
477
  /**
474
478
  * 获取俱乐部会员的角色卡片数据
@@ -477,10 +481,7 @@ class fa {
477
481
  */
478
482
  async getRoleCard(t, n) {
479
483
  await this.token.autoLogin();
480
- const { data: r } = await this.req.get("club/role-card", j, {
481
- ...n,
482
- params: { member_id: t }
483
- });
484
+ const { data: r } = await this.req.get("club/role-card", { member_id: t }, j, n);
484
485
  return r?.role_card ?? null;
485
486
  }
486
487
  /**
@@ -510,10 +511,7 @@ class fa {
510
511
  */
511
512
  async getUserProfile(t, n) {
512
513
  await this.token.autoLogin();
513
- const { data: r } = await this.req.get("club/user-profile", Q, {
514
- ...n,
515
- params: { member_id: t }
516
- });
514
+ const { data: r } = await this.req.get("club/user-profile", { member_id: t }, Q, n);
517
515
  return r;
518
516
  }
519
517
  /**
@@ -525,10 +523,10 @@ class fa {
525
523
  if (Object.keys(t).length === 0)
526
524
  return { error: "OptionIsEmpty", message: "请提供需要修改的信息" };
527
525
  await this.token.autoLogin();
528
- const { data: r, code: o, message: i } = await this.req.post("club/user-profile", t, Q, n);
526
+ const { data: r, code: a, message: i } = await this.req.post("club/user-profile", t, Q, n);
529
527
  return r ?? {
530
528
  message: i,
531
- error: o
529
+ error: a
532
530
  };
533
531
  }
534
532
  /**
@@ -538,7 +536,7 @@ class fa {
538
536
  */
539
537
  async getAddresses(t) {
540
538
  if (!await this.token.autoLogin()) return [];
541
- const { data: n } = await this.req.get("club/addresses", Ke, t);
539
+ const { data: n } = await this.req.get("club/addresses", null, Ke, t);
542
540
  return n?.addresses ?? [];
543
541
  }
544
542
  /**
@@ -548,15 +546,15 @@ class fa {
548
546
  */
549
547
  async addAddress(t, n) {
550
548
  if (!await this.token.autoLogin()) return null;
551
- const { data: r, code: o, message: i } = await this.req.post(
549
+ const { data: r, code: a, message: i } = await this.req.post(
552
550
  "/club/add-address",
553
- c(t),
551
+ l(t),
554
552
  B,
555
553
  n
556
554
  );
557
555
  return r ?? {
558
556
  message: i,
559
- error: o
557
+ error: a
560
558
  };
561
559
  }
562
560
  /**
@@ -566,15 +564,15 @@ class fa {
566
564
  */
567
565
  async updateAddress(t, n) {
568
566
  await this.token.autoLogin();
569
- const { data: r, code: o, message: i } = await this.req.post(
567
+ const { data: r, code: a, message: i } = await this.req.post(
570
568
  "club/update-address",
571
- c(t),
569
+ l(t),
572
570
  B,
573
571
  n
574
572
  );
575
573
  return r ?? {
576
574
  message: i,
577
- error: o
575
+ error: a
578
576
  };
579
577
  }
580
578
  /**
@@ -594,13 +592,10 @@ class fa {
594
592
  */
595
593
  async getUserCredit(t, n) {
596
594
  await this.token.autoLogin();
597
- const { data: r, code: o, message: i } = await this.req.get("club/user-credit", He, {
598
- ...n,
599
- params: c(t)
600
- });
595
+ const { data: r, code: a, message: i } = await this.req.get("club/user-credit", { ...t }, He, n);
601
596
  return r ?? {
602
597
  message: i,
603
- error: o
598
+ error: a
604
599
  };
605
600
  }
606
601
  /**
@@ -610,10 +605,12 @@ class fa {
610
605
  */
611
606
  async getCreditLogs(t, n) {
612
607
  await this.token.autoLogin();
613
- const { data: r } = await this.req.get("club/credit-logs", ze, {
614
- ...n,
615
- params: c({ max_results: 20, ...t })
616
- });
608
+ const { data: r } = await this.req.get(
609
+ "club/credit-logs",
610
+ { max_results: 20, ...t },
611
+ ze,
612
+ n
613
+ );
617
614
  return {
618
615
  credit_logs: r?.credit_logs || [],
619
616
  next_token: r?.next_token
@@ -626,7 +623,7 @@ class fa {
626
623
  */
627
624
  async getBenefits(t) {
628
625
  if (!await this.token.autoLogin()) return [];
629
- const { data: n } = await this.req.get("club/benefits", Ze, t);
626
+ const { data: n } = await this.req.get("club/benefits", null, Ze, t);
630
627
  return n?.benefits || [];
631
628
  }
632
629
  /**
@@ -636,10 +633,12 @@ class fa {
636
633
  */
637
634
  async getBenefit(t, n) {
638
635
  if (!await this.token.autoLogin()) return null;
639
- const { data: r } = await this.req.get("club/benefit", Xe, {
640
- ...n,
641
- params: { benefit_id: t }
642
- });
636
+ const { data: r } = await this.req.get(
637
+ "club/benefit",
638
+ { benefit_id: t },
639
+ Xe,
640
+ n
641
+ );
643
642
  return r?.benefit || null;
644
643
  }
645
644
  /**
@@ -649,10 +648,7 @@ class fa {
649
648
  */
650
649
  async getProducts(t, n) {
651
650
  await this.token.autoLogin();
652
- const { data: r } = await this.req.get("club/products", Je, {
653
- ...n,
654
- params: t
655
- });
651
+ const { data: r } = await this.req.get("club/products", t || null, Je, n);
656
652
  return r?.products || [];
657
653
  }
658
654
  /**
@@ -662,10 +658,10 @@ class fa {
662
658
  */
663
659
  async redeemProduct(t, n) {
664
660
  await this.token.autoLogin();
665
- const { ok: r, code: o, message: i } = await this.req.post("club/redeem-product", c(t), null, n);
661
+ const { ok: r, code: a, message: i } = await this.req.post("club/redeem-product", l(t), null, n);
666
662
  return r || {
667
663
  message: i,
668
- error: o
664
+ error: a
669
665
  };
670
666
  }
671
667
  /**
@@ -675,10 +671,12 @@ class fa {
675
671
  */
676
672
  async getRedemptions(t, n) {
677
673
  await this.token.autoLogin();
678
- const { data: r } = await this.req.get("club/redemptions", Ye, {
679
- ...n,
680
- params: c({ max_results: 20, ...t })
681
- });
674
+ const { data: r } = await this.req.get(
675
+ "club/redemptions",
676
+ { max_results: 20, ...t },
677
+ Ye,
678
+ n
679
+ );
682
680
  return {
683
681
  redemptions: r?.redemptions || [],
684
682
  next_token: r?.next_token
@@ -691,19 +689,19 @@ class fa {
691
689
  */
692
690
  async clubUploadImage(t, n) {
693
691
  await this.token.autoLogin();
694
- const { data: r, code: o, message: i } = await this.req.post(
692
+ const { data: r, code: a, message: i } = await this.req.post(
695
693
  "club/image-upload-url",
696
- c(t),
694
+ l(t),
697
695
  We,
698
696
  n
699
697
  );
700
698
  return r ?? {
701
699
  message: i,
702
- error: o
700
+ error: a
703
701
  };
704
702
  }
705
703
  }
706
- class ha {
704
+ class wo {
707
705
  token;
708
706
  req;
709
707
  _event = 0;
@@ -718,8 +716,8 @@ class ha {
718
716
  */
719
717
  bind(t) {
720
718
  const n = this;
721
- for (const [r, o] of Object.entries(t))
722
- o && (n[r] = o.bind(this));
719
+ for (const [r, a] of Object.entries(t))
720
+ a && (n[r] = a.bind(this));
723
721
  return n;
724
722
  }
725
723
  }
@@ -746,7 +744,7 @@ const v = {
746
744
  ExternalCode: "external_gift_code",
747
745
  /** 空奖励 */
748
746
  VoidItem: "void_item"
749
- }, Y = e.string().enum(v).lock(), wa = v, W = Y, et = {
747
+ }, Y = e.string().enum(v).lock(), ko = v, W = Y, et = {
750
748
  /** 世游通行证 ID / Combo ID */
751
749
  UserId: "user_id",
752
750
  /** 游戏角色 ID */
@@ -756,7 +754,7 @@ const v = {
756
754
  Daily: "daily",
757
755
  Weekly: "weekly",
758
756
  Monthly: "monthly"
759
- }, rt = e.string().enum(nt).lock(), u = {
757
+ }, rt = e.string().enum(nt).lock(), c = {
760
758
  /** 预约 */
761
759
  Preregister: "preregister",
762
760
  /** 抽奖 */
@@ -805,7 +803,7 @@ const v = {
805
803
  UgcLike: "ugc_like",
806
804
  /** 兑换 */
807
805
  Redeem: "redeem"
808
- }, at = e.string().enum(u).lock(), ot = {
806
+ }, ot = e.string().enum(c).lock(), at = {
809
807
  /** 累计游戏内活跃值 */
810
808
  Active: "player_active_points",
811
809
  /** 累计登录,单位 人天 */
@@ -834,7 +832,7 @@ const v = {
834
832
  OrderAmountInPayCenter: "order_seayoo_web_total_amount",
835
833
  /** 组队进度 */
836
834
  TeamSize: "team_size"
837
- }, ee = e.string().enum(ot).lock(), it = {
835
+ }, ee = e.string().enum(at).lock(), it = {
838
836
  /** 官方上传 */
839
837
  System: "system",
840
838
  /** 用户投稿 */
@@ -884,7 +882,7 @@ const v = {
884
882
  Claimed: "claimed",
885
883
  /** 领奖失败 */
886
884
  Fail: "fail"
887
- }, ka = e.string().enum(w).lock(), dt = {
885
+ }, vo = e.string().enum(w).lock(), dt = {
888
886
  /** 发起组队 */
889
887
  Assemble: "assemble",
890
888
  /** 加入队伍 */
@@ -895,14 +893,14 @@ const v = {
895
893
  ChangeVisibility: "change_visibility",
896
894
  /** 查询组队信息 */
897
895
  Query: "query"
898
- }, va = e.string().enum(dt).lock(), gt = {
896
+ }, Ro = e.string().enum(dt).lock(), gt = {
899
897
  /** 查询抽奖券 */
900
898
  Query: "query",
901
899
  /** 开奖 */
902
900
  Draw: "draw",
903
901
  /** 领奖 */
904
902
  Claim: "claim"
905
- }, Ra = e.string().enum(gt).lock(), _t = {
903
+ }, Co = e.string().enum(gt).lock(), _t = {
906
904
  /** 将所有队员的进度值求和,作为队伍进度值 */
907
905
  Sum: "sum",
908
906
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
@@ -956,7 +954,7 @@ const v = {
956
954
  feature_reward_type: e.string().enum("regular"),
957
955
  reward_details: e.array(vt)
958
956
  })
959
- ).satisfies().lock(), l = e.object({
957
+ ).satisfies().lock(), u = e.object({
960
958
  feature_name: e.string(),
961
959
  feature_id: e.number(),
962
960
  description: e.string(),
@@ -968,8 +966,8 @@ const v = {
968
966
  engage_account: tt,
969
967
  feature_rewards: Rt.clone().optional(),
970
968
  sort: e.number().optional()
971
- }), Ct = u.Cashback, Vt = e.object({
972
- ...l.shape,
969
+ }), Ct = c.Cashback, Vt = e.object({
970
+ ...u.shape,
973
971
  feature_type: e.string().enum(Ct),
974
972
  config: e.object({
975
973
  order_start_time: e.number(),
@@ -977,24 +975,24 @@ const v = {
977
975
  claim_rewards_start_time: e.number(),
978
976
  claim_rewards_end_time: e.number()
979
977
  })
980
- }), jt = u.CheckIn, Tt = e.object({
981
- ...l.shape,
978
+ }), jt = c.CheckIn, Tt = e.object({
979
+ ...u.shape,
982
980
  feature_type: e.string().enum(jt)
983
- }), qt = u.ClaimActivationKey, xt = e.object({
984
- ...l.shape,
981
+ }), qt = c.ClaimActivationKey, xt = e.object({
982
+ ...u.shape,
985
983
  feature_type: e.string().enum(qt)
986
- }), Lt = u.ClaimRewards, Ut = e.object({
987
- ...l.shape,
984
+ }), Lt = c.ClaimRewards, Ut = e.object({
985
+ ...u.shape,
988
986
  feature_type: e.string().enum(Lt)
989
- }), St = u.Comment, Pt = e.object({
990
- ...l.shape,
987
+ }), St = c.Comment, Pt = e.object({
988
+ ...u.shape,
991
989
  feature_type: e.string().enum(St),
992
990
  config: e.object({
993
991
  comments: e.array(e.string()),
994
992
  send_rate: e.number()
995
993
  })
996
- }), Et = u.Follow, Ft = e.object({
997
- ...l.shape,
994
+ }), Et = c.Follow, Ft = e.object({
995
+ ...u.shape,
998
996
  feature_type: e.string().enum(Et),
999
997
  config: e.object({
1000
998
  platform: e.string(),
@@ -1003,28 +1001,28 @@ const v = {
1003
1001
  qr_code_url: e.string().optional(),
1004
1002
  platform_desc: e.string().optional()
1005
1003
  })
1006
- }), It = u.GiftCode, Dt = e.object({
1004
+ }), It = c.GiftCode, Dt = e.object({
1007
1005
  name: e.string(),
1008
1006
  icon_url: e.string(),
1009
1007
  count: e.number()
1010
1008
  }), $t = e.object({
1011
- ...l.shape,
1009
+ ...u.shape,
1012
1010
  feature_type: e.string().enum(It),
1013
1011
  config: e.object({
1014
1012
  gift_items: e.array(Dt),
1015
1013
  mp_url: e.string().optional(),
1016
1014
  mp_qrcode_url: e.string().optional()
1017
1015
  })
1018
- }), At = u.Invite, Ot = e.object({
1019
- ...l.shape,
1016
+ }), At = c.Invite, Ot = e.object({
1017
+ ...u.shape,
1020
1018
  feature_type: e.string().enum(At),
1021
1019
  config: e.object({
1022
1020
  share_url: e.string()
1023
1021
  })
1024
- }), Gt = u.InvitedRegister, Nt = e.object({
1025
- ...l.shape,
1022
+ }), Gt = c.InvitedRegister, Nt = e.object({
1023
+ ...u.shape,
1026
1024
  feature_type: e.string().enum(Gt)
1027
- }), Qt = e.string().enum(L(v, "GiftCode", "LotteryTicket")), Bt = u.Lottery, Mt = e.object({
1025
+ }), Qt = e.string().enum(L(v, "GiftCode", "LotteryTicket")), Bt = c.Lottery, Mt = e.object({
1028
1026
  reward_item_id: e.number(),
1029
1027
  reward_item_name: e.string(),
1030
1028
  reward_item_type: Qt,
@@ -1034,7 +1032,7 @@ const v = {
1034
1032
  reward_remaining_stock: e.number(),
1035
1033
  reward_item_rating: e.number()
1036
1034
  }), Kt = e.object({
1037
- ...l.shape,
1035
+ ...u.shape,
1038
1036
  feature_type: e.string().enum(Bt),
1039
1037
  config: e.object({
1040
1038
  consume_item_id: e.number(),
@@ -1044,18 +1042,18 @@ const v = {
1044
1042
  consume_item_desc: e.string().optional(),
1045
1043
  rewards: e.array(Mt)
1046
1044
  })
1047
- }), Ht = u.LotteryDraw, zt = e.object({
1048
- ...l.shape,
1045
+ }), Ht = c.LotteryDraw, zt = e.object({
1046
+ ...u.shape,
1049
1047
  feature_type: e.string().enum(Ht),
1050
1048
  config: e.object({
1051
1049
  draw_not_before: e.number(),
1052
1050
  draw_not_after: e.number()
1053
1051
  })
1054
- }), Jt = u.Preregister, Zt = e.object({
1055
- ...l.shape,
1052
+ }), Jt = c.Preregister, Zt = e.object({
1053
+ ...u.shape,
1056
1054
  feature_type: e.string().enum(Jt)
1057
- }), Xt = u.Quest, Yt = e.object({
1058
- ...l.shape,
1055
+ }), Xt = c.Quest, Yt = e.object({
1056
+ ...u.shape,
1059
1057
  feature_type: e.string().enum(Xt),
1060
1058
  config: e.object({
1061
1059
  objective: ee,
@@ -1073,62 +1071,62 @@ const v = {
1073
1071
  event_item_id: e.number().optional()
1074
1072
  }).optional()
1075
1073
  })
1076
- }), Wt = u.Redeem, en = e.object({
1074
+ }), Wt = c.Redeem, en = e.object({
1077
1075
  price: e.number(),
1078
1076
  per_user_limit: e.number(),
1079
1077
  item: g
1080
1078
  }), tn = e.object({
1081
- ...l.shape,
1079
+ ...u.shape,
1082
1080
  feature_type: e.string().enum(Wt),
1083
1081
  config: e.object({
1084
1082
  event_item_id: e.number(),
1085
1083
  redeem_catalog: e.array(en)
1086
1084
  })
1087
- }), nn = u.Register, rn = e.object({
1088
- ...l.shape,
1085
+ }), nn = c.Register, rn = e.object({
1086
+ ...u.shape,
1089
1087
  feature_type: e.string().enum(nn)
1090
- }), an = u.Share, on = e.object({
1091
- ...l.shape,
1092
- feature_type: e.string().enum(an),
1088
+ }), on = c.Share, an = e.object({
1089
+ ...u.shape,
1090
+ feature_type: e.string().enum(on),
1093
1091
  config: e.object({
1094
1092
  share_platform: e.string(),
1095
1093
  jump_url: e.string().optional(),
1096
1094
  icon_url: e.string().optional()
1097
1095
  })
1098
- }), sn = u.Subscribe, cn = e.object({
1099
- ...l.shape,
1096
+ }), sn = c.Subscribe, cn = e.object({
1097
+ ...u.shape,
1100
1098
  feature_type: e.string().enum(sn),
1101
1099
  config: e.object({
1102
1100
  weixin_template_ids: e.array(e.string())
1103
1101
  })
1104
- }), un = u.Survey, ln = e.object({
1105
- ...l.shape,
1102
+ }), un = c.Survey, ln = e.object({
1103
+ ...u.shape,
1106
1104
  feature_type: e.string().enum(un),
1107
1105
  config: e.object({
1108
1106
  survey_id: e.string(),
1109
1107
  survey_url: e.string()
1110
1108
  })
1111
- }), mn = u.Team, dn = e.object({
1112
- ...l.shape,
1109
+ }), mn = c.Team, dn = e.object({
1110
+ ...u.shape,
1113
1111
  feature_type: e.string().enum(mn),
1114
1112
  config: e.object({
1115
1113
  max_members: e.number().min(1),
1116
1114
  min_members: e.number().min(1)
1117
1115
  })
1118
- }), gn = u.Ugc, _n = e.object({
1119
- ...l.shape,
1116
+ }), gn = c.Ugc, _n = e.object({
1117
+ ...u.shape,
1120
1118
  feature_type: e.string().enum(gn),
1121
1119
  config: e.object({
1122
1120
  allowed_social_medias: e.array(e.string()).optional(),
1123
1121
  acceptance_rewards: e.array(g).optional()
1124
1122
  })
1125
- }), pn = u.UgcLike, bn = e.object({
1126
- ...l.shape,
1123
+ }), pn = c.UgcLike, bn = e.object({
1124
+ ...u.shape,
1127
1125
  feature_type: e.string().enum(pn),
1128
1126
  config: e.object({
1129
1127
  ugc_feature_id: e.number()
1130
1128
  })
1131
- }), yn = u.Vote, fn = e.object({
1129
+ }), yn = c.Vote, fn = e.object({
1132
1130
  sn: e.string(),
1133
1131
  name: e.string(),
1134
1132
  img_urls: e.array(e.string()).optional(),
@@ -1139,7 +1137,7 @@ const v = {
1139
1137
  finalists: e.bool(),
1140
1138
  last_vote_time: e.number()
1141
1139
  }), hn = e.object({
1142
- ...l.shape,
1140
+ ...u.shape,
1143
1141
  feature_type: e.string().enum(yn),
1144
1142
  config: e.object({
1145
1143
  vote_feature_ids: e.array(e.number()),
@@ -1178,7 +1176,7 @@ const v = {
1178
1176
  event_name: e.string(),
1179
1177
  feature_id: e.number(),
1180
1178
  engagement_id: e.number(),
1181
- feature_type: at,
1179
+ feature_type: ot,
1182
1180
  receive_time: e.number(),
1183
1181
  extra_data: e.record(e.unknown()).optional()
1184
1182
  }), Cn = e.string().enum(w.Unknown, w.Pending), Vn = e.union(
@@ -1239,7 +1237,7 @@ const v = {
1239
1237
  team_code: e.string(),
1240
1238
  leader_name: e.string(),
1241
1239
  total_members: e.number()
1242
- }), Ca = e.object({
1240
+ }), Vo = e.object({
1243
1241
  is_leader: e.bool(),
1244
1242
  is_myself: e.bool().optional(),
1245
1243
  role_name: e.string(),
@@ -1371,7 +1369,7 @@ const v = {
1371
1369
  Ln,
1372
1370
  e.custom(
1373
1371
  "EmptyObject",
1374
- (a) => y(a) && Object.keys(a).length === 0
1372
+ (o) => y(o) && Object.keys(o).length === 0
1375
1373
  )
1376
1374
  ).satisfies().lock(), Zn = e.object({
1377
1375
  reward_id: e.number(),
@@ -1432,19 +1430,19 @@ const v = {
1432
1430
  }), nr = e.object({
1433
1431
  reward_id: e.number(),
1434
1432
  reward_status: U
1435
- }), rr = u.Vote2, ar = e.object({
1433
+ }), rr = c.Vote2, or = e.object({
1436
1434
  candidate_id: e.string(),
1437
1435
  display_name: e.string(),
1438
1436
  images: e.array(e.string()).optional(),
1439
1437
  videos: e.array(e.string()).optional(),
1440
1438
  description: e.string().optional(),
1441
1439
  jump_url: e.string()
1442
- }), or = e.object({
1443
- ...l.shape,
1440
+ }), ar = e.object({
1441
+ ...u.shape,
1444
1442
  feature_type: e.string().enum(rr),
1445
1443
  config: e.object({
1446
1444
  vote_item_id: e.number().optional(),
1447
- candidates: e.array(ar),
1445
+ candidates: e.array(or),
1448
1446
  vote_since: e.number(),
1449
1447
  vote_until: e.number(),
1450
1448
  rewards_since: e.number(),
@@ -1452,8 +1450,8 @@ const v = {
1452
1450
  winner_rewards: e.array(g).optional(),
1453
1451
  consolation_rewards: e.array(g).optional()
1454
1452
  })
1455
- }), ir = u.ZeroChatgpt, sr = e.object({
1456
- ...l.shape,
1453
+ }), ir = c.ZeroChatgpt, sr = e.object({
1454
+ ...u.shape,
1457
1455
  feature_type: e.string().enum(ir)
1458
1456
  }), cr = e.union(
1459
1457
  Vt,
@@ -1469,12 +1467,12 @@ const v = {
1469
1467
  Zt,
1470
1468
  Yt,
1471
1469
  rn,
1472
- on,
1470
+ an,
1473
1471
  cn,
1474
1472
  ln,
1475
1473
  dn,
1476
1474
  hn,
1477
- or,
1475
+ ar,
1478
1476
  xt,
1479
1477
  sr,
1480
1478
  _n,
@@ -1517,273 +1515,297 @@ const v = {
1517
1515
  e.object({
1518
1516
  candidate_votes: e.array(Kn)
1519
1517
  })
1520
- ), xr = e.guard(ne), ae = e.guard(An), Lr = e.guard($n), Ur = e.guard(On), Sr = e.guard(Gn), Pr = e.guard(Nn), Er = e.guard(Un);
1521
- async function Va(a, t, n) {
1522
- const { data: r } = await this.req.get("verify-mobile-allowed", mr, {
1523
- ...n,
1524
- params: { game_id: a, mobile: t }
1525
- });
1518
+ ), xr = e.guard(ne), oe = e.guard(An), Lr = e.guard($n), Ur = e.guard(On), Sr = e.guard(Gn), Pr = e.guard(Nn), Er = e.guard(Un);
1519
+ async function jo(o, t, n) {
1520
+ const { data: r } = await this.req.get(
1521
+ "verify-mobile-allowed",
1522
+ { game_id: o, mobile: t },
1523
+ mr,
1524
+ n
1525
+ );
1526
1526
  return r;
1527
1527
  }
1528
- async function ja(a) {
1529
- const { data: t } = await this.req.get(`event/${this.event}/event-config`, lr, a);
1528
+ async function To(o) {
1529
+ const { data: t } = await this.req.get(`event/${this.event}/event-config`, null, lr, o);
1530
1530
  return t;
1531
1531
  }
1532
- async function Ta(a, t) {
1533
- const { data: n } = await this.req.get(`event/${this.event}/feature-engagement-count`, F, {
1534
- ...t,
1535
- params: { feature_id: a, type: "user" }
1536
- });
1532
+ async function qo(o, t) {
1533
+ const { data: n } = await this.req.get(
1534
+ `event/${this.event}/feature-engagement-count`,
1535
+ { feature_id: o, type: "user" },
1536
+ F,
1537
+ t
1538
+ );
1537
1539
  return n?.count ?? null;
1538
1540
  }
1539
- async function qa(a, t) {
1540
- const { data: n } = await this.req.get(`event/${this.event}/feature-engagement-count`, F, {
1541
- ...t,
1542
- params: { feature_id: a, type: "engagement" }
1543
- });
1541
+ async function xo(o, t) {
1542
+ const { data: n } = await this.req.get(
1543
+ `event/${this.event}/feature-engagement-count`,
1544
+ { feature_id: o, type: "engagement" },
1545
+ F,
1546
+ t
1547
+ );
1544
1548
  return n?.count ?? null;
1545
1549
  }
1546
- async function xa(a, t) {
1547
- const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, gr, {
1548
- ...t,
1549
- params: { feature_id: a }
1550
- });
1550
+ async function Lo(o, t) {
1551
+ const { data: n } = await this.req.get(
1552
+ `event/${this.event}/feature-engagements`,
1553
+ { feature_id: o },
1554
+ gr,
1555
+ t
1556
+ );
1551
1557
  return n?.engagements || [];
1552
1558
  }
1553
- async function La(a, t) {
1559
+ async function Uo(o, t) {
1554
1560
  await this.token.autoLogin();
1555
- const { data: n, code: r, message: o } = await this.req.post(
1561
+ const { data: n, code: r, message: a } = await this.req.post(
1556
1562
  `event/${this.event}/visit`,
1557
- c(a || {}),
1563
+ l(o || {}),
1558
1564
  dr,
1559
1565
  t
1560
1566
  );
1561
1567
  return n ?? {
1562
- message: o,
1568
+ message: a,
1563
1569
  error: r
1564
1570
  };
1565
1571
  }
1566
- async function Ua(a, t) {
1572
+ async function So(o, t) {
1567
1573
  if (!await this.token.autoLogin()) return [];
1568
- const { data: n } = await this.req.get("event/user-feature-status", _r, {
1569
- ...t,
1570
- message: !1,
1571
- params: c({ ...a, event_id: this.event })
1572
- });
1574
+ const { data: n } = await this.req.get(
1575
+ "event/user-feature-status",
1576
+ { ...o, event_id: this.event },
1577
+ _r,
1578
+ {
1579
+ ...t,
1580
+ message: !1
1581
+ }
1582
+ );
1573
1583
  return n?.status || [];
1574
1584
  }
1575
- async function Sa(a, t) {
1585
+ async function Po(o, t) {
1576
1586
  if (!await this.token.autoLogin()) return {};
1577
- const { data: n } = await this.req.get("event/user-engagements-count", pr, {
1578
- message: !1,
1579
- params: c({ ...t, event_id: this.event, feature_id: a })
1580
- });
1587
+ const { data: n } = await this.req.get(
1588
+ "event/user-engagements-count",
1589
+ { ...t, event_id: this.event, feature_id: o },
1590
+ pr,
1591
+ { message: !1 }
1592
+ );
1581
1593
  return n?.engagements_counts || {};
1582
1594
  }
1583
- async function Pa(a, t, n) {
1595
+ async function Eo(o, t, n) {
1584
1596
  if (!await this.token.autoLogin())
1585
1597
  return {
1586
1598
  engagements: [],
1587
1599
  next_token: ""
1588
1600
  };
1589
- const { data: r } = await this.req.get("event/user-engagements", br, {
1590
- ...n,
1591
- params: c({
1601
+ const { data: r } = await this.req.get(
1602
+ "event/user-engagements",
1603
+ {
1592
1604
  max_results: 20,
1593
1605
  ...t,
1594
1606
  event_id: this.event,
1595
- feature_id: a
1596
- })
1597
- });
1607
+ feature_id: o
1608
+ },
1609
+ br,
1610
+ n
1611
+ );
1598
1612
  return {
1599
1613
  engagements: r?.engagements || [],
1600
1614
  next_token: r?.next_token || ""
1601
1615
  };
1602
1616
  }
1603
- async function Ea(a, t, n, r) {
1617
+ async function Fo(o, t, n, r) {
1604
1618
  await this.token.autoLogin();
1605
- const { data: o, code: i, message: d } = await this.req.post(
1619
+ const { data: a, code: i, message: d } = await this.req.post(
1606
1620
  `event/${this.event}/engage`,
1607
- c({
1608
- feature_id: a,
1621
+ l({
1622
+ feature_id: o,
1609
1623
  engagement: t,
1610
1624
  ...n
1611
1625
  }),
1612
1626
  yr,
1613
1627
  r
1614
1628
  );
1615
- return o ?? {
1629
+ return a ?? {
1616
1630
  message: d,
1617
1631
  error: i
1618
1632
  };
1619
1633
  }
1620
- async function Fa(a, t) {
1634
+ async function Io(o, t) {
1621
1635
  await this.token.autoLogin();
1622
- const { data: n, code: r, message: o } = await this.req.post(
1636
+ const { data: n, code: r, message: a } = await this.req.post(
1623
1637
  "event/claim-rewards",
1624
- c({
1625
- ...a,
1626
- server_id: a.server_id ? +a.server_id : void 0
1638
+ l({
1639
+ ...o,
1640
+ server_id: o.server_id ? +o.server_id : void 0
1627
1641
  }),
1628
1642
  fr,
1629
1643
  t
1630
1644
  );
1631
1645
  return n?.claimed_items || {
1632
- message: o,
1646
+ message: a,
1633
1647
  error: r
1634
1648
  };
1635
1649
  }
1636
- async function Ia(a, t) {
1650
+ async function Do(o, t) {
1637
1651
  if (!await this.token.autoLogin()) return null;
1638
- const { ok: n, code: r, message: o } = await this.req.post(
1652
+ const { ok: n, code: r, message: a } = await this.req.post(
1639
1653
  `event/${this.event}/user-reward-address`,
1640
- a,
1654
+ o,
1641
1655
  null,
1642
1656
  t
1643
1657
  );
1644
1658
  return n || {
1645
- message: o,
1659
+ message: a,
1646
1660
  error: r
1647
1661
  };
1648
1662
  }
1649
- async function Da(a, t) {
1663
+ async function $o(o, t) {
1650
1664
  if (!await this.token.autoLogin()) return null;
1651
- const { data: n } = await this.req.get("event/unlimit-qrcode-scene", Rr, {
1652
- ...t,
1653
- params: { params: a }
1654
- });
1665
+ const { data: n } = await this.req.get(
1666
+ "event/unlimit-qrcode-scene",
1667
+ { params: o },
1668
+ Rr,
1669
+ t
1670
+ );
1655
1671
  return n?.scene ?? null;
1656
1672
  }
1657
- async function $a(a, t) {
1658
- const { data: n } = await this.req.get("event/params-by-qrcode-scene", Cr, {
1659
- ...t,
1660
- params: { scene: a }
1661
- });
1673
+ async function Ao(o, t) {
1674
+ const { data: n } = await this.req.get(
1675
+ "event/params-by-qrcode-scene",
1676
+ { scene: o },
1677
+ Cr,
1678
+ t
1679
+ );
1662
1680
  return n?.params ?? null;
1663
1681
  }
1664
- async function Aa(a, t) {
1682
+ async function Oo(o, t) {
1665
1683
  if (!await this.token.autoLogin()) return null;
1666
1684
  const { data: n } = await this.req.post(
1667
1685
  "event/unlimit-qrcode",
1668
- c(a),
1686
+ l(o),
1669
1687
  Vr,
1670
1688
  t
1671
1689
  );
1672
1690
  return n?.img ?? null;
1673
1691
  }
1674
- async function Oa(a, t) {
1692
+ async function Go(o, t) {
1675
1693
  if (!await this.token.autoLogin()) return null;
1676
- const { data: n, code: r, message: o } = await this.req.get(`event/${this.event}/quest-progress`, jr, {
1677
- message: !1,
1678
- ...t,
1679
- params: { feature_id: a }
1680
- });
1694
+ const { data: n, code: r, message: a } = await this.req.get(
1695
+ `event/${this.event}/quest-progress`,
1696
+ { feature_id: o },
1697
+ jr,
1698
+ { message: !1, ...t }
1699
+ );
1681
1700
  return n || {
1682
- message: o,
1701
+ message: a,
1683
1702
  error: r
1684
1703
  };
1685
1704
  }
1686
- async function Ga(a, t) {
1705
+ async function No(o, t) {
1687
1706
  if (!await this.token.autoLogin()) return null;
1688
- const { data: n, code: r, message: o } = await this.req.post(
1707
+ const { data: n, code: r, message: a } = await this.req.post(
1689
1708
  "event/vote2/rewards",
1690
- { feature_id: a, event_id: this.event },
1709
+ { feature_id: o, event_id: this.event },
1691
1710
  Tr,
1692
1711
  t
1693
1712
  );
1694
1713
  return n || {
1695
- message: o,
1714
+ message: a,
1696
1715
  code: r
1697
1716
  };
1698
1717
  }
1699
- async function Na(a, t) {
1718
+ async function Qo(o, t) {
1700
1719
  if (!await this.token.autoLogin()) return [];
1701
- const { data: n } = await this.req.get("event/vote2/leaderboard", qr, {
1702
- ...t,
1703
- params: { feature_id: a, event_id: this.event }
1704
- });
1720
+ const { data: n } = await this.req.get(
1721
+ "event/vote2/leaderboard",
1722
+ { feature_id: o, event_id: this.event },
1723
+ qr,
1724
+ t
1725
+ );
1705
1726
  return n?.candidate_votes || [];
1706
1727
  }
1707
- async function Qa(a, t) {
1728
+ async function Bo(o, t) {
1708
1729
  if (!await this.token.autoLogin()) return null;
1709
- const { data: n, code: r, message: o } = await this.req.get("event/cashback/query", xr, {
1710
- ...t,
1711
- params: { feature_id: a, event_id: this.event }
1712
- });
1730
+ const { data: n, code: r, message: a } = await this.req.get(
1731
+ "event/cashback/query",
1732
+ { feature_id: o, event_id: this.event },
1733
+ xr,
1734
+ t
1735
+ );
1713
1736
  return n || {
1714
- message: o,
1737
+ message: a,
1715
1738
  error: r
1716
1739
  };
1717
1740
  }
1718
- async function Ba(a, t) {
1741
+ async function Mo(o, t) {
1719
1742
  if (!await this.token.autoLogin()) return null;
1720
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/my", ae, {
1721
- ...t,
1722
- params: {
1723
- max_results: 20,
1724
- ...a
1725
- }
1726
- });
1743
+ const { data: n, code: r, message: a } = await this.req.get(
1744
+ "event/ugc/my",
1745
+ { max_results: 20, ...o },
1746
+ oe,
1747
+ t
1748
+ );
1727
1749
  return n || {
1728
- message: o,
1750
+ message: a,
1729
1751
  error: r
1730
1752
  };
1731
1753
  }
1732
- async function Ma(a, t) {
1754
+ async function Ko(o, t) {
1733
1755
  if (!await this.token.autoLogin()) return null;
1734
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/my-count", Ur, {
1735
- ...t,
1736
- params: {
1737
- ...a
1738
- }
1739
- });
1756
+ const { data: n, code: r, message: a } = await this.req.get(
1757
+ "event/ugc/my-count",
1758
+ { ...o },
1759
+ Ur,
1760
+ t
1761
+ );
1740
1762
  return n || {
1741
- message: o,
1763
+ message: a,
1742
1764
  error: r
1743
1765
  };
1744
1766
  }
1745
- async function Ka(a, t) {
1767
+ async function Ho(o, t) {
1746
1768
  await this.token.autoLogin();
1747
- const { data: n, code: r, message: o } = await this.req.post(
1769
+ const { data: n, code: r, message: a } = await this.req.post(
1748
1770
  "event/claim-rewards-v2",
1749
- c({
1750
- ...a,
1751
- server_id: a.server_id ? +a.server_id : void 0
1771
+ l({
1772
+ ...o,
1773
+ server_id: o.server_id ? +o.server_id : void 0
1752
1774
  }),
1753
1775
  hr,
1754
1776
  t
1755
1777
  );
1756
1778
  return n?.rewards || {
1757
- message: o,
1779
+ message: a,
1758
1780
  error: r
1759
1781
  };
1760
1782
  }
1761
- async function Ha(a, t) {
1783
+ async function zo(o, t) {
1762
1784
  await this.token.autoLogin();
1763
- const { data: n, code: r, message: o } = await this.req.post(
1785
+ const { data: n, code: r, message: a } = await this.req.post(
1764
1786
  "event/claim-weixin-hongbao",
1765
- { reward_id: a },
1787
+ { reward_id: o },
1766
1788
  wr,
1767
1789
  t
1768
1790
  );
1769
1791
  return n || {
1770
- message: o,
1792
+ message: a,
1771
1793
  error: r
1772
1794
  };
1773
1795
  }
1774
- async function za(a, t) {
1796
+ async function Jo(o, t) {
1775
1797
  if (!this.token.isLoggedIn)
1776
1798
  return { error: "not_logged_in" };
1777
- const { ok: n, code: r, message: o } = await this.req.post("verify-activation-key", { activation_key: a }, null, {
1799
+ const { ok: n, code: r, message: a } = await this.req.post("verify-activation-key", { activation_key: o }, null, {
1778
1800
  message: !1,
1779
1801
  ...t
1780
1802
  });
1781
1803
  return n || {
1782
- message: o,
1804
+ message: a,
1783
1805
  error: r
1784
1806
  };
1785
1807
  }
1786
- async function Ja(a, t) {
1808
+ async function Zo(o, t) {
1787
1809
  if (!await this.token.autoLogin())
1788
1810
  return {
1789
1811
  user_rewards: [],
@@ -1791,7 +1813,7 @@ async function Ja(a, t) {
1791
1813
  };
1792
1814
  const { data: n } = await this.req.post(
1793
1815
  "event/user-rewards",
1794
- c({ max_results: 20, ...a, event_id: this.event }),
1816
+ l({ max_results: 20, ...o, event_id: this.event }),
1795
1817
  kr,
1796
1818
  t
1797
1819
  );
@@ -1800,93 +1822,105 @@ async function Ja(a, t) {
1800
1822
  next_token: n?.next_token || ""
1801
1823
  };
1802
1824
  }
1803
- async function Za(a, t) {
1825
+ async function Xo(o, t) {
1804
1826
  if (!await this.token.autoLogin())
1805
1827
  return {
1806
1828
  unclaimed: 0
1807
1829
  };
1808
- const { data: n } = await this.req.get("event/user-rewards-count", vr, {
1809
- ...t,
1810
- params: c({ ...a })
1811
- });
1830
+ const { data: n } = await this.req.get(
1831
+ "event/user-rewards-count",
1832
+ { ...o },
1833
+ vr,
1834
+ t
1835
+ );
1812
1836
  return {
1813
1837
  unclaimed: n?.unclaimed || 0
1814
1838
  };
1815
1839
  }
1816
- async function Xa(a, t) {
1840
+ async function Yo(o, t) {
1817
1841
  if (!await this.token.autoLogin()) return null;
1818
- const { data: n } = await this.req.get(`event/${this.event}/user-item-count`, F, {
1819
- ...t,
1820
- params: { item_id: a }
1821
- });
1842
+ const { data: n } = await this.req.get(
1843
+ `event/${this.event}/user-item-count`,
1844
+ { item_id: o },
1845
+ F,
1846
+ t
1847
+ );
1822
1848
  return n?.count ?? null;
1823
1849
  }
1824
- async function Ya(a, t, n) {
1850
+ async function Wo(o, t, n) {
1825
1851
  if (!await this.token.autoLogin()) return null;
1826
- const { data: r, code: o, message: i } = await this.req.post(
1852
+ const { data: r, code: a, message: i } = await this.req.post(
1827
1853
  "event/ugc/upload-image",
1828
- { feature_id: a, ...t, event_id: this.event },
1854
+ { feature_id: o, ...t, event_id: this.event },
1829
1855
  Sr,
1830
1856
  n
1831
1857
  );
1832
1858
  return r || {
1833
1859
  message: i,
1834
- error: o
1860
+ error: a
1835
1861
  };
1836
1862
  }
1837
- async function Wa(a, t) {
1838
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/recommendation", ae, {
1839
- ...t,
1840
- params: {
1841
- feature_id: a,
1863
+ async function ea(o, t) {
1864
+ const { data: n, code: r, message: a } = await this.req.get(
1865
+ "event/ugc/recommendation",
1866
+ {
1867
+ feature_id: o,
1842
1868
  event_id: this.event
1843
- }
1844
- });
1869
+ },
1870
+ oe,
1871
+ t
1872
+ );
1845
1873
  return n || {
1846
- message: o,
1874
+ message: a,
1847
1875
  error: r
1848
1876
  };
1849
1877
  }
1850
- async function eo(a, t, n) {
1851
- const { data: r, code: o, message: i } = await this.req.get("event/ugc/ugcs", Lr, {
1852
- ...n,
1853
- params: {
1878
+ async function ta(o, t, n) {
1879
+ const { data: r, code: a, message: i } = await this.req.get(
1880
+ "event/ugc/ugcs",
1881
+ {
1854
1882
  event_id: this.event,
1855
- feature_id: a,
1883
+ feature_id: o,
1856
1884
  max_results: 20,
1857
1885
  ...t
1858
- }
1859
- });
1886
+ },
1887
+ Lr,
1888
+ n
1889
+ );
1860
1890
  return r || {
1861
1891
  message: i,
1862
- error: o
1892
+ error: a
1863
1893
  };
1864
1894
  }
1865
- async function to(a, t) {
1895
+ async function na(o, t) {
1866
1896
  if (!await this.token.autoLogin()) return null;
1867
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/leaderboard", Pr, {
1868
- ...t,
1869
- params: {
1870
- feature_id: a,
1897
+ const { data: n, code: r, message: a } = await this.req.get(
1898
+ "event/ugc/leaderboard",
1899
+ {
1900
+ feature_id: o,
1871
1901
  event_id: this.event
1872
- }
1873
- });
1902
+ },
1903
+ Pr,
1904
+ t
1905
+ );
1874
1906
  return n || {
1875
- message: o,
1907
+ message: a,
1876
1908
  error: r
1877
1909
  };
1878
1910
  }
1879
- async function no(a, t) {
1911
+ async function ra(o, t) {
1880
1912
  if (!await this.token.autoLogin()) return null;
1881
- const { data: n, code: r, message: o } = await this.req.get("event/redeem/item-stocks", Er, {
1882
- ...t,
1883
- params: {
1913
+ const { data: n, code: r, message: a } = await this.req.get(
1914
+ "event/redeem/item-stocks",
1915
+ {
1884
1916
  event_id: this.event,
1885
- feature_id: a
1886
- }
1887
- });
1917
+ feature_id: o
1918
+ },
1919
+ Er,
1920
+ t
1921
+ );
1888
1922
  return n || {
1889
- message: o,
1923
+ message: a,
1890
1924
  error: r
1891
1925
  };
1892
1926
  }
@@ -1904,14 +1938,14 @@ const Fr = {
1904
1938
  Failed: "failed",
1905
1939
  /** 嫌疑(仅自己可见) */
1906
1940
  Suspect: "suspect"
1907
- }, oe = e.string().enum(Dr).lock(), $r = {
1941
+ }, ae = e.string().enum(Dr).lock(), $r = {
1908
1942
  /** 系统通知 */
1909
1943
  System: "system",
1910
1944
  /** 评论我的 */
1911
1945
  Comment: "comment",
1912
1946
  /** 点赞通知 */
1913
1947
  Like: "like"
1914
- }, ro = e.string().enum($r).lock(), m = {
1948
+ }, oa = e.string().enum($r).lock(), m = {
1915
1949
  /** 系统通知 */
1916
1950
  System: "system",
1917
1951
  /** 帖子被置顶 */
@@ -1969,7 +2003,7 @@ const Fr = {
1969
2003
  event_ids: e.array(e.number()),
1970
2004
  is_pinned: e.bool(),
1971
2005
  is_highlighted: e.bool(),
1972
- status: oe,
2006
+ status: ae,
1973
2007
  create_time: e.number()
1974
2008
  }).lock(), se = e.object({
1975
2009
  err_msg: e.string().optional()
@@ -2012,7 +2046,7 @@ const Fr = {
2012
2046
  liked: e.bool(),
2013
2047
  image_url: e.string(),
2014
2048
  create_time: e.number(),
2015
- status: oe,
2049
+ status: ae,
2016
2050
  replies: e.array(C).optional()
2017
2051
  }).lock(), Gr = e.object({
2018
2052
  image_url: e.string(),
@@ -2088,33 +2122,33 @@ const Fr = {
2088
2122
  Hr,
2089
2123
  zr,
2090
2124
  Jr
2091
- ).satisfies().lock(), Xr = s({ forums: e.array(ie) }), Yr = s({ topics: e.array(I) }), Wr = s({ topic: I }), ea = s({ post: D }), M = s({
2125
+ ).satisfies().lock(), Xr = s({ forums: e.array(ie) }), Yr = s({ topics: e.array(I) }), Wr = s({ topic: I }), eo = s({ post: D }), M = s({
2092
2126
  posts: e.array(D),
2093
2127
  next_token: e.string().optional()
2094
- }), ta = s({
2128
+ }), to = s({
2095
2129
  post: D.clone().optional(),
2096
2130
  antispam: se.clone().optional()
2097
- }), na = s({
2131
+ }), no = s({
2098
2132
  replies: e.array(C),
2099
2133
  next_token: e.string().optional()
2100
- }), ra = s({ reply: C }), aa = s({
2134
+ }), ro = s({ reply: C }), oo = s({
2101
2135
  reply: C.clone().optional(),
2102
2136
  antispam: se.clone().optional()
2103
- }), oa = s({ comment: k }), ia = s({
2137
+ }), ao = s({ comment: k }), io = s({
2104
2138
  comments: e.array(k),
2105
2139
  next_token: e.string().optional()
2106
- }), sa = s({
2140
+ }), so = s({
2107
2141
  comment: k.clone().optional(),
2108
2142
  antispam: k.clone().optional()
2109
- }), ca = e.guard(Gr), ua = s({
2143
+ }), co = e.guard(Gr), uo = s({
2110
2144
  notifications: e.array(Zr),
2111
2145
  next_token: e.string().optional()
2112
- }), la = s({
2146
+ }), lo = s({
2113
2147
  system: e.number(),
2114
2148
  comment: e.number(),
2115
2149
  like: e.number()
2116
2150
  });
2117
- class ao {
2151
+ class aa {
2118
2152
  token;
2119
2153
  req;
2120
2154
  constructor(t) {
@@ -2126,7 +2160,7 @@ class ao {
2126
2160
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
2127
2161
  */
2128
2162
  async getForums(t) {
2129
- const { data: n } = await this.req.get("community/forums", Xr, t);
2163
+ const { data: n } = await this.req.get("community/forums", null, Xr, t);
2130
2164
  return n?.forums || [];
2131
2165
  }
2132
2166
  /**
@@ -2135,7 +2169,7 @@ class ao {
2135
2169
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
2136
2170
  */
2137
2171
  async getTopics(t) {
2138
- const { data: n } = await this.req.get("community/topics", Yr, t);
2172
+ const { data: n } = await this.req.get("community/topics", null, Yr, t);
2139
2173
  return n?.topics || [];
2140
2174
  }
2141
2175
  /**
@@ -2144,11 +2178,13 @@ class ao {
2144
2178
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
2145
2179
  */
2146
2180
  async getTopic(t, n) {
2147
- const { data: r, code: o } = await this.req.get("community/topic", Wr, {
2148
- ...n,
2149
- params: { topic_id: t }
2150
- });
2151
- return r?.topic ?? { error: o };
2181
+ const { data: r, code: a } = await this.req.get(
2182
+ "community/topic",
2183
+ { topic_id: t },
2184
+ Wr,
2185
+ n
2186
+ );
2187
+ return r?.topic ?? { error: a };
2152
2188
  }
2153
2189
  /**
2154
2190
  * 获取社区帖子列表
@@ -2156,13 +2192,15 @@ class ao {
2156
2192
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
2157
2193
  */
2158
2194
  async getPosts(t, n) {
2159
- const { data: r, code: o, message: i } = await this.req.get("community/posts", M, {
2160
- ...n,
2161
- params: c(t)
2162
- });
2195
+ const { data: r, code: a, message: i } = await this.req.get(
2196
+ "community/posts",
2197
+ t || null,
2198
+ M,
2199
+ n
2200
+ );
2163
2201
  return r ?? {
2164
2202
  message: i,
2165
- error: o
2203
+ error: a
2166
2204
  };
2167
2205
  }
2168
2206
  /**
@@ -2170,11 +2208,13 @@ class ao {
2170
2208
  *
2171
2209
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
2172
2210
  */
2173
- async getPinnedPosts(t, n, r, o) {
2174
- const { data: i, code: d, message: b } = await this.req.get("community/pinned-posts", M, {
2175
- ...o,
2176
- params: c({ forum_id: t, max_results: n, next_token: r })
2177
- });
2211
+ async getPinnedPosts(t, n, r, a) {
2212
+ const { data: i, code: d, message: b } = await this.req.get(
2213
+ "community/pinned-posts",
2214
+ { forum_id: t, max_results: n, next_token: r },
2215
+ M,
2216
+ a
2217
+ );
2178
2218
  return i ?? {
2179
2219
  message: b,
2180
2220
  error: d
@@ -2186,13 +2226,15 @@ class ao {
2186
2226
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2187
2227
  */
2188
2228
  async getPost(t, n) {
2189
- const { data: r, code: o, message: i } = await this.req.get("community/post", ea, {
2190
- ...n,
2191
- params: { post_id: t }
2192
- });
2229
+ const { data: r, code: a, message: i } = await this.req.get(
2230
+ "community/post",
2231
+ { post_id: t },
2232
+ eo,
2233
+ n
2234
+ );
2193
2235
  return r?.post ?? {
2194
2236
  message: i,
2195
- error: o
2237
+ error: a
2196
2238
  };
2197
2239
  }
2198
2240
  /**
@@ -2201,15 +2243,15 @@ class ao {
2201
2243
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=M5okHBuaVk
2202
2244
  */
2203
2245
  async post(t, n) {
2204
- const { data: r, code: o, message: i } = await this.req.post(
2246
+ const { data: r, code: a, message: i } = await this.req.post(
2205
2247
  "community/post",
2206
- c(t),
2207
- ta,
2248
+ l(t),
2249
+ to,
2208
2250
  n
2209
2251
  );
2210
2252
  return r ?? {
2211
2253
  message: i,
2212
- error: o
2254
+ error: a
2213
2255
  };
2214
2256
  }
2215
2257
  /**
@@ -2218,13 +2260,15 @@ class ao {
2218
2260
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2219
2261
  */
2220
2262
  async getComments(t, n) {
2221
- const { data: r, code: o, message: i } = await this.req.get("community/comments", ia, {
2222
- ...n,
2223
- params: c(t)
2224
- });
2263
+ const { data: r, code: a, message: i } = await this.req.get(
2264
+ "community/comments",
2265
+ t,
2266
+ io,
2267
+ n
2268
+ );
2225
2269
  return r ?? {
2226
2270
  message: i,
2227
- error: o
2271
+ error: a
2228
2272
  };
2229
2273
  }
2230
2274
  /**
@@ -2233,13 +2277,15 @@ class ao {
2233
2277
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2234
2278
  */
2235
2279
  async getComment(t, n) {
2236
- const { data: r, code: o, message: i } = await this.req.get("community/comment", oa, {
2237
- ...n,
2238
- params: { comment_id: t }
2239
- });
2280
+ const { data: r, code: a, message: i } = await this.req.get(
2281
+ "community/comment",
2282
+ { comment_id: t },
2283
+ ao,
2284
+ n
2285
+ );
2240
2286
  return r?.comment ?? {
2241
2287
  message: i,
2242
- error: o
2288
+ error: a
2243
2289
  };
2244
2290
  }
2245
2291
  /**
@@ -2249,15 +2295,15 @@ class ao {
2249
2295
  */
2250
2296
  async comment(t, n) {
2251
2297
  await this.token.autoLogin();
2252
- const { data: r, code: o, message: i } = await this.req.post(
2298
+ const { data: r, code: a, message: i } = await this.req.post(
2253
2299
  "community/comment",
2254
- c(t),
2255
- sa,
2300
+ l(t),
2301
+ so,
2256
2302
  n
2257
2303
  );
2258
2304
  return r ?? {
2259
2305
  message: i,
2260
- error: o
2306
+ error: a
2261
2307
  };
2262
2308
  }
2263
2309
  /**
@@ -2266,10 +2312,12 @@ class ao {
2266
2312
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2267
2313
  */
2268
2314
  async getReplies(t, n) {
2269
- const { data: r } = await this.req.get("community/replies", na, {
2270
- ...n,
2271
- params: c({ max_results: 20, ...t })
2272
- });
2315
+ const { data: r } = await this.req.get(
2316
+ "community/replies",
2317
+ { max_results: 20, ...t },
2318
+ no,
2319
+ n
2320
+ );
2273
2321
  return {
2274
2322
  replies: r?.replies || [],
2275
2323
  next_token: r?.next_token || ""
@@ -2281,13 +2329,15 @@ class ao {
2281
2329
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2282
2330
  */
2283
2331
  async getReply(t, n) {
2284
- const { data: r, code: o, message: i } = await this.req.get("community/reply", ra, {
2285
- ...n,
2286
- params: { reply_id: t }
2287
- });
2332
+ const { data: r, code: a, message: i } = await this.req.get(
2333
+ "community/reply",
2334
+ { reply_id: t },
2335
+ ro,
2336
+ n
2337
+ );
2288
2338
  return r?.reply ?? {
2289
2339
  message: i,
2290
- error: o
2340
+ error: a
2291
2341
  };
2292
2342
  }
2293
2343
  /**
@@ -2297,15 +2347,15 @@ class ao {
2297
2347
  */
2298
2348
  async reply(t, n) {
2299
2349
  await this.token.autoLogin();
2300
- const { data: r, code: o, message: i } = await this.req.post(
2350
+ const { data: r, code: a, message: i } = await this.req.post(
2301
2351
  "community/reply",
2302
- c(t),
2303
- aa,
2352
+ l(t),
2353
+ oo,
2304
2354
  n
2305
2355
  );
2306
2356
  return r ?? {
2307
2357
  message: i,
2308
- error: o
2358
+ error: a
2309
2359
  };
2310
2360
  }
2311
2361
  /**
@@ -2315,7 +2365,7 @@ class ao {
2315
2365
  */
2316
2366
  async like(t, n) {
2317
2367
  await this.token.autoLogin();
2318
- const { ok: r, code: o, message: i } = await this.req.post(
2368
+ const { ok: r, code: a, message: i } = await this.req.post(
2319
2369
  "community/like",
2320
2370
  { ...t, action: "like" },
2321
2371
  null,
@@ -2323,7 +2373,7 @@ class ao {
2323
2373
  );
2324
2374
  return r || {
2325
2375
  message: i,
2326
- error: o
2376
+ error: a
2327
2377
  };
2328
2378
  }
2329
2379
  /**
@@ -2333,7 +2383,7 @@ class ao {
2333
2383
  */
2334
2384
  async unlike(t, n) {
2335
2385
  await this.token.autoLogin();
2336
- const { ok: r, code: o, message: i } = await this.req.post(
2386
+ const { ok: r, code: a, message: i } = await this.req.post(
2337
2387
  "community/like",
2338
2388
  { ...t, action: "unlike" },
2339
2389
  null,
@@ -2341,7 +2391,7 @@ class ao {
2341
2391
  );
2342
2392
  return r || {
2343
2393
  message: i,
2344
- error: o
2394
+ error: a
2345
2395
  };
2346
2396
  }
2347
2397
  /**
@@ -2351,10 +2401,12 @@ class ao {
2351
2401
  */
2352
2402
  async getMediaPresignedUrl(t, n) {
2353
2403
  await this.token.autoLogin();
2354
- const { data: r } = await this.req.get("community/media-presign-url", ca, {
2355
- ...n,
2356
- params: t
2357
- });
2404
+ const { data: r } = await this.req.get(
2405
+ "community/media-presign-url",
2406
+ t,
2407
+ co,
2408
+ n
2409
+ );
2358
2410
  return r;
2359
2411
  }
2360
2412
  /**
@@ -2366,10 +2418,12 @@ class ao {
2366
2418
  */
2367
2419
  async getNotifications(t, n) {
2368
2420
  await this.token.autoLogin();
2369
- const { data: r } = await this.req.get("community/notifications", ua, {
2370
- ...n,
2371
- params: c({ max_results: 20, ...t })
2372
- });
2421
+ const { data: r } = await this.req.get(
2422
+ "community/notifications",
2423
+ { max_results: 20, ...t },
2424
+ uo,
2425
+ n
2426
+ );
2373
2427
  return {
2374
2428
  notifications: r?.notifications || [],
2375
2429
  next_token: r?.next_token || ""
@@ -2384,7 +2438,8 @@ class ao {
2384
2438
  if (!await this.token.autoLogin()) return null;
2385
2439
  const { data: n } = await this.req.get(
2386
2440
  "community/unread-notifications-count",
2387
- la,
2441
+ null,
2442
+ lo,
2388
2443
  t
2389
2444
  );
2390
2445
  return n;
@@ -2400,17 +2455,17 @@ class ao {
2400
2455
  return r;
2401
2456
  }
2402
2457
  }
2403
- const ma = s({
2458
+ const mo = s({
2404
2459
  nonce_str: e.string(),
2405
2460
  timestamp: e.number(),
2406
2461
  signature: e.string()
2407
2462
  });
2408
- var da = /* @__PURE__ */ ((a) => (a.RedirectUriDisMatch = "10003", a.AppidError = "10016", a.AuthorizationError = "10015", a.NoRightForScope = "10005", a.Frequently = "10009", a.AppBanded = "10004", a.ShouldFollow = "10006", a.ScopeNull = "10010", a.RedirectUriNull = "10011", a.AppidNull = "10012", a.StateNull = "10013", a))(da || {});
2409
- function q(a) {
2410
- return y(a, "open_id", "union_id", "weixin_token");
2463
+ var go = /* @__PURE__ */ ((o) => (o.RedirectUriDisMatch = "10003", o.AppidError = "10016", o.AuthorizationError = "10015", o.NoRightForScope = "10005", o.Frequently = "10009", o.AppBanded = "10004", o.ShouldFollow = "10006", o.ScopeNull = "10010", o.RedirectUriNull = "10011", o.AppidNull = "10012", o.StateNull = "10013", o))(go || {});
2464
+ function q(o) {
2465
+ return y(o, "open_id", "union_id", "weixin_token");
2411
2466
  }
2412
2467
  const K = "wx_login_cache";
2413
- class oo {
2468
+ class ia {
2414
2469
  token;
2415
2470
  _appid;
2416
2471
  req;
@@ -2470,13 +2525,13 @@ class oo {
2470
2525
  const n = await this.getLoginCache();
2471
2526
  if (n)
2472
2527
  return n;
2473
- const r = await ve(), { data: o, code: i, message: d } = await this.req.post(
2528
+ const r = await ve(), { data: a, code: i, message: d } = await this.req.post(
2474
2529
  "weixin/login",
2475
2530
  { code: r, appid: this.appid },
2476
2531
  q,
2477
2532
  { ...t, message: !1 }
2478
2533
  );
2479
- return o && (this.token.weixinToken = o.weixin_token, this.token.storage.set(K, JSON.stringify(o))), o ?? {
2534
+ return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(K, JSON.stringify(a))), a ?? {
2480
2535
  message: d,
2481
2536
  error: i
2482
2537
  };
@@ -2498,11 +2553,11 @@ class oo {
2498
2553
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2499
2554
  */
2500
2555
  async webLogin(t = "snsapi_userinfo", n) {
2501
- const r = x("code"), o = Date.now(), i = +x("state");
2502
- if (!r || !i || i < o - 1e3 * 60 * 5 || i > o) {
2556
+ const r = x("code"), a = Date.now(), i = +x("state");
2557
+ if (!r || !i || i < a - 1e3 * 60 * 5 || i > a) {
2503
2558
  const le = O(["code", "state"]);
2504
2559
  location.replace(
2505
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${o}#wechat_redirect`
2560
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2506
2561
  );
2507
2562
  return;
2508
2563
  }
@@ -2538,11 +2593,11 @@ class oo {
2538
2593
  async linkPlayer(t, n, r) {
2539
2594
  if (!t || !n)
2540
2595
  return !1;
2541
- const { ok: o } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: n }, null, {
2596
+ const { ok: a } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: n }, null, {
2542
2597
  ...r,
2543
2598
  message: !1
2544
2599
  });
2545
- return o;
2600
+ return a;
2546
2601
  }
2547
2602
  /**
2548
2603
  * 获取集成 JSSDK 所需的签名信息
@@ -2550,13 +2605,15 @@ class oo {
2550
2605
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2551
2606
  */
2552
2607
  async getJSSDKConfig(t) {
2553
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ma, {
2554
- ...t,
2555
- params: {
2608
+ const { data: n } = await this.req.get(
2609
+ "weixin/offiaccount/jssdk-sign",
2610
+ {
2556
2611
  appid: this.appid,
2557
2612
  url: location.href.split("#")[0]
2558
- }
2559
- });
2613
+ },
2614
+ mo,
2615
+ t
2616
+ );
2560
2617
  return n ? {
2561
2618
  appid: this.appid,
2562
2619
  nonceStr: n.nonce_str,
@@ -2567,7 +2624,7 @@ class oo {
2567
2624
  }
2568
2625
  export {
2569
2626
  se as AntispamValidator,
2570
- ba as AuthToken,
2627
+ yo as AuthToken,
2571
2628
  Kn as CandidateVoteValidator,
2572
2629
  ne as CashbackEngagementDataValidator,
2573
2630
  wn as ClaimActivationKeyEngagementDataValidator,
@@ -2575,7 +2632,7 @@ export {
2575
2632
  U as ClaimRewardStatusValidator,
2576
2633
  nr as ClaimedItemValidator,
2577
2634
  J as ClubAddressValidator,
2578
- fa as ClubApi,
2635
+ ho as ClubApi,
2579
2636
  Z as ClubBenefitSummaryValidator,
2580
2637
  Oe as ClubBenefitValidator,
2581
2638
  Te as ClubCreditChangeScene,
@@ -2594,13 +2651,13 @@ export {
2594
2651
  De as ClubUserProfileValidator,
2595
2652
  Jn as CommentEngagementValidator,
2596
2653
  k as CommentValidator,
2597
- ao as CommunityApi,
2654
+ aa as CommunityApi,
2598
2655
  Hn as ConversationValidator,
2599
2656
  et as EngageAccountType,
2600
2657
  tt as EngageAccountTypeValidator,
2601
2658
  tr as EngageResponseValidator,
2602
2659
  Xn as EngageRewardValidator,
2603
- ha as EventApi,
2660
+ wo as EventApi,
2604
2661
  ur as EventConfigValidator,
2605
2662
  Vt as EventFeatureConfigOfCashbackValidator,
2606
2663
  Tt as EventFeatureConfigOfCheckInValidator,
@@ -2617,13 +2674,13 @@ export {
2617
2674
  Yt as EventFeatureConfigOfQuestValidator,
2618
2675
  tn as EventFeatureConfigOfRedeemValidator,
2619
2676
  rn as EventFeatureConfigOfRegisterValidator,
2620
- on as EventFeatureConfigOfShareValidator,
2677
+ an as EventFeatureConfigOfShareValidator,
2621
2678
  cn as EventFeatureConfigOfSubscribeValidator,
2622
2679
  ln as EventFeatureConfigOfSurveyValidator,
2623
2680
  dn as EventFeatureConfigOfTeamValidator,
2624
2681
  bn as EventFeatureConfigOfUgcLikeValidator,
2625
2682
  _n as EventFeatureConfigOfUgcValidator,
2626
- or as EventFeatureConfigOfVote2Validator,
2683
+ ar as EventFeatureConfigOfVote2Validator,
2627
2684
  hn as EventFeatureConfigOfVoteValidator,
2628
2685
  cr as EventFeatureConfigValidator,
2629
2686
  nt as EventPeriodType,
@@ -2633,8 +2690,8 @@ export {
2633
2690
  Ge as ExtraPhysicalShipmentValidator,
2634
2691
  en as FeatureRedeemItemConfigValidator,
2635
2692
  Rt as FeatureRewardValidator,
2636
- u as FeatureType,
2637
- at as FeatureTypeValidator,
2693
+ c as FeatureType,
2694
+ ot as FeatureTypeValidator,
2638
2695
  Fr as ForumMode,
2639
2696
  Ir as ForumModeValidator,
2640
2697
  ie as ForumValidator,
@@ -2645,14 +2702,14 @@ export {
2645
2702
  kn as GiftCodeEngagementDataValidator,
2646
2703
  vn as InviteEngagementDataValidator,
2647
2704
  gt as LotteryDrawAction,
2648
- Ra as LotteryDrawActionValidator,
2705
+ Co as LotteryDrawActionValidator,
2649
2706
  jn as LotteryDrawEngagementDataValidator,
2650
2707
  Rn as LotteryEngagementDataValidator,
2651
2708
  w as LotteryTicketStatus,
2652
- ka as LotteryTicketStatusValidator,
2709
+ vo as LotteryTicketStatusValidator,
2653
2710
  _ as NotificationBaseValidator,
2654
2711
  $r as NotificationCategory,
2655
- ro as NotificationCategoryValidator,
2712
+ oa as NotificationCategoryValidator,
2656
2713
  Kr as NotificationCommentReplyValidator,
2657
2714
  Hr as NotificationCommentValidator,
2658
2715
  V as NotificationPayloadCommentValidator,
@@ -2670,24 +2727,24 @@ export {
2670
2727
  Ie as PlayerRoleCardValidator,
2671
2728
  z as PlayerRoleValidator,
2672
2729
  Dr as PostStatus,
2673
- oe as PostStatusValidator,
2730
+ ae as PostStatusValidator,
2674
2731
  D as PostValidator,
2675
2732
  Tn as PreregisterEngagementDataValidator,
2676
2733
  Gr as PresignedUrlResponseValidator,
2677
2734
  qn as QuestEngagementDataValidator,
2678
- ot as QuestObjective,
2735
+ at as QuestObjective,
2679
2736
  ee as QuestObjectiveValidator,
2680
2737
  _t as QuestProgressAlgorithm,
2681
2738
  pt as QuestProgressAlgorithmValidator,
2682
2739
  xn as QuestProgressValidator,
2683
2740
  Ln as RedeemEngagementDataValidator,
2684
- ya as RedeemParamsValidator,
2741
+ fo as RedeemParamsValidator,
2685
2742
  Un as RedeemStocksResponseValidator,
2686
2743
  Qe as RedemptionValidator,
2687
2744
  vt as RegularRewardValidator,
2688
2745
  Or as ReplyToValidator,
2689
2746
  C as ReplyValidator,
2690
- wa as RewardItemType,
2747
+ ko as RewardItemType,
2691
2748
  W as RewardItemTypeValidator,
2692
2749
  ut as RewardSource,
2693
2750
  S as RewardSourceValidator,
@@ -2699,10 +2756,10 @@ export {
2699
2756
  Sn as ShareEngagementDataValidator,
2700
2757
  En as SurveyEngagementDataValidator,
2701
2758
  dt as TeamAction,
2702
- va as TeamActionValidator,
2759
+ Ro as TeamActionValidator,
2703
2760
  In as TeamEngagementDataValidator,
2704
2761
  Fn as TeamEngagementValidator,
2705
- Ca as TeamMemberValidator,
2762
+ Vo as TeamMemberValidator,
2706
2763
  lt as TeamVisibility,
2707
2764
  mt as TeamVisibilityValidator,
2708
2765
  I as TopicValidator,
@@ -2728,41 +2785,41 @@ export {
2728
2785
  Qn as VoteEngagementDataValidator,
2729
2786
  it as VoteOptionSource,
2730
2787
  st as VoteOptionSourceValidator,
2731
- oo as WeixinApi,
2788
+ ia as WeixinApi,
2732
2789
  Pn as WeixinSubscribeEngagementDataValidator,
2733
- da as WeixinWebLoginErrorCode,
2790
+ go as WeixinWebLoginErrorCode,
2734
2791
  zn as ZeroChatGPTDataValidator,
2735
- Fa as claimRewards,
2736
- Ka as claimRewardsV2,
2737
- Ha as claimWeixinHongbao,
2738
- Ea as engage,
2739
- Aa as generateUnlimitQrcode,
2740
- Qa as getCashbackQuery,
2741
- ja as getConfig,
2742
- xa as getEngagements,
2743
- qa as getEngagementsCount,
2744
- Ta as getEngagementsUserCount,
2745
- $a as getParamsByQrcodeScene,
2746
- Oa as getQuestProgress,
2747
- no as getRedeemItemStocks,
2748
- to as getUgcLeaderboard,
2749
- Ma as getUgcMyCount,
2750
- Wa as getUgcRecommendation,
2751
- Ba as getUgcRecord,
2752
- eo as getUgcs,
2753
- Da as getUnlimitQrcodeScene,
2754
- Sa as getUserEngagementCount,
2755
- Pa as getUserEngagements,
2756
- Ua as getUserFeatureStatus,
2757
- Xa as getUserItemCount,
2758
- Ja as getUserRewards,
2759
- Za as getUserRewardsCount,
2760
- Na as getVote2Leaderboard,
2761
- ma as isWeixinSignResponse,
2762
- Ia as submitUserRewardAddress,
2763
- Ya as ugcUploadImage,
2764
- za as verifyActivationKey,
2765
- Va as verifyMobileAllowed,
2766
- La as visit,
2767
- Ga as vote2Rewards
2792
+ Io as claimRewards,
2793
+ Ho as claimRewardsV2,
2794
+ zo as claimWeixinHongbao,
2795
+ Fo as engage,
2796
+ Oo as generateUnlimitQrcode,
2797
+ Bo as getCashbackQuery,
2798
+ To as getConfig,
2799
+ Lo as getEngagements,
2800
+ xo as getEngagementsCount,
2801
+ qo as getEngagementsUserCount,
2802
+ Ao as getParamsByQrcodeScene,
2803
+ Go as getQuestProgress,
2804
+ ra as getRedeemItemStocks,
2805
+ na as getUgcLeaderboard,
2806
+ Ko as getUgcMyCount,
2807
+ ea as getUgcRecommendation,
2808
+ Mo as getUgcRecord,
2809
+ ta as getUgcs,
2810
+ $o as getUnlimitQrcodeScene,
2811
+ Po as getUserEngagementCount,
2812
+ Eo as getUserEngagements,
2813
+ So as getUserFeatureStatus,
2814
+ Yo as getUserItemCount,
2815
+ Zo as getUserRewards,
2816
+ Xo as getUserRewardsCount,
2817
+ Qo as getVote2Leaderboard,
2818
+ mo as isWeixinSignResponse,
2819
+ Do as submitUserRewardAddress,
2820
+ Wo as ugcUploadImage,
2821
+ Jo as verifyActivationKey,
2822
+ jo as verifyMobileAllowed,
2823
+ Uo as visit,
2824
+ No as vote2Rewards
2768
2825
  };