@seayoo-web/gamer-api 2.12.6 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isComboWebView as de } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as k, supportWx as b, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as L, pruneObject as c, omitFields as P, parseJSON as ye, removePara as G } from "@seayoo-web/utils";
2
+ import { isPlainObject as k, supportWx as b, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as S, pruneObject as c, omitFields as P, parseJSON as ye, removePara as G } 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 k(i, "gamer_token") && typeof i.gamer_token == "string";
@@ -56,7 +56,7 @@ const ke = {
56
56
  }
57
57
  }
58
58
  }, h = "gamer_token";
59
- class ra {
59
+ class oa {
60
60
  $NetRequest;
61
61
  $idToken = "";
62
62
  $weixinToken = "";
@@ -87,7 +87,7 @@ class ra {
87
87
  this.$gamerToken && (a.headers.Authorization = `Bearer ${this.$gamerToken}`);
88
88
  }
89
89
  }), be()) {
90
- const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = L("gamer_token");
90
+ const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = S("gamer_token");
91
91
  (de() || a && o) && (this.$gamerToken = o);
92
92
  }
93
93
  this.$gamerToken || this.loadGamerTokenCache();
@@ -247,14 +247,14 @@ const Ve = {
247
247
  Physical: "physical",
248
248
  /** 虚拟商品 */
249
249
  Virtual: "virtual"
250
- }, z = e.string().enum(xe).lock(), Se = {
250
+ }, z = e.string().enum(xe).lock(), Le = {
251
251
  /** 待发放 */
252
252
  Pending: "pending",
253
253
  /** 已发放 */
254
254
  Issued: "issued",
255
255
  /** 发放失败 */
256
256
  Failed: "failed"
257
- }, Le = e.string().enum(Se).lock(), Pe = e.object({
257
+ }, Se = e.string().enum(Le).lock(), Pe = e.object({
258
258
  default_avatar_url: e.string(),
259
259
  official_avatar_urls: e.array(e.string()),
260
260
  default_nickname: e.string(),
@@ -281,15 +281,15 @@ const Ve = {
281
281
  credit_expiring: e.number(),
282
282
  level_change_time: e.number(),
283
283
  level_expire_time: e.number()
284
- }).lock(), $e = e.object({
284
+ }).lock(), Ue = e.object({
285
285
  server_id: e.string(),
286
286
  server_name: e.string()
287
- }).lock(), Ue = e.object({
287
+ }).lock(), $e = e.object({
288
288
  role_id: e.string(),
289
289
  role_name: e.string()
290
290
  }).lock(), J = e.object({
291
- ...Ue.shape,
292
291
  ...$e.shape,
292
+ ...Ue.shape,
293
293
  role_level: e.number(),
294
294
  last_login_time: e.number()
295
295
  }).lock(), Fe = e.object({
@@ -367,7 +367,7 @@ const Ve = {
367
367
  }).lock(), Ge = e.object({
368
368
  ...P(X.shape, "tag"),
369
369
  product: Y.clone().optional()
370
- }).lock(), aa = e.union(
370
+ }).lock(), ia = e.union(
371
371
  e.object({
372
372
  server_id: e.string(),
373
373
  role_id: e.string()
@@ -399,7 +399,7 @@ const Ve = {
399
399
  catalog_name: e.string(),
400
400
  quantity: e.number(),
401
401
  amount: e.number(),
402
- status: Le,
402
+ status: Se,
403
403
  created_at: e.number(),
404
404
  extra_data: e.union(Oe.clone(), Ne.clone()).satisfies().optional()
405
405
  }), Be = e.guard(Pe), N = s({ player: Ee }), Me = s({ roles: e.array(J) }), T = s({ role_card: Fe }), Q = e.guard(De), B = e.guard(Z), Ke = s({ addresses: e.array(Z) }), He = e.guard(Ie), ze = s({
@@ -409,7 +409,7 @@ const Ve = {
409
409
  redemptions: e.array(Qe),
410
410
  next_token: e.string().optional()
411
411
  });
412
- class oa {
412
+ class sa {
413
413
  token;
414
414
  req;
415
415
  constructor(t) {
@@ -693,7 +693,7 @@ const v = {
693
693
  ExternalCode: "external_gift_code",
694
694
  /** 空奖励 */
695
695
  VoidItem: "void_item"
696
- }, W = e.string().enum(v).lock(), ia = v, ee = W, We = {
696
+ }, W = e.string().enum(v).lock(), ca = v, ee = W, We = {
697
697
  /** 世游通行证 ID / Combo ID */
698
698
  UserId: "user_id",
699
699
  /** 游戏角色 ID */
@@ -747,7 +747,9 @@ const v = {
747
747
  /** 不朽箴言特有的 AI 聊天 */
748
748
  ZeroChatgpt: "zero_chatgpt",
749
749
  /** 投稿 */
750
- Ugc: "ugc"
750
+ Ugc: "ugc",
751
+ /** 投稿点赞 */
752
+ UgcLike: "ugc_like"
751
753
  }, rt = e.string().enum(l).lock(), at = {
752
754
  /** 累计游戏内活跃值 */
753
755
  Active: "player_active_points",
@@ -789,7 +791,7 @@ const v = {
789
791
  Failed: "failed",
790
792
  /** 奖励已发货 */
791
793
  Delivered: "delivered"
792
- }, sa = e.string().enum(g).lock(), st = {
794
+ }, la = e.string().enum(g).lock(), st = {
793
795
  /** 奖励未领取 */
794
796
  Unclaimed: g.Unclaimed,
795
797
  /** 奖励已领取 */
@@ -814,7 +816,7 @@ const v = {
814
816
  Output: "output",
815
817
  /** 玩法参与奖励 */
816
818
  Engage: "engage"
817
- }, $ = e.string().enum(lt).lock(), ut = {
819
+ }, U = e.string().enum(lt).lock(), ut = {
818
820
  /** 私有队伍 */
819
821
  Private: "private",
820
822
  /** 公开队伍 */
@@ -830,7 +832,7 @@ const v = {
830
832
  Claimed: "claimed",
831
833
  /** 领奖失败 */
832
834
  Fail: "fail"
833
- }, ca = e.string().enum(f).lock(), dt = {
835
+ }, ua = e.string().enum(f).lock(), dt = {
834
836
  /** 发起组队 */
835
837
  Assemble: "assemble",
836
838
  /** 加入队伍 */
@@ -841,14 +843,14 @@ const v = {
841
843
  ChangeVisibility: "change_visibility",
842
844
  /** 查询组队信息 */
843
845
  Query: "query"
844
- }, la = e.string().enum(dt).lock(), gt = {
846
+ }, ma = e.string().enum(dt).lock(), gt = {
845
847
  /** 查询抽奖券 */
846
848
  Query: "query",
847
849
  /** 开奖 */
848
850
  Draw: "draw",
849
851
  /** 领奖 */
850
852
  Claim: "claim"
851
- }, ua = e.string().enum(gt).lock(), pt = {
853
+ }, da = e.string().enum(gt).lock(), pt = {
852
854
  /** 将所有队员的进度值求和,作为队伍进度值 */
853
855
  Sum: "sum",
854
856
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
@@ -929,9 +931,9 @@ const v = {
929
931
  }), qt = l.ClaimActivationKey, xt = e.object({
930
932
  ...u.shape,
931
933
  feature_type: e.string().enum(qt)
932
- }), St = l.ClaimRewards, Lt = e.object({
934
+ }), Lt = l.ClaimRewards, St = e.object({
933
935
  ...u.shape,
934
- feature_type: e.string().enum(St)
936
+ feature_type: e.string().enum(Lt)
935
937
  }), Pt = l.Comment, Et = e.object({
936
938
  ...u.shape,
937
939
  feature_type: e.string().enum(Pt),
@@ -939,9 +941,9 @@ const v = {
939
941
  comments: e.array(e.string()),
940
942
  send_rate: e.number()
941
943
  })
942
- }), $t = l.Follow, Ut = e.object({
944
+ }), Ut = l.Follow, $t = e.object({
943
945
  ...u.shape,
944
- feature_type: e.string().enum($t),
946
+ feature_type: e.string().enum(Ut),
945
947
  config: e.object({
946
948
  platform: e.string(),
947
949
  platform_icon: e.string().optional(),
@@ -1101,12 +1103,18 @@ const v = {
1101
1103
  }), hn = l.ZeroChatgpt, fn = e.object({
1102
1104
  ...u.shape,
1103
1105
  feature_type: e.string().enum(hn)
1104
- }), wn = e.union(
1106
+ }), wn = l.Ugc, kn = e.object({
1107
+ ...u.shape,
1108
+ feature_type: e.string().enum(wn),
1109
+ config: e.object({
1110
+ ugc_feature_id: e.number()
1111
+ })
1112
+ }), vn = e.union(
1105
1113
  Rt,
1106
1114
  Tt,
1107
- Lt,
1115
+ St,
1108
1116
  Et,
1109
- Ut,
1117
+ $t,
1110
1118
  It,
1111
1119
  Gt,
1112
1120
  Nt,
@@ -1123,32 +1131,33 @@ const v = {
1123
1131
  yn,
1124
1132
  xt,
1125
1133
  fn,
1126
- mn
1127
- ).key("feature_type").satisfies(), kn = e.object({
1134
+ mn,
1135
+ kn
1136
+ ).key("feature_type").satisfies(), Vn = e.object({
1128
1137
  event_name: e.string(),
1129
1138
  rules: e.string(),
1130
1139
  since: e.number(),
1131
1140
  until: e.number(),
1132
1141
  visit_count: e.number().optional(),
1133
- features: e.array(wn)
1142
+ features: e.array(vn)
1134
1143
  }).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ae = e.object({
1135
1144
  order_total_amount: q,
1136
1145
  cashback_total_amount: q,
1137
1146
  game_item_count: q
1138
- }), vn = e.object({
1147
+ }), Cn = e.object({
1139
1148
  activation_key: e.string().disallow("")
1140
- }), Vn = e.object({
1149
+ }), Rn = e.object({
1141
1150
  gift_code: e.string()
1142
- }), Cn = e.object({
1151
+ }), jn = e.object({
1143
1152
  user_id: e.string(),
1144
1153
  name: e.string().optional(),
1145
1154
  avatar_url: e.string().optional()
1146
- }), Rn = e.object({
1155
+ }), Tn = e.object({
1147
1156
  lottery_count: e.number()
1148
1157
  }), V = e.object({
1149
1158
  reward_id: e.number(),
1150
1159
  reward_item_id: e.number(),
1151
- reward_source: $,
1160
+ reward_source: U,
1152
1161
  reward_item_name: e.string(),
1153
1162
  reward_item_type: W,
1154
1163
  reward_item_icon_url: e.string(),
@@ -1163,26 +1172,26 @@ const v = {
1163
1172
  feature_type: rt,
1164
1173
  receive_time: e.number(),
1165
1174
  extra_data: e.record(e.unknown()).optional()
1166
- }), jn = e.string().enum(f.Unknown, f.Pending), Tn = e.union(
1175
+ }), qn = e.string().enum(f.Unknown, f.Pending), xn = e.union(
1167
1176
  e.object({
1168
1177
  ticket: e.string(),
1169
- status: jn
1178
+ status: qn
1170
1179
  }),
1171
1180
  e.object({
1172
1181
  ticket: e.string(),
1173
1182
  status: e.string().enum(P(f, "Unknown", "Pending")),
1174
1183
  reward: V
1175
1184
  })
1176
- ).satisfies(), qn = e.object({
1177
- tickets: e.array(Tn)
1178
- }), xn = e.object({
1185
+ ).satisfies(), Ln = e.object({
1186
+ tickets: e.array(xn)
1187
+ }), Sn = e.object({
1179
1188
  platforms: e.array(e.string())
1180
1189
  }), oe = e.object({
1181
1190
  role_name: e.string(),
1182
1191
  is_leader: e.bool(),
1183
1192
  is_myself: e.bool().optional(),
1184
1193
  progress: e.number().optional()
1185
- }).lock(), Sn = e.object({
1194
+ }).lock(), Pn = e.object({
1186
1195
  objective: te,
1187
1196
  progress: e.number(),
1188
1197
  completion_value: e.number().optional(),
@@ -1191,28 +1200,28 @@ const v = {
1191
1200
  completion_value: e.number().optional(),
1192
1201
  players: e.array(oe)
1193
1202
  }).optional()
1194
- }), Ln = e.object({
1203
+ }), En = e.object({
1195
1204
  progress: e.number(),
1196
1205
  team: e.object({
1197
1206
  progress: e.number(),
1198
1207
  team_members: e.array(oe).optional()
1199
1208
  }).optional()
1200
- }), Pn = e.object({
1209
+ }), Un = e.object({
1201
1210
  platform: e.string()
1202
- }), En = e.object({
1203
- weixin_openid: e.string()
1204
1211
  }), $n = e.object({
1212
+ weixin_openid: e.string()
1213
+ }), Fn = e.object({
1205
1214
  serial_number: e.number()
1206
- }), Un = e.object({
1215
+ }), Dn = e.object({
1207
1216
  team_code: e.string(),
1208
1217
  leader_name: e.string(),
1209
1218
  total_members: e.number()
1210
- }), ma = e.object({
1219
+ }), ga = e.object({
1211
1220
  is_leader: e.bool(),
1212
1221
  is_myself: e.bool().optional(),
1213
1222
  role_name: e.string(),
1214
1223
  server_name: e.string()
1215
- }), Fn = e.object({
1224
+ }), In = e.object({
1216
1225
  team_code: e.string(),
1217
1226
  visibility: mt,
1218
1227
  members: e.array(
@@ -1222,14 +1231,14 @@ const v = {
1222
1231
  server_name: e.string()
1223
1232
  })
1224
1233
  )
1225
- }), Dn = e.object({
1234
+ }), An = e.object({
1226
1235
  ugc_id: e.number(),
1227
1236
  title: e.string(),
1228
1237
  content: e.string().optional(),
1229
1238
  image_urls: e.array(e.string()).optional(),
1230
1239
  social_media: re.clone().optional(),
1231
1240
  social_media_url: e.string().optional()
1232
- }), In = e.object({
1241
+ }), Gn = e.object({
1233
1242
  ugcs: e.array(
1234
1243
  e.object({
1235
1244
  ugc_id: e.number(),
@@ -1248,11 +1257,11 @@ const v = {
1248
1257
  })
1249
1258
  ).optional(),
1250
1259
  next_token: e.string().optional()
1251
- }), An = e.object({
1260
+ }), On = e.object({
1252
1261
  existed: e.bool(),
1253
1262
  upload_url: e.string().optional(),
1254
1263
  image_url: e.string()
1255
- }), Gn = e.object({
1264
+ }), Nn = e.object({
1256
1265
  ugcs: e.array(
1257
1266
  e.object({
1258
1267
  ugc_id: e.number(),
@@ -1265,68 +1274,68 @@ const v = {
1265
1274
  role_name: e.string().optional()
1266
1275
  })
1267
1276
  )
1268
- }), On = e.object({
1277
+ }), Qn = e.object({
1269
1278
  option_sn: e.string()
1270
- }), Nn = e.object({
1279
+ }), Bn = e.object({
1271
1280
  candidate_id: e.string(),
1272
1281
  total_votes: e.number().optional(),
1273
1282
  my_votes: e.number().optional(),
1274
1283
  votes: e.number().optional()
1275
- }), Qn = e.object({
1284
+ }), Mn = e.object({
1276
1285
  rewards_type: yt,
1277
1286
  rewards: e.array(V).optional()
1278
- }), Bn = e.object({
1287
+ }), Kn = e.object({
1279
1288
  candidate_id: e.string(),
1280
1289
  is_winner: e.bool(),
1281
1290
  total_votes: e.number(),
1282
1291
  my_votes: e.number()
1283
- }), Mn = e.object({
1292
+ }), Hn = e.object({
1284
1293
  role: e.string(),
1285
1294
  content: e.string()
1286
- }), Kn = e.object({
1287
- conversations: e.array(Mn)
1288
- }), Hn = e.object({
1295
+ }), zn = e.object({
1296
+ conversations: e.array(Hn)
1297
+ }), Jn = e.object({
1289
1298
  user_id: e.string(),
1290
1299
  name: e.string(),
1291
1300
  avatar_url: e.string(),
1292
1301
  comment: e.string(),
1293
1302
  video_note: e.number(),
1294
1303
  created_at: e.number()
1295
- }), U = e.union(
1296
- xn,
1297
- Rn,
1304
+ }), $ = e.union(
1305
+ Sn,
1306
+ Tn,
1307
+ Fn,
1308
+ jn,
1309
+ Un,
1310
+ Qn,
1311
+ Bn,
1298
1312
  $n,
1299
- Cn,
1300
- Pn,
1301
- On,
1302
- Nn,
1303
- En,
1304
1313
  ae,
1305
- Vn,
1306
- Fn,
1307
- Sn,
1308
- qn,
1309
- vn,
1310
- Kn,
1311
- Dn,
1314
+ Rn,
1315
+ In,
1316
+ Pn,
1317
+ Ln,
1318
+ Cn,
1319
+ zn,
1320
+ An,
1312
1321
  e.custom(
1313
1322
  "EmptyObject",
1314
1323
  (i) => k(i) && Object.keys(i).length === 0
1315
1324
  )
1316
- ).satisfies().lock(), zn = e.object({
1325
+ ).satisfies().lock(), Zn = e.object({
1317
1326
  reward_id: e.number(),
1318
1327
  reward_item_id: e.number(),
1319
1328
  reward_item_type: ee,
1320
1329
  reward_count: e.number(),
1321
1330
  reward_status: ne,
1322
- reward_source: $,
1331
+ reward_source: U,
1323
1332
  reward_item_name: e.string(),
1324
1333
  reward_item_icon_url: e.string(),
1325
1334
  reward_item_desc: e.string().optional(),
1326
1335
  reward_item_rating: e.number(),
1327
1336
  receive_time: e.number(),
1328
- extra_data: e.union(...U.validators, e.record(e.unknown())).satisfies().optional()
1329
- }), Jn = e.object({
1337
+ extra_data: e.union(...$.validators, e.record(e.unknown())).satisfies().optional()
1338
+ }), Xn = e.object({
1330
1339
  reward_id: e.number(),
1331
1340
  reward_item_id: e.number(),
1332
1341
  reward_item_name: e.string(),
@@ -1336,69 +1345,69 @@ const v = {
1336
1345
  reward_item_rating: e.number(),
1337
1346
  reward_amount: e.number(),
1338
1347
  reward_status: ne,
1339
- reward_source: $,
1348
+ reward_source: U,
1340
1349
  extra_data: e.record(e.unknown()).optional()
1341
- }), Zn = e.object({
1350
+ }), Yn = e.object({
1342
1351
  engagement_id: e.number(),
1343
1352
  user_id: e.string(),
1344
1353
  event_id: e.number(),
1345
1354
  feature_id: e.number(),
1346
1355
  sequence: e.number(),
1347
- data: U.clone().optional(),
1356
+ data: $.clone().optional(),
1348
1357
  server_id: e.string().optional(),
1349
1358
  role_id: e.string().optional(),
1350
1359
  created_at: e.number(),
1351
- rewards: e.array(zn).optional()
1352
- }).lock(), Xn = e.object({
1360
+ rewards: e.array(Zn).optional()
1361
+ }).lock(), Wn = e.object({
1353
1362
  allowed: e.bool(),
1354
1363
  registered: e.bool()
1355
- }), Yn = e.object({
1364
+ }), er = e.object({
1356
1365
  feature_id: e.number(),
1357
1366
  can_engage: e.bool(),
1358
1367
  has_unclaimed_rewards: e.bool()
1359
- }), Wn = e.object({
1368
+ }), tr = e.object({
1360
1369
  engagement_id: e.number(),
1361
1370
  engagement: e.object({
1362
1371
  engagement_id: e.number(),
1363
1372
  sequence: e.number(),
1364
1373
  feature_id: e.number(),
1365
- data: U.clone().optional()
1374
+ data: $.clone().optional()
1366
1375
  }).optional(),
1367
- rewards: e.array(Jn).optional(),
1376
+ rewards: e.array(Xn).optional(),
1368
1377
  scan: e.bool().optional()
1369
- }), er = e.object({
1378
+ }), nr = e.object({
1370
1379
  reward_id: e.number(),
1371
1380
  reward_status: E
1372
- }), tr = e.guard(kn), nr = e.guard(Xn), x = s({ count: e.number() }), rr = s({ first_visit: e.bool() }), ar = s({
1373
- engagements: e.union(e.array(Hn), e.array(Un))
1374
- }), or = s({
1375
- status: e.array(Yn)
1376
- }), ir = s({
1377
- engagements_counts: e.record(e.number())
1381
+ }), rr = e.guard(Vn), ar = e.guard(Wn), x = s({ count: e.number() }), or = s({ first_visit: e.bool() }), ir = s({
1382
+ engagements: e.union(e.array(Jn), e.array(Dn))
1378
1383
  }), sr = s({
1379
- engagements: e.array(Zn),
1384
+ status: e.array(er)
1385
+ }), cr = s({
1386
+ engagements_counts: e.record(e.number())
1387
+ }), lr = s({
1388
+ engagements: e.array(Yn),
1380
1389
  next_token: e.string().optional()
1381
- }), cr = e.guard(Wn), lr = s({
1382
- claimed_items: e.array(er)
1383
- }), ur = s({
1390
+ }), ur = e.guard(tr), mr = s({
1391
+ claimed_items: e.array(nr)
1392
+ }), dr = s({
1384
1393
  rewards: e.array(V)
1385
- }), mr = s({
1394
+ }), gr = s({
1386
1395
  reward_status: E
1387
- }), dr = s({
1396
+ }), pr = s({
1388
1397
  user_rewards: e.array(V),
1389
1398
  next_token: e.string().optional()
1390
- }), gr = s({
1399
+ }), _r = s({
1391
1400
  scene: e.string()
1392
- }), pr = s({
1401
+ }), br = s({
1393
1402
  params: e.string()
1394
- }), _r = s({
1403
+ }), yr = s({
1395
1404
  img: e.string()
1396
- }), br = e.guard(Ln), yr = e.guard(Qn), hr = e.guard(
1405
+ }), hr = e.guard(En), fr = e.guard(Mn), wr = e.guard(
1397
1406
  e.object({
1398
- candidate_votes: e.array(Bn)
1407
+ candidate_votes: e.array(Kn)
1399
1408
  })
1400
- ), fr = e.guard(ae), M = e.guard(In), wr = e.guard(An), kr = e.guard(Gn);
1401
- class da {
1409
+ ), kr = e.guard(ae), M = e.guard(Gn), vr = e.guard(On), Vr = e.guard(Nn);
1410
+ class pa {
1402
1411
  token;
1403
1412
  event = 0;
1404
1413
  req;
@@ -1411,7 +1420,7 @@ class da {
1411
1420
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
1412
1421
  */
1413
1422
  async verifyMobileAllowed(t, n, r) {
1414
- const { data: a } = await this.req.get("verify-mobile-allowed", nr, {
1423
+ const { data: a } = await this.req.get("verify-mobile-allowed", ar, {
1415
1424
  ...r,
1416
1425
  params: { game_id: t, mobile: n }
1417
1426
  });
@@ -1423,7 +1432,7 @@ class da {
1423
1432
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
1424
1433
  */
1425
1434
  async getConfig(t) {
1426
- const { data: n } = await this.req.get(`event/${this.event}/event-config`, tr, t);
1435
+ const { data: n } = await this.req.get(`event/${this.event}/event-config`, rr, t);
1427
1436
  return n;
1428
1437
  }
1429
1438
  /**
@@ -1458,7 +1467,7 @@ class da {
1458
1467
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
1459
1468
  */
1460
1469
  async getEngagements(t, n) {
1461
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, ar, {
1470
+ const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, ir, {
1462
1471
  ...n,
1463
1472
  params: { feature_id: t }
1464
1473
  });
@@ -1474,7 +1483,7 @@ class da {
1474
1483
  const { data: r, code: a, message: o } = await this.req.post(
1475
1484
  `event/${this.event}/visit`,
1476
1485
  c(t || {}),
1477
- rr,
1486
+ or,
1478
1487
  n
1479
1488
  );
1480
1489
  return r ?? {
@@ -1491,7 +1500,7 @@ class da {
1491
1500
  */
1492
1501
  async getUserFeatureStatus(t, n) {
1493
1502
  if (!await this.token.autoLogin()) return [];
1494
- const { data: r } = await this.req.get("event/user-feature-status", or, {
1503
+ const { data: r } = await this.req.get("event/user-feature-status", sr, {
1495
1504
  ...n,
1496
1505
  message: !1,
1497
1506
  params: c({ ...t, event_id: this.event })
@@ -1505,7 +1514,7 @@ class da {
1505
1514
  */
1506
1515
  async getUserEngagementCount(t, n) {
1507
1516
  if (!await this.token.autoLogin()) return {};
1508
- const { data: r } = await this.req.get("event/user-engagements-count", ir, {
1517
+ const { data: r } = await this.req.get("event/user-engagements-count", cr, {
1509
1518
  message: !1,
1510
1519
  params: c({ ...n, event_id: this.event, feature_id: t })
1511
1520
  });
@@ -1524,7 +1533,7 @@ class da {
1524
1533
  engagements: [],
1525
1534
  next_token: ""
1526
1535
  };
1527
- const { data: a } = await this.req.get("event/user-engagements", sr, {
1536
+ const { data: a } = await this.req.get("event/user-engagements", lr, {
1528
1537
  ...r,
1529
1538
  params: c({
1530
1539
  max_results: 20,
@@ -1556,7 +1565,7 @@ class da {
1556
1565
  engagement: n,
1557
1566
  ...r
1558
1567
  }),
1559
- cr,
1568
+ ur,
1560
1569
  a
1561
1570
  );
1562
1571
  return o ?? {
@@ -1579,7 +1588,7 @@ class da {
1579
1588
  ...t,
1580
1589
  server_id: t.server_id ? +t.server_id : void 0
1581
1590
  }),
1582
- lr,
1591
+ mr,
1583
1592
  n
1584
1593
  );
1585
1594
  return r?.claimed_items || {
@@ -1600,7 +1609,7 @@ class da {
1600
1609
  ...t,
1601
1610
  server_id: t.server_id ? +t.server_id : void 0
1602
1611
  }),
1603
- ur,
1612
+ dr,
1604
1613
  n
1605
1614
  );
1606
1615
  return r?.rewards || {
@@ -1618,7 +1627,7 @@ class da {
1618
1627
  const { data: r, code: a, message: o } = await this.req.post(
1619
1628
  "event/claim-weixin-hongbao",
1620
1629
  { reward_id: t },
1621
- mr,
1630
+ gr,
1622
1631
  n
1623
1632
  );
1624
1633
  return r || {
@@ -1659,7 +1668,7 @@ class da {
1659
1668
  const { data: r } = await this.req.post(
1660
1669
  "event/user-rewards",
1661
1670
  c({ max_results: 20, ...t, event_id: this.event }),
1662
- dr,
1671
+ pr,
1663
1672
  n
1664
1673
  );
1665
1674
  return {
@@ -1707,7 +1716,7 @@ class da {
1707
1716
  */
1708
1717
  async getUnlimitQrcodeScene(t, n) {
1709
1718
  if (!await this.token.autoLogin()) return null;
1710
- const { data: r } = await this.req.get("event/unlimit-qrcode-scene", gr, {
1719
+ const { data: r } = await this.req.get("event/unlimit-qrcode-scene", _r, {
1711
1720
  ...n,
1712
1721
  params: { params: t }
1713
1722
  });
@@ -1721,7 +1730,7 @@ class da {
1721
1730
  * @param scene - 小程序码 scene 值
1722
1731
  */
1723
1732
  async getParamsByQrcodeScene(t, n) {
1724
- const { data: r } = await this.req.get("event/params-by-qrcode-scene", pr, {
1733
+ const { data: r } = await this.req.get("event/params-by-qrcode-scene", br, {
1725
1734
  ...n,
1726
1735
  params: { scene: t }
1727
1736
  });
@@ -1737,7 +1746,7 @@ class da {
1737
1746
  const { data: r } = await this.req.post(
1738
1747
  "event/unlimit-qrcode",
1739
1748
  c(t),
1740
- _r,
1749
+ yr,
1741
1750
  n
1742
1751
  );
1743
1752
  return r?.img ?? null;
@@ -1749,7 +1758,7 @@ class da {
1749
1758
  */
1750
1759
  async getQuestProgress(t, n) {
1751
1760
  if (!await this.token.autoLogin()) return null;
1752
- const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, br, {
1761
+ const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, hr, {
1753
1762
  message: !1,
1754
1763
  ...n,
1755
1764
  params: { feature_id: t }
@@ -1771,7 +1780,7 @@ class da {
1771
1780
  const { data: r, code: a, message: o } = await this.req.post(
1772
1781
  "event/vote2/rewards",
1773
1782
  { feature_id: t, event_id: this.event },
1774
- yr,
1783
+ fr,
1775
1784
  n
1776
1785
  );
1777
1786
  return r || {
@@ -1786,7 +1795,7 @@ class da {
1786
1795
  */
1787
1796
  async getVote2Leaderboard(t, n) {
1788
1797
  if (!await this.token.autoLogin()) return [];
1789
- const { data: r } = await this.req.get("event/vote2/leaderboard", hr, {
1798
+ const { data: r } = await this.req.get("event/vote2/leaderboard", wr, {
1790
1799
  ...n,
1791
1800
  params: { feature_id: t, event_id: this.event }
1792
1801
  });
@@ -1799,7 +1808,7 @@ class da {
1799
1808
  */
1800
1809
  async getCashbackQuery(t, n) {
1801
1810
  if (!await this.token.autoLogin()) return null;
1802
- const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", fr, {
1811
+ const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", kr, {
1803
1812
  ...n,
1804
1813
  params: { feature_id: t, event_id: this.event }
1805
1814
  });
@@ -1843,7 +1852,7 @@ class da {
1843
1852
  const { data: a, code: o, message: d } = await this.req.post(
1844
1853
  "event/ugc/upload-image",
1845
1854
  { feature_id: t, ...n, event_id: this.event },
1846
- wr,
1855
+ vr,
1847
1856
  r
1848
1857
  );
1849
1858
  return a || {
@@ -1882,7 +1891,7 @@ class da {
1882
1891
  */
1883
1892
  async getUgcLeaderboard(t, n) {
1884
1893
  if (!await this.token.autoLogin()) return null;
1885
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", kr, {
1894
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", Vr, {
1886
1895
  ...n,
1887
1896
  params: {
1888
1897
  feature_id: t,
@@ -1895,12 +1904,12 @@ class da {
1895
1904
  };
1896
1905
  }
1897
1906
  }
1898
- const vr = {
1907
+ const Cr = {
1899
1908
  /** 所有人均可以发帖 */
1900
1909
  All: "all",
1901
1910
  /** 指定用户可发帖 */
1902
1911
  Limit: "limit"
1903
- }, Vr = e.string().enum(vr).lock(), Cr = {
1912
+ }, Rr = e.string().enum(Cr).lock(), jr = {
1904
1913
  /** 待审核(仅自己可见) */
1905
1914
  Pending: "pending",
1906
1915
  /** 审核通过 */
@@ -1909,14 +1918,14 @@ const vr = {
1909
1918
  Failed: "failed",
1910
1919
  /** 嫌疑(仅自己可见) */
1911
1920
  Suspect: "suspect"
1912
- }, ie = e.string().enum(Cr).lock(), Rr = {
1921
+ }, ie = e.string().enum(jr).lock(), Tr = {
1913
1922
  /** 系统通知 */
1914
1923
  System: "system",
1915
1924
  /** 评论我的 */
1916
1925
  Comment: "comment",
1917
1926
  /** 点赞通知 */
1918
1927
  Like: "like"
1919
- }, ga = e.string().enum(Rr).lock(), m = {
1928
+ }, _a = e.string().enum(Tr).lock(), m = {
1920
1929
  /** 系统通知 */
1921
1930
  System: "system",
1922
1931
  /** 帖子被置顶 */
@@ -1941,13 +1950,13 @@ const vr = {
1941
1950
  ReplyLiked: "reply_liked",
1942
1951
  /** 回复被删除 */
1943
1952
  ReplyDeleted: "reply_deleted"
1944
- }, jr = e.string().enum(m).lock(), se = e.object({
1953
+ }, qr = e.string().enum(m).lock(), se = e.object({
1945
1954
  forum_id: e.number(),
1946
1955
  icon_url: e.string(),
1947
1956
  name: e.string(),
1948
1957
  tags: e.array(e.string()),
1949
1958
  sort: e.number(),
1950
- mode: Vr,
1959
+ mode: Rr,
1951
1960
  member_ids: e.array(e.number())
1952
1961
  }).lock(), F = e.object({
1953
1962
  topic_id: e.number(),
@@ -1978,7 +1987,7 @@ const vr = {
1978
1987
  create_time: e.number()
1979
1988
  }).lock(), ce = e.object({
1980
1989
  err_msg: e.string().optional()
1981
- }).optional().lock(), Tr = e.object({
1990
+ }).optional().lock(), xr = e.object({
1982
1991
  reply_id: e.number(),
1983
1992
  reply_content: e.string().optional(),
1984
1993
  replied_by: e.string(),
@@ -1997,7 +2006,7 @@ const vr = {
1997
2006
  content: e.string(),
1998
2007
  like_num: e.number(),
1999
2008
  liked: e.bool(),
2000
- reply_to: Tr,
2009
+ reply_to: xr,
2001
2010
  create_time: e.number()
2002
2011
  }).lock(), w = e.object({
2003
2012
  comment_id: e.number(),
@@ -2019,19 +2028,19 @@ const vr = {
2019
2028
  create_time: e.number(),
2020
2029
  status: ie,
2021
2030
  replies: e.array(C).optional()
2022
- }).lock(), qr = e.object({
2031
+ }).lock(), Lr = e.object({
2023
2032
  image_url: e.string(),
2024
2033
  upload_url: e.string(),
2025
2034
  existed: e.bool()
2026
2035
  }).lock(), _ = e.object({
2027
2036
  notification_id: e.string(),
2028
- notification_type: jr,
2037
+ notification_type: qr,
2029
2038
  is_read: e.bool(),
2030
2039
  create_time: e.number(),
2031
2040
  origin_user_id: e.string(),
2032
2041
  origin_user_name: e.string(),
2033
2042
  origin_user_avatar_url: e.string()
2034
- }).lock(), xr = e.object({
2043
+ }).lock(), Sr = e.object({
2035
2044
  system_message_subject: e.string(),
2036
2045
  system_message_content: e.string()
2037
2046
  }).lock(), I = e.object({
@@ -2045,11 +2054,11 @@ const vr = {
2045
2054
  }).lock(), A = e.object({
2046
2055
  reply_id: e.number(),
2047
2056
  reply_content: e.string()
2048
- }).lock(), Sr = e.object({
2057
+ }).lock(), Pr = e.object({
2049
2058
  ..._.shape,
2050
- ...xr.shape,
2059
+ ...Sr.shape,
2051
2060
  notification_type: e.string().enum(m.System)
2052
- }), Lr = e.object({
2061
+ }), Er = e.object({
2053
2062
  ..._.shape,
2054
2063
  ...I.shape,
2055
2064
  notification_type: e.string().enum(
@@ -2058,68 +2067,68 @@ const vr = {
2058
2067
  m.PostDeleted,
2059
2068
  m.PostLiked
2060
2069
  )
2061
- }), Pr = e.object({
2070
+ }), Ur = e.object({
2062
2071
  ..._.shape,
2063
2072
  ...I.shape,
2064
2073
  ...R.shape,
2065
2074
  notification_type: e.string().enum(m.PostCommented)
2066
- }), Er = e.object({
2075
+ }), $r = e.object({
2067
2076
  ..._.shape,
2068
2077
  ...R.shape,
2069
2078
  ...A.shape,
2070
2079
  notification_type: e.string().enum(m.CommentReplied)
2071
- }), $r = e.object({
2080
+ }), Fr = e.object({
2072
2081
  ..._.shape,
2073
2082
  ...R.shape,
2074
2083
  ...I.shape,
2075
2084
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
2076
- }), Ur = e.object({
2085
+ }), Dr = e.object({
2077
2086
  ..._.shape,
2078
2087
  ...A.shape,
2079
2088
  notification_type: e.string().enum(m.ReplyReplied),
2080
2089
  comment_id: e.number(),
2081
2090
  reply_to_reply_id: e.number(),
2082
2091
  reply_to_reply_content: e.string()
2083
- }), Fr = e.object({
2092
+ }), Ir = e.object({
2084
2093
  ..._.shape,
2085
2094
  ...A.shape,
2086
2095
  ...R.shape,
2087
2096
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
2088
- }), Dr = e.union(
2089
- Sr,
2090
- Lr,
2097
+ }), Ar = e.union(
2091
2098
  Pr,
2092
2099
  Er,
2093
- $r,
2094
2100
  Ur,
2095
- Fr
2096
- ).satisfies().lock(), Ir = s({ forums: e.array(se) }), Ar = s({ topics: e.array(F) }), Gr = s({ topic: F }), Or = s({ post: D }), K = s({
2101
+ $r,
2102
+ Fr,
2103
+ Dr,
2104
+ Ir
2105
+ ).satisfies().lock(), Gr = s({ forums: e.array(se) }), Or = s({ topics: e.array(F) }), Nr = s({ topic: F }), Qr = s({ post: D }), K = s({
2097
2106
  posts: e.array(D),
2098
2107
  next_token: e.string().optional()
2099
- }), Nr = s({
2108
+ }), Br = s({
2100
2109
  post: D.clone().optional(),
2101
2110
  antispam: ce.clone().optional()
2102
- }), Qr = s({
2111
+ }), Mr = s({
2103
2112
  replies: e.array(C),
2104
2113
  next_token: e.string().optional()
2105
- }), Br = s({ reply: C }), Mr = s({
2114
+ }), Kr = s({ reply: C }), Hr = s({
2106
2115
  reply: C.clone().optional(),
2107
2116
  antispam: ce.clone().optional()
2108
- }), Kr = s({ comment: w }), Hr = s({
2117
+ }), zr = s({ comment: w }), Jr = s({
2109
2118
  comments: e.array(w),
2110
2119
  next_token: e.string().optional()
2111
- }), zr = s({
2120
+ }), Zr = s({
2112
2121
  comment: w.clone().optional(),
2113
2122
  antispam: w.clone().optional()
2114
- }), Jr = e.guard(qr), Zr = s({
2115
- notifications: e.array(Dr),
2123
+ }), Xr = e.guard(Lr), Yr = s({
2124
+ notifications: e.array(Ar),
2116
2125
  next_token: e.string().optional()
2117
- }), Xr = s({
2126
+ }), Wr = s({
2118
2127
  system: e.number(),
2119
2128
  comment: e.number(),
2120
2129
  like: e.number()
2121
2130
  });
2122
- class pa {
2131
+ class ba {
2123
2132
  token;
2124
2133
  req;
2125
2134
  constructor(t) {
@@ -2131,7 +2140,7 @@ class pa {
2131
2140
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
2132
2141
  */
2133
2142
  async getForums(t) {
2134
- const { data: n } = await this.req.get("community/forums", Ir, t);
2143
+ const { data: n } = await this.req.get("community/forums", Gr, t);
2135
2144
  return n?.forums || [];
2136
2145
  }
2137
2146
  /**
@@ -2140,7 +2149,7 @@ class pa {
2140
2149
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
2141
2150
  */
2142
2151
  async getTopics(t) {
2143
- const { data: n } = await this.req.get("community/topics", Ar, t);
2152
+ const { data: n } = await this.req.get("community/topics", Or, t);
2144
2153
  return n?.topics || [];
2145
2154
  }
2146
2155
  /**
@@ -2149,7 +2158,7 @@ class pa {
2149
2158
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
2150
2159
  */
2151
2160
  async getTopic(t, n) {
2152
- const { data: r, code: a } = await this.req.get("community/topic", Gr, {
2161
+ const { data: r, code: a } = await this.req.get("community/topic", Nr, {
2153
2162
  ...n,
2154
2163
  params: { topic_id: t }
2155
2164
  });
@@ -2191,7 +2200,7 @@ class pa {
2191
2200
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2192
2201
  */
2193
2202
  async getPost(t, n) {
2194
- const { data: r, code: a, message: o } = await this.req.get("community/post", Or, {
2203
+ const { data: r, code: a, message: o } = await this.req.get("community/post", Qr, {
2195
2204
  ...n,
2196
2205
  params: { post_id: t }
2197
2206
  });
@@ -2209,7 +2218,7 @@ class pa {
2209
2218
  const { data: r, code: a, message: o } = await this.req.post(
2210
2219
  "community/post",
2211
2220
  c(t),
2212
- Nr,
2221
+ Br,
2213
2222
  n
2214
2223
  );
2215
2224
  return r ?? {
@@ -2223,7 +2232,7 @@ class pa {
2223
2232
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2224
2233
  */
2225
2234
  async getComments(t, n) {
2226
- const { data: r, code: a, message: o } = await this.req.get("community/comments", Hr, {
2235
+ const { data: r, code: a, message: o } = await this.req.get("community/comments", Jr, {
2227
2236
  ...n,
2228
2237
  params: c(t)
2229
2238
  });
@@ -2238,7 +2247,7 @@ class pa {
2238
2247
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2239
2248
  */
2240
2249
  async getComment(t, n) {
2241
- const { data: r, code: a, message: o } = await this.req.get("community/comment", Kr, {
2250
+ const { data: r, code: a, message: o } = await this.req.get("community/comment", zr, {
2242
2251
  ...n,
2243
2252
  params: { comment_id: t }
2244
2253
  });
@@ -2257,7 +2266,7 @@ class pa {
2257
2266
  const { data: r, code: a, message: o } = await this.req.post(
2258
2267
  "community/comment",
2259
2268
  c(t),
2260
- zr,
2269
+ Zr,
2261
2270
  n
2262
2271
  );
2263
2272
  return r ?? {
@@ -2271,7 +2280,7 @@ class pa {
2271
2280
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2272
2281
  */
2273
2282
  async getReplies(t, n) {
2274
- const { data: r } = await this.req.get("community/replies", Qr, {
2283
+ const { data: r } = await this.req.get("community/replies", Mr, {
2275
2284
  ...n,
2276
2285
  params: c({ max_results: 20, ...t })
2277
2286
  });
@@ -2286,7 +2295,7 @@ class pa {
2286
2295
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2287
2296
  */
2288
2297
  async getReply(t, n) {
2289
- const { data: r, code: a, message: o } = await this.req.get("community/reply", Br, {
2298
+ const { data: r, code: a, message: o } = await this.req.get("community/reply", Kr, {
2290
2299
  ...n,
2291
2300
  params: { reply_id: t }
2292
2301
  });
@@ -2305,7 +2314,7 @@ class pa {
2305
2314
  const { data: r, code: a, message: o } = await this.req.post(
2306
2315
  "community/reply",
2307
2316
  c(t),
2308
- Mr,
2317
+ Hr,
2309
2318
  n
2310
2319
  );
2311
2320
  return r ?? {
@@ -2356,7 +2365,7 @@ class pa {
2356
2365
  */
2357
2366
  async getMediaPresignedUrl(t, n) {
2358
2367
  await this.token.autoLogin();
2359
- const { data: r } = await this.req.get("community/media-presign-url", Jr, {
2368
+ const { data: r } = await this.req.get("community/media-presign-url", Xr, {
2360
2369
  ...n,
2361
2370
  params: t
2362
2371
  });
@@ -2371,7 +2380,7 @@ class pa {
2371
2380
  */
2372
2381
  async getNotifications(t, n) {
2373
2382
  await this.token.autoLogin();
2374
- const { data: r } = await this.req.get("community/notifications", Zr, {
2383
+ const { data: r } = await this.req.get("community/notifications", Yr, {
2375
2384
  ...n,
2376
2385
  params: c({ max_results: 20, ...t })
2377
2386
  });
@@ -2389,7 +2398,7 @@ class pa {
2389
2398
  if (!await this.token.autoLogin()) return null;
2390
2399
  const { data: n } = await this.req.get(
2391
2400
  "community/unread-notifications-count",
2392
- Xr,
2401
+ Wr,
2393
2402
  t
2394
2403
  );
2395
2404
  return n;
@@ -2405,17 +2414,17 @@ class pa {
2405
2414
  return r;
2406
2415
  }
2407
2416
  }
2408
- const Yr = s({
2417
+ const ea = s({
2409
2418
  nonce_str: e.string(),
2410
2419
  timestamp: e.number(),
2411
2420
  signature: e.string()
2412
2421
  });
2413
- var Wr = /* @__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))(Wr || {});
2414
- function S(i) {
2422
+ var ta = /* @__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))(ta || {});
2423
+ function L(i) {
2415
2424
  return k(i, "open_id", "union_id", "weixin_token");
2416
2425
  }
2417
2426
  const H = "wx_login_cache";
2418
- class _a {
2427
+ class ya {
2419
2428
  token;
2420
2429
  $appid;
2421
2430
  req;
@@ -2450,7 +2459,7 @@ class _a {
2450
2459
  if (!t)
2451
2460
  return null;
2452
2461
  const n = ye(t);
2453
- return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2462
+ return L(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2454
2463
  }
2455
2464
  /**
2456
2465
  * 小程序页面微信静默登录,获取 weixinToken / open_id / union_id。
@@ -2478,7 +2487,7 @@ class _a {
2478
2487
  const r = await we(), { data: a, code: o, message: d } = await this.req.post(
2479
2488
  "weixin/login",
2480
2489
  { code: r, appid: this.appid },
2481
- S,
2490
+ L,
2482
2491
  { ...t, message: !1 }
2483
2492
  );
2484
2493
  return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(H, JSON.stringify(a))), a ?? {
@@ -2503,7 +2512,7 @@ class _a {
2503
2512
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2504
2513
  */
2505
2514
  async webLogin(t = "snsapi_userinfo", n) {
2506
- const r = L("code"), a = Date.now(), o = +L("state");
2515
+ const r = S("code"), a = Date.now(), o = +S("state");
2507
2516
  if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
2508
2517
  const me = G(["code", "state"]);
2509
2518
  location.replace(
@@ -2522,7 +2531,7 @@ class _a {
2522
2531
  data: p,
2523
2532
  code: le,
2524
2533
  message: ue
2525
- } = await this.req.post("weixin/login", { code: r, appid: this.appid }, S, n);
2534
+ } = await this.req.post("weixin/login", { code: r, appid: this.appid }, L, n);
2526
2535
  return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? {
2527
2536
  message: ue,
2528
2537
  error: le
@@ -2555,7 +2564,7 @@ class _a {
2555
2564
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2556
2565
  */
2557
2566
  async getJSSDKConfig(t) {
2558
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", Yr, {
2567
+ const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ea, {
2559
2568
  ...t,
2560
2569
  params: {
2561
2570
  appid: this.appid,
@@ -2572,15 +2581,15 @@ class _a {
2572
2581
  }
2573
2582
  export {
2574
2583
  ce as AntispamValidator,
2575
- ra as AuthToken,
2576
- Bn as CandidateVoteValidator,
2584
+ oa as AuthToken,
2585
+ Kn as CandidateVoteValidator,
2577
2586
  ae as CashbackEngagementDataValidator,
2578
- vn as ClaimActivationKeyEngagementDataValidator,
2587
+ Cn as ClaimActivationKeyEngagementDataValidator,
2579
2588
  ct as ClaimRewardStatus,
2580
2589
  E as ClaimRewardStatusValidator,
2581
- er as ClaimedItemValidator,
2590
+ nr as ClaimedItemValidator,
2582
2591
  Z as ClubAddressValidator,
2583
- oa as ClubApi,
2592
+ sa as ClubApi,
2584
2593
  X as ClubBenefitSummaryValidator,
2585
2594
  Ge as ClubBenefitValidator,
2586
2595
  Te as ClubCreditChangeScene,
@@ -2593,26 +2602,26 @@ export {
2593
2602
  z as ClubItemTypeValidator,
2594
2603
  Ee as ClubPlayerValidator,
2595
2604
  Y as ClubProductValidator,
2596
- Se as ClubRedemptionStatus,
2597
- Le as ClubRedemptionStatusValidator,
2605
+ Le as ClubRedemptionStatus,
2606
+ Se as ClubRedemptionStatusValidator,
2598
2607
  Ie as ClubUserCreditValidator,
2599
2608
  De as ClubUserProfileValidator,
2600
- Hn as CommentEngagementValidator,
2609
+ Jn as CommentEngagementValidator,
2601
2610
  w as CommentValidator,
2602
- pa as CommunityApi,
2603
- Mn as ConversationValidator,
2611
+ ba as CommunityApi,
2612
+ Hn as ConversationValidator,
2604
2613
  We as EngageAccountType,
2605
2614
  et as EngageAccountTypeValidator,
2606
- Wn as EngageResponseValidator,
2607
- Jn as EngageRewardValidator,
2608
- da as EventApi,
2609
- kn as EventConfigValidator,
2615
+ tr as EngageResponseValidator,
2616
+ Xn as EngageRewardValidator,
2617
+ pa as EventApi,
2618
+ Vn as EventConfigValidator,
2610
2619
  Rt as EventFeatureConfigOfCashbackValidator,
2611
2620
  Tt as EventFeatureConfigOfCheckInValidator,
2612
2621
  xt as EventFeatureConfigOfClaimActivationKeyValidator,
2613
- Lt as EventFeatureConfigOfClaimRewardsValidator,
2622
+ St as EventFeatureConfigOfClaimRewardsValidator,
2614
2623
  Et as EventFeatureConfigOfCommentValidator,
2615
- Ut as EventFeatureConfigOfFollowValidator,
2624
+ $t as EventFeatureConfigOfFollowValidator,
2616
2625
  It as EventFeatureConfigOfGiftCodeValidator,
2617
2626
  Gt as EventFeatureConfigOfInviteValidator,
2618
2627
  Nt as EventFeatureConfigOfInvitedRegisterValidator,
@@ -2625,10 +2634,11 @@ export {
2625
2634
  an as EventFeatureConfigOfSubscribeValidator,
2626
2635
  sn as EventFeatureConfigOfSurveyValidator,
2627
2636
  ln as EventFeatureConfigOfTeamValidator,
2637
+ kn as EventFeatureConfigOfUgcLikeValidator,
2628
2638
  mn as EventFeatureConfigOfUgcValidator,
2629
2639
  yn as EventFeatureConfigOfVote2Validator,
2630
2640
  pn as EventFeatureConfigOfVoteValidator,
2631
- wn as EventFeatureConfigValidator,
2641
+ vn as EventFeatureConfigValidator,
2632
2642
  tt as EventPeriodType,
2633
2643
  nt as EventPeriodTypeValidator,
2634
2644
  y as EventRewardItemConfigValidator,
@@ -2637,100 +2647,100 @@ export {
2637
2647
  Vt as FeatureRewardValidator,
2638
2648
  l as FeatureType,
2639
2649
  rt as FeatureTypeValidator,
2640
- vr as ForumMode,
2641
- Vr as ForumModeValidator,
2650
+ Cr as ForumMode,
2651
+ Rr as ForumModeValidator,
2642
2652
  se as ForumValidator,
2643
2653
  v as GamerItemType,
2644
2654
  W as GamerItemTypeValidator,
2645
2655
  Ve as Gender,
2646
2656
  Ce as GenderValidator,
2647
- Vn as GiftCodeEngagementDataValidator,
2648
- Cn as InviteEngagementDataValidator,
2657
+ Rn as GiftCodeEngagementDataValidator,
2658
+ jn as InviteEngagementDataValidator,
2649
2659
  gt as LotteryDrawAction,
2650
- ua as LotteryDrawActionValidator,
2651
- qn as LotteryDrawEngagementDataValidator,
2652
- Rn as LotteryEngagementDataValidator,
2660
+ da as LotteryDrawActionValidator,
2661
+ Ln as LotteryDrawEngagementDataValidator,
2662
+ Tn as LotteryEngagementDataValidator,
2653
2663
  f as LotteryTicketStatus,
2654
- ca as LotteryTicketStatusValidator,
2664
+ ua as LotteryTicketStatusValidator,
2655
2665
  _ as NotificationBaseValidator,
2656
- Rr as NotificationCategory,
2657
- ga as NotificationCategoryValidator,
2658
- Er as NotificationCommentReplyValidator,
2659
- $r as NotificationCommentValidator,
2666
+ Tr as NotificationCategory,
2667
+ _a as NotificationCategoryValidator,
2668
+ $r as NotificationCommentReplyValidator,
2669
+ Fr as NotificationCommentValidator,
2660
2670
  R as NotificationPayloadCommentValidator,
2661
2671
  I as NotificationPayloadPostValidator,
2662
2672
  A as NotificationPayloadReplyValidator,
2663
- xr as NotificationPayloadSystemValidator,
2664
- Pr as NotificationPostCommentValidator,
2665
- Lr as NotificationPostValidator,
2666
- Ur as NotificationReplyRepliedValidator,
2667
- Fr as NotificationReplyValidator,
2668
- Sr as NotificationSystemValidator,
2673
+ Sr as NotificationPayloadSystemValidator,
2674
+ Ur as NotificationPostCommentValidator,
2675
+ Er as NotificationPostValidator,
2676
+ Dr as NotificationReplyRepliedValidator,
2677
+ Ir as NotificationReplyValidator,
2678
+ Pr as NotificationSystemValidator,
2669
2679
  m as NotificationType,
2670
- jr as NotificationTypeValidator,
2671
- Dr as NotificationValidator,
2680
+ qr as NotificationTypeValidator,
2681
+ Ar as NotificationValidator,
2672
2682
  Fe as PlayerRoleCardValidator,
2673
2683
  J as PlayerRoleValidator,
2674
- Cr as PostStatus,
2684
+ jr as PostStatus,
2675
2685
  ie as PostStatusValidator,
2676
2686
  D as PostValidator,
2677
- xn as PreregisterEngagementDataValidator,
2678
- qr as PresignedUrlResponseValidator,
2679
- Sn as QuestEngagementDataValidator,
2687
+ Sn as PreregisterEngagementDataValidator,
2688
+ Lr as PresignedUrlResponseValidator,
2689
+ Pn as QuestEngagementDataValidator,
2680
2690
  at as QuestObjective,
2681
2691
  te as QuestObjectiveValidator,
2682
2692
  pt as QuestProgressAlgorithm,
2683
2693
  _t as QuestProgressAlgorithmValidator,
2684
- Ln as QuestProgressValidator,
2685
- aa as RedeemParamsValidator,
2694
+ En as QuestProgressValidator,
2695
+ ia as RedeemParamsValidator,
2686
2696
  Qe as RedemptionValidator,
2687
2697
  vt as RegularRewardValidator,
2688
- Tr as ReplyToValidator,
2698
+ xr as ReplyToValidator,
2689
2699
  C as ReplyValidator,
2690
- ia as RewardItemType,
2700
+ ca as RewardItemType,
2691
2701
  ee as RewardItemTypeValidator,
2692
2702
  lt as RewardSource,
2693
- $ as RewardSourceValidator,
2703
+ U as RewardSourceValidator,
2694
2704
  g as RewardStatus,
2695
2705
  st as RewardStatusSuffix,
2696
2706
  ne as RewardStatusSuffixValidator,
2697
- sa as RewardStatusValidator,
2698
- zn as RewardValidator,
2699
- Ue as RoleBaseInfoValidator,
2700
- $e as ServerBaseInfoValidator,
2701
- Pn as ShareEngagementDataValidator,
2702
- $n as SurveyEngagementDataValidator,
2707
+ la as RewardStatusValidator,
2708
+ Zn as RewardValidator,
2709
+ $e as RoleBaseInfoValidator,
2710
+ Ue as ServerBaseInfoValidator,
2711
+ Un as ShareEngagementDataValidator,
2712
+ Fn as SurveyEngagementDataValidator,
2703
2713
  dt as TeamAction,
2704
- la as TeamActionValidator,
2705
- Fn as TeamEngagementDataValidator,
2706
- Un as TeamEngagementValidator,
2707
- ma as TeamMemberValidator,
2714
+ ma as TeamActionValidator,
2715
+ In as TeamEngagementDataValidator,
2716
+ Dn as TeamEngagementValidator,
2717
+ ga as TeamMemberValidator,
2708
2718
  ut as TeamVisibility,
2709
2719
  mt as TeamVisibilityValidator,
2710
2720
  F as TopicValidator,
2711
- Dn as UgcEngagementDataValidator,
2712
- Gn as UgcLeaderboardResponseValidator,
2713
- In as UgcRecordResponseValidator,
2721
+ An as UgcEngagementDataValidator,
2722
+ Nn as UgcLeaderboardResponseValidator,
2723
+ Gn as UgcRecordResponseValidator,
2714
2724
  ft as UgcReviewStatus,
2715
2725
  wt as UgcReviewStatusValidator,
2716
2726
  ht as UgcSocialMedia,
2717
2727
  re as UgcSocialMediaValidator,
2718
- An as UgcUploadImageValidator,
2719
- U as UserEngagementDataValidator,
2720
- Zn as UserEngagementValidator,
2721
- Yn as UserFeatureStatusValidator,
2728
+ On as UgcUploadImageValidator,
2729
+ $ as UserEngagementDataValidator,
2730
+ Yn as UserEngagementValidator,
2731
+ er as UserFeatureStatusValidator,
2722
2732
  V as UserRewardValidator,
2723
- Xn as VerifyMobileResultValidator,
2724
- Qn as Vote2ClaimRewardsResponseValidator,
2725
- Nn as Vote2EngagementDataValidator,
2733
+ Wn as VerifyMobileResultValidator,
2734
+ Mn as Vote2ClaimRewardsResponseValidator,
2735
+ Bn as Vote2EngagementDataValidator,
2726
2736
  bt as Vote2RewardType,
2727
2737
  yt as Vote2RewardTypeValidator,
2728
- On as VoteEngagementDataValidator,
2738
+ Qn as VoteEngagementDataValidator,
2729
2739
  ot as VoteOptionSource,
2730
2740
  it as VoteOptionSourceValidator,
2731
- _a as WeixinApi,
2732
- En as WeixinSubscribeEngagementDataValidator,
2733
- Wr as WeixinWebLoginErrorCode,
2734
- Kn as ZeroChatGPTDataValidator,
2735
- Yr as isWeixinSignResponse
2741
+ ya as WeixinApi,
2742
+ $n as WeixinSubscribeEngagementDataValidator,
2743
+ ta as WeixinWebLoginErrorCode,
2744
+ zn as ZeroChatGPTDataValidator,
2745
+ ea as isWeixinSignResponse
2736
2746
  };