@seayoo-web/gamer-api 2.15.3 → 2.15.5

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 S, pruneObject as c, omitFields as U, parseJSON as ye, removePara as G } 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 U, pruneObject as c, omitFields as P, 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";
@@ -7,7 +7,7 @@ function he(i) {
7
7
  function fe(i) {
8
8
  return h(i, "gamer_token", "game_id") && typeof i.gamer_token == "string" && typeof i.game_id == "string";
9
9
  }
10
- function O(i) {
10
+ function N(i) {
11
11
  return h(i);
12
12
  }
13
13
  const j = ge("GamerApiSDK");
@@ -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 = S("gamer_token");
93
+ const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = U("gamer_token");
94
94
  (de() || a && o) && (this.$gamerToken = o);
95
95
  }
96
96
  this.$gamerToken || this.loadGamerTokenCache();
@@ -224,7 +224,7 @@ class ba {
224
224
  */
225
225
  async getSession() {
226
226
  if (!await this.autoLogin()) return null;
227
- const { data: t } = await this.req.get("session", O, {
227
+ const { data: t } = await this.req.get("session", N, {
228
228
  message: !1
229
229
  });
230
230
  return t;
@@ -236,7 +236,7 @@ class ba {
236
236
  */
237
237
  async authRealName(t) {
238
238
  if (!await this.autoLogin()) return null;
239
- const { data: n } = await this.req.post("auth-real-name", c(t), O);
239
+ const { data: n } = await this.req.post("auth-real-name", c(t), N);
240
240
  return n;
241
241
  }
242
242
  }
@@ -399,7 +399,7 @@ const Ce = {
399
399
  updated_at: e.number(),
400
400
  redeemable_quantity: e.number().optional()
401
401
  }).lock(), Oe = e.object({
402
- ...U(X.shape, "tag"),
402
+ ...P(X.shape, "tag"),
403
403
  product: Y.clone().optional()
404
404
  }).lock(), ya = e.union(
405
405
  e.object({
@@ -436,7 +436,7 @@ 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), N = s({ player: Ee }), Ke = s({ roles: e.array(J) }), T = s({ role_card: Ie }), Q = e.guard(De), B = 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(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({
440
440
  credit_logs: e.array(Ge),
441
441
  next_token: e.string().optional()
442
442
  }), Ze = s({ products: e.array(Y) }), Xe = s({ benefits: e.array(X) }), Ye = s({ benefit: Oe }), We = s({
@@ -470,7 +470,7 @@ class ha {
470
470
  */
471
471
  async getCurrentPlayer(t) {
472
472
  await this.token.autoLogin();
473
- const { data: n, code: r, message: a } = await this.req.get("club/current-player", N, t);
473
+ const { data: n, code: r, message: a } = await this.req.get("club/current-player", Q, t);
474
474
  return n?.player ?? {
475
475
  message: a,
476
476
  error: r
@@ -486,7 +486,7 @@ class ha {
486
486
  const { data: n, code: r, message: a } = await this.req.post(
487
487
  "club/link-player",
488
488
  { id_token: this.token.idToken },
489
- N,
489
+ Q,
490
490
  t
491
491
  );
492
492
  return n?.player ?? {
@@ -547,7 +547,7 @@ class ha {
547
547
  */
548
548
  async getUserProfile(t, n) {
549
549
  await this.token.autoLogin();
550
- const { data: r } = await this.req.get("club/user-profile", Q, {
550
+ const { data: r } = await this.req.get("club/user-profile", B, {
551
551
  ...n,
552
552
  params: { member_id: t }
553
553
  });
@@ -562,7 +562,7 @@ class ha {
562
562
  if (Object.keys(t).length === 0)
563
563
  return { error: "OptionIsEmpty", message: "请提供需要修改的信息" };
564
564
  await this.token.autoLogin();
565
- const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t, Q, n);
565
+ const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t, B, n);
566
566
  return r ?? {
567
567
  message: o,
568
568
  error: a
@@ -588,7 +588,7 @@ class ha {
588
588
  const { data: r, code: a, message: o } = await this.req.post(
589
589
  "/club/add-address",
590
590
  c(t),
591
- B,
591
+ M,
592
592
  n
593
593
  );
594
594
  return r ?? {
@@ -606,7 +606,7 @@ class ha {
606
606
  const { data: r, code: a, message: o } = await this.req.post(
607
607
  "club/update-address",
608
608
  c(t),
609
- B,
609
+ M,
610
610
  n
611
611
  );
612
612
  return r ?? {
@@ -856,7 +856,7 @@ const v = {
856
856
  UserSubmission: "user_submission",
857
857
  /** 投票入围 */
858
858
  Shortlisted: "shortlisted"
859
- }, ct = e.string().enum(st).lock(), d = {
859
+ }, ct = e.string().enum(st).lock(), g = {
860
860
  /** 未获得奖励 */
861
861
  Ineligible: "ineligible",
862
862
  /** 奖励未领取 */
@@ -867,32 +867,32 @@ const v = {
867
867
  Failed: "failed",
868
868
  /** 奖励已发货 */
869
869
  Delivered: "delivered"
870
- }, wa = e.string().enum(d).lock(), ut = {
870
+ }, wa = e.string().enum(g).lock(), ut = {
871
871
  /** 奖励未领取 */
872
- Unclaimed: d.Unclaimed,
872
+ Unclaimed: g.Unclaimed,
873
873
  /** 奖励已领取 */
874
- Received: d.Received,
874
+ Received: g.Received,
875
875
  /** 奖励发放失败 */
876
- Failed: d.Failed,
876
+ Failed: g.Failed,
877
877
  /** 奖励已发货 */
878
- Delivered: d.Delivered
878
+ Delivered: g.Delivered
879
879
  }, ne = e.string().enum(ut).lock(), lt = {
880
880
  /** 未获得奖励 */
881
- Ineligible: d.Ineligible,
881
+ Ineligible: g.Ineligible,
882
882
  /** 奖励未领取 */
883
- Unclaimed: d.Unclaimed,
883
+ Unclaimed: g.Unclaimed,
884
884
  /** 奖励已领取 */
885
- Received: d.Received,
885
+ Received: g.Received,
886
886
  /** 奖励发放失败 */
887
- Failed: d.Failed,
887
+ Failed: g.Failed,
888
888
  /** 奖励已发货 */
889
- Delivered: d.Delivered
890
- }, P = e.string().enum(lt).lock(), mt = {
889
+ Delivered: g.Delivered
890
+ }, E = e.string().enum(lt).lock(), mt = {
891
891
  /** 玩法产出奖励 */
892
892
  Output: "output",
893
893
  /** 玩法参与奖励 */
894
894
  Engage: "engage"
895
- }, E = e.string().enum(mt).lock(), dt = {
895
+ }, $ = e.string().enum(mt).lock(), dt = {
896
896
  /** 私有队伍 */
897
897
  Private: "private",
898
898
  /** 公开队伍 */
@@ -1048,7 +1048,7 @@ const v = {
1048
1048
  }), Qt = u.InvitedRegister, Bt = e.object({
1049
1049
  ...l.shape,
1050
1050
  feature_type: e.string().enum(Qt)
1051
- }), Mt = e.string().enum(U(v, "GiftCode", "LotteryTicket")), Kt = u.Lottery, Ht = e.object({
1051
+ }), Mt = e.string().enum(P(v, "GiftCode", "LotteryTicket")), Kt = u.Lottery, Ht = e.object({
1052
1052
  reward_item_id: e.number(),
1053
1053
  reward_item_name: e.string(),
1054
1054
  reward_item_type: Mt,
@@ -1245,14 +1245,14 @@ const v = {
1245
1245
  }), R = e.object({
1246
1246
  reward_id: e.number(),
1247
1247
  reward_item_id: e.number(),
1248
- reward_source: E,
1248
+ reward_source: $,
1249
1249
  reward_item_name: e.string(),
1250
1250
  reward_item_type: W,
1251
1251
  reward_item_icon_url: e.string(),
1252
1252
  reward_item_desc: e.string().optional(),
1253
1253
  reward_item_rating: e.number(),
1254
1254
  reward_amount: e.number(),
1255
- reward_status: P,
1255
+ reward_status: E,
1256
1256
  event_id: e.number(),
1257
1257
  event_name: e.string(),
1258
1258
  feature_id: e.number(),
@@ -1268,7 +1268,7 @@ const v = {
1268
1268
  }),
1269
1269
  e.object({
1270
1270
  ticket: e.string(),
1271
- status: e.string().enum(U(w, "Unknown", "Pending")),
1271
+ status: e.string().enum(P(w, "Unknown", "Pending")),
1272
1272
  created_at: e.number(),
1273
1273
  reward: R
1274
1274
  })
@@ -1409,7 +1409,7 @@ const v = {
1409
1409
  comment: e.string(),
1410
1410
  video_note: e.number(),
1411
1411
  created_at: e.number()
1412
- }), $ = e.union(
1412
+ }), F = e.union(
1413
1413
  Fn,
1414
1414
  Un,
1415
1415
  Qn,
@@ -1437,13 +1437,13 @@ const v = {
1437
1437
  reward_item_type: ee,
1438
1438
  reward_count: e.number(),
1439
1439
  reward_status: ne,
1440
- reward_source: E,
1440
+ reward_source: $,
1441
1441
  reward_item_name: e.string(),
1442
1442
  reward_item_icon_url: e.string(),
1443
1443
  reward_item_desc: e.string().optional(),
1444
1444
  reward_item_rating: e.number(),
1445
1445
  receive_time: e.number(),
1446
- extra_data: e.union(...$.validators, e.record(e.unknown())).satisfies().optional()
1446
+ extra_data: e.union(...F.validators, e.record(e.unknown())).satisfies().optional()
1447
1447
  }), or = e.object({
1448
1448
  reward_id: e.number(),
1449
1449
  reward_item_id: e.number(),
@@ -1454,7 +1454,7 @@ const v = {
1454
1454
  reward_item_rating: e.number(),
1455
1455
  reward_amount: e.number(),
1456
1456
  reward_status: ne,
1457
- reward_source: E,
1457
+ reward_source: $,
1458
1458
  extra_data: e.record(e.unknown()).optional()
1459
1459
  }), ir = e.object({
1460
1460
  engagement_id: e.number(),
@@ -1462,7 +1462,7 @@ const v = {
1462
1462
  event_id: e.number(),
1463
1463
  feature_id: e.number(),
1464
1464
  sequence: e.number(),
1465
- data: $.clone().optional(),
1465
+ data: F.clone().optional(),
1466
1466
  server_id: e.string().optional(),
1467
1467
  role_id: e.string().optional(),
1468
1468
  created_at: e.number(),
@@ -1483,13 +1483,13 @@ const v = {
1483
1483
  engagement_id: e.number(),
1484
1484
  sequence: e.number(),
1485
1485
  feature_id: e.number(),
1486
- data: $.clone().optional()
1486
+ data: F.clone().optional()
1487
1487
  }).optional(),
1488
1488
  rewards: e.array(or).optional(),
1489
1489
  scan: e.bool().optional()
1490
1490
  }), lr = e.object({
1491
1491
  reward_id: e.number(),
1492
- reward_status: P
1492
+ reward_status: E
1493
1493
  }), mr = e.guard(qn), dr = e.guard(sr), x = s({ count: e.number() }), gr = s({ first_visit: e.bool() }), pr = s({
1494
1494
  engagements: e.union(e.array(rr), e.array(Bn))
1495
1495
  }), _r = s({
@@ -1504,7 +1504,7 @@ const v = {
1504
1504
  }), wr = s({
1505
1505
  rewards: e.array(R)
1506
1506
  }), kr = s({
1507
- reward_status: P
1507
+ reward_status: E
1508
1508
  }), vr = s({
1509
1509
  user_rewards: e.array(R),
1510
1510
  next_token: e.string().optional()
@@ -1520,7 +1520,7 @@ const v = {
1520
1520
  e.object({
1521
1521
  candidate_votes: e.array(er)
1522
1522
  })
1523
- ), Lr = e.guard(ae), M = e.guard(Hn), Sr = e.guard(zn), Ur = e.guard(Jn), Pr = e.guard(Zn), Er = e.guard(Gn);
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
1524
  class Va {
1525
1525
  token;
1526
1526
  event = 0;
@@ -1672,7 +1672,7 @@ class Va {
1672
1672
  */
1673
1673
  async engage(t, n, r, a) {
1674
1674
  await this.token.autoLogin();
1675
- const { data: o, code: g, message: p } = await this.req.post(
1675
+ const { data: o, code: d, message: p } = await this.req.post(
1676
1676
  `event/${this.event}/engage`,
1677
1677
  c({
1678
1678
  feature_id: t,
@@ -1684,7 +1684,7 @@ class Va {
1684
1684
  );
1685
1685
  return o ?? {
1686
1686
  message: p,
1687
- error: g
1687
+ error: d
1688
1688
  };
1689
1689
  }
1690
1690
  /**
@@ -1956,7 +1956,7 @@ class Va {
1956
1956
  */
1957
1957
  async getUgcRecord(t, n) {
1958
1958
  if (!await this.token.autoLogin()) return null;
1959
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", M, {
1959
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", L, {
1960
1960
  ...n,
1961
1961
  params: {
1962
1962
  max_results: 20,
@@ -1997,14 +1997,14 @@ class Va {
1997
1997
  */
1998
1998
  async ugcUploadImage(t, n, r) {
1999
1999
  if (!await this.token.autoLogin()) return null;
2000
- const { data: a, code: o, message: g } = await this.req.post(
2000
+ const { data: a, code: o, message: d } = await this.req.post(
2001
2001
  "event/ugc/upload-image",
2002
2002
  { feature_id: t, ...n, event_id: this.event },
2003
2003
  Ur,
2004
2004
  r
2005
2005
  );
2006
2006
  return a || {
2007
- message: g,
2007
+ message: d,
2008
2008
  error: o
2009
2009
  };
2010
2010
  }
@@ -2014,8 +2014,7 @@ class Va {
2014
2014
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=WzvcAPjHAh
2015
2015
  */
2016
2016
  async getUgcRecommendation(t, n) {
2017
- if (!await this.token.autoLogin()) return null;
2018
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", M, {
2017
+ const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", L, {
2019
2018
  ...n,
2020
2019
  params: {
2021
2020
  feature_id: t,
@@ -2027,6 +2026,26 @@ class Va {
2027
2026
  error: a
2028
2027
  };
2029
2028
  }
2029
+ /**
2030
+ * 用于查询指定活动玩法下,所有已被接收 (review_status = accepted) 的用户投稿内容列表,默认按照投稿时间倒序。
2031
+ *
2032
+ * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=VRYN6d3rbd
2033
+ */
2034
+ async getUgcs(t, n, r) {
2035
+ const { data: a, code: o, message: d } = await this.req.get("event/ugc/ugcs", L, {
2036
+ ...r,
2037
+ params: {
2038
+ event_id: this.event,
2039
+ feature_id: t,
2040
+ max_results: 20,
2041
+ ...n
2042
+ }
2043
+ });
2044
+ return a || {
2045
+ message: d,
2046
+ error: o
2047
+ };
2048
+ }
2030
2049
  /**
2031
2050
  * 获取指定活动玩法的 UGC 投稿排行榜数据
2032
2051
  *
@@ -2125,14 +2144,14 @@ const $r = {
2125
2144
  sort: e.number(),
2126
2145
  mode: Fr,
2127
2146
  member_ids: e.array(e.number())
2128
- }).lock(), F = e.object({
2147
+ }).lock(), I = e.object({
2129
2148
  topic_id: e.number(),
2130
2149
  cover_url: e.string(),
2131
2150
  name: e.string(),
2132
2151
  description: e.string(),
2133
2152
  tags: e.array(e.string()),
2134
2153
  post_num: e.number()
2135
- }).lock(), I = e.object({
2154
+ }).lock(), D = e.object({
2136
2155
  post_id: e.number(),
2137
2156
  forum: se,
2138
2157
  posted_by: e.string(),
@@ -2146,7 +2165,7 @@ const $r = {
2146
2165
  comments_num: e.number(),
2147
2166
  liked: e.bool(),
2148
2167
  image_urls: e.array(e.string()),
2149
- topics: e.array(F),
2168
+ topics: e.array(I),
2150
2169
  event_ids: e.array(e.number()),
2151
2170
  is_pinned: e.bool(),
2152
2171
  is_highlighted: e.bool(),
@@ -2210,7 +2229,7 @@ const $r = {
2210
2229
  }).lock(), Nr = e.object({
2211
2230
  system_message_subject: e.string(),
2212
2231
  system_message_content: e.string()
2213
- }).lock(), D = e.object({
2232
+ }).lock(), A = e.object({
2214
2233
  post_id: e.number(),
2215
2234
  post_subject: e.string(),
2216
2235
  post_summary: e.string(),
@@ -2218,7 +2237,7 @@ const $r = {
2218
2237
  }).lock(), V = e.object({
2219
2238
  comment_id: e.number(),
2220
2239
  comment_content: e.string()
2221
- }).lock(), A = e.object({
2240
+ }).lock(), G = e.object({
2222
2241
  reply_id: e.number(),
2223
2242
  reply_content: e.string()
2224
2243
  }).lock(), Qr = e.object({
@@ -2227,7 +2246,7 @@ const $r = {
2227
2246
  notification_type: e.string().enum(m.System)
2228
2247
  }), Br = e.object({
2229
2248
  ...y.shape,
2230
- ...D.shape,
2249
+ ...A.shape,
2231
2250
  notification_type: e.string().enum(
2232
2251
  m.PostPinned,
2233
2252
  m.PostHighlighted,
@@ -2236,29 +2255,29 @@ const $r = {
2236
2255
  )
2237
2256
  }), Mr = e.object({
2238
2257
  ...y.shape,
2239
- ...D.shape,
2258
+ ...A.shape,
2240
2259
  ...V.shape,
2241
2260
  notification_type: e.string().enum(m.PostCommented)
2242
2261
  }), Kr = e.object({
2243
2262
  ...y.shape,
2244
2263
  ...V.shape,
2245
- ...A.shape,
2264
+ ...G.shape,
2246
2265
  notification_type: e.string().enum(m.CommentReplied)
2247
2266
  }), Hr = e.object({
2248
2267
  ...y.shape,
2249
2268
  ...V.shape,
2250
- ...D.shape,
2269
+ ...A.shape,
2251
2270
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
2252
2271
  }), zr = e.object({
2253
2272
  ...y.shape,
2254
- ...A.shape,
2273
+ ...G.shape,
2255
2274
  notification_type: e.string().enum(m.ReplyReplied),
2256
2275
  comment_id: e.number(),
2257
2276
  reply_to_reply_id: e.number(),
2258
2277
  reply_to_reply_content: e.string()
2259
2278
  }), Jr = e.object({
2260
2279
  ...y.shape,
2261
- ...A.shape,
2280
+ ...G.shape,
2262
2281
  ...V.shape,
2263
2282
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
2264
2283
  }), Zr = e.union(
@@ -2269,11 +2288,11 @@ const $r = {
2269
2288
  Hr,
2270
2289
  zr,
2271
2290
  Jr
2272
- ).satisfies().lock(), Xr = s({ forums: e.array(se) }), Yr = s({ topics: e.array(F) }), Wr = s({ topic: F }), ea = s({ post: I }), K = s({
2273
- posts: e.array(I),
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({
2292
+ posts: e.array(D),
2274
2293
  next_token: e.string().optional()
2275
2294
  }), ta = s({
2276
- post: I.clone().optional(),
2295
+ post: D.clone().optional(),
2277
2296
  antispam: ce.clone().optional()
2278
2297
  }), na = s({
2279
2298
  replies: e.array(C),
@@ -2352,13 +2371,13 @@ class Ta {
2352
2371
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
2353
2372
  */
2354
2373
  async getPinnedPosts(t, n, r, a) {
2355
- const { data: o, code: g, message: p } = await this.req.get("community/pinned-posts", K, {
2374
+ const { data: o, code: d, message: p } = await this.req.get("community/pinned-posts", K, {
2356
2375
  ...a,
2357
2376
  params: c({ forum_id: t, max_results: n, next_token: r })
2358
2377
  });
2359
2378
  return o ?? {
2360
2379
  message: p,
2361
- error: g
2380
+ error: d
2362
2381
  };
2363
2382
  }
2364
2383
  /**
@@ -2587,7 +2606,7 @@ const ma = s({
2587
2606
  signature: e.string()
2588
2607
  });
2589
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 || {});
2590
- function L(i) {
2609
+ function S(i) {
2591
2610
  return h(i, "open_id", "union_id", "weixin_token");
2592
2611
  }
2593
2612
  const H = "wx_login_cache";
@@ -2626,7 +2645,7 @@ class qa {
2626
2645
  if (!t)
2627
2646
  return null;
2628
2647
  const n = ye(t);
2629
- return L(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2648
+ return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2630
2649
  }
2631
2650
  /**
2632
2651
  * 小程序页面微信静默登录,获取 weixinToken / open_id / union_id。
@@ -2651,14 +2670,14 @@ class qa {
2651
2670
  const n = await this.getLoginCache();
2652
2671
  if (n)
2653
2672
  return n;
2654
- const r = await ke(), { data: a, code: o, message: g } = await this.req.post(
2673
+ const r = await ke(), { data: a, code: o, message: d } = await this.req.post(
2655
2674
  "weixin/login",
2656
2675
  { code: r, appid: this.appid },
2657
- L,
2676
+ S,
2658
2677
  { ...t, message: !1 }
2659
2678
  );
2660
2679
  return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(H, JSON.stringify(a))), a ?? {
2661
- message: g,
2680
+ message: d,
2662
2681
  error: o
2663
2682
  };
2664
2683
  }
@@ -2679,9 +2698,9 @@ class qa {
2679
2698
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2680
2699
  */
2681
2700
  async webLogin(t = "snsapi_userinfo", n) {
2682
- const r = S("code"), a = Date.now(), o = +S("state");
2701
+ const r = U("code"), a = Date.now(), o = +U("state");
2683
2702
  if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
2684
- const me = G(["code", "state"]);
2703
+ const me = O(["code", "state"]);
2685
2704
  location.replace(
2686
2705
  `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(me)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2687
2706
  );
@@ -2692,13 +2711,13 @@ class qa {
2692
2711
  message: "Error: " + r,
2693
2712
  error: r
2694
2713
  };
2695
- const g = G(["code", "state"]);
2696
- "replaceState" in history && history.replaceState({}, "", g);
2714
+ const d = O(["code", "state"]);
2715
+ "replaceState" in history && history.replaceState({}, "", d);
2697
2716
  const {
2698
2717
  data: p,
2699
2718
  code: ue,
2700
2719
  message: le
2701
- } = await this.req.post("weixin/login", { code: r, appid: this.appid }, L, n);
2720
+ } = await this.req.post("weixin/login", { code: r, appid: this.appid }, S, n);
2702
2721
  return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? {
2703
2722
  message: le,
2704
2723
  error: ue
@@ -2753,7 +2772,7 @@ export {
2753
2772
  ae as CashbackEngagementDataValidator,
2754
2773
  xn as ClaimActivationKeyEngagementDataValidator,
2755
2774
  lt as ClaimRewardStatus,
2756
- P as ClaimRewardStatusValidator,
2775
+ E as ClaimRewardStatusValidator,
2757
2776
  lr as ClaimedItemValidator,
2758
2777
  Z as ClubAddressValidator,
2759
2778
  ha as ClubApi,
@@ -2837,8 +2856,8 @@ export {
2837
2856
  Kr as NotificationCommentReplyValidator,
2838
2857
  Hr as NotificationCommentValidator,
2839
2858
  V as NotificationPayloadCommentValidator,
2840
- D as NotificationPayloadPostValidator,
2841
- A as NotificationPayloadReplyValidator,
2859
+ A as NotificationPayloadPostValidator,
2860
+ G as NotificationPayloadReplyValidator,
2842
2861
  Nr as NotificationPayloadSystemValidator,
2843
2862
  Mr as NotificationPostCommentValidator,
2844
2863
  Br as NotificationPostValidator,
@@ -2852,7 +2871,7 @@ export {
2852
2871
  J as PlayerRoleValidator,
2853
2872
  Ir as PostStatus,
2854
2873
  ie as PostStatusValidator,
2855
- I as PostValidator,
2874
+ D as PostValidator,
2856
2875
  Fn as PreregisterEngagementDataValidator,
2857
2876
  Or as PresignedUrlResponseValidator,
2858
2877
  In as QuestEngagementDataValidator,
@@ -2871,8 +2890,8 @@ export {
2871
2890
  fa as RewardItemType,
2872
2891
  ee as RewardItemTypeValidator,
2873
2892
  mt as RewardSource,
2874
- E as RewardSourceValidator,
2875
- d as RewardStatus,
2893
+ $ as RewardSourceValidator,
2894
+ g as RewardStatus,
2876
2895
  ut as RewardStatusSuffix,
2877
2896
  ne as RewardStatusSuffixValidator,
2878
2897
  wa as RewardStatusValidator,
@@ -2888,7 +2907,7 @@ export {
2888
2907
  Ca as TeamMemberValidator,
2889
2908
  dt as TeamVisibility,
2890
2909
  gt as TeamVisibilityValidator,
2891
- F as TopicValidator,
2910
+ I as TopicValidator,
2892
2911
  zn as UgcCountResponseValidator,
2893
2912
  Kn as UgcEngagementDataValidator,
2894
2913
  Zn as UgcLeaderboardResponseValidator,
@@ -2898,7 +2917,7 @@ export {
2898
2917
  wt as UgcSocialMedia,
2899
2918
  re as UgcSocialMediaValidator,
2900
2919
  Jn as UgcUploadImageValidator,
2901
- $ as UserEngagementDataValidator,
2920
+ F as UserEngagementDataValidator,
2902
2921
  ir as UserEngagementValidator,
2903
2922
  cr as UserFeatureStatusValidator,
2904
2923
  R as UserRewardValidator,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seayoo-web/gamer-api",
3
3
  "description": "agent for gamer api",
4
- "version": "2.15.3",
4
+ "version": "2.15.5",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -31,16 +31,16 @@
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.13.1",
33
33
  "@seayoo-web/combo-webview": "2.8.0",
34
+ "@seayoo-web/scripts": "3.1.6",
35
+ "@seayoo-web/request": "3.4.2",
34
36
  "@seayoo-web/tsconfig": "1.0.5",
35
37
  "@seayoo-web/utils": "4.1.3",
36
- "@seayoo-web/validator": "2.0.0",
37
- "@seayoo-web/request": "3.4.2",
38
- "@seayoo-web/scripts": "3.1.6"
38
+ "@seayoo-web/validator": "2.3.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@seayoo-web/combo-webview": "^2.8.0",
42
- "@seayoo-web/validator": "^2.0.0",
43
- "@seayoo-web/utils": "^4.1.3"
41
+ "@seayoo-web/utils": "^4.1.3",
42
+ "@seayoo-web/validator": "^2.3.0",
43
+ "@seayoo-web/combo-webview": "^2.8.0"
44
44
  },
45
45
  "scripts": {
46
46
  "prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
@@ -31,7 +31,6 @@ export type ClubGlobalConfig = {
31
31
  send_role_mail_rate_limit: number;
32
32
  };
33
33
  export declare const ClubGlobalConfigValidator: import("@seayoo-web/validator").ObjectValidator<ClubGlobalConfig, false, false> & {
34
- desc: never;
35
34
  plain: never;
36
35
  optional: never;
37
36
  maybeNull: never;
@@ -56,7 +55,6 @@ export type ClubPlayer = {
56
55
  level_expire_time: number;
57
56
  };
58
57
  export declare const ClubPlayerValidator: import("@seayoo-web/validator").ObjectValidator<ClubPlayer, false, false> & {
59
- desc: never;
60
58
  plain: never;
61
59
  optional: never;
62
60
  maybeNull: never;
@@ -69,7 +67,6 @@ export type ServerBaseInfo = {
69
67
  server_name: string;
70
68
  };
71
69
  export declare const ServerBaseInfoValidator: import("@seayoo-web/validator").ObjectValidator<ServerBaseInfo, false, false> & {
72
- desc: never;
73
70
  plain: never;
74
71
  optional: never;
75
72
  maybeNull: never;
@@ -82,7 +79,6 @@ export type RoleBaseInfo = {
82
79
  role_name: string;
83
80
  };
84
81
  export declare const RoleBaseInfoValidator: import("@seayoo-web/validator").ObjectValidator<RoleBaseInfo, false, false> & {
85
- desc: never;
86
82
  plain: never;
87
83
  optional: never;
88
84
  maybeNull: never;
@@ -95,7 +91,6 @@ export type PlayerRole = RoleBaseInfo & ServerBaseInfo & {
95
91
  last_login_time: number;
96
92
  };
97
93
  export declare const PlayerRoleValidator: import("@seayoo-web/validator").ObjectValidator<PlayerRole, false, false> & {
98
- desc: never;
99
94
  plain: never;
100
95
  optional: never;
101
96
  maybeNull: never;
@@ -112,7 +107,6 @@ export type PlayerRoleCard = PlayerRole & {
112
107
  kin_position?: string;
113
108
  };
114
109
  export declare const PlayerRoleCardValidator: import("@seayoo-web/validator").ObjectValidator<PlayerRoleCard, false, false> & {
115
- desc: never;
116
110
  plain: never;
117
111
  optional: never;
118
112
  maybeNull: never;
@@ -143,7 +137,6 @@ export interface Homepage {
143
137
  homepage_image_url: string;
144
138
  }
145
139
  export declare const ClubUserProfileValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserProfile, false, false> & {
146
- desc: never;
147
140
  plain: never;
148
141
  optional: never;
149
142
  maybeNull: never;
@@ -168,7 +161,6 @@ export type ClubAddress = {
168
161
  is_default: boolean;
169
162
  };
170
163
  export declare const ClubAddressValidator: import("@seayoo-web/validator").ObjectValidator<ClubAddress, false, false> & {
171
- desc: never;
172
164
  plain: never;
173
165
  optional: never;
174
166
  maybeNull: never;
@@ -185,7 +177,6 @@ export type ClubUserCredit = {
185
177
  balance_credit: number;
186
178
  };
187
179
  export declare const ClubUserCreditValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserCredit, false, false> & {
188
- desc: never;
189
180
  plain: never;
190
181
  optional: never;
191
182
  maybeNull: never;
@@ -208,7 +199,6 @@ export type ClubCreditLog = {
208
199
  metadata?: Record<string, unknown>;
209
200
  };
210
201
  export declare const ClubCreditLogValidator: import("@seayoo-web/validator").ObjectValidator<ClubCreditLog, false, false> & {
211
- desc: never;
212
202
  plain: never;
213
203
  optional: never;
214
204
  maybeNull: never;
@@ -233,7 +223,6 @@ export type ClubBenefitSummary = {
233
223
  tag: string;
234
224
  };
235
225
  export declare const ClubBenefitSummaryValidator: import("@seayoo-web/validator").ObjectValidator<ClubBenefitSummary, false, false> & {
236
- desc: never;
237
226
  plain: never;
238
227
  optional: never;
239
228
  maybeNull: never;
@@ -292,7 +281,6 @@ export type ClubProduct = {
292
281
  redeemable_quantity?: number;
293
282
  };
294
283
  export declare const ClubProductValidator: import("@seayoo-web/validator").ObjectValidator<ClubProduct, false, false> & {
295
- desc: never;
296
284
  plain: never;
297
285
  optional: never;
298
286
  maybeNull: never;
@@ -303,7 +291,6 @@ export type ClubBenefit = Omit<ClubBenefitSummary, "tag"> & {
303
291
  product?: ClubProduct;
304
292
  };
305
293
  export declare const ClubBenefitValidator: import("@seayoo-web/validator").ObjectValidator<ClubBenefit, false, false> & {
306
- desc: never;
307
294
  plain: never;
308
295
  optional: never;
309
296
  maybeNull: never;
@@ -322,7 +309,6 @@ export declare const RedeemParamsValidator: import("@seayoo-web/validator").Unio
322
309
  }, false, false>, import("@seayoo-web/validator").ObjectValidator<{
323
310
  address_id: number;
324
311
  }, false, false>], false, false> & {
325
- desc: never;
326
312
  optional: never;
327
313
  maybeNull: never;
328
314
  key: never;
@@ -348,7 +334,6 @@ export type ExtraPhysicalShipment = {
348
334
  express_number: string;
349
335
  };
350
336
  export declare const ExtraPhysicalShipmentValidator: import("@seayoo-web/validator").ObjectValidator<ExtraPhysicalShipment, false, false> & {
351
- desc: never;
352
337
  plain: never;
353
338
  optional: never;
354
339
  maybeNull: never;
@@ -360,7 +345,6 @@ export type ExtraGameReward = {
360
345
  role_name: string;
361
346
  };
362
347
  export declare const ExtraGameRewardValidator: import("@seayoo-web/validator").ObjectValidator<ExtraGameReward, false, false> & {
363
- desc: never;
364
348
  plain: never;
365
349
  optional: never;
366
350
  maybeNull: never;
@@ -9,7 +9,6 @@ export declare const Gender: {
9
9
  };
10
10
  export type Gender = ValueOf<typeof Gender>;
11
11
  export declare const GenderValidator: import("@seayoo-web/validator").StringValidator<Gender, false, false> & {
12
- desc: never;
13
12
  pattern: never;
14
13
  url: never;
15
14
  dataUri: never;
@@ -30,7 +29,6 @@ export declare const ClubCreditChangeType: {
30
29
  };
31
30
  export type ClubCreditChangeType = ValueOf<typeof ClubCreditChangeType>;
32
31
  export declare const ClubCreditChangeTypeValidator: import("@seayoo-web/validator").StringValidator<ClubCreditChangeType, false, false> & {
33
- desc: never;
34
32
  pattern: never;
35
33
  url: never;
36
34
  dataUri: never;
@@ -57,7 +55,6 @@ export declare const ClubCreditChangeScene: {
57
55
  };
58
56
  export type ClubCreditChangeScene = ValueOf<typeof ClubCreditChangeScene>;
59
57
  export declare const ClubCreditChangeSceneValidator: import("@seayoo-web/validator").StringValidator<ClubCreditChangeScene, false, false> & {
60
- desc: never;
61
58
  pattern: never;
62
59
  url: never;
63
60
  dataUri: never;
@@ -77,7 +74,6 @@ export declare const ClubItemType: {
77
74
  };
78
75
  export type ClubItemType = ValueOf<typeof ClubItemType>;
79
76
  export declare const ClubItemTypeValidator: import("@seayoo-web/validator").StringValidator<ClubItemType, false, false> & {
80
- desc: never;
81
77
  pattern: never;
82
78
  url: never;
83
79
  dataUri: never;
@@ -97,7 +93,6 @@ export declare const ClubRedemptionStatus: {
97
93
  };
98
94
  export type ClubRedemptionStatus = ValueOf<typeof ClubRedemptionStatus>;
99
95
  export declare const ClubRedemptionStatusValidator: import("@seayoo-web/validator").StringValidator<ClubRedemptionStatus, false, false> & {
100
- desc: never;
101
96
  pattern: never;
102
97
  url: never;
103
98
  dataUri: never;
@@ -17,7 +17,6 @@ export interface Forum {
17
17
  member_ids: number[];
18
18
  }
19
19
  export declare const ForumValidator: import("@seayoo-web/validator").ObjectValidator<Forum, false, false> & {
20
- desc: never;
21
20
  plain: never;
22
21
  optional: never;
23
22
  maybeNull: never;
@@ -38,7 +37,6 @@ export interface Topic {
38
37
  post_num: number;
39
38
  }
40
39
  export declare const TopicValidator: import("@seayoo-web/validator").ObjectValidator<Topic, false, false> & {
41
- desc: never;
42
40
  plain: never;
43
41
  optional: never;
44
42
  maybeNull: never;
@@ -85,7 +83,6 @@ export interface Post {
85
83
  create_time: number;
86
84
  }
87
85
  export declare const PostValidator: import("@seayoo-web/validator").ObjectValidator<Post, false, false> & {
88
- desc: never;
89
86
  plain: never;
90
87
  optional: never;
91
88
  maybeNull: never;
@@ -96,7 +93,6 @@ export interface Antispam {
96
93
  err_msg?: string;
97
94
  }
98
95
  export declare const AntispamValidator: import("@seayoo-web/validator").ObjectValidator<Antispam, true, false> & {
99
- desc: never;
100
96
  plain: never;
101
97
  optional: never;
102
98
  maybeNull: never;
@@ -115,7 +111,6 @@ export interface ReplyTo {
115
111
  avatar_url: string;
116
112
  }
117
113
  export declare const ReplyToValidator: import("@seayoo-web/validator").ObjectValidator<ReplyTo, false, false> & {
118
- desc: never;
119
114
  plain: never;
120
115
  optional: never;
121
116
  maybeNull: never;
@@ -152,7 +147,6 @@ export interface Reply {
152
147
  create_time: number;
153
148
  }
154
149
  export declare const ReplyValidator: import("@seayoo-web/validator").ObjectValidator<Reply, false, false> & {
155
- desc: never;
156
150
  plain: never;
157
151
  optional: never;
158
152
  maybeNull: never;
@@ -199,7 +193,6 @@ export interface Comment {
199
193
  replies?: Reply[];
200
194
  }
201
195
  export declare const CommentValidator: import("@seayoo-web/validator").ObjectValidator<Comment, false, false> & {
202
- desc: never;
203
196
  plain: never;
204
197
  optional: never;
205
198
  maybeNull: never;
@@ -214,7 +207,6 @@ export interface PresignedUrlResponse {
214
207
  existed: boolean;
215
208
  }
216
209
  export declare const PresignedUrlResponseValidator: import("@seayoo-web/validator").ObjectValidator<PresignedUrlResponse, false, false> & {
217
- desc: never;
218
210
  plain: never;
219
211
  optional: never;
220
212
  maybeNull: never;
@@ -237,7 +229,6 @@ export interface NotificationBase {
237
229
  origin_user_avatar_url: string;
238
230
  }
239
231
  export declare const NotificationBaseValidator: import("@seayoo-web/validator").ObjectValidator<NotificationBase, false, false> & {
240
- desc: never;
241
232
  plain: never;
242
233
  optional: never;
243
234
  maybeNull: never;
@@ -250,7 +241,6 @@ export interface NotificationPayloadSystem {
250
241
  system_message_content: string;
251
242
  }
252
243
  export declare const NotificationPayloadSystemValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadSystem, false, false> & {
253
- desc: never;
254
244
  plain: never;
255
245
  optional: never;
256
246
  maybeNull: never;
@@ -267,7 +257,6 @@ export interface NotificationPayloadPost {
267
257
  post_image_url: string;
268
258
  }
269
259
  export declare const NotificationPayloadPostValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadPost, false, false> & {
270
- desc: never;
271
260
  plain: never;
272
261
  optional: never;
273
262
  maybeNull: never;
@@ -280,7 +269,6 @@ export interface NotificationPayloadComment {
280
269
  comment_content: string;
281
270
  }
282
271
  export declare const NotificationPayloadCommentValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadComment, false, false> & {
283
- desc: never;
284
272
  plain: never;
285
273
  optional: never;
286
274
  maybeNull: never;
@@ -293,7 +281,6 @@ export interface NotificationPayloadReply {
293
281
  reply_content: string;
294
282
  }
295
283
  export declare const NotificationPayloadReplyValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadReply, false, false> & {
296
- desc: never;
297
284
  plain: never;
298
285
  optional: never;
299
286
  maybeNull: never;
@@ -336,7 +323,6 @@ export declare const NotificationReplyValidator: import("@seayoo-web/validator")
336
323
  /** 社区通知 */
337
324
  export type NotificationAll = NotificationSystem | NotificationPost | NotificationPostComment | NotificationCommentReply | NotificationComment | NotificationReplyReplied | NotificationReply;
338
325
  export declare const NotificationValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<NotificationSystem, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationPost, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationPostComment, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationCommentReply, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationComment, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationReplyReplied, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationReply, false, false>], false, false> & {
339
- desc: never;
340
326
  optional: never;
341
327
  maybeNull: never;
342
328
  key: never;
@@ -8,7 +8,6 @@ export declare const ForumMode: {
8
8
  };
9
9
  export type ForumMode = ValueOf<typeof ForumMode>;
10
10
  export declare const ForumModeValidator: import("@seayoo-web/validator").StringValidator<ForumMode, false, false> & {
11
- desc: never;
12
11
  pattern: never;
13
12
  url: never;
14
13
  dataUri: never;
@@ -31,7 +30,6 @@ export declare const PostStatus: {
31
30
  };
32
31
  export type PostStatus = ValueOf<typeof PostStatus>;
33
32
  export declare const PostStatusValidator: import("@seayoo-web/validator").StringValidator<PostStatus, false, false> & {
34
- desc: never;
35
33
  pattern: never;
36
34
  url: never;
37
35
  dataUri: never;
@@ -52,7 +50,6 @@ export declare const NotificationCategory: {
52
50
  };
53
51
  export type NotificationCategory = ValueOf<typeof NotificationCategory>;
54
52
  export declare const NotificationCategoryValidator: import("@seayoo-web/validator").StringValidator<NotificationCategory, false, false> & {
55
- desc: never;
56
53
  pattern: never;
57
54
  url: never;
58
55
  dataUri: never;
@@ -91,7 +88,6 @@ export declare const NotificationType: {
91
88
  };
92
89
  export type NotificationType = ValueOf<typeof NotificationType>;
93
90
  export declare const NotificationTypeValidator: import("@seayoo-web/validator").StringValidator<NotificationType, false, false> & {
94
- desc: never;
95
91
  pattern: never;
96
92
  url: never;
97
93
  dataUri: never;
@@ -16,7 +16,6 @@ export interface EventConfig {
16
16
  features: EventFeatureConfig[];
17
17
  }
18
18
  export declare const EventConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventConfig, false, false> & {
19
- desc: never;
20
19
  plain: never;
21
20
  optional: never;
22
21
  maybeNull: never;
@@ -17,7 +17,6 @@ export interface EventRewardItemConfig {
17
17
  reward_item_rating: number;
18
18
  }
19
19
  export declare const EventRewardItemConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventRewardItemConfig, false, false> & {
20
- desc: never;
21
20
  plain: never;
22
21
  optional: never;
23
22
  maybeNull: never;
@@ -28,7 +27,6 @@ export interface RegularReward {
28
27
  rewards: EventRewardItemConfig[];
29
28
  }
30
29
  export declare const RegularRewardValidator: import("@seayoo-web/validator").ObjectValidator<RegularReward, false, false> & {
31
- desc: never;
32
30
  plain: never;
33
31
  optional: never;
34
32
  maybeNull: never;
@@ -48,7 +46,6 @@ export declare const FeatureRewardValidator: import("@seayoo-web/validator").Uni
48
46
  feature_reward_type: "regular";
49
47
  reward_details: RegularReward[];
50
48
  }, false, false>], false, false> & {
51
- desc: never;
52
49
  optional: never;
53
50
  maybeNull: never;
54
51
  key: never;
@@ -417,7 +417,20 @@ export declare class EventApi {
417
417
  getUgcRecommendation(featureId: number, requestOptions?: IRequestOptions): Promise<import("./event.engage").UgcRecordResponse | {
418
418
  message: string;
419
419
  error: RequestInternalError | "event_not_found" | "feature_not_found";
420
- } | null>;
420
+ }>;
421
+ /**
422
+ * 用于查询指定活动玩法下,所有已被接收 (review_status = accepted) 的用户投稿内容列表,默认按照投稿时间倒序。
423
+ *
424
+ * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=VRYN6d3rbd
425
+ */
426
+ getUgcs(featureId: number, option?: {
427
+ /** 单页返回的最大数量,默认 20 */
428
+ max_results?: number;
429
+ next_token?: string;
430
+ }, requestOptions?: IRequestOptions): Promise<import("./event.engage").UgcRecordResponse | {
431
+ message: string;
432
+ error: RequestInternalError | "event_not_found" | "feature_not_found";
433
+ }>;
421
434
  /**
422
435
  * 获取指定活动玩法的 UGC 投稿排行榜数据
423
436
  *
@@ -57,7 +57,6 @@ export declare const UserEngagementDataValidator: import("@seayoo-web/validator"
57
57
  content: /*elided*/ any;
58
58
  }[];
59
59
  }, false, false>, import("@seayoo-web/validator").ObjectValidator<UgcEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<RedeemEngagementData, false, false>, import("@seayoo-web/validator").CustomValidator<EmptyObject, false, false>], false, false> & {
60
- desc: never;
61
60
  optional: never;
62
61
  maybeNull: never;
63
62
  key: never;
@@ -24,7 +24,6 @@ export type UserEngagement = {
24
24
  rewards?: Reward[];
25
25
  };
26
26
  export declare const UserEngagementValidator: import("@seayoo-web/validator").ObjectValidator<UserEngagement, false, false> & {
27
- desc: never;
28
27
  plain: never;
29
28
  optional: never;
30
29
  maybeNull: never;
@@ -26,7 +26,6 @@ export declare const GamerItemType: {
26
26
  };
27
27
  export type GamerItemType = ValueOf<typeof GamerItemType>;
28
28
  export declare const GamerItemTypeValidator: import("@seayoo-web/validator").StringValidator<GamerItemType, false, false> & {
29
- desc: never;
30
29
  pattern: never;
31
30
  url: never;
32
31
  dataUri: never;
@@ -62,7 +61,6 @@ export declare const RewardItemType: {
62
61
  };
63
62
  export type RewardItemType = GamerItemType;
64
63
  export declare const RewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<GamerItemType, false, false> & {
65
- desc: never;
66
64
  pattern: never;
67
65
  url: never;
68
66
  dataUri: never;
@@ -81,7 +79,6 @@ export declare const EngageAccountType: {
81
79
  };
82
80
  export type EngageAccountType = ValueOf<typeof EngageAccountType>;
83
81
  export declare const EngageAccountTypeValidator: import("@seayoo-web/validator").StringValidator<EngageAccountType, false, false> & {
84
- desc: never;
85
82
  pattern: never;
86
83
  url: never;
87
84
  dataUri: never;
@@ -100,7 +97,6 @@ export declare const EventPeriodType: {
100
97
  };
101
98
  export type EventPeriodType = ValueOf<typeof EventPeriodType>;
102
99
  export declare const EventPeriodTypeValidator: import("@seayoo-web/validator").StringValidator<EventPeriodType, false, false> & {
103
- desc: never;
104
100
  pattern: never;
105
101
  url: never;
106
102
  dataUri: never;
@@ -163,7 +159,6 @@ export declare const FeatureType: {
163
159
  };
164
160
  export type FeatureType = ValueOf<typeof FeatureType>;
165
161
  export declare const FeatureTypeValidator: import("@seayoo-web/validator").StringValidator<FeatureType, false, false> & {
166
- desc: never;
167
162
  pattern: never;
168
163
  url: never;
169
164
  dataUri: never;
@@ -204,7 +199,6 @@ export declare const QuestObjective: {
204
199
  };
205
200
  export type QuestObjective = ValueOf<typeof QuestObjective>;
206
201
  export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
207
- desc: never;
208
202
  pattern: never;
209
203
  url: never;
210
204
  dataUri: never;
@@ -225,7 +219,6 @@ export declare const VoteOptionSource: {
225
219
  };
226
220
  export type VoteOptionSource = ValueOf<typeof VoteOptionSource>;
227
221
  export declare const VoteOptionSourceValidator: import("@seayoo-web/validator").StringValidator<VoteOptionSource, false, false> & {
228
- desc: never;
229
222
  pattern: never;
230
223
  url: never;
231
224
  dataUri: never;
@@ -252,7 +245,6 @@ export declare const RewardStatus: {
252
245
  };
253
246
  export type RewardStatus = ValueOf<typeof RewardStatus>;
254
247
  export declare const RewardStatusValidator: import("@seayoo-web/validator").StringValidator<RewardStatus, false, false> & {
255
- desc: never;
256
248
  pattern: never;
257
249
  url: never;
258
250
  dataUri: never;
@@ -277,7 +269,6 @@ export declare const RewardStatusSuffix: {
277
269
  };
278
270
  export type RewardStatusSuffix = ValueOf<typeof RewardStatusSuffix>;
279
271
  export declare const RewardStatusSuffixValidator: import("@seayoo-web/validator").StringValidator<RewardStatusSuffix, false, false> & {
280
- desc: never;
281
272
  pattern: never;
282
273
  url: never;
283
274
  dataUri: never;
@@ -303,7 +294,6 @@ export declare const ClaimRewardStatus: {
303
294
  readonly Delivered: "delivered";
304
295
  };
305
296
  export declare const ClaimRewardStatusValidator: import("@seayoo-web/validator").StringValidator<ClaimRewardStatus, false, false> & {
306
- desc: never;
307
297
  pattern: never;
308
298
  url: never;
309
299
  dataUri: never;
@@ -323,7 +313,6 @@ export declare const RewardSource: {
323
313
  };
324
314
  export type RewardSource = ValueOf<typeof RewardSource>;
325
315
  export declare const RewardSourceValidator: import("@seayoo-web/validator").StringValidator<RewardSource, false, false> & {
326
- desc: never;
327
316
  pattern: never;
328
317
  url: never;
329
318
  dataUri: never;
@@ -342,7 +331,6 @@ export declare const TeamVisibility: {
342
331
  };
343
332
  export type TeamVisibility = ValueOf<typeof TeamVisibility>;
344
333
  export declare const TeamVisibilityValidator: import("@seayoo-web/validator").StringValidator<TeamVisibility, false, false> & {
345
- desc: never;
346
334
  pattern: never;
347
335
  url: never;
348
336
  dataUri: never;
@@ -367,7 +355,6 @@ export declare const LotteryTicketStatus: {
367
355
  };
368
356
  export type LotteryTicketStatus = ValueOf<typeof LotteryTicketStatus>;
369
357
  export declare const LotteryTicketStatusValidator: import("@seayoo-web/validator").StringValidator<LotteryTicketStatus, false, false> & {
370
- desc: never;
371
358
  pattern: never;
372
359
  url: never;
373
360
  dataUri: never;
@@ -392,7 +379,6 @@ export declare const TeamAction: {
392
379
  };
393
380
  export type TeamAction = ValueOf<typeof TeamAction>;
394
381
  export declare const TeamActionValidator: import("@seayoo-web/validator").StringValidator<TeamAction, false, false> & {
395
- desc: never;
396
382
  pattern: never;
397
383
  url: never;
398
384
  dataUri: never;
@@ -413,7 +399,6 @@ export declare const LotteryDrawAction: {
413
399
  };
414
400
  export type LotteryDrawAction = ValueOf<typeof LotteryDrawAction>;
415
401
  export declare const LotteryDrawActionValidator: import("@seayoo-web/validator").StringValidator<LotteryDrawAction, false, false> & {
416
- desc: never;
417
402
  pattern: never;
418
403
  url: never;
419
404
  dataUri: never;
@@ -432,7 +417,6 @@ export declare const QuestProgressAlgorithm: {
432
417
  };
433
418
  export type QuestProgressAlgorithm = ValueOf<typeof QuestProgressAlgorithm>;
434
419
  export declare const QuestProgressAlgorithmValidator: import("@seayoo-web/validator").StringValidator<QuestProgressAlgorithm, false, false> & {
435
- desc: never;
436
420
  pattern: never;
437
421
  url: never;
438
422
  dataUri: never;
@@ -455,7 +439,6 @@ export declare const Vote2RewardType: {
455
439
  };
456
440
  export type Vote2RewardType = (typeof Vote2RewardType)[keyof typeof Vote2RewardType];
457
441
  export declare const Vote2RewardTypeValidator: import("@seayoo-web/validator").StringValidator<Vote2RewardType, false, false> & {
458
- desc: never;
459
442
  pattern: never;
460
443
  url: never;
461
444
  dataUri: never;
@@ -484,7 +467,6 @@ export declare const UgcSocialMedia: {
484
467
  };
485
468
  export type UgcSocialMedia = ValueOf<typeof UgcSocialMedia>;
486
469
  export declare const UgcSocialMediaValidator: import("@seayoo-web/validator").StringValidator<UgcSocialMedia, false, false> & {
487
- desc: never;
488
470
  pattern: never;
489
471
  url: never;
490
472
  dataUri: never;
@@ -505,7 +487,6 @@ export declare const UgcReviewStatus: {
505
487
  };
506
488
  export type UgcReviewStatus = ValueOf<typeof UgcReviewStatus>;
507
489
  export declare const UgcReviewStatusValidator: import("@seayoo-web/validator").StringValidator<UgcReviewStatus, false, false> & {
508
- desc: never;
509
490
  pattern: never;
510
491
  url: never;
511
492
  dataUri: never;
@@ -1,4 +1,4 @@
1
- export declare const console: Pick<Console, "error" | "log" | "warn">;
1
+ export declare const console: Pick<Console, "log" | "error" | "warn">;
2
2
  /** 检测是否在 combo webview */
3
3
  export declare function inComboWebview(): boolean;
4
4
  export declare function isRootEndpoint(path: string): boolean;