@seayoo-web/gamer-api 3.0.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,22 +1,21 @@
1
1
  import { isComboWebView as me } from "@seayoo-web/combo-webview";
2
- import { RequestInternalError as de } from "@seayoo-web/request";
3
- import { isPlainObject as y, usePromise as ge, useConsole as _e, weixinStorageHelper as pe, localStorageHelper as be, supportWx as h, pruneURL as ye, supportWindow as fe, queryString as x, pruneObject as c, omitFields as L, parseJSON as he, removePara as O } from "@seayoo-web/utils";
2
+ import { isPlainObject as y, usePromise as de, useConsole as ge, weixinStorageHelper as _e, localStorageHelper as pe, supportWx as h, pruneURL as be, supportWindow as ye, queryString as x, pruneObject as l, omitFields as L, parseJSON as fe, removePara as O } from "@seayoo-web/utils";
4
3
  import { v as e, objectGuard as s } from "@seayoo-web/validator";
5
- function we(a) {
6
- return y(a, "gamer_token") && typeof a.gamer_token == "string";
4
+ function he(o) {
5
+ return y(o, "gamer_token") && typeof o.gamer_token == "string";
7
6
  }
8
- function ke(a) {
9
- return y(a, "gamer_token", "game_id") && typeof a.gamer_token == "string" && typeof a.game_id == "string";
7
+ function we(o) {
8
+ return y(o, "gamer_token", "game_id") && typeof o.gamer_token == "string" && typeof o.game_id == "string";
10
9
  }
11
- function G(a) {
12
- return y(a);
10
+ function G(o) {
11
+ return y(o);
13
12
  }
14
- _e("GamerApiSDK");
15
- function ve(a) {
16
- return /^\/[a-z\d-]+$/.test(a);
13
+ ge("GamerApiSDK");
14
+ function ke(o) {
15
+ return /^\/[a-z\d-]+$/.test(o);
17
16
  }
18
- async function Re() {
19
- const { promise: a, resolve: t } = ge();
17
+ async function ve() {
18
+ const { promise: o, resolve: t } = de();
20
19
  return wx.login({
21
20
  success(n) {
22
21
  t(n.code);
@@ -24,10 +23,10 @@ async function Re() {
24
23
  fail() {
25
24
  t("");
26
25
  }
27
- }), await a;
26
+ }), await o;
28
27
  }
29
28
  const f = "gamer_token";
30
- class fa {
29
+ class yo {
31
30
  _NetRequest;
32
31
  _idToken = "";
33
32
  _weixinToken = "";
@@ -35,14 +34,13 @@ class fa {
35
34
  req;
36
35
  storage;
37
36
  constructor(t, n) {
38
- this.storage = h() ? pe : be;
39
- const r = ve(t) ? t : `https://${ye(t)}`;
37
+ this.storage = h() ? _e : pe;
38
+ const r = ke(t) ? t : `https://${be(t)}`;
40
39
  if (this._NetRequest = n, this.req = n({
41
40
  baseURL: `${r}/v1`,
42
41
  timeout: 1e4,
43
42
  maxRetry: 2,
44
43
  retryInterval: "2EB",
45
- retryResolve: ({ status: o, statusText: i }) => o === 522 || o < 0 && i !== de.Timeout,
46
44
  responseRule: {
47
45
  ok: { resolve: "body" },
48
46
  failed: {
@@ -52,12 +50,12 @@ class fa {
52
50
  }
53
51
  },
54
52
  // 使用箭头函数绑定执行上下文
55
- requestTransformer: (o) => {
56
- this._gamerToken && (o.headers.Authorization = `Bearer ${this._gamerToken}`);
53
+ requestTransformer: (a) => {
54
+ this._gamerToken && (a.headers.Authorization = `Bearer ${this._gamerToken}`);
57
55
  }
58
- }), fe()) {
59
- const o = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), i = x("gamer_token");
60
- (me() || o && i) && (this._gamerToken = i);
56
+ }), ye()) {
57
+ const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), i = x("gamer_token");
58
+ (me() || a && i) && (this._gamerToken = i);
61
59
  }
62
60
  this._gamerToken || this.loadGamerTokenCache();
63
61
  }
@@ -67,9 +65,9 @@ class fa {
67
65
  loadGamerTokenCache() {
68
66
  const n = this.storage.get(f).match(/^(\d{12,})#(.{8,})$/);
69
67
  if (n) {
70
- const r = parseInt(n[1]), o = n[2];
68
+ const r = parseInt(n[1]), a = n[2];
71
69
  if (r > Date.now() - (24 * 3600 - 10) * 1e3) {
72
- this._gamerToken = o;
70
+ this._gamerToken = a;
73
71
  return;
74
72
  }
75
73
  }
@@ -139,8 +137,8 @@ class fa {
139
137
  return !1;
140
138
  const { code: n, data: r } = await this.req.post(
141
139
  "login-with-token",
142
- c({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
143
- we,
140
+ l({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
141
+ he,
144
142
  {
145
143
  message: !1,
146
144
  cacheTTL: 300,
@@ -166,16 +164,16 @@ class fa {
166
164
  const n = h();
167
165
  if (!this.idToken || n && !this.weixinToken)
168
166
  return !1;
169
- const { code: r, data: o } = await this.req.post(
167
+ const { code: r, data: a } = await this.req.post(
170
168
  "session/switch-game",
171
- c({ game_id: t }),
172
- ke,
169
+ l({ game_id: t }),
170
+ we,
173
171
  {
174
172
  message: !1,
175
173
  maxRetry: 2
176
174
  }
177
175
  );
178
- return r === "game_not_allowed" ? !1 : (this.gamerToken = o?.gamer_token || "", !!this.gamerToken);
176
+ return r === "game_not_allowed" ? !1 : (this.gamerToken = a?.gamer_token || "", !!this.gamerToken);
179
177
  }
180
178
  /**
181
179
  * 获取当前登录用户的 Session 的信息
@@ -186,7 +184,7 @@ class fa {
186
184
  */
187
185
  async getSession() {
188
186
  if (!await this.autoLogin()) return null;
189
- const { data: t } = await this.req.get("session", G, {
187
+ const { data: t } = await this.req.get("session", null, G, {
190
188
  message: !1
191
189
  });
192
190
  return t;
@@ -198,25 +196,25 @@ class fa {
198
196
  */
199
197
  async authRealName(t) {
200
198
  if (!await this.autoLogin()) return null;
201
- const { data: n } = await this.req.post("auth-real-name", c(t), G);
199
+ const { data: n } = await this.req.post("auth-real-name", l(t), G);
202
200
  return n;
203
201
  }
204
202
  }
205
- const Ce = {
203
+ const Re = {
206
204
  /** 未知 */
207
205
  Unknown: "unknown",
208
206
  /** 男 */
209
207
  Male: "male",
210
208
  /** 女 */
211
209
  Female: "female"
212
- }, Ve = e.string().enum(Ce).lock(), je = {
210
+ }, Ce = e.string().enum(Re).lock(), Ve = {
213
211
  /** 积分增加 */
214
212
  Increase: "increase",
215
213
  /** 积分减少 */
216
214
  Decrease: "decrease",
217
215
  /** 积分过期 */
218
216
  Expired: "expired"
219
- }, Te = e.string().enum(je).lock(), qe = {
217
+ }, je = e.string().enum(Ve).lock(), Te = {
220
218
  /** 游戏内购买 */
221
219
  Order: "order",
222
220
  /** 游戏内消耗 */
@@ -229,21 +227,21 @@ const Ce = {
229
227
  Admin: "admin",
230
228
  /** 运营活动 */
231
229
  Event: "event"
232
- }, xe = e.string().enum(qe).lock(), Le = {
230
+ }, qe = e.string().enum(Te).lock(), xe = {
233
231
  /** 游戏内奖励 */
234
232
  GameReward: "game_reward",
235
233
  /** 实物商品 */
236
234
  Physical: "physical",
237
235
  /** 虚拟商品 */
238
236
  Virtual: "virtual"
239
- }, H = e.string().enum(Le).lock(), Ue = {
237
+ }, H = e.string().enum(xe).lock(), Le = {
240
238
  /** 待发放 */
241
239
  Pending: "pending",
242
240
  /** 已发放 */
243
241
  Issued: "issued",
244
242
  /** 发放失败 */
245
243
  Failed: "failed"
246
- }, Se = e.string().enum(Ue).lock(), Pe = e.object({
244
+ }, Ue = e.string().enum(Le).lock(), Se = e.object({
247
245
  default_avatar_url: e.string(),
248
246
  official_avatar_urls: e.array(e.string()),
249
247
  default_nickname: e.string(),
@@ -261,7 +259,7 @@ const Ce = {
261
259
  exp_description: e.string(),
262
260
  credit_description: e.string(),
263
261
  send_role_mail_rate_limit: e.number()
264
- }).lock(), Ee = e.object({
262
+ }).lock(), Pe = e.object({
265
263
  member_id: e.string(),
266
264
  player_id: e.string(),
267
265
  exp: e.number(),
@@ -270,18 +268,18 @@ const Ce = {
270
268
  credit_expiring: e.number(),
271
269
  level_change_time: e.number(),
272
270
  level_expire_time: e.number()
273
- }).lock(), Fe = e.object({
271
+ }).lock(), Ee = e.object({
274
272
  server_id: e.string(),
275
273
  server_name: e.string()
276
- }).lock(), Ie = e.object({
274
+ }).lock(), Fe = e.object({
277
275
  role_id: e.string(),
278
276
  role_name: e.string()
279
277
  }).lock(), z = e.object({
280
- ...Ie.shape,
281
278
  ...Fe.shape,
279
+ ...Ee.shape,
282
280
  role_level: e.number(),
283
281
  last_login_time: e.number()
284
- }).lock(), De = e.object({
282
+ }).lock(), Ie = e.object({
285
283
  ...z.shape,
286
284
  /** 角色战力 */
287
285
  role_fighting: e.number(),
@@ -291,11 +289,11 @@ const Ce = {
291
289
  kin_name: e.string().optional(),
292
290
  /** 宗门职位 */
293
291
  kin_position: e.string().optional()
294
- }).lock(), $e = e.object({
292
+ }).lock(), De = e.object({
295
293
  name: e.string(),
296
294
  avatar_url: e.string(),
297
295
  bio: e.string(),
298
- gender: Ve,
296
+ gender: Ce,
299
297
  birthday: e.object({ year: e.number(), month: e.number(), day: e.number() }),
300
298
  social_medias: e.record(
301
299
  e.object({
@@ -312,15 +310,15 @@ const Ce = {
312
310
  district: e.string(),
313
311
  address: e.string(),
314
312
  is_default: e.bool()
315
- }).lock(), Ae = e.object({
313
+ }).lock(), $e = e.object({
316
314
  increased_credit: e.number(),
317
315
  decreased_credit: e.number(),
318
316
  expired_credit: e.number(),
319
317
  balance_credit: e.number()
320
- }).lock(), Oe = e.object({
318
+ }).lock(), Ae = e.object({
321
319
  id: e.number(),
322
- change_type: Te,
323
- change_scene: xe,
320
+ change_type: je,
321
+ change_scene: qe,
324
322
  change_credit: e.number(),
325
323
  balance: e.number(),
326
324
  change_time: e.number(),
@@ -360,10 +358,10 @@ const Ce = {
360
358
  created_at: e.number(),
361
359
  updated_at: e.number(),
362
360
  redeemable_quantity: e.number().optional()
363
- }).lock(), Ge = e.object({
361
+ }).lock(), Oe = e.object({
364
362
  ...L(Z.shape, "tag"),
365
363
  product: X.clone().optional()
366
- }).lock(), ha = e.union(
364
+ }).lock(), fo = e.union(
367
365
  e.object({
368
366
  server_id: e.string(),
369
367
  role_id: e.string()
@@ -371,7 +369,7 @@ const Ce = {
371
369
  e.object({
372
370
  address_id: e.number()
373
371
  })
374
- ).satisfies().lock(), Ne = e.object({
372
+ ).satisfies().lock(), Ge = e.object({
375
373
  recipient: e.string(),
376
374
  mobile: e.string(),
377
375
  province: e.string(),
@@ -380,11 +378,11 @@ const Ce = {
380
378
  address: e.string(),
381
379
  express_company: e.string(),
382
380
  express_number: e.string()
383
- }).lock(), Qe = e.object({
381
+ }).lock(), Ne = e.object({
384
382
  server_id: e.string(),
385
383
  role_id: e.string(),
386
384
  role_name: e.string()
387
- }).lock(), Be = e.object({
385
+ }).lock(), Qe = e.object({
388
386
  redemption_id: e.number(),
389
387
  player_id: e.string(),
390
388
  product_id: e.number(),
@@ -395,21 +393,21 @@ const Ce = {
395
393
  catalog_name: e.string(),
396
394
  quantity: e.number(),
397
395
  amount: e.number(),
398
- status: Se,
396
+ status: Ue,
399
397
  created_at: e.number(),
400
- extra_data: e.union(Ne.clone(), Qe.clone()).satisfies().optional()
401
- }), Me = e.guard(Pe), N = s({ player: Ee }), Ke = s({ roles: e.array(z) }), j = s({ role_card: De }), Q = e.guard($e), B = e.guard(J), He = s({ addresses: e.array(J) }), ze = e.guard(Ae), Je = s({
402
- credit_logs: e.array(Oe),
398
+ extra_data: e.union(Ge.clone(), Ne.clone()).satisfies().optional()
399
+ }), Be = e.guard(Se), N = s({ player: Pe }), Me = s({ roles: e.array(z) }), j = s({ role_card: Ie }), Q = e.guard(De), B = e.guard(J), Ke = s({ addresses: e.array(J) }), He = e.guard($e), ze = s({
400
+ credit_logs: e.array(Ae),
403
401
  next_token: e.string().optional()
404
- }), Ze = s({ products: e.array(X) }), Xe = s({ benefits: e.array(Z) }), Ye = s({ benefit: Ge }), We = s({
405
- redemptions: e.array(Be),
402
+ }), Je = s({ products: e.array(X) }), Ze = s({ benefits: e.array(Z) }), Xe = s({ benefit: Oe }), Ye = s({
403
+ redemptions: e.array(Qe),
406
404
  next_token: e.string().optional()
407
- }), et = s({
405
+ }), We = s({
408
406
  existed: e.bool(),
409
407
  image_upload_url: e.string().optional(),
410
408
  image_id: e.string()
411
409
  });
412
- class wa {
410
+ class ho {
413
411
  token;
414
412
  req;
415
413
  constructor(t) {
@@ -422,7 +420,7 @@ class wa {
422
420
  */
423
421
  async getConfig(t) {
424
422
  await this.token.autoLogin();
425
- const { data: n } = await this.req.get("club/config", Me, t);
423
+ const { data: n } = await this.req.get("club/config", null, Be, t);
426
424
  return n;
427
425
  }
428
426
  /**
@@ -432,9 +430,14 @@ class wa {
432
430
  */
433
431
  async getCurrentPlayer(t) {
434
432
  await this.token.autoLogin();
435
- const { data: n, code: r, message: o } = await this.req.get("club/current-player", N, t);
433
+ const { data: n, code: r, message: a } = await this.req.get(
434
+ "club/current-player",
435
+ null,
436
+ N,
437
+ t
438
+ );
436
439
  return n?.player ?? {
437
- message: o,
440
+ message: a,
438
441
  error: r
439
442
  };
440
443
  }
@@ -445,14 +448,14 @@ class wa {
445
448
  */
446
449
  async linkPlayer(t) {
447
450
  await this.token.autoLogin();
448
- const { data: n, code: r, message: o } = await this.req.post(
451
+ const { data: n, code: r, message: a } = await this.req.post(
449
452
  "club/link-player",
450
453
  { id_token: this.token.idToken },
451
454
  N,
452
455
  t
453
456
  );
454
457
  return n?.player ?? {
455
- message: o,
458
+ message: a,
456
459
  error: r
457
460
  };
458
461
  }
@@ -463,11 +466,13 @@ class wa {
463
466
  */
464
467
  async getRoles(t, n, r) {
465
468
  if (!await this.token.autoLogin()) return [];
466
- const { data: o } = await this.req.get("club/roles", Ke, {
467
- ...r,
468
- params: c({ player_id: t, refresh: n })
469
- });
470
- return o?.roles || [];
469
+ const { data: a } = await this.req.get(
470
+ "club/roles",
471
+ { player_id: t, refresh: n },
472
+ Me,
473
+ r
474
+ );
475
+ return a?.roles || [];
471
476
  }
472
477
  /**
473
478
  * 获取俱乐部会员的角色卡片数据
@@ -476,10 +481,7 @@ class wa {
476
481
  */
477
482
  async getRoleCard(t, n) {
478
483
  await this.token.autoLogin();
479
- const { data: r } = await this.req.get("club/role-card", j, {
480
- ...n,
481
- params: { member_id: t }
482
- });
484
+ const { data: r } = await this.req.get("club/role-card", { member_id: t }, j, n);
483
485
  return r?.role_card ?? null;
484
486
  }
485
487
  /**
@@ -509,10 +511,7 @@ class wa {
509
511
  */
510
512
  async getUserProfile(t, n) {
511
513
  await this.token.autoLogin();
512
- const { data: r } = await this.req.get("club/user-profile", Q, {
513
- ...n,
514
- params: { member_id: t }
515
- });
514
+ const { data: r } = await this.req.get("club/user-profile", { member_id: t }, Q, n);
516
515
  return r;
517
516
  }
518
517
  /**
@@ -524,10 +523,10 @@ class wa {
524
523
  if (Object.keys(t).length === 0)
525
524
  return { error: "OptionIsEmpty", message: "请提供需要修改的信息" };
526
525
  await this.token.autoLogin();
527
- const { data: r, code: o, message: i } = await this.req.post("club/user-profile", t, Q, n);
526
+ const { data: r, code: a, message: i } = await this.req.post("club/user-profile", t, Q, n);
528
527
  return r ?? {
529
528
  message: i,
530
- error: o
529
+ error: a
531
530
  };
532
531
  }
533
532
  /**
@@ -537,7 +536,7 @@ class wa {
537
536
  */
538
537
  async getAddresses(t) {
539
538
  if (!await this.token.autoLogin()) return [];
540
- const { data: n } = await this.req.get("club/addresses", He, t);
539
+ const { data: n } = await this.req.get("club/addresses", null, Ke, t);
541
540
  return n?.addresses ?? [];
542
541
  }
543
542
  /**
@@ -547,15 +546,15 @@ class wa {
547
546
  */
548
547
  async addAddress(t, n) {
549
548
  if (!await this.token.autoLogin()) return null;
550
- const { data: r, code: o, message: i } = await this.req.post(
549
+ const { data: r, code: a, message: i } = await this.req.post(
551
550
  "/club/add-address",
552
- c(t),
551
+ l(t),
553
552
  B,
554
553
  n
555
554
  );
556
555
  return r ?? {
557
556
  message: i,
558
- error: o
557
+ error: a
559
558
  };
560
559
  }
561
560
  /**
@@ -565,15 +564,15 @@ class wa {
565
564
  */
566
565
  async updateAddress(t, n) {
567
566
  await this.token.autoLogin();
568
- const { data: r, code: o, message: i } = await this.req.post(
567
+ const { data: r, code: a, message: i } = await this.req.post(
569
568
  "club/update-address",
570
- c(t),
569
+ l(t),
571
570
  B,
572
571
  n
573
572
  );
574
573
  return r ?? {
575
574
  message: i,
576
- error: o
575
+ error: a
577
576
  };
578
577
  }
579
578
  /**
@@ -593,13 +592,10 @@ class wa {
593
592
  */
594
593
  async getUserCredit(t, n) {
595
594
  await this.token.autoLogin();
596
- const { data: r, code: o, message: i } = await this.req.get("club/user-credit", ze, {
597
- ...n,
598
- params: c(t)
599
- });
595
+ const { data: r, code: a, message: i } = await this.req.get("club/user-credit", { ...t }, He, n);
600
596
  return r ?? {
601
597
  message: i,
602
- error: o
598
+ error: a
603
599
  };
604
600
  }
605
601
  /**
@@ -609,10 +605,12 @@ class wa {
609
605
  */
610
606
  async getCreditLogs(t, n) {
611
607
  await this.token.autoLogin();
612
- const { data: r } = await this.req.get("club/credit-logs", Je, {
613
- ...n,
614
- params: c({ max_results: 20, ...t })
615
- });
608
+ const { data: r } = await this.req.get(
609
+ "club/credit-logs",
610
+ { max_results: 20, ...t },
611
+ ze,
612
+ n
613
+ );
616
614
  return {
617
615
  credit_logs: r?.credit_logs || [],
618
616
  next_token: r?.next_token
@@ -625,7 +623,7 @@ class wa {
625
623
  */
626
624
  async getBenefits(t) {
627
625
  if (!await this.token.autoLogin()) return [];
628
- const { data: n } = await this.req.get("club/benefits", Xe, t);
626
+ const { data: n } = await this.req.get("club/benefits", null, Ze, t);
629
627
  return n?.benefits || [];
630
628
  }
631
629
  /**
@@ -635,10 +633,12 @@ class wa {
635
633
  */
636
634
  async getBenefit(t, n) {
637
635
  if (!await this.token.autoLogin()) return null;
638
- const { data: r } = await this.req.get("club/benefit", Ye, {
639
- ...n,
640
- params: { benefit_id: t }
641
- });
636
+ const { data: r } = await this.req.get(
637
+ "club/benefit",
638
+ { benefit_id: t },
639
+ Xe,
640
+ n
641
+ );
642
642
  return r?.benefit || null;
643
643
  }
644
644
  /**
@@ -648,10 +648,7 @@ class wa {
648
648
  */
649
649
  async getProducts(t, n) {
650
650
  await this.token.autoLogin();
651
- const { data: r } = await this.req.get("club/products", Ze, {
652
- ...n,
653
- params: t
654
- });
651
+ const { data: r } = await this.req.get("club/products", t || null, Je, n);
655
652
  return r?.products || [];
656
653
  }
657
654
  /**
@@ -661,10 +658,10 @@ class wa {
661
658
  */
662
659
  async redeemProduct(t, n) {
663
660
  await this.token.autoLogin();
664
- const { ok: r, code: o, message: i } = await this.req.post("club/redeem-product", c(t), null, n);
661
+ const { ok: r, code: a, message: i } = await this.req.post("club/redeem-product", l(t), null, n);
665
662
  return r || {
666
663
  message: i,
667
- error: o
664
+ error: a
668
665
  };
669
666
  }
670
667
  /**
@@ -674,10 +671,12 @@ class wa {
674
671
  */
675
672
  async getRedemptions(t, n) {
676
673
  await this.token.autoLogin();
677
- const { data: r } = await this.req.get("club/redemptions", We, {
678
- ...n,
679
- params: c({ max_results: 20, ...t })
680
- });
674
+ const { data: r } = await this.req.get(
675
+ "club/redemptions",
676
+ { max_results: 20, ...t },
677
+ Ye,
678
+ n
679
+ );
681
680
  return {
682
681
  redemptions: r?.redemptions || [],
683
682
  next_token: r?.next_token
@@ -690,19 +689,19 @@ class wa {
690
689
  */
691
690
  async clubUploadImage(t, n) {
692
691
  await this.token.autoLogin();
693
- const { data: r, code: o, message: i } = await this.req.post(
692
+ const { data: r, code: a, message: i } = await this.req.post(
694
693
  "club/image-upload-url",
695
- c(t),
696
- et,
694
+ l(t),
695
+ We,
697
696
  n
698
697
  );
699
698
  return r ?? {
700
699
  message: i,
701
- error: o
700
+ error: a
702
701
  };
703
702
  }
704
703
  }
705
- class ka {
704
+ class wo {
706
705
  token;
707
706
  req;
708
707
  _event = 0;
@@ -717,8 +716,8 @@ class ka {
717
716
  */
718
717
  bind(t) {
719
718
  const n = this;
720
- for (const [r, o] of Object.entries(t))
721
- o && (n[r] = o.bind(this));
719
+ for (const [r, a] of Object.entries(t))
720
+ a && (n[r] = a.bind(this));
722
721
  return n;
723
722
  }
724
723
  }
@@ -745,17 +744,17 @@ const v = {
745
744
  ExternalCode: "external_gift_code",
746
745
  /** 空奖励 */
747
746
  VoidItem: "void_item"
748
- }, Y = e.string().enum(v).lock(), va = v, W = Y, tt = {
747
+ }, Y = e.string().enum(v).lock(), ko = v, W = Y, et = {
749
748
  /** 世游通行证 ID / Combo ID */
750
749
  UserId: "user_id",
751
750
  /** 游戏角色 ID */
752
751
  RoleId: "role_id"
753
- }, nt = e.string().enum(tt).lock(), rt = {
752
+ }, tt = e.string().enum(et).lock(), nt = {
754
753
  None: "none",
755
754
  Daily: "daily",
756
755
  Weekly: "weekly",
757
756
  Monthly: "monthly"
758
- }, at = e.string().enum(rt).lock(), u = {
757
+ }, rt = e.string().enum(nt).lock(), c = {
759
758
  /** 预约 */
760
759
  Preregister: "preregister",
761
760
  /** 抽奖 */
@@ -804,7 +803,7 @@ const v = {
804
803
  UgcLike: "ugc_like",
805
804
  /** 兑换 */
806
805
  Redeem: "redeem"
807
- }, ot = e.string().enum(u).lock(), it = {
806
+ }, ot = e.string().enum(c).lock(), at = {
808
807
  /** 累计游戏内活跃值 */
809
808
  Active: "player_active_points",
810
809
  /** 累计登录,单位 人天 */
@@ -833,14 +832,14 @@ const v = {
833
832
  OrderAmountInPayCenter: "order_seayoo_web_total_amount",
834
833
  /** 组队进度 */
835
834
  TeamSize: "team_size"
836
- }, ee = e.string().enum(it).lock(), st = {
835
+ }, ee = e.string().enum(at).lock(), it = {
837
836
  /** 官方上传 */
838
837
  System: "system",
839
838
  /** 用户投稿 */
840
839
  UserSubmission: "user_submission",
841
840
  /** 投票入围 */
842
841
  Shortlisted: "shortlisted"
843
- }, ct = e.string().enum(st).lock(), p = {
842
+ }, st = e.string().enum(it).lock(), p = {
844
843
  /** 未获得奖励 */
845
844
  Ineligible: "ineligible",
846
845
  /** 奖励未领取 */
@@ -851,7 +850,7 @@ const v = {
851
850
  Failed: "failed",
852
851
  /** 奖励已发货 */
853
852
  Delivered: "delivered"
854
- }, te = e.string().enum(p).lock(), ut = {
853
+ }, te = e.string().enum(p).lock(), ct = {
855
854
  /** 未获得奖励 */
856
855
  Ineligible: p.Ineligible,
857
856
  /** 奖励未领取 */
@@ -862,17 +861,17 @@ const v = {
862
861
  Failed: p.Failed,
863
862
  /** 奖励已发货 */
864
863
  Delivered: p.Delivered
865
- }, U = e.string().enum(ut).lock(), lt = {
864
+ }, U = e.string().enum(ct).lock(), ut = {
866
865
  /** 玩法产出奖励 */
867
866
  Output: "output",
868
867
  /** 玩法参与奖励 */
869
868
  Engage: "engage"
870
- }, S = e.string().enum(lt).lock(), mt = {
869
+ }, S = e.string().enum(ut).lock(), lt = {
871
870
  /** 私有队伍 */
872
871
  Private: "private",
873
872
  /** 公开队伍 */
874
873
  Public: "public"
875
- }, dt = e.string().enum(mt).lock(), w = {
874
+ }, mt = e.string().enum(lt).lock(), w = {
876
875
  /** 未知状态 */
877
876
  Unknown: "unknown",
878
877
  /** 等待开奖 */
@@ -883,7 +882,7 @@ const v = {
883
882
  Claimed: "claimed",
884
883
  /** 领奖失败 */
885
884
  Fail: "fail"
886
- }, Ra = e.string().enum(w).lock(), gt = {
885
+ }, vo = e.string().enum(w).lock(), dt = {
887
886
  /** 发起组队 */
888
887
  Assemble: "assemble",
889
888
  /** 加入队伍 */
@@ -894,26 +893,26 @@ const v = {
894
893
  ChangeVisibility: "change_visibility",
895
894
  /** 查询组队信息 */
896
895
  Query: "query"
897
- }, Ca = e.string().enum(gt).lock(), _t = {
896
+ }, Ro = e.string().enum(dt).lock(), gt = {
898
897
  /** 查询抽奖券 */
899
898
  Query: "query",
900
899
  /** 开奖 */
901
900
  Draw: "draw",
902
901
  /** 领奖 */
903
902
  Claim: "claim"
904
- }, Va = e.string().enum(_t).lock(), pt = {
903
+ }, Co = e.string().enum(gt).lock(), _t = {
905
904
  /** 将所有队员的进度值求和,作为队伍进度值 */
906
905
  Sum: "sum",
907
906
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
908
907
  TopN: "top_n"
909
- }, bt = e.string().enum(pt).lock(), yt = {
908
+ }, pt = e.string().enum(_t).lock(), bt = {
910
909
  /** 尚未结算 */
911
910
  None: "none",
912
911
  /** 获胜奖励 */
913
912
  Winner: "winner",
914
913
  /** 安慰奖励 */
915
914
  Consolation: "consolation"
916
- }, ft = e.string().enum(yt).lock(), ht = {
915
+ }, yt = e.string().enum(bt).lock(), ft = {
917
916
  /** 抖音 */
918
917
  Douyin: "douyin",
919
918
  /** 小红书 */
@@ -928,73 +927,73 @@ const v = {
928
927
  Huya: "huya",
929
928
  /** 斗鱼 */
930
929
  Douyu: "douyu"
931
- }, P = e.string().enum(ht).lock(), wt = {
930
+ }, P = e.string().enum(ft).lock(), ht = {
932
931
  /** 已提交 */
933
932
  Submitted: "submitted",
934
933
  /** 已接收 */
935
934
  Accepted: "accepted",
936
935
  /** 已拒绝 */
937
936
  Rejected: "rejected"
938
- }, kt = e.string().enum(wt).lock(), vt = e.string().enum(v), g = e.object({
937
+ }, wt = e.string().enum(ht).lock(), kt = e.string().enum(v), g = e.object({
939
938
  reward_item_id: e.number(),
940
939
  reward_amount: e.number(),
941
940
  reward_item_name: e.string(),
942
941
  reward_item_icon_url: e.string(),
943
942
  reward_item_desc: e.string().optional(),
944
- reward_item_type: vt,
943
+ reward_item_type: kt,
945
944
  reward_item_rating: e.number()
946
- }).lock(), Rt = e.object({
945
+ }).lock(), vt = e.object({
947
946
  engage_count: e.number(),
948
947
  rewards: e.array(g)
949
- }).lock(), Ct = e.union(
948
+ }).lock(), Rt = e.union(
950
949
  e.object({
951
950
  feature_reward_type: e.string().enum("every"),
952
951
  reward_details: e.array(g)
953
952
  }),
954
953
  e.object({
955
954
  feature_reward_type: e.string().enum("regular"),
956
- reward_details: e.array(Rt)
955
+ reward_details: e.array(vt)
957
956
  })
958
- ).satisfies().lock(), l = e.object({
957
+ ).satisfies().lock(), u = e.object({
959
958
  feature_name: e.string(),
960
959
  feature_id: e.number(),
961
960
  description: e.string(),
962
- cycle: at,
961
+ cycle: rt,
963
962
  cycle_limit: e.number(),
964
963
  limit: e.number(),
965
964
  since: e.number(),
966
965
  until: e.number(),
967
- engage_account: nt,
968
- feature_rewards: Ct.clone().optional(),
966
+ engage_account: tt,
967
+ feature_rewards: Rt.clone().optional(),
969
968
  sort: e.number().optional()
970
- }), Vt = u.Cashback, jt = e.object({
971
- ...l.shape,
972
- feature_type: e.string().enum(Vt),
969
+ }), Ct = c.Cashback, Vt = e.object({
970
+ ...u.shape,
971
+ feature_type: e.string().enum(Ct),
973
972
  config: e.object({
974
973
  order_start_time: e.number(),
975
974
  order_end_time: e.number(),
976
975
  claim_rewards_start_time: e.number(),
977
976
  claim_rewards_end_time: e.number()
978
977
  })
979
- }), Tt = u.CheckIn, qt = e.object({
980
- ...l.shape,
981
- feature_type: e.string().enum(Tt)
982
- }), xt = u.ClaimActivationKey, Lt = e.object({
983
- ...l.shape,
984
- feature_type: e.string().enum(xt)
985
- }), Ut = u.ClaimRewards, St = e.object({
986
- ...l.shape,
987
- feature_type: e.string().enum(Ut)
988
- }), Pt = u.Comment, Et = e.object({
989
- ...l.shape,
990
- feature_type: e.string().enum(Pt),
978
+ }), jt = c.CheckIn, Tt = e.object({
979
+ ...u.shape,
980
+ feature_type: e.string().enum(jt)
981
+ }), qt = c.ClaimActivationKey, xt = e.object({
982
+ ...u.shape,
983
+ feature_type: e.string().enum(qt)
984
+ }), Lt = c.ClaimRewards, Ut = e.object({
985
+ ...u.shape,
986
+ feature_type: e.string().enum(Lt)
987
+ }), St = c.Comment, Pt = e.object({
988
+ ...u.shape,
989
+ feature_type: e.string().enum(St),
991
990
  config: e.object({
992
991
  comments: e.array(e.string()),
993
992
  send_rate: e.number()
994
993
  })
995
- }), Ft = u.Follow, It = e.object({
996
- ...l.shape,
997
- feature_type: e.string().enum(Ft),
994
+ }), Et = c.Follow, Ft = e.object({
995
+ ...u.shape,
996
+ feature_type: e.string().enum(Et),
998
997
  config: e.object({
999
998
  platform: e.string(),
1000
999
  platform_icon: e.string().optional(),
@@ -1002,67 +1001,67 @@ const v = {
1002
1001
  qr_code_url: e.string().optional(),
1003
1002
  platform_desc: e.string().optional()
1004
1003
  })
1005
- }), Dt = u.GiftCode, $t = e.object({
1004
+ }), It = c.GiftCode, Dt = e.object({
1006
1005
  name: e.string(),
1007
1006
  icon_url: e.string(),
1008
1007
  count: e.number()
1009
- }), At = e.object({
1010
- ...l.shape,
1011
- feature_type: e.string().enum(Dt),
1008
+ }), $t = e.object({
1009
+ ...u.shape,
1010
+ feature_type: e.string().enum(It),
1012
1011
  config: e.object({
1013
- gift_items: e.array($t),
1012
+ gift_items: e.array(Dt),
1014
1013
  mp_url: e.string().optional(),
1015
1014
  mp_qrcode_url: e.string().optional()
1016
1015
  })
1017
- }), Ot = u.Invite, Gt = e.object({
1018
- ...l.shape,
1019
- feature_type: e.string().enum(Ot),
1016
+ }), At = c.Invite, Ot = e.object({
1017
+ ...u.shape,
1018
+ feature_type: e.string().enum(At),
1020
1019
  config: e.object({
1021
1020
  share_url: e.string()
1022
1021
  })
1023
- }), Nt = u.InvitedRegister, Qt = e.object({
1024
- ...l.shape,
1025
- feature_type: e.string().enum(Nt)
1026
- }), Bt = e.string().enum(L(v, "GiftCode", "LotteryTicket")), Mt = u.Lottery, Kt = e.object({
1022
+ }), Gt = c.InvitedRegister, Nt = e.object({
1023
+ ...u.shape,
1024
+ feature_type: e.string().enum(Gt)
1025
+ }), Qt = e.string().enum(L(v, "GiftCode", "LotteryTicket")), Bt = c.Lottery, Mt = e.object({
1027
1026
  reward_item_id: e.number(),
1028
1027
  reward_item_name: e.string(),
1029
- reward_item_type: Bt,
1028
+ reward_item_type: Qt,
1030
1029
  reward_item_icon_url: e.string(),
1031
1030
  reward_item_desc: e.string().optional(),
1032
1031
  reward_amount: e.number(),
1033
1032
  reward_remaining_stock: e.number(),
1034
1033
  reward_item_rating: e.number()
1035
- }), Ht = e.object({
1036
- ...l.shape,
1037
- feature_type: e.string().enum(Mt),
1034
+ }), Kt = e.object({
1035
+ ...u.shape,
1036
+ feature_type: e.string().enum(Bt),
1038
1037
  config: e.object({
1039
1038
  consume_item_id: e.number(),
1040
1039
  consume_item_name: e.string(),
1041
1040
  consume_item_icon_url: e.string(),
1042
1041
  consume_item_count: e.array(e.number()),
1043
1042
  consume_item_desc: e.string().optional(),
1044
- rewards: e.array(Kt)
1043
+ rewards: e.array(Mt)
1045
1044
  })
1046
- }), zt = u.LotteryDraw, Jt = e.object({
1047
- ...l.shape,
1048
- feature_type: e.string().enum(zt),
1045
+ }), Ht = c.LotteryDraw, zt = e.object({
1046
+ ...u.shape,
1047
+ feature_type: e.string().enum(Ht),
1049
1048
  config: e.object({
1050
1049
  draw_not_before: e.number(),
1051
1050
  draw_not_after: e.number()
1052
1051
  })
1053
- }), Zt = u.Preregister, Xt = e.object({
1054
- ...l.shape,
1055
- feature_type: e.string().enum(Zt)
1056
- }), Yt = u.Quest, Wt = e.object({
1057
- ...l.shape,
1058
- feature_type: e.string().enum(Yt),
1052
+ }), Jt = c.Preregister, Zt = e.object({
1053
+ ...u.shape,
1054
+ feature_type: e.string().enum(Jt)
1055
+ }), Xt = c.Quest, Yt = e.object({
1056
+ ...u.shape,
1057
+ feature_type: e.string().enum(Xt),
1059
1058
  config: e.object({
1060
1059
  objective: ee,
1061
1060
  completion_value: e.number(),
1062
1061
  team: e.object({
1063
1062
  feature_id: e.number().optional(),
1064
1063
  completion_value: e.number(),
1065
- progress_algorithm: bt.clone().optional(),
1064
+ progress_algorithm: pt.clone().optional(),
1066
1065
  top_n: e.number().optional()
1067
1066
  }).optional(),
1068
1067
  config: e.object({
@@ -1072,62 +1071,62 @@ const v = {
1072
1071
  event_item_id: e.number().optional()
1073
1072
  }).optional()
1074
1073
  })
1075
- }), en = u.Redeem, tn = e.object({
1074
+ }), Wt = c.Redeem, en = e.object({
1076
1075
  price: e.number(),
1077
1076
  per_user_limit: e.number(),
1078
1077
  item: g
1079
- }), nn = e.object({
1080
- ...l.shape,
1081
- feature_type: e.string().enum(en),
1078
+ }), tn = e.object({
1079
+ ...u.shape,
1080
+ feature_type: e.string().enum(Wt),
1082
1081
  config: e.object({
1083
1082
  event_item_id: e.number(),
1084
- redeem_catalog: e.array(tn)
1083
+ redeem_catalog: e.array(en)
1085
1084
  })
1086
- }), rn = u.Register, an = e.object({
1087
- ...l.shape,
1088
- feature_type: e.string().enum(rn)
1089
- }), on = u.Share, sn = e.object({
1090
- ...l.shape,
1085
+ }), nn = c.Register, rn = e.object({
1086
+ ...u.shape,
1087
+ feature_type: e.string().enum(nn)
1088
+ }), on = c.Share, an = e.object({
1089
+ ...u.shape,
1091
1090
  feature_type: e.string().enum(on),
1092
1091
  config: e.object({
1093
1092
  share_platform: e.string(),
1094
1093
  jump_url: e.string().optional(),
1095
1094
  icon_url: e.string().optional()
1096
1095
  })
1097
- }), cn = u.Subscribe, un = e.object({
1098
- ...l.shape,
1099
- feature_type: e.string().enum(cn),
1096
+ }), sn = c.Subscribe, cn = e.object({
1097
+ ...u.shape,
1098
+ feature_type: e.string().enum(sn),
1100
1099
  config: e.object({
1101
1100
  weixin_template_ids: e.array(e.string())
1102
1101
  })
1103
- }), ln = u.Survey, mn = e.object({
1104
- ...l.shape,
1105
- feature_type: e.string().enum(ln),
1102
+ }), un = c.Survey, ln = e.object({
1103
+ ...u.shape,
1104
+ feature_type: e.string().enum(un),
1106
1105
  config: e.object({
1107
1106
  survey_id: e.string(),
1108
1107
  survey_url: e.string()
1109
1108
  })
1110
- }), dn = u.Team, gn = e.object({
1111
- ...l.shape,
1112
- feature_type: e.string().enum(dn),
1109
+ }), mn = c.Team, dn = e.object({
1110
+ ...u.shape,
1111
+ feature_type: e.string().enum(mn),
1113
1112
  config: e.object({
1114
1113
  max_members: e.number().min(1),
1115
1114
  min_members: e.number().min(1)
1116
1115
  })
1117
- }), _n = u.Ugc, pn = e.object({
1118
- ...l.shape,
1119
- feature_type: e.string().enum(_n),
1116
+ }), gn = c.Ugc, _n = e.object({
1117
+ ...u.shape,
1118
+ feature_type: e.string().enum(gn),
1120
1119
  config: e.object({
1121
1120
  allowed_social_medias: e.array(e.string()).optional(),
1122
1121
  acceptance_rewards: e.array(g).optional()
1123
1122
  })
1124
- }), bn = u.UgcLike, yn = e.object({
1125
- ...l.shape,
1126
- feature_type: e.string().enum(bn),
1123
+ }), pn = c.UgcLike, bn = e.object({
1124
+ ...u.shape,
1125
+ feature_type: e.string().enum(pn),
1127
1126
  config: e.object({
1128
1127
  ugc_feature_id: e.number()
1129
1128
  })
1130
- }), fn = u.Vote, hn = e.object({
1129
+ }), yn = c.Vote, fn = e.object({
1131
1130
  sn: e.string(),
1132
1131
  name: e.string(),
1133
1132
  img_urls: e.array(e.string()).optional(),
@@ -1137,30 +1136,30 @@ const v = {
1137
1136
  amount: e.number(),
1138
1137
  finalists: e.bool(),
1139
1138
  last_vote_time: e.number()
1140
- }), wn = e.object({
1141
- ...l.shape,
1142
- feature_type: e.string().enum(fn),
1139
+ }), hn = e.object({
1140
+ ...u.shape,
1141
+ feature_type: e.string().enum(yn),
1143
1142
  config: e.object({
1144
1143
  vote_feature_ids: e.array(e.number()),
1145
1144
  submission_feature_ids: e.array(e.number()),
1146
1145
  finalists_amount: e.number(),
1147
- source: ct,
1148
- options: e.array(hn),
1146
+ source: st,
1147
+ options: e.array(fn),
1149
1148
  rewards: e.array(g)
1150
1149
  })
1151
1150
  }), T = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ne = e.object({
1152
1151
  order_total_amount: T,
1153
1152
  cashback_total_amount: T,
1154
1153
  game_item_count: T
1155
- }), kn = e.object({
1154
+ }), wn = e.object({
1156
1155
  activation_key: e.string().disallow("")
1157
- }), vn = e.object({
1156
+ }), kn = e.object({
1158
1157
  gift_code: e.string()
1159
- }), Rn = e.object({
1158
+ }), vn = e.object({
1160
1159
  user_id: e.string(),
1161
1160
  name: e.string().optional(),
1162
1161
  avatar_url: e.string().optional()
1163
- }), Cn = e.object({
1162
+ }), Rn = e.object({
1164
1163
  lottery_count: e.number()
1165
1164
  }), R = e.object({
1166
1165
  reward_id: e.number(),
@@ -1180,10 +1179,10 @@ const v = {
1180
1179
  feature_type: ot,
1181
1180
  receive_time: e.number(),
1182
1181
  extra_data: e.record(e.unknown()).optional()
1183
- }), Vn = e.string().enum(w.Unknown, w.Pending), jn = e.union(
1182
+ }), Cn = e.string().enum(w.Unknown, w.Pending), Vn = e.union(
1184
1183
  e.object({
1185
1184
  ticket: e.string(),
1186
- status: Vn,
1185
+ status: Cn,
1187
1186
  created_at: e.number()
1188
1187
  }),
1189
1188
  e.object({
@@ -1192,16 +1191,16 @@ const v = {
1192
1191
  created_at: e.number(),
1193
1192
  reward: R
1194
1193
  })
1195
- ).satisfies(), Tn = e.object({
1196
- tickets: e.array(jn)
1197
- }), qn = e.object({
1194
+ ).satisfies(), jn = e.object({
1195
+ tickets: e.array(Vn)
1196
+ }), Tn = e.object({
1198
1197
  platforms: e.array(e.string())
1199
1198
  }), re = e.object({
1200
1199
  role_name: e.string(),
1201
1200
  is_leader: e.bool(),
1202
1201
  is_myself: e.bool().optional(),
1203
1202
  progress: e.number().optional()
1204
- }).lock(), xn = e.object({
1203
+ }).lock(), qn = e.object({
1205
1204
  objective: ee,
1206
1205
  progress: e.number(),
1207
1206
  completion_value: e.number().optional(),
@@ -1210,17 +1209,17 @@ const v = {
1210
1209
  completion_value: e.number().optional(),
1211
1210
  players: e.array(re)
1212
1211
  }).optional()
1213
- }), Ln = e.object({
1212
+ }), xn = e.object({
1214
1213
  progress: e.number(),
1215
1214
  team: e.object({
1216
1215
  progress: e.number(),
1217
1216
  team_members: e.array(re).optional()
1218
1217
  }).optional()
1219
- }), Un = e.object({
1218
+ }), Ln = e.object({
1220
1219
  item_id: e.number(),
1221
1220
  item_count: e.number(),
1222
1221
  redeem_count: e.number()
1223
- }), Sn = e.object({
1222
+ }), Un = e.object({
1224
1223
  item_stocks: e.array(
1225
1224
  e.object({
1226
1225
  item_id: e.number(),
@@ -1228,25 +1227,25 @@ const v = {
1228
1227
  user_limit: e.number()
1229
1228
  })
1230
1229
  )
1231
- }), Pn = e.object({
1230
+ }), Sn = e.object({
1232
1231
  platform: e.string().optional()
1233
- }), En = e.object({
1232
+ }), Pn = e.object({
1234
1233
  weixin_openid: e.string()
1235
- }), Fn = e.object({
1234
+ }), En = e.object({
1236
1235
  serial_number: e.number()
1237
- }), In = e.object({
1236
+ }), Fn = e.object({
1238
1237
  team_code: e.string(),
1239
1238
  leader_name: e.string(),
1240
1239
  total_members: e.number()
1241
- }), ja = e.object({
1240
+ }), Vo = e.object({
1242
1241
  is_leader: e.bool(),
1243
1242
  is_myself: e.bool().optional(),
1244
1243
  role_name: e.string(),
1245
1244
  server_name: e.string(),
1246
1245
  avatar_url: e.string().optional()
1247
- }), Dn = e.object({
1246
+ }), In = e.object({
1248
1247
  team_code: e.string(),
1249
- visibility: dt,
1248
+ visibility: mt,
1250
1249
  members: e.array(
1251
1250
  e.object({
1252
1251
  is_leader: e.bool(),
@@ -1254,14 +1253,14 @@ const v = {
1254
1253
  server_name: e.string()
1255
1254
  })
1256
1255
  )
1257
- }), $n = e.object({
1256
+ }), Dn = e.object({
1258
1257
  ugc_id: e.number(),
1259
1258
  title: e.string(),
1260
1259
  content: e.string().optional(),
1261
1260
  image_urls: e.array(e.string()).optional(),
1262
1261
  social_media: P.clone().optional(),
1263
1262
  social_media_url: e.string().optional()
1264
- }), An = e.object({
1263
+ }), $n = e.object({
1265
1264
  ugcs: e.array(
1266
1265
  e.object({
1267
1266
  ugc_id: e.number(),
@@ -1281,14 +1280,14 @@ const v = {
1281
1280
  })
1282
1281
  ).optional(),
1283
1282
  next_token: e.string().optional()
1284
- }), On = e.object({
1283
+ }), An = e.object({
1285
1284
  ugcs: e.array(
1286
1285
  e.object({
1287
1286
  ugc_id: e.number(),
1288
1287
  event_id: e.number().optional(),
1289
1288
  feature_id: e.number().optional(),
1290
1289
  feature_name: e.string().optional(),
1291
- review_status: kt,
1290
+ review_status: wt,
1292
1291
  reviewer_comment: e.string().optional(),
1293
1292
  title: e.string(),
1294
1293
  content: e.string().optional(),
@@ -1304,13 +1303,13 @@ const v = {
1304
1303
  })
1305
1304
  ).optional(),
1306
1305
  next_token: e.string().optional()
1307
- }), Gn = e.object({
1306
+ }), On = e.object({
1308
1307
  total_count: e.number()
1309
- }), Nn = e.object({
1308
+ }), Gn = e.object({
1310
1309
  existed: e.bool(),
1311
1310
  upload_url: e.string().optional(),
1312
1311
  image_url: e.string()
1313
- }), Qn = e.object({
1312
+ }), Nn = e.object({
1314
1313
  ugcs: e.array(
1315
1314
  e.object({
1316
1315
  ugc_id: e.number(),
@@ -1323,27 +1322,27 @@ const v = {
1323
1322
  role_name: e.string().optional()
1324
1323
  })
1325
1324
  ).optional()
1326
- }), Bn = e.object({
1325
+ }), Qn = e.object({
1327
1326
  option_sn: e.string()
1328
- }), Mn = e.object({
1327
+ }), Bn = e.object({
1329
1328
  candidate_id: e.string(),
1330
1329
  total_votes: e.number().optional(),
1331
1330
  my_votes: e.number().optional(),
1332
1331
  votes: e.number().optional()
1333
- }), Kn = e.object({
1334
- rewards_type: ft,
1332
+ }), Mn = e.object({
1333
+ rewards_type: yt,
1335
1334
  rewards: e.array(R).optional()
1336
- }), Hn = e.object({
1335
+ }), Kn = e.object({
1337
1336
  candidate_id: e.string(),
1338
1337
  is_winner: e.bool(),
1339
1338
  total_votes: e.number(),
1340
1339
  my_votes: e.number()
1341
- }), zn = e.object({
1340
+ }), Hn = e.object({
1342
1341
  role: e.string(),
1343
1342
  content: e.string()
1343
+ }), zn = e.object({
1344
+ conversations: e.array(Hn)
1344
1345
  }), Jn = e.object({
1345
- conversations: e.array(zn)
1346
- }), Zn = e.object({
1347
1346
  user_id: e.string(),
1348
1347
  name: e.string(),
1349
1348
  avatar_url: e.string(),
@@ -1351,28 +1350,28 @@ const v = {
1351
1350
  video_note: e.number(),
1352
1351
  created_at: e.number()
1353
1352
  }), E = e.union(
1354
- qn,
1355
- Cn,
1356
- Fn,
1353
+ Tn,
1357
1354
  Rn,
1358
- Pn,
1359
- Bn,
1360
- Mn,
1361
1355
  En,
1362
- ne,
1363
1356
  vn,
1364
- Dn,
1365
- xn,
1366
- Tn,
1357
+ Sn,
1358
+ Qn,
1359
+ Bn,
1360
+ Pn,
1361
+ ne,
1367
1362
  kn,
1368
- Jn,
1369
- $n,
1370
- Un,
1363
+ In,
1364
+ qn,
1365
+ jn,
1366
+ wn,
1367
+ zn,
1368
+ Dn,
1369
+ Ln,
1371
1370
  e.custom(
1372
1371
  "EmptyObject",
1373
- (a) => y(a) && Object.keys(a).length === 0
1372
+ (o) => y(o) && Object.keys(o).length === 0
1374
1373
  )
1375
- ).satisfies().lock(), Xn = e.object({
1374
+ ).satisfies().lock(), Zn = e.object({
1376
1375
  reward_id: e.number(),
1377
1376
  reward_item_id: e.number(),
1378
1377
  reward_item_type: W,
@@ -1385,7 +1384,7 @@ const v = {
1385
1384
  reward_item_rating: e.number(),
1386
1385
  receive_time: e.number(),
1387
1386
  extra_data: e.union(...E.validators, e.record(e.unknown())).satisfies().optional()
1388
- }), Yn = e.object({
1387
+ }), Xn = e.object({
1389
1388
  reward_id: e.number(),
1390
1389
  reward_item_id: e.number(),
1391
1390
  reward_item_name: e.string(),
@@ -1397,7 +1396,7 @@ const v = {
1397
1396
  reward_status: te,
1398
1397
  reward_source: S,
1399
1398
  extra_data: e.record(e.unknown()).optional()
1400
- }), Wn = e.object({
1399
+ }), Yn = e.object({
1401
1400
  engagement_id: e.number(),
1402
1401
  user_id: e.string(),
1403
1402
  event_id: e.number(),
@@ -1407,18 +1406,18 @@ const v = {
1407
1406
  server_id: e.string().optional(),
1408
1407
  role_id: e.string().optional(),
1409
1408
  created_at: e.number(),
1410
- rewards: e.array(Xn).optional()
1411
- }).lock(), er = e.object({
1409
+ rewards: e.array(Zn).optional()
1410
+ }).lock(), Wn = e.object({
1412
1411
  allowed: e.bool(),
1413
1412
  registered: e.bool()
1414
- }), tr = e.object({
1413
+ }), er = e.object({
1415
1414
  feature_id: e.number(),
1416
1415
  can_engage: e.bool(),
1417
1416
  has_unclaimed_rewards: e.bool(),
1418
1417
  final_available_count: e.number(),
1419
1418
  total_remaining_engagements: e.number(),
1420
1419
  cycle_remaining_engagements: e.number()
1421
- }), nr = e.object({
1420
+ }), tr = e.object({
1422
1421
  engagement_id: e.number(),
1423
1422
  engagement: e.object({
1424
1423
  engagement_id: e.number(),
@@ -1426,21 +1425,21 @@ const v = {
1426
1425
  feature_id: e.number(),
1427
1426
  data: E.clone().optional()
1428
1427
  }).optional(),
1429
- rewards: e.array(Yn).optional(),
1428
+ rewards: e.array(Xn).optional(),
1430
1429
  scan: e.bool().optional()
1431
- }), rr = e.object({
1430
+ }), nr = e.object({
1432
1431
  reward_id: e.number(),
1433
1432
  reward_status: U
1434
- }), ar = u.Vote2, or = e.object({
1433
+ }), rr = c.Vote2, or = e.object({
1435
1434
  candidate_id: e.string(),
1436
1435
  display_name: e.string(),
1437
1436
  images: e.array(e.string()).optional(),
1438
1437
  videos: e.array(e.string()).optional(),
1439
1438
  description: e.string().optional(),
1440
1439
  jump_url: e.string()
1441
- }), ir = e.object({
1442
- ...l.shape,
1443
- feature_type: e.string().enum(ar),
1440
+ }), ar = e.object({
1441
+ ...u.shape,
1442
+ feature_type: e.string().enum(rr),
1444
1443
  config: e.object({
1445
1444
  vote_item_id: e.number().optional(),
1446
1445
  candidates: e.array(or),
@@ -1451,338 +1450,362 @@ const v = {
1451
1450
  winner_rewards: e.array(g).optional(),
1452
1451
  consolation_rewards: e.array(g).optional()
1453
1452
  })
1454
- }), sr = u.ZeroChatgpt, cr = e.object({
1455
- ...l.shape,
1456
- feature_type: e.string().enum(sr)
1457
- }), ur = e.union(
1458
- jt,
1459
- qt,
1460
- St,
1461
- Et,
1462
- It,
1463
- At,
1464
- Gt,
1465
- Qt,
1466
- Ht,
1467
- Jt,
1468
- Xt,
1469
- Wt,
1453
+ }), ir = c.ZeroChatgpt, sr = e.object({
1454
+ ...u.shape,
1455
+ feature_type: e.string().enum(ir)
1456
+ }), cr = e.union(
1457
+ Vt,
1458
+ Tt,
1459
+ Ut,
1460
+ Pt,
1461
+ Ft,
1462
+ $t,
1463
+ Ot,
1464
+ Nt,
1465
+ Kt,
1466
+ zt,
1467
+ Zt,
1468
+ Yt,
1469
+ rn,
1470
1470
  an,
1471
- sn,
1472
- un,
1473
- mn,
1474
- gn,
1475
- wn,
1476
- ir,
1477
- Lt,
1478
- cr,
1479
- pn,
1480
- yn,
1481
- nn
1482
- ).key("feature_type").satisfies(), lr = e.object({
1471
+ cn,
1472
+ ln,
1473
+ dn,
1474
+ hn,
1475
+ ar,
1476
+ xt,
1477
+ sr,
1478
+ _n,
1479
+ bn,
1480
+ tn
1481
+ ).key("feature_type").satisfies(), ur = e.object({
1483
1482
  event_name: e.string(),
1484
1483
  rules: e.string(),
1485
1484
  since: e.number(),
1486
1485
  until: e.number(),
1487
1486
  visit_count: e.number().optional(),
1488
- features: e.array(ur)
1489
- }).lock(), mr = e.guard(lr), dr = e.guard(er), F = s({ count: e.number() }), gr = s({ first_visit: e.bool() }), _r = s({
1490
- engagements: e.union(e.array(Zn), e.array(In))
1487
+ features: e.array(cr)
1488
+ }).lock(), lr = e.guard(ur), mr = e.guard(Wn), F = s({ count: e.number() }), dr = s({ first_visit: e.bool() }), gr = s({
1489
+ engagements: e.union(e.array(Jn), e.array(Fn))
1490
+ }), _r = s({
1491
+ status: e.array(er)
1491
1492
  }), pr = s({
1492
- status: e.array(tr)
1493
- }), br = s({
1494
1493
  engagements_counts: e.record(e.number())
1495
- }), yr = s({
1496
- engagements: e.array(Wn),
1494
+ }), br = s({
1495
+ engagements: e.array(Yn),
1497
1496
  next_token: e.string().optional()
1498
- }), fr = e.guard(nr), hr = s({
1499
- claimed_items: e.array(rr)
1500
- }), wr = s({
1497
+ }), yr = e.guard(tr), fr = s({
1498
+ claimed_items: e.array(nr)
1499
+ }), hr = s({
1501
1500
  rewards: e.array(R)
1502
- }), kr = s({
1501
+ }), wr = s({
1503
1502
  reward_status: U
1504
- }), vr = s({
1503
+ }), kr = s({
1505
1504
  user_rewards: e.array(R),
1506
1505
  next_token: e.string().optional()
1507
- }), Rr = s({
1506
+ }), vr = s({
1508
1507
  unclaimed: e.number()
1509
- }), Cr = s({
1508
+ }), Rr = s({
1510
1509
  scene: e.string()
1511
- }), Vr = s({
1510
+ }), Cr = s({
1512
1511
  params: e.string()
1513
- }), jr = s({
1512
+ }), Vr = s({
1514
1513
  img: e.string()
1515
- }), Tr = e.guard(Ln), qr = e.guard(Kn), xr = e.guard(
1514
+ }), jr = e.guard(xn), Tr = e.guard(Mn), qr = e.guard(
1516
1515
  e.object({
1517
- candidate_votes: e.array(Hn)
1516
+ candidate_votes: e.array(Kn)
1518
1517
  })
1519
- ), Lr = e.guard(ne), ae = e.guard(On), Ur = e.guard(An), Sr = e.guard(Gn), Pr = e.guard(Nn), Er = e.guard(Qn), Fr = e.guard(Sn);
1520
- async function Ta(a, t, n) {
1521
- const { data: r } = await this.req.get("verify-mobile-allowed", dr, {
1522
- ...n,
1523
- params: { game_id: a, mobile: t }
1524
- });
1518
+ ), xr = e.guard(ne), oe = e.guard(An), Lr = e.guard($n), Ur = e.guard(On), Sr = e.guard(Gn), Pr = e.guard(Nn), Er = e.guard(Un);
1519
+ async function jo(o, t, n) {
1520
+ const { data: r } = await this.req.get(
1521
+ "verify-mobile-allowed",
1522
+ { game_id: o, mobile: t },
1523
+ mr,
1524
+ n
1525
+ );
1525
1526
  return r;
1526
1527
  }
1527
- async function qa(a) {
1528
- const { data: t } = await this.req.get(`event/${this.event}/event-config`, mr, a);
1528
+ async function To(o) {
1529
+ const { data: t } = await this.req.get(`event/${this.event}/event-config`, null, lr, o);
1529
1530
  return t;
1530
1531
  }
1531
- async function xa(a, t) {
1532
- const { data: n } = await this.req.get(`event/${this.event}/feature-engagement-count`, F, {
1533
- ...t,
1534
- params: { feature_id: a, type: "user" }
1535
- });
1532
+ async function qo(o, t) {
1533
+ const { data: n } = await this.req.get(
1534
+ `event/${this.event}/feature-engagement-count`,
1535
+ { feature_id: o, type: "user" },
1536
+ F,
1537
+ t
1538
+ );
1536
1539
  return n?.count ?? null;
1537
1540
  }
1538
- async function La(a, t) {
1539
- const { data: n } = await this.req.get(`event/${this.event}/feature-engagement-count`, F, {
1540
- ...t,
1541
- params: { feature_id: a, type: "engagement" }
1542
- });
1541
+ async function xo(o, t) {
1542
+ const { data: n } = await this.req.get(
1543
+ `event/${this.event}/feature-engagement-count`,
1544
+ { feature_id: o, type: "engagement" },
1545
+ F,
1546
+ t
1547
+ );
1543
1548
  return n?.count ?? null;
1544
1549
  }
1545
- async function Ua(a, t) {
1546
- const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, _r, {
1547
- ...t,
1548
- params: { feature_id: a }
1549
- });
1550
+ async function Lo(o, t) {
1551
+ const { data: n } = await this.req.get(
1552
+ `event/${this.event}/feature-engagements`,
1553
+ { feature_id: o },
1554
+ gr,
1555
+ t
1556
+ );
1550
1557
  return n?.engagements || [];
1551
1558
  }
1552
- async function Sa(a, t) {
1559
+ async function Uo(o, t) {
1553
1560
  await this.token.autoLogin();
1554
- const { data: n, code: r, message: o } = await this.req.post(
1561
+ const { data: n, code: r, message: a } = await this.req.post(
1555
1562
  `event/${this.event}/visit`,
1556
- c(a || {}),
1557
- gr,
1563
+ l(o || {}),
1564
+ dr,
1558
1565
  t
1559
1566
  );
1560
1567
  return n ?? {
1561
- message: o,
1568
+ message: a,
1562
1569
  error: r
1563
1570
  };
1564
1571
  }
1565
- async function Pa(a, t) {
1572
+ async function So(o, t) {
1566
1573
  if (!await this.token.autoLogin()) return [];
1567
- const { data: n } = await this.req.get("event/user-feature-status", pr, {
1568
- ...t,
1569
- message: !1,
1570
- params: c({ ...a, event_id: this.event })
1571
- });
1574
+ const { data: n } = await this.req.get(
1575
+ "event/user-feature-status",
1576
+ { ...o, event_id: this.event },
1577
+ _r,
1578
+ {
1579
+ ...t,
1580
+ message: !1
1581
+ }
1582
+ );
1572
1583
  return n?.status || [];
1573
1584
  }
1574
- async function Ea(a, t) {
1585
+ async function Po(o, t) {
1575
1586
  if (!await this.token.autoLogin()) return {};
1576
- const { data: n } = await this.req.get("event/user-engagements-count", br, {
1577
- message: !1,
1578
- params: c({ ...t, event_id: this.event, feature_id: a })
1579
- });
1587
+ const { data: n } = await this.req.get(
1588
+ "event/user-engagements-count",
1589
+ { ...t, event_id: this.event, feature_id: o },
1590
+ pr,
1591
+ { message: !1 }
1592
+ );
1580
1593
  return n?.engagements_counts || {};
1581
1594
  }
1582
- async function Fa(a, t, n) {
1595
+ async function Eo(o, t, n) {
1583
1596
  if (!await this.token.autoLogin())
1584
1597
  return {
1585
1598
  engagements: [],
1586
1599
  next_token: ""
1587
1600
  };
1588
- const { data: r } = await this.req.get("event/user-engagements", yr, {
1589
- ...n,
1590
- params: c({
1601
+ const { data: r } = await this.req.get(
1602
+ "event/user-engagements",
1603
+ {
1591
1604
  max_results: 20,
1592
1605
  ...t,
1593
1606
  event_id: this.event,
1594
- feature_id: a
1595
- })
1596
- });
1607
+ feature_id: o
1608
+ },
1609
+ br,
1610
+ n
1611
+ );
1597
1612
  return {
1598
1613
  engagements: r?.engagements || [],
1599
1614
  next_token: r?.next_token || ""
1600
1615
  };
1601
1616
  }
1602
- async function Ia(a, t, n, r) {
1617
+ async function Fo(o, t, n, r) {
1603
1618
  await this.token.autoLogin();
1604
- const { data: o, code: i, message: d } = await this.req.post(
1619
+ const { data: a, code: i, message: d } = await this.req.post(
1605
1620
  `event/${this.event}/engage`,
1606
- c({
1607
- feature_id: a,
1621
+ l({
1622
+ feature_id: o,
1608
1623
  engagement: t,
1609
1624
  ...n
1610
1625
  }),
1611
- fr,
1626
+ yr,
1612
1627
  r
1613
1628
  );
1614
- return o ?? {
1629
+ return a ?? {
1615
1630
  message: d,
1616
1631
  error: i
1617
1632
  };
1618
1633
  }
1619
- async function Da(a, t) {
1634
+ async function Io(o, t) {
1620
1635
  await this.token.autoLogin();
1621
- const { data: n, code: r, message: o } = await this.req.post(
1636
+ const { data: n, code: r, message: a } = await this.req.post(
1622
1637
  "event/claim-rewards",
1623
- c({
1624
- ...a,
1625
- server_id: a.server_id ? +a.server_id : void 0
1638
+ l({
1639
+ ...o,
1640
+ server_id: o.server_id ? +o.server_id : void 0
1626
1641
  }),
1627
- hr,
1642
+ fr,
1628
1643
  t
1629
1644
  );
1630
1645
  return n?.claimed_items || {
1631
- message: o,
1646
+ message: a,
1632
1647
  error: r
1633
1648
  };
1634
1649
  }
1635
- async function $a(a, t) {
1650
+ async function Do(o, t) {
1636
1651
  if (!await this.token.autoLogin()) return null;
1637
- const { ok: n, code: r, message: o } = await this.req.post(
1652
+ const { ok: n, code: r, message: a } = await this.req.post(
1638
1653
  `event/${this.event}/user-reward-address`,
1639
- a,
1654
+ o,
1640
1655
  null,
1641
1656
  t
1642
1657
  );
1643
1658
  return n || {
1644
- message: o,
1659
+ message: a,
1645
1660
  error: r
1646
1661
  };
1647
1662
  }
1648
- async function Aa(a, t) {
1663
+ async function $o(o, t) {
1649
1664
  if (!await this.token.autoLogin()) return null;
1650
- const { data: n } = await this.req.get("event/unlimit-qrcode-scene", Cr, {
1651
- ...t,
1652
- params: { params: a }
1653
- });
1665
+ const { data: n } = await this.req.get(
1666
+ "event/unlimit-qrcode-scene",
1667
+ { params: o },
1668
+ Rr,
1669
+ t
1670
+ );
1654
1671
  return n?.scene ?? null;
1655
1672
  }
1656
- async function Oa(a, t) {
1657
- const { data: n } = await this.req.get("event/params-by-qrcode-scene", Vr, {
1658
- ...t,
1659
- params: { scene: a }
1660
- });
1673
+ async function Ao(o, t) {
1674
+ const { data: n } = await this.req.get(
1675
+ "event/params-by-qrcode-scene",
1676
+ { scene: o },
1677
+ Cr,
1678
+ t
1679
+ );
1661
1680
  return n?.params ?? null;
1662
1681
  }
1663
- async function Ga(a, t) {
1682
+ async function Oo(o, t) {
1664
1683
  if (!await this.token.autoLogin()) return null;
1665
1684
  const { data: n } = await this.req.post(
1666
1685
  "event/unlimit-qrcode",
1667
- c(a),
1668
- jr,
1686
+ l(o),
1687
+ Vr,
1669
1688
  t
1670
1689
  );
1671
1690
  return n?.img ?? null;
1672
1691
  }
1673
- async function Na(a, t) {
1692
+ async function Go(o, t) {
1674
1693
  if (!await this.token.autoLogin()) return null;
1675
- const { data: n, code: r, message: o } = await this.req.get(`event/${this.event}/quest-progress`, Tr, {
1676
- message: !1,
1677
- ...t,
1678
- params: { feature_id: a }
1679
- });
1694
+ const { data: n, code: r, message: a } = await this.req.get(
1695
+ `event/${this.event}/quest-progress`,
1696
+ { feature_id: o },
1697
+ jr,
1698
+ { message: !1, ...t }
1699
+ );
1680
1700
  return n || {
1681
- message: o,
1701
+ message: a,
1682
1702
  error: r
1683
1703
  };
1684
1704
  }
1685
- async function Qa(a, t) {
1705
+ async function No(o, t) {
1686
1706
  if (!await this.token.autoLogin()) return null;
1687
- const { data: n, code: r, message: o } = await this.req.post(
1707
+ const { data: n, code: r, message: a } = await this.req.post(
1688
1708
  "event/vote2/rewards",
1689
- { feature_id: a, event_id: this.event },
1690
- qr,
1709
+ { feature_id: o, event_id: this.event },
1710
+ Tr,
1691
1711
  t
1692
1712
  );
1693
1713
  return n || {
1694
- message: o,
1714
+ message: a,
1695
1715
  code: r
1696
1716
  };
1697
1717
  }
1698
- async function Ba(a, t) {
1718
+ async function Qo(o, t) {
1699
1719
  if (!await this.token.autoLogin()) return [];
1700
- const { data: n } = await this.req.get("event/vote2/leaderboard", xr, {
1701
- ...t,
1702
- params: { feature_id: a, event_id: this.event }
1703
- });
1720
+ const { data: n } = await this.req.get(
1721
+ "event/vote2/leaderboard",
1722
+ { feature_id: o, event_id: this.event },
1723
+ qr,
1724
+ t
1725
+ );
1704
1726
  return n?.candidate_votes || [];
1705
1727
  }
1706
- async function Ma(a, t) {
1728
+ async function Bo(o, t) {
1707
1729
  if (!await this.token.autoLogin()) return null;
1708
- const { data: n, code: r, message: o } = await this.req.get("event/cashback/query", Lr, {
1709
- ...t,
1710
- params: { feature_id: a, event_id: this.event }
1711
- });
1730
+ const { data: n, code: r, message: a } = await this.req.get(
1731
+ "event/cashback/query",
1732
+ { feature_id: o, event_id: this.event },
1733
+ xr,
1734
+ t
1735
+ );
1712
1736
  return n || {
1713
- message: o,
1737
+ message: a,
1714
1738
  error: r
1715
1739
  };
1716
1740
  }
1717
- async function Ka(a, t) {
1741
+ async function Mo(o, t) {
1718
1742
  if (!await this.token.autoLogin()) return null;
1719
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/my", ae, {
1720
- ...t,
1721
- params: {
1722
- max_results: 20,
1723
- ...a
1724
- }
1725
- });
1743
+ const { data: n, code: r, message: a } = await this.req.get(
1744
+ "event/ugc/my",
1745
+ { max_results: 20, ...o },
1746
+ oe,
1747
+ t
1748
+ );
1726
1749
  return n || {
1727
- message: o,
1750
+ message: a,
1728
1751
  error: r
1729
1752
  };
1730
1753
  }
1731
- async function Ha(a, t) {
1754
+ async function Ko(o, t) {
1732
1755
  if (!await this.token.autoLogin()) return null;
1733
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/my-count", Sr, {
1734
- ...t,
1735
- params: {
1736
- ...a
1737
- }
1738
- });
1756
+ const { data: n, code: r, message: a } = await this.req.get(
1757
+ "event/ugc/my-count",
1758
+ { ...o },
1759
+ Ur,
1760
+ t
1761
+ );
1739
1762
  return n || {
1740
- message: o,
1763
+ message: a,
1741
1764
  error: r
1742
1765
  };
1743
1766
  }
1744
- async function za(a, t) {
1767
+ async function Ho(o, t) {
1745
1768
  await this.token.autoLogin();
1746
- const { data: n, code: r, message: o } = await this.req.post(
1769
+ const { data: n, code: r, message: a } = await this.req.post(
1747
1770
  "event/claim-rewards-v2",
1748
- c({
1749
- ...a,
1750
- server_id: a.server_id ? +a.server_id : void 0
1771
+ l({
1772
+ ...o,
1773
+ server_id: o.server_id ? +o.server_id : void 0
1751
1774
  }),
1752
- wr,
1775
+ hr,
1753
1776
  t
1754
1777
  );
1755
1778
  return n?.rewards || {
1756
- message: o,
1779
+ message: a,
1757
1780
  error: r
1758
1781
  };
1759
1782
  }
1760
- async function Ja(a, t) {
1783
+ async function zo(o, t) {
1761
1784
  await this.token.autoLogin();
1762
- const { data: n, code: r, message: o } = await this.req.post(
1785
+ const { data: n, code: r, message: a } = await this.req.post(
1763
1786
  "event/claim-weixin-hongbao",
1764
- { reward_id: a },
1765
- kr,
1787
+ { reward_id: o },
1788
+ wr,
1766
1789
  t
1767
1790
  );
1768
1791
  return n || {
1769
- message: o,
1792
+ message: a,
1770
1793
  error: r
1771
1794
  };
1772
1795
  }
1773
- async function Za(a, t) {
1796
+ async function Jo(o, t) {
1774
1797
  if (!this.token.isLoggedIn)
1775
1798
  return { error: "not_logged_in" };
1776
- const { ok: n, code: r, message: o } = await this.req.post("verify-activation-key", { activation_key: a }, null, {
1799
+ const { ok: n, code: r, message: a } = await this.req.post("verify-activation-key", { activation_key: o }, null, {
1777
1800
  message: !1,
1778
1801
  ...t
1779
1802
  });
1780
1803
  return n || {
1781
- message: o,
1804
+ message: a,
1782
1805
  error: r
1783
1806
  };
1784
1807
  }
1785
- async function Xa(a, t) {
1808
+ async function Zo(o, t) {
1786
1809
  if (!await this.token.autoLogin())
1787
1810
  return {
1788
1811
  user_rewards: [],
@@ -1790,8 +1813,8 @@ async function Xa(a, t) {
1790
1813
  };
1791
1814
  const { data: n } = await this.req.post(
1792
1815
  "event/user-rewards",
1793
- c({ max_results: 20, ...a, event_id: this.event }),
1794
- vr,
1816
+ l({ max_results: 20, ...o, event_id: this.event }),
1817
+ kr,
1795
1818
  t
1796
1819
  );
1797
1820
  return {
@@ -1799,102 +1822,114 @@ async function Xa(a, t) {
1799
1822
  next_token: n?.next_token || ""
1800
1823
  };
1801
1824
  }
1802
- async function Ya(a, t) {
1825
+ async function Xo(o, t) {
1803
1826
  if (!await this.token.autoLogin())
1804
1827
  return {
1805
1828
  unclaimed: 0
1806
1829
  };
1807
- const { data: n } = await this.req.get("event/user-rewards-count", Rr, {
1808
- ...t,
1809
- params: c({ ...a })
1810
- });
1830
+ const { data: n } = await this.req.get(
1831
+ "event/user-rewards-count",
1832
+ { ...o },
1833
+ vr,
1834
+ t
1835
+ );
1811
1836
  return {
1812
1837
  unclaimed: n?.unclaimed || 0
1813
1838
  };
1814
1839
  }
1815
- async function Wa(a, t) {
1840
+ async function Yo(o, t) {
1816
1841
  if (!await this.token.autoLogin()) return null;
1817
- const { data: n } = await this.req.get(`event/${this.event}/user-item-count`, F, {
1818
- ...t,
1819
- params: { item_id: a }
1820
- });
1842
+ const { data: n } = await this.req.get(
1843
+ `event/${this.event}/user-item-count`,
1844
+ { item_id: o },
1845
+ F,
1846
+ t
1847
+ );
1821
1848
  return n?.count ?? null;
1822
1849
  }
1823
- async function eo(a, t, n) {
1850
+ async function Wo(o, t, n) {
1824
1851
  if (!await this.token.autoLogin()) return null;
1825
- const { data: r, code: o, message: i } = await this.req.post(
1852
+ const { data: r, code: a, message: i } = await this.req.post(
1826
1853
  "event/ugc/upload-image",
1827
- { feature_id: a, ...t, event_id: this.event },
1828
- Pr,
1854
+ { feature_id: o, ...t, event_id: this.event },
1855
+ Sr,
1829
1856
  n
1830
1857
  );
1831
1858
  return r || {
1832
1859
  message: i,
1833
- error: o
1860
+ error: a
1834
1861
  };
1835
1862
  }
1836
- async function to(a, t) {
1837
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/recommendation", ae, {
1838
- ...t,
1839
- params: {
1840
- feature_id: a,
1863
+ async function ea(o, t) {
1864
+ const { data: n, code: r, message: a } = await this.req.get(
1865
+ "event/ugc/recommendation",
1866
+ {
1867
+ feature_id: o,
1841
1868
  event_id: this.event
1842
- }
1843
- });
1869
+ },
1870
+ oe,
1871
+ t
1872
+ );
1844
1873
  return n || {
1845
- message: o,
1874
+ message: a,
1846
1875
  error: r
1847
1876
  };
1848
1877
  }
1849
- async function no(a, t, n) {
1850
- const { data: r, code: o, message: i } = await this.req.get("event/ugc/ugcs", Ur, {
1851
- ...n,
1852
- params: {
1878
+ async function ta(o, t, n) {
1879
+ const { data: r, code: a, message: i } = await this.req.get(
1880
+ "event/ugc/ugcs",
1881
+ {
1853
1882
  event_id: this.event,
1854
- feature_id: a,
1883
+ feature_id: o,
1855
1884
  max_results: 20,
1856
1885
  ...t
1857
- }
1858
- });
1886
+ },
1887
+ Lr,
1888
+ n
1889
+ );
1859
1890
  return r || {
1860
1891
  message: i,
1861
- error: o
1892
+ error: a
1862
1893
  };
1863
1894
  }
1864
- async function ro(a, t) {
1895
+ async function na(o, t) {
1865
1896
  if (!await this.token.autoLogin()) return null;
1866
- const { data: n, code: r, message: o } = await this.req.get("event/ugc/leaderboard", Er, {
1867
- ...t,
1868
- params: {
1869
- feature_id: a,
1897
+ const { data: n, code: r, message: a } = await this.req.get(
1898
+ "event/ugc/leaderboard",
1899
+ {
1900
+ feature_id: o,
1870
1901
  event_id: this.event
1871
- }
1872
- });
1902
+ },
1903
+ Pr,
1904
+ t
1905
+ );
1873
1906
  return n || {
1874
- message: o,
1907
+ message: a,
1875
1908
  error: r
1876
1909
  };
1877
1910
  }
1878
- async function ao(a, t) {
1911
+ async function ra(o, t) {
1879
1912
  if (!await this.token.autoLogin()) return null;
1880
- const { data: n, code: r, message: o } = await this.req.get("event/redeem/item-stocks", Fr, {
1881
- ...t,
1882
- params: {
1913
+ const { data: n, code: r, message: a } = await this.req.get(
1914
+ "event/redeem/item-stocks",
1915
+ {
1883
1916
  event_id: this.event,
1884
- feature_id: a
1885
- }
1886
- });
1917
+ feature_id: o
1918
+ },
1919
+ Er,
1920
+ t
1921
+ );
1887
1922
  return n || {
1888
- message: o,
1923
+ message: a,
1889
1924
  error: r
1890
1925
  };
1891
1926
  }
1892
- const Ir = {
1927
+ const Fr = {
1893
1928
  /** 所有人均可以发帖 */
1894
1929
  All: "all",
1895
1930
  /** 指定用户可发帖 */
1896
1931
  Limit: "limit"
1897
- }, Dr = e.string().enum(Ir).lock(), $r = {
1932
+ }, Ir = e.string().enum(Fr).lock(), Dr = {
1898
1933
  /** 待审核(仅自己可见) */
1899
1934
  Pending: "pending",
1900
1935
  /** 审核通过 */
@@ -1903,14 +1938,14 @@ const Ir = {
1903
1938
  Failed: "failed",
1904
1939
  /** 嫌疑(仅自己可见) */
1905
1940
  Suspect: "suspect"
1906
- }, oe = e.string().enum($r).lock(), Ar = {
1941
+ }, ae = e.string().enum(Dr).lock(), $r = {
1907
1942
  /** 系统通知 */
1908
1943
  System: "system",
1909
1944
  /** 评论我的 */
1910
1945
  Comment: "comment",
1911
1946
  /** 点赞通知 */
1912
1947
  Like: "like"
1913
- }, oo = e.string().enum(Ar).lock(), m = {
1948
+ }, oa = e.string().enum($r).lock(), m = {
1914
1949
  /** 系统通知 */
1915
1950
  System: "system",
1916
1951
  /** 帖子被置顶 */
@@ -1935,13 +1970,13 @@ const Ir = {
1935
1970
  ReplyLiked: "reply_liked",
1936
1971
  /** 回复被删除 */
1937
1972
  ReplyDeleted: "reply_deleted"
1938
- }, Or = e.string().enum(m).lock(), ie = e.object({
1973
+ }, Ar = e.string().enum(m).lock(), ie = e.object({
1939
1974
  forum_id: e.number(),
1940
1975
  icon_url: e.string(),
1941
1976
  name: e.string(),
1942
1977
  tags: e.array(e.string()),
1943
1978
  sort: e.number(),
1944
- mode: Dr,
1979
+ mode: Ir,
1945
1980
  member_ids: e.array(e.number())
1946
1981
  }).lock(), I = e.object({
1947
1982
  topic_id: e.number(),
@@ -1968,11 +2003,11 @@ const Ir = {
1968
2003
  event_ids: e.array(e.number()),
1969
2004
  is_pinned: e.bool(),
1970
2005
  is_highlighted: e.bool(),
1971
- status: oe,
2006
+ status: ae,
1972
2007
  create_time: e.number()
1973
2008
  }).lock(), se = e.object({
1974
2009
  err_msg: e.string().optional()
1975
- }).optional().lock(), Gr = e.object({
2010
+ }).optional().lock(), Or = e.object({
1976
2011
  reply_id: e.number(),
1977
2012
  reply_content: e.string().optional(),
1978
2013
  replied_by: e.string(),
@@ -1991,7 +2026,7 @@ const Ir = {
1991
2026
  content: e.string(),
1992
2027
  like_num: e.number(),
1993
2028
  liked: e.bool(),
1994
- reply_to: Gr,
2029
+ reply_to: Or,
1995
2030
  create_time: e.number()
1996
2031
  }).lock(), k = e.object({
1997
2032
  comment_id: e.number(),
@@ -2011,21 +2046,21 @@ const Ir = {
2011
2046
  liked: e.bool(),
2012
2047
  image_url: e.string(),
2013
2048
  create_time: e.number(),
2014
- status: oe,
2049
+ status: ae,
2015
2050
  replies: e.array(C).optional()
2016
- }).lock(), Nr = e.object({
2051
+ }).lock(), Gr = e.object({
2017
2052
  image_url: e.string(),
2018
2053
  upload_url: e.string(),
2019
2054
  existed: e.bool()
2020
2055
  }).lock(), _ = e.object({
2021
2056
  notification_id: e.string(),
2022
- notification_type: Or,
2057
+ notification_type: Ar,
2023
2058
  is_read: e.bool(),
2024
2059
  create_time: e.number(),
2025
2060
  origin_user_id: e.string(),
2026
2061
  origin_user_name: e.string(),
2027
2062
  origin_user_avatar_url: e.string()
2028
- }).lock(), Qr = e.object({
2063
+ }).lock(), Nr = e.object({
2029
2064
  system_message_subject: e.string(),
2030
2065
  system_message_content: e.string()
2031
2066
  }).lock(), $ = e.object({
@@ -2039,11 +2074,11 @@ const Ir = {
2039
2074
  }).lock(), A = e.object({
2040
2075
  reply_id: e.number(),
2041
2076
  reply_content: e.string()
2042
- }).lock(), Br = e.object({
2077
+ }).lock(), Qr = e.object({
2043
2078
  ..._.shape,
2044
- ...Qr.shape,
2079
+ ...Nr.shape,
2045
2080
  notification_type: e.string().enum(m.System)
2046
- }), Mr = e.object({
2081
+ }), Br = e.object({
2047
2082
  ..._.shape,
2048
2083
  ...$.shape,
2049
2084
  notification_type: e.string().enum(
@@ -2052,68 +2087,68 @@ const Ir = {
2052
2087
  m.PostDeleted,
2053
2088
  m.PostLiked
2054
2089
  )
2055
- }), Kr = e.object({
2090
+ }), Mr = e.object({
2056
2091
  ..._.shape,
2057
2092
  ...$.shape,
2058
2093
  ...V.shape,
2059
2094
  notification_type: e.string().enum(m.PostCommented)
2060
- }), Hr = e.object({
2095
+ }), Kr = e.object({
2061
2096
  ..._.shape,
2062
2097
  ...V.shape,
2063
2098
  ...A.shape,
2064
2099
  notification_type: e.string().enum(m.CommentReplied)
2065
- }), zr = e.object({
2100
+ }), Hr = e.object({
2066
2101
  ..._.shape,
2067
2102
  ...V.shape,
2068
2103
  ...$.shape,
2069
2104
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
2070
- }), Jr = e.object({
2105
+ }), zr = e.object({
2071
2106
  ..._.shape,
2072
2107
  ...A.shape,
2073
2108
  notification_type: e.string().enum(m.ReplyReplied),
2074
2109
  comment_id: e.number(),
2075
2110
  reply_to_reply_id: e.number(),
2076
2111
  reply_to_reply_content: e.string()
2077
- }), Zr = e.object({
2112
+ }), Jr = e.object({
2078
2113
  ..._.shape,
2079
2114
  ...A.shape,
2080
2115
  ...V.shape,
2081
2116
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
2082
- }), Xr = e.union(
2117
+ }), Zr = e.union(
2118
+ Qr,
2083
2119
  Br,
2084
2120
  Mr,
2085
2121
  Kr,
2086
2122
  Hr,
2087
2123
  zr,
2088
- Jr,
2089
- Zr
2090
- ).satisfies().lock(), Yr = s({ forums: e.array(ie) }), Wr = s({ topics: e.array(I) }), ea = s({ topic: I }), ta = s({ post: D }), M = s({
2124
+ Jr
2125
+ ).satisfies().lock(), Xr = s({ forums: e.array(ie) }), Yr = s({ topics: e.array(I) }), Wr = s({ topic: I }), eo = s({ post: D }), M = s({
2091
2126
  posts: e.array(D),
2092
2127
  next_token: e.string().optional()
2093
- }), na = s({
2128
+ }), to = s({
2094
2129
  post: D.clone().optional(),
2095
2130
  antispam: se.clone().optional()
2096
- }), ra = s({
2131
+ }), no = s({
2097
2132
  replies: e.array(C),
2098
2133
  next_token: e.string().optional()
2099
- }), aa = s({ reply: C }), oa = s({
2134
+ }), ro = s({ reply: C }), oo = s({
2100
2135
  reply: C.clone().optional(),
2101
2136
  antispam: se.clone().optional()
2102
- }), ia = s({ comment: k }), sa = s({
2137
+ }), ao = s({ comment: k }), io = s({
2103
2138
  comments: e.array(k),
2104
2139
  next_token: e.string().optional()
2105
- }), ca = s({
2140
+ }), so = s({
2106
2141
  comment: k.clone().optional(),
2107
2142
  antispam: k.clone().optional()
2108
- }), ua = e.guard(Nr), la = s({
2109
- notifications: e.array(Xr),
2143
+ }), co = e.guard(Gr), uo = s({
2144
+ notifications: e.array(Zr),
2110
2145
  next_token: e.string().optional()
2111
- }), ma = s({
2146
+ }), lo = s({
2112
2147
  system: e.number(),
2113
2148
  comment: e.number(),
2114
2149
  like: e.number()
2115
2150
  });
2116
- class io {
2151
+ class aa {
2117
2152
  token;
2118
2153
  req;
2119
2154
  constructor(t) {
@@ -2125,7 +2160,7 @@ class io {
2125
2160
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
2126
2161
  */
2127
2162
  async getForums(t) {
2128
- const { data: n } = await this.req.get("community/forums", Yr, t);
2163
+ const { data: n } = await this.req.get("community/forums", null, Xr, t);
2129
2164
  return n?.forums || [];
2130
2165
  }
2131
2166
  /**
@@ -2134,7 +2169,7 @@ class io {
2134
2169
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
2135
2170
  */
2136
2171
  async getTopics(t) {
2137
- const { data: n } = await this.req.get("community/topics", Wr, t);
2172
+ const { data: n } = await this.req.get("community/topics", null, Yr, t);
2138
2173
  return n?.topics || [];
2139
2174
  }
2140
2175
  /**
@@ -2143,11 +2178,13 @@ class io {
2143
2178
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
2144
2179
  */
2145
2180
  async getTopic(t, n) {
2146
- const { data: r, code: o } = await this.req.get("community/topic", ea, {
2147
- ...n,
2148
- params: { topic_id: t }
2149
- });
2150
- return r?.topic ?? { error: o };
2181
+ const { data: r, code: a } = await this.req.get(
2182
+ "community/topic",
2183
+ { topic_id: t },
2184
+ Wr,
2185
+ n
2186
+ );
2187
+ return r?.topic ?? { error: a };
2151
2188
  }
2152
2189
  /**
2153
2190
  * 获取社区帖子列表
@@ -2155,13 +2192,15 @@ class io {
2155
2192
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
2156
2193
  */
2157
2194
  async getPosts(t, n) {
2158
- const { data: r, code: o, message: i } = await this.req.get("community/posts", M, {
2159
- ...n,
2160
- params: c(t)
2161
- });
2195
+ const { data: r, code: a, message: i } = await this.req.get(
2196
+ "community/posts",
2197
+ t || null,
2198
+ M,
2199
+ n
2200
+ );
2162
2201
  return r ?? {
2163
2202
  message: i,
2164
- error: o
2203
+ error: a
2165
2204
  };
2166
2205
  }
2167
2206
  /**
@@ -2169,11 +2208,13 @@ class io {
2169
2208
  *
2170
2209
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
2171
2210
  */
2172
- async getPinnedPosts(t, n, r, o) {
2173
- const { data: i, code: d, message: b } = await this.req.get("community/pinned-posts", M, {
2174
- ...o,
2175
- params: c({ forum_id: t, max_results: n, next_token: r })
2176
- });
2211
+ async getPinnedPosts(t, n, r, a) {
2212
+ const { data: i, code: d, message: b } = await this.req.get(
2213
+ "community/pinned-posts",
2214
+ { forum_id: t, max_results: n, next_token: r },
2215
+ M,
2216
+ a
2217
+ );
2177
2218
  return i ?? {
2178
2219
  message: b,
2179
2220
  error: d
@@ -2185,13 +2226,15 @@ class io {
2185
2226
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2186
2227
  */
2187
2228
  async getPost(t, n) {
2188
- const { data: r, code: o, message: i } = await this.req.get("community/post", ta, {
2189
- ...n,
2190
- params: { post_id: t }
2191
- });
2229
+ const { data: r, code: a, message: i } = await this.req.get(
2230
+ "community/post",
2231
+ { post_id: t },
2232
+ eo,
2233
+ n
2234
+ );
2192
2235
  return r?.post ?? {
2193
2236
  message: i,
2194
- error: o
2237
+ error: a
2195
2238
  };
2196
2239
  }
2197
2240
  /**
@@ -2200,15 +2243,15 @@ class io {
2200
2243
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=M5okHBuaVk
2201
2244
  */
2202
2245
  async post(t, n) {
2203
- const { data: r, code: o, message: i } = await this.req.post(
2246
+ const { data: r, code: a, message: i } = await this.req.post(
2204
2247
  "community/post",
2205
- c(t),
2206
- na,
2248
+ l(t),
2249
+ to,
2207
2250
  n
2208
2251
  );
2209
2252
  return r ?? {
2210
2253
  message: i,
2211
- error: o
2254
+ error: a
2212
2255
  };
2213
2256
  }
2214
2257
  /**
@@ -2217,13 +2260,15 @@ class io {
2217
2260
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2218
2261
  */
2219
2262
  async getComments(t, n) {
2220
- const { data: r, code: o, message: i } = await this.req.get("community/comments", sa, {
2221
- ...n,
2222
- params: c(t)
2223
- });
2263
+ const { data: r, code: a, message: i } = await this.req.get(
2264
+ "community/comments",
2265
+ t,
2266
+ io,
2267
+ n
2268
+ );
2224
2269
  return r ?? {
2225
2270
  message: i,
2226
- error: o
2271
+ error: a
2227
2272
  };
2228
2273
  }
2229
2274
  /**
@@ -2232,13 +2277,15 @@ class io {
2232
2277
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2233
2278
  */
2234
2279
  async getComment(t, n) {
2235
- const { data: r, code: o, message: i } = await this.req.get("community/comment", ia, {
2236
- ...n,
2237
- params: { comment_id: t }
2238
- });
2280
+ const { data: r, code: a, message: i } = await this.req.get(
2281
+ "community/comment",
2282
+ { comment_id: t },
2283
+ ao,
2284
+ n
2285
+ );
2239
2286
  return r?.comment ?? {
2240
2287
  message: i,
2241
- error: o
2288
+ error: a
2242
2289
  };
2243
2290
  }
2244
2291
  /**
@@ -2248,15 +2295,15 @@ class io {
2248
2295
  */
2249
2296
  async comment(t, n) {
2250
2297
  await this.token.autoLogin();
2251
- const { data: r, code: o, message: i } = await this.req.post(
2298
+ const { data: r, code: a, message: i } = await this.req.post(
2252
2299
  "community/comment",
2253
- c(t),
2254
- ca,
2300
+ l(t),
2301
+ so,
2255
2302
  n
2256
2303
  );
2257
2304
  return r ?? {
2258
2305
  message: i,
2259
- error: o
2306
+ error: a
2260
2307
  };
2261
2308
  }
2262
2309
  /**
@@ -2265,10 +2312,12 @@ class io {
2265
2312
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2266
2313
  */
2267
2314
  async getReplies(t, n) {
2268
- const { data: r } = await this.req.get("community/replies", ra, {
2269
- ...n,
2270
- params: c({ max_results: 20, ...t })
2271
- });
2315
+ const { data: r } = await this.req.get(
2316
+ "community/replies",
2317
+ { max_results: 20, ...t },
2318
+ no,
2319
+ n
2320
+ );
2272
2321
  return {
2273
2322
  replies: r?.replies || [],
2274
2323
  next_token: r?.next_token || ""
@@ -2280,13 +2329,15 @@ class io {
2280
2329
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2281
2330
  */
2282
2331
  async getReply(t, n) {
2283
- const { data: r, code: o, message: i } = await this.req.get("community/reply", aa, {
2284
- ...n,
2285
- params: { reply_id: t }
2286
- });
2332
+ const { data: r, code: a, message: i } = await this.req.get(
2333
+ "community/reply",
2334
+ { reply_id: t },
2335
+ ro,
2336
+ n
2337
+ );
2287
2338
  return r?.reply ?? {
2288
2339
  message: i,
2289
- error: o
2340
+ error: a
2290
2341
  };
2291
2342
  }
2292
2343
  /**
@@ -2296,15 +2347,15 @@ class io {
2296
2347
  */
2297
2348
  async reply(t, n) {
2298
2349
  await this.token.autoLogin();
2299
- const { data: r, code: o, message: i } = await this.req.post(
2350
+ const { data: r, code: a, message: i } = await this.req.post(
2300
2351
  "community/reply",
2301
- c(t),
2302
- oa,
2352
+ l(t),
2353
+ oo,
2303
2354
  n
2304
2355
  );
2305
2356
  return r ?? {
2306
2357
  message: i,
2307
- error: o
2358
+ error: a
2308
2359
  };
2309
2360
  }
2310
2361
  /**
@@ -2314,7 +2365,7 @@ class io {
2314
2365
  */
2315
2366
  async like(t, n) {
2316
2367
  await this.token.autoLogin();
2317
- const { ok: r, code: o, message: i } = await this.req.post(
2368
+ const { ok: r, code: a, message: i } = await this.req.post(
2318
2369
  "community/like",
2319
2370
  { ...t, action: "like" },
2320
2371
  null,
@@ -2322,7 +2373,7 @@ class io {
2322
2373
  );
2323
2374
  return r || {
2324
2375
  message: i,
2325
- error: o
2376
+ error: a
2326
2377
  };
2327
2378
  }
2328
2379
  /**
@@ -2332,7 +2383,7 @@ class io {
2332
2383
  */
2333
2384
  async unlike(t, n) {
2334
2385
  await this.token.autoLogin();
2335
- const { ok: r, code: o, message: i } = await this.req.post(
2386
+ const { ok: r, code: a, message: i } = await this.req.post(
2336
2387
  "community/like",
2337
2388
  { ...t, action: "unlike" },
2338
2389
  null,
@@ -2340,7 +2391,7 @@ class io {
2340
2391
  );
2341
2392
  return r || {
2342
2393
  message: i,
2343
- error: o
2394
+ error: a
2344
2395
  };
2345
2396
  }
2346
2397
  /**
@@ -2350,10 +2401,12 @@ class io {
2350
2401
  */
2351
2402
  async getMediaPresignedUrl(t, n) {
2352
2403
  await this.token.autoLogin();
2353
- const { data: r } = await this.req.get("community/media-presign-url", ua, {
2354
- ...n,
2355
- params: t
2356
- });
2404
+ const { data: r } = await this.req.get(
2405
+ "community/media-presign-url",
2406
+ t,
2407
+ co,
2408
+ n
2409
+ );
2357
2410
  return r;
2358
2411
  }
2359
2412
  /**
@@ -2365,10 +2418,12 @@ class io {
2365
2418
  */
2366
2419
  async getNotifications(t, n) {
2367
2420
  await this.token.autoLogin();
2368
- const { data: r } = await this.req.get("community/notifications", la, {
2369
- ...n,
2370
- params: c({ max_results: 20, ...t })
2371
- });
2421
+ const { data: r } = await this.req.get(
2422
+ "community/notifications",
2423
+ { max_results: 20, ...t },
2424
+ uo,
2425
+ n
2426
+ );
2372
2427
  return {
2373
2428
  notifications: r?.notifications || [],
2374
2429
  next_token: r?.next_token || ""
@@ -2383,7 +2438,8 @@ class io {
2383
2438
  if (!await this.token.autoLogin()) return null;
2384
2439
  const { data: n } = await this.req.get(
2385
2440
  "community/unread-notifications-count",
2386
- ma,
2441
+ null,
2442
+ lo,
2387
2443
  t
2388
2444
  );
2389
2445
  return n;
@@ -2399,17 +2455,17 @@ class io {
2399
2455
  return r;
2400
2456
  }
2401
2457
  }
2402
- const da = s({
2458
+ const mo = s({
2403
2459
  nonce_str: e.string(),
2404
2460
  timestamp: e.number(),
2405
2461
  signature: e.string()
2406
2462
  });
2407
- var ga = /* @__PURE__ */ ((a) => (a.RedirectUriDisMatch = "10003", a.AppidError = "10016", a.AuthorizationError = "10015", a.NoRightForScope = "10005", a.Frequently = "10009", a.AppBanded = "10004", a.ShouldFollow = "10006", a.ScopeNull = "10010", a.RedirectUriNull = "10011", a.AppidNull = "10012", a.StateNull = "10013", a))(ga || {});
2408
- function q(a) {
2409
- return y(a, "open_id", "union_id", "weixin_token");
2463
+ var go = /* @__PURE__ */ ((o) => (o.RedirectUriDisMatch = "10003", o.AppidError = "10016", o.AuthorizationError = "10015", o.NoRightForScope = "10005", o.Frequently = "10009", o.AppBanded = "10004", o.ShouldFollow = "10006", o.ScopeNull = "10010", o.RedirectUriNull = "10011", o.AppidNull = "10012", o.StateNull = "10013", o))(go || {});
2464
+ function q(o) {
2465
+ return y(o, "open_id", "union_id", "weixin_token");
2410
2466
  }
2411
2467
  const K = "wx_login_cache";
2412
- class so {
2468
+ class ia {
2413
2469
  token;
2414
2470
  _appid;
2415
2471
  req;
@@ -2443,7 +2499,7 @@ class so {
2443
2499
  const t = this.token.storage.get(K);
2444
2500
  if (!t)
2445
2501
  return null;
2446
- const n = he(t);
2502
+ const n = fe(t);
2447
2503
  return q(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2448
2504
  }
2449
2505
  /**
@@ -2469,13 +2525,13 @@ class so {
2469
2525
  const n = await this.getLoginCache();
2470
2526
  if (n)
2471
2527
  return n;
2472
- const r = await Re(), { data: o, code: i, message: d } = await this.req.post(
2528
+ const r = await ve(), { data: a, code: i, message: d } = await this.req.post(
2473
2529
  "weixin/login",
2474
2530
  { code: r, appid: this.appid },
2475
2531
  q,
2476
2532
  { ...t, message: !1 }
2477
2533
  );
2478
- return o && (this.token.weixinToken = o.weixin_token, this.token.storage.set(K, JSON.stringify(o))), o ?? {
2534
+ return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(K, JSON.stringify(a))), a ?? {
2479
2535
  message: d,
2480
2536
  error: i
2481
2537
  };
@@ -2497,11 +2553,11 @@ class so {
2497
2553
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2498
2554
  */
2499
2555
  async webLogin(t = "snsapi_userinfo", n) {
2500
- const r = x("code"), o = Date.now(), i = +x("state");
2501
- if (!r || !i || i < o - 1e3 * 60 * 5 || i > o) {
2556
+ const r = x("code"), a = Date.now(), i = +x("state");
2557
+ if (!r || !i || i < a - 1e3 * 60 * 5 || i > a) {
2502
2558
  const le = O(["code", "state"]);
2503
2559
  location.replace(
2504
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${o}#wechat_redirect`
2560
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2505
2561
  );
2506
2562
  return;
2507
2563
  }
@@ -2537,11 +2593,11 @@ class so {
2537
2593
  async linkPlayer(t, n, r) {
2538
2594
  if (!t || !n)
2539
2595
  return !1;
2540
- const { ok: o } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: n }, null, {
2596
+ const { ok: a } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: n }, null, {
2541
2597
  ...r,
2542
2598
  message: !1
2543
2599
  });
2544
- return o;
2600
+ return a;
2545
2601
  }
2546
2602
  /**
2547
2603
  * 获取集成 JSSDK 所需的签名信息
@@ -2549,13 +2605,15 @@ class so {
2549
2605
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2550
2606
  */
2551
2607
  async getJSSDKConfig(t) {
2552
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", da, {
2553
- ...t,
2554
- params: {
2608
+ const { data: n } = await this.req.get(
2609
+ "weixin/offiaccount/jssdk-sign",
2610
+ {
2555
2611
  appid: this.appid,
2556
2612
  url: location.href.split("#")[0]
2557
- }
2558
- });
2613
+ },
2614
+ mo,
2615
+ t
2616
+ );
2559
2617
  return n ? {
2560
2618
  appid: this.appid,
2561
2619
  nonceStr: n.nonce_str,
@@ -2566,202 +2624,202 @@ class so {
2566
2624
  }
2567
2625
  export {
2568
2626
  se as AntispamValidator,
2569
- fa as AuthToken,
2570
- Hn as CandidateVoteValidator,
2627
+ yo as AuthToken,
2628
+ Kn as CandidateVoteValidator,
2571
2629
  ne as CashbackEngagementDataValidator,
2572
- kn as ClaimActivationKeyEngagementDataValidator,
2573
- ut as ClaimRewardStatus,
2630
+ wn as ClaimActivationKeyEngagementDataValidator,
2631
+ ct as ClaimRewardStatus,
2574
2632
  U as ClaimRewardStatusValidator,
2575
- rr as ClaimedItemValidator,
2633
+ nr as ClaimedItemValidator,
2576
2634
  J as ClubAddressValidator,
2577
- wa as ClubApi,
2635
+ ho as ClubApi,
2578
2636
  Z as ClubBenefitSummaryValidator,
2579
- Ge as ClubBenefitValidator,
2580
- qe as ClubCreditChangeScene,
2581
- xe as ClubCreditChangeSceneValidator,
2582
- je as ClubCreditChangeType,
2583
- Te as ClubCreditChangeTypeValidator,
2584
- Oe as ClubCreditLogValidator,
2585
- Pe as ClubGlobalConfigValidator,
2586
- Le as ClubItemType,
2637
+ Oe as ClubBenefitValidator,
2638
+ Te as ClubCreditChangeScene,
2639
+ qe as ClubCreditChangeSceneValidator,
2640
+ Ve as ClubCreditChangeType,
2641
+ je as ClubCreditChangeTypeValidator,
2642
+ Ae as ClubCreditLogValidator,
2643
+ Se as ClubGlobalConfigValidator,
2644
+ xe as ClubItemType,
2587
2645
  H as ClubItemTypeValidator,
2588
- Ee as ClubPlayerValidator,
2646
+ Pe as ClubPlayerValidator,
2589
2647
  X as ClubProductValidator,
2590
- Ue as ClubRedemptionStatus,
2591
- Se as ClubRedemptionStatusValidator,
2592
- Ae as ClubUserCreditValidator,
2593
- $e as ClubUserProfileValidator,
2594
- Zn as CommentEngagementValidator,
2648
+ Le as ClubRedemptionStatus,
2649
+ Ue as ClubRedemptionStatusValidator,
2650
+ $e as ClubUserCreditValidator,
2651
+ De as ClubUserProfileValidator,
2652
+ Jn as CommentEngagementValidator,
2595
2653
  k as CommentValidator,
2596
- io as CommunityApi,
2597
- zn as ConversationValidator,
2598
- tt as EngageAccountType,
2599
- nt as EngageAccountTypeValidator,
2600
- nr as EngageResponseValidator,
2601
- Yn as EngageRewardValidator,
2602
- ka as EventApi,
2603
- lr as EventConfigValidator,
2604
- jt as EventFeatureConfigOfCashbackValidator,
2605
- qt as EventFeatureConfigOfCheckInValidator,
2606
- Lt as EventFeatureConfigOfClaimActivationKeyValidator,
2607
- St as EventFeatureConfigOfClaimRewardsValidator,
2608
- Et as EventFeatureConfigOfCommentValidator,
2609
- It as EventFeatureConfigOfFollowValidator,
2610
- At as EventFeatureConfigOfGiftCodeValidator,
2611
- Gt as EventFeatureConfigOfInviteValidator,
2612
- Qt as EventFeatureConfigOfInvitedRegisterValidator,
2613
- Jt as EventFeatureConfigOfLotteryDrawValidator,
2614
- Ht as EventFeatureConfigOfLotteryValidator,
2615
- Xt as EventFeatureConfigOfPreregisterValidator,
2616
- Wt as EventFeatureConfigOfQuestValidator,
2617
- nn as EventFeatureConfigOfRedeemValidator,
2618
- an as EventFeatureConfigOfRegisterValidator,
2619
- sn as EventFeatureConfigOfShareValidator,
2620
- un as EventFeatureConfigOfSubscribeValidator,
2621
- mn as EventFeatureConfigOfSurveyValidator,
2622
- gn as EventFeatureConfigOfTeamValidator,
2623
- yn as EventFeatureConfigOfUgcLikeValidator,
2624
- pn as EventFeatureConfigOfUgcValidator,
2625
- ir as EventFeatureConfigOfVote2Validator,
2626
- wn as EventFeatureConfigOfVoteValidator,
2627
- ur as EventFeatureConfigValidator,
2628
- rt as EventPeriodType,
2629
- at as EventPeriodTypeValidator,
2654
+ aa as CommunityApi,
2655
+ Hn as ConversationValidator,
2656
+ et as EngageAccountType,
2657
+ tt as EngageAccountTypeValidator,
2658
+ tr as EngageResponseValidator,
2659
+ Xn as EngageRewardValidator,
2660
+ wo as EventApi,
2661
+ ur as EventConfigValidator,
2662
+ Vt as EventFeatureConfigOfCashbackValidator,
2663
+ Tt as EventFeatureConfigOfCheckInValidator,
2664
+ xt as EventFeatureConfigOfClaimActivationKeyValidator,
2665
+ Ut as EventFeatureConfigOfClaimRewardsValidator,
2666
+ Pt as EventFeatureConfigOfCommentValidator,
2667
+ Ft as EventFeatureConfigOfFollowValidator,
2668
+ $t as EventFeatureConfigOfGiftCodeValidator,
2669
+ Ot as EventFeatureConfigOfInviteValidator,
2670
+ Nt as EventFeatureConfigOfInvitedRegisterValidator,
2671
+ zt as EventFeatureConfigOfLotteryDrawValidator,
2672
+ Kt as EventFeatureConfigOfLotteryValidator,
2673
+ Zt as EventFeatureConfigOfPreregisterValidator,
2674
+ Yt as EventFeatureConfigOfQuestValidator,
2675
+ tn as EventFeatureConfigOfRedeemValidator,
2676
+ rn as EventFeatureConfigOfRegisterValidator,
2677
+ an as EventFeatureConfigOfShareValidator,
2678
+ cn as EventFeatureConfigOfSubscribeValidator,
2679
+ ln as EventFeatureConfigOfSurveyValidator,
2680
+ dn as EventFeatureConfigOfTeamValidator,
2681
+ bn as EventFeatureConfigOfUgcLikeValidator,
2682
+ _n as EventFeatureConfigOfUgcValidator,
2683
+ ar as EventFeatureConfigOfVote2Validator,
2684
+ hn as EventFeatureConfigOfVoteValidator,
2685
+ cr as EventFeatureConfigValidator,
2686
+ nt as EventPeriodType,
2687
+ rt as EventPeriodTypeValidator,
2630
2688
  g as EventRewardItemConfigValidator,
2631
- Qe as ExtraGameRewardValidator,
2632
- Ne as ExtraPhysicalShipmentValidator,
2633
- tn as FeatureRedeemItemConfigValidator,
2634
- Ct as FeatureRewardValidator,
2635
- u as FeatureType,
2689
+ Ne as ExtraGameRewardValidator,
2690
+ Ge as ExtraPhysicalShipmentValidator,
2691
+ en as FeatureRedeemItemConfigValidator,
2692
+ Rt as FeatureRewardValidator,
2693
+ c as FeatureType,
2636
2694
  ot as FeatureTypeValidator,
2637
- Ir as ForumMode,
2638
- Dr as ForumModeValidator,
2695
+ Fr as ForumMode,
2696
+ Ir as ForumModeValidator,
2639
2697
  ie as ForumValidator,
2640
2698
  v as GamerItemType,
2641
2699
  Y as GamerItemTypeValidator,
2642
- Ce as Gender,
2643
- Ve as GenderValidator,
2644
- vn as GiftCodeEngagementDataValidator,
2645
- Rn as InviteEngagementDataValidator,
2646
- _t as LotteryDrawAction,
2647
- Va as LotteryDrawActionValidator,
2648
- Tn as LotteryDrawEngagementDataValidator,
2649
- Cn as LotteryEngagementDataValidator,
2700
+ Re as Gender,
2701
+ Ce as GenderValidator,
2702
+ kn as GiftCodeEngagementDataValidator,
2703
+ vn as InviteEngagementDataValidator,
2704
+ gt as LotteryDrawAction,
2705
+ Co as LotteryDrawActionValidator,
2706
+ jn as LotteryDrawEngagementDataValidator,
2707
+ Rn as LotteryEngagementDataValidator,
2650
2708
  w as LotteryTicketStatus,
2651
- Ra as LotteryTicketStatusValidator,
2709
+ vo as LotteryTicketStatusValidator,
2652
2710
  _ as NotificationBaseValidator,
2653
- Ar as NotificationCategory,
2654
- oo as NotificationCategoryValidator,
2655
- Hr as NotificationCommentReplyValidator,
2656
- zr as NotificationCommentValidator,
2711
+ $r as NotificationCategory,
2712
+ oa as NotificationCategoryValidator,
2713
+ Kr as NotificationCommentReplyValidator,
2714
+ Hr as NotificationCommentValidator,
2657
2715
  V as NotificationPayloadCommentValidator,
2658
2716
  $ as NotificationPayloadPostValidator,
2659
2717
  A as NotificationPayloadReplyValidator,
2660
- Qr as NotificationPayloadSystemValidator,
2661
- Kr as NotificationPostCommentValidator,
2662
- Mr as NotificationPostValidator,
2663
- Jr as NotificationReplyRepliedValidator,
2664
- Zr as NotificationReplyValidator,
2665
- Br as NotificationSystemValidator,
2718
+ Nr as NotificationPayloadSystemValidator,
2719
+ Mr as NotificationPostCommentValidator,
2720
+ Br as NotificationPostValidator,
2721
+ zr as NotificationReplyRepliedValidator,
2722
+ Jr as NotificationReplyValidator,
2723
+ Qr as NotificationSystemValidator,
2666
2724
  m as NotificationType,
2667
- Or as NotificationTypeValidator,
2668
- Xr as NotificationValidator,
2669
- De as PlayerRoleCardValidator,
2725
+ Ar as NotificationTypeValidator,
2726
+ Zr as NotificationValidator,
2727
+ Ie as PlayerRoleCardValidator,
2670
2728
  z as PlayerRoleValidator,
2671
- $r as PostStatus,
2672
- oe as PostStatusValidator,
2729
+ Dr as PostStatus,
2730
+ ae as PostStatusValidator,
2673
2731
  D as PostValidator,
2674
- qn as PreregisterEngagementDataValidator,
2675
- Nr as PresignedUrlResponseValidator,
2676
- xn as QuestEngagementDataValidator,
2677
- it as QuestObjective,
2732
+ Tn as PreregisterEngagementDataValidator,
2733
+ Gr as PresignedUrlResponseValidator,
2734
+ qn as QuestEngagementDataValidator,
2735
+ at as QuestObjective,
2678
2736
  ee as QuestObjectiveValidator,
2679
- pt as QuestProgressAlgorithm,
2680
- bt as QuestProgressAlgorithmValidator,
2681
- Ln as QuestProgressValidator,
2682
- Un as RedeemEngagementDataValidator,
2683
- ha as RedeemParamsValidator,
2684
- Sn as RedeemStocksResponseValidator,
2685
- Be as RedemptionValidator,
2686
- Rt as RegularRewardValidator,
2687
- Gr as ReplyToValidator,
2737
+ _t as QuestProgressAlgorithm,
2738
+ pt as QuestProgressAlgorithmValidator,
2739
+ xn as QuestProgressValidator,
2740
+ Ln as RedeemEngagementDataValidator,
2741
+ fo as RedeemParamsValidator,
2742
+ Un as RedeemStocksResponseValidator,
2743
+ Qe as RedemptionValidator,
2744
+ vt as RegularRewardValidator,
2745
+ Or as ReplyToValidator,
2688
2746
  C as ReplyValidator,
2689
- va as RewardItemType,
2747
+ ko as RewardItemType,
2690
2748
  W as RewardItemTypeValidator,
2691
- lt as RewardSource,
2749
+ ut as RewardSource,
2692
2750
  S as RewardSourceValidator,
2693
2751
  p as RewardStatus,
2694
2752
  te as RewardStatusValidator,
2695
- Xn as RewardValidator,
2696
- Ie as RoleBaseInfoValidator,
2697
- Fe as ServerBaseInfoValidator,
2698
- Pn as ShareEngagementDataValidator,
2699
- Fn as SurveyEngagementDataValidator,
2700
- gt as TeamAction,
2701
- Ca as TeamActionValidator,
2702
- Dn as TeamEngagementDataValidator,
2703
- In as TeamEngagementValidator,
2704
- ja as TeamMemberValidator,
2705
- mt as TeamVisibility,
2706
- dt as TeamVisibilityValidator,
2753
+ Zn as RewardValidator,
2754
+ Fe as RoleBaseInfoValidator,
2755
+ Ee as ServerBaseInfoValidator,
2756
+ Sn as ShareEngagementDataValidator,
2757
+ En as SurveyEngagementDataValidator,
2758
+ dt as TeamAction,
2759
+ Ro as TeamActionValidator,
2760
+ In as TeamEngagementDataValidator,
2761
+ Fn as TeamEngagementValidator,
2762
+ Vo as TeamMemberValidator,
2763
+ lt as TeamVisibility,
2764
+ mt as TeamVisibilityValidator,
2707
2765
  I as TopicValidator,
2708
- Gn as UgcCountResponseValidator,
2709
- $n as UgcEngagementDataValidator,
2710
- Qn as UgcLeaderboardResponseValidator,
2711
- An as UgcRecordBaseResponseValidator,
2712
- On as UgcRecordResponseValidator,
2713
- wt as UgcReviewStatus,
2714
- kt as UgcReviewStatusValidator,
2715
- ht as UgcSocialMedia,
2766
+ On as UgcCountResponseValidator,
2767
+ Dn as UgcEngagementDataValidator,
2768
+ Nn as UgcLeaderboardResponseValidator,
2769
+ $n as UgcRecordBaseResponseValidator,
2770
+ An as UgcRecordResponseValidator,
2771
+ ht as UgcReviewStatus,
2772
+ wt as UgcReviewStatusValidator,
2773
+ ft as UgcSocialMedia,
2716
2774
  P as UgcSocialMediaValidator,
2717
- Nn as UgcUploadImageValidator,
2775
+ Gn as UgcUploadImageValidator,
2718
2776
  E as UserEngagementDataValidator,
2719
- Wn as UserEngagementValidator,
2720
- tr as UserFeatureStatusValidator,
2777
+ Yn as UserEngagementValidator,
2778
+ er as UserFeatureStatusValidator,
2721
2779
  R as UserRewardValidator,
2722
- er as VerifyMobileResultValidator,
2723
- Kn as Vote2ClaimRewardsResponseValidator,
2724
- Mn as Vote2EngagementDataValidator,
2725
- yt as Vote2RewardType,
2726
- ft as Vote2RewardTypeValidator,
2727
- Bn as VoteEngagementDataValidator,
2728
- st as VoteOptionSource,
2729
- ct as VoteOptionSourceValidator,
2730
- so as WeixinApi,
2731
- En as WeixinSubscribeEngagementDataValidator,
2732
- ga as WeixinWebLoginErrorCode,
2733
- Jn as ZeroChatGPTDataValidator,
2734
- Da as claimRewards,
2735
- za as claimRewardsV2,
2736
- Ja as claimWeixinHongbao,
2737
- Ia as engage,
2738
- Ga as generateUnlimitQrcode,
2739
- Ma as getCashbackQuery,
2740
- qa as getConfig,
2741
- Ua as getEngagements,
2742
- La as getEngagementsCount,
2743
- xa as getEngagementsUserCount,
2744
- Oa as getParamsByQrcodeScene,
2745
- Na as getQuestProgress,
2746
- ao as getRedeemItemStocks,
2747
- ro as getUgcLeaderboard,
2748
- Ha as getUgcMyCount,
2749
- to as getUgcRecommendation,
2750
- Ka as getUgcRecord,
2751
- no as getUgcs,
2752
- Aa as getUnlimitQrcodeScene,
2753
- Ea as getUserEngagementCount,
2754
- Fa as getUserEngagements,
2755
- Pa as getUserFeatureStatus,
2756
- Wa as getUserItemCount,
2757
- Xa as getUserRewards,
2758
- Ya as getUserRewardsCount,
2759
- Ba as getVote2Leaderboard,
2760
- da as isWeixinSignResponse,
2761
- $a as submitUserRewardAddress,
2762
- eo as ugcUploadImage,
2763
- Za as verifyActivationKey,
2764
- Ta as verifyMobileAllowed,
2765
- Sa as visit,
2766
- Qa as vote2Rewards
2780
+ Wn as VerifyMobileResultValidator,
2781
+ Mn as Vote2ClaimRewardsResponseValidator,
2782
+ Bn as Vote2EngagementDataValidator,
2783
+ bt as Vote2RewardType,
2784
+ yt as Vote2RewardTypeValidator,
2785
+ Qn as VoteEngagementDataValidator,
2786
+ it as VoteOptionSource,
2787
+ st as VoteOptionSourceValidator,
2788
+ ia as WeixinApi,
2789
+ Pn as WeixinSubscribeEngagementDataValidator,
2790
+ go as WeixinWebLoginErrorCode,
2791
+ zn as ZeroChatGPTDataValidator,
2792
+ Io as claimRewards,
2793
+ Ho as claimRewardsV2,
2794
+ zo as claimWeixinHongbao,
2795
+ Fo as engage,
2796
+ Oo as generateUnlimitQrcode,
2797
+ Bo as getCashbackQuery,
2798
+ To as getConfig,
2799
+ Lo as getEngagements,
2800
+ xo as getEngagementsCount,
2801
+ qo as getEngagementsUserCount,
2802
+ Ao as getParamsByQrcodeScene,
2803
+ Go as getQuestProgress,
2804
+ ra as getRedeemItemStocks,
2805
+ na as getUgcLeaderboard,
2806
+ Ko as getUgcMyCount,
2807
+ ea as getUgcRecommendation,
2808
+ Mo as getUgcRecord,
2809
+ ta as getUgcs,
2810
+ $o as getUnlimitQrcodeScene,
2811
+ Po as getUserEngagementCount,
2812
+ Eo as getUserEngagements,
2813
+ So as getUserFeatureStatus,
2814
+ Yo as getUserItemCount,
2815
+ Zo as getUserRewards,
2816
+ Xo as getUserRewardsCount,
2817
+ Qo as getVote2Leaderboard,
2818
+ mo as isWeixinSignResponse,
2819
+ Do as submitUserRewardAddress,
2820
+ Wo as ugcUploadImage,
2821
+ Jo as verifyActivationKey,
2822
+ jo as verifyMobileAllowed,
2823
+ Uo as visit,
2824
+ No as vote2Rewards
2767
2825
  };