@seayoo-web/gamer-api 2.15.5 → 2.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isComboWebView as de } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as h, supportWx as _, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as U, pruneObject as c, omitFields as P, parseJSON as ye, removePara as O } from "@seayoo-web/utils";
2
+ import { isPlainObject as h, supportWx as _, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as S, pruneObject as c, omitFields as U, parseJSON as ye, removePara as O } from "@seayoo-web/utils";
3
3
  import { v as e, objectGuard as s } from "@seayoo-web/validator";
4
4
  function he(i) {
5
5
  return h(i, "gamer_token") && typeof i.gamer_token == "string";
@@ -59,7 +59,7 @@ const ve = {
59
59
  }
60
60
  }
61
61
  }, f = "gamer_token";
62
- class ba {
62
+ class ha {
63
63
  $NetRequest;
64
64
  $idToken = "";
65
65
  $weixinToken = "";
@@ -90,7 +90,7 @@ class ba {
90
90
  this.$gamerToken && (a.headers.Authorization = `Bearer ${this.$gamerToken}`);
91
91
  }
92
92
  }), be()) {
93
- const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = U("gamer_token");
93
+ const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = S("gamer_token");
94
94
  (de() || a && o) && (this.$gamerToken = o);
95
95
  }
96
96
  this.$gamerToken || this.loadGamerTokenCache();
@@ -274,7 +274,7 @@ const Ce = {
274
274
  Physical: "physical",
275
275
  /** 虚拟商品 */
276
276
  Virtual: "virtual"
277
- }, z = e.string().enum(Le).lock(), Se = {
277
+ }, J = e.string().enum(Le).lock(), Se = {
278
278
  /** 待发放 */
279
279
  Pending: "pending",
280
280
  /** 已发放 */
@@ -314,13 +314,13 @@ const Ce = {
314
314
  }).lock(), Fe = e.object({
315
315
  role_id: e.string(),
316
316
  role_name: e.string()
317
- }).lock(), J = e.object({
317
+ }).lock(), Z = e.object({
318
318
  ...Fe.shape,
319
319
  ...$e.shape,
320
320
  role_level: e.number(),
321
321
  last_login_time: e.number()
322
322
  }).lock(), Ie = e.object({
323
- ...J.shape,
323
+ ...Z.shape,
324
324
  /** 角色战力 */
325
325
  role_fighting: e.number(),
326
326
  /** 宗门 ID */
@@ -341,7 +341,7 @@ const Ce = {
341
341
  homepage_image_url: e.string()
342
342
  }).optional()
343
343
  ).optional()
