@seayoo-web/gamer-api 2.4.3 → 2.4.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,20 +1,20 @@
1
- var le = Object.defineProperty;
2
- var me = (a, t, r) => t in a ? le(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
3
- var m = (a, t, r) => me(a, typeof t != "symbol" ? t + "" : t, r);
4
- import { isComboWebView as de } from "@seayoo-web/combo-webview";
5
- import { isPlainObject as R, useConsole as ge, Support as y, usePromise as pe, pruneURL as _e, queryString as E, pruneObject as c, v as e, omitFields as V, typedObjectGuard as s, parseJSON as be, removePara as B } from "@seayoo-web/utils";
6
- function ye(a) {
1
+ var me = Object.defineProperty;
2
+ var de = (a, t, r) => t in a ? me(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
3
+ var m = (a, t, r) => de(a, typeof t != "symbol" ? t + "" : t, r);
4
+ import { isComboWebView as ge } from "@seayoo-web/combo-webview";
5
+ import { isPlainObject as R, useConsole as pe, Support as y, usePromise as _e, pruneURL as be, queryString as P, pruneObject as c, v as e, omitFields as V, typedObjectGuard as s, parseJSON as ye, removePara as B } from "@seayoo-web/utils";
6
+ function fe(a) {
7
7
  return R(a, "gamer_token") && typeof a.gamer_token == "string";
8
8
  }
9
9
  function M(a) {
10
10
  return R(a);
11
11
  }
12
- const w = ge("GamerApiSDK");
13
- function fe(a) {
12
+ const w = pe("GamerApiSDK");
13
+ function he(a) {
14
14
  return /^\/[a-z\d-]+$/.test(a);
15
15
  }
16
- async function he() {
17
- const { promise: a, resolve: t } = pe();
16
+ async function we() {
17
+ const { promise: a, resolve: t } = _e();
18
18
  return wx.login({
19
19
  success(r) {
20
20
  t(r.code);
@@ -24,7 +24,7 @@ async function he() {
24
24
  }
25
25
  }), await a;
26
26
  }
27
- const we = {
27
+ const ke = {
28
28
  get(a) {
29
29
  return localStorage.getItem(a) || "";
30
30
  },
@@ -34,7 +34,7 @@ const we = {
34
34
  remove(a) {
35
35
  localStorage.removeItem(a);
36
36
  }
37
- }, ke = {
37
+ }, ve = {
38
38
  get(a) {
39
39
  try {
40
40
  if (y.wx) return wx.getStorageSync(a) || "";
@@ -58,7 +58,7 @@ const we = {
58
58
  }
59
59
  }
60
60
  }, k = "gamer_token";
61
- class Cr {
61
+ class Rr {
62
62
  constructor(t, r) {
63
63
  m(this, "$NetRequest");
64
64
  m(this, "$idToken", "");
@@ -66,15 +66,15 @@ class Cr {
66
66
  m(this, "$gamerToken", "");
67
67
  m(this, "req");
68
68
  m(this, "storage");
69
- this.storage = y.wx ? ke : we;
70
- const n = fe(t) ? t : `https://${_e(t)}`;
69
+ this.storage = y.wx ? ve : ke;
70
+ const n = he(t) ? t : `https://${be(t)}`;
71
71
  this.$NetRequest = r, this.req = r({
72
72
  baseURL: `${n}/v1`,
73
73
  timeout: 1e4,
74
74
  maxRetry: 2,
75
75
  retryInterval: "2EB",
76
- retryResolve({ method: p, status: d }) {
77
- return p === "GET" && d < 0;
76
+ retryResolve({ method: d, status: g }) {
77
+ return d === "GET" && g < 0;
78
78
  },
79
79
  responseRule: {
80
80
  ok: { resolve: "body" },
@@ -85,12 +85,12 @@ class Cr {
85
85
  }
86
86
  },
87
87
  // 使用箭头函数绑定执行上下文
88
- requestTransformer: (p) => {
89
- this.$gamerToken && (p.headers.Authorization = `Bearer ${this.$gamerToken}`);
88
+ requestTransformer: (d) => {
89
+ this.$gamerToken && (d.headers.Authorization = `Bearer ${this.$gamerToken}`);
90
90
  }
91
91
  });
92
- const i = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = E("gamer_token");
93
- (de() || i && o) && (this.$gamerToken = o), this.$gamerToken || this.loadGamerTokenCache();
92
+ const i = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = P("gamer_token");
93
+ (ge() || i && o) && (this.$gamerToken = o), this.$gamerToken || this.loadGamerTokenCache();
94
94
  }
95
95
  get NetRequest() {
96
96
  return this.$NetRequest;
@@ -172,7 +172,7 @@ class Cr {
172
172
  const { code: t, data: r } = await this.req.post(
173
173
  "login-with-token",
174
174
  c({ id_token: this.idToken, weixin_token: y.wx ? this.weixinToken : null }),
175
- ye,
175
+ fe,
176
176
  { message: !1 }
177
177
  );
178
178
  switch (t) {
@@ -210,21 +210,21 @@ class Cr {
210
210
  return r;
211
211
  }
212
212
  }
213
- const ve = {
213
+ const Ce = {
214
214
  /** 未知 */
215
215
  Unknown: "unknown",
216
216
  /** 男 */
217
217
  Male: "male",
218
218
  /** 女 */
219
219
  Female: "female"
220
- }, Ce = e.string().enum(ve).lock(), Re = {
220
+ }, Re = e.string().enum(Ce).lock(), Ve = {
221
221
  /** 积分增加 */
222
222
  Increase: "increase",
223
223
  /** 积分减少 */
224
224
  Decrease: "decrease",
225
225
  /** 积分过期 */
226
226
  Expired: "expired"
227
- }, Ve = e.string().enum(Re).lock(), je = {
227
+ }, je = e.string().enum(Ve).lock(), Te = {
228
228
  /** 游戏内购买 */
229
229
  Order: "order",
230
230
  /** 游戏内消耗 */
@@ -237,21 +237,21 @@ const ve = {
237
237
  Admin: "admin",
238
238
  /** 运营活动 */
239
239
  Event: "event"
240
- }, Te = e.string().enum(je).lock(), qe = {
240
+ }, qe = e.string().enum(Te).lock(), xe = {
241
241
  /** 游戏内奖励 */
242
242
  GameReward: "game_reward",
243
243
  /** 实物商品 */
244
244
  Physical: "physical",
245
245
  /** 虚拟商品 */
246
246
  Virtual: "virtual"
247
- }, X = e.string().enum(qe).lock(), xe = {
247
+ }, X = e.string().enum(xe).lock(), Se = {
248
248
  /** 待发放 */
249
249
  Pending: "pending",
250
250
  /** 已发放 */
251
251
  Issued: "issued",
252
252
  /** 发放失败 */
253
253
  Failed: "failed"
254
- }, Se = e.string().enum(xe).lock(), Le = e.object({
254
+ }, Le = e.string().enum(Se).lock(), Ee = e.object({
255
255
  default_avatar_url: e.string(),
256
256
  official_avatar_urls: e.array(e.string()),
257
257
  default_nickname: e.string(),
@@ -278,18 +278,18 @@ const ve = {
278
278
  credit_expiring: e.number(),
279
279
  level_change_time: e.number(),
280
280
  level_expire_time: e.number()
281
- }).lock(), Ee = e.object({
281
+ }).lock(), $e = e.object({
282
282
  server_id: e.string(),
283
283
  server_name: e.string()
284
- }).lock(), $e = e.object({
284
+ }).lock(), Ue = e.object({
285
285
  role_id: e.string(),
286
286
  role_name: e.string()
287
287
  }).lock(), Y = e.object({
288
+ ...Ue.shape,
288
289
  ...$e.shape,
289
- ...Ee.shape,
290
290
  role_level: e.number(),
291
291
  last_login_time: e.number()
292
- }).lock(), Ue = e.object({
292
+ }).lock(), Fe = e.object({
293
293
  ...Y.shape,
294
294
  /** 角色战力 */
295
295
  role_fighting: e.number(),
@@ -299,11 +299,11 @@ const ve = {
299
299
  kin_name: e.string().optional(),
300
300
  /** 宗门职位 */
301
301
  kin_position: e.string().optional()
302
- }).lock(), Fe = e.object({
302
+ }).lock(), De = e.object({
303
303
  name: e.string(),
304
304
  avatar_url: e.string(),
305
305
  bio: e.string(),
306
- gender: Ce,
306
+ gender: Re,
307
307
  birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
308
308
  }).lock(), Z = e.object({
309
309
  address_id: e.number(),
@@ -314,15 +314,15 @@ const ve = {
314
314
  district: e.string(),
315
315
  address: e.string(),
316
316
  is_default: e.bool()
317
- }).lock(), De = e.object({
317
+ }).lock(), Ie = e.object({
318
318
  increased_credit: e.number(),
319
319
  decreased_credit: e.number(),
320
320
  expired_credit: e.number(),
321
321
  balance_credit: e.number()
322
- }).lock(), Ie = e.object({
322
+ }).lock(), Ae = e.object({
323
323
  id: e.number(),
324
- change_type: Ve,
325
- change_scene: Te,
324
+ change_type: je,
325
+ change_scene: qe,
326
326
  change_credit: e.number(),
327
327
  balance: e.number(),
328
328
  change_time: e.number()
@@ -364,7 +364,7 @@ const ve = {
364
364
  }).lock(), Ge = e.object({
365
365
  ...V(W.shape, "tag"),
366
366
  product: ee.clone().optional()
367
- }).lock(), Rr = e.union(
367
+ }).lock(), Vr = e.union(
368
368
  e.object({
369
369
  server_id: e.string(),
370
370
  role_id: e.string()
@@ -372,7 +372,7 @@ const ve = {
372
372
  e.object({
373
373
  address_id: e.number()
374
374
  })
375
- ).satisfies().lock(), Ae = e.object({
375
+ ).satisfies().lock(), Ne = e.object({
376
376
  recipient: e.string(),
377
377
  mobile: e.string(),
378
378
  province: e.string(),
@@ -381,11 +381,11 @@ const ve = {
381
381
  address: e.string(),
382
382
  express_company: e.string(),
383
383
  express_number: e.string()
384
- }).lock(), Ne = e.object({
384
+ }).lock(), Oe = e.object({
385
385
  server_id: e.string(),
386
386
  role_id: e.string(),
387
387
  role_name: e.string()
388
- }).lock(), Oe = e.object({
388
+ }).lock(), Be = e.object({
389
389
  redemption_id: e.number(),
390
390
  player_id: e.string(),
391
391
  product_id: e.number(),
@@ -396,17 +396,17 @@ const ve = {
396
396
  catalog_name: e.string(),
397
397
  quantity: e.number(),
398
398
  amount: e.number(),
399
- status: Se,
399
+ status: Le,
400
400
  created_at: e.number(),
401
- extra_data: e.union(Ae.clone(), Ne.clone()).satisfies().optional()
402
- }), Be = e.guard(Le), Q = s({ player: Pe }), Me = s({ roles: e.array(Y) }), x = s({ role_card: Ue }), K = e.guard(Fe), H = e.guard(Z), Qe = s({ addresses: e.array(Z) }), Ke = e.guard(De), He = s({
403
- credit_logs: e.array(Ie),
401
+ extra_data: e.union(Ne.clone(), Oe.clone()).satisfies().optional()
402
+ }), Me = e.guard(Ee), Q = s({ player: Pe }), Qe = s({ roles: e.array(Y) }), x = s({ role_card: Fe }), K = e.guard(De), H = e.guard(Z), Ke = s({ addresses: e.array(Z) }), He = e.guard(Ie), ze = s({
403
+ credit_logs: e.array(Ae),
404
404
  next_token: e.string().optional()
405
- }), ze = s({ products: e.array(ee) }), Je = s({ benefits: e.array(W) }), Xe = s({ benefit: Ge }), Ye = s({
406
- redemptions: e.array(Oe),
405
+ }), Je = s({ products: e.array(ee) }), Xe = s({ benefits: e.array(W) }), Ye = s({ benefit: Ge }), Ze = s({
406
+ redemptions: e.array(Be),
407
407
  next_token: e.string().optional()
408
408
  });
409
- class Vr {
409
+ class jr {
410
410
  constructor(t) {
411
411
  m(this, "token");
412
412
  m(this, "req");
@@ -418,7 +418,7 @@ class Vr {
418
418
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
419
419
  */
420
420
  async getConfig(t) {
421
- const { data: r } = await this.req.get("club/config", Be, t);
421
+ const { data: r } = await this.req.get("club/config", Me, t);
422
422
  return r;
423
423
  }
424
424
  /**
@@ -459,7 +459,7 @@ class Vr {
459
459
  */
460
460
  async getRoles(t, r, n) {
461
461
  if (!await this.token.autoLogin()) return [];
462
- const { data: i } = await this.req.get("club/roles", Me, {
462
+ const { data: i } = await this.req.get("club/roles", Qe, {
463
463
  ...n,
464
464
  params: c({ player_id: t, refresh: r })
465
465
  });
@@ -529,7 +529,7 @@ class Vr {
529
529
  */
530
530
  async getAddresses(t) {
531
531
  if (!await this.token.autoLogin()) return [];
532
- const { data: r } = await this.req.get("club/addresses", Qe, t);
532
+ const { data: r } = await this.req.get("club/addresses", Ke, t);
533
533
  return (r == null ? void 0 : r.addresses) ?? [];
534
534
  }
535
535
  /**
@@ -577,7 +577,7 @@ class Vr {
577
577
  */
578
578
  async getUserCredit(t, r) {
579
579
  await this.token.autoLogin();
580
- const { data: n, code: i, message: o } = await this.req.get("club/user-credit", Ke, {
580
+ const { data: n, code: i, message: o } = await this.req.get("club/user-credit", He, {
581
581
  ...r,
582
582
  params: c(t)
583
583
  });
@@ -593,7 +593,7 @@ class Vr {
593
593
  */
594
594
  async getCreditLogs(t, r) {
595
595
  await this.token.autoLogin();
596
- const { data: n } = await this.req.get("club/credit-logs", He, {
596
+ const { data: n } = await this.req.get("club/credit-logs", ze, {
597
597
  ...r,
598
598
  params: c({ max_results: 20, ...t })
599
599
  });
@@ -609,7 +609,7 @@ class Vr {
609
609
  */
610
610
  async getBenefits(t) {
611
611
  if (!await this.token.autoLogin()) return [];
612
- const { data: r } = await this.req.get("club/benefits", Je, t);
612
+ const { data: r } = await this.req.get("club/benefits", Xe, t);
613
613
  return (r == null ? void 0 : r.benefits) || [];
614
614
  }
615
615
  /**
@@ -619,7 +619,7 @@ class Vr {
619
619
  */
620
620
  async getBenefit(t, r) {
621
621
  if (!await this.token.autoLogin()) return null;
622
- const { data: n } = await this.req.get("club/benefit", Xe, {
622
+ const { data: n } = await this.req.get("club/benefit", Ye, {
623
623
  ...r,
624
624
  params: { benefit_id: t }
625
625
  });
@@ -631,7 +631,7 @@ class Vr {
631
631
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
632
632
  */
633
633
  async getProducts(t, r) {
634
- const { data: n } = await this.req.get("club/products", ze, {
634
+ const { data: n } = await this.req.get("club/products", Je, {
635
635
  ...r,
636
636
  params: t
637
637
  });
@@ -657,7 +657,7 @@ class Vr {
657
657
  */
658
658
  async getRedemptions(t, r) {
659
659
  await this.token.autoLogin();
660
- const { data: n } = await this.req.get("club/redemptions", Ye, {
660
+ const { data: n } = await this.req.get("club/redemptions", Ze, {
661
661
  ...r,
662
662
  params: c({ max_results: 20, ...t })
663
663
  });
@@ -678,6 +678,8 @@ const j = {
678
678
  WeixinHongbao: "weixin_hongbao",
679
679
  /** 礼包码 */
680
680
  GiftCode: "gift_code",
681
+ /** 激活码 */
682
+ ActivationKey: "activation_key",
681
683
  /** 抽奖券 */
682
684
  LotteryTicket: "lottery_ticket",
683
685
  /** 积分 */
@@ -686,17 +688,17 @@ const j = {
686
688
  ExternalCode: "external_gift_code",
687
689
  /** 空奖励 */
688
690
  VoidItem: "void_item"
689
- }, te = e.string().enum(j).lock(), jr = j, ne = te, Ze = {
691
+ }, te = e.string().enum(j).lock(), Tr = j, ne = te, We = {
690
692
  /** 世游通行证 ID / Combo ID */
691
693
  UserId: "user_id",
692
694
  /** 游戏角色 ID */
693
695
  RoleId: "role_id"
694
- }, We = e.string().enum(Ze).lock(), et = {
696
+ }, et = e.string().enum(We).lock(), tt = {
695
697
  None: "none",
696
698
  Daily: "daily",
697
699
  Weekly: "weekly",
698
700
  Monthly: "monthly"
699
- }, tt = e.string().enum(et).lock(), u = {
701
+ }, nt = e.string().enum(tt).lock(), u = {
700
702
  /** 预约 */
701
703
  Preregister: "preregister",
702
704
  /** 抽奖 */
@@ -735,7 +737,7 @@ const j = {
735
737
  CheckIn: "check_in",
736
738
  /** 领取激活码 */
737
739
  ClaimActivationKey: "claim_activation_key"
738
- }, nt = e.string().enum(u).lock(), rt = {
740
+ }, rt = e.string().enum(u).lock(), it = {
739
741
  /** 累计游戏内活跃值 */
740
742
  Active: "player_active_points",
741
743
  /** 累计登录,单位 人天 */
@@ -750,14 +752,14 @@ const j = {
750
752
  MatchCounts: "player_match_counts",
751
753
  /** 游戏对局天数 */
752
754
  MatchDays: "player_match_days"
753
- }, re = e.string().enum(rt).lock(), it = {
755
+ }, re = e.string().enum(it).lock(), ot = {
754
756
  /** 官方上传 */
755
757
  System: "system",
756
758
  /** 用户投稿 */
757
759
  UserSubmission: "user_submission",
758
760
  /** 投票入围 */
759
761
  Shortlisted: "shortlisted"
760
- }, ot = e.string().enum(it).lock(), _ = {
762
+ }, at = e.string().enum(ot).lock(), _ = {
761
763
  /** 未获得奖励 */
762
764
  Ineligible: "ineligible",
763
765
  /** 奖励未领取 */
@@ -768,7 +770,7 @@ const j = {
768
770
  Failed: "failed",
769
771
  /** 奖励已发货 */
770
772
  Delivered: "delivered"
771
- }, Tr = e.string().enum(_).lock(), $ = {
773
+ }, qr = e.string().enum(_).lock(), $ = {
772
774
  /**
773
775
  * 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
774
776
  *
@@ -800,17 +802,17 @@ const j = {
800
802
  Failed: _.Failed,
801
803
  /** 奖励已发货 */
802
804
  Delivered: _.Delivered
803
- }, U = e.string().enum(b).lock(), at = {
805
+ }, U = e.string().enum(b).lock(), st = {
804
806
  /** 玩法产出奖励 */
805
807
  Output: "output",
806
808
  /** 玩法参与奖励 */
807
809
  Engage: "engage"
808
- }, F = e.string().enum(at).lock(), st = {
810
+ }, F = e.string().enum(st).lock(), ct = {
809
811
  /** 私有队伍 */
810
812
  Private: "private",
811
813
  /** 公开队伍 */
812
814
  Public: "public"
813
- }, ct = e.string().enum(st).lock(), v = {
815
+ }, ut = e.string().enum(ct).lock(), v = {
814
816
  /** 未知状态 */
815
817
  Unknown: "unknown",
816
818
  /** 等待开奖 */
@@ -821,7 +823,7 @@ const j = {
821
823
  Claimed: "claimed",
822
824
  /** 领奖失败 */
823
825
  Fail: "fail"
824
- }, qr = e.string().enum(v).lock(), ut = {
826
+ }, xr = e.string().enum(v).lock(), lt = {
825
827
  /** 发起组队 */
826
828
  Assemble: "assemble",
827
829
  /** 加入队伍 */
@@ -832,71 +834,71 @@ const j = {
832
834
  ChangeVisibility: "change_visibility",
833
835
  /** 查询组队信息 */
834
836
  Query: "query"
835
- }, xr = e.string().enum(ut).lock(), lt = {
837
+ }, Sr = e.string().enum(lt).lock(), mt = {
836
838
  /** 查询抽奖券 */
837
839
  Query: "query",
838
840
  /** 开奖 */
839
841
  Draw: "draw",
840
842
  /** 领奖 */
841
843
  Claim: "claim"
842
- }, Sr = e.string().enum(lt).lock(), mt = e.string().enum(V(j, "GiftCode", "LotteryTicket")), D = e.object({
844
+ }, Lr = e.string().enum(mt).lock(), dt = e.string().enum(V(j, "GiftCode", "LotteryTicket")), D = e.object({
843
845
  reward_item_id: e.number(),
844
846
  reward_amount: e.number(),
845
847
  reward_item_name: e.string(),
846
848
  reward_item_icon_url: e.string(),
847
849
  reward_item_desc: e.string().optional(),
848
- reward_item_type: mt,
850
+ reward_item_type: dt,
849
851
  reward_item_rating: e.number()
850
- }).lock(), dt = e.object({
852
+ }).lock(), gt = e.object({
851
853
  engage_count: e.number(),
852
854
  rewards: e.array(D)
853
- }).lock(), gt = e.union(
855
+ }).lock(), pt = e.union(
854
856
  e.object({
855
857
  feature_reward_type: e.string().enum("every"),
856
858
  reward_details: e.array(D)
857
859
  }),
858
860
  e.object({
859
861
  feature_reward_type: e.string().enum("regular"),
860
- reward_details: e.array(dt)
862
+ reward_details: e.array(gt)
861
863
  })
862
864
  ).satisfies().lock(), l = e.object({
863
865
  feature_name: e.string(),
864
866
  feature_id: e.number(),
865
867
  description: e.string(),
866
- cycle: tt,
868
+ cycle: nt,
867
869
  limit: e.number(),
868
870
  since: e.number(),
869
871
  until: e.number(),
870
- engage_account: We,
871
- feature_rewards: gt.clone().optional()
872
- }), pt = u.Cashback, _t = e.object({
872
+ engage_account: et,
873
+ feature_rewards: pt.clone().optional()
874
+ }), _t = u.Cashback, bt = e.object({
873
875
  ...l.shape,
874
- feature_type: e.string().enum(pt),
876
+ feature_type: e.string().enum(_t),
875
877
  config: e.object({
876
878
  order_start_time: e.number(),
877
879
  order_end_time: e.number(),
878
880
  claim_rewards_start_time: e.number(),
879
881
  claim_rewards_end_time: e.number()
880
882
  })
881
- }), bt = u.CheckIn, yt = e.object({
883
+ }), yt = u.CheckIn, ft = e.object({
882
884
  ...l.shape,
883
- feature_type: e.string().enum(bt)
884
- }), ft = u.ClaimActivationKey, ht = e.object({
885
+ feature_type: e.string().enum(yt)
886
+ }), ht = u.ClaimActivationKey, wt = e.object({
885
887
  ...l.shape,
886
- feature_type: e.string().enum(ft)
887
- }), wt = u.ClaimRewards, kt = e.object({
888
+ feature_type: e.string().enum(ht)
889
+ }), kt = u.ClaimRewards, vt = e.object({
888
890
  ...l.shape,
889
- feature_type: e.string().enum(wt)
890
- }), vt = u.Comment, Ct = e.object({
891
+ feature_type: e.string().enum(kt)
892
+ }), Ct = u.Comment, Rt = e.object({
891
893
  ...l.shape,
892
- feature_type: e.string().enum(vt),
894
+ feature_type: e.string().enum(Ct),
893
895
  config: e.object({
894
896
  comments: e.array(e.string()),
895
897
  send_rate: e.number()
896
898
  })
897
- }), Rt = u.Follow, Vt = e.object({
899
+ }), Vt = u.Follow, jt = e.object({
898
900
  ...l.shape,
899
- feature_type: e.string().enum(Rt),
901
+ feature_type: e.string().enum(Vt),
900
902
  config: e.object({
901
903
  platform: e.string(),
902
904
  platform_icon: e.string().optional(),
@@ -904,59 +906,59 @@ const j = {
904
906
  qr_code_url: e.string().optional(),
905
907
  platform_desc: e.string().optional()
906
908
  })
907
- }), jt = u.GiftCode, Tt = e.object({
909
+ }), Tt = u.GiftCode, qt = e.object({
908
910
  name: e.string(),
909
911
  icon_url: e.string(),
910
912
  count: e.number()
911
- }), qt = e.object({
913
+ }), xt = e.object({
912
914
  ...l.shape,
913
- feature_type: e.string().enum(jt),
915
+ feature_type: e.string().enum(Tt),
914
916
  config: e.object({
915
- gift_items: e.array(Tt),
917
+ gift_items: e.array(qt),
916
918
  mp_url: e.string().optional(),
917
919
  mp_qrcode_url: e.string().optional()
918
920
  })
919
- }), xt = u.Invite, St = e.object({
921
+ }), St = u.Invite, Lt = e.object({
920
922
  ...l.shape,
921
- feature_type: e.string().enum(xt),
923
+ feature_type: e.string().enum(St),
922
924
  config: e.object({
923
925
  share_url: e.string()
924
926
  })
925
- }), Lt = u.InvitedRegister, Pt = e.object({
927
+ }), Et = u.InvitedRegister, Pt = e.object({
926
928
  ...l.shape,
927
- feature_type: e.string().enum(Lt)
928
- }), Et = e.string().enum(V(j, "GiftCode", "LotteryTicket")), $t = u.Lottery, Ut = e.object({
929
+ feature_type: e.string().enum(Et)
930
+ }), $t = e.string().enum(V(j, "GiftCode", "LotteryTicket")), Ut = u.Lottery, Ft = e.object({
929
931
  reward_item_id: e.number(),
930
932
  reward_item_name: e.string(),
931
- reward_item_type: Et,
933
+ reward_item_type: $t,
932
934
  reward_item_icon_url: e.string(),
933
935
  reward_item_desc: e.string().optional(),
934
936
  reward_amount: e.number(),
935
937
  reward_remaining_stock: e.number()
936
- }), Ft = e.object({
938
+ }), Dt = e.object({
937
939
  ...l.shape,
938
- feature_type: e.string().enum($t),
940
+ feature_type: e.string().enum(Ut),
939
941
  config: e.object({
940
942
  consume_item_id: e.number(),
941
943
  consume_item_name: e.number(),
942
944
  consume_item_icon_url: e.string(),
943
945
  consume_item_count: e.number(),
944
946
  consume_item_desc: e.string().optional(),
945
- rewards: e.array(Ut)
947
+ rewards: e.array(Ft)
946
948
  })
947
- }), Dt = u.LotteryDraw, It = e.object({
949
+ }), It = u.LotteryDraw, At = e.object({
948
950
  ...l.shape,
949
- feature_type: e.string().enum(Dt),
951
+ feature_type: e.string().enum(It),
950
952
  config: e.object({
951
953
  draw_not_before: e.number(),
952
954
  draw_not_after: e.number()
953
955
  })
954
- }), Gt = u.Preregister, At = e.object({
956
+ }), Gt = u.Preregister, Nt = e.object({
955
957
  ...l.shape,
956
958
  feature_type: e.string().enum(Gt)
957
- }), Nt = u.Quest, Ot = e.object({
959
+ }), Ot = u.Quest, Bt = e.object({
958
960
  ...l.shape,
959
- feature_type: e.string().enum(Nt),
961
+ feature_type: e.string().enum(Ot),
960
962
  config: e.object({
961
963
  objective: re,
962
964
  completion_value: e.number(),
@@ -970,38 +972,38 @@ const j = {
970
972
  required_matches: e.number().min(1).optional()
971
973
  }).optional()
972
974
  })
973
- }), Bt = u.Register, Mt = e.object({
975
+ }), Mt = u.Register, Qt = e.object({
974
976
  ...l.shape,
975
- feature_type: e.string().enum(Bt)
976
- }), Qt = u.Share, Kt = e.object({
977
+ feature_type: e.string().enum(Mt)
978
+ }), Kt = u.Share, Ht = e.object({
977
979
  ...l.shape,
978
- feature_type: e.string().enum(Qt),
980
+ feature_type: e.string().enum(Kt),
979
981
  config: e.object({
980
982
  share_platform: e.string(),
981
983
  jump_url: e.string().optional(),
982
984
  icon_url: e.string().optional()
983
985
  })
984
- }), Ht = u.Subscribe, zt = e.object({
986
+ }), zt = u.Subscribe, Jt = e.object({
985
987
  ...l.shape,
986
- feature_type: e.string().enum(Ht),
988
+ feature_type: e.string().enum(zt),
987
989
  config: e.object({
988
990
  weixin_template_ids: e.array(e.string())
989
991
  })
990
- }), Jt = u.Survey, Xt = e.object({
992
+ }), Xt = u.Survey, Yt = e.object({
991
993
  ...l.shape,
992
- feature_type: e.string().enum(Jt),
994
+ feature_type: e.string().enum(Xt),
993
995
  config: e.object({
994
996
  survey_id: e.string(),
995
997
  survey_url: e.string()
996
998
  })
997
- }), Yt = u.Team, Zt = e.object({
999
+ }), Zt = u.Team, Wt = e.object({
998
1000
  ...l.shape,
999
- feature_type: e.string().enum(Yt),
1001
+ feature_type: e.string().enum(Zt),
1000
1002
  config: e.object({
1001
1003
  max_members: e.number().min(1),
1002
1004
  min_members: e.number().min(1)
1003
1005
  })
1004
- }), Wt = u.Vote, en = e.object({
1006
+ }), en = u.Vote, tn = e.object({
1005
1007
  sn: e.string(),
1006
1008
  name: e.string(),
1007
1009
  img_urls: e.array(e.string()).optional(),
@@ -1011,57 +1013,57 @@ const j = {
1011
1013
  amount: e.number(),
1012
1014
  finalists: e.bool(),
1013
1015
  last_vote_time: e.number()
1014
- }), tn = e.object({
1016
+ }), nn = e.object({
1015
1017
  ...l.shape,
1016
- feature_type: e.string().enum(Wt),
1018
+ feature_type: e.string().enum(en),
1017
1019
  config: e.object({
1018
1020
  vote_feature_ids: e.array(e.number()),
1019
1021
  submission_feature_ids: e.array(e.number()),
1020
1022
  finalists_amount: e.number(),
1021
- source: ot,
1022
- options: e.array(en),
1023
+ source: at,
1024
+ options: e.array(tn),
1023
1025
  rewards: e.array(D)
1024
1026
  })
1025
- }), nn = e.union(
1026
- _t,
1027
- yt,
1028
- kt,
1029
- Ct,
1030
- Vt,
1031
- qt,
1032
- St,
1027
+ }), rn = e.union(
1028
+ bt,
1029
+ ft,
1030
+ vt,
1031
+ Rt,
1032
+ jt,
1033
+ xt,
1034
+ Lt,
1033
1035
  Pt,
1034
- Ft,
1035
- It,
1036
+ Dt,
1036
1037
  At,
1037
- Ot,
1038
- Mt,
1039
- Kt,
1040
- zt,
1041
- Xt,
1042
- Zt,
1043
- tn,
1044
- ht
1045
- ).key("feature_type").satisfies(), rn = e.object({
1038
+ Nt,
1039
+ Bt,
1040
+ Qt,
1041
+ Ht,
1042
+ Jt,
1043
+ Yt,
1044
+ Wt,
1045
+ nn,
1046
+ wt
1047
+ ).key("feature_type").satisfies(), on = e.object({
1046
1048
  event_name: e.string(),
1047
1049
  rules: e.string(),
1048
1050
  since: e.number(),
1049
1051
  until: e.number(),
1050
1052
  visit_count: e.number().optional(),
1051
- features: e.array(nn)
1052
- }).lock(), S = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), on = e.object({
1053
+ features: e.array(rn)
1054
+ }).lock(), S = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), an = e.object({
1053
1055
  order_total_amount: S,
1054
1056
  cashback_total_amount: S,
1055
1057
  game_item_count: S
1056
- }), an = e.object({
1057
- activation_key: e.string().disallow("")
1058
1058
  }), sn = e.object({
1059
- gift_code: e.string()
1059
+ activation_key: e.string().disallow("")
1060
1060
  }), cn = e.object({
1061
+ gift_code: e.string()
1062
+ }), un = e.object({
1061
1063
  user_id: e.string(),
1062
1064
  name: e.string().optional(),
1063
1065
  avatar_url: e.string().optional()
1064
- }), un = e.object({
1066
+ }), ln = e.object({
1065
1067
  lottery_count: e.number()
1066
1068
  }), oe = e.object({
1067
1069
  reward_id: e.number(),
@@ -1078,26 +1080,26 @@ const j = {
1078
1080
  event_name: e.string(),
1079
1081
  feature_id: e.number(),
1080
1082
  engagement_id: e.number(),
1081
- feature_type: nt,
1083
+ feature_type: rt,
1082
1084
  receive_time: e.number(),
1083
1085
  // https://kdocs.cn/l/ckWFDcOsYEUA?linkname=merUzJsVYH
1084
1086
  // 后续会格式化为具体的类型,此处的校验需要对应增加
1085
1087
  extra_data: e.record(e.unknown()).optional()
1086
- }), ln = e.string().enum(v.Unknown, v.Pending), mn = e.union(
1088
+ }), mn = e.string().enum(v.Unknown, v.Pending), dn = e.union(
1087
1089
  e.object({
1088
1090
  ticket: e.string(),
1089
- status: ln
1091
+ status: mn
1090
1092
  }),
1091
1093
  e.object({
1092
1094
  ticket: e.string(),
1093
1095
  status: e.string().enum(V(v, "Unknown", "Pending")),
1094
1096
  reward: oe
1095
1097
  })
1096
- ).satisfies(), dn = e.object({
1097
- tickets: e.array(mn)
1098
- }), gn = e.object({
1099
- platforms: e.array(e.string())
1098
+ ).satisfies(), gn = e.object({
1099
+ tickets: e.array(dn)
1100
1100
  }), pn = e.object({
1101
+ platforms: e.array(e.string())
1102
+ }), _n = e.object({
1101
1103
  objective: re,
1102
1104
  progress: e.number(),
1103
1105
  completion_value: e.number().optional(),
@@ -1113,24 +1115,24 @@ const j = {
1113
1115
  })
1114
1116
  )
1115
1117
  }).optional()
1116
- }), _n = e.object({
1117
- platform: e.string()
1118
1118
  }), bn = e.object({
1119
- weixin_openid: e.string()
1119
+ platform: e.string()
1120
1120
  }), yn = e.object({
1121
- serial_number: e.number()
1121
+ weixin_openid: e.string()
1122
1122
  }), fn = e.object({
1123
+ serial_number: e.number()
1124
+ }), hn = e.object({
1123
1125
  team_code: e.string(),
1124
1126
  leader_name: e.string(),
1125
1127
  total_members: e.number()
1126
- }), Lr = e.object({
1128
+ }), Er = e.object({
1127
1129
  is_leader: e.bool(),
1128
1130
  is_myself: e.bool().optional(),
1129
1131
  role_name: e.string(),
1130
1132
  server_name: e.string()
1131
- }), hn = e.object({
1133
+ }), wn = e.object({
1132
1134
  team_code: e.string(),
1133
- visibility: ct,
1135
+ visibility: ut,
1134
1136
  members: e.array(
1135
1137
  e.object({
1136
1138
  is_leader: e.bool(),
@@ -1138,9 +1140,9 @@ const j = {
1138
1140
  server_name: e.string()
1139
1141
  })
1140
1142
  )
1141
- }), wn = e.object({
1142
- option_sn: e.string()
1143
1143
  }), kn = e.object({
1144
+ option_sn: e.string()
1145
+ }), vn = e.object({
1144
1146
  user_id: e.string(),
1145
1147
  name: e.string(),
1146
1148
  avatar_url: e.string(),
@@ -1148,24 +1150,24 @@ const j = {
1148
1150
  video_note: e.number(),
1149
1151
  created_at: e.number()
1150
1152
  }), I = e.union(
1151
- gn,
1153
+ pn,
1154
+ ln,
1155
+ fn,
1152
1156
  un,
1157
+ bn,
1158
+ kn,
1153
1159
  yn,
1160
+ an,
1154
1161
  cn,
1155
- _n,
1156
1162
  wn,
1157
- bn,
1158
- on,
1163
+ _n,
1164
+ gn,
1159
1165
  sn,
1160
- hn,
1161
- pn,
1162
- dn,
1163
- an,
1164
1166
  e.custom(
1165
1167
  "EmptyObject",
1166
1168
  (a) => R(a) && Object.keys(a).length === 0
1167
1169
  )
1168
- ).satisfies().lock(), vn = e.object({
1170
+ ).satisfies().lock(), Cn = e.object({
1169
1171
  reward_id: e.number(),
1170
1172
  reward_item_id: e.number(),
1171
1173
  reward_item_type: ne,
@@ -1178,7 +1180,7 @@ const j = {
1178
1180
  reward_item_rating: e.number(),
1179
1181
  receive_time: e.number(),
1180
1182
  extra_data: e.union(...I.validators, e.record(e.unknown())).satisfies().optional()
1181
- }), Cn = e.object({
1183
+ }), Rn = e.object({
1182
1184
  reward_id: e.number(),
1183
1185
  reward_item_id: e.number(),
1184
1186
  reward_item_name: e.string(),
@@ -1189,7 +1191,7 @@ const j = {
1189
1191
  reward_status: ie,
1190
1192
  reward_source: F,
1191
1193
  extra_data: e.record(e.unknown()).optional()
1192
- }), Rn = e.object({
1194
+ }), Vn = e.object({
1193
1195
  engagement_id: e.number(),
1194
1196
  user_id: e.string(),
1195
1197
  event_id: e.number(),
@@ -1199,15 +1201,15 @@ const j = {
1199
1201
  server_id: e.string().optional(),
1200
1202
  role_id: e.string().optional(),
1201
1203
  created_at: e.number(),
1202
- rewards: e.array(vn).optional()
1203
- }).lock(), Vn = e.object({
1204
+ rewards: e.array(Cn).optional()
1205
+ }).lock(), jn = e.object({
1204
1206
  allowed: e.bool(),
1205
1207
  registered: e.bool()
1206
- }), jn = e.object({
1208
+ }), Tn = e.object({
1207
1209
  feature_id: e.number(),
1208
1210
  can_engage: e.bool(),
1209
1211
  has_unclaimed_rewards: e.bool()
1210
- }), Tn = e.object({
1212
+ }), qn = e.object({
1211
1213
  engagement_id: e.number(),
1212
1214
  engagement: e.object({
1213
1215
  engagement_id: e.number(),
@@ -1215,30 +1217,30 @@ const j = {
1215
1217
  feature_id: e.number(),
1216
1218
  data: I.clone().optional()
1217
1219
  }).optional(),
1218
- rewards: e.array(Cn).optional(),
1220
+ rewards: e.array(Rn).optional(),
1219
1221
  scan: e.bool().optional()
1220
- }), qn = e.object({
1222
+ }), xn = e.object({
1221
1223
  reward_id: e.number(),
1222
1224
  reward_status: U
1223
- }), xn = e.guard(rn), Sn = e.guard(Vn), L = s({ count: e.number() }), Ln = s({ first_visit: e.bool() }), Pn = s({
1224
- engagements: e.union(e.array(kn), e.array(fn))
1225
- }), En = s({
1226
- status: e.array(jn)
1225
+ }), Sn = e.guard(on), Ln = e.guard(jn), L = s({ count: e.number() }), En = s({ first_visit: e.bool() }), Pn = s({
1226
+ engagements: e.union(e.array(vn), e.array(hn))
1227
1227
  }), $n = s({
1228
- engagements: e.array(Rn),
1228
+ status: e.array(Tn)
1229
+ }), Un = s({
1230
+ engagements: e.array(Vn),
1229
1231
  next_token: e.string().optional()
1230
- }), Un = e.guard(Tn), Fn = s({
1231
- claimed_items: e.array(qn)
1232
- }), Dn = s({
1233
- reward_status: U
1232
+ }), Fn = e.guard(qn), Dn = s({
1233
+ claimed_items: e.array(xn)
1234
1234
  }), In = s({
1235
+ reward_status: U
1236
+ }), An = s({
1235
1237
  user_rewards: e.array(oe),
1236
1238
  next_token: e.string().optional()
1237
1239
  }), Gn = s({
1238
1240
  scene: e.string()
1239
- }), An = s({
1240
- params: e.string()
1241
1241
  }), Nn = s({
1242
+ params: e.string()
1243
+ }), On = s({
1242
1244
  img: e.string()
1243
1245
  });
1244
1246
  class Pr {
@@ -1254,7 +1256,7 @@ class Pr {
1254
1256
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
1255
1257
  */
1256
1258
  async verifyMobileAllowed(t, r, n) {
1257
- const { data: i } = await this.req.get("verify-mobile-allowed", Sn, {
1259
+ const { data: i } = await this.req.get("verify-mobile-allowed", Ln, {
1258
1260
  ...n,
1259
1261
  params: { game_id: t, mobile: r }
1260
1262
  });
@@ -1266,7 +1268,7 @@ class Pr {
1266
1268
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
1267
1269
  */
1268
1270
  async getConfig(t) {
1269
- const { data: r } = await this.req.get(`event/${this.event}/event-config`, xn, t);
1271
+ const { data: r } = await this.req.get(`event/${this.event}/event-config`, Sn, t);
1270
1272
  return r;
1271
1273
  }
1272
1274
  /**
@@ -1317,7 +1319,7 @@ class Pr {
1317
1319
  const { data: n, code: i, message: o } = await this.req.post(
1318
1320
  `event/${this.event}/visit`,
1319
1321
  c(t || {}),
1320
- Ln,
1322
+ En,
1321
1323
  r
1322
1324
  );
1323
1325
  return n ?? {
@@ -1336,7 +1338,7 @@ class Pr {
1336
1338
  */
1337
1339
  async getUserFeatureStatus(t, r) {
1338
1340
  if (!await this.token.autoLogin()) return [];
1339
- const { data: n } = await this.req.get("event/user-feature-status", En, {
1341
+ const { data: n } = await this.req.get("event/user-feature-status", $n, {
1340
1342
  ...r,
1341
1343
  message: !1,
1342
1344
  params: c({ ...t, event_id: this.event })
@@ -1356,7 +1358,7 @@ class Pr {
1356
1358
  engagements: [],
1357
1359
  next_token: ""
1358
1360
  };
1359
- const { data: i } = await this.req.get("event/user-engagements", $n, {
1361
+ const { data: i } = await this.req.get("event/user-engagements", Un, {
1360
1362
  ...n,
1361
1363
  params: c({
1362
1364
  max_results: 20,
@@ -1381,19 +1383,19 @@ class Pr {
1381
1383
  */
1382
1384
  async engage(t, r, n, i) {
1383
1385
  await this.token.autoLogin();
1384
- const { data: o, code: p, message: d } = await this.req.post(
1386
+ const { data: o, code: d, message: g } = await this.req.post(
1385
1387
  `event/${this.event}/engage`,
1386
1388
  c({
1387
1389
  feature_id: t,
1388
1390
  engagement: r,
1389
1391
  ...n
1390
1392
  }),
1391
- Un,
1393
+ Fn,
1392
1394
  i
1393
1395
  );
1394
1396
  return o && o.rewards && (o.rewards = o.rewards.map((h) => (h.reward_status = h.reward_status === $.UnclaimedErr ? $.Unclaimed : h.reward_status, h))), o ?? {
1395
- message: d,
1396
- error: p
1397
+ message: g,
1398
+ error: d
1397
1399
  // 没有可领取的激活码
1398
1400
  };
1399
1401
  }
@@ -1406,11 +1408,14 @@ class Pr {
1406
1408
  await this.token.autoLogin();
1407
1409
  const { data: n, code: i, message: o } = await this.req.post(
1408
1410
  "event/claim-rewards",
1409
- c(t),
1410
- Fn,
1411
+ c({
1412
+ ...t,
1413
+ server_id: t.server_id ? +t.server_id : void 0
1414
+ }),
1415
+ Dn,
1411
1416
  r
1412
- ), p = n == null ? void 0 : n.claimed_items;
1413
- return p ? p.map((d) => (d.reward_status = d.reward_status === b.UnclaimedErr ? b.Unclaimed : d.reward_status, d)) : {
1417
+ ), d = n == null ? void 0 : n.claimed_items;
1418
+ return d ? d.map((g) => (g.reward_status = g.reward_status === b.UnclaimedErr ? b.Unclaimed : g.reward_status, g)) : {
1414
1419
  message: o,
1415
1420
  error: i
1416
1421
  };
@@ -1425,7 +1430,7 @@ class Pr {
1425
1430
  const { data: n, code: i, message: o } = await this.req.post(
1426
1431
  "event/claim-weixin-hongbao",
1427
1432
  { reward_id: t },
1428
- Dn,
1433
+ In,
1429
1434
  r
1430
1435
  );
1431
1436
  return n ? (n.reward_status = n.reward_status === b.UnclaimedErr ? b.Unclaimed : n.reward_status, n) : {
@@ -1466,7 +1471,7 @@ class Pr {
1466
1471
  const { data: n } = await this.req.post(
1467
1472
  "event/user-rewards",
1468
1473
  c({ max_results: 20, ...t, event_id: this.event }),
1469
- In,
1474
+ An,
1470
1475
  r
1471
1476
  );
1472
1477
  return {
@@ -1520,7 +1525,7 @@ class Pr {
1520
1525
  * @param scene - 小程序码 scene 值
1521
1526
  */
1522
1527
  async getParamsByQrcodeScene(t, r) {
1523
- const { data: n } = await this.req.get("event/params-by-qrcode-scene", An, {
1528
+ const { data: n } = await this.req.get("event/params-by-qrcode-scene", Nn, {
1524
1529
  ...r,
1525
1530
  params: { scene: t }
1526
1531
  });
@@ -1536,18 +1541,18 @@ class Pr {
1536
1541
  const { data: n } = await this.req.post(
1537
1542
  "event/unlimit-qrcode",
1538
1543
  c(t),
1539
- Nn,
1544
+ On,
1540
1545
  r
1541
1546
  );
1542
1547
  return (n == null ? void 0 : n.img) ?? null;
1543
1548
  }
1544
1549
  }
1545
- const On = {
1550
+ const Bn = {
1546
1551
  /** 所有人均可以发帖 */
1547
1552
  All: "all",
1548
1553
  /** 指定用户可发帖 */
1549
1554
  Limit: "limit"
1550
- }, Bn = e.string().enum(On).lock(), Mn = {
1555
+ }, Mn = e.string().enum(Bn).lock(), Qn = {
1551
1556
  /** 待审核(仅自己可见) */
1552
1557
  Pending: "pending",
1553
1558
  /** 审核通过 */
@@ -1556,14 +1561,14 @@ const On = {
1556
1561
  Failed: "failed",
1557
1562
  /** 嫌疑(仅自己可见) */
1558
1563
  Suspect: "suspect"
1559
- }, ae = e.string().enum(Mn).lock(), Qn = {
1564
+ }, ae = e.string().enum(Qn).lock(), Kn = {
1560
1565
  /** 系统通知 */
1561
1566
  System: "system",
1562
1567
  /** 评论我的 */
1563
1568
  Comment: "comment",
1564
1569
  /** 点赞通知 */
1565
1570
  Like: "like"
1566
- }, Er = e.string().enum(Qn).lock(), g = {
1571
+ }, $r = e.string().enum(Kn).lock(), p = {
1567
1572
  /** 系统通知 */
1568
1573
  System: "system",
1569
1574
  /** 帖子被置顶 */
@@ -1588,22 +1593,22 @@ const On = {
1588
1593
  ReplyLiked: "reply_liked",
1589
1594
  /** 回复被删除 */
1590
1595
  ReplyDeleted: "reply_deleted"
1591
- }, Kn = e.string().enum(g).lock(), se = e.object({
1596
+ }, Hn = e.string().enum(p).lock(), se = e.object({
1592
1597
  forum_id: e.number(),
1593
1598
  icon_url: e.string(),
1594
1599
  name: e.string(),
1595
1600
  tags: e.array(e.string()),
1596
1601
  sort: e.number(),
1597
- mode: Bn,
1602
+ mode: Mn,
1598
1603
  member_ids: e.array(e.number())
1599
- }).lock(), G = e.object({
1604
+ }).lock(), A = e.object({
1600
1605
  topic_id: e.number(),
1601
1606
  cover_url: e.string(),
1602
1607
  name: e.string(),
1603
1608
  description: e.string(),
1604
1609
  tags: e.array(e.string()),
1605
1610
  post_num: e.number()
1606
- }).lock(), A = e.object({
1611
+ }).lock(), G = e.object({
1607
1612
  post_id: e.number(),
1608
1613
  forum: se,
1609
1614
  posted_by: e.string(),
@@ -1617,7 +1622,7 @@ const On = {
1617
1622
  comments_num: e.number(),
1618
1623
  liked: e.bool(),
1619
1624
  image_urls: e.array(e.string()),
1620
- topics: e.array(G),
1625
+ topics: e.array(A),
1621
1626
  event_ids: e.array(e.number()),
1622
1627
  is_pinned: e.bool(),
1623
1628
  is_highlighted: e.bool(),
@@ -1625,7 +1630,7 @@ const On = {
1625
1630
  create_time: e.number()
1626
1631
  }).lock(), ce = e.object({
1627
1632
  err_msg: e.string().optional()
1628
- }).lock(), Hn = e.object({
1633
+ }).lock(), zn = e.object({
1629
1634
  reply_id: e.number(),
1630
1635
  reply_content: e.string().optional(),
1631
1636
  replied_by: e.string(),
@@ -1644,7 +1649,7 @@ const On = {
1644
1649
  content: e.string(),
1645
1650
  like_num: e.number(),
1646
1651
  liked: e.bool(),
1647
- reply_to: Hn,
1652
+ reply_to: zn,
1648
1653
  create_time: e.number()
1649
1654
  }).lock(), C = e.object({
1650
1655
  comment_id: e.number(),
@@ -1666,19 +1671,19 @@ const On = {
1666
1671
  create_time: e.number(),
1667
1672
  status: ae,
1668
1673
  replies: e.array(T).optional()
1669
- }).lock(), zn = e.object({
1674
+ }).lock(), Jn = e.object({
1670
1675
  image_url: e.string(),
1671
1676
  upload_url: e.string(),
1672
1677
  existed: e.bool()
1673
1678
  }).lock(), f = e.object({
1674
1679
  notification_id: e.string(),
1675
- notification_type: Kn,
1680
+ notification_type: Hn,
1676
1681
  is_read: e.bool(),
1677
1682
  create_time: e.number(),
1678
1683
  origin_user_id: e.string(),
1679
1684
  origin_user_name: e.string(),
1680
1685
  origin_user_avatar_url: e.string()
1681
- }).lock(), Jn = e.object({
1686
+ }).lock(), Xn = e.object({
1682
1687
  system_message_subject: e.string(),
1683
1688
  system_message_content: e.string()
1684
1689
  }).lock(), N = e.object({
@@ -1692,78 +1697,78 @@ const On = {
1692
1697
  }).lock(), O = e.object({
1693
1698
  reply_id: e.number(),
1694
1699
  reply_content: e.string()
1695
- }).lock(), Xn = e.object({
1700
+ }).lock(), Yn = e.object({
1696
1701
  ...f.shape,
1697
- ...Jn.shape,
1698
- notification_type: e.string().enum(g.System)
1699
- }), Yn = e.object({
1702
+ ...Xn.shape,
1703
+ notification_type: e.string().enum(p.System)
1704
+ }), Zn = e.object({
1700
1705
  ...f.shape,
1701
1706
  ...N.shape,
1702
1707
  notification_type: e.string().enum(
1703
- g.PostPinned,
1704
- g.PostHighlighted,
1705
- g.PostDeleted,
1706
- g.PostLiked
1708
+ p.PostPinned,
1709
+ p.PostHighlighted,
1710
+ p.PostDeleted,
1711
+ p.PostLiked
1707
1712
  )
1708
- }), Zn = e.object({
1713
+ }), Wn = e.object({
1709
1714
  ...f.shape,
1710
1715
  ...N.shape,
1711
1716
  ...q.shape,
1712
- notification_type: e.string().enum(g.PostCommented)
1713
- }), Wn = e.object({
1717
+ notification_type: e.string().enum(p.PostCommented)
1718
+ }), er = e.object({
1714
1719
  ...f.shape,
1715
1720
  ...q.shape,
1716
1721
  ...O.shape,
1717
- notification_type: e.string().enum(g.CommentReplied)
1718
- }), er = e.object({
1722
+ notification_type: e.string().enum(p.CommentReplied)
1723
+ }), tr = e.object({
1719
1724
  ...f.shape,
1720
1725
  ...q.shape,
1721
1726
  ...N.shape,
1722
- notification_type: e.string().enum(g.CommentLiked, g.CommentDeleted)
1723
- }), tr = e.object({
1727
+ notification_type: e.string().enum(p.CommentLiked, p.CommentDeleted)
1728
+ }), nr = e.object({
1724
1729
  ...f.shape,
1725
1730
  ...O.shape,
1726
- notification_type: e.string().enum(g.ReplyReplied),
1731
+ notification_type: e.string().enum(p.ReplyReplied),
1727
1732
  comment_id: e.number(),
1728
1733
  reply_to_reply_id: e.number(),
1729
1734
  reply_to_reply_content: e.string()
1730
- }), nr = e.object({
1735
+ }), rr = e.object({
1731
1736
  ...f.shape,
1732
1737
  ...O.shape,
1733
1738
  ...q.shape,
1734
- notification_type: e.string().enum(g.ReplyLiked, g.ReplyDeleted)
1735
- }), rr = e.union(
1736
- Xn,
1739
+ notification_type: e.string().enum(p.ReplyLiked, p.ReplyDeleted)
1740
+ }), ir = e.union(
1737
1741
  Yn,
1738
1742
  Zn,
1739
1743
  Wn,
1740
1744
  er,
1741
1745
  tr,
1742
- nr
1743
- ).satisfies().lock(), ir = s({ forums: e.array(se) }), or = s({ topics: e.array(G) }), ar = s({ topic: G }), sr = s({ post: A }), z = s({
1744
- posts: e.array(A),
1746
+ nr,
1747
+ rr
1748
+ ).satisfies().lock(), or = s({ forums: e.array(se) }), ar = s({ topics: e.array(A) }), sr = s({ topic: A }), cr = s({ post: G }), z = s({
1749
+ posts: e.array(G),
1745
1750
  next_token: e.string().optional()
1746
- }), cr = s({ post: A, antispam: ce }), ur = s({
1751
+ }), ur = s({ post: G, antispam: ce }), lr = s({
1747
1752
  replies: e.array(T),
1748
1753
  next_token: e.string().optional()
1749
- }), lr = s({ reply: T }), mr = s({
1754
+ }), mr = s({ reply: T }), dr = s({
1750
1755
  reply: T.clone().optional(),
1751
1756
  antispam: ce.clone().optional()
1752
- }), dr = s({ comment: C }), gr = s({
1757
+ }), gr = s({ comment: C }), pr = s({
1753
1758
  comments: e.array(C),
1754
1759
  next_token: e.string().optional()
1755
- }), pr = s({
1760
+ }), _r = s({
1756
1761
  comment: C.clone().optional(),
1757
1762
  antispam: C.clone().optional()
1758
- }), _r = e.guard(zn), br = s({
1759
- notifications: e.array(rr),
1763
+ }), br = e.guard(Jn), yr = s({
1764
+ notifications: e.array(ir),
1760
1765
  next_token: e.string().optional()
1761
- }), yr = s({
1766
+ }), fr = s({
1762
1767
  system: e.number(),
1763
1768
  comment: e.number(),
1764
1769
  like: e.number()
1765
1770
  });
1766
- class $r {
1771
+ class Ur {
1767
1772
  constructor(t) {
1768
1773
  m(this, "token");
1769
1774
  m(this, "req");
@@ -1775,7 +1780,7 @@ class $r {
1775
1780
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
1776
1781
  */
1777
1782
  async getForums(t) {
1778
- const { data: r } = await this.req.get("community/forums", ir, t);
1783
+ const { data: r } = await this.req.get("community/forums", or, t);
1779
1784
  return (r == null ? void 0 : r.forums) || [];
1780
1785
  }
1781
1786
  /**
@@ -1784,7 +1789,7 @@ class $r {
1784
1789
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
1785
1790
  */
1786
1791
  async getTopics(t) {
1787
- const { data: r } = await this.req.get("community/topics", or, t);
1792
+ const { data: r } = await this.req.get("community/topics", ar, t);
1788
1793
  return (r == null ? void 0 : r.topics) || [];
1789
1794
  }
1790
1795
  /**
@@ -1793,7 +1798,7 @@ class $r {
1793
1798
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
1794
1799
  */
1795
1800
  async getTopic(t, r) {
1796
- const { data: n, code: i } = await this.req.get("community/topic", ar, {
1801
+ const { data: n, code: i } = await this.req.get("community/topic", sr, {
1797
1802
  ...r,
1798
1803
  params: { topic_id: t }
1799
1804
  });
@@ -1820,13 +1825,13 @@ class $r {
1820
1825
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
1821
1826
  */
1822
1827
  async getPinnedPosts(t, r, n, i) {
1823
- const { data: o, code: p, message: d } = await this.req.get("community/pinned-posts", z, {
1828
+ const { data: o, code: d, message: g } = await this.req.get("community/pinned-posts", z, {
1824
1829
  ...i,
1825
1830
  params: c({ forum_id: t, max_results: r, next_token: n })
1826
1831
  });
1827
1832
  return o ?? {
1828
- message: d,
1829
- error: p
1833
+ message: g,
1834
+ error: d
1830
1835
  };
1831
1836
  }
1832
1837
  /**
@@ -1835,7 +1840,7 @@ class $r {
1835
1840
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
1836
1841
  */
1837
1842
  async getPost(t, r) {
1838
- const { data: n, code: i, message: o } = await this.req.get("community/post", sr, {
1843
+ const { data: n, code: i, message: o } = await this.req.get("community/post", cr, {
1839
1844
  ...r,
1840
1845
  params: { post_id: t }
1841
1846
  });
@@ -1853,7 +1858,7 @@ class $r {
1853
1858
  const { data: n, code: i, message: o } = await this.req.post(
1854
1859
  "community/post",
1855
1860
  c(t),
1856
- cr,
1861
+ ur,
1857
1862
  r
1858
1863
  );
1859
1864
  return n ?? {
@@ -1867,7 +1872,7 @@ class $r {
1867
1872
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
1868
1873
  */
1869
1874
  async getComments(t, r) {
1870
- const { data: n, code: i, message: o } = await this.req.get("community/comments", gr, {
1875
+ const { data: n, code: i, message: o } = await this.req.get("community/comments", pr, {
1871
1876
  ...r,
1872
1877
  params: c(t)
1873
1878
  });
@@ -1882,7 +1887,7 @@ class $r {
1882
1887
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
1883
1888
  */
1884
1889
  async getComment(t, r) {
1885
- const { data: n, code: i, message: o } = await this.req.get("community/comment", dr, {
1890
+ const { data: n, code: i, message: o } = await this.req.get("community/comment", gr, {
1886
1891
  ...r,
1887
1892
  params: { comment_id: t }
1888
1893
  });
@@ -1901,7 +1906,7 @@ class $r {
1901
1906
  const { data: n, code: i, message: o } = await this.req.post(
1902
1907
  "community/comment",
1903
1908
  c(t),
1904
- pr,
1909
+ _r,
1905
1910
  r
1906
1911
  );
1907
1912
  return n ?? {
@@ -1915,7 +1920,7 @@ class $r {
1915
1920
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
1916
1921
  */
1917
1922
  async getReplies(t, r) {
1918
- const { data: n } = await this.req.get("community/replies", ur, {
1923
+ const { data: n } = await this.req.get("community/replies", lr, {
1919
1924
  ...r,
1920
1925
  params: c({ max_results: 20, ...t })
1921
1926
  });
@@ -1930,7 +1935,7 @@ class $r {
1930
1935
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
1931
1936
  */
1932
1937
  async getReply(t, r) {
1933
- const { data: n, code: i, message: o } = await this.req.get("community/reply", lr, {
1938
+ const { data: n, code: i, message: o } = await this.req.get("community/reply", mr, {
1934
1939
  ...r,
1935
1940
  params: { reply_id: t }
1936
1941
  });
@@ -1949,7 +1954,7 @@ class $r {
1949
1954
  const { data: n, code: i, message: o } = await this.req.post(
1950
1955
  "community/reply",
1951
1956
  c(t),
1952
- mr,
1957
+ dr,
1953
1958
  r
1954
1959
  );
1955
1960
  return n ?? {
@@ -2000,7 +2005,7 @@ class $r {
2000
2005
  */
2001
2006
  async getMediaPresignedUrl(t, r) {
2002
2007
  await this.token.autoLogin();
2003
- const { data: n } = await this.req.get("community/media-presign-url", _r, {
2008
+ const { data: n } = await this.req.get("community/media-presign-url", br, {
2004
2009
  ...r,
2005
2010
  params: t
2006
2011
  });
@@ -2015,7 +2020,7 @@ class $r {
2015
2020
  */
2016
2021
  async getNotifications(t, r) {
2017
2022
  await this.token.autoLogin();
2018
- const { data: n } = await this.req.get("community/notifications", br, {
2023
+ const { data: n } = await this.req.get("community/notifications", yr, {
2019
2024
  ...r,
2020
2025
  params: c({ max_results: 20, ...t })
2021
2026
  });
@@ -2033,7 +2038,7 @@ class $r {
2033
2038
  if (!await this.token.autoLogin()) return null;
2034
2039
  const { data: r } = await this.req.get(
2035
2040
  "community/unread-notifications-count",
2036
- yr,
2041
+ fr,
2037
2042
  t
2038
2043
  );
2039
2044
  return r;
@@ -2049,17 +2054,17 @@ class $r {
2049
2054
  return n;
2050
2055
  }
2051
2056
  }
2052
- const fr = s({
2057
+ const hr = s({
2053
2058
  nonce_str: e.string(),
2054
2059
  timestamp: e.number(),
2055
2060
  signature: e.string()
2056
2061
  });
2057
- var hr = /* @__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))(hr || {});
2058
- function P(a) {
2062
+ var wr = /* @__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))(wr || {});
2063
+ function E(a) {
2059
2064
  return R(a, "open_id", "union_id", "weixin_token");
2060
2065
  }
2061
2066
  const J = "wx_login_cache";
2062
- class Ur {
2067
+ class Fr {
2063
2068
  /**
2064
2069
  * 创建微信相关功能接口
2065
2070
  *
@@ -2093,8 +2098,8 @@ class Ur {
2093
2098
  const t = this.token.storage.get(J);
2094
2099
  if (!t)
2095
2100
  return null;
2096
- const r = be(t);
2097
- return P(r) ? (this.token.weixinToken = r.weixin_token, await this.token.autoLogin(), r) : null;
2101
+ const r = ye(t);
2102
+ return E(r) ? (this.token.weixinToken = r.weixin_token, await this.token.autoLogin(), r) : null;
2098
2103
  }
2099
2104
  /**
2100
2105
  * 小程序页面微信静默登录,获取 weixinToken / open_id / union_id。
@@ -2119,13 +2124,16 @@ class Ur {
2119
2124
  const r = await this.getLoginCache();
2120
2125
  if (r)
2121
2126
  return r;
2122
- const n = await he(), { data: i, code: o } = await this.req.post(
2127
+ const n = await we(), { data: i, code: o, message: d } = await this.req.post(
2123
2128
  "weixin/login",
2124
2129
  { code: n, appid: this.appid },
2125
- P,
2130
+ E,
2126
2131
  { ...t, message: !1 }
2127
2132
  );
2128
- return i && (this.token.weixinToken = i.weixin_token, this.token.storage.set(J, JSON.stringify(i)), await this.token.autoLogin()), i ?? { error: o };
2133
+ return i && (this.token.weixinToken = i.weixin_token, this.token.storage.set(J, JSON.stringify(i)), await this.token.autoLogin()), i ?? {
2134
+ message: d,
2135
+ error: o
2136
+ };
2129
2137
  }
2130
2138
  /**
2131
2139
  * 在微信内嵌网页中调用微信公众号授权登录【暂未启用】
@@ -2144,25 +2152,30 @@ class Ur {
2144
2152
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2145
2153
  */
2146
2154
  async webLogin(t = "snsapi_userinfo", r) {
2147
- const n = E("code"), i = Date.now(), o = +E("state");
2155
+ const n = P("code"), i = Date.now(), o = +P("state");
2148
2156
  if (!n || !o || o < i - 1e3 * 60 * 5 || o > i) {
2149
- const ue = B(["code", "state"]);
2157
+ const le = B(["code", "state"]);
2150
2158
  location.replace(
2151
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ue)}&response_type=code&scope=${t}&state=${i}#wechat_redirect`
2159
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${i}#wechat_redirect`
2152
2160
  );
2153
2161
  return;
2154
2162
  }
2155
2163
  if (/^100\d{2}$/.test(n))
2156
- return { error: n };
2157
- const p = B(["code", "state"]);
2158
- "replaceState" in history && history.replaceState({}, "", p);
2159
- const { data: d, code: h } = await this.req.post(
2160
- "weixin/login",
2161
- { code: n, appid: this.appid },
2162
- P,
2163
- r
2164
- );
2165
- return d && (this.token.weixinToken = d.weixin_token, await this.token.autoLogin()), d ?? { error: h };
2164
+ return {
2165
+ message: "Error: " + n,
2166
+ error: n
2167
+ };
2168
+ const d = B(["code", "state"]);
2169
+ "replaceState" in history && history.replaceState({}, "", d);
2170
+ const {
2171
+ data: g,
2172
+ code: h,
2173
+ message: ue
2174
+ } = await this.req.post("weixin/login", { code: n, appid: this.appid }, E, r);
2175
+ return g && (this.token.weixinToken = g.weixin_token, await this.token.autoLogin()), g ?? {
2176
+ message: ue,
2177
+ error: h
2178
+ };
2166
2179
  }
2167
2180
  /**
2168
2181
  * 关联游戏账号,无返回值,全程静默
@@ -2177,10 +2190,13 @@ class Ur {
2177
2190
  * @param gameCode 从游戏内跳转至小程序时,通过请求参数 query 携带的 game_code,如果值为空则跳过不处理
2178
2191
  */
2179
2192
  async linkPlayer(t, r, n) {
2180
- !t || !r || await this.req.post("weixin/link-player", { weixin_token: t, game_code: r }, null, {
2193
+ if (!t || !r)
2194
+ return !1;
2195
+ const { ok: i } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: r }, null, {
2181
2196
  ...n,
2182
2197
  message: !1
2183
2198
  });
2199
+ return i;
2184
2200
  }
2185
2201
  /**
2186
2202
  * 获取集成 JSSDK 所需的签名信息
@@ -2188,7 +2204,7 @@ class Ur {
2188
2204
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2189
2205
  */
2190
2206
  async getJSSDKConfig(t) {
2191
- const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign", fr, {
2207
+ const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign", hr, {
2192
2208
  ...t,
2193
2209
  params: {
2194
2210
  appid: this.appid,
@@ -2205,145 +2221,145 @@ class Ur {
2205
2221
  }
2206
2222
  export {
2207
2223
  ce as AntispamValidator,
2208
- Cr as AuthToken,
2209
- on as CashbackEngagementDataValidator,
2210
- an as ClaimActivationKeyEngagementDataValidator,
2224
+ Rr as AuthToken,
2225
+ an as CashbackEngagementDataValidator,
2226
+ sn as ClaimActivationKeyEngagementDataValidator,
2211
2227
  b as ClaimRewardStatus,
2212
2228
  U as ClaimRewardStatusValidator,
2213
- qn as ClaimedItemValidator,
2229
+ xn as ClaimedItemValidator,
2214
2230
  Z as ClubAddressValidator,
2215
- Vr as ClubApi,
2231
+ jr as ClubApi,
2216
2232
  W as ClubBenefitSummaryValidator,
2217
2233
  Ge as ClubBenefitValidator,
2218
- je as ClubCreditChangeScene,
2219
- Te as ClubCreditChangeSceneValidator,
2220
- Re as ClubCreditChangeType,
2221
- Ve as ClubCreditChangeTypeValidator,
2222
- Ie as ClubCreditLogValidator,
2223
- Le as ClubGlobalConfigValidator,
2224
- qe as ClubItemType,
2234
+ Te as ClubCreditChangeScene,
2235
+ qe as ClubCreditChangeSceneValidator,
2236
+ Ve as ClubCreditChangeType,
2237
+ je as ClubCreditChangeTypeValidator,
2238
+ Ae as ClubCreditLogValidator,
2239
+ Ee as ClubGlobalConfigValidator,
2240
+ xe as ClubItemType,
2225
2241
  X as ClubItemTypeValidator,
2226
2242
  Pe as ClubPlayerValidator,
2227
2243
  ee as ClubProductValidator,
2228
- xe as ClubRedemptionStatus,
2229
- Se as ClubRedemptionStatusValidator,
2230
- De as ClubUserCreditValidator,
2231
- Fe as ClubUserProfileValidator,
2232
- kn as CommentEngagementValidator,
2244
+ Se as ClubRedemptionStatus,
2245
+ Le as ClubRedemptionStatusValidator,
2246
+ Ie as ClubUserCreditValidator,
2247
+ De as ClubUserProfileValidator,
2248
+ vn as CommentEngagementValidator,
2233
2249
  C as CommentValidator,
2234
- $r as CommunityApi,
2235
- Ze as EngageAccountType,
2236
- We as EngageAccountTypeValidator,
2237
- Tn as EngageResponseValidator,
2238
- Cn as EngageRewardValidator,
2250
+ Ur as CommunityApi,
2251
+ We as EngageAccountType,
2252
+ et as EngageAccountTypeValidator,
2253
+ qn as EngageResponseValidator,
2254
+ Rn as EngageRewardValidator,
2239
2255
  Pr as EventApi,
2240
- rn as EventConfigValidator,
2241
- _t as EventFeatureConfigOfCashbackValidator,
2242
- yt as EventFeatureConfigOfCheckInValidator,
2243
- ht as EventFeatureConfigOfClaimActivationKeyValidator,
2244
- kt as EventFeatureConfigOfClaimRewardsValidator,
2245
- Ct as EventFeatureConfigOfCommentValidator,
2246
- Vt as EventFeatureConfigOfFollowValidator,
2247
- qt as EventFeatureConfigOfGiftCodeValidator,
2248
- St as EventFeatureConfigOfInviteValidator,
2256
+ on as EventConfigValidator,
2257
+ bt as EventFeatureConfigOfCashbackValidator,
2258
+ ft as EventFeatureConfigOfCheckInValidator,
2259
+ wt as EventFeatureConfigOfClaimActivationKeyValidator,
2260
+ vt as EventFeatureConfigOfClaimRewardsValidator,
2261
+ Rt as EventFeatureConfigOfCommentValidator,
2262
+ jt as EventFeatureConfigOfFollowValidator,
2263
+ xt as EventFeatureConfigOfGiftCodeValidator,
2264
+ Lt as EventFeatureConfigOfInviteValidator,
2249
2265
  Pt as EventFeatureConfigOfInvitedRegisterValidator,
2250
- It as EventFeatureConfigOfLotteryDrawValidator,
2251
- Ft as EventFeatureConfigOfLotteryValidator,
2252
- At as EventFeatureConfigOfPreregisterValidator,
2253
- Ot as EventFeatureConfigOfQuestValidator,
2254
- Mt as EventFeatureConfigOfRegisterValidator,
2255
- Kt as EventFeatureConfigOfShareValidator,
2256
- zt as EventFeatureConfigOfSubscribeValidator,
2257
- Xt as EventFeatureConfigOfSurveyValidator,
2258
- Zt as EventFeatureConfigOfTeamValidator,
2259
- tn as EventFeatureConfigOfVoteValidator,
2260
- nn as EventFeatureConfigValidator,
2261
- et as EventPeriodType,
2262
- tt as EventPeriodTypeValidator,
2266
+ At as EventFeatureConfigOfLotteryDrawValidator,
2267
+ Dt as EventFeatureConfigOfLotteryValidator,
2268
+ Nt as EventFeatureConfigOfPreregisterValidator,
2269
+ Bt as EventFeatureConfigOfQuestValidator,
2270
+ Qt as EventFeatureConfigOfRegisterValidator,
2271
+ Ht as EventFeatureConfigOfShareValidator,
2272
+ Jt as EventFeatureConfigOfSubscribeValidator,
2273
+ Yt as EventFeatureConfigOfSurveyValidator,
2274
+ Wt as EventFeatureConfigOfTeamValidator,
2275
+ nn as EventFeatureConfigOfVoteValidator,
2276
+ rn as EventFeatureConfigValidator,
2277
+ tt as EventPeriodType,
2278
+ nt as EventPeriodTypeValidator,
2263
2279
  D as EventRewardItemConfigValidator,
2264
- Ne as ExtraGameRewardValidator,
2265
- Ae as ExtraPhysicalShipmentValidator,
2266
- gt as FeatureRewardValidator,
2280
+ Oe as ExtraGameRewardValidator,
2281
+ Ne as ExtraPhysicalShipmentValidator,
2282
+ pt as FeatureRewardValidator,
2267
2283
  u as FeatureType,
2268
- nt as FeatureTypeValidator,
2269
- On as ForumMode,
2270
- Bn as ForumModeValidator,
2284
+ rt as FeatureTypeValidator,
2285
+ Bn as ForumMode,
2286
+ Mn as ForumModeValidator,
2271
2287
  se as ForumValidator,
2272
2288
  j as GamerItemType,
2273
2289
  te as GamerItemTypeValidator,
2274
- ve as Gender,
2275
- Ce as GenderValidator,
2276
- sn as GiftCodeEngagementDataValidator,
2277
- cn as InviteEngagementDataValidator,
2278
- lt as LotteryDrawAction,
2279
- Sr as LotteryDrawActionValidator,
2280
- dn as LotteryDrawEngagementDataValidator,
2281
- un as LotteryEngagementDataValidator,
2290
+ Ce as Gender,
2291
+ Re as GenderValidator,
2292
+ cn as GiftCodeEngagementDataValidator,
2293
+ un as InviteEngagementDataValidator,
2294
+ mt as LotteryDrawAction,
2295
+ Lr as LotteryDrawActionValidator,
2296
+ gn as LotteryDrawEngagementDataValidator,
2297
+ ln as LotteryEngagementDataValidator,
2282
2298
  v as LotteryTicketStatus,
2283
- qr as LotteryTicketStatusValidator,
2299
+ xr as LotteryTicketStatusValidator,
2284
2300
  f as NotificationBaseValidator,
2285
- Qn as NotificationCategory,
2286
- Er as NotificationCategoryValidator,
2287
- Wn as NotificationCommentReplyValidator,
2288
- er as NotificationCommentValidator,
2301
+ Kn as NotificationCategory,
2302
+ $r as NotificationCategoryValidator,
2303
+ er as NotificationCommentReplyValidator,
2304
+ tr as NotificationCommentValidator,
2289
2305
  q as NotificationPayloadCommentValidator,
2290
2306
  N as NotificationPayloadPostValidator,
2291
2307
  O as NotificationPayloadReplyValidator,
2292
- Jn as NotificationPayloadSystemValidator,
2293
- Zn as NotificationPostCommentValidator,
2294
- Yn as NotificationPostValidator,
2295
- tr as NotificationReplyRepliedValidator,
2296
- nr as NotificationReplyValidator,
2297
- Xn as NotificationSystemValidator,
2298
- g as NotificationType,
2299
- Kn as NotificationTypeValidator,
2300
- rr as NotificationValidator,
2301
- Ue as PlayerRoleCardValidator,
2308
+ Xn as NotificationPayloadSystemValidator,
2309
+ Wn as NotificationPostCommentValidator,
2310
+ Zn as NotificationPostValidator,
2311
+ nr as NotificationReplyRepliedValidator,
2312
+ rr as NotificationReplyValidator,
2313
+ Yn as NotificationSystemValidator,
2314
+ p as NotificationType,
2315
+ Hn as NotificationTypeValidator,
2316
+ ir as NotificationValidator,
2317
+ Fe as PlayerRoleCardValidator,
2302
2318
  Y as PlayerRoleValidator,
2303
- Mn as PostStatus,
2319
+ Qn as PostStatus,
2304
2320
  ae as PostStatusValidator,
2305
- A as PostValidator,
2306
- gn as PreregisterEngagementDataValidator,
2307
- zn as PresignedUrlResponseValidator,
2308
- pn as QuestEngagementDataValidator,
2309
- rt as QuestObjective,
2321
+ G as PostValidator,
2322
+ pn as PreregisterEngagementDataValidator,
2323
+ Jn as PresignedUrlResponseValidator,
2324
+ _n as QuestEngagementDataValidator,
2325
+ it as QuestObjective,
2310
2326
  re as QuestObjectiveValidator,
2311
- Rr as RedeemParamsValidator,
2312
- Oe as RedemptionValidator,
2313
- dt as RegularRewardValidator,
2314
- Hn as ReplyToValidator,
2327
+ Vr as RedeemParamsValidator,
2328
+ Be as RedemptionValidator,
2329
+ gt as RegularRewardValidator,
2330
+ zn as ReplyToValidator,
2315
2331
  T as ReplyValidator,
2316
- jr as RewardItemType,
2332
+ Tr as RewardItemType,
2317
2333
  ne as RewardItemTypeValidator,
2318
- at as RewardSource,
2334
+ st as RewardSource,
2319
2335
  F as RewardSourceValidator,
2320
2336
  _ as RewardStatus,
2321
2337
  $ as RewardStatusSuffix,
2322
2338
  ie as RewardStatusSuffixValidator,
2323
- Tr as RewardStatusValidator,
2324
- vn as RewardValidator,
2325
- $e as RoleBaseInfoValidator,
2326
- Ee as ServerBaseInfoValidator,
2327
- _n as ShareEngagementDataValidator,
2328
- yn as SurveyEngagementDataValidator,
2329
- ut as TeamAction,
2330
- xr as TeamActionValidator,
2331
- hn as TeamEngagementDataValidator,
2332
- fn as TeamEngagementValidator,
2333
- Lr as TeamMemberValidator,
2334
- st as TeamVisibility,
2335
- ct as TeamVisibilityValidator,
2336
- G as TopicValidator,
2339
+ qr as RewardStatusValidator,
2340
+ Cn as RewardValidator,
2341
+ Ue as RoleBaseInfoValidator,
2342
+ $e as ServerBaseInfoValidator,
2343
+ bn as ShareEngagementDataValidator,
2344
+ fn as SurveyEngagementDataValidator,
2345
+ lt as TeamAction,
2346
+ Sr as TeamActionValidator,
2347
+ wn as TeamEngagementDataValidator,
2348
+ hn as TeamEngagementValidator,
2349
+ Er as TeamMemberValidator,
2350
+ ct as TeamVisibility,
2351
+ ut as TeamVisibilityValidator,
2352
+ A as TopicValidator,
2337
2353
  I as UserEngagementDataValidator,
2338
- Rn as UserEngagementValidator,
2339
- jn as UserFeatureStatusValidator,
2354
+ Vn as UserEngagementValidator,
2355
+ Tn as UserFeatureStatusValidator,
2340
2356
  oe as UserRewardValidator,
2341
- Vn as VerifyMobileResultValidator,
2342
- wn as VoteEngagementDataValidator,
2343
- it as VoteOptionSource,
2344
- ot as VoteOptionSourceValidator,
2345
- Ur as WeixinApi,
2346
- bn as WeixinSubscribeEngagementDataValidator,
2347
- hr as WeixinWebLoginErrorCode,
2348
- fr as isWeixinSignResponse
2357
+ jn as VerifyMobileResultValidator,
2358
+ kn as VoteEngagementDataValidator,
2359
+ ot as VoteOptionSource,
2360
+ at as VoteOptionSourceValidator,
2361
+ Fr as WeixinApi,
2362
+ yn as WeixinSubscribeEngagementDataValidator,
2363
+ wr as WeixinWebLoginErrorCode,
2364
+ hr as isWeixinSignResponse
2349
2365
  };