@seayoo-web/gamer-api 2.15.5 → 2.15.7

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