@seayoo-web/gamer-api 2.12.4 → 2.12.6

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,18 +1,18 @@
1
- import { isComboWebView as me } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as k, supportWx as b, useConsole as de, usePromise as ge, pruneURL as pe, supportWindow as _e, queryString as L, pruneObject as c, omitFields as P, parseJSON as be, removePara as G } from "@seayoo-web/utils";
1
+ import { isComboWebView as de } from "@seayoo-web/combo-webview";
2
+ import { isPlainObject as k, supportWx as b, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as L, pruneObject as c, omitFields as P, parseJSON as ye, removePara as G } from "@seayoo-web/utils";
3
3
  import { v as e, objectGuard as s } from "@seayoo-web/validator";
4
- function ye(i) {
4
+ function he(i) {
5
5
  return k(i, "gamer_token") && typeof i.gamer_token == "string";
6
6
  }
7
7
  function O(i) {
8
8
  return k(i);
9
9
  }
10
- const j = de("GamerApiSDK");
11
- function he(i) {
10
+ const j = ge("GamerApiSDK");
11
+ function fe(i) {
12
12
  return /^\/[a-z\d-]+$/.test(i);
13
13
  }
14
- async function fe() {
15
- const { promise: i, resolve: t } = ge();
14
+ async function we() {
15
+ const { promise: i, resolve: t } = pe();
16
16
  return wx.login({
17
17
  success(n) {
18
18
  t(n.code);
@@ -22,7 +22,7 @@ async function fe() {
22
22
  }
23
23
  }), await i;
24
24
  }
25
- const we = {
25
+ const ke = {
26
26
  get(i) {
27
27
  return localStorage.getItem(i) || "";
28
28
  },
@@ -32,7 +32,7 @@ const we = {
32
32
  remove(i) {
33
33
  localStorage.removeItem(i);
34
34
  }
35
- }, ke = {
35
+ }, ve = {
36
36
  get(i) {
37
37
  try {
38
38
  if (b()) return wx.getStorageSync(i) || "";
@@ -56,7 +56,7 @@ const we = {
56
56
  }
57
57
  }
58
58
  }, h = "gamer_token";
59
- class ta {
59
+ class ra {
60
60
  $NetRequest;
61
61
  $idToken = "";
62
62
  $weixinToken = "";
@@ -64,8 +64,8 @@ class ta {
64
64
  req;
65
65
  storage;
66
66
  constructor(t, n) {
67
- this.storage = b() ? ke : we;
68
- const r = he(t) ? t : `https://${pe(t)}`;
67
+ this.storage = b() ? ve : ke;
68
+ const r = fe(t) ? t : `https://${_e(t)}`;
69
69
  if (this.$NetRequest = n, this.req = n({
70
70
  baseURL: `${r}/v1`,
71
71
  timeout: 1e4,
@@ -86,9 +86,9 @@ class ta {
86
86
  requestTransformer: (a) => {
87
87
  this.$gamerToken && (a.headers.Authorization = `Bearer ${this.$gamerToken}`);
88
88
  }
89
- }), _e()) {
89
+ }), be()) {
90
90
  const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = L("gamer_token");
91
- (me() || a && o) && (this.$gamerToken = o);
91
+ (de() || a && o) && (this.$gamerToken = o);
92
92
  }
93
93
  this.$gamerToken || this.loadGamerTokenCache();
94
94
  }
@@ -171,7 +171,7 @@ class ta {
171
171
  const { code: n, data: r } = await this.req.post(
172
172
  "login-with-token",
173
173
  c({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
174
- ye,
174
+ he,
175
175
  {
176
176
  message: !1,
177
177
  cacheTTL: 300,
@@ -213,21 +213,21 @@ class ta {
213
213
  return n;
214
214
  }
215
215
  }
216
- const ve = {
216
+ const Ve = {
217
217
  /** 未知 */
218
218
  Unknown: "unknown",
219
219
  /** 男 */
220
220
  Male: "male",
221
221
  /** 女 */
222
222
  Female: "female"
223
- }, Ve = e.string().enum(ve).lock(), Ce = {
223
+ }, Ce = e.string().enum(Ve).lock(), Re = {
224
224
  /** 积分增加 */
225
225
  Increase: "increase",
226
226
  /** 积分减少 */
227
227
  Decrease: "decrease",
228
228
  /** 积分过期 */
229
229
  Expired: "expired"
230
- }, Re = e.string().enum(Ce).lock(), je = {
230
+ }, je = e.string().enum(Re).lock(), Te = {
231
231
  /** 游戏内购买 */
232
232
  Order: "order",
233
233
  /** 游戏内消耗 */
@@ -240,21 +240,21 @@ const ve = {
240
240
  Admin: "admin",
241
241
  /** 运营活动 */
242
242
  Event: "event"
243
- }, Te = e.string().enum(je).lock(), qe = {
243
+ }, qe = e.string().enum(Te).lock(), xe = {
244
244
  /** 游戏内奖励 */
245
245
  GameReward: "game_reward",
246
246
  /** 实物商品 */
247
247
  Physical: "physical",
248
248
  /** 虚拟商品 */
249
249
  Virtual: "virtual"
250
- }, H = e.string().enum(qe).lock(), xe = {
250
+ }, z = e.string().enum(xe).lock(), Se = {
251
251
  /** 待发放 */
252
252
  Pending: "pending",
253
253
  /** 已发放 */
254
254
  Issued: "issued",
255
255
  /** 发放失败 */
256
256
  Failed: "failed"
257
- }, Se = e.string().enum(xe).lock(), Le = e.object({
257
+ }, Le = e.string().enum(Se).lock(), Pe = e.object({
258
258
  default_avatar_url: e.string(),
259
259
  official_avatar_urls: e.array(e.string()),
260
260
  default_nickname: e.string(),
@@ -272,7 +272,7 @@ const ve = {
272
272
  exp_description: e.string(),
273
273
  credit_description: e.string(),
274
274
  send_role_mail_rate_limit: e.number()
275
- }).lock(), Pe = e.object({
275
+ }).lock(), Ee = e.object({
276
276
  member_id: e.string(),
277
277
  player_id: e.string(),
278
278
  exp: e.number(),
@@ -281,19 +281,19 @@ const ve = {
281
281
  credit_expiring: e.number(),
282
282
  level_change_time: e.number(),
283
283
  level_expire_time: e.number()
284
- }).lock(), Ee = e.object({
284
+ }).lock(), $e = e.object({
285
285
  server_id: e.string(),
286
286
  server_name: e.string()
287
- }).lock(), $e = e.object({
287
+ }).lock(), Ue = e.object({
288
288
  role_id: e.string(),
289
289
  role_name: e.string()
290
- }).lock(), z = e.object({
290
+ }).lock(), J = e.object({
291
+ ...Ue.shape,
291
292
  ...$e.shape,
292
- ...Ee.shape,
293
293
  role_level: e.number(),
294
294
  last_login_time: e.number()
295
- }).lock(), Ue = e.object({
296
- ...z.shape,
295
+ }).lock(), Fe = e.object({
296
+ ...J.shape,
297
297
  /** 角色战力 */
298
298
  role_fighting: e.number(),
299
299
  /** 宗门 ID */
@@ -302,13 +302,13 @@ const ve = {
302
302
  kin_name: e.string().optional(),
303
303
  /** 宗门职位 */
304
304
  kin_position: e.string().optional()
305
- }).lock(), Fe = e.object({
305
+ }).lock(), De = e.object({
306
306
  name: e.string(),
307
307
  avatar_url: e.string(),
308
308
  bio: e.string(),
309
- gender: Ve,
309
+ gender: Ce,
310
310
  birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
311
- }).lock(), J = e.object({
311
+ }).lock(), Z = e.object({
312
312
  address_id: e.number(),
313
313
  recipient: e.string(),
314
314
  mobile: e.string(),
@@ -317,19 +317,19 @@ const ve = {
317
317
  district: e.string(),
318
318
  address: e.string(),
319
319
  is_default: e.bool()
320
- }).lock(), De = e.object({
320
+ }).lock(), Ie = e.object({
321
321
  increased_credit: e.number(),
322
322
  decreased_credit: e.number(),
323
323
  expired_credit: e.number(),
324
324
  balance_credit: e.number()
325
- }).lock(), Ie = e.object({
325
+ }).lock(), Ae = e.object({
326
326
  id: e.number(),
327
- change_type: Re,
328
- change_scene: Te,
327
+ change_type: je,
328
+ change_scene: qe,
329
329
  change_credit: e.number(),
330
330
  balance: e.number(),
331
331
  change_time: e.number()
332
- }).lock(), Z = e.object({
332
+ }).lock(), X = e.object({
333
333
  benefit_id: e.number(),
334
334
  name: e.string(),
335
335
  img_url: e.string(),
@@ -338,11 +338,11 @@ const ve = {
338
338
  max_level: e.number(),
339
339
  product_id: e.number(),
340
340
  tag: e.string()
341
- }).lock(), X = e.object({
341
+ }).lock(), Y = e.object({
342
342
  product_id: e.number(),
343
343
  catalog_id: e.number(),
344
344
  catalog_name: e.string(),
345
- item_type: H,
345
+ item_type: z,
346
346
  name: e.string(),
347
347
  img_url: e.string(),
348
348
  description: e.string(),
@@ -364,10 +364,10 @@ const ve = {
364
364
  created_at: e.number(),
365
365
  updated_at: e.number(),
366
366
  redeemable_quantity: e.number().optional()
367
- }).lock(), Ae = e.object({
368
- ...P(Z.shape, "tag"),
369
- product: X.clone().optional()
370
- }).lock(), na = e.union(
367
+ }).lock(), Ge = e.object({
368
+ ...P(X.shape, "tag"),
369
+ product: Y.clone().optional()
370
+ }).lock(), aa = e.union(
371
371
  e.object({
372
372
  server_id: e.string(),
373
373
  role_id: e.string()
@@ -375,7 +375,7 @@ const ve = {
375
375
  e.object({
376
376
  address_id: e.number()
377
377
  })
378
- ).satisfies().lock(), Ge = e.object({
378
+ ).satisfies().lock(), Oe = e.object({
379
379
  recipient: e.string(),
380
380
  mobile: e.string(),
381
381
  province: e.string(),
@@ -384,32 +384,32 @@ const ve = {
384
384
  address: e.string(),
385
385
  express_company: e.string(),
386
386
  express_number: e.string()
387
- }).lock(), Oe = e.object({
387
+ }).lock(), Ne = e.object({
388
388
  server_id: e.string(),
389
389
  role_id: e.string(),
390
390
  role_name: e.string()
391
- }).lock(), Ne = e.object({
391
+ }).lock(), Qe = e.object({
392
392
  redemption_id: e.number(),
393
393
  player_id: e.string(),
394
394
  product_id: e.number(),
395
395
  name: e.string(),
396
396
  img_url: e.string(),
397
- item_type: H,
397
+ item_type: z,
398
398
  catalog_id: e.number(),
399
399
  catalog_name: e.string(),
400
400
  quantity: e.number(),
401
401
  amount: e.number(),
402
- status: Se,
402
+ status: Le,
403
403
  created_at: e.number(),
404
- extra_data: e.union(Ge.clone(), Oe.clone()).satisfies().optional()
405
- }), Qe = e.guard(Le), N = s({ player: Pe }), Be = s({ roles: e.array(z) }), T = s({ role_card: Ue }), Q = e.guard(Fe), B = e.guard(J), Me = s({ addresses: e.array(J) }), Ke = e.guard(De), He = s({
406
- credit_logs: e.array(Ie),
404
+ extra_data: e.union(Oe.clone(), Ne.clone()).satisfies().optional()
405
+ }), Be = e.guard(Pe), N = s({ player: Ee }), Me = s({ roles: e.array(J) }), T = s({ role_card: Fe }), Q = e.guard(De), B = e.guard(Z), Ke = s({ addresses: e.array(Z) }), He = e.guard(Ie), ze = s({
406
+ credit_logs: e.array(Ae),
407
407
  next_token: e.string().optional()
408
- }), ze = s({ products: e.array(X) }), Je = s({ benefits: e.array(Z) }), Ze = s({ benefit: Ae }), Xe = s({
409
- redemptions: e.array(Ne),
408
+ }), Je = s({ products: e.array(Y) }), Ze = s({ benefits: e.array(X) }), Xe = s({ benefit: Ge }), Ye = s({
409
+ redemptions: e.array(Qe),
410
410
  next_token: e.string().optional()
411
411
  });
412
- class ra {
412
+ class oa {
413
413
  token;
414
414
  req;
415
415
  constructor(t) {
@@ -421,7 +421,7 @@ class ra {
421
421
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
422
422
  */
423
423
  async getConfig(t) {
424
- const { data: n } = await this.req.get("club/config", Qe, t);
424
+ const { data: n } = await this.req.get("club/config", Be, t);
425
425
  return n;
426
426
  }
427
427
  /**
@@ -462,7 +462,7 @@ class ra {
462
462
  */
463
463
  async getRoles(t, n, r) {
464
464
  if (!await this.token.autoLogin()) return [];
465
- const { data: a } = await this.req.get("club/roles", Be, {
465
+ const { data: a } = await this.req.get("club/roles", Me, {
466
466
  ...r,
467
467
  params: c({ player_id: t, refresh: n })
468
468
  });
@@ -534,7 +534,7 @@ class ra {
534
534
  */
535
535
  async getAddresses(t) {
536
536
  if (!await this.token.autoLogin()) return [];
537
- const { data: n } = await this.req.get("club/addresses", Me, t);
537
+ const { data: n } = await this.req.get("club/addresses", Ke, t);
538
538
  return n?.addresses ?? [];
539
539
  }
540
540
  /**
@@ -582,7 +582,7 @@ class ra {
582
582
  */
583
583
  async getUserCredit(t, n) {
584
584
  await this.token.autoLogin();
585
- const { data: r, code: a, message: o } = await this.req.get("club/user-credit", Ke, {
585
+ const { data: r, code: a, message: o } = await this.req.get("club/user-credit", He, {
586
586
  ...n,
587
587
  params: c(t)
588
588
  });
@@ -598,7 +598,7 @@ class ra {
598
598
  */
599
599
  async getCreditLogs(t, n) {
600
600
  await this.token.autoLogin();
601
- const { data: r } = await this.req.get("club/credit-logs", He, {
601
+ const { data: r } = await this.req.get("club/credit-logs", ze, {
602
602
  ...n,
603
603
  params: c({ max_results: 20, ...t })
604
604
  });
@@ -614,7 +614,7 @@ class ra {
614
614
  */
615
615
  async getBenefits(t) {
616
616
  if (!await this.token.autoLogin()) return [];
617
- const { data: n } = await this.req.get("club/benefits", Je, t);
617
+ const { data: n } = await this.req.get("club/benefits", Ze, t);
618
618
  return n?.benefits || [];
619
619
  }
620
620
  /**
@@ -624,7 +624,7 @@ class ra {
624
624
  */
625
625
  async getBenefit(t, n) {
626
626
  if (!await this.token.autoLogin()) return null;
627
- const { data: r } = await this.req.get("club/benefit", Ze, {
627
+ const { data: r } = await this.req.get("club/benefit", Xe, {
628
628
  ...n,
629
629
  params: { benefit_id: t }
630
630
  });
@@ -636,7 +636,7 @@ class ra {
636
636
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
637
637
  */
638
638
  async getProducts(t, n) {
639
- const { data: r } = await this.req.get("club/products", ze, {
639
+ const { data: r } = await this.req.get("club/products", Je, {
640
640
  ...n,
641
641
  params: t
642
642
  });
@@ -662,7 +662,7 @@ class ra {
662
662
  */
663
663
  async getRedemptions(t, n) {
664
664
  await this.token.autoLogin();
665
- const { data: r } = await this.req.get("club/redemptions", Xe, {
665
+ const { data: r } = await this.req.get("club/redemptions", Ye, {
666
666
  ...n,
667
667
  params: c({ max_results: 20, ...t })
668
668
  });
@@ -693,17 +693,17 @@ const v = {
693
693
  ExternalCode: "external_gift_code",
694
694
  /** 空奖励 */
695
695
  VoidItem: "void_item"
696
- }, Y = e.string().enum(v).lock(), aa = v, W = Y, Ye = {
696
+ }, W = e.string().enum(v).lock(), ia = v, ee = W, We = {
697
697
  /** 世游通行证 ID / Combo ID */
698
698
  UserId: "user_id",
699
699
  /** 游戏角色 ID */
700
700
  RoleId: "role_id"
701
- }, We = e.string().enum(Ye).lock(), et = {
701
+ }, et = e.string().enum(We).lock(), tt = {
702
702
  None: "none",
703
703
  Daily: "daily",
704
704
  Weekly: "weekly",
705
705
  Monthly: "monthly"
706
- }, tt = e.string().enum(et).lock(), l = {
706
+ }, nt = e.string().enum(tt).lock(), l = {
707
707
  /** 预约 */
708
708
  Preregister: "preregister",
709
709
  /** 抽奖 */
@@ -748,7 +748,7 @@ const v = {
748
748
  ZeroChatgpt: "zero_chatgpt",
749
749
  /** 投稿 */
750
750
  Ugc: "ugc"
751
- }, nt = e.string().enum(l).lock(), rt = {
751
+ }, rt = e.string().enum(l).lock(), at = {
752
752
  /** 累计游戏内活跃值 */
753
753
  Active: "player_active_points",
754
754
  /** 累计登录,单位 人天 */
@@ -771,14 +771,14 @@ const v = {
771
771
  EventItems: "event_items",
772
772
  /**游戏内任务 */
773
773
  GameTask: "game_task"
774
- }, ee = e.string().enum(rt).lock(), at = {
774
+ }, te = e.string().enum(at).lock(), ot = {
775
775
  /** 官方上传 */
776
776
  System: "system",
777
777
  /** 用户投稿 */
778
778
  UserSubmission: "user_submission",
779
779
  /** 投票入围 */
780
780
  Shortlisted: "shortlisted"
781
- }, ot = e.string().enum(at).lock(), d = {
781
+ }, it = e.string().enum(ot).lock(), g = {
782
782
  /** 未获得奖励 */
783
783
  Ineligible: "ineligible",
784
784
  /** 奖励未领取 */
@@ -789,37 +789,37 @@ const v = {
789
789
  Failed: "failed",
790
790
  /** 奖励已发货 */
791
791
  Delivered: "delivered"
792
- }, oa = e.string().enum(d).lock(), it = {
792
+ }, sa = e.string().enum(g).lock(), st = {
793
793
  /** 奖励未领取 */
794
- Unclaimed: d.Unclaimed,
794
+ Unclaimed: g.Unclaimed,
795
795
  /** 奖励已领取 */
796
- Received: d.Received,
796
+ Received: g.Received,
797
797
  /** 奖励发放失败 */
798
- Failed: d.Failed,
798
+ Failed: g.Failed,
799
799
  /** 奖励已发货 */
800
- Delivered: d.Delivered
801
- }, te = e.string().enum(it).lock(), st = {
800
+ Delivered: g.Delivered
801
+ }, ne = e.string().enum(st).lock(), ct = {
802
802
  /** 未获得奖励 */
803
- Ineligible: d.Ineligible,
803
+ Ineligible: g.Ineligible,
804
804
  /** 奖励未领取 */
805
- Unclaimed: d.Unclaimed,
805
+ Unclaimed: g.Unclaimed,
806
806
  /** 奖励已领取 */
807
- Received: d.Received,
807
+ Received: g.Received,
808
808
  /** 奖励发放失败 */
809
- Failed: d.Failed,
809
+ Failed: g.Failed,
810
810
  /** 奖励已发货 */
811
- Delivered: d.Delivered
812
- }, E = e.string().enum(st).lock(), ct = {
811
+ Delivered: g.Delivered
812
+ }, E = e.string().enum(ct).lock(), lt = {
813
813
  /** 玩法产出奖励 */
814
814
  Output: "output",
815
815
  /** 玩法参与奖励 */
816
816
  Engage: "engage"
817
- }, $ = e.string().enum(ct).lock(), lt = {
817
+ }, $ = e.string().enum(lt).lock(), ut = {
818
818
  /** 私有队伍 */
819
819
  Private: "private",
820
820
  /** 公开队伍 */
821
821
  Public: "public"
822
- }, ut = e.string().enum(lt).lock(), f = {
822
+ }, mt = e.string().enum(ut).lock(), f = {
823
823
  /** 未知状态 */
824
824
  Unknown: "unknown",
825
825
  /** 等待开奖 */
@@ -830,7 +830,7 @@ const v = {
830
830
  Claimed: "claimed",
831
831
  /** 领奖失败 */
832
832
  Fail: "fail"
833
- }, ia = e.string().enum(f).lock(), mt = {
833
+ }, ca = e.string().enum(f).lock(), dt = {
834
834
  /** 发起组队 */
835
835
  Assemble: "assemble",
836
836
  /** 加入队伍 */
@@ -841,26 +841,26 @@ const v = {
841
841
  ChangeVisibility: "change_visibility",
842
842
  /** 查询组队信息 */
843
843
  Query: "query"
844
- }, sa = e.string().enum(mt).lock(), dt = {
844
+ }, la = e.string().enum(dt).lock(), gt = {
845
845
  /** 查询抽奖券 */
846
846
  Query: "query",
847
847
  /** 开奖 */
848
848
  Draw: "draw",
849
849
  /** 领奖 */
850
850
  Claim: "claim"
851
- }, ca = e.string().enum(dt).lock(), gt = {
851
+ }, ua = e.string().enum(gt).lock(), pt = {
852
852
  /** 将所有队员的进度值求和,作为队伍进度值 */
853
853
  Sum: "sum",
854
854
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
855
855
  TopN: "top_n"
856
- }, pt = e.string().enum(gt).lock(), _t = {
856
+ }, _t = e.string().enum(pt).lock(), bt = {
857
857
  /** 尚未结算 */
858
858
  None: "none",
859
859
  /** 获胜奖励 */
860
860
  Winner: "winner",
861
861
  /** 安慰奖励 */
862
862
  Consolation: "consolation"
863
- }, bt = e.string().enum(_t).lock(), yt = {
863
+ }, yt = e.string().enum(bt).lock(), ht = {
864
864
  /** 抖音 */
865
865
  Douyin: "douyin",
866
866
  /** 小红书 */
@@ -875,73 +875,73 @@ const v = {
875
875
  Huya: "huya",
876
876
  /** 斗鱼 */
877
877
  Douyu: "douyu"
878
- }, ne = e.string().enum(yt).lock(), ht = {
878
+ }, re = e.string().enum(ht).lock(), ft = {
879
879
  /** 已提交 */
880
880
  Submitted: "submitted",
881
881
  /** 已接收 */
882
882
  Accepted: "accepted",
883
883
  /** 已拒绝 */
884
884
  Rejected: "rejected"
885
- }, ft = e.string().enum(ht).lock(), wt = e.string().enum(v), y = e.object({
885
+ }, wt = e.string().enum(ft).lock(), kt = e.string().enum(v), y = e.object({
886
886
  reward_item_id: e.number(),
887
887
  reward_amount: e.number(),
888
888
  reward_item_name: e.string(),
889
889
  reward_item_icon_url: e.string(),
890
890
  reward_item_desc: e.string().optional(),
891
- reward_item_type: wt,
891
+ reward_item_type: kt,
892
892
  reward_item_rating: e.number()
893
- }).lock(), kt = e.object({
893
+ }).lock(), vt = e.object({
894
894
  engage_count: e.number(),
895
895
  rewards: e.array(y)
896
- }).lock(), vt = e.union(
896
+ }).lock(), Vt = e.union(
897
897
  e.object({
898
898
  feature_reward_type: e.string().enum("every"),
899
899
  reward_details: e.array(y)
900
900
  }),
901
901
  e.object({
902
902
  feature_reward_type: e.string().enum("regular"),
903
- reward_details: e.array(kt)
903
+ reward_details: e.array(vt)
904
904
  })
905
905
  ).satisfies().lock(), u = e.object({
906
906
  feature_name: e.string(),
907
907
  feature_id: e.number(),
908
908
  description: e.string(),
909
- cycle: tt,
909
+ cycle: nt,
910
910
  cycle_limit: e.number(),
911
911
  limit: e.number(),
912
912
  since: e.number(),
913
913
  until: e.number(),
914
- engage_account: We,
915
- feature_rewards: vt.clone().optional(),
914
+ engage_account: et,
915
+ feature_rewards: Vt.clone().optional(),
916
916
  sort: e.number().optional()
917
- }), Vt = l.Cashback, Ct = e.object({
917
+ }), Ct = l.Cashback, Rt = e.object({
918
918
  ...u.shape,
919
- feature_type: e.string().enum(Vt),
919
+ feature_type: e.string().enum(Ct),
920
920
  config: e.object({
921
921
  order_start_time: e.number(),
922
922
  order_end_time: e.number(),
923
923
  claim_rewards_start_time: e.number(),
924
924
  claim_rewards_end_time: e.number()
925
925
  })
926
- }), Rt = l.CheckIn, jt = e.object({
926
+ }), jt = l.CheckIn, Tt = e.object({
927
927
  ...u.shape,
928
- feature_type: e.string().enum(Rt)
929
- }), Tt = l.ClaimActivationKey, qt = e.object({
928
+ feature_type: e.string().enum(jt)
929
+ }), qt = l.ClaimActivationKey, xt = e.object({
930
930
  ...u.shape,
931
- feature_type: e.string().enum(Tt)
932
- }), xt = l.ClaimRewards, St = e.object({
931
+ feature_type: e.string().enum(qt)
932
+ }), St = l.ClaimRewards, Lt = e.object({
933
933
  ...u.shape,
934
- feature_type: e.string().enum(xt)
935
- }), Lt = l.Comment, Pt = e.object({
934
+ feature_type: e.string().enum(St)
935
+ }), Pt = l.Comment, Et = e.object({
936
936
  ...u.shape,
937
- feature_type: e.string().enum(Lt),
937
+ feature_type: e.string().enum(Pt),
938
938
  config: e.object({
939
939
  comments: e.array(e.string()),
940
940
  send_rate: e.number()
941
941
  })
942
- }), Et = l.Follow, $t = e.object({
942
+ }), $t = l.Follow, Ut = e.object({
943
943
  ...u.shape,
944
- feature_type: e.string().enum(Et),
944
+ feature_type: e.string().enum($t),
945
945
  config: e.object({
946
946
  platform: e.string(),
947
947
  platform_icon: e.string().optional(),
@@ -949,67 +949,67 @@ const v = {
949
949
  qr_code_url: e.string().optional(),
950
950
  platform_desc: e.string().optional()
951
951
  })
952
- }), Ut = l.GiftCode, Ft = e.object({
952
+ }), Ft = l.GiftCode, Dt = e.object({
953
953
  name: e.string(),
954
954
  icon_url: e.string(),
955
955
  count: e.number()
956
- }), Dt = e.object({
956
+ }), It = e.object({
957
957
  ...u.shape,
958
- feature_type: e.string().enum(Ut),
958
+ feature_type: e.string().enum(Ft),
959
959
  config: e.object({
960
- gift_items: e.array(Ft),
960
+ gift_items: e.array(Dt),
961
961
  mp_url: e.string().optional(),
962
962
  mp_qrcode_url: e.string().optional()
963
963
  })
964
- }), It = l.Invite, At = e.object({
964
+ }), At = l.Invite, Gt = e.object({
965
965
  ...u.shape,
966
- feature_type: e.string().enum(It),
966
+ feature_type: e.string().enum(At),
967
967
  config: e.object({
968
968
  share_url: e.string()
969
969
  })
970
- }), Gt = l.InvitedRegister, Ot = e.object({
970
+ }), Ot = l.InvitedRegister, Nt = e.object({
971
971
  ...u.shape,
972
- feature_type: e.string().enum(Gt)
973
- }), Nt = e.string().enum(P(v, "GiftCode", "LotteryTicket")), Qt = l.Lottery, Bt = e.object({
972
+ feature_type: e.string().enum(Ot)
973
+ }), Qt = e.string().enum(P(v, "GiftCode", "LotteryTicket")), Bt = l.Lottery, Mt = e.object({
974
974
  reward_item_id: e.number(),
975
975
  reward_item_name: e.string(),
976
- reward_item_type: Nt,
976
+ reward_item_type: Qt,
977
977
  reward_item_icon_url: e.string(),
978
978
  reward_item_desc: e.string().optional(),
979
979
  reward_amount: e.number(),
980
980
  reward_remaining_stock: e.number(),
981
981
  reward_item_rating: e.number()
982
- }), Mt = e.object({
982
+ }), Kt = e.object({
983
983
  ...u.shape,
984
- feature_type: e.string().enum(Qt),
984
+ feature_type: e.string().enum(Bt),
985
985
  config: e.object({
986
986
  consume_item_id: e.number(),
987
987
  consume_item_name: e.string(),
988
988
  consume_item_icon_url: e.string(),
989
989
  consume_item_count: e.array(e.number()),
990
990
  consume_item_desc: e.string().optional(),
991
- rewards: e.array(Bt)
991
+ rewards: e.array(Mt)
992
992
  })
993
- }), Kt = l.LotteryDraw, Ht = e.object({
993
+ }), Ht = l.LotteryDraw, zt = e.object({
994
994
  ...u.shape,
995
- feature_type: e.string().enum(Kt),
995
+ feature_type: e.string().enum(Ht),
996
996
  config: e.object({
997
997
  draw_not_before: e.number(),
998
998
  draw_not_after: e.number()
999
999
  })
1000
- }), zt = l.Preregister, Jt = e.object({
1000
+ }), Jt = l.Preregister, Zt = e.object({
1001
1001
  ...u.shape,
1002
- feature_type: e.string().enum(zt)
1003
- }), Zt = l.Quest, Xt = e.object({
1002
+ feature_type: e.string().enum(Jt)
1003
+ }), Xt = l.Quest, Yt = e.object({
1004
1004
  ...u.shape,
1005
- feature_type: e.string().enum(Zt),
1005
+ feature_type: e.string().enum(Xt),
1006
1006
  config: e.object({
1007
- objective: ee,
1007
+ objective: te,
1008
1008
  completion_value: e.number(),
1009
1009
  team: e.object({
1010
1010
  feature_id: e.number().optional(),
1011
1011
  completion_value: e.number(),
1012
- progress_algorithm: pt.clone().optional(),
1012
+ progress_algorithm: _t.clone().optional(),
1013
1013
  top_n: e.number().optional()
1014
1014
  }).optional(),
1015
1015
  config: e.object({
@@ -1019,45 +1019,45 @@ const v = {
1019
1019
  event_item_id: e.number().optional()
1020
1020
  }).optional()
1021
1021
  })
1022
- }), Yt = l.Register, Wt = e.object({
1022
+ }), Wt = l.Register, en = e.object({
1023
1023
  ...u.shape,
1024
- feature_type: e.string().enum(Yt)
1025
- }), en = l.Share, tn = e.object({
1024
+ feature_type: e.string().enum(Wt)
1025
+ }), tn = l.Share, nn = e.object({
1026
1026
  ...u.shape,
1027
- feature_type: e.string().enum(en),
1027
+ feature_type: e.string().enum(tn),
1028
1028
  config: e.object({
1029
1029
  share_platform: e.string(),
1030
1030
  jump_url: e.string().optional(),
1031
1031
  icon_url: e.string().optional()
1032
1032
  })
1033
- }), nn = l.Subscribe, rn = e.object({
1033
+ }), rn = l.Subscribe, an = e.object({
1034
1034
  ...u.shape,
1035
- feature_type: e.string().enum(nn),
1035
+ feature_type: e.string().enum(rn),
1036
1036
  config: e.object({
1037
1037
  weixin_template_ids: e.array(e.string())
1038
1038
  })
1039
- }), an = l.Survey, on = e.object({
1039
+ }), on = l.Survey, sn = e.object({
1040
1040
  ...u.shape,
1041
- feature_type: e.string().enum(an),
1041
+ feature_type: e.string().enum(on),
1042
1042
  config: e.object({
1043
1043
  survey_id: e.string(),
1044
1044
  survey_url: e.string()
1045
1045
  })
1046
- }), sn = l.Team, cn = e.object({
1046
+ }), cn = l.Team, ln = e.object({
1047
1047
  ...u.shape,
1048
- feature_type: e.string().enum(sn),
1048
+ feature_type: e.string().enum(cn),
1049
1049
  config: e.object({
1050
1050
  max_members: e.number().min(1),
1051
1051
  min_members: e.number().min(1)
1052
1052
  })
1053
- }), ln = l.Ugc, un = e.object({
1053
+ }), un = l.Ugc, mn = e.object({
1054
1054
  ...u.shape,
1055
- feature_type: e.string().enum(ln),
1055
+ feature_type: e.string().enum(un),
1056
1056
  config: e.object({
1057
1057
  allowed_social_medias: e.array(e.string()).optional(),
1058
1058
  acceptance_rewards: e.array(y).optional()
1059
1059
  })
1060
- }), mn = l.Vote, dn = e.object({
1060
+ }), dn = l.Vote, gn = e.object({
1061
1061
  sn: e.string(),
1062
1062
  name: e.string(),
1063
1063
  img_urls: e.array(e.string()).optional(),
@@ -1067,30 +1067,30 @@ const v = {
1067
1067
  amount: e.number(),
1068
1068
  finalists: e.bool(),
1069
1069
  last_vote_time: e.number()
1070
- }), gn = e.object({
1070
+ }), pn = e.object({
1071
1071
  ...u.shape,
1072
- feature_type: e.string().enum(mn),
1072
+ feature_type: e.string().enum(dn),
1073
1073
  config: e.object({
1074
1074
  vote_feature_ids: e.array(e.number()),
1075
1075
  submission_feature_ids: e.array(e.number()),
1076
1076
  finalists_amount: e.number(),
1077
- source: ot,
1078
- options: e.array(dn),
1077
+ source: it,
1078
+ options: e.array(gn),
1079
1079
  rewards: e.array(y)
1080
1080
  })
1081
- }), pn = l.Vote2, _n = e.object({
1081
+ }), _n = l.Vote2, bn = e.object({
1082
1082
  candidate_id: e.string(),
1083
1083
  display_name: e.string(),
1084
1084
  images: e.array(e.string()).optional(),
1085
1085
  videos: e.array(e.string()).optional(),
1086
1086
  description: e.string().optional(),
1087
1087
  jump_url: e.string()
1088
- }), bn = e.object({
1088
+ }), yn = e.object({
1089
1089
  ...u.shape,
1090
- feature_type: e.string().enum(pn),
1090
+ feature_type: e.string().enum(_n),
1091
1091
  config: e.object({
1092
1092
  vote_item_id: e.number().optional(),
1093
- candidates: e.array(_n),
1093
+ candidates: e.array(bn),
1094
1094
  vote_since: e.number(),
1095
1095
  vote_until: e.number(),
1096
1096
  rewards_since: e.number(),
@@ -1098,59 +1098,59 @@ const v = {
1098
1098
  winner_rewards: e.array(y).optional(),
1099
1099
  consolation_rewards: e.array(y).optional()
1100
1100
  })
1101
- }), yn = l.ZeroChatgpt, hn = e.object({
1101
+ }), hn = l.ZeroChatgpt, fn = e.object({
1102
1102
  ...u.shape,
1103
- feature_type: e.string().enum(yn)
1104
- }), fn = e.union(
1105
- Ct,
1106
- jt,
1107
- St,
1108
- Pt,
1109
- $t,
1110
- Dt,
1111
- At,
1112
- Ot,
1113
- Mt,
1114
- Ht,
1115
- Jt,
1116
- Xt,
1117
- Wt,
1118
- tn,
1119
- rn,
1120
- on,
1121
- cn,
1122
- gn,
1123
- bn,
1124
- qt,
1125
- hn,
1126
- un
1127
- ).key("feature_type").satisfies(), wn = e.object({
1103
+ feature_type: e.string().enum(hn)
1104
+ }), wn = e.union(
1105
+ Rt,
1106
+ Tt,
1107
+ Lt,
1108
+ Et,
1109
+ Ut,
1110
+ It,
1111
+ Gt,
1112
+ Nt,
1113
+ Kt,
1114
+ zt,
1115
+ Zt,
1116
+ Yt,
1117
+ en,
1118
+ nn,
1119
+ an,
1120
+ sn,
1121
+ ln,
1122
+ pn,
1123
+ yn,
1124
+ xt,
1125
+ fn,
1126
+ mn
1127
+ ).key("feature_type").satisfies(), kn = e.object({
1128
1128
  event_name: e.string(),
1129
1129
  rules: e.string(),
1130
1130
  since: e.number(),
1131
1131
  until: e.number(),
1132
1132
  visit_count: e.number().optional(),
1133
- features: e.array(fn)
1134
- }).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), re = e.object({
1133
+ features: e.array(wn)
1134
+ }).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ae = e.object({
1135
1135
  order_total_amount: q,
1136
1136
  cashback_total_amount: q,
1137
1137
  game_item_count: q
1138
- }), kn = e.object({
1139
- activation_key: e.string().disallow("")
1140
1138
  }), vn = e.object({
1141
- gift_code: e.string()
1139
+ activation_key: e.string().disallow("")
1142
1140
  }), Vn = e.object({
1141
+ gift_code: e.string()
1142
+ }), Cn = e.object({
1143
1143
  user_id: e.string(),
1144
1144
  name: e.string().optional(),
1145
1145
  avatar_url: e.string().optional()
1146
- }), Cn = e.object({
1146
+ }), Rn = e.object({
1147
1147
  lottery_count: e.number()
1148
1148
  }), V = e.object({
1149
1149
  reward_id: e.number(),
1150
1150
  reward_item_id: e.number(),
1151
1151
  reward_source: $,
1152
1152
  reward_item_name: e.string(),
1153
- reward_item_type: Y,
1153
+ reward_item_type: W,
1154
1154
  reward_item_icon_url: e.string(),
1155
1155
  reward_item_desc: e.string().optional(),
1156
1156
  reward_item_rating: e.number(),
@@ -1160,61 +1160,61 @@ const v = {
1160
1160
  event_name: e.string(),
1161
1161
  feature_id: e.number(),
1162
1162
  engagement_id: e.number(),
1163
- feature_type: nt,
1163
+ feature_type: rt,
1164
1164
  receive_time: e.number(),
1165
1165
  extra_data: e.record(e.unknown()).optional()
1166
- }), Rn = e.string().enum(f.Unknown, f.Pending), jn = e.union(
1166
+ }), jn = e.string().enum(f.Unknown, f.Pending), Tn = e.union(
1167
1167
  e.object({
1168
1168
  ticket: e.string(),
1169
- status: Rn
1169
+ status: jn
1170
1170
  }),
1171
1171
  e.object({
1172
1172
  ticket: e.string(),
1173
1173
  status: e.string().enum(P(f, "Unknown", "Pending")),
1174
1174
  reward: V
1175
1175
  })
1176
- ).satisfies(), Tn = e.object({
1177
- tickets: e.array(jn)
1178
- }), qn = e.object({
1176
+ ).satisfies(), qn = e.object({
1177
+ tickets: e.array(Tn)
1178
+ }), xn = e.object({
1179
1179
  platforms: e.array(e.string())
1180
- }), ae = e.object({
1180
+ }), oe = e.object({
1181
1181
  role_name: e.string(),
1182
1182
  is_leader: e.bool(),
1183
1183
  is_myself: e.bool().optional(),
1184
1184
  progress: e.number().optional()
1185
- }).lock(), xn = e.object({
1186
- objective: ee,
1185
+ }).lock(), Sn = e.object({
1186
+ objective: te,
1187
1187
  progress: e.number(),
1188
1188
  completion_value: e.number().optional(),
1189
1189
  team: e.object({
1190
1190
  progress: e.number(),
1191
1191
  completion_value: e.number().optional(),
1192
- players: e.array(ae)
1192
+ players: e.array(oe)
1193
1193
  }).optional()
1194
- }), Sn = e.object({
1194
+ }), Ln = e.object({
1195
1195
  progress: e.number(),
1196
1196
  team: e.object({
1197
1197
  progress: e.number(),
1198
- team_members: e.array(ae).optional()
1198
+ team_members: e.array(oe).optional()
1199
1199
  }).optional()
1200
- }), Ln = e.object({
1201
- platform: e.string()
1202
1200
  }), Pn = e.object({
1203
- weixin_openid: e.string()
1201
+ platform: e.string()
1204
1202
  }), En = e.object({
1205
- serial_number: e.number()
1203
+ weixin_openid: e.string()
1206
1204
  }), $n = e.object({
1205
+ serial_number: e.number()
1206
+ }), Un = e.object({
1207
1207
  team_code: e.string(),
1208
1208
  leader_name: e.string(),
1209
1209
  total_members: e.number()
1210
- }), la = e.object({
1210
+ }), ma = e.object({
1211
1211
  is_leader: e.bool(),
1212
1212
  is_myself: e.bool().optional(),
1213
1213
  role_name: e.string(),
1214
1214
  server_name: e.string()
1215
- }), Un = e.object({
1215
+ }), Fn = e.object({
1216
1216
  team_code: e.string(),
1217
- visibility: ut,
1217
+ visibility: mt,
1218
1218
  members: e.array(
1219
1219
  e.object({
1220
1220
  is_leader: e.bool(),
@@ -1222,56 +1222,70 @@ const v = {
1222
1222
  server_name: e.string()
1223
1223
  })
1224
1224
  )
1225
- }), Fn = e.object({
1225
+ }), Dn = e.object({
1226
1226
  ugc_id: e.number(),
1227
1227
  title: e.string(),
1228
1228
  content: e.string().optional(),
1229
1229
  image_urls: e.array(e.string()).optional(),
1230
- social_media: ne.clone().optional(),
1230
+ social_media: re.clone().optional(),
1231
1231
  social_media_url: e.string().optional()
1232
- }), Dn = e.object({
1232
+ }), In = e.object({
1233
1233
  ugcs: e.array(
1234
1234
  e.object({
1235
1235
  ugc_id: e.number(),
1236
- review_status: ft,
1236
+ review_status: wt,
1237
1237
  title: e.string(),
1238
1238
  content: e.string().optional(),
1239
1239
  image_urls: e.array(e.string()).optional(),
1240
- social_media: ne.clone().optional(),
1240
+ social_media: re.clone().optional(),
1241
1241
  social_media_url: e.string().optional(),
1242
1242
  server_id: e.number().optional(),
1243
1243
  server_name: e.string().optional(),
1244
1244
  role_id: e.string().optional(),
1245
1245
  role_name: e.string().optional(),
1246
- total_likes: e.number().optional()
1246
+ total_likes: e.number().optional(),
1247
+ created_at: e.number()
1247
1248
  })
1248
1249
  ).optional(),
1249
1250
  next_token: e.string().optional()
1250
- }), In = e.object({
1251
+ }), An = e.object({
1251
1252
  existed: e.bool(),
1252
1253
  upload_url: e.string().optional(),
1253
1254
  image_url: e.string()
1254
- }), An = e.object({
1255
- option_sn: e.string()
1256
1255
  }), Gn = e.object({
1256
+ ugcs: e.array(
1257
+ e.object({
1258
+ ugc_id: e.number(),
1259
+ rank: e.number(),
1260
+ total_likes: e.number(),
1261
+ image_urls: e.array(e.string()).optional(),
1262
+ server_id: e.number().optional(),
1263
+ server_name: e.string().optional(),
1264
+ role_id: e.string().optional(),
1265
+ role_name: e.string().optional()
1266
+ })
1267
+ )
1268
+ }), On = e.object({
1269
+ option_sn: e.string()
1270
+ }), Nn = e.object({
1257
1271
  candidate_id: e.string(),
1258
1272
  total_votes: e.number().optional(),
1259
1273
  my_votes: e.number().optional(),
1260
1274
  votes: e.number().optional()
1261
- }), On = e.object({
1262
- rewards_type: bt,
1275
+ }), Qn = e.object({
1276
+ rewards_type: yt,
1263
1277
  rewards: e.array(V).optional()
1264
- }), Nn = e.object({
1278
+ }), Bn = e.object({
1265
1279
  candidate_id: e.string(),
1266
1280
  is_winner: e.bool(),
1267
1281
  total_votes: e.number(),
1268
1282
  my_votes: e.number()
1269
- }), Qn = e.object({
1283
+ }), Mn = e.object({
1270
1284
  role: e.string(),
1271
1285
  content: e.string()
1272
- }), Bn = e.object({
1273
- conversations: e.array(Qn)
1274
- }), Mn = e.object({
1286
+ }), Kn = e.object({
1287
+ conversations: e.array(Mn)
1288
+ }), Hn = e.object({
1275
1289
  user_id: e.string(),
1276
1290
  name: e.string(),
1277
1291
  avatar_url: e.string(),
@@ -1279,32 +1293,32 @@ const v = {
1279
1293
  video_note: e.number(),
1280
1294
  created_at: e.number()
1281
1295
  }), U = e.union(
1282
- qn,
1296
+ xn,
1297
+ Rn,
1298
+ $n,
1283
1299
  Cn,
1300
+ Pn,
1301
+ On,
1302
+ Nn,
1284
1303
  En,
1304
+ ae,
1285
1305
  Vn,
1286
- Ln,
1287
- An,
1288
- Gn,
1289
- Pn,
1290
- re,
1291
- vn,
1292
- Un,
1293
- xn,
1294
- Tn,
1295
- kn,
1296
- Bn,
1297
1306
  Fn,
1307
+ Sn,
1308
+ qn,
1309
+ vn,
1310
+ Kn,
1311
+ Dn,
1298
1312
  e.custom(
1299
1313
  "EmptyObject",
1300
1314
  (i) => k(i) && Object.keys(i).length === 0
1301
1315
  )
1302
- ).satisfies().lock(), Kn = e.object({
1316
+ ).satisfies().lock(), zn = e.object({
1303
1317
  reward_id: e.number(),
1304
1318
  reward_item_id: e.number(),
1305
- reward_item_type: W,
1319
+ reward_item_type: ee,
1306
1320
  reward_count: e.number(),
1307
- reward_status: te,
1321
+ reward_status: ne,
1308
1322
  reward_source: $,
1309
1323
  reward_item_name: e.string(),
1310
1324
  reward_item_icon_url: e.string(),
@@ -1312,19 +1326,19 @@ const v = {
1312
1326
  reward_item_rating: e.number(),
1313
1327
  receive_time: e.number(),
1314
1328
  extra_data: e.union(...U.validators, e.record(e.unknown())).satisfies().optional()
1315
- }), Hn = e.object({
1329
+ }), Jn = e.object({
1316
1330
  reward_id: e.number(),
1317
1331
  reward_item_id: e.number(),
1318
1332
  reward_item_name: e.string(),
1319
- reward_item_type: W,
1333
+ reward_item_type: ee,
1320
1334
  reward_item_icon_url: e.string(),
1321
1335
  reward_item_desc: e.string().optional(),
1322
1336
  reward_item_rating: e.number(),
1323
1337
  reward_amount: e.number(),
1324
- reward_status: te,
1338
+ reward_status: ne,
1325
1339
  reward_source: $,
1326
1340
  extra_data: e.record(e.unknown()).optional()
1327
- }), zn = e.object({
1341
+ }), Zn = e.object({
1328
1342
  engagement_id: e.number(),
1329
1343
  user_id: e.string(),
1330
1344
  event_id: e.number(),
@@ -1334,15 +1348,15 @@ const v = {
1334
1348
  server_id: e.string().optional(),
1335
1349
  role_id: e.string().optional(),
1336
1350
  created_at: e.number(),
1337
- rewards: e.array(Kn).optional()
1338
- }).lock(), Jn = e.object({
1351
+ rewards: e.array(zn).optional()
1352
+ }).lock(), Xn = e.object({
1339
1353
  allowed: e.bool(),
1340
1354
  registered: e.bool()
1341
- }), Zn = e.object({
1355
+ }), Yn = e.object({
1342
1356
  feature_id: e.number(),
1343
1357
  can_engage: e.bool(),
1344
1358
  has_unclaimed_rewards: e.bool()
1345
- }), Xn = e.object({
1359
+ }), Wn = e.object({
1346
1360
  engagement_id: e.number(),
1347
1361
  engagement: e.object({
1348
1362
  engagement_id: e.number(),
@@ -1350,41 +1364,41 @@ const v = {
1350
1364
  feature_id: e.number(),
1351
1365
  data: U.clone().optional()
1352
1366
  }).optional(),
1353
- rewards: e.array(Hn).optional(),
1367
+ rewards: e.array(Jn).optional(),
1354
1368
  scan: e.bool().optional()
1355
- }), Yn = e.object({
1369
+ }), er = e.object({
1356
1370
  reward_id: e.number(),
1357
1371
  reward_status: E
1358
- }), Wn = e.guard(wn), er = e.guard(Jn), x = s({ count: e.number() }), tr = s({ first_visit: e.bool() }), nr = s({
1359
- engagements: e.union(e.array(Mn), e.array($n))
1360
- }), rr = s({
1361
- status: e.array(Zn)
1362
- }), ar = s({
1363
- engagements_counts: e.record(e.number())
1372
+ }), tr = e.guard(kn), nr = e.guard(Xn), x = s({ count: e.number() }), rr = s({ first_visit: e.bool() }), ar = s({
1373
+ engagements: e.union(e.array(Hn), e.array(Un))
1364
1374
  }), or = s({
1365
- engagements: e.array(zn),
1375
+ status: e.array(Yn)
1376
+ }), ir = s({
1377
+ engagements_counts: e.record(e.number())
1378
+ }), sr = s({
1379
+ engagements: e.array(Zn),
1366
1380
  next_token: e.string().optional()
1367
- }), ir = e.guard(Xn), sr = s({
1368
- claimed_items: e.array(Yn)
1369
- }), cr = s({
1381
+ }), cr = e.guard(Wn), lr = s({
1382
+ claimed_items: e.array(er)
1383
+ }), ur = s({
1370
1384
  rewards: e.array(V)
1371
- }), lr = s({
1385
+ }), mr = s({
1372
1386
  reward_status: E
1373
- }), ur = s({
1387
+ }), dr = s({
1374
1388
  user_rewards: e.array(V),
1375
1389
  next_token: e.string().optional()
1376
- }), mr = s({
1390
+ }), gr = s({
1377
1391
  scene: e.string()
1378
- }), dr = s({
1392
+ }), pr = s({
1379
1393
  params: e.string()
1380
- }), gr = s({
1394
+ }), _r = s({
1381
1395
  img: e.string()
1382
- }), pr = e.guard(Sn), _r = e.guard(On), br = e.guard(
1396
+ }), br = e.guard(Ln), yr = e.guard(Qn), hr = e.guard(
1383
1397
  e.object({
1384
- candidate_votes: e.array(Nn)
1398
+ candidate_votes: e.array(Bn)
1385
1399
  })
1386
- ), yr = e.guard(re), hr = e.guard(Dn), fr = e.guard(In);
1387
- class ua {
1400
+ ), fr = e.guard(ae), M = e.guard(In), wr = e.guard(An), kr = e.guard(Gn);
1401
+ class da {
1388
1402
  token;
1389
1403
  event = 0;
1390
1404
  req;
@@ -1397,7 +1411,7 @@ class ua {
1397
1411
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
1398
1412
  */
1399
1413
  async verifyMobileAllowed(t, n, r) {
1400
- const { data: a } = await this.req.get("verify-mobile-allowed", er, {
1414
+ const { data: a } = await this.req.get("verify-mobile-allowed", nr, {
1401
1415
  ...r,
1402
1416
  params: { game_id: t, mobile: n }
1403
1417
  });
@@ -1409,7 +1423,7 @@ class ua {
1409
1423
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
1410
1424
  */
1411
1425
  async getConfig(t) {
1412
- const { data: n } = await this.req.get(`event/${this.event}/event-config`, Wn, t);
1426
+ const { data: n } = await this.req.get(`event/${this.event}/event-config`, tr, t);
1413
1427
  return n;
1414
1428
  }
1415
1429
  /**
@@ -1444,7 +1458,7 @@ class ua {
1444
1458
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
1445
1459
  */
1446
1460
  async getEngagements(t, n) {
1447
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, nr, {
1461
+ const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, ar, {
1448
1462
  ...n,
1449
1463
  params: { feature_id: t }
1450
1464
  });
@@ -1460,7 +1474,7 @@ class ua {
1460
1474
  const { data: r, code: a, message: o } = await this.req.post(
1461
1475
  `event/${this.event}/visit`,
1462
1476
  c(t || {}),
1463
- tr,
1477
+ rr,
1464
1478
  n
1465
1479
  );
1466
1480
  return r ?? {
@@ -1477,7 +1491,7 @@ class ua {
1477
1491
  */
1478
1492
  async getUserFeatureStatus(t, n) {
1479
1493
  if (!await this.token.autoLogin()) return [];
1480
- const { data: r } = await this.req.get("event/user-feature-status", rr, {
1494
+ const { data: r } = await this.req.get("event/user-feature-status", or, {
1481
1495
  ...n,
1482
1496
  message: !1,
1483
1497
  params: c({ ...t, event_id: this.event })
@@ -1491,7 +1505,7 @@ class ua {
1491
1505
  */
1492
1506
  async getUserEngagementCount(t, n) {
1493
1507
  if (!await this.token.autoLogin()) return {};
1494
- const { data: r } = await this.req.get("event/user-engagements-count", ar, {
1508
+ const { data: r } = await this.req.get("event/user-engagements-count", ir, {
1495
1509
  message: !1,
1496
1510
  params: c({ ...n, event_id: this.event, feature_id: t })
1497
1511
  });
@@ -1510,7 +1524,7 @@ class ua {
1510
1524
  engagements: [],
1511
1525
  next_token: ""
1512
1526
  };
1513
- const { data: a } = await this.req.get("event/user-engagements", or, {
1527
+ const { data: a } = await this.req.get("event/user-engagements", sr, {
1514
1528
  ...r,
1515
1529
  params: c({
1516
1530
  max_results: 20,
@@ -1535,19 +1549,19 @@ class ua {
1535
1549
  */
1536
1550
  async engage(t, n, r, a) {
1537
1551
  await this.token.autoLogin();
1538
- const { data: o, code: g, message: p } = await this.req.post(
1552
+ const { data: o, code: d, message: p } = await this.req.post(
1539
1553
  `event/${this.event}/engage`,
1540
1554
  c({
1541
1555
  feature_id: t,
1542
1556
  engagement: n,
1543
1557
  ...r
1544
1558
  }),
1545
- ir,
1559
+ cr,
1546
1560
  a
1547
1561
  );
1548
1562
  return o ?? {
1549
1563
  message: p,
1550
- error: g
1564
+ error: d
1551
1565
  };
1552
1566
  }
1553
1567
  /**
@@ -1565,7 +1579,7 @@ class ua {
1565
1579
  ...t,
1566
1580
  server_id: t.server_id ? +t.server_id : void 0
1567
1581
  }),
1568
- sr,
1582
+ lr,
1569
1583
  n
1570
1584
  );
1571
1585
  return r?.claimed_items || {
@@ -1586,7 +1600,7 @@ class ua {
1586
1600
  ...t,
1587
1601
  server_id: t.server_id ? +t.server_id : void 0
1588
1602
  }),
1589
- cr,
1603
+ ur,
1590
1604
  n
1591
1605
  );
1592
1606
  return r?.rewards || {
@@ -1604,7 +1618,7 @@ class ua {
1604
1618
  const { data: r, code: a, message: o } = await this.req.post(
1605
1619
  "event/claim-weixin-hongbao",
1606
1620
  { reward_id: t },
1607
- lr,
1621
+ mr,
1608
1622
  n
1609
1623
  );
1610
1624
  return r || {
@@ -1645,7 +1659,7 @@ class ua {
1645
1659
  const { data: r } = await this.req.post(
1646
1660
  "event/user-rewards",
1647
1661
  c({ max_results: 20, ...t, event_id: this.event }),
1648
- ur,
1662
+ dr,
1649
1663
  n
1650
1664
  );
1651
1665
  return {
@@ -1693,7 +1707,7 @@ class ua {
1693
1707
  */
1694
1708
  async getUnlimitQrcodeScene(t, n) {
1695
1709
  if (!await this.token.autoLogin()) return null;
1696
- const { data: r } = await this.req.get("event/unlimit-qrcode-scene", mr, {
1710
+ const { data: r } = await this.req.get("event/unlimit-qrcode-scene", gr, {
1697
1711
  ...n,
1698
1712
  params: { params: t }
1699
1713
  });
@@ -1707,7 +1721,7 @@ class ua {
1707
1721
  * @param scene - 小程序码 scene 值
1708
1722
  */
1709
1723
  async getParamsByQrcodeScene(t, n) {
1710
- const { data: r } = await this.req.get("event/params-by-qrcode-scene", dr, {
1724
+ const { data: r } = await this.req.get("event/params-by-qrcode-scene", pr, {
1711
1725
  ...n,
1712
1726
  params: { scene: t }
1713
1727
  });
@@ -1723,7 +1737,7 @@ class ua {
1723
1737
  const { data: r } = await this.req.post(
1724
1738
  "event/unlimit-qrcode",
1725
1739
  c(t),
1726
- gr,
1740
+ _r,
1727
1741
  n
1728
1742
  );
1729
1743
  return r?.img ?? null;
@@ -1735,7 +1749,7 @@ class ua {
1735
1749
  */
1736
1750
  async getQuestProgress(t, n) {
1737
1751
  if (!await this.token.autoLogin()) return null;
1738
- const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, pr, {
1752
+ const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, br, {
1739
1753
  message: !1,
1740
1754
  ...n,
1741
1755
  params: { feature_id: t }
@@ -1757,7 +1771,7 @@ class ua {
1757
1771
  const { data: r, code: a, message: o } = await this.req.post(
1758
1772
  "event/vote2/rewards",
1759
1773
  { feature_id: t, event_id: this.event },
1760
- _r,
1774
+ yr,
1761
1775
  n
1762
1776
  );
1763
1777
  return r || {
@@ -1772,7 +1786,7 @@ class ua {
1772
1786
  */
1773
1787
  async getVote2Leaderboard(t, n) {
1774
1788
  if (!await this.token.autoLogin()) return [];
1775
- const { data: r } = await this.req.get("event/vote2/leaderboard", br, {
1789
+ const { data: r } = await this.req.get("event/vote2/leaderboard", hr, {
1776
1790
  ...n,
1777
1791
  params: { feature_id: t, event_id: this.event }
1778
1792
  });
@@ -1785,7 +1799,7 @@ class ua {
1785
1799
  */
1786
1800
  async getCashbackQuery(t, n) {
1787
1801
  if (!await this.token.autoLogin()) return null;
1788
- const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", yr, {
1802
+ const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", fr, {
1789
1803
  ...n,
1790
1804
  params: { feature_id: t, event_id: this.event }
1791
1805
  });
@@ -1799,20 +1813,20 @@ class ua {
1799
1813
  *
1800
1814
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=biEwrNKhAF
1801
1815
  */
1802
- async getUgcRecord(t, n) {
1816
+ async getUgcRecord(t, n, r) {
1803
1817
  if (!await this.token.autoLogin()) return null;
1804
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", hr, {
1805
- ...n,
1818
+ const { data: a, code: o, message: d } = await this.req.get("event/ugc/my", M, {
1819
+ ...r,
1806
1820
  params: {
1807
1821
  max_results: 20,
1808
- ...t,
1822
+ ...n,
1823
+ feature_id: t,
1809
1824
  event_id: this.event
1810
- /** 查询返回最大参与记录数 */
1811
1825
  }
1812
1826
  });
1813
- return r || {
1814
- message: o,
1815
- error: a
1827
+ return a || {
1828
+ message: d,
1829
+ error: o
1816
1830
  };
1817
1831
  }
1818
1832
  /**
@@ -1824,26 +1838,69 @@ class ua {
1824
1838
  *
1825
1839
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=xhGGpJEbol
1826
1840
  */
1827
- async ugcUploadImage(t, n) {
1841
+ async ugcUploadImage(t, n, r) {
1828
1842
  if (!await this.token.autoLogin()) return null;
1829
- const { data: r, code: a, message: o } = await this.req.post(
1843
+ const { data: a, code: o, message: d } = await this.req.post(
1830
1844
  "event/ugc/upload-image",
1831
- { ...t, event_id: this.event },
1832
- fr,
1833
- n
1845
+ { feature_id: t, ...n, event_id: this.event },
1846
+ wr,
1847
+ r
1834
1848
  );
1849
+ return a || {
1850
+ message: d,
1851
+ error: o
1852
+ };
1853
+ }
1854
+ /**
1855
+ * 获取推荐稿件列表,随机显示 N 条被接受的投稿记录
1856
+ *
1857
+ * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=WzvcAPjHAh
1858
+ */
1859
+ async getUgcRecommendation(t, n) {
1860
+ if (!await this.token.autoLogin()) return null;
1861
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", M, {
1862
+ ...n,
1863
+ params: {
1864
+ feature_id: t,
1865
+ event_id: this.event
1866
+ }
1867
+ });
1835
1868
  return r || {
1836
1869
  message: o,
1837
- code: a
1870
+ error: a
1871
+ };
1872
+ }
1873
+ /**
1874
+ * 获取指定活动玩法的 UGC 投稿排行榜数据
1875
+ *
1876
+ * 该接口仅在管理员在 Console 后台完成排行榜结算后才会返回有效数据。
1877
+ * 结算前调用将返回空结果集。
1878
+ * 排行榜结算通常在活动结束后由管理员在 Console 后台手动触发。
1879
+ * 目前前端无法直接在投稿玩法中获得「是否已经结算」的状态。
1880
+ *
1881
+ * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=KoB7S8omkC
1882
+ */
1883
+ async getUgcLeaderboard(t, n) {
1884
+ if (!await this.token.autoLogin()) return null;
1885
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", kr, {
1886
+ ...n,
1887
+ params: {
1888
+ feature_id: t,
1889
+ event_id: this.event
1890
+ }
1891
+ });
1892
+ return r || {
1893
+ message: o,
1894
+ error: a
1838
1895
  };
1839
1896
  }
1840
1897
  }
1841
- const wr = {
1898
+ const vr = {
1842
1899
  /** 所有人均可以发帖 */
1843
1900
  All: "all",
1844
1901
  /** 指定用户可发帖 */
1845
1902
  Limit: "limit"
1846
- }, kr = e.string().enum(wr).lock(), vr = {
1903
+ }, Vr = e.string().enum(vr).lock(), Cr = {
1847
1904
  /** 待审核(仅自己可见) */
1848
1905
  Pending: "pending",
1849
1906
  /** 审核通过 */
@@ -1852,14 +1909,14 @@ const wr = {
1852
1909
  Failed: "failed",
1853
1910
  /** 嫌疑(仅自己可见) */
1854
1911
  Suspect: "suspect"
1855
- }, oe = e.string().enum(vr).lock(), Vr = {
1912
+ }, ie = e.string().enum(Cr).lock(), Rr = {
1856
1913
  /** 系统通知 */
1857
1914
  System: "system",
1858
1915
  /** 评论我的 */
1859
1916
  Comment: "comment",
1860
1917
  /** 点赞通知 */
1861
1918
  Like: "like"
1862
- }, ma = e.string().enum(Vr).lock(), m = {
1919
+ }, ga = e.string().enum(Rr).lock(), m = {
1863
1920
  /** 系统通知 */
1864
1921
  System: "system",
1865
1922
  /** 帖子被置顶 */
@@ -1884,13 +1941,13 @@ const wr = {
1884
1941
  ReplyLiked: "reply_liked",
1885
1942
  /** 回复被删除 */
1886
1943
  ReplyDeleted: "reply_deleted"
1887
- }, Cr = e.string().enum(m).lock(), ie = e.object({
1944
+ }, jr = e.string().enum(m).lock(), se = e.object({
1888
1945
  forum_id: e.number(),
1889
1946
  icon_url: e.string(),
1890
1947
  name: e.string(),
1891
1948
  tags: e.array(e.string()),
1892
1949
  sort: e.number(),
1893
- mode: kr,
1950
+ mode: Vr,
1894
1951
  member_ids: e.array(e.number())
1895
1952
  }).lock(), F = e.object({
1896
1953
  topic_id: e.number(),
@@ -1901,7 +1958,7 @@ const wr = {
1901
1958
  post_num: e.number()
1902
1959
  }).lock(), D = e.object({
1903
1960
  post_id: e.number(),
1904
- forum: ie,
1961
+ forum: se,
1905
1962
  posted_by: e.string(),
1906
1963
  nickname: e.string(),
1907
1964
  avatar_url: e.string(),
@@ -1917,11 +1974,11 @@ const wr = {
1917
1974
  event_ids: e.array(e.number()),
1918
1975
  is_pinned: e.bool(),
1919
1976
  is_highlighted: e.bool(),
1920
- status: oe,
1977
+ status: ie,
1921
1978
  create_time: e.number()
1922
- }).lock(), se = e.object({
1979
+ }).lock(), ce = e.object({
1923
1980
  err_msg: e.string().optional()
1924
- }).optional().lock(), Rr = e.object({
1981
+ }).optional().lock(), Tr = e.object({
1925
1982
  reply_id: e.number(),
1926
1983
  reply_content: e.string().optional(),
1927
1984
  replied_by: e.string(),
@@ -1940,7 +1997,7 @@ const wr = {
1940
1997
  content: e.string(),
1941
1998
  like_num: e.number(),
1942
1999
  liked: e.bool(),
1943
- reply_to: Rr,
2000
+ reply_to: Tr,
1944
2001
  create_time: e.number()
1945
2002
  }).lock(), w = e.object({
1946
2003
  comment_id: e.number(),
@@ -1960,21 +2017,21 @@ const wr = {
1960
2017
  liked: e.bool(),
1961
2018
  image_url: e.string(),
1962
2019
  create_time: e.number(),
1963
- status: oe,
2020
+ status: ie,
1964
2021
  replies: e.array(C).optional()
1965
- }).lock(), jr = e.object({
2022
+ }).lock(), qr = e.object({
1966
2023
  image_url: e.string(),
1967
2024
  upload_url: e.string(),
1968
2025
  existed: e.bool()
1969
2026
  }).lock(), _ = e.object({
1970
2027
  notification_id: e.string(),
1971
- notification_type: Cr,
2028
+ notification_type: jr,
1972
2029
  is_read: e.bool(),
1973
2030
  create_time: e.number(),
1974
2031
  origin_user_id: e.string(),
1975
2032
  origin_user_name: e.string(),
1976
2033
  origin_user_avatar_url: e.string()
1977
- }).lock(), Tr = e.object({
2034
+ }).lock(), xr = e.object({
1978
2035
  system_message_subject: e.string(),
1979
2036
  system_message_content: e.string()
1980
2037
  }).lock(), I = e.object({
@@ -1988,11 +2045,11 @@ const wr = {
1988
2045
  }).lock(), A = e.object({
1989
2046
  reply_id: e.number(),
1990
2047
  reply_content: e.string()
1991
- }).lock(), qr = e.object({
2048
+ }).lock(), Sr = e.object({
1992
2049
  ..._.shape,
1993
- ...Tr.shape,
2050
+ ...xr.shape,
1994
2051
  notification_type: e.string().enum(m.System)
1995
- }), xr = e.object({
2052
+ }), Lr = e.object({
1996
2053
  ..._.shape,
1997
2054
  ...I.shape,
1998
2055
  notification_type: e.string().enum(
@@ -2001,68 +2058,68 @@ const wr = {
2001
2058
  m.PostDeleted,
2002
2059
  m.PostLiked
2003
2060
  )
2004
- }), Sr = e.object({
2061
+ }), Pr = e.object({
2005
2062
  ..._.shape,
2006
2063
  ...I.shape,
2007
2064
  ...R.shape,
2008
2065
  notification_type: e.string().enum(m.PostCommented)
2009
- }), Lr = e.object({
2066
+ }), Er = e.object({
2010
2067
  ..._.shape,
2011
2068
  ...R.shape,
2012
2069
  ...A.shape,
2013
2070
  notification_type: e.string().enum(m.CommentReplied)
2014
- }), Pr = e.object({
2071
+ }), $r = e.object({
2015
2072
  ..._.shape,
2016
2073
  ...R.shape,
2017
2074
  ...I.shape,
2018
2075
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
2019
- }), Er = e.object({
2076
+ }), Ur = e.object({
2020
2077
  ..._.shape,
2021
2078
  ...A.shape,
2022
2079
  notification_type: e.string().enum(m.ReplyReplied),
2023
2080
  comment_id: e.number(),
2024
2081
  reply_to_reply_id: e.number(),
2025
2082
  reply_to_reply_content: e.string()
2026
- }), $r = e.object({
2083
+ }), Fr = e.object({
2027
2084
  ..._.shape,
2028
2085
  ...A.shape,
2029
2086
  ...R.shape,
2030
2087
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
2031
- }), Ur = e.union(
2032
- qr,
2033
- xr,
2088
+ }), Dr = e.union(
2034
2089
  Sr,
2035
2090
  Lr,
2036
2091
  Pr,
2037
2092
  Er,
2038
- $r
2039
- ).satisfies().lock(), Fr = s({ forums: e.array(ie) }), Dr = s({ topics: e.array(F) }), Ir = s({ topic: F }), Ar = s({ post: D }), M = s({
2093
+ $r,
2094
+ Ur,
2095
+ Fr
2096
+ ).satisfies().lock(), Ir = s({ forums: e.array(se) }), Ar = s({ topics: e.array(F) }), Gr = s({ topic: F }), Or = s({ post: D }), K = s({
2040
2097
  posts: e.array(D),
2041
2098
  next_token: e.string().optional()
2042
- }), Gr = s({
2099
+ }), Nr = s({
2043
2100
  post: D.clone().optional(),
2044
- antispam: se.clone().optional()
2045
- }), Or = s({
2101
+ antispam: ce.clone().optional()
2102
+ }), Qr = s({
2046
2103
  replies: e.array(C),
2047
2104
  next_token: e.string().optional()
2048
- }), Nr = s({ reply: C }), Qr = s({
2105
+ }), Br = s({ reply: C }), Mr = s({
2049
2106
  reply: C.clone().optional(),
2050
- antispam: se.clone().optional()
2051
- }), Br = s({ comment: w }), Mr = s({
2107
+ antispam: ce.clone().optional()
2108
+ }), Kr = s({ comment: w }), Hr = s({
2052
2109
  comments: e.array(w),
2053
2110
  next_token: e.string().optional()
2054
- }), Kr = s({
2111
+ }), zr = s({
2055
2112
  comment: w.clone().optional(),
2056
2113
  antispam: w.clone().optional()
2057
- }), Hr = e.guard(jr), zr = s({
2058
- notifications: e.array(Ur),
2114
+ }), Jr = e.guard(qr), Zr = s({
2115
+ notifications: e.array(Dr),
2059
2116
  next_token: e.string().optional()
2060
- }), Jr = s({
2117
+ }), Xr = s({
2061
2118
  system: e.number(),
2062
2119
  comment: e.number(),
2063
2120
  like: e.number()
2064
2121
  });
2065
- class da {
2122
+ class pa {
2066
2123
  token;
2067
2124
  req;
2068
2125
  constructor(t) {
@@ -2074,7 +2131,7 @@ class da {
2074
2131
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
2075
2132
  */
2076
2133
  async getForums(t) {
2077
- const { data: n } = await this.req.get("community/forums", Fr, t);
2134
+ const { data: n } = await this.req.get("community/forums", Ir, t);
2078
2135
  return n?.forums || [];
2079
2136
  }
2080
2137
  /**
@@ -2083,7 +2140,7 @@ class da {
2083
2140
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
2084
2141
  */
2085
2142
  async getTopics(t) {
2086
- const { data: n } = await this.req.get("community/topics", Dr, t);
2143
+ const { data: n } = await this.req.get("community/topics", Ar, t);
2087
2144
  return n?.topics || [];
2088
2145
  }
2089
2146
  /**
@@ -2092,7 +2149,7 @@ class da {
2092
2149
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
2093
2150
  */
2094
2151
  async getTopic(t, n) {
2095
- const { data: r, code: a } = await this.req.get("community/topic", Ir, {
2152
+ const { data: r, code: a } = await this.req.get("community/topic", Gr, {
2096
2153
  ...n,
2097
2154
  params: { topic_id: t }
2098
2155
  });
@@ -2104,7 +2161,7 @@ class da {
2104
2161
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
2105
2162
  */
2106
2163
  async getPosts(t, n) {
2107
- const { data: r, code: a, message: o } = await this.req.get("community/posts", M, {
2164
+ const { data: r, code: a, message: o } = await this.req.get("community/posts", K, {
2108
2165
  ...n,
2109
2166
  params: c(t)
2110
2167
  });
@@ -2119,13 +2176,13 @@ class da {
2119
2176
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
2120
2177
  */
2121
2178
  async getPinnedPosts(t, n, r, a) {
2122
- const { data: o, code: g, message: p } = await this.req.get("community/pinned-posts", M, {
2179
+ const { data: o, code: d, message: p } = await this.req.get("community/pinned-posts", K, {
2123
2180
  ...a,
2124
2181
  params: c({ forum_id: t, max_results: n, next_token: r })
2125
2182
  });
2126
2183
  return o ?? {
2127
2184
  message: p,
2128
- error: g
2185
+ error: d
2129
2186
  };
2130
2187
  }
2131
2188
  /**
@@ -2134,7 +2191,7 @@ class da {
2134
2191
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2135
2192
  */
2136
2193
  async getPost(t, n) {
2137
- const { data: r, code: a, message: o } = await this.req.get("community/post", Ar, {
2194
+ const { data: r, code: a, message: o } = await this.req.get("community/post", Or, {
2138
2195
  ...n,
2139
2196
  params: { post_id: t }
2140
2197
  });
@@ -2152,7 +2209,7 @@ class da {
2152
2209
  const { data: r, code: a, message: o } = await this.req.post(
2153
2210
  "community/post",
2154
2211
  c(t),
2155
- Gr,
2212
+ Nr,
2156
2213
  n
2157
2214
  );
2158
2215
  return r ?? {
@@ -2166,7 +2223,7 @@ class da {
2166
2223
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2167
2224
  */
2168
2225
  async getComments(t, n) {
2169
- const { data: r, code: a, message: o } = await this.req.get("community/comments", Mr, {
2226
+ const { data: r, code: a, message: o } = await this.req.get("community/comments", Hr, {
2170
2227
  ...n,
2171
2228
  params: c(t)
2172
2229
  });
@@ -2181,7 +2238,7 @@ class da {
2181
2238
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2182
2239
  */
2183
2240
  async getComment(t, n) {
2184
- const { data: r, code: a, message: o } = await this.req.get("community/comment", Br, {
2241
+ const { data: r, code: a, message: o } = await this.req.get("community/comment", Kr, {
2185
2242
  ...n,
2186
2243
  params: { comment_id: t }
2187
2244
  });
@@ -2200,7 +2257,7 @@ class da {
2200
2257
  const { data: r, code: a, message: o } = await this.req.post(
2201
2258
  "community/comment",
2202
2259
  c(t),
2203
- Kr,
2260
+ zr,
2204
2261
  n
2205
2262
  );
2206
2263
  return r ?? {
@@ -2214,7 +2271,7 @@ class da {
2214
2271
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2215
2272
  */
2216
2273
  async getReplies(t, n) {
2217
- const { data: r } = await this.req.get("community/replies", Or, {
2274
+ const { data: r } = await this.req.get("community/replies", Qr, {
2218
2275
  ...n,
2219
2276
  params: c({ max_results: 20, ...t })
2220
2277
  });
@@ -2229,7 +2286,7 @@ class da {
2229
2286
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2230
2287
  */
2231
2288
  async getReply(t, n) {
2232
- const { data: r, code: a, message: o } = await this.req.get("community/reply", Nr, {
2289
+ const { data: r, code: a, message: o } = await this.req.get("community/reply", Br, {
2233
2290
  ...n,
2234
2291
  params: { reply_id: t }
2235
2292
  });
@@ -2248,7 +2305,7 @@ class da {
2248
2305
  const { data: r, code: a, message: o } = await this.req.post(
2249
2306
  "community/reply",
2250
2307
  c(t),
2251
- Qr,
2308
+ Mr,
2252
2309
  n
2253
2310
  );
2254
2311
  return r ?? {
@@ -2299,7 +2356,7 @@ class da {
2299
2356
  */
2300
2357
  async getMediaPresignedUrl(t, n) {
2301
2358
  await this.token.autoLogin();
2302
- const { data: r } = await this.req.get("community/media-presign-url", Hr, {
2359
+ const { data: r } = await this.req.get("community/media-presign-url", Jr, {
2303
2360
  ...n,
2304
2361
  params: t
2305
2362
  });
@@ -2314,7 +2371,7 @@ class da {
2314
2371
  */
2315
2372
  async getNotifications(t, n) {
2316
2373
  await this.token.autoLogin();
2317
- const { data: r } = await this.req.get("community/notifications", zr, {
2374
+ const { data: r } = await this.req.get("community/notifications", Zr, {
2318
2375
  ...n,
2319
2376
  params: c({ max_results: 20, ...t })
2320
2377
  });
@@ -2332,7 +2389,7 @@ class da {
2332
2389
  if (!await this.token.autoLogin()) return null;
2333
2390
  const { data: n } = await this.req.get(
2334
2391
  "community/unread-notifications-count",
2335
- Jr,
2392
+ Xr,
2336
2393
  t
2337
2394
  );
2338
2395
  return n;
@@ -2348,17 +2405,17 @@ class da {
2348
2405
  return r;
2349
2406
  }
2350
2407
  }
2351
- const Zr = s({
2408
+ const Yr = s({
2352
2409
  nonce_str: e.string(),
2353
2410
  timestamp: e.number(),
2354
2411
  signature: e.string()
2355
2412
  });
2356
- var Xr = /* @__PURE__ */ ((i) => (i.RedirectUriDisMatch = "10003", i.AppidError = "10016", i.AuthorizationError = "10015", i.NoRightForScope = "10005", i.Frequently = "10009", i.AppBanded = "10004", i.ShouldFollow = "10006", i.ScopeNull = "10010", i.RedirectUriNull = "10011", i.AppidNull = "10012", i.StateNull = "10013", i))(Xr || {});
2413
+ var Wr = /* @__PURE__ */ ((i) => (i.RedirectUriDisMatch = "10003", i.AppidError = "10016", i.AuthorizationError = "10015", i.NoRightForScope = "10005", i.Frequently = "10009", i.AppBanded = "10004", i.ShouldFollow = "10006", i.ScopeNull = "10010", i.RedirectUriNull = "10011", i.AppidNull = "10012", i.StateNull = "10013", i))(Wr || {});
2357
2414
  function S(i) {
2358
2415
  return k(i, "open_id", "union_id", "weixin_token");
2359
2416
  }
2360
- const K = "wx_login_cache";
2361
- class ga {
2417
+ const H = "wx_login_cache";
2418
+ class _a {
2362
2419
  token;
2363
2420
  $appid;
2364
2421
  req;
@@ -2389,10 +2446,10 @@ class ga {
2389
2446
  * 也可以直接调用 login 方法,并传入 weixin code 的读取函数
2390
2447
  */
2391
2448
  async getLoginCache() {
2392
- const t = this.token.storage.get(K);
2449
+ const t = this.token.storage.get(H);
2393
2450
  if (!t)
2394
2451
  return null;
2395
- const n = be(t);
2452
+ const n = ye(t);
2396
2453
  return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2397
2454
  }
2398
2455
  /**
@@ -2418,14 +2475,14 @@ class ga {
2418
2475
  const n = await this.getLoginCache();
2419
2476
  if (n)
2420
2477
  return n;
2421
- const r = await fe(), { data: a, code: o, message: g } = await this.req.post(
2478
+ const r = await we(), { data: a, code: o, message: d } = await this.req.post(
2422
2479
  "weixin/login",
2423
2480
  { code: r, appid: this.appid },
2424
2481
  S,
2425
2482
  { ...t, message: !1 }
2426
2483
  );
2427
- return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(K, JSON.stringify(a))), a ?? {
2428
- message: g,
2484
+ return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(H, JSON.stringify(a))), a ?? {
2485
+ message: d,
2429
2486
  error: o
2430
2487
  };
2431
2488
  }
@@ -2448,9 +2505,9 @@ class ga {
2448
2505
  async webLogin(t = "snsapi_userinfo", n) {
2449
2506
  const r = L("code"), a = Date.now(), o = +L("state");
2450
2507
  if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
2451
- const ue = G(["code", "state"]);
2508
+ const me = G(["code", "state"]);
2452
2509
  location.replace(
2453
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ue)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2510
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(me)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2454
2511
  );
2455
2512
  return;
2456
2513
  }
@@ -2459,16 +2516,16 @@ class ga {
2459
2516
  message: "Error: " + r,
2460
2517
  error: r
2461
2518
  };
2462
- const g = G(["code", "state"]);
2463
- "replaceState" in history && history.replaceState({}, "", g);
2519
+ const d = G(["code", "state"]);
2520
+ "replaceState" in history && history.replaceState({}, "", d);
2464
2521
  const {
2465
2522
  data: p,
2466
- code: ce,
2467
- message: le
2523
+ code: le,
2524
+ message: ue
2468
2525
  } = await this.req.post("weixin/login", { code: r, appid: this.appid }, S, n);
2469
2526
  return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? {
2470
- message: le,
2471
- error: ce
2527
+ message: ue,
2528
+ error: le
2472
2529
  };
2473
2530
  }
2474
2531
  /**
@@ -2498,7 +2555,7 @@ class ga {
2498
2555
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2499
2556
  */
2500
2557
  async getJSSDKConfig(t) {
2501
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", Zr, {
2558
+ const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", Yr, {
2502
2559
  ...t,
2503
2560
  params: {
2504
2561
  appid: this.appid,
@@ -2514,165 +2571,166 @@ class ga {
2514
2571
  }
2515
2572
  }
2516
2573
  export {
2517
- se as AntispamValidator,
2518
- ta as AuthToken,
2519
- Nn as CandidateVoteValidator,
2520
- re as CashbackEngagementDataValidator,
2521
- kn as ClaimActivationKeyEngagementDataValidator,
2522
- st as ClaimRewardStatus,
2574
+ ce as AntispamValidator,
2575
+ ra as AuthToken,
2576
+ Bn as CandidateVoteValidator,
2577
+ ae as CashbackEngagementDataValidator,
2578
+ vn as ClaimActivationKeyEngagementDataValidator,
2579
+ ct as ClaimRewardStatus,
2523
2580
  E as ClaimRewardStatusValidator,
2524
- Yn as ClaimedItemValidator,
2525
- J as ClubAddressValidator,
2526
- ra as ClubApi,
2527
- Z as ClubBenefitSummaryValidator,
2528
- Ae as ClubBenefitValidator,
2529
- je as ClubCreditChangeScene,
2530
- Te as ClubCreditChangeSceneValidator,
2531
- Ce as ClubCreditChangeType,
2532
- Re as ClubCreditChangeTypeValidator,
2533
- Ie as ClubCreditLogValidator,
2534
- Le as ClubGlobalConfigValidator,
2535
- qe as ClubItemType,
2536
- H as ClubItemTypeValidator,
2537
- Pe as ClubPlayerValidator,
2538
- X as ClubProductValidator,
2539
- xe as ClubRedemptionStatus,
2540
- Se as ClubRedemptionStatusValidator,
2541
- De as ClubUserCreditValidator,
2542
- Fe as ClubUserProfileValidator,
2543
- Mn as CommentEngagementValidator,
2581
+ er as ClaimedItemValidator,
2582
+ Z as ClubAddressValidator,
2583
+ oa as ClubApi,
2584
+ X as ClubBenefitSummaryValidator,
2585
+ Ge as ClubBenefitValidator,
2586
+ Te as ClubCreditChangeScene,
2587
+ qe as ClubCreditChangeSceneValidator,
2588
+ Re as ClubCreditChangeType,
2589
+ je as ClubCreditChangeTypeValidator,
2590
+ Ae as ClubCreditLogValidator,
2591
+ Pe as ClubGlobalConfigValidator,
2592
+ xe as ClubItemType,
2593
+ z as ClubItemTypeValidator,
2594
+ Ee as ClubPlayerValidator,
2595
+ Y as ClubProductValidator,
2596
+ Se as ClubRedemptionStatus,
2597
+ Le as ClubRedemptionStatusValidator,
2598
+ Ie as ClubUserCreditValidator,
2599
+ De as ClubUserProfileValidator,
2600
+ Hn as CommentEngagementValidator,
2544
2601
  w as CommentValidator,
2545
- da as CommunityApi,
2546
- Qn as ConversationValidator,
2547
- Ye as EngageAccountType,
2548
- We as EngageAccountTypeValidator,
2549
- Xn as EngageResponseValidator,
2550
- Hn as EngageRewardValidator,
2551
- ua as EventApi,
2552
- wn as EventConfigValidator,
2553
- Ct as EventFeatureConfigOfCashbackValidator,
2554
- jt as EventFeatureConfigOfCheckInValidator,
2555
- qt as EventFeatureConfigOfClaimActivationKeyValidator,
2556
- St as EventFeatureConfigOfClaimRewardsValidator,
2557
- Pt as EventFeatureConfigOfCommentValidator,
2558
- $t as EventFeatureConfigOfFollowValidator,
2559
- Dt as EventFeatureConfigOfGiftCodeValidator,
2560
- At as EventFeatureConfigOfInviteValidator,
2561
- Ot as EventFeatureConfigOfInvitedRegisterValidator,
2562
- Ht as EventFeatureConfigOfLotteryDrawValidator,
2563
- Mt as EventFeatureConfigOfLotteryValidator,
2564
- Jt as EventFeatureConfigOfPreregisterValidator,
2565
- Xt as EventFeatureConfigOfQuestValidator,
2566
- Wt as EventFeatureConfigOfRegisterValidator,
2567
- tn as EventFeatureConfigOfShareValidator,
2568
- rn as EventFeatureConfigOfSubscribeValidator,
2569
- on as EventFeatureConfigOfSurveyValidator,
2570
- cn as EventFeatureConfigOfTeamValidator,
2571
- un as EventFeatureConfigOfUgcValidator,
2572
- bn as EventFeatureConfigOfVote2Validator,
2573
- gn as EventFeatureConfigOfVoteValidator,
2574
- fn as EventFeatureConfigValidator,
2575
- et as EventPeriodType,
2576
- tt as EventPeriodTypeValidator,
2602
+ pa as CommunityApi,
2603
+ Mn as ConversationValidator,
2604
+ We as EngageAccountType,
2605
+ et as EngageAccountTypeValidator,
2606
+ Wn as EngageResponseValidator,
2607
+ Jn as EngageRewardValidator,
2608
+ da as EventApi,
2609
+ kn as EventConfigValidator,
2610
+ Rt as EventFeatureConfigOfCashbackValidator,
2611
+ Tt as EventFeatureConfigOfCheckInValidator,
2612
+ xt as EventFeatureConfigOfClaimActivationKeyValidator,
2613
+ Lt as EventFeatureConfigOfClaimRewardsValidator,
2614
+ Et as EventFeatureConfigOfCommentValidator,
2615
+ Ut as EventFeatureConfigOfFollowValidator,
2616
+ It as EventFeatureConfigOfGiftCodeValidator,
2617
+ Gt as EventFeatureConfigOfInviteValidator,
2618
+ Nt as EventFeatureConfigOfInvitedRegisterValidator,
2619
+ zt as EventFeatureConfigOfLotteryDrawValidator,
2620
+ Kt as EventFeatureConfigOfLotteryValidator,
2621
+ Zt as EventFeatureConfigOfPreregisterValidator,
2622
+ Yt as EventFeatureConfigOfQuestValidator,
2623
+ en as EventFeatureConfigOfRegisterValidator,
2624
+ nn as EventFeatureConfigOfShareValidator,
2625
+ an as EventFeatureConfigOfSubscribeValidator,
2626
+ sn as EventFeatureConfigOfSurveyValidator,
2627
+ ln as EventFeatureConfigOfTeamValidator,
2628
+ mn as EventFeatureConfigOfUgcValidator,
2629
+ yn as EventFeatureConfigOfVote2Validator,
2630
+ pn as EventFeatureConfigOfVoteValidator,
2631
+ wn as EventFeatureConfigValidator,
2632
+ tt as EventPeriodType,
2633
+ nt as EventPeriodTypeValidator,
2577
2634
  y as EventRewardItemConfigValidator,
2578
- Oe as ExtraGameRewardValidator,
2579
- Ge as ExtraPhysicalShipmentValidator,
2580
- vt as FeatureRewardValidator,
2635
+ Ne as ExtraGameRewardValidator,
2636
+ Oe as ExtraPhysicalShipmentValidator,
2637
+ Vt as FeatureRewardValidator,
2581
2638
  l as FeatureType,
2582
- nt as FeatureTypeValidator,
2583
- wr as ForumMode,
2584
- kr as ForumModeValidator,
2585
- ie as ForumValidator,
2639
+ rt as FeatureTypeValidator,
2640
+ vr as ForumMode,
2641
+ Vr as ForumModeValidator,
2642
+ se as ForumValidator,
2586
2643
  v as GamerItemType,
2587
- Y as GamerItemTypeValidator,
2588
- ve as Gender,
2589
- Ve as GenderValidator,
2590
- vn as GiftCodeEngagementDataValidator,
2591
- Vn as InviteEngagementDataValidator,
2592
- dt as LotteryDrawAction,
2593
- ca as LotteryDrawActionValidator,
2594
- Tn as LotteryDrawEngagementDataValidator,
2595
- Cn as LotteryEngagementDataValidator,
2644
+ W as GamerItemTypeValidator,
2645
+ Ve as Gender,
2646
+ Ce as GenderValidator,
2647
+ Vn as GiftCodeEngagementDataValidator,
2648
+ Cn as InviteEngagementDataValidator,
2649
+ gt as LotteryDrawAction,
2650
+ ua as LotteryDrawActionValidator,
2651
+ qn as LotteryDrawEngagementDataValidator,
2652
+ Rn as LotteryEngagementDataValidator,
2596
2653
  f as LotteryTicketStatus,
2597
- ia as LotteryTicketStatusValidator,
2654
+ ca as LotteryTicketStatusValidator,
2598
2655
  _ as NotificationBaseValidator,
2599
- Vr as NotificationCategory,
2600
- ma as NotificationCategoryValidator,
2601
- Lr as NotificationCommentReplyValidator,
2602
- Pr as NotificationCommentValidator,
2656
+ Rr as NotificationCategory,
2657
+ ga as NotificationCategoryValidator,
2658
+ Er as NotificationCommentReplyValidator,
2659
+ $r as NotificationCommentValidator,
2603
2660
  R as NotificationPayloadCommentValidator,
2604
2661
  I as NotificationPayloadPostValidator,
2605
2662
  A as NotificationPayloadReplyValidator,
2606
- Tr as NotificationPayloadSystemValidator,
2607
- Sr as NotificationPostCommentValidator,
2608
- xr as NotificationPostValidator,
2609
- Er as NotificationReplyRepliedValidator,
2610
- $r as NotificationReplyValidator,
2611
- qr as NotificationSystemValidator,
2663
+ xr as NotificationPayloadSystemValidator,
2664
+ Pr as NotificationPostCommentValidator,
2665
+ Lr as NotificationPostValidator,
2666
+ Ur as NotificationReplyRepliedValidator,
2667
+ Fr as NotificationReplyValidator,
2668
+ Sr as NotificationSystemValidator,
2612
2669
  m as NotificationType,
2613
- Cr as NotificationTypeValidator,
2614
- Ur as NotificationValidator,
2615
- Ue as PlayerRoleCardValidator,
2616
- z as PlayerRoleValidator,
2617
- vr as PostStatus,
2618
- oe as PostStatusValidator,
2670
+ jr as NotificationTypeValidator,
2671
+ Dr as NotificationValidator,
2672
+ Fe as PlayerRoleCardValidator,
2673
+ J as PlayerRoleValidator,
2674
+ Cr as PostStatus,
2675
+ ie as PostStatusValidator,
2619
2676
  D as PostValidator,
2620
- qn as PreregisterEngagementDataValidator,
2621
- jr as PresignedUrlResponseValidator,
2622
- xn as QuestEngagementDataValidator,
2623
- rt as QuestObjective,
2624
- ee as QuestObjectiveValidator,
2625
- gt as QuestProgressAlgorithm,
2626
- pt as QuestProgressAlgorithmValidator,
2627
- Sn as QuestProgressValidator,
2628
- na as RedeemParamsValidator,
2629
- Ne as RedemptionValidator,
2630
- kt as RegularRewardValidator,
2631
- Rr as ReplyToValidator,
2677
+ xn as PreregisterEngagementDataValidator,
2678
+ qr as PresignedUrlResponseValidator,
2679
+ Sn as QuestEngagementDataValidator,
2680
+ at as QuestObjective,
2681
+ te as QuestObjectiveValidator,
2682
+ pt as QuestProgressAlgorithm,
2683
+ _t as QuestProgressAlgorithmValidator,
2684
+ Ln as QuestProgressValidator,
2685
+ aa as RedeemParamsValidator,
2686
+ Qe as RedemptionValidator,
2687
+ vt as RegularRewardValidator,
2688
+ Tr as ReplyToValidator,
2632
2689
  C as ReplyValidator,
2633
- aa as RewardItemType,
2634
- W as RewardItemTypeValidator,
2635
- ct as RewardSource,
2690
+ ia as RewardItemType,
2691
+ ee as RewardItemTypeValidator,
2692
+ lt as RewardSource,
2636
2693
  $ as RewardSourceValidator,
2637
- d as RewardStatus,
2638
- it as RewardStatusSuffix,
2639
- te as RewardStatusSuffixValidator,
2640
- oa as RewardStatusValidator,
2641
- Kn as RewardValidator,
2642
- $e as RoleBaseInfoValidator,
2643
- Ee as ServerBaseInfoValidator,
2644
- Ln as ShareEngagementDataValidator,
2645
- En as SurveyEngagementDataValidator,
2646
- mt as TeamAction,
2647
- sa as TeamActionValidator,
2648
- Un as TeamEngagementDataValidator,
2649
- $n as TeamEngagementValidator,
2650
- la as TeamMemberValidator,
2651
- lt as TeamVisibility,
2652
- ut as TeamVisibilityValidator,
2694
+ g as RewardStatus,
2695
+ st as RewardStatusSuffix,
2696
+ ne as RewardStatusSuffixValidator,
2697
+ sa as RewardStatusValidator,
2698
+ zn as RewardValidator,
2699
+ Ue as RoleBaseInfoValidator,
2700
+ $e as ServerBaseInfoValidator,
2701
+ Pn as ShareEngagementDataValidator,
2702
+ $n as SurveyEngagementDataValidator,
2703
+ dt as TeamAction,
2704
+ la as TeamActionValidator,
2705
+ Fn as TeamEngagementDataValidator,
2706
+ Un as TeamEngagementValidator,
2707
+ ma as TeamMemberValidator,
2708
+ ut as TeamVisibility,
2709
+ mt as TeamVisibilityValidator,
2653
2710
  F as TopicValidator,
2654
- Fn as UgcEngagementDataValidator,
2655
- Dn as UgcRecordResponseValidator,
2656
- ht as UgcReviewStatus,
2657
- ft as UgcReviewStatusValidator,
2658
- yt as UgcSocialMedia,
2659
- ne as UgcSocialMediaValidator,
2660
- In as UgcUploadImageValidator,
2711
+ Dn as UgcEngagementDataValidator,
2712
+ Gn as UgcLeaderboardResponseValidator,
2713
+ In as UgcRecordResponseValidator,
2714
+ ft as UgcReviewStatus,
2715
+ wt as UgcReviewStatusValidator,
2716
+ ht as UgcSocialMedia,
2717
+ re as UgcSocialMediaValidator,
2718
+ An as UgcUploadImageValidator,
2661
2719
  U as UserEngagementDataValidator,
2662
- zn as UserEngagementValidator,
2663
- Zn as UserFeatureStatusValidator,
2720
+ Zn as UserEngagementValidator,
2721
+ Yn as UserFeatureStatusValidator,
2664
2722
  V as UserRewardValidator,
2665
- Jn as VerifyMobileResultValidator,
2666
- On as Vote2ClaimRewardsResponseValidator,
2667
- Gn as Vote2EngagementDataValidator,
2668
- _t as Vote2RewardType,
2669
- bt as Vote2RewardTypeValidator,
2670
- An as VoteEngagementDataValidator,
2671
- at as VoteOptionSource,
2672
- ot as VoteOptionSourceValidator,
2673
- ga as WeixinApi,
2674
- Pn as WeixinSubscribeEngagementDataValidator,
2675
- Xr as WeixinWebLoginErrorCode,
2676
- Bn as ZeroChatGPTDataValidator,
2677
- Zr as isWeixinSignResponse
2723
+ Xn as VerifyMobileResultValidator,
2724
+ Qn as Vote2ClaimRewardsResponseValidator,
2725
+ Nn as Vote2EngagementDataValidator,
2726
+ bt as Vote2RewardType,
2727
+ yt as Vote2RewardTypeValidator,
2728
+ On as VoteEngagementDataValidator,
2729
+ ot as VoteOptionSource,
2730
+ it as VoteOptionSourceValidator,
2731
+ _a as WeixinApi,
2732
+ En as WeixinSubscribeEngagementDataValidator,
2733
+ Wr as WeixinWebLoginErrorCode,
2734
+ Kn as ZeroChatGPTDataValidator,
2735
+ Yr as isWeixinSignResponse
2678
2736
  };