344
- }).lock(), Z = e.object({
344
+ }).lock(), X = e.object({
345
345
  address_id: e.number(),
346
346
  recipient: e.string(),
347
347
  mobile: e.string(),
@@ -363,7 +363,7 @@ const Ce = {
363
363
  balance: e.number(),
364
364
  change_time: e.number(),
365
365
  metadata: e.record(e.unknown()).optional()
366
- }).lock(), X = e.object({
366
+ }).lock(), Y = e.object({
367
367
  benefit_id: e.number(),
368
368
  name: e.string(),
369
369
  img_url: e.string(),
@@ -372,11 +372,11 @@ const Ce = {
372
372
  max_level: e.number(),
373
373
  product_id: e.number(),
374
374
  tag: e.string()
375
- }).lock(), Y = e.object({
375
+ }).lock(), W = e.object({
376
376
  product_id: e.number(),
377
377
  catalog_id: e.number(),
378
378
  catalog_name: e.string(),
379
- item_type: z,
379
+ item_type: J,
380
380
  name: e.string(),
381
381
  img_url: e.string(),
382
382
  description: e.string(),
@@ -399,9 +399,9 @@ const Ce = {
399
399
  updated_at: e.number(),
400
400
  redeemable_quantity: e.number().optional()
401
401
  }).lock(), Oe = e.object({
402
- ...P(X.shape, "tag"),
403
- product: Y.clone().optional()
404
- }).lock(), ya = e.union(
402
+ ...U(Y.shape, "tag"),
403
+ product: W.clone().optional()
404
+ }).lock(), fa = e.union(
405
405
  e.object({
406
406
  server_id: e.string(),
407
407
  role_id: e.string()
@@ -428,7 +428,7 @@ const Ce = {
428
428
  product_id: e.number(),
429
429
  name: e.string(),
430
430
  img_url: e.string(),
431
- item_type: z,
431
+ item_type: J,
432
432
  catalog_id: e.number(),
433
433
  catalog_name: e.string(),
434
434
  quantity: e.number(),
@@ -436,10 +436,10 @@ const Ce = {
436
436
  status: Ue,
437
437
  created_at: e.number(),
438
438
  extra_data: e.union(Ne.clone(), Qe.clone()).satisfies().optional()
439
- }), Me = e.guard(Pe), Q = s({ player: Ee }), Ke = s({ roles: e.array(J) }), T = s({ role_card: Ie }), B = e.guard(De), M = e.guard(Z), He = s({ addresses: e.array(Z) }), ze = e.guard(Ae), Je = s({
439
+ }), Me = e.guard(Pe), Q = s({ player: Ee }), Ke = s({ roles: e.array(Z) }), T = s({ role_card: Ie }), B = e.guard(De), M = e.guard(X), He = s({ addresses: e.array(X) }), ze = e.guard(Ae), Je = s({
440
440
  credit_logs: e.array(Ge),
441
441
  next_token: e.string().optional()
442
- }), Ze = s({ products: e.array(Y) }), Xe = s({ benefits: e.array(X) }), Ye = s({ benefit: Oe }), We = s({
442
+ }), Ze = s({ products: e.array(W) }), Xe = s({ benefits: e.array(Y) }), Ye = s({ benefit: Oe }), We = s({
443
443
  redemptions: e.array(Be),
444
444
  next_token: e.string().optional()
445
445
  }), et = s({
@@ -447,7 +447,7 @@ const Ce = {
447
447
  image_upload_url: e.string().optional(),
448
448
  image_id: e.string()
449
449
  });
450
- class ha {
450
+ class wa {
451
451
  token;
452
452
  req;
453
453
  constructor(t) {
@@ -763,7 +763,7 @@ const v = {
763
763
  ExternalCode: "external_gift_code",
764
764
  /** 空奖励 */
765
765
  VoidItem: "void_item"
766
- }, W = e.string().enum(v).lock(), fa = v, ee = W, tt = {
766
+ }, ee = e.string().enum(v).lock(), ka = v, te = ee, tt = {
767
767
  /** 世游通行证 ID / Combo ID */
768
768
  UserId: "user_id",
769
769
  /** 游戏角色 ID */
@@ -849,7 +849,7 @@ const v = {
849
849
  OrderAmountInApp: "order_in_app_total_amount",
850
850
  /** 支付中心充值金额 */
851
851
  OrderAmountInPayCenter: "order_seayoo_web_total_amount"
852
- }, te = e.string().enum(it).lock(), st = {
852
+ }, ne = e.string().enum(it).lock(), st = {
853
853
  /** 官方上传 */
854
854
  System: "system",
855
855
  /** 用户投稿 */
@@ -867,7 +867,7 @@ const v = {
867
867
  Failed: "failed",
868
868
  /** 奖励已发货 */
869
869
  Delivered: "delivered"
870
- }, wa = e.string().enum(g).lock(), ut = {
870
+ }, va = e.string().enum(g).lock(), ut = {
871
871
  /** 奖励未领取 */
872
872
  Unclaimed: g.Unclaimed,
873
873
  /** 奖励已领取 */
@@ -876,7 +876,7 @@ const v = {
876
876
  Failed: g.Failed,
877
877
  /** 奖励已发货 */
878
878
  Delivered: g.Delivered
879
- }, ne = e.string().enum(ut).lock(), lt = {
879
+ }, re = e.string().enum(ut).lock(), lt = {
880
880
  /** 未获得奖励 */
881
881
  Ineligible: g.Ineligible,
882
882
  /** 奖励未领取 */
@@ -887,12 +887,12 @@ const v = {
887
887
  Failed: g.Failed,
888
888
  /** 奖励已发货 */
889
889
  Delivered: g.Delivered
890
- }, E = e.string().enum(lt).lock(), mt = {
890
+ }, P = e.string().enum(lt).lock(), mt = {
891
891
  /** 玩法产出奖励 */
892
892
  Output: "output",
893
893
  /** 玩法参与奖励 */
894
894
  Engage: "engage"
895
- }, $ = e.string().enum(mt).lock(), dt = {
895
+ }, E = e.string().enum(mt).lock(), dt = {
896
896
  /** 私有队伍 */
897
897
  Private: "private",
898
898
  /** 公开队伍 */
@@ -908,7 +908,7 @@ const v = {
908
908
  Claimed: "claimed",
909
909
  /** 领奖失败 */
910
910
  Fail: "fail"
911
- }, ka = e.string().enum(w).lock(), pt = {
911
+ }, Ra = e.string().enum(w).lock(), pt = {
912
912
  /** 发起组队 */
913
913
  Assemble: "assemble",
914
914
  /** 加入队伍 */
@@ -919,14 +919,14 @@ const v = {
919
919
  ChangeVisibility: "change_visibility",
920
920
  /** 查询组队信息 */
921
921
  Query: "query"
922
- }, va = e.string().enum(pt).lock(), _t = {
922
+ }, Ca = e.string().enum(pt).lock(), _t = {
923
923
  /** 查询抽奖券 */
924
924
  Query: "query",
925
925
  /** 开奖 */
926
926
  Draw: "draw",
927
927
  /** 领奖 */
928
928
  Claim: "claim"
929
- }, Ra = e.string().enum(_t).lock(), bt = {
929
+ }, Va = e.string().enum(_t).lock(), bt = {
930
930
  /** 将所有队员的进度值求和,作为队伍进度值 */
931
931
  Sum: "sum",
932
932
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
@@ -953,7 +953,7 @@ const v = {
953
953
  Huya: "huya",
954
954
  /** 斗鱼 */
955
955
  Douyu: "douyu"
956
- }, re = e.string().enum(wt).lock(), kt = {
956
+ }, $ = e.string().enum(wt).lock(), kt = {
957
957
  /** 已提交 */
958
958
  Submitted: "submitted",
959
959
  /** 已接收 */
@@ -1048,7 +1048,7 @@ const v = {
1048
1048
  }), Qt = u.InvitedRegister, Bt = e.object({
1049
1049
  ...l.shape,
1050
1050
  feature_type: e.string().enum(Qt)
1051
- }), Mt = e.string().enum(P(v, "GiftCode", "LotteryTicket")), Kt = u.Lottery, Ht = e.object({
1051
+ }), Mt = e.string().enum(U(v, "GiftCode", "LotteryTicket")), Kt = u.Lottery, Ht = e.object({
1052
1052
  reward_item_id: e.number(),
1053
1053
  reward_item_name: e.string(),
1054
1054
  reward_item_type: Mt,
@@ -1082,7 +1082,7 @@ const v = {
1082
1082
  ...l.shape,
1083
1083
  feature_type: e.string().enum(Wt),
1084
1084
  config: e.object({
1085
- objective: te,
1085
+ objective: ne,
1086
1086
  completion_value: e.number(),
1087
1087
  team: e.object({
1088
1088
  feature_id: e.number().optional(),
@@ -1245,14 +1245,14 @@ const v = {
1245
1245
  }), R = e.object({
1246
1246
  reward_id: e.number(),
1247
1247
  reward_item_id: e.number(),
1248
- reward_source: $,
1248
+ reward_source: E,
1249
1249
  reward_item_name: e.string(),
1250
- reward_item_type: W,
1250
+ reward_item_type: ee,
1251
1251
  reward_item_icon_url: e.string(),
1252
1252
  reward_item_desc: e.string().optional(),
1253
1253
  reward_item_rating: e.number(),
1254
1254
  reward_amount: e.number(),
1255
- reward_status: E,
1255
+ reward_status: P,
1256
1256
  event_id: e.number(),
1257
1257
  event_name: e.string(),
1258
1258
  feature_id: e.number(),
@@ -1268,7 +1268,7 @@ const v = {
1268
1268
  }),
1269
1269
  e.object({
1270
1270
  ticket: e.string(),
1271
- status: e.string().enum(P(w, "Unknown", "Pending")),
1271
+ status: e.string().enum(U(w, "Unknown", "Pending")),
1272
1272
  created_at: e.number(),
1273
1273
  reward: R
1274
1274
  })
@@ -1282,7 +1282,7 @@ const v = {
1282
1282
  is_myself: e.bool().optional(),
1283
1283
  progress: e.number().optional()
1284
1284
  }).lock(), In = e.object({
1285
- objective: te,
1285
+ objective: ne,
1286
1286
  progress: e.number(),
1287
1287
  completion_value: e.number().optional(),
1288
1288
  team: e.object({
@@ -1318,7 +1318,7 @@ const v = {
1318
1318
  team_code: e.string(),
1319
1319
  leader_name: e.string(),
1320
1320
  total_members: e.number()
1321
- }), Ca = e.object({
1321
+ }), ja = e.object({
1322
1322
  is_leader: e.bool(),
1323
1323
  is_myself: e.bool().optional(),
1324
1324
  role_name: e.string(),
@@ -1338,9 +1338,29 @@ const v = {
1338
1338
  title: e.string(),
1339
1339
  content: e.string().optional(),
1340
1340
  image_urls: e.array(e.string()).optional(),
1341
- social_media: re.clone().optional(),
1341
+ social_media: $.clone().optional(),
1342
1342
  social_media_url: e.string().optional()
1343
1343
  }), Hn = e.object({
1344
+ ugcs: e.array(
1345
+ e.object({
1346
+ ugc_id: e.number(),
1347
+ event_id: e.number().optional(),
1348
+ feature_id: e.number().optional(),
1349
+ title: e.string(),
1350
+ content: e.string().optional(),
1351
+ image_urls: e.array(e.string()).optional(),
1352
+ social_media: $.clone().optional(),
1353
+ social_media_url: e.string().optional(),
1354
+ server_id: e.number().optional(),
1355
+ server_name: e.string().optional(),
1356
+ role_id: e.string().optional(),
1357
+ role_name: e.string().optional(),
1358
+ total_likes: e.number().optional(),
1359
+ created_at: e.number()
1360
+ })
1361
+ ).optional(),
1362
+ next_token: e.string().optional()
1363
+ }), zn = e.object({
1344
1364
  ugcs: e.array(
1345
1365
  e.object({
1346
1366
  ugc_id: e.number(),
@@ -1352,7 +1372,7 @@ const v = {
1352
1372
  title: e.string(),
1353
1373
  content: e.string().optional(),
1354
1374
  image_urls: e.array(e.string()).optional(),
1355
- social_media: re.clone().optional(),
1375
+ social_media: $.clone().optional(),
1356
1376
  social_media_url: e.string().optional(),
1357
1377
  server_id: e.number().optional(),
1358
1378
  server_name: e.string().optional(),
@@ -1363,13 +1383,13 @@ const v = {
1363
1383
  })
1364
1384
  ).optional(),
1365
1385
  next_token: e.string().optional()
1366
- }), zn = e.object({
1367
- total_count: e.number()
1368
1386
  }), Jn = e.object({
1387
+ total_count: e.number()
1388
+ }), Zn = e.object({
1369
1389
  existed: e.bool(),
1370
1390
  upload_url: e.string().optional(),
1371
1391
  image_url: e.string()
1372
- }), Zn = e.object({
1392
+ }), Xn = e.object({
1373
1393
  ugcs: e.array(
1374
1394
  e.object({
1375
1395
  ugc_id: e.number(),
@@ -1382,27 +1402,27 @@ const v = {
1382
1402
  role_name: e.string().optional()
1383
1403
  })
1384
1404
  ).optional()
1385
- }), Xn = e.object({
1386
- option_sn: e.string()
1387
1405
  }), Yn = e.object({
1406
+ option_sn: e.string()
1407
+ }), Wn = e.object({
1388
1408
  candidate_id: e.string(),
1389
1409
  total_votes: e.number().optional(),
1390
1410
  my_votes: e.number().optional(),
1391
1411
  votes: e.number().optional()
1392
- }), Wn = e.object({
1412
+ }), er = e.object({
1393
1413
  rewards_type: ft,
1394
1414
  rewards: e.array(R).optional()
1395
- }), er = e.object({
1415
+ }), tr = e.object({
1396
1416
  candidate_id: e.string(),
1397
1417
  is_winner: e.bool(),
1398
1418
  total_votes: e.number(),
1399
1419
  my_votes: e.number()
1400
- }), tr = e.object({
1420
+ }), nr = e.object({
1401
1421
  role: e.string(),
1402
1422
  content: e.string()
1403
- }), nr = e.object({
1404
- conversations: e.array(tr)
1405
1423
  }), rr = e.object({
1424
+ conversations: e.array(nr)
1425
+ }), ar = e.object({
1406
1426
  user_id: e.string(),
1407
1427
  name: e.string(),
1408
1428
  avatar_url: e.string(),
@@ -1415,8 +1435,8 @@ const v = {
1415
1435
  Qn,
1416
1436
  Sn,
1417
1437
  On,
1418
- Xn,
1419
1438
  Yn,
1439
+ Wn,
1420
1440
  Nn,
1421
1441
  ae,
1422
1442
  Ln,
@@ -1424,39 +1444,39 @@ const v = {
1424
1444
  In,
1425
1445
  $n,
1426
1446
  xn,
1427
- nr,
1447
+ rr,
1428
1448
  Kn,
1429
1449
  An,
1430
1450
  e.custom(
1431
1451
  "EmptyObject",
1432
1452
  (i) => h(i) && Object.keys(i).length === 0
1433
1453
  )
1434
- ).satisfies().lock(), ar = e.object({
1454
+ ).satisfies().lock(), or = e.object({
1435
1455
  reward_id: e.number(),
1436
1456
  reward_item_id: e.number(),
1437
- reward_item_type: ee,
1457
+ reward_item_type: te,
1438
1458
  reward_count: e.number(),
1439
- reward_status: ne,
1440
- reward_source: $,
1459
+ reward_status: re,
1460
+ reward_source: E,
1441
1461
  reward_item_name: e.string(),
1442
1462
  reward_item_icon_url: e.string(),
1443
1463
  reward_item_desc: e.string().optional(),
1444
1464
  reward_item_rating: e.number(),
1445
1465
  receive_time: e.number(),
1446
1466
  extra_data: e.union(...F.validators, e.record(e.unknown())).satisfies().optional()
1447
- }), or = e.object({
1467
+ }), ir = e.object({
1448
1468
  reward_id: e.number(),
1449
1469
  reward_item_id: e.number(),
1450
1470
  reward_item_name: e.string(),
1451
- reward_item_type: ee,
1471
+ reward_item_type: te,
1452
1472
  reward_item_icon_url: e.string(),
1453
1473
  reward_item_desc: e.string().optional(),
1454
1474
  reward_item_rating: e.number(),
1455
1475
  reward_amount: e.number(),
1456
- reward_status: ne,
1457
- reward_source: $,
1476
+ reward_status: re,
1477
+ reward_source: E,
1458
1478
  extra_data: e.record(e.unknown()).optional()
1459
- }), ir = e.object({
1479
+ }), sr = e.object({
1460
1480
  engagement_id: e.number(),
1461
1481
  user_id: e.string(),
1462
1482
  event_id: e.number(),
@@ -1466,18 +1486,18 @@ const v = {
1466
1486
  server_id: e.string().optional(),
1467
1487
  role_id: e.string().optional(),
1468
1488
  created_at: e.number(),
1469
- rewards: e.array(ar).optional()
1470
- }).lock(), sr = e.object({
1489
+ rewards: e.array(or).optional()
1490
+ }).lock(), cr = e.object({
1471
1491
  allowed: e.bool(),
1472
1492
  registered: e.bool()
1473
- }), cr = e.object({
1493
+ }), ur = e.object({
1474
1494
  feature_id: e.number(),
1475
1495
  can_engage: e.bool(),
1476
1496
  has_unclaimed_rewards: e.bool(),
1477
1497
  final_available_count: e.number(),
1478
1498
  total_remaining_engagements: e.number(),
1479
1499
  cycle_remaining_engagements: e.number()
1480
- }), ur = e.object({
1500
+ }), lr = e.object({
1481
1501
  engagement_id: e.number(),
1482
1502
  engagement: e.object({
1483
1503
  engagement_id: e.number(),
@@ -1485,43 +1505,43 @@ const v = {
1485
1505
  feature_id: e.number(),
1486
1506
  data: F.clone().optional()
1487
1507
  }).optional(),
1488
- rewards: e.array(or).optional(),
1508
+ rewards: e.array(ir).optional(),
1489
1509
  scan: e.bool().optional()
1490
- }), lr = e.object({
1510
+ }), mr = e.object({
1491
1511
  reward_id: e.number(),
1492
- reward_status: E
1493
- }), mr = e.guard(qn), dr = e.guard(sr), x = s({ count: e.number() }), gr = s({ first_visit: e.bool() }), pr = s({
1494
- engagements: e.union(e.array(rr), e.array(Bn))
1495
- }), _r = s({
1496
- status: e.array(cr)
1512
+ reward_status: P
1513
+ }), dr = e.guard(qn), gr = e.guard(cr), x = s({ count: e.number() }), pr = s({ first_visit: e.bool() }), _r = s({
1514
+ engagements: e.union(e.array(ar), e.array(Bn))
1497
1515
  }), br = s({
1498
- engagements_counts: e.record(e.number())
1516
+ status: e.array(ur)
1499
1517
  }), yr = s({
1500
- engagements: e.array(ir),
1518
+ engagements_counts: e.record(e.number())
1519
+ }), hr = s({
1520
+ engagements: e.array(sr),
1501
1521
  next_token: e.string().optional()
1502
- }), hr = e.guard(ur), fr = s({
1503
- claimed_items: e.array(lr)
1504
- }), wr = s({
1505
- rewards: e.array(R)
1522
+ }), fr = e.guard(lr), wr = s({
1523
+ claimed_items: e.array(mr)
1506
1524
  }), kr = s({
1507
- reward_status: E
1525
+ rewards: e.array(R)
1508
1526
  }), vr = s({
1527
+ reward_status: P
1528
+ }), Rr = s({
1509
1529
  user_rewards: e.array(R),
1510
1530
  next_token: e.string().optional()
1511
- }), Rr = s({
1512
- unclaimed: e.number()
1513
1531
  }), Cr = s({
1514
- scene: e.string()
1532
+ unclaimed: e.number()
1515
1533
  }), Vr = s({
1516
- params: e.string()
1534
+ scene: e.string()
1517
1535
  }), jr = s({
1536
+ params: e.string()
1537
+ }), Tr = s({
1518
1538
  img: e.string()
1519
- }), Tr = e.guard(Dn), qr = e.guard(Wn), xr = e.guard(
1539
+ }), qr = e.guard(Dn), xr = e.guard(er), Lr = e.guard(
1520
1540
  e.object({
1521
- candidate_votes: e.array(er)
1541
+ candidate_votes: e.array(tr)
1522
1542
  })
1523
- ), Lr = e.guard(ae), L = e.guard(Hn), Sr = e.guard(zn), Ur = e.guard(Jn), Pr = e.guard(Zn), Er = e.guard(Gn);
1524
- class Va {
1543
+ ), Sr = e.guard(ae), K = e.guard(zn), Ur = e.guard(Hn), Pr = e.guard(Jn), Er = e.guard(Zn), $r = e.guard(Xn), Fr = e.guard(Gn);
1544
+ class Ta {
1525
1545
  token;
1526
1546
  event = 0;
1527
1547
  req;
@@ -1534,7 +1554,7 @@ class Va {
1534
1554
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
1535
1555
  */
1536
1556
  async verifyMobileAllowed(t, n, r) {
1537
- const { data: a } = await this.req.get("verify-mobile-allowed", dr, {
1557
+ const { data: a } = await this.req.get("verify-mobile-allowed", gr, {
1538
1558
  ...r,
1539
1559
  params: { game_id: t, mobile: n }
1540
1560
  });
@@ -1546,7 +1566,7 @@ class Va {
1546
1566
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
1547
1567
  */
1548
1568
  async getConfig(t) {
1549
- const { data: n } = await this.req.get(`event/${this.event}/event-config`, mr, t);
1569
+ const { data: n } = await this.req.get(`event/${this.event}/event-config`, dr, t);
1550
1570
  return n;
1551
1571
  }
1552
1572
  /**
@@ -1581,7 +1601,7 @@ class Va {
1581
1601
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
1582
1602
  */
1583
1603
  async getEngagements(t, n) {
1584
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, pr, {
1604
+ const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, _r, {
1585
1605
  ...n,
1586
1606
  params: { feature_id: t }
1587
1607
  });
@@ -1597,7 +1617,7 @@ class Va {
1597
1617
  const { data: r, code: a, message: o } = await this.req.post(
1598
1618
  `event/${this.event}/visit`,
1599
1619
  c(t || {}),
1600
- gr,
1620
+ pr,
1601
1621
  n
1602
1622
  );
1603
1623
  return r ?? {
@@ -1614,7 +1634,7 @@ class Va {
1614
1634
  */
1615
1635
  async getUserFeatureStatus(t, n) {
1616
1636
  if (!await this.token.autoLogin()) return [];
1617
- const { data: r } = await this.req.get("event/user-feature-status", _r, {
1637
+ const { data: r } = await this.req.get("event/user-feature-status", br, {
1618
1638
  ...n,
1619
1639
  message: !1,
1620
1640
  params: c({ ...t, event_id: this.event })
@@ -1628,7 +1648,7 @@ class Va {
1628
1648
  */
1629
1649
  async getUserEngagementCount(t, n) {
1630
1650
  if (!await this.token.autoLogin()) return {};
1631
- const { data: r } = await this.req.get("event/user-engagements-count", br, {
1651
+ const { data: r } = await this.req.get("event/user-engagements-count", yr, {
1632
1652
  message: !1,
1633
1653
  params: c({ ...n, event_id: this.event, feature_id: t })
1634
1654
  });
@@ -1647,7 +1667,7 @@ class Va {
1647
1667
  engagements: [],
1648
1668
  next_token: ""
1649
1669
  };
1650
- const { data: a } = await this.req.get("event/user-engagements", yr, {
1670
+ const { data: a } = await this.req.get("event/user-engagements", hr, {
1651
1671
  ...r,
1652
1672
  params: c({
1653
1673
  max_results: 20,
@@ -1679,7 +1699,7 @@ class Va {
1679
1699
  engagement: n,
1680
1700
  ...r
1681
1701
  }),
1682
- hr,
1702
+ fr,
1683
1703
  a
1684
1704
  );
1685
1705
  return o ?? {
@@ -1702,7 +1722,7 @@ class Va {
1702
1722
  ...t,
1703
1723
  server_id: t.server_id ? +t.server_id : void 0
1704
1724
  }),
1705
- fr,
1725
+ wr,
1706
1726
  n
1707
1727
  );
1708
1728
  return r?.claimed_items || {
@@ -1723,7 +1743,7 @@ class Va {
1723
1743
  ...t,
1724
1744
  server_id: t.server_id ? +t.server_id : void 0
1725
1745
  }),
1726
- wr,
1746
+ kr,
1727
1747
  n
1728
1748
  );
1729
1749
  return r?.rewards || {
@@ -1741,7 +1761,7 @@ class Va {
1741
1761
  const { data: r, code: a, message: o } = await this.req.post(
1742
1762
  "event/claim-weixin-hongbao",
1743
1763
  { reward_id: t },
1744
- kr,
1764
+ vr,
1745
1765
  n
1746
1766
  );
1747
1767
  return r || {
@@ -1782,7 +1802,7 @@ class Va {
1782
1802
  const { data: r } = await this.req.post(
1783
1803
  "event/user-rewards",
1784
1804
  c({ max_results: 20, ...t, event_id: this.event }),
1785
- vr,
1805
+ Rr,
1786
1806
  n
1787
1807
  );
1788
1808
  return {
@@ -1800,7 +1820,7 @@ class Va {
1800
1820
  return {
1801
1821
  unclaimed: 0
1802
1822
  };
1803
- const { data: r } = await this.req.get("event/user-rewards-count", Rr, {
1823
+ const { data: r } = await this.req.get("event/user-rewards-count", Cr, {
1804
1824
  ...n,
1805
1825
  params: c({ ...t })
1806
1826
  });
@@ -1848,7 +1868,7 @@ class Va {
1848
1868
  */
1849
1869
  async getUnlimitQrcodeScene(t, n) {
1850
1870
  if (!await this.token.autoLogin()) return null;
1851
- const { data: r } = await this.req.get("event/unlimit-qrcode-scene", Cr, {
1871
+ const { data: r } = await this.req.get("event/unlimit-qrcode-scene", Vr, {
1852
1872
  ...n,
1853
1873
  params: { params: t }
1854
1874
  });
@@ -1862,7 +1882,7 @@ class Va {
1862
1882
  * @param scene - 小程序码 scene 值
1863
1883
  */
1864
1884
  async getParamsByQrcodeScene(t, n) {
1865
- const { data: r } = await this.req.get("event/params-by-qrcode-scene", Vr, {
1885
+ const { data: r } = await this.req.get("event/params-by-qrcode-scene", jr, {
1866
1886
  ...n,
1867
1887
  params: { scene: t }
1868
1888
  });
@@ -1878,7 +1898,7 @@ class Va {
1878
1898
  const { data: r } = await this.req.post(
1879
1899
  "event/unlimit-qrcode",
1880
1900
  c(t),
1881
- jr,
1901
+ Tr,
1882
1902
  n
1883
1903
  );
1884
1904
  return r?.img ?? null;
@@ -1890,7 +1910,7 @@ class Va {
1890
1910
  */
1891
1911
  async getQuestProgress(t, n) {
1892
1912
  if (!await this.token.autoLogin()) return null;
1893
- const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, Tr, {
1913
+ const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, qr, {
1894
1914
  message: !1,
1895
1915
  ...n,
1896
1916
  params: { feature_id: t }
@@ -1912,7 +1932,7 @@ class Va {
1912
1932
  const { data: r, code: a, message: o } = await this.req.post(
1913
1933
  "event/vote2/rewards",
1914
1934
  { feature_id: t, event_id: this.event },
1915
- qr,
1935
+ xr,
1916
1936
  n
1917
1937
  );
1918
1938
  return r || {
@@ -1927,7 +1947,7 @@ class Va {
1927
1947
  */
1928
1948
  async getVote2Leaderboard(t, n) {
1929
1949
  if (!await this.token.autoLogin()) return [];
1930
- const { data: r } = await this.req.get("event/vote2/leaderboard", xr, {
1950
+ const { data: r } = await this.req.get("event/vote2/leaderboard", Lr, {
1931
1951
  ...n,
1932
1952
  params: { feature_id: t, event_id: this.event }
1933
1953
  });
@@ -1940,7 +1960,7 @@ class Va {
1940
1960
  */
1941
1961
  async getCashbackQuery(t, n) {
1942
1962
  if (!await this.token.autoLogin()) return null;
1943
- const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", Lr, {
1963
+ const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", Sr, {
1944
1964
  ...n,
1945
1965
  params: { feature_id: t, event_id: this.event }
1946
1966
  });
@@ -1956,7 +1976,7 @@ class Va {
1956
1976
  */
1957
1977
  async getUgcRecord(t, n) {
1958
1978
  if (!await this.token.autoLogin()) return null;
1959
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", L, {
1979
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", K, {
1960
1980
  ...n,
1961
1981
  params: {
1962
1982
  max_results: 20,
@@ -1975,7 +1995,7 @@ class Va {
1975
1995
  */
1976
1996
  async getUgcMyCount(t, n) {
1977
1997
  if (!await this.token.autoLogin()) return null;
1978
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/my-count", Sr, {
1998
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/my-count", Pr, {
1979
1999
  ...n,
1980
2000
  params: {
1981
2001
  ...t
@@ -2000,7 +2020,7 @@ class Va {
2000
2020
  const { data: a, code: o, message: d } = await this.req.post(
2001
2021
  "event/ugc/upload-image",
2002
2022
  { feature_id: t, ...n, event_id: this.event },
2003
- Ur,
2023
+ Er,
2004
2024
  r
2005
2025
  );
2006
2026
  return a || {
@@ -2014,7 +2034,7 @@ class Va {
2014
2034
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=WzvcAPjHAh
2015
2035
  */
2016
2036
  async getUgcRecommendation(t, n) {
2017
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", L, {
2037
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", K, {
2018
2038
  ...n,
2019
2039
  params: {
2020
2040
  feature_id: t,
@@ -2032,7 +2052,7 @@ class Va {
2032
2052
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=VRYN6d3rbd
2033
2053
  */
2034
2054
  async getUgcs(t, n, r) {
2035
- const { data: a, code: o, message: d } = await this.req.get("event/ugc/ugcs", L, {
2055
+ const { data: a, code: o, message: d } = await this.req.get("event/ugc/ugcs", Ur, {
2036
2056
  ...r,
2037
2057
  params: {
2038
2058
  event_id: this.event,
@@ -2058,7 +2078,7 @@ class Va {
2058
2078
  */
2059
2079
  async getUgcLeaderboard(t, n) {
2060
2080
  if (!await this.token.autoLogin()) return null;
2061
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", Pr, {
2081
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", $r, {
2062
2082
  ...n,
2063
2083
  params: {
2064
2084
  feature_id: t,
@@ -2077,7 +2097,7 @@ class Va {
2077
2097
  */
2078
2098
  async getRedeemItemStocks(t, n) {
2079
2099
  if (!await this.token.autoLogin()) return null;
2080
- const { data: r, code: a, message: o } = await this.req.get("event/redeem/item-stocks", Er, {
2100
+ const { data: r, code: a, message: o } = await this.req.get("event/redeem/item-stocks", Fr, {
2081
2101
  ...n,
2082
2102
  params: {
2083
2103
  event_id: this.event,
@@ -2090,12 +2110,12 @@ class Va {
2090
2110
  };
2091
2111
  }
2092
2112
  }
2093
- const $r = {
2113
+ const Ir = {
2094
2114
  /** 所有人均可以发帖 */
2095
2115
  All: "all",
2096
2116
  /** 指定用户可发帖 */
2097
2117
  Limit: "limit"
2098
- }, Fr = e.string().enum($r).lock(), Ir = {
2118
+ }, Dr = e.string().enum(Ir).lock(), Ar = {
2099
2119
  /** 待审核(仅自己可见) */
2100
2120
  Pending: "pending",
2101
2121
  /** 审核通过 */
@@ -2104,14 +2124,14 @@ const $r = {
2104
2124
  Failed: "failed",
2105
2125
  /** 嫌疑(仅自己可见) */
2106
2126
  Suspect: "suspect"
2107
- }, ie = e.string().enum(Ir).lock(), Dr = {
2127
+ }, ie = e.string().enum(Ar).lock(), Gr = {
2108
2128
  /** 系统通知 */
2109
2129
  System: "system",
2110
2130
  /** 评论我的 */
2111
2131
  Comment: "comment",
2112
2132
  /** 点赞通知 */
2113
2133
  Like: "like"
2114
- }, ja = e.string().enum(Dr).lock(), m = {
2134
+ }, qa = e.string().enum(Gr).lock(), m = {
2115
2135
  /** 系统通知 */
2116
2136
  System: "system",
2117
2137
  /** 帖子被置顶 */
@@ -2136,13 +2156,13 @@ const $r = {
2136
2156
  ReplyLiked: "reply_liked",
2137
2157
  /** 回复被删除 */
2138
2158
  ReplyDeleted: "reply_deleted"
2139
- }, Ar = e.string().enum(m).lock(), se = e.object({
2159
+ }, Or = e.string().enum(m).lock(), se = e.object({
2140
2160
  forum_id: e.number(),
2141
2161
  icon_url: e.string(),
2142
2162
  name: e.string(),
2143
2163
  tags: e.array(e.string()),
2144
2164
  sort: e.number(),
2145
- mode: Fr,
2165
+ mode: Dr,
2146
2166
  member_ids: e.array(e.number())
2147
2167
  }).lock(), I = e.object({
2148
2168
  topic_id: e.number(),
@@ -2173,7 +2193,7 @@ const $r = {
2173
2193
  create_time: e.number()
2174
2194
  }).lock(), ce = e.object({
2175
2195
  err_msg: e.string().optional()
2176
- }).optional().lock(), Gr = e.object({
2196
+ }).optional().lock(), Nr = e.object({
2177
2197
  reply_id: e.number(),
2178
2198
  reply_content: e.string().optional(),
2179
2199
  replied_by: e.string(),
@@ -2192,7 +2212,7 @@ const $r = {
2192
2212
  content: e.string(),
2193
2213
  like_num: e.number(),
2194
2214
  liked: e.bool(),
2195
- reply_to: Gr,
2215
+ reply_to: Nr,
2196
2216
  create_time: e.number()
2197
2217
  }).lock(), k = e.object({
2198
2218
  comment_id: e.number(),
@@ -2214,19 +2234,19 @@ const $r = {
2214
2234
  create_time: e.number(),
2215
2235
  status: ie,
2216
2236
  replies: e.array(C).optional()
2217
- }).lock(), Or = e.object({
2237
+ }).lock(), Qr = e.object({
2218
2238
  image_url: e.string(),
2219
2239
  upload_url: e.string(),
2220
2240
  existed: e.bool()
2221
2241
  }).lock(), y = e.object({
2222
2242
  notification_id: e.string(),
2223
- notification_type: Ar,
2243
+ notification_type: Or,
2224
2244
  is_read: e.bool(),
2225
2245
  create_time: e.number(),
2226
2246
  origin_user_id: e.string(),
2227
2247
  origin_user_name: e.string(),
2228
2248
  origin_user_avatar_url: e.string()
2229
- }).lock(), Nr = e.object({
2249
+ }).lock(), Br = e.object({
2230
2250
  system_message_subject: e.string(),
2231
2251
  system_message_content: e.string()
2232
2252
  }).lock(), A = e.object({
@@ -2240,11 +2260,11 @@ const $r = {
2240
2260
  }).lock(), G = e.object({
2241
2261
  reply_id: e.number(),
2242
2262
  reply_content: e.string()
2243
- }).lock(), Qr = e.object({
2263
+ }).lock(), Mr = e.object({
2244
2264
  ...y.shape,
2245
- ...Nr.shape,
2265
+ ...Br.shape,
2246
2266
  notification_type: e.string().enum(m.System)
2247
- }), Br = e.object({
2267
+ }), Kr = e.object({
2248
2268
  ...y.shape,
2249
2269
  ...A.shape,
2250
2270
  notification_type: e.string().enum(
@@ -2253,68 +2273,68 @@ const $r = {
2253
2273
  m.PostDeleted,
2254
2274
  m.PostLiked
2255
2275
  )
2256
- }), Mr = e.object({
2276
+ }), Hr = e.object({
2257
2277
  ...y.shape,
2258
2278
  ...A.shape,
2259
2279
  ...V.shape,
2260
2280
  notification_type: e.string().enum(m.PostCommented)
2261
- }), Kr = e.object({
2281
+ }), zr = e.object({
2262
2282
  ...y.shape,
2263
2283
  ...V.shape,
2264
2284
  ...G.shape,
2265
2285
  notification_type: e.string().enum(m.CommentReplied)
2266
- }), Hr = e.object({
2286
+ }), Jr = e.object({
2267
2287
  ...y.shape,
2268
2288
  ...V.shape,
2269
2289
  ...A.shape,
2270
2290
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
2271
- }), zr = e.object({
2291
+ }), Zr = e.object({
2272
2292
  ...y.shape,
2273
2293
  ...G.shape,
2274
2294
  notification_type: e.string().enum(m.ReplyReplied),
2275
2295
  comment_id: e.number(),
2276
2296
  reply_to_reply_id: e.number(),
2277
2297
  reply_to_reply_content: e.string()
2278
- }), Jr = e.object({
2298
+ }), Xr = e.object({
2279
2299
  ...y.shape,
2280
2300
  ...G.shape,
2281
2301
  ...V.shape,
2282
2302
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
2283
- }), Zr = e.union(
2284
- Qr,
2285
- Br,
2303
+ }), Yr = e.union(
2286
2304
  Mr,
2287
2305
  Kr,
2288
2306
  Hr,
2289
2307
  zr,
2290
- Jr
2291
- ).satisfies().lock(), Xr = s({ forums: e.array(se) }), Yr = s({ topics: e.array(I) }), Wr = s({ topic: I }), ea = s({ post: D }), K = s({
2308
+ Jr,
2309
+ Zr,
2310
+ Xr
2311
+ ).satisfies().lock(), Wr = s({ forums: e.array(se) }), ea = s({ topics: e.array(I) }), ta = s({ topic: I }), na = s({ post: D }), H = s({
2292
2312
  posts: e.array(D),
2293
2313
  next_token: e.string().optional()
2294
- }), ta = s({
2314
+ }), ra = s({
2295
2315
  post: D.clone().optional(),
2296
2316
  antispam: ce.clone().optional()
2297
- }), na = s({
2317
+ }), aa = s({
2298
2318
  replies: e.array(C),
2299
2319
  next_token: e.string().optional()
2300
- }), ra = s({ reply: C }), aa = s({
2320
+ }), oa = s({ reply: C }), ia = s({
2301
2321
  reply: C.clone().optional(),
2302
2322
  antispam: ce.clone().optional()
2303
- }), oa = s({ comment: k }), ia = s({
2323
+ }), sa = s({ comment: k }), ca = s({
2304
2324
  comments: e.array(k),
2305
2325
  next_token: e.string().optional()
2306
- }), sa = s({
2326
+ }), ua = s({
2307
2327
  comment: k.clone().optional(),
2308
2328
  antispam: k.clone().optional()
2309
- }), ca = e.guard(Or), ua = s({
2310
- notifications: e.array(Zr),
2329
+ }), la = e.guard(Qr), ma = s({
2330
+ notifications: e.array(Yr),
2311
2331
  next_token: e.string().optional()
2312
- }), la = s({
2332
+ }), da = s({
2313
2333
  system: e.number(),
2314
2334
  comment: e.number(),
2315
2335
  like: e.number()
2316
2336
  });
2317
- class Ta {
2337
+ class xa {
2318
2338
  token;
2319
2339
  req;
2320
2340
  constructor(t) {
@@ -2326,7 +2346,7 @@ class Ta {
2326
2346
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
2327
2347
  */
2328
2348
  async getForums(t) {
2329
- const { data: n } = await this.req.get("community/forums", Xr, t);
2349
+ const { data: n } = await this.req.get("community/forums", Wr, t);
2330
2350
  return n?.forums || [];
2331
2351
  }
2332
2352
  /**
@@ -2335,7 +2355,7 @@ class Ta {
2335
2355
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
2336
2356
  */
2337
2357
  async getTopics(t) {
2338
- const { data: n } = await this.req.get("community/topics", Yr, t);
2358
+ const { data: n } = await this.req.get("community/topics", ea, t);
2339
2359
  return n?.topics || [];
2340
2360
  }
2341
2361
  /**
@@ -2344,7 +2364,7 @@ class Ta {
2344
2364
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
2345
2365
  */
2346
2366
  async getTopic(t, n) {
2347
- const { data: r, code: a } = await this.req.get("community/topic", Wr, {
2367
+ const { data: r, code: a } = await this.req.get("community/topic", ta, {
2348
2368
  ...n,
2349
2369
  params: { topic_id: t }
2350
2370
  });
@@ -2356,7 +2376,7 @@ class Ta {
2356
2376
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
2357
2377
  */
2358
2378
  async getPosts(t, n) {
2359
- const { data: r, code: a, message: o } = await this.req.get("community/posts", K, {
2379
+ const { data: r, code: a, message: o } = await this.req.get("community/posts", H, {
2360
2380
  ...n,
2361
2381
  params: c(t)
2362
2382
  });
@@ -2371,7 +2391,7 @@ class Ta {
2371
2391
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
2372
2392
  */
2373
2393
  async getPinnedPosts(t, n, r, a) {
2374
- const { data: o, code: d, message: p } = await this.req.get("community/pinned-posts", K, {
2394
+ const { data: o, code: d, message: p } = await this.req.get("community/pinned-posts", H, {
2375
2395
  ...a,
2376
2396
  params: c({ forum_id: t, max_results: n, next_token: r })
2377
2397
  });
@@ -2386,7 +2406,7 @@ class Ta {
2386
2406
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2387
2407
  */
2388
2408
  async getPost(t, n) {
2389
- const { data: r, code: a, message: o } = await this.req.get("community/post", ea, {
2409
+ const { data: r, code: a, message: o } = await this.req.get("community/post", na, {
2390
2410
  ...n,
2391
2411
  params: { post_id: t }
2392
2412
  });
@@ -2404,7 +2424,7 @@ class Ta {
2404
2424
  const { data: r, code: a, message: o } = await this.req.post(
2405
2425
  "community/post",
2406
2426
  c(t),
2407
- ta,
2427
+ ra,
2408
2428
  n
2409
2429
  );
2410
2430
  return r ?? {
@@ -2418,7 +2438,7 @@ class Ta {
2418
2438
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2419
2439
  */
2420
2440
  async getComments(t, n) {
2421
- const { data: r, code: a, message: o } = await this.req.get("community/comments", ia, {
2441
+ const { data: r, code: a, message: o } = await this.req.get("community/comments", ca, {
2422
2442
  ...n,
2423
2443
  params: c(t)
2424
2444
  });
@@ -2433,7 +2453,7 @@ class Ta {
2433
2453
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2434
2454
  */
2435
2455
  async getComment(t, n) {
2436
- const { data: r, code: a, message: o } = await this.req.get("community/comment", oa, {
2456
+ const { data: r, code: a, message: o } = await this.req.get("community/comment", sa, {
2437
2457
  ...n,
2438
2458
  params: { comment_id: t }
2439
2459
  });
@@ -2452,7 +2472,7 @@ class Ta {
2452
2472
  const { data: r, code: a, message: o } = await this.req.post(
2453
2473
  "community/comment",
2454
2474
  c(t),
2455
- sa,
2475
+ ua,
2456
2476
  n
2457
2477
  );
2458
2478
  return r ?? {
@@ -2466,7 +2486,7 @@ class Ta {
2466
2486
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2467
2487
  */
2468
2488
  async getReplies(t, n) {
2469
- const { data: r } = await this.req.get("community/replies", na, {
2489
+ const { data: r } = await this.req.get("community/replies", aa, {
2470
2490
  ...n,
2471
2491
  params: c({ max_results: 20, ...t })
2472
2492
  });
@@ -2481,7 +2501,7 @@ class Ta {
2481
2501
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2482
2502
  */
2483
2503
  async getReply(t, n) {
2484
- const { data: r, code: a, message: o } = await this.req.get("community/reply", ra, {
2504
+ const { data: r, code: a, message: o } = await this.req.get("community/reply", oa, {
2485
2505
  ...n,
2486
2506
  params: { reply_id: t }
2487
2507
  });
@@ -2500,7 +2520,7 @@ class Ta {
2500
2520
  const { data: r, code: a, message: o } = await this.req.post(
2501
2521
  "community/reply",
2502
2522
  c(t),
2503
- aa,
2523
+ ia,
2504
2524
  n
2505
2525
  );
2506
2526
  return r ?? {
@@ -2551,7 +2571,7 @@ class Ta {
2551
2571
  */
2552
2572
  async getMediaPresignedUrl(t, n) {
2553
2573
  await this.token.autoLogin();
2554
- const { data: r } = await this.req.get("community/media-presign-url", ca, {
2574
+ const { data: r } = await this.req.get("community/media-presign-url", la, {
2555
2575
  ...n,
2556
2576
  params: t
2557
2577
  });
@@ -2566,7 +2586,7 @@ class Ta {
2566
2586
  */
2567
2587
  async getNotifications(t, n) {
2568
2588
  await this.token.autoLogin();
2569
- const { data: r } = await this.req.get("community/notifications", ua, {
2589
+ const { data: r } = await this.req.get("community/notifications", ma, {
2570
2590
  ...n,
2571
2591
  params: c({ max_results: 20, ...t })
2572
2592
  });
@@ -2584,7 +2604,7 @@ class Ta {
2584
2604
  if (!await this.token.autoLogin()) return null;
2585
2605
  const { data: n } = await this.req.get(
2586
2606
  "community/unread-notifications-count",
2587
- la,
2607
+ da,
2588
2608
  t
2589
2609
  );
2590
2610
  return n;
@@ -2600,17 +2620,17 @@ class Ta {
2600
2620
  return r;
2601
2621
  }
2602
2622
  }
2603
- const ma = s({
2623
+ const ga = s({
2604
2624
  nonce_str: e.string(),
2605
2625
  timestamp: e.number(),
2606
2626
  signature: e.string()
2607
2627
  });
2608
- var da = /* @__PURE__ */ ((i) => (i.RedirectUriDisMatch = "10003", i.AppidError = "10016", i.AuthorizationError = "10015", i.NoRightForScope = "10005", i.Frequently = "10009", i.AppBanded = "10004", i.ShouldFollow = "10006", i.ScopeNull = "10010", i.RedirectUriNull = "10011", i.AppidNull = "10012", i.StateNull = "10013", i))(da || {});
2609
- function S(i) {
2628
+ var pa = /* @__PURE__ */ ((i) => (i.RedirectUriDisMatch = "10003", i.AppidError = "10016", i.AuthorizationError = "10015", i.NoRightForScope = "10005", i.Frequently = "10009", i.AppBanded = "10004", i.ShouldFollow = "10006", i.ScopeNull = "10010", i.RedirectUriNull = "10011", i.AppidNull = "10012", i.StateNull = "10013", i))(pa || {});
2629
+ function L(i) {
2610
2630
  return h(i, "open_id", "union_id", "weixin_token");
2611
2631
  }
2612
- const H = "wx_login_cache";
2613
- class qa {
2632
+ const z = "wx_login_cache";
2633
+ class La {
2614
2634
  token;
2615
2635
  $appid;
2616
2636
  req;
@@ -2641,11 +2661,11 @@ class qa {
2641
2661
  * 也可以直接调用 login 方法,并传入 weixin code 的读取函数
2642
2662
  */
2643
2663
  async getLoginCache() {
2644
- const t = this.token.storage.get(H);
2664
+ const t = this.token.storage.get(z);
2645
2665
  if (!t)
2646
2666
  return null;
2647
2667
  const n = ye(t);
2648
- return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2668
+ return L(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2649
2669
  }
2650
2670
  /**
2651
2671
  * 小程序页面微信静默登录,获取 weixinToken / open_id / union_id。
@@ -2673,10 +2693,10 @@ class qa {
2673
2693
  const r = await ke(), { data: a, code: o, message: d } = await this.req.post(
2674
2694
  "weixin/login",
2675
2695
  { code: r, appid: this.appid },
2676
- S,
2696
+ L,
2677
2697
  { ...t, message: !1 }
2678
2698
  );
2679
- return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(H, JSON.stringify(a))), a ?? {
2699
+ return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(z, JSON.stringify(a))), a ?? {
2680
2700
  message: d,
2681
2701
  error: o
2682
2702
  };
@@ -2698,7 +2718,7 @@ class qa {
2698
2718
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2699
2719
  */
2700
2720
  async webLogin(t = "snsapi_userinfo", n) {
2701
- const r = U("code"), a = Date.now(), o = +U("state");
2721
+ const r = S("code"), a = Date.now(), o = +S("state");
2702
2722
  if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
2703
2723
  const me = O(["code", "state"]);
2704
2724
  location.replace(
@@ -2717,7 +2737,7 @@ class qa {
2717
2737
  data: p,
2718
2738
  code: ue,
2719
2739
  message: le
2720
- } = await this.req.post("weixin/login", { code: r, appid: this.appid }, S, n);
2740
+ } = await this.req.post("weixin/login", { code: r, appid: this.appid }, L, n);
2721
2741
  return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? {
2722
2742
  message: le,
2723
2743
  error: ue
@@ -2750,7 +2770,7 @@ class qa {
2750
2770
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2751
2771
  */
2752
2772
  async getJSSDKConfig(t) {
2753
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ma, {
2773
+ const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ga, {
2754
2774
  ...t,
2755
2775
  params: {
2756
2776
  appid: this.appid,
@@ -2767,16 +2787,16 @@ class qa {
2767
2787
  }
2768
2788
  export {
2769
2789
  ce as AntispamValidator,
2770
- ba as AuthToken,
2771
- er as CandidateVoteValidator,
2790
+ ha as AuthToken,
2791
+ tr as CandidateVoteValidator,
2772
2792
  ae as CashbackEngagementDataValidator,
2773
2793
  xn as ClaimActivationKeyEngagementDataValidator,
2774
2794
  lt as ClaimRewardStatus,
2775
- E as ClaimRewardStatusValidator,
2776
- lr as ClaimedItemValidator,
2777
- Z as ClubAddressValidator,
2778
- ha as ClubApi,
2779
- X as ClubBenefitSummaryValidator,
2795
+ P as ClaimRewardStatusValidator,
2796
+ mr as ClaimedItemValidator,
2797
+ X as ClubAddressValidator,
2798
+ wa as ClubApi,
2799
+ Y as ClubBenefitSummaryValidator,
2780
2800
  Oe as ClubBenefitValidator,
2781
2801
  qe as ClubCreditChangeScene,
2782
2802
  xe as ClubCreditChangeSceneValidator,
@@ -2785,22 +2805,22 @@ export {
2785
2805
  Ge as ClubCreditLogValidator,
2786
2806
  Pe as ClubGlobalConfigValidator,
2787
2807
  Le as ClubItemType,
2788
- z as ClubItemTypeValidator,
2808
+ J as ClubItemTypeValidator,
2789
2809
  Ee as ClubPlayerValidator,
2790
- Y as ClubProductValidator,
2810
+ W as ClubProductValidator,
2791
2811
  Se as ClubRedemptionStatus,
2792
2812
  Ue as ClubRedemptionStatusValidator,
2793
2813
  Ae as ClubUserCreditValidator,
2794
2814
  De as ClubUserProfileValidator,
2795
- rr as CommentEngagementValidator,
2815
+ ar as CommentEngagementValidator,
2796
2816
  k as CommentValidator,
2797
- Ta as CommunityApi,
2798
- tr as ConversationValidator,
2817
+ xa as CommunityApi,
2818
+ nr as ConversationValidator,
2799
2819
  tt as EngageAccountType,
2800
2820
  nt as EngageAccountTypeValidator,
2801
- ur as EngageResponseValidator,
2802
- or as EngageRewardValidator,
2803
- Va as EventApi,
2821
+ lr as EngageResponseValidator,
2822
+ ir as EngageRewardValidator,
2823
+ Ta as EventApi,
2804
2824
  qn as EventConfigValidator,
2805
2825
  Tt as EventFeatureConfigOfCashbackValidator,
2806
2826
  xt as EventFeatureConfigOfCheckInValidator,
@@ -2835,103 +2855,104 @@ export {
2835
2855
  Vt as FeatureRewardValidator,
2836
2856
  u as FeatureType,
2837
2857
  ot as FeatureTypeValidator,
2838
- $r as ForumMode,
2839
- Fr as ForumModeValidator,
2858
+ Ir as ForumMode,
2859
+ Dr as ForumModeValidator,
2840
2860
  se as ForumValidator,
2841
2861
  v as GamerItemType,
2842
- W as GamerItemTypeValidator,
2862
+ ee as GamerItemTypeValidator,
2843
2863
  Ce as Gender,
2844
2864
  Ve as GenderValidator,
2845
2865
  Ln as GiftCodeEngagementDataValidator,
2846
2866
  Sn as InviteEngagementDataValidator,
2847
2867
  _t as LotteryDrawAction,
2848
- Ra as LotteryDrawActionValidator,
2868
+ Va as LotteryDrawActionValidator,
2849
2869
  $n as LotteryDrawEngagementDataValidator,
2850
2870
  Un as LotteryEngagementDataValidator,
2851
2871
  w as LotteryTicketStatus,
2852
- ka as LotteryTicketStatusValidator,
2872
+ Ra as LotteryTicketStatusValidator,
2853
2873
  y as NotificationBaseValidator,
2854
- Dr as NotificationCategory,
2855
- ja as NotificationCategoryValidator,
2856
- Kr as NotificationCommentReplyValidator,
2857
- Hr as NotificationCommentValidator,
2874
+ Gr as NotificationCategory,
2875
+ qa as NotificationCategoryValidator,
2876
+ zr as NotificationCommentReplyValidator,
2877
+ Jr as NotificationCommentValidator,
2858
2878
  V as NotificationPayloadCommentValidator,
2859
2879
  A as NotificationPayloadPostValidator,
2860
2880
  G as NotificationPayloadReplyValidator,
2861
- Nr as NotificationPayloadSystemValidator,
2862
- Mr as NotificationPostCommentValidator,
2863
- Br as NotificationPostValidator,
2864
- zr as NotificationReplyRepliedValidator,
2865
- Jr as NotificationReplyValidator,
2866
- Qr as NotificationSystemValidator,
2881
+ Br as NotificationPayloadSystemValidator,
2882
+ Hr as NotificationPostCommentValidator,
2883
+ Kr as NotificationPostValidator,
2884
+ Zr as NotificationReplyRepliedValidator,
2885
+ Xr as NotificationReplyValidator,
2886
+ Mr as NotificationSystemValidator,
2867
2887
  m as NotificationType,
2868
- Ar as NotificationTypeValidator,
2869
- Zr as NotificationValidator,
2888
+ Or as NotificationTypeValidator,
2889
+ Yr as NotificationValidator,
2870
2890
  Ie as PlayerRoleCardValidator,
2871
- J as PlayerRoleValidator,
2872
- Ir as PostStatus,
2891
+ Z as PlayerRoleValidator,
2892
+ Ar as PostStatus,
2873
2893
  ie as PostStatusValidator,
2874
2894
  D as PostValidator,
2875
2895
  Fn as PreregisterEngagementDataValidator,
2876
- Or as PresignedUrlResponseValidator,
2896
+ Qr as PresignedUrlResponseValidator,
2877
2897
  In as QuestEngagementDataValidator,
2878
2898
  it as QuestObjective,
2879
- te as QuestObjectiveValidator,
2899
+ ne as QuestObjectiveValidator,
2880
2900
  bt as QuestProgressAlgorithm,
2881
2901
  yt as QuestProgressAlgorithmValidator,
2882
2902
  Dn as QuestProgressValidator,
2883
2903
  An as RedeemEngagementDataValidator,
2884
- ya as RedeemParamsValidator,
2904
+ fa as RedeemParamsValidator,
2885
2905
  Gn as RedeemStocksResponseValidator,
2886
2906
  Be as RedemptionValidator,
2887
2907
  Ct as RegularRewardValidator,
2888
- Gr as ReplyToValidator,
2908
+ Nr as ReplyToValidator,
2889
2909
  C as ReplyValidator,
2890
- fa as RewardItemType,
2891
- ee as RewardItemTypeValidator,
2910
+ ka as RewardItemType,
2911
+ te as RewardItemTypeValidator,
2892
2912
  mt as RewardSource,
2893
- $ as RewardSourceValidator,
2913
+ E as RewardSourceValidator,
2894
2914
  g as RewardStatus,
2895
2915
  ut as RewardStatusSuffix,
2896
- ne as RewardStatusSuffixValidator,
2897
- wa as RewardStatusValidator,
2898
- ar as RewardValidator,
2916
+ re as RewardStatusSuffixValidator,
2917
+ va as RewardStatusValidator,
2918
+ or as RewardValidator,
2899
2919
  Fe as RoleBaseInfoValidator,
2900
2920
  $e as ServerBaseInfoValidator,
2901
2921
  On as ShareEngagementDataValidator,
2902
2922
  Qn as SurveyEngagementDataValidator,
2903
2923
  pt as TeamAction,
2904
- va as TeamActionValidator,
2924
+ Ca as TeamActionValidator,
2905
2925
  Mn as TeamEngagementDataValidator,
2906
2926
  Bn as TeamEngagementValidator,
2907
- Ca as TeamMemberValidator,
2927
+ ja as TeamMemberValidator,
2908
2928
  dt as TeamVisibility,
2909
2929
  gt as TeamVisibilityValidator,
2910
2930
  I as TopicValidator,
2911
- zn as UgcCountResponseValidator,
2931
+ Jn as UgcCountResponseValidator,
2912
2932
  Kn as UgcEngagementDataValidator,
2913
- Zn as UgcLeaderboardResponseValidator,
2914
- Hn as UgcRecordResponseValidator,
2933
+ Xn as UgcLeaderboardResponseValidator,
2934
+ Hn as UgcRecordBaseResponseValidator,
2935
+ zn as UgcRecordResponseValidator,
2915
2936
  kt as UgcReviewStatus,
2916
2937
  vt as UgcReviewStatusValidator,
2917
2938
  wt as UgcSocialMedia,
2918
- re as UgcSocialMediaValidator,
2919
- Jn as UgcUploadImageValidator,
2939
+ $ as UgcSocialMediaValidator,
2940
+ Zn as UgcUploadImageValidator,
2920
2941
  F as UserEngagementDataValidator,
2921
- ir as UserEngagementValidator,
2922
- cr as UserFeatureStatusValidator,
2942
+ sr as UserEngagementValidator,
2943
+ ur as UserFeatureStatusValidator,
2923
2944
  R as UserRewardValidator,
2924
- sr as VerifyMobileResultValidator,
2925
- Wn as Vote2ClaimRewardsResponseValidator,
2926
- Yn as Vote2EngagementDataValidator,
2945
+ cr as VerifyMobileResultValidator,
2946
+ er as Vote2ClaimRewardsResponseValidator,
2947
+ Wn as Vote2EngagementDataValidator,
2927
2948
  ht as Vote2RewardType,
2928
2949
  ft as Vote2RewardTypeValidator,
2929
- Xn as VoteEngagementDataValidator,
2950
+ Yn as VoteEngagementDataValidator,
2930
2951
  st as VoteOptionSource,
2931
2952
  ct as VoteOptionSourceValidator,
2932
- qa as WeixinApi,
2953
+ La as WeixinApi,
2933
2954
  Nn as WeixinSubscribeEngagementDataValidator,
2934
- da as WeixinWebLoginErrorCode,
2935
- nr as ZeroChatGPTDataValidator,
2936
- ma as isWeixinSignResponse
2955
+ pa as WeixinWebLoginErrorCode,
2956
+ rr as ZeroChatGPTDataValidator,
2957
+ ga as isWeixinSignResponse
2937
2958
  };