@seayoo-web/gamer-api 2.0.6 → 2.0.8

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,21 +1,21 @@
1
- var ue = Object.defineProperty;
2
- var le = (i, t, n) => t in i ? ue(i, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[t] = n;
3
- var l = (i, t, n) => le(i, typeof t != "symbol" ? t + "" : t, n);
4
- import { isComboWebView as me } from "@seayoo-web/combo-webview";
5
- import { isPlainObject as k, useConsole as de, Support as _, usePromise as ge, pruneURL as pe, queryString as L, pruneObject as a, v as e, omitFields as v, typedObjectGuard as o, parseJSON as _e, removePara as G } from "@seayoo-web/utils";
1
+ var le = Object.defineProperty;
2
+ var me = (i, t, n) => t in i ? le(i, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[t] = n;
3
+ var l = (i, t, n) => me(i, typeof t != "symbol" ? t + "" : t, n);
4
+ import { isComboWebView as de } from "@seayoo-web/combo-webview";
5
+ import { isPlainObject as v, useConsole as ge, Support as b, usePromise as pe, pruneURL as _e, queryString as L, pruneObject as a, v as e, omitFields as C, typedObjectGuard as o, parseJSON as be, removePara as A } from "@seayoo-web/utils";
6
6
  import "@seayoo-web/request";
7
- function be(i) {
8
- return k(i, "gamer_token") && typeof i.gamer_token == "string";
7
+ function ye(i) {
8
+ return v(i, "gamer_token") && typeof i.gamer_token == "string";
9
9
  }
10
- function A(i) {
11
- return k(i);
10
+ function O(i) {
11
+ return v(i);
12
12
  }
13
- const y = de("GamerApiSDK");
14
- function ye(i) {
13
+ const f = ge("GamerApiSDK");
14
+ function fe(i) {
15
15
  return /^\/[a-z\d-]+$/.test(i);
16
16
  }
17
- async function fe() {
18
- const { promise: i, resolve: t } = ge();
17
+ async function we() {
18
+ const { promise: i, resolve: t } = pe();
19
19
  return wx.login({
20
20
  success(n) {
21
21
  t(n);
@@ -35,30 +35,30 @@ const he = {
35
35
  remove(i) {
36
36
  localStorage.removeItem(i);
37
37
  }
38
- }, we = {
38
+ }, ke = {
39
39
  get(i) {
40
40
  try {
41
- if (_.wx) return wx.getStorageSync(i) || "";
41
+ if (b.wx) return wx.getStorageSync(i) || "";
42
42
  } catch (t) {
43
- y.error("getStorageSyncError", t);
43
+ f.error("getStorageSyncError", t);
44
44
  }
45
45
  return "";
46
46
  },
47
47
  set(i, t) {
48
48
  try {
49
- _.wx && wx.setStorageSync(i, t);
49
+ b.wx && wx.setStorageSync(i, t);
50
50
  } catch (n) {
51
- y.error("setStorageSyncError", n);
51
+ f.error("setStorageSyncError", n);
52
52
  }
53
53
  },
54
54
  remove(i) {
55
55
  try {
56
- _.wx && wx.removeStorageSync(i);
56
+ b.wx && wx.removeStorageSync(i);
57
57
  } catch (t) {
58
- y.error("removeStorageSync", t);
58
+ f.error("removeStorageSync", t);
59
59
  }
60
60
  }
61
- }, f = "gamer_token";
61
+ }, w = "gamer_token";
62
62
  class hr {
63
63
  constructor(t, n) {
64
64
  l(this, "$idToken", "");
@@ -66,8 +66,8 @@ class hr {
66
66
  l(this, "$gamerToken", "");
67
67
  l(this, "req");
68
68
  l(this, "storage");
69
- this.storage = _.wx ? we : he;
70
- const r = ye(t) ? t : `https://${pe(t)}`;
69
+ this.storage = b.wx ? ke : he;
70
+ const r = fe(t) ? t : `https://${_e(t)}`;
71
71
  this.req = n({
72
72
  baseURL: `${r}/v1`,
73
73
  timeout: 1e4,
@@ -80,21 +80,21 @@ class hr {
80
80
  }
81
81
  },
82
82
  // 使用箭头函数绑定执行上下文
83
- requestTransformer: (u) => {
84
- this.$gamerToken && (u.headers.Authorization = `Bearer ${this.$gamerToken}`);
83
+ requestTransformer: (s) => {
84
+ this.$gamerToken && (s.headers.Authorization = `Bearer ${this.$gamerToken}`);
85
85
  }
86
- }), me() ? this.$gamerToken = L("gamer_token") : this.loadGamerTokenCache();
86
+ }), de() ? this.$gamerToken = L("gamer_token") : this.loadGamerTokenCache();
87
87
  }
88
88
  loadGamerTokenCache() {
89
- const n = this.storage.get(f).match(/^(\d{12,})#(.{8,})$/);
89
+ const n = this.storage.get(w).match(/^(\d{12,})#(.{8,})$/);
90
90
  if (n) {
91
- const r = parseInt(n[1]), u = n[2];
91
+ const r = parseInt(n[1]), s = n[2];
92
92
  if (r > Date.now() - (24 * 3600 - 10) * 1e3) {
93
- this.$gamerToken = u;
93
+ this.$gamerToken = s;
94
94
  return;
95
95
  }
96
96
  }
97
- this.storage.remove(f);
97
+ this.storage.remove(w);
98
98
  }
99
99
  /** 当前是否为登录状态,即是否拥有 gamerToken */
100
100
  get isLoggedIn() {
@@ -128,7 +128,7 @@ class hr {
128
128
  * 直接写入 Gamer Token,并更新缓存
129
129
  */
130
130
  set gamerToken(t) {
131
- this.$gamerToken = t, t ? this.storage.set(f, `${Date.now()}#${t}`) : this.storage.remove(f);
131
+ this.$gamerToken = t, t ? this.storage.set(w, `${Date.now()}#${t}`) : this.storage.remove(w);
132
132
  }
133
133
  /**
134
134
  * 退出登录,销毁相关 Token
@@ -156,13 +156,13 @@ class hr {
156
156
  if (this.gamerToken)
157
157
  return !0;
158
158
  if (!this.idToken)
159
- return y.error("Missing idToken when call autoLogin()"), !1;
160
- if (_.wx && !this.weixinToken)
161
- return y.error("Missing weixinToken when call autoLogin()"), !1;
159
+ return f.error("Missing idToken when call autoLogin()"), !1;
160
+ if (b.wx && !this.weixinToken)
161
+ return f.error("Missing weixinToken when call autoLogin()"), !1;
162
162
  const { code: t, data: n } = await this.req.post(
163
163
  "login-with-token",
164
- a({ id_token: this.idToken, weixin_token: _.wx ? this.weixinToken : null }),
165
- be,
164
+ a({ id_token: this.idToken, weixin_token: b.wx ? this.weixinToken : null }),
165
+ ye,
166
166
  { message: !1 }
167
167
  );
168
168
  switch (t) {
@@ -184,7 +184,7 @@ class hr {
184
184
  */
185
185
  async getSession() {
186
186
  if (!await this.autoLogin()) return null;
187
- const { data: t } = await this.req.get("session", A, {
187
+ const { data: t } = await this.req.get("session", O, {
188
188
  message: !1
189
189
  });
190
190
  return t;
@@ -196,25 +196,25 @@ class hr {
196
196
  */
197
197
  async authRealName(t) {
198
198
  if (!await this.autoLogin()) return null;
199
- const { data: n } = await this.req.post("auth-real-name", a(t), A);
199
+ const { data: n } = await this.req.post("auth-real-name", a(t), O);
200
200
  return n;
201
201
  }
202
202
  }
203
- const ke = {
203
+ const ve = {
204
204
  /** 未知 */
205
205
  Unknown: "unknown",
206
206
  /** 男 */
207
207
  Male: "male",
208
208
  /** 女 */
209
209
  Female: "female"
210
- }, ve = e.string().enum(ke).lock(), Ce = {
210
+ }, Ce = e.string().enum(ve).lock(), Ve = {
211
211
  /** 积分增加 */
212
212
  Increase: "increase",
213
213
  /** 积分减少 */
214
214
  Decrease: "decrease",
215
215
  /** 积分过期 */
216
216
  Expired: "expired"
217
- }, Ve = e.string().enum(Ce).lock(), Re = {
217
+ }, Re = e.string().enum(Ve).lock(), je = {
218
218
  /** 游戏内购买 */
219
219
  Order: "order",
220
220
  /** 游戏内消耗 */
@@ -227,21 +227,21 @@ const ke = {
227
227
  Admin: "admin",
228
228
  /** 运营活动 */
229
229
  Event: "event"
230
- }, je = e.string().enum(Re).lock(), Te = {
230
+ }, Te = e.string().enum(je).lock(), qe = {
231
231
  /** 游戏内奖励 */
232
232
  GameReward: "game_reward",
233
233
  /** 实物商品 */
234
234
  Physical: "physical",
235
235
  /** 虚拟商品 */
236
236
  Virtual: "virtual"
237
- }, H = e.string().enum(Te).lock(), qe = {
237
+ }, z = e.string().enum(qe).lock(), xe = {
238
238
  /** 待发放 */
239
239
  Pending: "pending",
240
240
  /** 已发放 */
241
241
  Issued: "issued",
242
242
  /** 发放失败 */
243
243
  Failed: "failed"
244
- }, xe = e.string().enum(qe).lock(), Se = e.object({
244
+ }, Se = e.string().enum(xe).lock(), Le = e.object({
245
245
  default_avatar_url: e.string(),
246
246
  official_avatar_urls: e.array(e.string()),
247
247
  default_nickname: e.string(),
@@ -259,7 +259,7 @@ const ke = {
259
259
  exp_description: e.string(),
260
260
  credit_description: e.string(),
261
261
  send_role_mail_rate_limit: e.number()
262
- }).lock(), Le = e.object({
262
+ }).lock(), Pe = e.object({
263
263
  member_id: e.string(),
264
264
  player_id: e.string(),
265
265
  exp: e.number(),
@@ -268,19 +268,19 @@ const ke = {
268
268
  credit_expiring: e.number(),
269
269
  level_change_time: e.number(),
270
270
  level_expire_time: e.number()
271
- }).lock(), Pe = e.object({
271
+ }).lock(), Ee = e.object({
272
272
  server_id: e.string(),
273
273
  server_name: e.string()
274
- }).lock(), Ee = e.object({
274
+ }).lock(), Ue = e.object({
275
275
  role_id: e.string(),
276
276
  role_name: e.string()
277
- }).lock(), z = e.object({
277
+ }).lock(), J = e.object({
278
+ ...Ue.shape,
278
279
  ...Ee.shape,
279
- ...Pe.shape,
280
280
  role_level: e.number(),
281
281
  last_login_time: e.number()
282
282
  }).lock(), $e = e.object({
283
- ...z.shape,
283
+ ...J.shape,
284
284
  /** 角色战力 */
285
285
  role_fighting: e.number(),
286
286
  /** 宗门 ID */
@@ -289,13 +289,13 @@ const ke = {
289
289
  kin_name: e.string().optional(),
290
290
  /** 宗门职位 */
291
291
  kin_position: e.string().optional()
292
- }).lock(), Ue = e.object({
292
+ }).lock(), Fe = e.object({
293
293
  name: e.string(),
294
294
  avatar_url: e.string(),
295
295
  bio: e.string(),
296
- gender: ve,
296
+ gender: Ce,
297
297
  birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
298
- }).lock(), J = e.object({
298
+ }).lock(), K = e.object({
299
299
  address_id: e.number(),
300
300
  recipient: e.string(),
301
301
  mobile: e.string(),
@@ -304,19 +304,19 @@ const ke = {
304
304
  district: e.string(),
305
305
  address: e.string(),
306
306
  is_default: e.bool()
307
- }).lock(), Fe = e.object({
307
+ }).lock(), De = e.object({
308
308
  increased_credit: e.number(),
309
309
  decreased_credit: e.number(),
310
310
  expired_credit: e.number(),
311
311
  balance_credit: e.number()
312
312
  }).lock(), Ie = e.object({
313
313
  id: e.number(),
314
- change_type: Ve,
315
- change_scene: je,
314
+ change_type: Re,
315
+ change_scene: Te,
316
316
  change_credit: e.number(),
317
317
  balance: e.number(),
318
318
  change_time: e.number()
319
- }).lock(), K = e.object({
319
+ }).lock(), X = e.object({
320
320
  benefit_id: e.number(),
321
321
  name: e.string(),
322
322
  img_url: e.string(),
@@ -325,11 +325,11 @@ const ke = {
325
325
  max_level: e.number(),
326
326
  product_id: e.number(),
327
327
  tag: e.string()
328
- }).lock(), X = e.object({
328
+ }).lock(), Y = e.object({
329
329
  product_id: e.number(),
330
330
  catalog_id: e.number(),
331
331
  catalog_name: e.string(),
332
- item_type: H,
332
+ item_type: z,
333
333
  name: e.string(),
334
334
  img_url: e.string(),
335
335
  description: e.string(),
@@ -351,10 +351,10 @@ const ke = {
351
351
  created_at: e.number(),
352
352
  updated_at: e.number(),
353
353
  redeemable_quantity: e.number().optional()
354
- }).lock(), De = e.object({
355
- ...v(K.shape, "tag"),
356
- product: X.clone().optional()
357
- }).lock(), wr = e.union(
354
+ }).lock(), Ge = e.object({
355
+ ...C(X.shape, "tag"),
356
+ product: Y.clone().optional()
357
+ }).lock(), kr = e.union(
358
358
  e.object({
359
359
  server_id: e.string(),
360
360
  role_id: e.string()
@@ -362,7 +362,7 @@ const ke = {
362
362
  e.object({
363
363
  address_id: e.number()
364
364
  })
365
- ).satisfies().lock(), Ge = e.object({
365
+ ).satisfies().lock(), Ae = e.object({
366
366
  recipient: e.string(),
367
367
  mobile: e.string(),
368
368
  province: e.string(),
@@ -371,32 +371,32 @@ const ke = {
371
371
  address: e.string(),
372
372
  express_company: e.string(),
373
373
  express_number: e.string()
374
- }).lock(), Ae = e.object({
374
+ }).lock(), Oe = e.object({
375
375
  server_id: e.string(),
376
376
  role_id: e.string(),
377
377
  role_name: e.string()
378
- }).lock(), Oe = e.object({
378
+ }).lock(), Ne = e.object({
379
379
  redemption_id: e.number(),
380
380
  player_id: e.string(),
381
381
  product_id: e.number(),
382
382
  name: e.string(),
383
383
  img_url: e.string(),
384
- item_type: H,
384
+ item_type: z,
385
385
  catalog_id: e.number(),
386
386
  catalog_name: e.string(),
387
387
  quantity: e.number(),
388
388
  amount: e.number(),
389
- status: xe,
389
+ status: Se,
390
390
  created_at: e.number(),
391
- extra_data: e.union(Ge.clone(), Ae.clone()).satisfies().optional()
392
- }), Ne = e.guard(Se), O = o({ player: Le }), Be = o({ roles: e.array(z) }), T = o({ role_card: $e }), N = e.guard(Ue), B = e.guard(J), Qe = o({ addresses: e.array(J) }), Me = e.guard(Fe), He = o({
391
+ extra_data: e.union(Ae.clone(), Oe.clone()).satisfies().optional()
392
+ }), Be = e.guard(Le), N = o({ player: Pe }), Qe = o({ roles: e.array(J) }), T = o({ role_card: $e }), B = e.guard(Fe), Q = e.guard(K), Me = o({ addresses: e.array(K) }), He = e.guard(De), ze = o({
393
393
  credit_logs: e.array(Ie),
394
394
  next_token: e.string().optional()
395
- }), ze = o({ products: e.array(X) }), Je = o({ benefits: e.array(K) }), Ke = o({ benefit: De }), Xe = o({
396
- redemptions: e.array(Oe),
395
+ }), Je = o({ products: e.array(Y) }), Ke = o({ benefits: e.array(X) }), Xe = o({ benefit: Ge }), Ye = o({
396
+ redemptions: e.array(Ne),
397
397
  next_token: e.string().optional()
398
398
  });
399
- class kr {
399
+ class vr {
400
400
  constructor(t) {
401
401
  l(this, "token");
402
402
  l(this, "req");
@@ -408,7 +408,7 @@ class kr {
408
408
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
409
409
  */
410
410
  async getConfig() {
411
- const { data: t } = await this.req.get("club/config", Ne);
411
+ const { data: t } = await this.req.get("club/config", Be);
412
412
  return t;
413
413
  }
414
414
  /**
@@ -418,7 +418,7 @@ class kr {
418
418
  */
419
419
  async getCurrentPlayer() {
420
420
  await this.token.autoLogin();
421
- const { data: t, code: n } = await this.req.get("club/current-player", O);
421
+ const { data: t, code: n } = await this.req.get("club/current-player", N);
422
422
  return (t == null ? void 0 : t.player) ?? { error: n };
423
423
  }
424
424
  /**
@@ -433,7 +433,7 @@ class kr {
433
433
  {
434
434
  id_token: this.token.idToken
435
435
  },
436
- O
436
+ N
437
437
  );
438
438
  return (t == null ? void 0 : t.player) ?? {
439
439
  error: n
@@ -446,7 +446,7 @@ class kr {
446
446
  */
447
447
  async getRoles(t, n) {
448
448
  if (!await this.token.autoLogin()) return [];
449
- const { data: r } = await this.req.get("club/roles", Be, {
449
+ const { data: r } = await this.req.get("club/roles", Qe, {
450
450
  params: a({ player_id: t, refresh: n })
451
451
  });
452
452
  return (r == null ? void 0 : r.roles) || [];
@@ -488,7 +488,7 @@ class kr {
488
488
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TMWBCFcOr2
489
489
  */
490
490
  async getUserProfile(t) {
491
- const { data: n } = await this.req.get("club/user-profile", N, {
491
+ const { data: n } = await this.req.get("club/user-profile", B, {
492
492
  params: { member_id: t }
493
493
  });
494
494
  return n;
@@ -500,7 +500,7 @@ class kr {
500
500
  */
501
501
  async updateUserProfile(t) {
502
502
  await this.token.autoLogin();
503
- const { data: n, code: r } = await this.req.post("club/user-profile", t, N);
503
+ const { data: n, code: r } = await this.req.post("club/user-profile", t, B);
504
504
  return n ?? {
505
505
  error: r
506
506
  };
@@ -512,7 +512,7 @@ class kr {
512
512
  */
513
513
  async getAddresses() {
514
514
  if (!await this.token.autoLogin()) return [];
515
- const { data: t } = await this.req.get("club/addresses", Qe);
515
+ const { data: t } = await this.req.get("club/addresses", Me);
516
516
  return (t == null ? void 0 : t.addresses) ?? [];
517
517
  }
518
518
  /**
@@ -522,7 +522,7 @@ class kr {
522
522
  */
523
523
  async addAddress(t) {
524
524
  if (!await this.token.autoLogin()) return null;
525
- const { data: n } = await this.req.post("/club/add-address", a(t), B);
525
+ const { data: n } = await this.req.post("/club/add-address", a(t), Q);
526
526
  return n;
527
527
  }
528
528
  /**
@@ -532,7 +532,7 @@ class kr {
532
532
  */
533
533
  async updateAddress(t) {
534
534
  await this.token.autoLogin();
535
- const { data: n, code: r } = await this.req.post("club/update-address", a(t), B);
535
+ const { data: n, code: r } = await this.req.post("club/update-address", a(t), Q);
536
536
  return n ?? { error: r };
537
537
  }
538
538
  /**
@@ -552,7 +552,7 @@ class kr {
552
552
  */
553
553
  async getUserCredit(t) {
554
554
  await this.token.autoLogin();
555
- const { data: n, code: r } = await this.req.get("club/user-credit", Me, { params: a(t) });
555
+ const { data: n, code: r } = await this.req.get("club/user-credit", He, { params: a(t) });
556
556
  return n ?? { error: r };
557
557
  }
558
558
  /**
@@ -562,7 +562,7 @@ class kr {
562
562
  */
563
563
  async getCreditLogs(t) {
564
564
  await this.token.autoLogin();
565
- const { data: n } = await this.req.get("club/credit-logs", He, {
565
+ const { data: n } = await this.req.get("club/credit-logs", ze, {
566
566
  params: a({ max_results: 20, ...t })
567
567
  });
568
568
  return { credit_logs: (n == null ? void 0 : n.credit_logs) || [], next_token: n == null ? void 0 : n.next_token };
@@ -574,7 +574,7 @@ class kr {
574
574
  */
575
575
  async getBenefits() {
576
576
  if (!await this.token.autoLogin()) return [];
577
- const { data: t } = await this.req.get("club/benefits", Je);
577
+ const { data: t } = await this.req.get("club/benefits", Ke);
578
578
  return (t == null ? void 0 : t.benefits) || [];
579
579
  }
580
580
  /**
@@ -584,7 +584,7 @@ class kr {
584
584
  */
585
585
  async getBenefit(t) {
586
586
  if (!await this.token.autoLogin()) return null;
587
- const { data: n } = await this.req.get("club/benefit", Ke, {
587
+ const { data: n } = await this.req.get("club/benefit", Xe, {
588
588
  params: { benefit_id: t }
589
589
  });
590
590
  return (n == null ? void 0 : n.benefit) || null;
@@ -595,7 +595,7 @@ class kr {
595
595
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
596
596
  */
597
597
  async getProducts(t) {
598
- const { data: n } = await this.req.get("club/products", ze, {
598
+ const { data: n } = await this.req.get("club/products", Je, {
599
599
  params: t
600
600
  });
601
601
  return (n == null ? void 0 : n.products) || [];
@@ -619,13 +619,13 @@ class kr {
619
619
  */
620
620
  async getRedemptions(t) {
621
621
  await this.token.autoLogin();
622
- const { data: n } = await this.req.get("club/redemptions", Xe, {
622
+ const { data: n } = await this.req.get("club/redemptions", Ye, {
623
623
  params: a({ max_results: 20, ...t })
624
624
  });
625
625
  return { redemptions: (n == null ? void 0 : n.redemptions) || [], next_token: n == null ? void 0 : n.next_token };
626
626
  }
627
627
  }
628
- const C = {
628
+ const V = {
629
629
  /** 活动道具 */
630
630
  EventItem: "event_item",
631
631
  /** 游戏内道具 */
@@ -642,17 +642,17 @@ const C = {
642
642
  Credit: "credit",
643
643
  /** 空奖励 */
644
644
  VoidItem: "void_item"
645
- }, Y = e.string().enum(C).lock(), vr = C, Z = Y, Ye = {
645
+ }, Z = e.string().enum(V).lock(), Cr = V, W = Z, Ze = {
646
646
  /** 世游通行证 ID / Combo ID */
647
647
  UserId: "user_id",
648
648
  /** 游戏角色 ID */
649
649
  RoleId: "role_id"
650
- }, Ze = e.string().enum(Ye).lock(), We = {
650
+ }, We = e.string().enum(Ze).lock(), et = {
651
651
  None: "none",
652
652
  Daily: "daily",
653
653
  Weekly: "weekly",
654
654
  Monthly: "monthly"
655
- }, et = e.string().enum(We).lock(), s = {
655
+ }, tt = e.string().enum(et).lock(), c = {
656
656
  /** 预约 */
657
657
  Preregister: "preregister",
658
658
  /** 抽奖 */
@@ -689,7 +689,7 @@ const C = {
689
689
  LotteryDraw: "lottery_draw",
690
690
  /** 签到 */
691
691
  CheckIn: "check_in"
692
- }, tt = e.string().enum(s).lock(), nt = {
692
+ }, nt = e.string().enum(c).lock(), rt = {
693
693
  /** 累计游戏内活跃值 */
694
694
  Active: "player_active_points",
695
695
  /** 累计登录,单位 人天 */
@@ -700,14 +700,14 @@ const C = {
700
700
  Posts: "community_posts",
701
701
  /** 社区评论数量 */
702
702
  Comments: "community_comments"
703
- }, W = e.string().enum(nt).lock(), rt = {
703
+ }, ee = e.string().enum(rt).lock(), it = {
704
704
  /** 官方上传 */
705
705
  System: "system",
706
706
  /** 用户投稿 */
707
707
  UserSubmission: "user_submission",
708
708
  /** 投票入围 */
709
709
  Shortlisted: "shortlisted"
710
- }, it = e.string().enum(rt).lock(), g = {
710
+ }, ot = e.string().enum(it).lock(), g = {
711
711
  /** 未获得奖励 */
712
712
  Ineligible: "ineligible",
713
713
  /** 奖励未领取 */
@@ -718,7 +718,13 @@ const C = {
718
718
  Failed: "failed",
719
719
  /** 奖励已发货 */
720
720
  Delivered: "delivered"
721
- }, Cr = e.string().enum(g).lock(), ot = {
721
+ }, Vr = e.string().enum(g).lock(), P = {
722
+ /**
723
+ * 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
724
+ *
725
+ * @deprecated
726
+ */
727
+ UnclaimedErr: "unaccalimed",
722
728
  /** 奖励未领取 */
723
729
  Unclaimed: g.Unclaimed,
724
730
  /** 奖励已领取 */
@@ -727,7 +733,7 @@ const C = {
727
733
  Failed: g.Failed,
728
734
  /** 奖励已发货 */
729
735
  Delivered: g.Delivered
730
- }, ee = e.string().enum(ot).lock(), p = {
736
+ }, te = e.string().enum(P).lock(), _ = {
731
737
  /** 未获得奖励 */
732
738
  Ineligible: g.Ineligible,
733
739
  /**
@@ -744,12 +750,12 @@ const C = {
744
750
  Failed: g.Failed,
745
751
  /** 奖励已发货 */
746
752
  Delivered: g.Delivered
747
- }, P = e.string().enum(p).lock(), at = {
753
+ }, E = e.string().enum(_).lock(), at = {
748
754
  /** 玩法产出奖励 */
749
755
  Output: "output",
750
756
  /** 玩法参与奖励 */
751
757
  Engage: "engage"
752
- }, E = e.string().enum(at).lock(), st = {
758
+ }, U = e.string().enum(at).lock(), st = {
753
759
  /** 私有队伍 */
754
760
  Private: "private",
755
761
  /** 公开队伍 */
@@ -765,7 +771,7 @@ const C = {
765
771
  Claimed: "claimed",
766
772
  /** 领奖失败 */
767
773
  Fail: "fail"
768
- }, Vr = e.string().enum(h).lock(), ut = {
774
+ }, Rr = e.string().enum(h).lock(), ut = {
769
775
  /** 发起组队 */
770
776
  Assemble: "assemble",
771
777
  /** 加入队伍 */
@@ -776,14 +782,14 @@ const C = {
776
782
  ChangeVisibility: "change_visibility",
777
783
  /** 查询组队信息 */
778
784
  Query: "query"
779
- }, Rr = e.string().enum(ut).lock(), lt = {
785
+ }, jr = e.string().enum(ut).lock(), lt = {
780
786
  /** 查询抽奖券 */
781
787
  Query: "query",
782
788
  /** 开奖 */
783
789
  Draw: "draw",
784
790
  /** 领奖 */
785
791
  Claim: "claim"
786
- }, jr = e.string().enum(lt).lock(), mt = e.string().enum(v(C, "GiftCode", "LotteryTicket")), $ = e.object({
792
+ }, Tr = e.string().enum(lt).lock(), mt = e.string().enum(C(V, "GiftCode", "LotteryTicket")), $ = e.object({
787
793
  reward_item_id: e.number(),
788
794
  reward_amount: e.number(),
789
795
  reward_item_name: e.string(),
@@ -803,18 +809,18 @@ const C = {
803
809
  feature_reward_type: e.string().enum("regular"),
804
810
  reward_details: e.array(dt)
805
811
  })
806
- ).satisfies().lock(), c = e.object({
812
+ ).satisfies().lock(), u = e.object({
807
813
  feature_name: e.string(),
808
814
  feature_id: e.number(),
809
815
  description: e.string(),
810
- cycle: et,
816
+ cycle: tt,
811
817
  limit: e.number(),
812
818
  since: e.number(),
813
819
  until: e.number(),
814
- engage_account: Ze,
820
+ engage_account: We,
815
821
  feature_rewards: gt.clone().optional()
816
- }), pt = s.Cashback, _t = e.object({
817
- ...c.shape,
822
+ }), pt = c.Cashback, _t = e.object({
823
+ ...u.shape,
818
824
  feature_type: e.string().enum(pt),
819
825
  config: e.object({
820
826
  order_start_time: e.number(),
@@ -822,21 +828,21 @@ const C = {
822
828
  claim_rewards_start_time: e.number(),
823
829
  claim_rewards_end_time: e.number()
824
830
  })
825
- }), bt = s.CheckIn, yt = e.object({
826
- ...c.shape,
831
+ }), bt = c.CheckIn, yt = e.object({
832
+ ...u.shape,
827
833
  feature_type: e.string().enum(bt)
828
- }), ft = s.ClaimRewards, ht = e.object({
829
- ...c.shape,
834
+ }), ft = c.ClaimRewards, wt = e.object({
835
+ ...u.shape,
830
836
  feature_type: e.string().enum(ft)
831
- }), wt = s.Comment, kt = e.object({
832
- ...c.shape,
833
- feature_type: e.string().enum(wt),
837
+ }), ht = c.Comment, kt = e.object({
838
+ ...u.shape,
839
+ feature_type: e.string().enum(ht),
834
840
  config: e.object({
835
841
  comments: e.array(e.string()),
836
842
  send_rate: e.number()
837
843
  })
838
- }), vt = s.Follow, Ct = e.object({
839
- ...c.shape,
844
+ }), vt = c.Follow, Ct = e.object({
845
+ ...u.shape,
840
846
  feature_type: e.string().enum(vt),
841
847
  config: e.object({
842
848
  platform: e.string(),
@@ -845,28 +851,28 @@ const C = {
845
851
  qr_code_url: e.string().optional(),
846
852
  platform_desc: e.string().optional()
847
853
  })
848
- }), Vt = s.GiftCode, Rt = e.object({
854
+ }), Vt = c.GiftCode, Rt = e.object({
849
855
  name: e.string(),
850
856
  icon_url: e.string(),
851
857
  count: e.number()
852
858
  }), jt = e.object({
853
- ...c.shape,
859
+ ...u.shape,
854
860
  feature_type: e.string().enum(Vt),
855
861
  config: e.object({
856
862
  gift_items: e.array(Rt),
857
863
  mp_url: e.string().optional(),
858
864
  mp_qrcode_url: e.string().optional()
859
865
  })
860
- }), Tt = s.Invite, qt = e.object({
861
- ...c.shape,
866
+ }), Tt = c.Invite, qt = e.object({
867
+ ...u.shape,
862
868
  feature_type: e.string().enum(Tt),
863
869
  config: e.object({
864
870
  share_url: e.string()
865
871
  })
866
- }), xt = s.InvitedRegister, St = e.object({
867
- ...c.shape,
872
+ }), xt = c.InvitedRegister, St = e.object({
873
+ ...u.shape,
868
874
  feature_type: e.string().enum(xt)
869
- }), Lt = e.string().enum(v(C, "GiftCode", "LotteryTicket")), Pt = s.Lottery, Et = e.object({
875
+ }), Lt = e.string().enum(C(V, "GiftCode", "LotteryTicket")), Pt = c.Lottery, Et = e.object({
870
876
  reward_item_id: e.number(),
871
877
  reward_item_name: e.string(),
872
878
  reward_item_type: Lt,
@@ -874,8 +880,8 @@ const C = {
874
880
  reward_item_desc: e.string().optional(),
875
881
  reward_amount: e.number(),
876
882
  reward_remaining_stock: e.number()
877
- }), $t = e.object({
878
- ...c.shape,
883
+ }), Ut = e.object({
884
+ ...u.shape,
879
885
  feature_type: e.string().enum(Pt),
880
886
  config: e.object({
881
887
  consume_item_id: e.number(),
@@ -885,59 +891,59 @@ const C = {
885
891
  consume_item_desc: e.string().optional(),
886
892
  rewards: e.array(Et)
887
893
  })
888
- }), Ut = s.LotteryDraw, Ft = e.object({
889
- ...c.shape,
890
- feature_type: e.string().enum(Ut),
894
+ }), $t = c.LotteryDraw, Ft = e.object({
895
+ ...u.shape,
896
+ feature_type: e.string().enum($t),
891
897
  config: e.object({
892
898
  draw_not_before: e.number(),
893
899
  draw_not_after: e.number()
894
900
  })
895
- }), It = s.Preregister, Dt = e.object({
896
- ...c.shape,
897
- feature_type: e.string().enum(It)
898
- }), Gt = s.Quest, At = e.object({
899
- ...c.shape,
901
+ }), Dt = c.Preregister, It = e.object({
902
+ ...u.shape,
903
+ feature_type: e.string().enum(Dt)
904
+ }), Gt = c.Quest, At = e.object({
905
+ ...u.shape,
900
906
  feature_type: e.string().enum(Gt),
901
907
  config: e.object({
902
- objective: W,
908
+ objective: ee,
903
909
  completion_value: e.number(),
904
910
  team: e.object({
905
911
  feature_id: e.number().optional(),
906
912
  completion_value: e.number()
907
913
  }).optional()
908
914
  })
909
- }), Ot = s.Register, Nt = e.object({
910
- ...c.shape,
915
+ }), Ot = c.Register, Nt = e.object({
916
+ ...u.shape,
911
917
  feature_type: e.string().enum(Ot)
912
- }), Bt = s.Share, Qt = e.object({
913
- ...c.shape,
918
+ }), Bt = c.Share, Qt = e.object({
919
+ ...u.shape,
914
920
  feature_type: e.string().enum(Bt),
915
921
  config: e.object({
916
922
  share_platform: e.string(),
917
923
  jump_url: e.string().optional(),
918
924
  icon_url: e.string().optional()
919
925
  })
920
- }), Mt = s.Subscribe, Ht = e.object({
921
- ...c.shape,
926
+ }), Mt = c.Subscribe, Ht = e.object({
927
+ ...u.shape,
922
928
  feature_type: e.string().enum(Mt),
923
929
  config: e.object({
924
930
  weixin_template_ids: e.array(e.string())
925
931
  })
926
- }), zt = s.Survey, Jt = e.object({
927
- ...c.shape,
932
+ }), zt = c.Survey, Jt = e.object({
933
+ ...u.shape,
928
934
  feature_type: e.string().enum(zt),
929
935
  config: e.object({
930
936
  survey_id: e.string(),
931
937
  survey_url: e.string()
932
938
  })
933
- }), Kt = s.Team, Xt = e.object({
934
- ...c.shape,
939
+ }), Kt = c.Team, Xt = e.object({
940
+ ...u.shape,
935
941
  feature_type: e.string().enum(Kt),
936
942
  config: e.object({
937
943
  max_members: e.number().min(1),
938
944
  min_members: e.number().min(1)
939
945
  })
940
- }), Yt = s.Vote, Zt = e.object({
946
+ }), Yt = c.Vote, Zt = e.object({
941
947
  sn: e.string(),
942
948
  name: e.string(),
943
949
  img_urls: e.array(e.string()).optional(),
@@ -948,28 +954,28 @@ const C = {
948
954
  finalists: e.bool(),
949
955
  last_vote_time: e.number()
950
956
  }), Wt = e.object({
951
- ...c.shape,
957
+ ...u.shape,
952
958
  feature_type: e.string().enum(Yt),
953
959
  config: e.object({
954
960
  vote_feature_ids: e.array(e.number()),
955
961
  submission_feature_ids: e.array(e.number()),
956
962
  finalists_amount: e.number(),
957
- source: it,
963
+ source: ot,
958
964
  options: e.array(Zt),
959
965
  rewards: e.array($)
960
966
  })
961
967
  }), en = e.union(
962
968
  _t,
963
969
  yt,
964
- ht,
970
+ wt,
965
971
  kt,
966
972
  Ct,
967
973
  jt,
968
974
  qt,
969
975
  St,
970
- $t,
976
+ Ut,
971
977
  Ft,
972
- Dt,
978
+ It,
973
979
  At,
974
980
  Nt,
975
981
  Qt,
@@ -996,22 +1002,22 @@ const C = {
996
1002
  avatar_url: e.string().optional()
997
1003
  }), an = e.object({
998
1004
  lottery_count: e.number()
999
- }), te = e.object({
1005
+ }), ne = e.object({
1000
1006
  reward_id: e.number(),
1001
1007
  reward_item_id: e.number(),
1002
- reward_source: E,
1008
+ reward_source: U,
1003
1009
  reward_item_name: e.string(),
1004
- reward_item_type: Y,
1010
+ reward_item_type: Z,
1005
1011
  reward_item_icon_url: e.string(),
1006
1012
  reward_item_desc: e.string().optional(),
1007
1013
  reward_item_rating: e.number(),
1008
1014
  reward_amount: e.number(),
1009
- reward_status: P,
1015
+ reward_status: E,
1010
1016
  event_id: e.number(),
1011
1017
  event_name: e.string(),
1012
1018
  feature_id: e.number(),
1013
1019
  engagement_id: e.number(),
1014
- feature_type: tt,
1020
+ feature_type: nt,
1015
1021
  receive_time: e.number(),
1016
1022
  extra_data: e.record(e.unknown()).optional()
1017
1023
  }), sn = e.string().enum(h.Unknown, h.Pending), cn = e.union(
@@ -1021,15 +1027,15 @@ const C = {
1021
1027
  }),
1022
1028
  e.object({
1023
1029
  ticket: e.string(),
1024
- status: e.string().enum(v(h, "Unknown", "Pending")),
1025
- reward: te
1030
+ status: e.string().enum(C(h, "Unknown", "Pending")),
1031
+ reward: ne
1026
1032
  })
1027
1033
  ).satisfies(), un = e.object({
1028
1034
  tickets: e.array(cn)
1029
1035
  }), ln = e.object({
1030
1036
  platforms: e.array(e.string())
1031
1037
  }), mn = e.object({
1032
- objective: W,
1038
+ objective: ee,
1033
1039
  progress: e.number(),
1034
1040
  completion_value: e.number().optional(),
1035
1041
  team: e.object({
@@ -1054,7 +1060,7 @@ const C = {
1054
1060
  team_code: e.string(),
1055
1061
  leader_name: e.string(),
1056
1062
  total_members: e.number()
1057
- }), Tr = e.object({
1063
+ }), qr = e.object({
1058
1064
  is_leader: e.bool(),
1059
1065
  is_myself: e.bool().optional(),
1060
1066
  role_name: e.string(),
@@ -1078,7 +1084,7 @@ const C = {
1078
1084
  comment: e.string(),
1079
1085
  video_note: e.number(),
1080
1086
  created_at: e.number()
1081
- }), ne = e.union(
1087
+ }), re = e.union(
1082
1088
  ln,
1083
1089
  an,
1084
1090
  pn,
@@ -1093,43 +1099,43 @@ const C = {
1093
1099
  un,
1094
1100
  e.custom(
1095
1101
  "EmptyObject",
1096
- (i) => k(i) && Object.keys(i).length === 0
1102
+ (i) => v(i) && Object.keys(i).length === 0
1097
1103
  )
1098
- ).satisfies().lock(), hn = e.object({
1104
+ ).satisfies().lock(), wn = e.object({
1099
1105
  reward_id: e.number(),
1100
1106
  reward_item_id: e.number(),
1101
- reward_item_type: Z,
1107
+ reward_item_type: W,
1102
1108
  reward_count: e.number(),
1103
- reward_status: ee,
1104
- reward_source: E,
1109
+ reward_status: te,
1110
+ reward_source: U,
1105
1111
  reward_item_name: e.string(),
1106
1112
  reward_item_icon_url: e.string(),
1107
1113
  reward_item_desc: e.string().optional(),
1108
1114
  reward_item_rating: e.number(),
1109
1115
  receive_time: e.number(),
1110
- extra_data: e.union(...ne.validators, e.record(e.unknown())).satisfies().optional()
1111
- }), wn = e.object({
1116
+ extra_data: e.union(...re.validators, e.record(e.unknown())).satisfies().optional()
1117
+ }), hn = e.object({
1112
1118
  reward_id: e.number(),
1113
1119
  reward_item_id: e.number(),
1114
1120
  reward_item_name: e.string(),
1115
- reward_item_type: Z,
1121
+ reward_item_type: W,
1116
1122
  reward_item_icon_url: e.string(),
1117
1123
  reward_item_desc: e.string().optional(),
1118
1124
  reward_amount: e.number(),
1119
- reward_status: ee,
1120
- reward_source: E,
1125
+ reward_status: te,
1126
+ reward_source: U,
1121
1127
  extra_data: e.record(e.unknown()).optional()
1122
- }), re = e.object({
1128
+ }), ie = e.object({
1123
1129
  engagement_id: e.number(),
1124
1130
  user_id: e.string(),
1125
1131
  event_id: e.number(),
1126
1132
  feature_id: e.number(),
1127
1133
  sequence: e.number(),
1128
- data: ne.clone().optional(),
1134
+ data: re.clone().optional(),
1129
1135
  server_id: e.string().optional(),
1130
1136
  role_id: e.string().optional(),
1131
1137
  created_at: e.number(),
1132
- rewards: e.array(hn).optional()
1138
+ rewards: e.array(wn).optional()
1133
1139
  }).lock(), kn = e.object({
1134
1140
  allowed: e.bool(),
1135
1141
  registered: e.bool()
@@ -1145,35 +1151,35 @@ const C = {
1145
1151
  sequence: e.number(),
1146
1152
  server_id: e.string(),
1147
1153
  role_id: e.string(),
1148
- data: re.clone().optional()
1154
+ data: ie.clone().optional()
1149
1155
  }).optional(),
1150
- rewards: e.array(wn).optional(),
1156
+ rewards: e.array(hn).optional(),
1151
1157
  scan: e.bool().optional()
1152
1158
  }), Vn = e.object({
1153
1159
  reward_id: e.number(),
1154
- reward_status: P
1160
+ reward_status: E
1155
1161
  }), Rn = e.guard(tn), jn = e.guard(kn), x = o({ count: e.number() }), Tn = o({ first_visit: e.bool() }), qn = o({
1156
1162
  engagements: e.union(e.array(fn), e.array(_n))
1157
1163
  }), xn = o({
1158
1164
  status: e.array(vn)
1159
1165
  }), Sn = o({
1160
- engagements: e.array(re),
1166
+ engagements: e.array(ie),
1161
1167
  next_token: e.string().optional()
1162
1168
  }), Ln = e.guard(Cn), Pn = o({
1163
1169
  claimed_items: e.array(Vn)
1164
1170
  }), En = o({
1165
- reward_status: P
1166
- }), $n = o({
1167
- user_rewards: e.array(te),
1168
- next_token: e.string().optional()
1171
+ reward_status: E
1169
1172
  }), Un = o({
1173
+ user_rewards: e.array(ne),
1174
+ next_token: e.string().optional()
1175
+ }), $n = o({
1170
1176
  scene: e.string()
1171
1177
  }), Fn = o({
1172
1178
  params: e.string()
1173
- }), In = o({
1179
+ }), Dn = o({
1174
1180
  img: e.string()
1175
1181
  });
1176
- class qr {
1182
+ class xr {
1177
1183
  constructor(t, n) {
1178
1184
  l(this, "token");
1179
1185
  l(this, "event", 0);
@@ -1301,7 +1307,7 @@ class qr {
1301
1307
  */
1302
1308
  async engage(t, n, r) {
1303
1309
  await this.token.autoLogin();
1304
- const { data: u, code: d } = await this.req.post(
1310
+ const { data: s, code: d } = await this.req.post(
1305
1311
  `event/${this.event}/engage`,
1306
1312
  a({
1307
1313
  feature_id: t,
@@ -1310,7 +1316,7 @@ class qr {
1310
1316
  }),
1311
1317
  Ln
1312
1318
  );
1313
- return u ?? {
1319
+ return s && s.rewards && (s.rewards = s.rewards.map((p) => (p.reward_status = p.reward_status === P.UnclaimedErr ? P.Unclaimed : p.reward_status, p))), s ?? {
1314
1320
  error: d
1315
1321
  };
1316
1322
  }
@@ -1321,8 +1327,8 @@ class qr {
1321
1327
  */
1322
1328
  async claimRewards(t) {
1323
1329
  await this.token.autoLogin();
1324
- const { data: n, code: r } = await this.req.post("event/claim-rewards", a(t), Pn), u = n == null ? void 0 : n.claimed_items;
1325
- return u ? u.map((d) => (d.reward_status = d.reward_status === p.UnclaimedErr ? p.Unclaimed : d.reward_status, d)) : {
1330
+ const { data: n, code: r } = await this.req.post("event/claim-rewards", a(t), Pn), s = n == null ? void 0 : n.claimed_items;
1331
+ return s ? s.map((d) => (d.reward_status = d.reward_status === _.UnclaimedErr ? _.Unclaimed : d.reward_status, d)) : {
1326
1332
  error: r
1327
1333
  };
1328
1334
  }
@@ -1338,7 +1344,7 @@ class qr {
1338
1344
  { reward_id: t },
1339
1345
  En
1340
1346
  );
1341
- return n ? (n.reward_status = n.reward_status === p.UnclaimedErr ? p.Unclaimed : n.reward_status, n) : {
1347
+ return n ? (n.reward_status = n.reward_status === _.UnclaimedErr ? _.Unclaimed : n.reward_status, n) : {
1342
1348
  error: r
1343
1349
  };
1344
1350
  }
@@ -1352,10 +1358,10 @@ class qr {
1352
1358
  const { data: n } = await this.req.post(
1353
1359
  "event/user-rewards",
1354
1360
  a({ max_results: 20, ...t, event_id: this.event }),
1355
- $n
1361
+ Un
1356
1362
  );
1357
1363
  return {
1358
- user_rewards: ((n == null ? void 0 : n.user_rewards) || []).map((r) => (r.reward_status = r.reward_status === p.UnclaimedErr ? p.Unclaimed : r.reward_status, r)),
1364
+ user_rewards: ((n == null ? void 0 : n.user_rewards) || []).map((r) => (r.reward_status = r.reward_status === _.UnclaimedErr ? _.Unclaimed : r.reward_status, r)),
1359
1365
  next_token: (n == null ? void 0 : n.next_token) || ""
1360
1366
  };
1361
1367
  }
@@ -1390,7 +1396,7 @@ class qr {
1390
1396
  */
1391
1397
  async getUnlimitQrcodeScene(t) {
1392
1398
  if (!await this.token.autoLogin()) return null;
1393
- const { data: n } = await this.req.get("event/unlimit-qrcode-scene", Un, {
1399
+ const { data: n } = await this.req.get("event/unlimit-qrcode-scene", $n, {
1394
1400
  params: { params: t }
1395
1401
  });
1396
1402
  return (n == null ? void 0 : n.scene) ?? null;
@@ -1415,16 +1421,16 @@ class qr {
1415
1421
  */
1416
1422
  async generateUnlimitQrcode(t) {
1417
1423
  if (!await this.token.autoLogin()) return null;
1418
- const { data: n } = await this.req.post("event/unlimit-qrcode", a(t), In);
1424
+ const { data: n } = await this.req.post("event/unlimit-qrcode", a(t), Dn);
1419
1425
  return (n == null ? void 0 : n.img) ?? null;
1420
1426
  }
1421
1427
  }
1422
- const Dn = {
1428
+ const In = {
1423
1429
  /** 所有人均可以发帖 */
1424
1430
  All: "all",
1425
1431
  /** 指定用户可发帖 */
1426
1432
  Limit: "limit"
1427
- }, Gn = e.string().enum(Dn).lock(), An = {
1433
+ }, Gn = e.string().enum(In).lock(), An = {
1428
1434
  /** 待审核(仅自己可见) */
1429
1435
  Pending: "pending",
1430
1436
  /** 审核通过 */
@@ -1433,14 +1439,14 @@ const Dn = {
1433
1439
  Failed: "failed",
1434
1440
  /** 嫌疑(仅自己可见) */
1435
1441
  Suspect: "suspect"
1436
- }, ie = e.string().enum(An).lock(), On = {
1442
+ }, oe = e.string().enum(An).lock(), On = {
1437
1443
  /** 系统通知 */
1438
1444
  System: "system",
1439
1445
  /** 评论我的 */
1440
1446
  Comment: "comment",
1441
1447
  /** 点赞通知 */
1442
1448
  Like: "like"
1443
- }, xr = e.string().enum(On).lock(), m = {
1449
+ }, Sr = e.string().enum(On).lock(), m = {
1444
1450
  /** 系统通知 */
1445
1451
  System: "system",
1446
1452
  /** 帖子被置顶 */
@@ -1465,7 +1471,7 @@ const Dn = {
1465
1471
  ReplyLiked: "reply_liked",
1466
1472
  /** 回复被删除 */
1467
1473
  ReplyDeleted: "reply_deleted"
1468
- }, Nn = e.string().enum(m).lock(), oe = e.object({
1474
+ }, Nn = e.string().enum(m).lock(), ae = e.object({
1469
1475
  forum_id: e.number(),
1470
1476
  icon_url: e.string(),
1471
1477
  name: e.string(),
@@ -1473,16 +1479,16 @@ const Dn = {
1473
1479
  sort: e.number(),
1474
1480
  mode: Gn,
1475
1481
  member_ids: e.array(e.number())
1476
- }).lock(), U = e.object({
1482
+ }).lock(), F = e.object({
1477
1483
  topic_id: e.number(),
1478
1484
  cover_url: e.string(),
1479
1485
  name: e.string(),
1480
1486
  description: e.string(),
1481
1487
  tags: e.array(e.string()),
1482
1488
  post_num: e.number()
1483
- }).lock(), F = e.object({
1489
+ }).lock(), D = e.object({
1484
1490
  post_id: e.number(),
1485
- forum: oe,
1491
+ forum: ae,
1486
1492
  posted_by: e.string(),
1487
1493
  nickname: e.string(),
1488
1494
  avatar_url: e.string(),
@@ -1493,13 +1499,13 @@ const Dn = {
1493
1499
  comments_num: e.number(),
1494
1500
  liked: e.bool(),
1495
1501
  image_urls: e.array(e.string()),
1496
- topics: e.array(U),
1502
+ topics: e.array(F),
1497
1503
  event_ids: e.array(e.number()),
1498
1504
  is_pinned: e.bool(),
1499
1505
  is_highlighted: e.bool(),
1500
- status: ie,
1506
+ status: oe,
1501
1507
  create_time: e.number()
1502
- }).lock(), ae = e.object({
1508
+ }).lock(), se = e.object({
1503
1509
  err_msg: e.string().optional()
1504
1510
  }).lock(), Bn = e.object({
1505
1511
  reply_id: e.number(),
@@ -1507,7 +1513,7 @@ const Dn = {
1507
1513
  replied_by: e.string(),
1508
1514
  nickname: e.string(),
1509
1515
  avatar_url: e.string()
1510
- }).lock(), V = e.object({
1516
+ }).lock(), R = e.object({
1511
1517
  reply_id: e.number(),
1512
1518
  comment_id: e.number(),
1513
1519
  comment_content: e.string().optional(),
@@ -1522,7 +1528,7 @@ const Dn = {
1522
1528
  liked: e.bool(),
1523
1529
  reply_to: Bn,
1524
1530
  create_time: e.number()
1525
- }).lock(), w = e.object({
1531
+ }).lock(), k = e.object({
1526
1532
  comment_id: e.number(),
1527
1533
  post_id: e.number(),
1528
1534
  post_subject: e.string().optional(),
@@ -1540,13 +1546,13 @@ const Dn = {
1540
1546
  liked: e.bool(),
1541
1547
  image_url: e.string(),
1542
1548
  create_time: e.number(),
1543
- status: ie,
1544
- replies: e.array(V).optional()
1549
+ status: oe,
1550
+ replies: e.array(R).optional()
1545
1551
  }).lock(), Qn = e.object({
1546
1552
  image_url: e.string(),
1547
1553
  upload_url: e.string(),
1548
1554
  existed: e.bool()
1549
- }).lock(), b = e.object({
1555
+ }).lock(), y = e.object({
1550
1556
  notification_id: e.string(),
1551
1557
  notification_type: Nn,
1552
1558
  is_read: e.bool(),
@@ -1562,18 +1568,18 @@ const Dn = {
1562
1568
  post_subject: e.string(),
1563
1569
  post_summary: e.string(),
1564
1570
  post_image_url: e.string()
1565
- }).lock(), R = e.object({
1571
+ }).lock(), j = e.object({
1566
1572
  comment_id: e.number(),
1567
1573
  comment_content: e.string()
1568
- }).lock(), D = e.object({
1574
+ }).lock(), G = e.object({
1569
1575
  reply_id: e.number(),
1570
1576
  reply_content: e.string()
1571
1577
  }).lock(), Hn = e.object({
1572
- ...b.shape,
1578
+ ...y.shape,
1573
1579
  ...Mn.shape,
1574
1580
  notification_type: e.string().enum(m.System)
1575
1581
  }), zn = e.object({
1576
- ...b.shape,
1582
+ ...y.shape,
1577
1583
  ...I.shape,
1578
1584
  notification_type: e.string().enum(
1579
1585
  m.PostPinned,
@@ -1582,31 +1588,31 @@ const Dn = {
1582
1588
  m.PostLiked
1583
1589
  )
1584
1590
  }), Jn = e.object({
1585
- ...b.shape,
1591
+ ...y.shape,
1586
1592
  ...I.shape,
1587
- ...R.shape,
1593
+ ...j.shape,
1588
1594
  notification_type: e.string().enum(m.PostCommented)
1589
1595
  }), Kn = e.object({
1590
- ...b.shape,
1591
- ...R.shape,
1592
- ...D.shape,
1596
+ ...y.shape,
1597
+ ...j.shape,
1598
+ ...G.shape,
1593
1599
  notification_type: e.string().enum(m.CommentReplied)
1594
1600
  }), Xn = e.object({
1595
- ...b.shape,
1596
- ...R.shape,
1601
+ ...y.shape,
1602
+ ...j.shape,
1597
1603
  ...I.shape,
1598
1604
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
1599
1605
  }), Yn = e.object({
1600
- ...b.shape,
1601
- ...D.shape,
1606
+ ...y.shape,
1607
+ ...G.shape,
1602
1608
  notification_type: e.string().enum(m.ReplyReplied),
1603
1609
  comment_id: e.number(),
1604
1610
  reply_to_reply_id: e.number(),
1605
1611
  reply_to_reply_content: e.string()
1606
1612
  }), Zn = e.object({
1607
- ...b.shape,
1608
- ...D.shape,
1609
- ...R.shape,
1613
+ ...y.shape,
1614
+ ...G.shape,
1615
+ ...j.shape,
1610
1616
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
1611
1617
  }), Wn = e.union(
1612
1618
  Hn,
@@ -1616,21 +1622,21 @@ const Dn = {
1616
1622
  Xn,
1617
1623
  Yn,
1618
1624
  Zn
1619
- ).satisfies().lock(), er = o({ forums: e.array(oe) }), tr = o({ topics: e.array(U) }), nr = o({ topic: U }), rr = o({ post: F }), Q = o({
1620
- posts: e.array(F),
1625
+ ).satisfies().lock(), er = o({ forums: e.array(ae) }), tr = o({ topics: e.array(F) }), nr = o({ topic: F }), rr = o({ post: D }), M = o({
1626
+ posts: e.array(D),
1621
1627
  next_token: e.string().optional()
1622
- }), ir = o({ post: F, antispam: ae }), or = o({
1623
- replies: e.array(V),
1628
+ }), ir = o({ post: D, antispam: se }), or = o({
1629
+ replies: e.array(R),
1624
1630
  next_token: e.string().optional()
1625
- }), ar = o({ reply: V }), sr = o({
1626
- reply: V.clone().optional(),
1627
- antispam: ae.clone().optional()
1628
- }), cr = o({ comment: w }), ur = o({
1629
- comments: e.array(w),
1631
+ }), ar = o({ reply: R }), sr = o({
1632
+ reply: R.clone().optional(),
1633
+ antispam: se.clone().optional()
1634
+ }), cr = o({ comment: k }), ur = o({
1635
+ comments: e.array(k),
1630
1636
  next_token: e.string().optional()
1631
1637
  }), lr = o({
1632
- comment: w.clone().optional(),
1633
- antispam: w.clone().optional()
1638
+ comment: k.clone().optional(),
1639
+ antispam: k.clone().optional()
1634
1640
  }), mr = e.guard(Qn), dr = o({
1635
1641
  notifications: e.array(Wn),
1636
1642
  next_token: e.string().optional()
@@ -1639,7 +1645,7 @@ const Dn = {
1639
1645
  comment: e.number(),
1640
1646
  like: e.number()
1641
1647
  });
1642
- class Sr {
1648
+ class Lr {
1643
1649
  constructor(t) {
1644
1650
  l(this, "token");
1645
1651
  l(this, "req");
@@ -1680,7 +1686,7 @@ class Sr {
1680
1686
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
1681
1687
  */
1682
1688
  async getPosts(t) {
1683
- const { data: n, code: r } = await this.req.get("community/posts", Q, {
1689
+ const { data: n, code: r } = await this.req.get("community/posts", M, {
1684
1690
  params: a(t)
1685
1691
  });
1686
1692
  return n ?? { error: r };
@@ -1691,10 +1697,10 @@ class Sr {
1691
1697
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
1692
1698
  */
1693
1699
  async getPinnedPosts(t, n, r) {
1694
- const { data: u, code: d } = await this.req.get("community/pinned-posts", Q, {
1700
+ const { data: s, code: d } = await this.req.get("community/pinned-posts", M, {
1695
1701
  params: a({ forum_id: t, max_results: n, next_token: r })
1696
1702
  });
1697
- return u ?? { error: d };
1703
+ return s ?? { error: d };
1698
1704
  }
1699
1705
  /**
1700
1706
  * 根据帖子 id 获取帖子详情
@@ -1857,12 +1863,17 @@ class Sr {
1857
1863
  return n;
1858
1864
  }
1859
1865
  }
1866
+ const pr = o({
1867
+ nonce_str: e.string(),
1868
+ timestamp: e.number(),
1869
+ signature: e.string()
1870
+ });
1871
+ var _r = /* @__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))(_r || {});
1860
1872
  function S(i) {
1861
- return k(i, "openid", "unionid", "weixin_token");
1873
+ return v(i, "openid", "unionid", "weixin_token");
1862
1874
  }
1863
- var pr = /* @__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))(pr || {});
1864
- const M = "wx_login_cache";
1865
- class Lr {
1875
+ const H = "wx_login_cache";
1876
+ class Pr {
1866
1877
  /**
1867
1878
  * 创建微信相关功能接口
1868
1879
  *
@@ -1890,10 +1901,10 @@ class Lr {
1890
1901
  * 也可以直接调用 login 方法,并传入 weixin code 的读取函数
1891
1902
  */
1892
1903
  async getLoginCache() {
1893
- const t = this.token.storage.get(M);
1904
+ const t = this.token.storage.get(H);
1894
1905
  if (!t)
1895
1906
  return null;
1896
- const n = _e(t);
1907
+ const n = be(t);
1897
1908
  return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
1898
1909
  }
1899
1910
  /**
@@ -1914,18 +1925,18 @@ class Lr {
1914
1925
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=GwIZ0givCb
1915
1926
  */
1916
1927
  async login() {
1917
- if (!_.wx)
1928
+ if (!b.wx)
1918
1929
  throw new Error("当前环境非微信小程序");
1919
1930
  const t = await this.getLoginCache();
1920
1931
  if (t)
1921
1932
  return t;
1922
- const n = await fe(), { data: r, code: u } = await this.req.post(
1933
+ const n = await we(), { data: r, code: s } = await this.req.post(
1923
1934
  "weixin/login",
1924
1935
  { code: n, appid: this.appid },
1925
1936
  S,
1926
1937
  { message: !1 }
1927
1938
  );
1928
- return r && (this.token.weixinToken = r.weixin_token, this.token.storage.set(M, JSON.stringify(r)), await this.token.autoLogin()), r ?? { error: u };
1939
+ return r && (this.token.weixinToken = r.weixin_token, this.token.storage.set(H, JSON.stringify(r)), await this.token.autoLogin()), r ?? { error: s };
1929
1940
  }
1930
1941
  /**
1931
1942
  * 在微信内嵌网页中调用微信公众号授权登录【暂未启用】
@@ -1944,19 +1955,19 @@ class Lr {
1944
1955
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、unionid、昵称、头像等信息,但用户也可能会拒绝授权
1945
1956
  */
1946
1957
  async webLogin(t = "snsapi_userinfo") {
1947
- const n = L("code"), r = Date.now(), u = +L("state");
1948
- if (!n || !u || u < r - 1e3 * 60 * 5 || u > r) {
1949
- const ce = G(["code", "state"]);
1958
+ const n = L("code"), r = Date.now(), s = +L("state");
1959
+ if (!n || !s || s < r - 1e3 * 60 * 5 || s > r) {
1960
+ const ue = A(["code", "state"]);
1950
1961
  location.replace(
1951
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ce)}&response_type=code&scope=${t}&state=${r}#wechat_redirect`
1962
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ue)}&response_type=code&scope=${t}&state=${r}#wechat_redirect`
1952
1963
  );
1953
1964
  return;
1954
1965
  }
1955
1966
  if (/^100\d{2}$/.test(n))
1956
1967
  return { error: n };
1957
- const d = G(["code", "state"]);
1968
+ const d = A(["code", "state"]);
1958
1969
  "replaceState" in history && history.replaceState({}, "", d);
1959
- const { data: j, code: se } = await this.req.post(
1970
+ const { data: p, code: ce } = await this.req.post(
1960
1971
  "weixin/login",
1961
1972
  {
1962
1973
  code: n,
@@ -1964,7 +1975,7 @@ class Lr {
1964
1975
  },
1965
1976
  S
1966
1977
  );
1967
- return j && (this.token.weixinToken = j.weixin_token, await this.token.autoLogin()), j ?? { error: se };
1978
+ return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? { error: ce };
1968
1979
  }
1969
1980
  /**
1970
1981
  * 关联游戏账号,无返回值,全程静默
@@ -1983,52 +1994,66 @@ class Lr {
1983
1994
  message: !1
1984
1995
  });
1985
1996
  }
1997
+ /**
1998
+ * 获取集成 JSSDK 所需的签名信息
1999
+ *
2000
+ * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2001
+ */
2002
+ async getJSSDKConfig() {
2003
+ const { data: t } = await this.req.get("weixin/jssdk-sign", pr, {
2004
+ params: {
2005
+ appid: this.appid,
2006
+ url: location.href.split("#")[0]
2007
+ }
2008
+ });
2009
+ return t;
2010
+ }
1986
2011
  }
1987
2012
  export {
1988
- ae as AntispamValidator,
2013
+ se as AntispamValidator,
1989
2014
  hr as AuthToken,
1990
2015
  nn as CashbackEngagementDataValidator,
1991
- p as ClaimRewardStatus,
1992
- P as ClaimRewardStatusValidator,
2016
+ _ as ClaimRewardStatus,
2017
+ E as ClaimRewardStatusValidator,
1993
2018
  Vn as ClaimedItemValidator,
1994
- J as ClubAddressValidator,
1995
- kr as ClubApi,
1996
- K as ClubBenefitSummaryValidator,
1997
- De as ClubBenefitValidator,
1998
- Re as ClubCreditChangeScene,
1999
- je as ClubCreditChangeSceneValidator,
2000
- Ce as ClubCreditChangeType,
2001
- Ve as ClubCreditChangeTypeValidator,
2019
+ K as ClubAddressValidator,
2020
+ vr as ClubApi,
2021
+ X as ClubBenefitSummaryValidator,
2022
+ Ge as ClubBenefitValidator,
2023
+ je as ClubCreditChangeScene,
2024
+ Te as ClubCreditChangeSceneValidator,
2025
+ Ve as ClubCreditChangeType,
2026
+ Re as ClubCreditChangeTypeValidator,
2002
2027
  Ie as ClubCreditLogValidator,
2003
- Se as ClubGlobalConfigValidator,
2004
- Te as ClubItemType,
2005
- H as ClubItemTypeValidator,
2006
- Le as ClubPlayerValidator,
2007
- X as ClubProductValidator,
2008
- qe as ClubRedemptionStatus,
2009
- xe as ClubRedemptionStatusValidator,
2010
- Fe as ClubUserCreditValidator,
2011
- Ue as ClubUserProfileValidator,
2028
+ Le as ClubGlobalConfigValidator,
2029
+ qe as ClubItemType,
2030
+ z as ClubItemTypeValidator,
2031
+ Pe as ClubPlayerValidator,
2032
+ Y as ClubProductValidator,
2033
+ xe as ClubRedemptionStatus,
2034
+ Se as ClubRedemptionStatusValidator,
2035
+ De as ClubUserCreditValidator,
2036
+ Fe as ClubUserProfileValidator,
2012
2037
  fn as CommentEngagementValidator,
2013
- w as CommentValidator,
2014
- Sr as CommunityApi,
2015
- Ye as EngageAccountType,
2016
- Ze as EngageAccountTypeValidator,
2038
+ k as CommentValidator,
2039
+ Lr as CommunityApi,
2040
+ Ze as EngageAccountType,
2041
+ We as EngageAccountTypeValidator,
2017
2042
  Cn as EngageResponseValidator,
2018
- wn as EngageRewardValidator,
2019
- qr as EventApi,
2043
+ hn as EngageRewardValidator,
2044
+ xr as EventApi,
2020
2045
  tn as EventConfigValidator,
2021
2046
  _t as EventFeatureConfigOfCashbackValidator,
2022
2047
  yt as EventFeatureConfigOfCheckInValidator,
2023
- ht as EventFeatureConfigOfClaimRewardsValidator,
2048
+ wt as EventFeatureConfigOfClaimRewardsValidator,
2024
2049
  kt as EventFeatureConfigOfCommentValidator,
2025
2050
  Ct as EventFeatureConfigOfFollowValidator,
2026
2051
  jt as EventFeatureConfigOfGiftCodeValidator,
2027
2052
  qt as EventFeatureConfigOfInviteValidator,
2028
2053
  St as EventFeatureConfigOfInvitedRegisterValidator,
2029
2054
  Ft as EventFeatureConfigOfLotteryDrawValidator,
2030
- $t as EventFeatureConfigOfLotteryValidator,
2031
- Dt as EventFeatureConfigOfPreregisterValidator,
2055
+ Ut as EventFeatureConfigOfLotteryValidator,
2056
+ It as EventFeatureConfigOfPreregisterValidator,
2032
2057
  At as EventFeatureConfigOfQuestValidator,
2033
2058
  Nt as EventFeatureConfigOfRegisterValidator,
2034
2059
  Qt as EventFeatureConfigOfShareValidator,
@@ -2037,37 +2062,37 @@ export {
2037
2062
  Xt as EventFeatureConfigOfTeamValidator,
2038
2063
  Wt as EventFeatureConfigOfVoteValidator,
2039
2064
  en as EventFeatureConfigValidator,
2040
- We as EventPeriodType,
2041
- et as EventPeriodTypeValidator,
2065
+ et as EventPeriodType,
2066
+ tt as EventPeriodTypeValidator,
2042
2067
  $ as EventRewardItemConfigValidator,
2043
- Ae as ExtraGameRewardValidator,
2044
- Ge as ExtraPhysicalShipmentValidator,
2068
+ Oe as ExtraGameRewardValidator,
2069
+ Ae as ExtraPhysicalShipmentValidator,
2045
2070
  gt as FeatureRewardValidator,
2046
- s as FeatureType,
2047
- tt as FeatureTypeValidator,
2048
- Dn as ForumMode,
2071
+ c as FeatureType,
2072
+ nt as FeatureTypeValidator,
2073
+ In as ForumMode,
2049
2074
  Gn as ForumModeValidator,
2050
- oe as ForumValidator,
2051
- C as GamerItemType,
2052
- Y as GamerItemTypeValidator,
2053
- ke as Gender,
2054
- ve as GenderValidator,
2075
+ ae as ForumValidator,
2076
+ V as GamerItemType,
2077
+ Z as GamerItemTypeValidator,
2078
+ ve as Gender,
2079
+ Ce as GenderValidator,
2055
2080
  rn as GiftCodeEngagementDataValidator,
2056
2081
  on as InviteEngagementDataValidator,
2057
2082
  lt as LotteryDrawAction,
2058
- jr as LotteryDrawActionValidator,
2083
+ Tr as LotteryDrawActionValidator,
2059
2084
  un as LotteryDrawEngagementDataValidator,
2060
2085
  an as LotteryEngagementDataValidator,
2061
2086
  h as LotteryTicketStatus,
2062
- Vr as LotteryTicketStatusValidator,
2063
- b as NotificationBaseValidator,
2087
+ Rr as LotteryTicketStatusValidator,
2088
+ y as NotificationBaseValidator,
2064
2089
  On as NotificationCategory,
2065
- xr as NotificationCategoryValidator,
2090
+ Sr as NotificationCategoryValidator,
2066
2091
  Kn as NotificationCommentReplyValidator,
2067
2092
  Xn as NotificationCommentValidator,
2068
- R as NotificationPayloadCommentValidator,
2093
+ j as NotificationPayloadCommentValidator,
2069
2094
  I as NotificationPayloadPostValidator,
2070
- D as NotificationPayloadReplyValidator,
2095
+ G as NotificationPayloadReplyValidator,
2071
2096
  Mn as NotificationPayloadSystemValidator,
2072
2097
  Jn as NotificationPostCommentValidator,
2073
2098
  zn as NotificationPostValidator,
@@ -2078,50 +2103,51 @@ export {
2078
2103
  Nn as NotificationTypeValidator,
2079
2104
  Wn as NotificationValidator,
2080
2105
  $e as PlayerRoleCardValidator,
2081
- z as PlayerRoleValidator,
2106
+ J as PlayerRoleValidator,
2082
2107
  An as PostStatus,
2083
- ie as PostStatusValidator,
2084
- F as PostValidator,
2108
+ oe as PostStatusValidator,
2109
+ D as PostValidator,
2085
2110
  ln as PreregisterEngagementDataValidator,
2086
2111
  Qn as PresignedUrlResponseValidator,
2087
2112
  mn as QuestEngagementDataValidator,
2088
- nt as QuestObjective,
2089
- W as QuestObjectiveValidator,
2090
- wr as RedeemParamsValidator,
2091
- Oe as RedemptionValidator,
2113
+ rt as QuestObjective,
2114
+ ee as QuestObjectiveValidator,
2115
+ kr as RedeemParamsValidator,
2116
+ Ne as RedemptionValidator,
2092
2117
  dt as RegularRewardValidator,
2093
2118
  Bn as ReplyToValidator,
2094
- V as ReplyValidator,
2095
- vr as RewardItemType,
2096
- Z as RewardItemTypeValidator,
2119
+ R as ReplyValidator,
2120
+ Cr as RewardItemType,
2121
+ W as RewardItemTypeValidator,
2097
2122
  at as RewardSource,
2098
- E as RewardSourceValidator,
2123
+ U as RewardSourceValidator,
2099
2124
  g as RewardStatus,
2100
- ot as RewardStatusSuffix,
2101
- ee as RewardStatusSuffixValidator,
2102
- Cr as RewardStatusValidator,
2103
- hn as RewardValidator,
2104
- Ee as RoleBaseInfoValidator,
2105
- Pe as ServerBaseInfoValidator,
2125
+ P as RewardStatusSuffix,
2126
+ te as RewardStatusSuffixValidator,
2127
+ Vr as RewardStatusValidator,
2128
+ wn as RewardValidator,
2129
+ Ue as RoleBaseInfoValidator,
2130
+ Ee as ServerBaseInfoValidator,
2106
2131
  dn as ShareEngagementDataValidator,
2107
2132
  pn as SurveyEngagementDataValidator,
2108
2133
  ut as TeamAction,
2109
- Rr as TeamActionValidator,
2134
+ jr as TeamActionValidator,
2110
2135
  bn as TeamEngagementDataValidator,
2111
2136
  _n as TeamEngagementValidator,
2112
- Tr as TeamMemberValidator,
2137
+ qr as TeamMemberValidator,
2113
2138
  st as TeamVisibility,
2114
2139
  ct as TeamVisibilityValidator,
2115
- U as TopicValidator,
2116
- ne as UserEngagementDataValidator,
2117
- re as UserEngagementValidator,
2140
+ F as TopicValidator,
2141
+ re as UserEngagementDataValidator,
2142
+ ie as UserEngagementValidator,
2118
2143
  vn as UserFeatureStatusValidator,
2119
- te as UserRewardValidator,
2144
+ ne as UserRewardValidator,
2120
2145
  kn as VerifyMobileResultValidator,
2121
2146
  yn as VoteEngagementDataValidator,
2122
- rt as VoteOptionSource,
2123
- it as VoteOptionSourceValidator,
2124
- Lr as WeixinApi,
2147
+ it as VoteOptionSource,
2148
+ ot as VoteOptionSourceValidator,
2149
+ Pr as WeixinApi,
2125
2150
  gn as WeixinSubscribeEngagementDataValidator,
2126
- pr as WeixinWebLoginErrorCode
2151
+ _r as WeixinWebLoginErrorCode,
2152
+ pr as isWeixinSignResponse
2127
2153
  };