@seayoo-web/gamer-api 4.2.3 → 4.3.2

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
@@ -190,24 +190,24 @@ var p = "gamer_token", ce = class {
190
190
  credit_expiring: f.number(),
191
191
  level_change_time: f.number(),
192
192
  level_expire_time: f.number()
193
- }).lock(), be = f.object({
193
+ }).lock(), h = f.object({
194
194
  server_id: f.string(),
195
195
  server_name: f.string()
196
- }).lock(), xe = f.object({
196
+ }).lock(), be = f.object({
197
197
  role_id: f.string(),
198
198
  role_name: f.string()
199
- }).lock(), h = f.object({
200
- ...xe.shape,
199
+ }).lock(), g = f.object({
201
200
  ...be.shape,
201
+ ...h.shape,
202
202
  role_level: f.number(),
203
203
  last_login_time: f.number()
204
- }).lock(), Se = f.object({
205
- ...h.shape,
204
+ }).lock(), xe = f.object({
205
+ ...g.shape,
206
206
  role_fighting: f.number(),
207
207
  kin_id: f.string().optional(),
208
208
  kin_name: f.string().optional(),
209
209
  kin_position: f.string().optional()
210
- }).lock(), Ce = f.object({
210
+ }).lock(), Se = f.object({
211
211
  name: f.string(),
212
212
  avatar_url: f.string(),
213
213
  bio: f.string(),
@@ -221,7 +221,7 @@ var p = "gamer_token", ce = class {
221
221
  homepage_url: f.string(),
222
222
  homepage_image_url: f.string()
223
223
  }).optional()).optional()
