@seayoo-web/gamer-api 2.11.2 → 2.12.1

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