224
- }).lock(), g = f.object({
224
+ }).lock(), _ = f.object({
225
225
  address_id: f.number(),
226
226
  recipient: f.string(),
227
227
  mobile: f.string(),
@@ -230,12 +230,12 @@ var p = "gamer_token", ce = class {
230
230
  district: f.string(),
231
231
  address: f.string(),
232
232
  is_default: f.bool()
233
- }).lock(), we = f.object({
233
+ }).lock(), Ce = f.object({
234
234
  increased_credit: f.number(),
235
235
  decreased_credit: f.number(),
236
236
  expired_credit: f.number(),
237
237
  balance_credit: f.number()
238
- }).lock(), Te = f.object({
238
+ }).lock(), we = f.object({
239
239
  id: f.number(),
240
240
  change_type: fe,
241
241
  change_scene: me,
@@ -243,7 +243,7 @@ var p = "gamer_token", ce = class {
243
243
  balance: f.number(),
244
244
  change_time: f.number(),
245
245
  metadata: f.record(f.unknown()).optional()
246
- }).lock(), _ = f.object({
246
+ }).lock(), v = f.object({
247
247
  benefit_id: f.number(),
248
248
  name: f.string(),
249
249
  img_url: f.string(),
@@ -252,7 +252,7 @@ var p = "gamer_token", ce = class {
252
252
  max_level: f.number(),
253
253
  product_id: f.number(),
254
254
  tag: f.string()
255
- }).lock(), v = f.object({
255
+ }).lock(), y = f.object({
256
256
  product_id: f.number(),
257
257
  catalog_id: f.number(),
258
258
  catalog_name: f.string(),
@@ -278,13 +278,13 @@ var p = "gamer_token", ce = class {
278
278
  created_at: f.number(),
279
279
  updated_at: f.number(),
280
280
  redeemable_quantity: f.number().optional()
281
- }).lock(), Ee = f.object({
282
- ...r(_.shape, "tag"),
283
- product: v.clone().optional()
284
- }).lock(), De = f.union(f.object({
281
+ }).lock(), Te = f.object({
282
+ ...r(v.shape, "tag"),
283
+ product: y.clone().optional()
284
+ }).lock(), Ee = f.union(f.object({
285
285
  server_id: f.string(),
286
286
  role_id: f.string()
287
- }), f.object({ address_id: f.number() })).satisfies().lock(), Oe = f.object({
287
+ }), f.object({ address_id: f.number() })).satisfies().lock(), De = f.object({
288
288
  recipient: f.string(),
289
289
  mobile: f.string(),
290
290
  province: f.string(),
@@ -293,11 +293,11 @@ var p = "gamer_token", ce = class {
293
293
  address: f.string(),
294
294
  express_company: f.string(),
295
295
  express_number: f.string()
296
- }).lock(), ke = f.object({
296
+ }).lock(), Oe = f.object({
297
297
  server_id: f.string(),
298
298
  role_id: f.string(),
299
299
  role_name: f.string()
300
- }).lock(), Ae = f.object({
300
+ }).lock(), ke = f.object({
301
301
  redemption_id: f.number(),
302
302
  player_id: f.string(),
303
303
  product_id: f.number(),
@@ -310,12 +310,12 @@ var p = "gamer_token", ce = class {
310
310
  amount: f.number(),
311
311
  status: _e,
312
312
  created_at: f.number(),
313
- extra_data: f.union(Oe.clone(), ke.clone()).satisfies().optional()
314
- }), je = f.guard(ve), Me = d({ player: ye }), Ne = d({ roles: f.array(h) }), y = d({ role_card: Se }), b = f.guard(Ce), x = f.guard(g), Pe = d({ addresses: f.array(g) }), Fe = f.guard(we), Ie = d({
315
- credit_logs: f.array(Te),
313
+ extra_data: f.union(De.clone(), Oe.clone()).satisfies().optional()
314
+ }), Ae = f.guard(ve), je = d({ player: ye }), Me = d({ roles: f.array(g) }), b = d({ role_card: xe }), x = f.guard(Se), Ne = f.guard(_), Pe = d({ addresses: f.array(_) }), Fe = f.guard(Ce), Ie = d({
315
+ credit_logs: f.array(we),
316
316
  next_token: f.string().optional()
317
- }), Le = d({ products: f.array(v) }), Re = d({ benefits: f.array(_) }), ze = d({ benefit: Ee }), Be = d({
318
- redemptions: f.array(Ae),
317
+ }), Le = d({ products: f.array(y) }), Re = d({ benefits: f.array(v) }), ze = d({ benefit: Te }), Be = d({
318
+ redemptions: f.array(ke),
319
319
  next_token: f.string().optional()
320
320
  }), Ve = d({
321
321
  existed: f.bool(),
@@ -329,12 +329,12 @@ var p = "gamer_token", ce = class {
329
329
  }
330
330
  async getConfig(e) {
331
331
  await this.token.autoLogin();
332
- let { data: t } = await this.req.get("club/config", null, je, e);
332
+ let { data: t } = await this.req.get("club/config", null, Ae, e);
333
333
  return t;
334
334
  }
335
335
  async getCurrentPlayer(e) {
336
336
  await this.token.autoLogin();
337
- let { data: t, code: n, message: r } = await this.req.get("club/current-player", null, Me, e);
337
+ let { data: t, code: n, message: r } = await this.req.get("club/current-player", null, je, e);
338
338
  return t?.player ?? {
339
339
  message: r,
340
340
  error: n
@@ -342,7 +342,7 @@ var p = "gamer_token", ce = class {
342
342
  }
343
343
  async linkPlayer(e) {
344
344
  await this.token.autoLogin();
345
- let { data: t, code: n, message: r } = await this.req.post("club/link-player", { id_token: this.token.idToken }, Me, e);
345
+ let { data: t, code: n, message: r } = await this.req.post("club/link-player", { id_token: this.token.idToken }, je, e);
346
346
  return t?.player ?? {
347
347
  message: r,
348
348
  error: n
@@ -353,27 +353,27 @@ var p = "gamer_token", ce = class {
353
353
  let { data: r } = await this.req.get("club/roles", {
354
354
  player_id: e,
355
355
  refresh: t
356
- }, Ne, n);
356
+ }, Me, n);
357
357
  return r?.roles || [];
358
358
  }
359
359
  async getRoleCard(e, t) {
360
360
  await this.token.autoLogin();
361
- let { data: n } = await this.req.get("club/role-card", { member_id: e }, y, t);
361
+ let { data: n } = await this.req.get("club/role-card", { member_id: e }, b, t);
362
362
  return n?.role_card ?? null;
363
363
  }
364
364
  async setRoleCard(e, t) {
365
365
  if (!await this.token.autoLogin()) return null;
366
- let { data: n } = await this.req.post("club/role-card", e, y, t);
366
+ let { data: n } = await this.req.post("club/role-card", e, b, t);
367
367
  return n?.role_card ?? null;
368
368
  }
369
369
  async refreshRoleCard(e) {
370
370
  if (!await this.token.autoLogin()) return null;
371
- let { data: t } = await this.req.post("club/refresh-role-card", {}, y, e);
371
+ let { data: t } = await this.req.post("club/refresh-role-card", {}, b, e);
372
372
  return t?.role_card ?? null;
373
373
  }
374
374
  async getUserProfile(e, t) {
375
375
  await this.token.autoLogin();
376
- let { data: n } = await this.req.get("club/user-profile", { member_id: e }, b, t);
376
+ let { data: n } = await this.req.get("club/user-profile", { member_id: e }, x, t);
377
377
  return n;
378
378
  }
379
379
  async updateUserProfile(e, t) {
@@ -382,7 +382,7 @@ var p = "gamer_token", ce = class {
382
382
  message: "请提供需要修改的信息"
383
383
  };
384
384
  await this.token.autoLogin();
385
- let { data: n, code: r, message: i } = await this.req.post("club/user-profile", e, b, t);
385
+ let { data: n, code: r, message: i } = await this.req.post("club/user-profile", e, x, t);
386
386
  return n ?? {
387
387
  message: i,
388
388
  error: r
@@ -395,7 +395,7 @@ var p = "gamer_token", ce = class {
395
395
  }
396
396
  async addAddress(e, t) {
397
397
  if (!await this.token.autoLogin()) return null;
398
- let { data: n, code: r, message: i } = await this.req.post("/club/add-address", a(e), x, t);
398
+ let { data: n, code: r, message: i } = await this.req.post("/club/add-address", a(e), Ne, t);
399
399
  return n ?? {
400
400
  message: i,
401
401
  error: r
@@ -403,7 +403,7 @@ var p = "gamer_token", ce = class {
403
403
  }
404
404
  async updateAddress(e, t) {
405
405
  await this.token.autoLogin();
406
- let { data: n, code: r, message: i } = await this.req.post("club/update-address", a(e), x, t);
406
+ let { data: n, code: r, message: i } = await this.req.post("club/update-address", a(e), Ne, t);
407
407
  return n ?? {
408
408
  message: i,
409
409
  error: r
@@ -534,7 +534,8 @@ var p = "gamer_token", ce = class {
534
534
  ZeroChatgpt: "zero_chatgpt",
535
535
  Ugc: "ugc",
536
536
  UgcLike: "ugc_like",
537
- Redeem: "redeem"
537
+ Redeem: "redeem",
538
+ Referral: "referral"
538
539
  }, Ye = f.string().enum(T).lock(), Xe = {
539
540
  Active: "player_active_points",
540
541
  Login: "player_login_days",
@@ -587,17 +588,21 @@ var p = "gamer_token", ce = class {
587
588
  ChangeVisibility: "change_visibility",
588
589
  Query: "query"
589
590
  }, at = f.string().enum(it).lock(), ot = {
591
+ Share: "share",
592
+ Join: "join",
593
+ Query: "query"
594
+ }, st = f.string().enum(ot).lock(), ct = {
590
595
  Query: "query",
591
596
  Draw: "draw",
592
597
  Claim: "claim"
593
- }, st = f.string().enum(ot).lock(), ct = {
598
+ }, lt = f.string().enum(ct).lock(), ut = {
594
599
  Sum: "sum",
595
600
  TopN: "top_n"
596
- }, lt = f.string().enum(ct).lock(), ut = {
601
+ }, dt = f.string().enum(ut).lock(), ft = {
597
602
  None: "none",
598
603
  Winner: "winner",
599
604
  Consolation: "consolation"
600
- }, dt = f.string().enum(ut).lock(), ft = {
605
+ }, pt = f.string().enum(ft).lock(), mt = {
601
606
  Douyin: "douyin",
602
607
  Xiaohongshu: "xiaohongshu",
603
608
  Taptap: "taptap",
@@ -606,27 +611,27 @@ var p = "gamer_token", ce = class {
606
611
  Huya: "huya",
607
612
  Douyu: "douyu",
608
613
  Kuaishou: "kuaishou"
609
- }, M = f.string().enum(ft).lock(), pt = {
614
+ }, M = f.string().enum(mt).lock(), ht = {
610
615
  Submitted: "submitted",
611
616
  Accepted: "accepted",
612
617
  Rejected: "rejected"
613
- }, mt = f.string().enum(pt).lock(), ht = f.string().enum(S), N = f.object({
618
+ }, gt = f.string().enum(ht).lock(), _t = f.string().enum(S), N = f.object({
614
619
  reward_item_id: f.number(),
615
620
  reward_amount: f.number(),
616
621
  reward_item_name: f.string(),
617
622
  reward_item_icon_url: f.string(),
618
623
  reward_item_desc: f.string().optional(),
619
- reward_item_type: ht,
624
+ reward_item_type: _t,
620
625
  reward_item_rating: f.number()
621
- }).lock(), gt = f.object({
626
+ }).lock(), vt = f.object({
622
627
  engage_count: f.number(),
623
628
  rewards: f.array(N)
624
- }).lock(), _t = f.union(f.object({
629
+ }).lock(), yt = f.union(f.object({
625
630
  feature_reward_type: f.string().enum("every"),
626
631
  reward_details: f.array(N)
627
632
  }), f.object({
628
633
  feature_reward_type: f.string().enum("regular"),
629
- reward_details: f.array(gt)
634
+ reward_details: f.array(vt)
630
635
  })).satisfies().lock(), P = f.object({
631
636
  feature_name: f.string(),
632
637
  feature_id: f.number(),
@@ -637,36 +642,36 @@ var p = "gamer_token", ce = class {
637
642
  since: f.number(),
638
643
  until: f.number(),
639
644
  engage_account: Ke,
640
- feature_rewards: _t.clone().optional(),
645
+ feature_rewards: yt.clone().optional(),
641
646
  sort: f.number().optional()
642
- }), vt = T.Cashback, yt = f.object({
647
+ }), bt = T.Cashback, xt = f.object({
643
648
  ...P.shape,
644
- feature_type: f.string().enum(vt),
649
+ feature_type: f.string().enum(bt),
645
650
  config: f.object({
646
651
  order_start_time: f.number(),
647
652
  order_end_time: f.number(),
648
653
  claim_rewards_start_time: f.number(),
649
654
  claim_rewards_end_time: f.number()
650
655
  })
651
- }), bt = T.CheckIn, xt = f.object({
652
- ...P.shape,
653
- feature_type: f.string().enum(bt)
654
- }), St = T.ClaimActivationKey, Ct = f.object({
656
+ }), St = T.CheckIn, Ct = f.object({
655
657
  ...P.shape,
656
658
  feature_type: f.string().enum(St)
657
- }), wt = T.ClaimRewards, Tt = f.object({
659
+ }), wt = T.ClaimActivationKey, Tt = f.object({
658
660
  ...P.shape,
659
661
  feature_type: f.string().enum(wt)
660
- }), Et = T.Comment, Dt = f.object({
662
+ }), Et = T.ClaimRewards, Dt = f.object({
663
+ ...P.shape,
664
+ feature_type: f.string().enum(Et)
665
+ }), Ot = T.Comment, kt = f.object({
661
666
  ...P.shape,
662
- feature_type: f.string().enum(Et),
667
+ feature_type: f.string().enum(Ot),
663
668
  config: f.object({
664
669
  comments: f.array(f.string()),
665
670
  send_rate: f.number()
666
671
  })
667
- }), Ot = T.Follow, kt = f.object({
672
+ }), At = T.Follow, jt = f.object({
668
673
  ...P.shape,
669
- feature_type: f.string().enum(Ot),
674
+ feature_type: f.string().enum(At),
670
675
  config: f.object({
671
676
  platform: f.string(),
672
677
  platform_icon: f.string().optional(),
@@ -674,65 +679,65 @@ var p = "gamer_token", ce = class {
674
679
  qr_code_url: f.string().optional(),
675
680
  platform_desc: f.string().optional()
676
681
  })
677
- }), At = T.GiftCode, jt = f.object({
682
+ }), Mt = T.GiftCode, Nt = f.object({
678
683
  name: f.string(),
679
684
  icon_url: f.string(),
680
685
  count: f.number()
681
- }), Mt = f.object({
686
+ }), Pt = f.object({
682
687
  ...P.shape,
683
- feature_type: f.string().enum(At),
688
+ feature_type: f.string().enum(Mt),
684
689
  config: f.object({
685
- gift_items: f.array(jt),
690
+ gift_items: f.array(Nt),
686
691
  mp_url: f.string().optional(),
687
692
  mp_qrcode_url: f.string().optional()
688
693
  })
689
- }), Nt = T.Invite, Pt = f.object({
694
+ }), Ft = T.Invite, It = f.object({
690
695
  ...P.shape,
691
- feature_type: f.string().enum(Nt),
696
+ feature_type: f.string().enum(Ft),
692
697
  config: f.object({ share_url: f.string() })
693
- }), Ft = T.InvitedRegister, It = f.object({
698
+ }), Lt = T.InvitedRegister, Rt = f.object({
694
699
  ...P.shape,
695
- feature_type: f.string().enum(Ft)
696
- }), Lt = f.string().enum(r(S, "GiftCode", "LotteryTicket")), Rt = T.Lottery, zt = f.object({
700
+ feature_type: f.string().enum(Lt)
701
+ }), zt = f.string().enum(r(S, "GiftCode", "LotteryTicket")), Bt = T.Lottery, Vt = f.object({
697
702
  reward_item_id: f.number(),
698
703
  reward_item_name: f.string(),
699
- reward_item_type: Lt,
704
+ reward_item_type: zt,
700
705
  reward_item_icon_url: f.string(),
701
706
  reward_item_desc: f.string().optional(),
702
707
  reward_amount: f.number(),
703
708
  reward_remaining_stock: f.number(),
704
709
  reward_item_rating: f.number()
705
- }), Bt = f.object({
710
+ }), Ht = f.object({
706
711
  ...P.shape,
707
- feature_type: f.string().enum(Rt),
712
+ feature_type: f.string().enum(Bt),
708
713
  config: f.object({
709
714
  consume_item_id: f.number(),
710
715
  consume_item_name: f.string(),
711
716
  consume_item_icon_url: f.string(),
712
717
  consume_item_count: f.array(f.number()),
713
718
  consume_item_desc: f.string().optional(),
714
- rewards: f.array(zt)
719
+ rewards: f.array(Vt)
715
720
  })
716
- }), Vt = T.LotteryDraw, Ht = f.object({
721
+ }), Ut = T.LotteryDraw, Wt = f.object({
717
722
  ...P.shape,
718
- feature_type: f.string().enum(Vt),
723
+ feature_type: f.string().enum(Ut),
719
724
  config: f.object({
720
725
  draw_not_before: f.number(),
721
726
  draw_not_after: f.number()
722
727
  })
723
- }), Ut = T.Preregister, Wt = f.object({
728
+ }), Gt = T.Preregister, Kt = f.object({
724
729
  ...P.shape,
725
- feature_type: f.string().enum(Ut)
726
- }), Gt = T.Quest, Kt = f.object({
730
+ feature_type: f.string().enum(Gt)
731
+ }), qt = T.Quest, Jt = f.object({
727
732
  ...P.shape,
728
- feature_type: f.string().enum(Gt),
733
+ feature_type: f.string().enum(qt),
729
734
  config: f.object({
730
735
  objective: E,
731
736
  completion_value: f.number(),
732
737
  team: f.object({
733
738
  feature_id: f.number().optional(),
734
739
  completion_value: f.number(),
735
- progress_algorithm: lt.clone().optional(),
740
+ progress_algorithm: dt.clone().optional(),
736
741
  top_n: f.number().optional()
737
742
  }).optional(),
738
743
  config: f.object({
@@ -742,87 +747,26 @@ var p = "gamer_token", ce = class {
742
747
  event_item_id: f.number().optional()
743
748
  }).optional()
744
749
  })
745
- }), qt = T.Redeem, Jt = f.object({
750
+ }), Yt = T.Redeem, Xt = f.object({
746
751
  price: f.number(),
747
752
  per_user_limit: f.number(),
748
753
  item: N
749
- }), Yt = f.object({
754
+ }), Zt = f.object({
750
755
  ...P.shape,
751
- feature_type: f.string().enum(qt),
756
+ feature_type: f.string().enum(Yt),
752
757
  config: f.object({
753
758
  event_item_id: f.number(),
754
- redeem_catalog: f.array(Jt)
755
- })
756
- }), Xt = T.Register, Zt = f.object({
757
- ...P.shape,
758
- feature_type: f.string().enum(Xt)
759
- }), Qt = T.Share, $t = f.object({
760
- ...P.shape,
761
- feature_type: f.string().enum(Qt),
762
- config: f.object({
763
- share_platform: f.string(),
764
- jump_url: f.string().optional(),
765
- icon_url: f.string().optional()
766
- })
767
- }), en = T.Subscribe, tn = f.object({
768
- ...P.shape,
769
- feature_type: f.string().enum(en),
770
- config: f.object({ weixin_template_ids: f.array(f.string()) })
771
- }), nn = T.Survey, rn = f.object({
772
- ...P.shape,
773
- feature_type: f.string().enum(nn),
774
- config: f.object({
775
- survey_id: f.string(),
776
- survey_url: f.string()
777
- })
778
- }), an = T.Team, on = f.object({
779
- ...P.shape,
780
- feature_type: f.string().enum(an),
781
- config: f.object({
782
- max_members: f.number().min(1),
783
- min_members: f.number().min(1)
784
- })
785
- }), sn = T.Ugc, cn = f.object({
786
- ...P.shape,
787
- feature_type: f.string().enum(sn),
788
- config: f.object({
789
- allowed_social_medias: f.array(f.string()).optional(),
790
- acceptance_rewards: f.array(N).optional()
791
- })
792
- }), ln = T.UgcLike, un = f.object({
793
- ...P.shape,
794
- feature_type: f.string().enum(ln),
795
- config: f.object({ ugc_feature_id: f.number() })
796
- }), dn = T.Vote, fn = f.object({
797
- sn: f.string(),
798
- name: f.string(),
799
- img_urls: f.array(f.string()).optional(),
800
- video_urls: f.array(f.string()).optional(),
801
- descriptions: f.array(f.string()).optional(),
802
- jump_url: f.string(),
803
- amount: f.number(),
804
- finalists: f.bool(),
805
- last_vote_time: f.number()
806
- }), pn = f.object({
807
- ...P.shape,
808
- feature_type: f.string().enum(dn),
809
- config: f.object({
810
- vote_feature_ids: f.array(f.number()),
811
- submission_feature_ids: f.array(f.number()),
812
- finalists_amount: f.number(),
813
- source: Qe,
814
- options: f.array(fn),
815
- rewards: f.array(N)
759
+ redeem_catalog: f.array(Xt)
816
760
  })
817
761
  }), F = f.union(f.string().pattern("NumberString", /^\d+$/), f.number()), I = f.object({
818
762
  order_total_amount: F,
819
763
  cashback_total_amount: F,
820
764
  game_item_count: F
821
- }), mn = f.object({ activation_key: f.string().disallow("") }), hn = f.object({ gift_code: f.string() }), gn = f.object({
765
+ }), Qt = f.object({ activation_key: f.string().disallow("") }), $t = f.object({ gift_code: f.string() }), en = f.object({
822
766
  user_id: f.string(),
823
767
  name: f.string().optional(),
824
768
  avatar_url: f.string().optional()
825
- }), _n = f.object({ lottery_count: f.number() }), L = f.object({
769
+ }), tn = f.object({ lottery_count: f.number() }), L = f.object({
826
770
  reward_id: f.number(),
827
771
  reward_item_id: f.number(),
828
772
  reward_source: A,
@@ -840,55 +784,71 @@ var p = "gamer_token", ce = class {
840
784
  feature_type: Ye,
841
785
  receive_time: f.number(),
842
786
  extra_data: f.record(f.unknown()).optional()
843
- }), vn = f.string().enum(j.Unknown, j.Pending), yn = f.union(f.object({
787
+ }), nn = f.string().enum(j.Unknown, j.Pending), rn = f.union(f.object({
844
788
  ticket: f.string(),
845
- status: vn,
789
+ status: nn,
846
790
  created_at: f.number()
847
791
  }), f.object({
848
792
  ticket: f.string(),
849
793
  status: f.string().enum(r(j, "Unknown", "Pending")),
850
794
  created_at: f.number(),
851
795
  reward: L
852
- })).satisfies(), bn = f.object({ tickets: f.array(yn) }), xn = f.object({ platforms: f.array(f.string()) }), Sn = f.object({
796
+ })).satisfies(), an = f.object({ tickets: f.array(rn) }), on = f.object({ platforms: f.array(f.string()) }), sn = f.object({
853
797
  role_name: f.string(),
854
798
  is_leader: f.bool(),
855
799
  is_myself: f.bool().optional(),
856
800
  progress: f.number().optional(),
857
801
  avatar_url: f.string().optional()
858
- }).lock(), Cn = f.object({
802
+ }).lock(), cn = f.object({
859
803
  objective: E,
860
804
  progress: f.number(),
861
805
  completion_value: f.number().optional(),
862
806
  team: f.object({
863
807
  progress: f.number(),
864
808
  completion_value: f.number().optional(),
865
- players: f.array(Sn)
809
+ players: f.array(sn)
866
810
  }).optional()
867
- }), wn = f.object({
811
+ }), ln = f.object({
868
812
  progress: f.number(),
869
813
  team: f.object({
870
814
  progress: f.number(),
871
- team_members: f.array(Sn).optional()
815
+ team_members: f.array(sn).optional()
872
816
  }).optional()
873
- }), Tn = f.object({
817
+ }), un = f.object({
874
818
  item_id: f.number(),
875
819
  item_count: f.number(),
876
820
  redeem_count: f.number()
877
- }), En = f.object({ item_stocks: f.array(f.object({
821
+ }), dn = f.object({ item_stocks: f.array(f.object({
878
822
  item_id: f.number(),
879
823
  item_stock: f.number(),
880
824
  user_limit: f.number()
881
- })) }), Dn = f.object({ platform: f.string().optional() }), On = f.object({ weixin_openid: f.string() }), kn = f.object({ serial_number: f.number() }), An = f.object({
825
+ })) }), fn = f.object({
826
+ avatar_url: f.string().optional(),
827
+ role_name: f.string(),
828
+ server_name: f.string()
829
+ }), pn = f.object({
830
+ referral_code: f.string().optional(),
831
+ invitee_count: f.number().optional(),
832
+ invitees: f.array(fn).optional()
833
+ }), mn = f.object({
834
+ required_invitees: f.number(),
835
+ unlocked: f.bool(),
836
+ generated: f.bool()
837
+ }), hn = f.object({
838
+ invitee_count: f.number().optional(),
839
+ generated_rewards: f.array(L).optional(),
840
+ referral_tier_status: f.array(mn).optional()
841
+ }), gn = f.object({ platform: f.string().optional() }), _n = f.object({ weixin_openid: f.string() }), vn = f.object({ serial_number: f.number() }), yn = f.object({
882
842
  team_code: f.string(),
883
843
  leader_name: f.string(),
884
844
  total_members: f.number()
885
- }), jn = f.object({
845
+ }), bn = f.object({
886
846
  is_leader: f.bool(),
887
847
  is_myself: f.bool().optional(),
888
848
  role_name: f.string(),
889
849
  server_name: f.string(),
890
850
  avatar_url: f.string().optional()
891
- }), Mn = f.object({
851
+ }), xn = f.object({
892
852
  team_code: f.string(),
893
853
  visibility: nt,
894
854
  members: f.array(f.object({
@@ -896,14 +856,14 @@ var p = "gamer_token", ce = class {
896
856
  role_name: f.string(),
897
857
  server_name: f.string()
898
858
  }))
899
- }), Nn = f.object({
859
+ }), Sn = f.object({
900
860
  ugc_id: f.number(),
901
861
  title: f.string(),
902
862
  content: f.string().optional(),
903
863
  image_urls: f.array(f.string()).optional(),
904
864
  social_media: M.clone().optional(),
905
865
  social_media_url: f.string().optional()
906
- }), Pn = f.object({
866
+ }), Cn = f.object({
907
867
  ugcs: f.array(f.object({
908
868
  ugc_id: f.number(),
909
869
  event_id: f.number().optional(),
@@ -921,13 +881,13 @@ var p = "gamer_token", ce = class {
921
881
  created_at: f.number()
922
882
  })).optional(),
923
883
  next_token: f.string().optional()
924
- }), Fn = f.object({
884
+ }), wn = f.object({
925
885
  ugcs: f.array(f.object({
926
886
  ugc_id: f.number(),
927
887
  event_id: f.number().optional(),
928
888
  feature_id: f.number().optional(),
929
889
  feature_name: f.string().optional(),
930
- review_status: mt,
890
+ review_status: gt,
931
891
  reviewer_comment: f.string().optional(),
932
892
  title: f.string(),
933
893
  content: f.string().optional(),
@@ -942,11 +902,11 @@ var p = "gamer_token", ce = class {
942
902
  created_at: f.number()
943
903
  })).optional(),
944
904
  next_token: f.string().optional()
945
- }), In = f.object({ total_count: f.number() }), Ln = f.object({
905
+ }), Tn = f.object({ total_count: f.number() }), En = f.object({
946
906
  existed: f.bool(),
947
907
  upload_url: f.string().optional(),
948
908
  image_url: f.string()
949
- }), Rn = f.object({ ugcs: f.array(f.object({
909
+ }), Dn = f.object({ ugcs: f.array(f.object({
950
910
  ugc_id: f.number(),
951
911
  rank: f.number(),
952
912
  total_likes: f.number(),
@@ -955,32 +915,32 @@ var p = "gamer_token", ce = class {
955
915
  server_name: f.string().optional(),
956
916
  role_id: f.string().optional(),
957
917
  role_name: f.string().optional()
958
- })).optional() }), R = f.object({ option_sn: f.string() }), zn = f.object({
918
+ })).optional() }), On = f.object({ option_sn: f.string() }), kn = f.object({
959
919
  candidate_id: f.string(),
960
920
  total_votes: f.number().optional(),
961
921
  my_votes: f.number().optional(),
962
922
  cycle_votes: f.number().optional(),
963
923
  votes: f.number().optional()
964
- }), Bn = f.object({
965
- rewards_type: dt,
924
+ }), An = f.object({
925
+ rewards_type: pt,
966
926
  rewards: f.array(L).optional()
967
- }), Vn = f.object({
927
+ }), jn = f.object({
968
928
  candidate_id: f.string(),
969
929
  is_winner: f.bool(),
970
930
  total_votes: f.number(),
971
931
  my_votes: f.number(),
972
932
  cycle_votes: f.number().optional()
973
- }), Hn = f.object({
933
+ }), Mn = f.object({
974
934
  role: f.string(),
975
935
  content: f.string()
976
- }), Un = f.object({ conversations: f.array(Hn) }), Wn = f.object({
936
+ }), Nn = f.object({ conversations: f.array(Mn) }), Pn = f.object({
977
937
  user_id: f.string(),
978
938
  name: f.string(),
979
939
  avatar_url: f.string(),
980
940
  comment: f.string(),
981
941
  video_note: f.number(),
982
942
  created_at: f.number()
983
- }), z = f.union(xn, _n, kn, gn, Dn, R, zn, On, I, hn, Mn, Cn, bn, mn, Un, Nn, Tn, f.custom("EmptyObject", (e) => t(e) && Object.keys(e).length === 0)).satisfies().lock(), Gn = f.object({
943
+ }), R = f.union(on, tn, vn, en, gn, On, kn, _n, I, $t, xn, cn, an, Qt, Nn, Sn, un, pn, f.custom("EmptyObject", (e) => t(e) && Object.keys(e).length === 0)).satisfies().lock(), z = f.object({
984
944
  reward_id: f.number(),
985
945
  reward_item_id: f.number(),
986
946
  reward_item_type: w,
@@ -992,8 +952,8 @@ var p = "gamer_token", ce = class {
992
952
  reward_item_desc: f.string().optional(),
993
953
  reward_item_rating: f.number(),
994
954
  receive_time: f.number(),
995
- extra_data: f.union(...z.validators, f.record(f.unknown())).satisfies().optional()
996
- }), Kn = f.object({
955
+ extra_data: f.union(...R.validators, f.record(f.unknown())).satisfies().optional()
956
+ }), Fn = f.object({
997
957
  reward_id: f.number(),
998
958
  reward_item_id: f.number(),
999
959
  reward_item_name: f.string(),
@@ -1005,21 +965,92 @@ var p = "gamer_token", ce = class {
1005
965
  reward_status: O,
1006
966
  reward_source: A,
1007
967
  extra_data: f.record(f.unknown()).optional()
1008
- }), qn = f.object({
968
+ }), In = f.object({
1009
969
  engagement_id: f.number(),
1010
970
  user_id: f.string(),
1011
971
  event_id: f.number(),
1012
972
  feature_id: f.number(),
1013
973
  sequence: f.number(),
1014
- data: z.clone().optional(),
974
+ data: R.clone().optional(),
1015
975
  server_id: f.string().optional(),
1016
976
  role_id: f.string().optional(),
1017
977
  created_at: f.number(),
1018
- rewards: f.array(Gn).optional()
1019
- }).lock(), Jn = f.object({
978
+ rewards: f.array(z).optional()
979
+ }).lock(), Ln = T.Referral, Rn = f.object({
980
+ required_invitees: f.number(),
981
+ rewards: f.array(z)
982
+ }), zn = f.object({
983
+ ...P.shape,
984
+ feature_type: f.string().enum(Ln),
985
+ config: f.object({
986
+ max_recent_invitees: f.number(),
987
+ referral_tier: f.array(Rn)
988
+ })
989
+ }), Bn = T.Register, Vn = f.object({
990
+ ...P.shape,
991
+ feature_type: f.string().enum(Bn)
992
+ }), Hn = T.Share, Un = f.object({
993
+ ...P.shape,
994
+ feature_type: f.string().enum(Hn),
995
+ config: f.object({
996
+ share_platform: f.string(),
997
+ jump_url: f.string().optional(),
998
+ icon_url: f.string().optional()
999
+ })
1000
+ }), Wn = T.Subscribe, Gn = f.object({
1001
+ ...P.shape,
1002
+ feature_type: f.string().enum(Wn),
1003
+ config: f.object({ weixin_template_ids: f.array(f.string()) })
1004
+ }), Kn = T.Survey, qn = f.object({
1005
+ ...P.shape,
1006
+ feature_type: f.string().enum(Kn),
1007
+ config: f.object({
1008
+ survey_id: f.string(),
1009
+ survey_url: f.string()
1010
+ })
1011
+ }), Jn = T.Team, Yn = f.object({
1012
+ ...P.shape,
1013
+ feature_type: f.string().enum(Jn),
1014
+ config: f.object({
1015
+ max_members: f.number().min(1),
1016
+ min_members: f.number().min(1)
1017
+ })
1018
+ }), Xn = T.Ugc, Zn = f.object({
1019
+ ...P.shape,
1020
+ feature_type: f.string().enum(Xn),
1021
+ config: f.object({
1022
+ allowed_social_medias: f.array(f.string()).optional(),
1023
+ acceptance_rewards: f.array(N).optional()
1024
+ })
1025
+ }), Qn = T.UgcLike, $n = f.object({
1026
+ ...P.shape,
1027
+ feature_type: f.string().enum(Qn),
1028
+ config: f.object({ ugc_feature_id: f.number() })
1029
+ }), er = T.Vote, tr = f.object({
1030
+ sn: f.string(),
1031
+ name: f.string(),
1032
+ img_urls: f.array(f.string()).optional(),
1033
+ video_urls: f.array(f.string()).optional(),
1034
+ descriptions: f.array(f.string()).optional(),
1035
+ jump_url: f.string(),
1036
+ amount: f.number(),
1037
+ finalists: f.bool(),
1038
+ last_vote_time: f.number()
1039
+ }), nr = f.object({
1040
+ ...P.shape,
1041
+ feature_type: f.string().enum(er),
1042
+ config: f.object({
1043
+ vote_feature_ids: f.array(f.number()),
1044
+ submission_feature_ids: f.array(f.number()),
1045
+ finalists_amount: f.number(),
1046
+ source: Qe,
1047
+ options: f.array(tr),
1048
+ rewards: f.array(N)
1049
+ })
1050
+ }), rr = f.object({
1020
1051
  allowed: f.bool(),
1021
1052
  registered: f.bool()
1022
- }), Yn = f.object({
1053
+ }), ir = f.object({
1023
1054
  feature_id: f.number(),
1024
1055
  can_engage: f.bool(),
1025
1056
  has_unclaimed_rewards: f.bool(),
@@ -1031,32 +1062,32 @@ var p = "gamer_token", ce = class {
1031
1062
  action_type: f.string(),
1032
1063
  allowed: f.bool()
1033
1064
  })).optional()
1034
- }), Xn = f.object({
1065
+ }), ar = f.object({
1035
1066
  engagement_id: f.number(),
1036
1067
  engagement: f.object({
1037
1068
  engagement_id: f.number(),
1038
1069
  sequence: f.number(),
1039
1070
  feature_id: f.number(),
1040
- data: z.clone().optional()
1071
+ data: R.clone().optional()
1041
1072
  }).optional(),
1042
- rewards: f.array(Kn).optional(),
1073
+ rewards: f.array(Fn).optional(),
1043
1074
  scan: f.bool().optional()
1044
- }), Zn = f.object({
1075
+ }), or = f.object({
1045
1076
  reward_id: f.number(),
1046
1077
  reward_status: k
1047
- }), Qn = T.Vote2, $n = f.object({
1078
+ }), sr = T.Vote2, cr = f.object({
1048
1079
  candidate_id: f.string(),
1049
1080
  display_name: f.string(),
1050
1081
  images: f.array(f.string()).optional(),
1051
1082
  videos: f.array(f.string()).optional(),
1052
1083
  description: f.string().optional(),
1053
1084
  jump_url: f.string()
1054
- }), er = f.object({
1085
+ }), lr = f.object({
1055
1086
  ...P.shape,
1056
- feature_type: f.string().enum(Qn),
1087
+ feature_type: f.string().enum(sr),
1057
1088
  config: f.object({
1058
1089
  vote_item_id: f.number().optional(),
1059
- candidates: f.array($n),
1090
+ candidates: f.array(cr),
1060
1091
  vote_since: f.number(),
1061
1092
  vote_until: f.number(),
1062
1093
  rewards_since: f.number(),
@@ -1065,83 +1096,83 @@ var p = "gamer_token", ce = class {
1065
1096
  consolation_rewards: f.array(N).optional(),
1066
1097
  max_votes_per_user_per_candidate_per_cycle: f.number().optional()
1067
1098
  })
1068
- }), tr = T.ZeroChatgpt, nr = f.object({
1099
+ }), ur = T.ZeroChatgpt, dr = f.object({
1069
1100
  ...P.shape,
1070
- feature_type: f.string().enum(tr)
1071
- }), rr = f.union(yt, xt, Tt, Dt, kt, Mt, Pt, It, Bt, Ht, Wt, Kt, Zt, $t, tn, rn, on, pn, er, Ct, nr, cn, un, Yt).key("feature_type").satisfies(), ir = f.object({
1101
+ feature_type: f.string().enum(ur)
1102
+ }), fr = f.union(xt, Ct, Dt, kt, jt, Pt, It, Rt, Ht, Wt, Kt, Jt, Vn, Un, Gn, qn, Yn, nr, lr, Tt, dr, Zn, $n, Zt, zn).key("feature_type").satisfies(), pr = f.object({
1072
1103
  event_name: f.string(),
1073
1104
  rules: f.string(),
1074
1105
  since: f.number(),
1075
1106
  until: f.number(),
1076
1107
  visit_count: f.number().optional(),
1077
- features: f.array(rr)
1078
- }).lock(), ar = f.guard(ir), or = f.guard(Jn), B = d({ count: f.number() }), sr = d({ first_visit: f.bool() }), cr = d({ engagements: f.union(f.array(Wn), f.array(An)) }), lr = d({ status: f.array(Yn) }), ur = d({ engagements_counts: f.record(f.number()) }), dr = d({
1079
- engagements: f.array(qn),
1108
+ features: f.array(fr)
1109
+ }).lock(), mr = f.guard(pr), hr = f.guard(rr), B = d({ count: f.number() }), gr = d({ first_visit: f.bool() }), _r = d({ engagements: f.union(f.array(Pn), f.array(yn)) }), vr = d({ status: f.array(ir) }), yr = d({ engagements_counts: f.record(f.number()) }), br = d({
1110
+ engagements: f.array(In),
1080
1111
  next_token: f.string().optional()
1081
- }), fr = f.guard(Xn), pr = d({ claimed_items: f.array(Zn) }), mr = d({ rewards: f.array(L) }), hr = d({ reward_status: k }), gr = d({
1112
+ }), xr = f.guard(ar), Sr = d({ claimed_items: f.array(or) }), Cr = d({ rewards: f.array(L) }), wr = d({ reward_status: k }), Tr = d({
1082
1113
  user_rewards: f.array(L),
1083
1114
  next_token: f.string().optional()
1084
- }), _r = d({ unclaimed: f.number() }), vr = d({ scene: f.string() }), yr = d({ params: f.string() }), br = d({ img: f.string() }), xr = f.guard(wn), Sr = f.guard(Bn), Cr = f.guard(f.object({ candidate_votes: f.array(Vn) })), wr = f.guard(I), Tr = f.guard(Fn), Er = f.guard(Pn), Dr = f.guard(In), Or = f.guard(Ln), kr = f.guard(Rn), Ar = f.guard(En);
1115
+ }), Er = d({ unclaimed: f.number() }), Dr = d({ scene: f.string() }), Or = d({ params: f.string() }), kr = d({ img: f.string() }), Ar = f.guard(ln), jr = f.guard(An), Mr = f.guard(f.object({ candidate_votes: f.array(jn) })), Nr = f.guard(I), Pr = f.guard(wn), Fr = f.guard(Cn), Ir = f.guard(Tn), Lr = f.guard(En), Rr = f.guard(Dn), zr = f.guard(dn), Br = f.guard(hn);
1085
1116
  //#endregion
1086
1117
  //#region src/event.methods.ts
1087
- async function jr(e, t, n) {
1118
+ async function Vr(e, t, n) {
1088
1119
  let { data: r } = await this.req.get("verify-mobile-allowed", {
1089
1120
  game_id: e,
1090
1121
  mobile: t
1091
- }, or, n);
1122
+ }, hr, n);
1092
1123
  return r;
1093
1124
  }
1094
- async function Mr(e) {
1095
- let { data: t } = await this.req.get(`event/${this.event}/event-config`, null, ar, e);
1125
+ async function Hr(e) {
1126
+ let { data: t } = await this.req.get(`event/${this.event}/event-config`, null, mr, e);
1096
1127
  return t;
1097
1128
  }
1098
- async function Nr(e, t) {
1129
+ async function Ur(e, t) {
1099
1130
  let { data: n } = await this.req.get(`event/${this.event}/feature-engagement-count`, {
1100
1131
  feature_id: e,
1101
1132
  type: "user"
1102
1133
  }, B, t);
1103
1134
  return n?.count ?? null;
1104
1135
  }
1105
- async function Pr(e, t) {
1136
+ async function Wr(e, t) {
1106
1137
  let { data: n } = await this.req.get(`event/${this.event}/feature-engagement-count`, {
1107
1138
  feature_id: e,
1108
1139
  type: "engagement"
1109
1140
  }, B, t);
1110
1141
  return n?.count ?? null;
1111
1142
  }
1112
- async function Fr(e, t) {
1113
- let { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, { feature_id: e }, cr, t);
1143
+ async function Gr(e, t) {
1144
+ let { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, { feature_id: e }, _r, t);
1114
1145
  return n?.engagements || [];
1115
1146
  }
1116
- async function Ir(e, t) {
1147
+ async function Kr(e, t) {
1117
1148
  await this.token.autoLogin();
1118
- let { data: n, code: r, message: i } = await this.req.post(`event/${this.event}/visit`, a(e || {}), sr, t);
1149
+ let { data: n, code: r, message: i } = await this.req.post(`event/${this.event}/visit`, a(e || {}), gr, t);
1119
1150
  return n ?? {
1120
1151
  message: i,
1121
1152
  error: r
1122
1153
  };
1123
1154
  }
1124
- async function Lr(e, t) {
1155
+ async function qr(e, t) {
1125
1156
  if (!await this.token.autoLogin()) return [];
1126
1157
  let { data: n } = await this.req.get("event/user-feature-status", {
1127
1158
  ...e,
1128
1159
  event_id: this.event
1129
- }, lr, {
1160
+ }, vr, {
1130
1161
  ...t,
1131
1162
  message: !1
1132
1163
  });
1133
1164
  return n?.status || [];
1134
1165
  }
1135
- async function Rr(e, t) {
1166
+ async function Jr(e, t) {
1136
1167
  if (!await this.token.autoLogin()) return {};
1137
1168
  let { data: n } = await this.req.get("event/user-engagements-count", {
1138
1169
  ...t,
1139
1170
  event_id: this.event,
1140
1171
  feature_id: e
1141
- }, ur, { message: !1 });
1172
+ }, yr, { message: !1 });
1142
1173
  return n?.engagements_counts || {};
1143
1174
  }
1144
- async function zr(e, t, n) {
1175
+ async function Yr(e, t, n) {
1145
1176
  if (!await this.token.autoLogin()) return {
1146
1177
  engagements: [],
1147
1178
  next_token: ""
@@ -1151,36 +1182,36 @@ async function zr(e, t, n) {
1151
1182
  ...t,
1152
1183
  event_id: this.event,
1153
1184
  feature_id: e
1154
- }, dr, n);
1185
+ }, br, n);
1155
1186
  return {
1156
1187
  engagements: r?.engagements || [],
1157
1188
  next_token: r?.next_token || ""
1158
1189
  };
1159
1190
  }
1160
- async function Br(e, t, n, r) {
1191
+ async function Xr(e, t, n, r) {
1161
1192
  await this.token.autoLogin();
1162
1193
  let { data: i, code: o, message: s } = await this.req.post(`event/${this.event}/engage`, a({
1163
1194
  feature_id: e,
1164
1195
  engagement: t,
1165
1196
  ...n
1166
- }), fr, r);
1197
+ }), xr, r);
1167
1198
  return i ?? {
1168
1199
  message: s,
1169
1200
  error: o
1170
1201
  };
1171
1202
  }
1172
- async function Vr(e, t) {
1203
+ async function Zr(e, t) {
1173
1204
  await this.token.autoLogin();
1174
1205
  let { data: n, code: r, message: i } = await this.req.post("event/claim-rewards", a({
1175
1206
  ...e,
1176
1207
  server_id: e.server_id ? +e.server_id : void 0
1177
- }), pr, t);
1208
+ }), Sr, t);
1178
1209
  return n?.claimed_items || {
1179
1210
  message: i,
1180
1211
  error: r
1181
1212
  };
1182
1213
  }
1183
- async function Hr(e, t) {
1214
+ async function Qr(e, t) {
1184
1215
  if (!await this.token.autoLogin()) return null;
1185
1216
  let { ok: n, code: r, message: i } = await this.req.post(`event/${this.event}/user-reward-address`, e, null, t);
1186
1217
  return n || {
@@ -1188,23 +1219,23 @@ async function Hr(e, t) {
1188
1219
  error: r
1189
1220
  };
1190
1221
  }
1191
- async function Ur(e, t) {
1222
+ async function $r(e, t) {
1192
1223
  if (!await this.token.autoLogin()) return null;
1193
- let { data: n } = await this.req.get("event/unlimit-qrcode-scene", { params: e }, vr, t);
1224
+ let { data: n } = await this.req.get("event/unlimit-qrcode-scene", { params: e }, Dr, t);
1194
1225
  return n?.scene ?? null;
1195
1226
  }
1196
- async function Wr(e, t) {
1197
- let { data: n } = await this.req.get("event/params-by-qrcode-scene", { scene: e }, yr, t);
1227
+ async function ei(e, t) {
1228
+ let { data: n } = await this.req.get("event/params-by-qrcode-scene", { scene: e }, Or, t);
1198
1229
  return n?.params ?? null;
1199
1230
  }
1200
- async function Gr(e, t) {
1231
+ async function ti(e, t) {
1201
1232
  if (!await this.token.autoLogin()) return null;
1202
- let { data: n } = await this.req.post("event/unlimit-qrcode", a(e), br, t);
1233
+ let { data: n } = await this.req.post("event/unlimit-qrcode", a(e), kr, t);
1203
1234
  return n?.img ?? null;
1204
1235
  }
1205
- async function Kr(e, t) {
1236
+ async function ni(e, t) {
1206
1237
  if (!await this.token.autoLogin()) return null;
1207
- let { data: n, code: r, message: i } = await this.req.get(`event/${this.event}/quest-progress`, { feature_id: e }, xr, {
1238
+ let { data: n, code: r, message: i } = await this.req.get(`event/${this.event}/quest-progress`, { feature_id: e }, Ar, {
1208
1239
  message: !1,
1209
1240
  ...t
1210
1241
  });
@@ -1213,75 +1244,75 @@ async function Kr(e, t) {
1213
1244
  error: r
1214
1245
  };
1215
1246
  }
1216
- async function qr(e, t) {
1247
+ async function ri(e, t) {
1217
1248
  if (!await this.token.autoLogin()) return null;
1218
1249
  let { data: n, code: r, message: i } = await this.req.post("event/vote2/rewards", {
1219
1250
  feature_id: e,
1220
1251
  event_id: this.event
1221
- }, Sr, t);
1252
+ }, jr, t);
1222
1253
  return n || {
1223
1254
  message: i,
1224
1255
  code: r
1225
1256
  };
1226
1257
  }
1227
- async function Jr(e, t) {
1258
+ async function ii(e, t) {
1228
1259
  if (!await this.token.autoLogin()) return [];
1229
1260
  let { data: n } = await this.req.get("event/vote2/leaderboard", {
1230
1261
  feature_id: e,
1231
1262
  event_id: this.event
1232
- }, Cr, t);
1263
+ }, Mr, t);
1233
1264
  return n?.candidate_votes || [];
1234
1265
  }
1235
- async function Yr(e, t) {
1266
+ async function ai(e, t) {
1236
1267
  if (!await this.token.autoLogin()) return null;
1237
1268
  let { data: n, code: r, message: i } = await this.req.get("event/cashback/query", {
1238
1269
  feature_id: e,
1239
1270
  event_id: this.event
1240
- }, wr, t);
1271
+ }, Nr, t);
1241
1272
  return n || {
1242
1273
  message: i,
1243
1274
  error: r
1244
1275
  };
1245
1276
  }
1246
- async function Xr(e, t) {
1277
+ async function oi(e, t) {
1247
1278
  if (!await this.token.autoLogin()) return null;
1248
1279
  let { data: n, code: r, message: i } = await this.req.get("event/ugc/my", {
1249
1280
  max_results: 20,
1250
1281
  ...e
1251
- }, Tr, t);
1282
+ }, Pr, t);
1252
1283
  return n || {
1253
1284
  message: i,
1254
1285
  error: r
1255
1286
  };
1256
1287
  }
1257
- async function Zr(e, t) {
1288
+ async function si(e, t) {
1258
1289
  if (!await this.token.autoLogin()) return null;
1259
- let { data: n, code: r, message: i } = await this.req.get("event/ugc/my-count", { ...e }, Dr, t);
1290
+ let { data: n, code: r, message: i } = await this.req.get("event/ugc/my-count", { ...e }, Ir, t);
1260
1291
  return n || {
1261
1292
  message: i,
1262
1293
  error: r
1263
1294
  };
1264
1295
  }
1265
- async function Qr(e, t) {
1296
+ async function ci(e, t) {
1266
1297
  await this.token.autoLogin();
1267
1298
  let { data: n, code: r, message: i } = await this.req.post("event/claim-rewards-v2", a({
1268
1299
  ...e,
1269
1300
  server_id: e.server_id ? +e.server_id : void 0
1270
- }), mr, t);
1301
+ }), Cr, t);
1271
1302
  return n?.rewards || {
1272
1303
  message: i,
1273
1304
  error: r
1274
1305
  };
1275
1306
  }
1276
- async function $r(e, t) {
1307
+ async function li(e, t) {
1277
1308
  await this.token.autoLogin();
1278
- let { data: n, code: r, message: i } = await this.req.post("event/claim-weixin-hongbao", { reward_id: e }, hr, t);
1309
+ let { data: n, code: r, message: i } = await this.req.post("event/claim-weixin-hongbao", { reward_id: e }, wr, t);
1279
1310
  return n || {
1280
1311
  message: i,
1281
1312
  error: r
1282
1313
  };
1283
1314
  }
1284
- async function ei(e, t) {
1315
+ async function ui(e, t) {
1285
1316
  if (!this.token.isLoggedIn) return { error: "not_logged_in" };
1286
1317
  let { ok: n, code: r, message: i } = await this.req.post("verify-activation-key", { activation_key: e }, null, {
1287
1318
  message: !1,
@@ -1292,7 +1323,7 @@ async function ei(e, t) {
1292
1323
  error: r
1293
1324
  };
1294
1325
  }
1295
- async function ti(e, t) {
1326
+ async function di(e, t) {
1296
1327
  if (!await this.token.autoLogin()) return {
1297
1328
  user_rewards: [],
1298
1329
  next_token: ""
@@ -1301,73 +1332,84 @@ async function ti(e, t) {
1301
1332
  max_results: 20,
1302
1333
  ...e,
1303
1334
  event_id: this.event
1304
- }), gr, t);
1335
+ }), Tr, t);
1305
1336
  return {
1306
1337
  user_rewards: n?.user_rewards || [],
1307
1338
  next_token: n?.next_token || ""
1308
1339
  };
1309
1340
  }
1310
- async function ni(e, t) {
1341
+ async function fi(e, t) {
1311
1342
  if (!await this.token.autoLogin()) return { unclaimed: 0 };
1312
- let { data: n } = await this.req.get("event/user-rewards-count", { ...e }, _r, t);
1343
+ let { data: n } = await this.req.get("event/user-rewards-count", { ...e }, Er, t);
1313
1344
  return { unclaimed: n?.unclaimed || 0 };
1314
1345
  }
1315
- async function ri(e, t) {
1346
+ async function pi(e, t) {
1316
1347
  if (!await this.token.autoLogin()) return null;
1317
1348
  let { data: n } = await this.req.get(`event/${this.event}/user-item-count`, { item_id: e }, B, t);
1318
1349
  return n?.count ?? null;
1319
1350
  }
1320
- async function ii(e, t, n) {
1351
+ async function mi(e, t, n) {
1321
1352
  if (!await this.token.autoLogin()) return null;
1322
1353
  let { data: r, code: i, message: a } = await this.req.post("event/ugc/upload-image", {
1323
1354
  feature_id: e,
1324
1355
  ...t,
1325
1356
  event_id: this.event
1326
- }, Or, n);
1357
+ }, Lr, n);
1327
1358
  return r || {
1328
1359
  message: a,
1329
1360
  error: i
1330
1361
  };
1331
1362
  }
1332
- async function ai(e, t) {
1363
+ async function hi(e, t) {
1333
1364
  let { data: n, code: r, message: i } = await this.req.get("event/ugc/recommendation", {
1334
1365
  feature_id: e,
1335
1366
  event_id: this.event
1336
- }, Tr, t);
1367
+ }, Pr, t);
1337
1368
  return n || {
1338
1369
  message: i,
1339
1370
  error: r
1340
1371
  };
1341
1372
  }
1342
- async function oi(e, t, n) {
1373
+ async function gi(e, t, n) {
1343
1374
  let { data: r, code: i, message: a } = await this.req.get("event/ugc/ugcs", {
1344
1375
  event_id: this.event,
1345
1376
  feature_id: e,
1346
1377
  max_results: 20,
1347
1378
  ...t
1348
- }, Er, n);
1379
+ }, Fr, n);
1349
1380
  return r || {
1350
1381
  message: a,
1351
1382
  error: i
1352
1383
  };
1353
1384
  }
1354
- async function si(e, t) {
1385
+ async function _i(e, t) {
1355
1386
  if (!await this.token.autoLogin()) return null;
1356
1387
  let { data: n, code: r, message: i } = await this.req.get("event/ugc/leaderboard", {
1357
1388
  feature_id: e,
1358
1389
  event_id: this.event
1359
- }, kr, t);
1390
+ }, Rr, t);
1360
1391
  return n || {
1361
1392
  message: i,
1362
1393
  error: r
1363
1394
  };
1364
1395
  }
1365
- async function ci(e, t) {
1396
+ async function vi(e, t) {
1366
1397
  if (!await this.token.autoLogin()) return null;
1367
1398
  let { data: n, code: r, message: i } = await this.req.get("event/redeem/item-stocks", {
1368
1399
  event_id: this.event,
1369
1400
  feature_id: e
1370
- }, Ar, t);
1401
+ }, zr, t);
1402
+ return n || {
1403
+ message: i,
1404
+ error: r
1405
+ };
1406
+ }
1407
+ async function yi(e, t) {
1408
+ if (!await this.token.autoLogin()) return null;
1409
+ let { data: n, code: r, message: i } = await this.req.post("event/referral/rewards", {
1410
+ event_id: this.event,
1411
+ feature_id: e
1412
+ }, Br, t);
1371
1413
  return n || {
1372
1414
  message: i,
1373
1415
  error: r
@@ -1375,15 +1417,14 @@ async function ci(e, t) {
1375
1417
  }
1376
1418
  //#endregion
1377
1419
  //#region src/ggd.enums.ts
1378
- var li = {
1420
+ var bi = {
1379
1421
  Waiting: 1,
1380
1422
  Playing: 2
1381
- }, ui = f.number().enum(li).lock(), di = class {
1423
+ }, xi = f.number().enum(bi).lock(), Si = class {
1382
1424
  req;
1383
1425
  constructor(e, t) {
1384
- let n = oe(e) ? e : `https://${o(e)}`;
1385
1426
  this.req = t({
1386
- baseURL: `${n}/v1/ggd`,
1427
+ baseURL: `${oe(e) ? e : `https://${o(e)}`}/v1/ggd`,
1387
1428
  timeout: 1e4,
1388
1429
  maxRetry: 2,
1389
1430
  retryInterval: "2EB",
@@ -1413,34 +1454,34 @@ var li = {
1413
1454
  }, d({
1414
1455
  room_id: f.string(),
1415
1456
  inviter_role_id: f.number(),
1416
- room_status: ui,
1417
- room_mode: f.string(),
1457
+ room_status: xi,
1458
+ room_mode: f.string().optional(),
1418
1459
  room_tags: f.array(f.string()).optional(),
1419
- max_members: f.number(),
1460
+ max_members: f.number().optional(),
1420
1461
  members: f.array(f.object({
1421
1462
  role_id: f.number(),
1422
1463
  role_name: f.string(),
1423
1464
  avatar_url: f.string()
1424
- }))
1465
+ })).optional()
1425
1466
  }), { message: !1 });
1426
1467
  return c && o ? o : {
1427
1468
  error: l,
1428
1469
  message: u
1429
1470
  };
1430
1471
  }
1431
- }, fi = {
1472
+ }, Ci = {
1432
1473
  All: "all",
1433
1474
  Limit: "limit"
1434
- }, pi = f.string().enum(fi).lock(), mi = {
1475
+ }, wi = f.string().enum(Ci).lock(), Ti = {
1435
1476
  Pending: "pending",
1436
1477
  Approved: "approved",
1437
1478
  Failed: "failed",
1438
1479
  Suspect: "suspect"
1439
- }, V = f.string().enum(mi).lock(), hi = {
1480
+ }, V = f.string().enum(Ti).lock(), Ei = {
1440
1481
  System: "system",
1441
1482
  Comment: "comment",
1442
1483
  Like: "like"
1443
- }, gi = f.string().enum(hi).lock(), H = {
1484
+ }, Di = f.string().enum(Ei).lock(), H = {
1444
1485
  System: "system",
1445
1486
  PostPinned: "post_pinned",
1446
1487
  PostHighlighted: "post_highlighted",
@@ -1453,13 +1494,13 @@ var li = {
1453
1494
  ReplyReplied: "reply_replied",
1454
1495
  ReplyLiked: "reply_liked",
1455
1496
  ReplyDeleted: "reply_deleted"
1456
- }, _i = f.string().enum(H).lock(), U = f.object({
1497
+ }, Oi = f.string().enum(H).lock(), U = f.object({
1457
1498
  forum_id: f.number(),
1458
1499
  icon_url: f.string(),
1459
1500
  name: f.string(),
1460
1501
  tags: f.array(f.string()),
1461
1502
  sort: f.number(),
1462
- mode: pi,
1503
+ mode: wi,
1463
1504
  member_ids: f.array(f.number())
1464
1505
  }).lock(), W = f.object({
1465
1506
  topic_id: f.number(),
@@ -1488,7 +1529,7 @@ var li = {
1488
1529
  is_highlighted: f.bool(),
1489
1530
  status: V,
1490
1531
  create_time: f.number()
1491
- }).lock(), K = f.object({ err_msg: f.string().optional() }).optional().lock(), vi = f.object({
1532
+ }).lock(), K = f.object({ err_msg: f.string().optional() }).optional().lock(), ki = f.object({
1492
1533
  reply_id: f.number(),
1493
1534
  reply_content: f.string().optional(),
1494
1535
  replied_by: f.string(),
@@ -1507,7 +1548,7 @@ var li = {
1507
1548
  content: f.string(),
1508
1549
  like_num: f.number(),
1509
1550
  liked: f.bool(),
1510
- reply_to: vi,
1551
+ reply_to: ki,
1511
1552
  create_time: f.number()
1512
1553
  }).lock(), J = f.object({
1513
1554
  comment_id: f.number(),
@@ -1529,19 +1570,19 @@ var li = {
1529
1570
  create_time: f.number(),
1530
1571
  status: V,
1531
1572
  replies: f.array(q).optional()
1532
- }).lock(), yi = f.object({
1573
+ }).lock(), Ai = f.object({
1533
1574
  image_url: f.string(),
1534
1575
  upload_url: f.string(),
1535
1576
  existed: f.bool()
1536
1577
  }).lock(), Y = f.object({
1537
1578
  notification_id: f.string(),
1538
- notification_type: _i,
1579
+ notification_type: Oi,
1539
1580
  is_read: f.bool(),
1540
1581
  create_time: f.number(),
1541
1582
  origin_user_id: f.string(),
1542
1583
  origin_user_name: f.string(),
1543
1584
  origin_user_avatar_url: f.string()
1544
- }).lock(), bi = f.object({
1585
+ }).lock(), ji = f.object({
1545
1586
  system_message_subject: f.string(),
1546
1587
  system_message_content: f.string()
1547
1588
  }).lock(), X = f.object({
@@ -1555,86 +1596,86 @@ var li = {
1555
1596
  }).lock(), Q = f.object({
1556
1597
  reply_id: f.number(),
1557
1598
  reply_content: f.string()
1558
- }).lock(), xi = f.object({
1599
+ }).lock(), Mi = f.object({
1559
1600
  ...Y.shape,
1560
- ...bi.shape,
1601
+ ...ji.shape,
1561
1602
  notification_type: f.string().enum(H.System)
1562
- }), Si = f.object({
1603
+ }), Ni = f.object({
1563
1604
  ...Y.shape,
1564
1605
  ...X.shape,
1565
1606
  notification_type: f.string().enum(H.PostPinned, H.PostHighlighted, H.PostDeleted, H.PostLiked)
1566
- }), Ci = f.object({
1607
+ }), Pi = f.object({
1567
1608
  ...Y.shape,
1568
1609
  ...X.shape,
1569
1610
  ...Z.shape,
1570
1611
  notification_type: f.string().enum(H.PostCommented)
1571
- }), wi = f.object({
1612
+ }), Fi = f.object({
1572
1613
  ...Y.shape,
1573
1614
  ...Z.shape,
1574
1615
  ...Q.shape,
1575
1616
  notification_type: f.string().enum(H.CommentReplied)
1576
- }), Ti = f.object({
1617
+ }), Ii = f.object({
1577
1618
  ...Y.shape,
1578
1619
  ...Z.shape,
1579
1620
  ...X.shape,
1580
1621
  notification_type: f.string().enum(H.CommentLiked, H.CommentDeleted)
1581
- }), Ei = f.object({
1622
+ }), Li = f.object({
1582
1623
  ...Y.shape,
1583
1624
  ...Q.shape,
1584
1625
  notification_type: f.string().enum(H.ReplyReplied),
1585
1626
  comment_id: f.number(),
1586
1627
  reply_to_reply_id: f.number(),
1587
1628
  reply_to_reply_content: f.string()
1588
- }), Di = f.object({
1629
+ }), Ri = f.object({
1589
1630
  ...Y.shape,
1590
1631
  ...Q.shape,
1591
1632
  ...Z.shape,
1592
1633
  notification_type: f.string().enum(H.ReplyLiked, H.ReplyDeleted)
1593
- }), Oi = f.union(xi, Si, Ci, wi, Ti, Ei, Di).satisfies().lock(), ki = d({ forums: f.array(U) }), Ai = d({ topics: f.array(W) }), ji = d({ topic: W }), Mi = d({ post: G }), Ni = d({
1634
+ }), zi = f.union(Mi, Ni, Pi, Fi, Ii, Li, Ri).satisfies().lock(), Bi = d({ forums: f.array(U) }), Vi = d({ topics: f.array(W) }), Hi = d({ topic: W }), Ui = d({ post: G }), Wi = d({
1594
1635
  posts: f.array(G),
1595
1636
  next_token: f.string().optional()
1596
- }), Pi = d({
1637
+ }), Gi = d({
1597
1638
  post: G.clone().optional(),
1598
1639
  antispam: K.clone().optional()
1599
- }), Fi = d({
1640
+ }), Ki = d({
1600
1641
  replies: f.array(q),
1601
1642
  next_token: f.string().optional()
1602
- }), Ii = d({ reply: q }), Li = d({
1643
+ }), qi = d({ reply: q }), Ji = d({
1603
1644
  reply: q.clone().optional(),
1604
1645
  antispam: K.clone().optional()
1605
- }), Ri = d({ comment: J }), zi = d({
1646
+ }), Yi = d({ comment: J }), Xi = d({
1606
1647
  comments: f.array(J),
1607
1648
  next_token: f.string().optional()
1608
- }), Bi = d({
1649
+ }), Zi = d({
1609
1650
  comment: J.clone().optional(),
1610
1651
  antispam: J.clone().optional()
1611
- }), Vi = f.guard(yi), Hi = d({
1612
- notifications: f.array(Oi),
1652
+ }), Qi = f.guard(Ai), $i = d({
1653
+ notifications: f.array(zi),
1613
1654
  next_token: f.string().optional()
1614
- }), Ui = d({
1655
+ }), ea = d({
1615
1656
  system: f.number(),
1616
1657
  comment: f.number(),
1617
1658
  like: f.number()
1618
- }), Wi = class {
1659
+ }), ta = class {
1619
1660
  token;
1620
1661
  req;
1621
1662
  constructor(e) {
1622
1663
  this.token = e, this.req = e.req;
1623
1664
  }
1624
1665
  async getForums(e) {
1625
- let { data: t } = await this.req.get("community/forums", null, ki, e);
1666
+ let { data: t } = await this.req.get("community/forums", null, Bi, e);
1626
1667
  return t?.forums || [];
1627
1668
  }
1628
1669
  async getTopics(e) {
1629
- let { data: t } = await this.req.get("community/topics", null, Ai, e);
1670
+ let { data: t } = await this.req.get("community/topics", null, Vi, e);
1630
1671
  return t?.topics || [];
1631
1672
  }
1632
1673
  async getTopic(e, t) {
1633
- let { data: n, code: r } = await this.req.get("community/topic", { topic_id: e }, ji, t);
1674
+ let { data: n, code: r } = await this.req.get("community/topic", { topic_id: e }, Hi, t);
1634
1675
  return n?.topic ?? { error: r };
1635
1676
  }
1636
1677
  async getPosts(e, t) {
1637
- let { data: n, code: r, message: i } = await this.req.get("community/posts", e || null, Ni, t);
1678
+ let { data: n, code: r, message: i } = await this.req.get("community/posts", e || null, Wi, t);
1638
1679
  return n ?? {
1639
1680
  message: i,
1640
1681
  error: r
@@ -1645,35 +1686,35 @@ var li = {
1645
1686
  forum_id: e,
1646
1687
  max_results: t,
1647
1688
  next_token: n
1648
- }, Ni, r);
1689
+ }, Wi, r);
1649
1690
  return i ?? {
1650
1691
  message: o,
1651
1692
  error: a
1652
1693
  };
1653
1694
  }
1654
1695
  async getPost(e, t) {
1655
- let { data: n, code: r, message: i } = await this.req.get("community/post", { post_id: e }, Mi, t);
1696
+ let { data: n, code: r, message: i } = await this.req.get("community/post", { post_id: e }, Ui, t);
1656
1697
  return n?.post ?? {
1657
1698
  message: i,
1658
1699
  error: r
1659
1700
  };
1660
1701
  }
1661
1702
  async post(e, t) {
1662
- let { data: n, code: r, message: i } = await this.req.post("community/post", a(e), Pi, t);
1703
+ let { data: n, code: r, message: i } = await this.req.post("community/post", a(e), Gi, t);
1663
1704
  return n ?? {
1664
1705
  message: i,
1665
1706
  error: r
1666
1707
  };
1667
1708
  }
1668
1709
  async getComments(e, t) {
1669
- let { data: n, code: r, message: i } = await this.req.get("community/comments", e, zi, t);
1710
+ let { data: n, code: r, message: i } = await this.req.get("community/comments", e, Xi, t);
1670
1711
  return n ?? {
1671
1712
  message: i,
1672
1713
  error: r
1673
1714
  };
1674
1715
  }
1675
1716
  async getComment(e, t) {
1676
- let { data: n, code: r, message: i } = await this.req.get("community/comment", { comment_id: e }, Ri, t);
1717
+ let { data: n, code: r, message: i } = await this.req.get("community/comment", { comment_id: e }, Yi, t);
1677
1718
  return n?.comment ?? {
1678
1719
  message: i,
1679
1720
  error: r
@@ -1681,7 +1722,7 @@ var li = {
1681
1722
  }
1682
1723
  async comment(e, t) {
1683
1724
  await this.token.autoLogin();
1684
- let { data: n, code: r, message: i } = await this.req.post("community/comment", a(e), Bi, t);
1725
+ let { data: n, code: r, message: i } = await this.req.post("community/comment", a(e), Zi, t);
1685
1726
  return n ?? {
1686
1727
  message: i,
1687
1728
  error: r
@@ -1691,14 +1732,14 @@ var li = {
1691
1732
  let { data: n } = await this.req.get("community/replies", {
1692
1733
  max_results: 20,
1693
1734
  ...e
1694
- }, Fi, t);
1735
+ }, Ki, t);
1695
1736
  return {
1696
1737
  replies: n?.replies || [],
1697
1738
  next_token: n?.next_token || ""
1698
1739
  };
1699
1740
  }
1700
1741
  async getReply(e, t) {
1701
- let { data: n, code: r, message: i } = await this.req.get("community/reply", { reply_id: e }, Ii, t);
1742
+ let { data: n, code: r, message: i } = await this.req.get("community/reply", { reply_id: e }, qi, t);
1702
1743
  return n?.reply ?? {
1703
1744
  message: i,
1704
1745
  error: r
@@ -1706,7 +1747,7 @@ var li = {
1706
1747
  }
1707
1748
  async reply(e, t) {
1708
1749
  await this.token.autoLogin();
1709
- let { data: n, code: r, message: i } = await this.req.post("community/reply", a(e), Li, t);
1750
+ let { data: n, code: r, message: i } = await this.req.post("community/reply", a(e), Ji, t);
1710
1751
  return n ?? {
1711
1752
  message: i,
1712
1753
  error: r
@@ -1736,7 +1777,7 @@ var li = {
1736
1777
  }
1737
1778
  async getMediaPresignedUrl(e, t) {
1738
1779
  await this.token.autoLogin();
1739
- let { data: n } = await this.req.get("community/media-presign-url", e, Vi, t);
1780
+ let { data: n } = await this.req.get("community/media-presign-url", e, Qi, t);
1740
1781
  return n;
1741
1782
  }
1742
1783
  async getNotifications(e, t) {
@@ -1744,7 +1785,7 @@ var li = {
1744
1785
  let { data: n } = await this.req.get("community/notifications", {
1745
1786
  max_results: 20,
1746
1787
  ...e
1747
- }, Hi, t);
1788
+ }, $i, t);
1748
1789
  return {
1749
1790
  notifications: n?.notifications || [],
1750
1791
  next_token: n?.next_token || ""
@@ -1752,7 +1793,7 @@ var li = {
1752
1793
  }
1753
1794
  async getUnreadNotificationsCount(e) {
1754
1795
  if (!await this.token.autoLogin()) return null;
1755
- let { data: t } = await this.req.get("community/unread-notifications-count", null, Ui, e);
1796
+ let { data: t } = await this.req.get("community/unread-notifications-count", null, ea, e);
1756
1797
  return t;
1757
1798
  }
1758
1799
  async clearUnreadNotifications(e, t) {
@@ -1760,11 +1801,11 @@ var li = {
1760
1801
  let { ok: n } = await this.req.post("community/clear-unread-notifications", { category: e }, null, t);
1761
1802
  return n;
1762
1803
  }
1763
- }, Gi = d({
1804
+ }, na = d({
1764
1805
  nonce_str: f.string(),
1765
1806
  timestamp: f.number(),
1766
1807
  signature: f.string()
1767
- }), Ki = /* @__PURE__ */ function(e) {
1808
+ }), ra = /* @__PURE__ */ function(e) {
1768
1809
  return e.RedirectUriDisMatch = "10003", e.AppidError = "10016", e.AuthorizationError = "10015", e.NoRightForScope = "10005", e.Frequently = "10009", e.AppBanded = "10004", e.ShouldFollow = "10006", e.ScopeNull = "10010", e.RedirectUriNull = "10011", e.AppidNull = "10012", e.StateNull = "10013", e;
1769
1810
  }({});
1770
1811
  //#endregion
@@ -1774,7 +1815,7 @@ function $(e) {
1774
1815
  }
1775
1816
  //#endregion
1776
1817
  //#region src/weixin.ts
1777
- var qi = "wx_login_cache", Ji = class {
1818
+ var ia = "wx_login_cache", aa = class {
1778
1819
  token;
1779
1820
  _appid;
1780
1821
  req;
@@ -1785,7 +1826,7 @@ var qi = "wx_login_cache", Ji = class {
1785
1826
  return this._appid;
1786
1827
  }
1787
1828
  async getLoginCache() {
1788
- let e = this.token.storage.get(qi);
1829
+ let e = this.token.storage.get(ia);
1789
1830
  if (!e) return null;
1790
1831
  let t = i(e);
1791
1832
  return $(t) ? (this.token.weixinToken = t.weixin_token, await this.token.autoLogin(), t) : null;
@@ -1801,7 +1842,7 @@ var qi = "wx_login_cache", Ji = class {
1801
1842
  ...e,
1802
1843
  message: !1
1803
1844
  });
1804
- return r && (this.token.weixinToken = r.weixin_token, this.token.storage.set(qi, JSON.stringify(r))), r ?? {
1845
+ return r && (this.token.weixinToken = r.weixin_token, this.token.storage.set(ia, JSON.stringify(r))), r ?? {
1805
1846
  message: a,
1806
1847
  error: i
1807
1848
  };
@@ -1843,7 +1884,7 @@ var qi = "wx_login_cache", Ji = class {
1843
1884
  let { data: t } = await this.req.get("weixin/offiaccount/jssdk-sign", {
1844
1885
  appid: this.appid,
1845
1886
  url: location.href.split("#")[0]
1846
- }, Gi, e);
1887
+ }, na, e);
1847
1888
  return t ? {
1848
1889
  appid: this.appid,
1849
1890
  nonceStr: t.nonce_str,
@@ -1853,4 +1894,4 @@ var qi = "wx_login_cache", Ji = class {
1853
1894
  }
1854
1895
  };
1855
1896
  //#endregion
1856
- export { K as AntispamValidator, ce as AuthToken, Vn as CandidateVoteValidator, I as CashbackEngagementDataValidator, mn as ClaimActivationKeyEngagementDataValidator, $e as ClaimRewardStatus, k as ClaimRewardStatusValidator, Zn as ClaimedItemValidator, g as ClubAddressValidator, He as ClubApi, _ as ClubBenefitSummaryValidator, Ee as ClubBenefitValidator, pe as ClubCreditChangeScene, me as ClubCreditChangeSceneValidator, de as ClubCreditChangeType, fe as ClubCreditChangeTypeValidator, Te as ClubCreditLogValidator, ve as ClubGlobalConfigValidator, he as ClubItemType, m as ClubItemTypeValidator, ye as ClubPlayerValidator, v as ClubProductValidator, ge as ClubRedemptionStatus, _e as ClubRedemptionStatusValidator, we as ClubUserCreditValidator, Ce as ClubUserProfileValidator, Wn as CommentEngagementValidator, J as CommentValidator, Wi as CommunityApi, Hn as ConversationValidator, Ge as EngageAccountType, Ke as EngageAccountTypeValidator, Xn as EngageResponseValidator, Kn as EngageRewardValidator, Ue as EventApi, ir as EventConfigValidator, yt as EventFeatureConfigOfCashbackValidator, xt as EventFeatureConfigOfCheckInValidator, Ct as EventFeatureConfigOfClaimActivationKeyValidator, Tt as EventFeatureConfigOfClaimRewardsValidator, Dt as EventFeatureConfigOfCommentValidator, kt as EventFeatureConfigOfFollowValidator, Mt as EventFeatureConfigOfGiftCodeValidator, Pt as EventFeatureConfigOfInviteValidator, It as EventFeatureConfigOfInvitedRegisterValidator, Ht as EventFeatureConfigOfLotteryDrawValidator, Bt as EventFeatureConfigOfLotteryValidator, Wt as EventFeatureConfigOfPreregisterValidator, Kt as EventFeatureConfigOfQuestValidator, Yt as EventFeatureConfigOfRedeemValidator, Zt as EventFeatureConfigOfRegisterValidator, $t as EventFeatureConfigOfShareValidator, tn as EventFeatureConfigOfSubscribeValidator, rn as EventFeatureConfigOfSurveyValidator, on as EventFeatureConfigOfTeamValidator, un as EventFeatureConfigOfUgcLikeValidator, cn as EventFeatureConfigOfUgcValidator, er as EventFeatureConfigOfVote2Validator, pn as EventFeatureConfigOfVoteValidator, rr as EventFeatureConfigValidator, qe as EventPeriodType, Je as EventPeriodTypeValidator, N as EventRewardItemConfigValidator, ke as ExtraGameRewardValidator, Oe as ExtraPhysicalShipmentValidator, Jt as FeatureRedeemItemConfigValidator, _t as FeatureRewardValidator, T as FeatureType, Ye as FeatureTypeValidator, fi as ForumMode, pi as ForumModeValidator, U as ForumValidator, di as GGDPublicApi, li as GGDRoomStatus, ui as GGDRoomStatusValidator, S as GamerItemType, C as GamerItemTypeValidator, le as Gender, ue as GenderValidator, hn as GiftCodeEngagementDataValidator, gn as InviteEngagementDataValidator, ot as LotteryDrawAction, st as LotteryDrawActionValidator, bn as LotteryDrawEngagementDataValidator, _n as LotteryEngagementDataValidator, j as LotteryTicketStatus, rt as LotteryTicketStatusValidator, Y as NotificationBaseValidator, hi as NotificationCategory, gi as NotificationCategoryValidator, wi as NotificationCommentReplyValidator, Ti as NotificationCommentValidator, Z as NotificationPayloadCommentValidator, X as NotificationPayloadPostValidator, Q as NotificationPayloadReplyValidator, bi as NotificationPayloadSystemValidator, Ci as NotificationPostCommentValidator, Si as NotificationPostValidator, Ei as NotificationReplyRepliedValidator, Di as NotificationReplyValidator, xi as NotificationSystemValidator, H as NotificationType, _i as NotificationTypeValidator, Oi as NotificationValidator, Se as PlayerRoleCardValidator, h as PlayerRoleValidator, mi as PostStatus, V as PostStatusValidator, G as PostValidator, xn as PreregisterEngagementDataValidator, yi as PresignedUrlResponseValidator, Cn as QuestEngagementDataValidator, Xe as QuestObjective, E as QuestObjectiveValidator, ct as QuestProgressAlgorithm, lt as QuestProgressAlgorithmValidator, wn as QuestProgressValidator, Tn as RedeemEngagementDataValidator, De as RedeemParamsValidator, En as RedeemStocksResponseValidator, Ae as RedemptionValidator, gt as RegularRewardValidator, vi as ReplyToValidator, q as ReplyValidator, We as RewardItemType, w as RewardItemTypeValidator, et as RewardSource, A as RewardSourceValidator, D as RewardStatus, O as RewardStatusValidator, Gn as RewardValidator, xe as RoleBaseInfoValidator, be as ServerBaseInfoValidator, Dn as ShareEngagementDataValidator, kn as SurveyEngagementDataValidator, it as TeamAction, at as TeamActionValidator, Mn as TeamEngagementDataValidator, An as TeamEngagementValidator, jn as TeamMemberValidator, tt as TeamVisibility, nt as TeamVisibilityValidator, W as TopicValidator, In as UgcCountResponseValidator, Nn as UgcEngagementDataValidator, Rn as UgcLeaderboardResponseValidator, Pn as UgcRecordBaseResponseValidator, Fn as UgcRecordResponseValidator, pt as UgcReviewStatus, mt as UgcReviewStatusValidator, ft as UgcSocialMedia, M as UgcSocialMediaValidator, Ln as UgcUploadImageValidator, z as UserEngagementDataValidator, qn as UserEngagementValidator, Yn as UserFeatureStatusValidator, L as UserRewardValidator, Jn as VerifyMobileResultValidator, Bn as Vote2ClaimRewardsResponseValidator, zn as Vote2EngagementDataValidator, ut as Vote2RewardType, dt as Vote2RewardTypeValidator, R as VoteEngagementDataValidator, Ze as VoteOptionSource, Qe as VoteOptionSourceValidator, Ji as WeixinApi, On as WeixinSubscribeEngagementDataValidator, Ki as WeixinWebLoginErrorCode, Un as ZeroChatGPTDataValidator, Vr as claimRewards, Qr as claimRewardsV2, $r as claimWeixinHongbao, Br as engage, Gr as generateUnlimitQrcode, Yr as getCashbackQuery, Mr as getConfig, Fr as getEngagements, Pr as getEngagementsCount, Nr as getEngagementsUserCount, Wr as getParamsByQrcodeScene, Kr as getQuestProgress, ci as getRedeemItemStocks, si as getUgcLeaderboard, Zr as getUgcMyCount, ai as getUgcRecommendation, Xr as getUgcRecord, oi as getUgcs, Ur as getUnlimitQrcodeScene, Rr as getUserEngagementCount, zr as getUserEngagements, Lr as getUserFeatureStatus, ri as getUserItemCount, ti as getUserRewards, ni as getUserRewardsCount, Jr as getVote2Leaderboard, Gi as isWeixinSignResponse, Hr as submitUserRewardAddress, ii as ugcUploadImage, ei as verifyActivationKey, jr as verifyMobileAllowed, Ir as visit, qr as vote2Rewards };
1897
+ export { K as AntispamValidator, ce as AuthToken, jn as CandidateVoteValidator, I as CashbackEngagementDataValidator, Qt as ClaimActivationKeyEngagementDataValidator, $e as ClaimRewardStatus, k as ClaimRewardStatusValidator, or as ClaimedItemValidator, _ as ClubAddressValidator, He as ClubApi, v as ClubBenefitSummaryValidator, Te as ClubBenefitValidator, pe as ClubCreditChangeScene, me as ClubCreditChangeSceneValidator, de as ClubCreditChangeType, fe as ClubCreditChangeTypeValidator, we as ClubCreditLogValidator, ve as ClubGlobalConfigValidator, he as ClubItemType, m as ClubItemTypeValidator, ye as ClubPlayerValidator, y as ClubProductValidator, ge as ClubRedemptionStatus, _e as ClubRedemptionStatusValidator, Ce as ClubUserCreditValidator, Se as ClubUserProfileValidator, Pn as CommentEngagementValidator, J as CommentValidator, ta as CommunityApi, Mn as ConversationValidator, Ge as EngageAccountType, Ke as EngageAccountTypeValidator, ar as EngageResponseValidator, Fn as EngageRewardValidator, Ue as EventApi, pr as EventConfigValidator, xt as EventFeatureConfigOfCashbackValidator, Ct as EventFeatureConfigOfCheckInValidator, Tt as EventFeatureConfigOfClaimActivationKeyValidator, Dt as EventFeatureConfigOfClaimRewardsValidator, kt as EventFeatureConfigOfCommentValidator, jt as EventFeatureConfigOfFollowValidator, Pt as EventFeatureConfigOfGiftCodeValidator, It as EventFeatureConfigOfInviteValidator, Rt as EventFeatureConfigOfInvitedRegisterValidator, Wt as EventFeatureConfigOfLotteryDrawValidator, Ht as EventFeatureConfigOfLotteryValidator, Kt as EventFeatureConfigOfPreregisterValidator, Jt as EventFeatureConfigOfQuestValidator, Zt as EventFeatureConfigOfRedeemValidator, zn as EventFeatureConfigOfReferralValidator, Vn as EventFeatureConfigOfRegisterValidator, Un as EventFeatureConfigOfShareValidator, Gn as EventFeatureConfigOfSubscribeValidator, qn as EventFeatureConfigOfSurveyValidator, Yn as EventFeatureConfigOfTeamValidator, $n as EventFeatureConfigOfUgcLikeValidator, Zn as EventFeatureConfigOfUgcValidator, lr as EventFeatureConfigOfVote2Validator, nr as EventFeatureConfigOfVoteValidator, fr as EventFeatureConfigValidator, qe as EventPeriodType, Je as EventPeriodTypeValidator, N as EventRewardItemConfigValidator, Oe as ExtraGameRewardValidator, De as ExtraPhysicalShipmentValidator, Xt as FeatureRedeemItemConfigValidator, Rn as FeatureReferralTierItemValidator, yt as FeatureRewardValidator, T as FeatureType, Ye as FeatureTypeValidator, Ci as ForumMode, wi as ForumModeValidator, U as ForumValidator, Si as GGDPublicApi, bi as GGDRoomStatus, xi as GGDRoomStatusValidator, S as GamerItemType, C as GamerItemTypeValidator, le as Gender, ue as GenderValidator, hn as GenerateReferralRewardsResponseValidator, $t as GiftCodeEngagementDataValidator, en as InviteEngagementDataValidator, ct as LotteryDrawAction, lt as LotteryDrawActionValidator, an as LotteryDrawEngagementDataValidator, tn as LotteryEngagementDataValidator, j as LotteryTicketStatus, rt as LotteryTicketStatusValidator, Y as NotificationBaseValidator, Ei as NotificationCategory, Di as NotificationCategoryValidator, Fi as NotificationCommentReplyValidator, Ii as NotificationCommentValidator, Z as NotificationPayloadCommentValidator, X as NotificationPayloadPostValidator, Q as NotificationPayloadReplyValidator, ji as NotificationPayloadSystemValidator, Pi as NotificationPostCommentValidator, Ni as NotificationPostValidator, Li as NotificationReplyRepliedValidator, Ri as NotificationReplyValidator, Mi as NotificationSystemValidator, H as NotificationType, Oi as NotificationTypeValidator, zi as NotificationValidator, xe as PlayerRoleCardValidator, g as PlayerRoleValidator, Ti as PostStatus, V as PostStatusValidator, G as PostValidator, on as PreregisterEngagementDataValidator, Ai as PresignedUrlResponseValidator, cn as QuestEngagementDataValidator, Xe as QuestObjective, E as QuestObjectiveValidator, ut as QuestProgressAlgorithm, dt as QuestProgressAlgorithmValidator, ln as QuestProgressValidator, un as RedeemEngagementDataValidator, Ee as RedeemParamsValidator, dn as RedeemStocksResponseValidator, ke as RedemptionValidator, ot as ReferralAction, st as ReferralActionValidator, pn as ReferralEngagementDataValidator, fn as ReferralInviteValidator, mn as ReferralTierStatusValidator, vt as RegularRewardValidator, ki as ReplyToValidator, q as ReplyValidator, We as RewardItemType, w as RewardItemTypeValidator, et as RewardSource, A as RewardSourceValidator, D as RewardStatus, O as RewardStatusValidator, z as RewardValidator, be as RoleBaseInfoValidator, h as ServerBaseInfoValidator, gn as ShareEngagementDataValidator, vn as SurveyEngagementDataValidator, it as TeamAction, at as TeamActionValidator, xn as TeamEngagementDataValidator, yn as TeamEngagementValidator, bn as TeamMemberValidator, tt as TeamVisibility, nt as TeamVisibilityValidator, W as TopicValidator, Tn as UgcCountResponseValidator, Sn as UgcEngagementDataValidator, Dn as UgcLeaderboardResponseValidator, Cn as UgcRecordBaseResponseValidator, wn as UgcRecordResponseValidator, ht as UgcReviewStatus, gt as UgcReviewStatusValidator, mt as UgcSocialMedia, M as UgcSocialMediaValidator, En as UgcUploadImageValidator, R as UserEngagementDataValidator, In as UserEngagementValidator, ir as UserFeatureStatusValidator, L as UserRewardValidator, rr as VerifyMobileResultValidator, An as Vote2ClaimRewardsResponseValidator, kn as Vote2EngagementDataValidator, ft as Vote2RewardType, pt as Vote2RewardTypeValidator, On as VoteEngagementDataValidator, Ze as VoteOptionSource, Qe as VoteOptionSourceValidator, aa as WeixinApi, _n as WeixinSubscribeEngagementDataValidator, ra as WeixinWebLoginErrorCode, Nn as ZeroChatGPTDataValidator, Zr as claimRewards, ci as claimRewardsV2, li as claimWeixinHongbao, Xr as engage, yi as generateReferralRewards, ti as generateUnlimitQrcode, ai as getCashbackQuery, Hr as getConfig, Gr as getEngagements, Wr as getEngagementsCount, Ur as getEngagementsUserCount, ei as getParamsByQrcodeScene, ni as getQuestProgress, vi as getRedeemItemStocks, _i as getUgcLeaderboard, si as getUgcMyCount, hi as getUgcRecommendation, oi as getUgcRecord, gi as getUgcs, $r as getUnlimitQrcodeScene, Jr as getUserEngagementCount, Yr as getUserEngagements, qr as getUserFeatureStatus, pi as getUserItemCount, di as getUserRewards, fi as getUserRewardsCount, ii as getVote2Leaderboard, na as isWeixinSignResponse, Qr as submitUserRewardAddress, mi as ugcUploadImage, ui as verifyActivationKey, Vr as verifyMobileAllowed, Kr as visit, ri as vote2Rewards };