@seayoo-web/gamer-api 2.16.0 → 2.16.2

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
- import { isComboWebView as de } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as h, supportWx as p, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as S, pruneObject as c, omitFields as U, parseJSON as ye, removePara as O } from "@seayoo-web/utils";
3
- import { v as e, objectGuard as s } from "@seayoo-web/validator";
4
- function he(i) {
5
- return h(i, "gamer_token") && typeof i.gamer_token == "string";
1
+ import { isComboWebView as me } from "@seayoo-web/combo-webview";
2
+ import { isPlainObject as y, usePromise as de, useConsole as ge, weixinStorageHelper as pe, localStorageHelper as _e, supportWx as f, pruneURL as be, supportWindow as ye, queryString as L, pruneObject as c, omitFields as U, parseJSON as he, removePara as G } from "@seayoo-web/utils";
3
+ import { v as e, objectGuard as i } from "@seayoo-web/validator";
4
+ function fe(s) {
5
+ return y(s, "gamer_token") && typeof s.gamer_token == "string";
6
6
  }
7
- function fe(i) {
8
- return h(i, "gamer_token", "game_id") && typeof i.gamer_token == "string" && typeof i.game_id == "string";
7
+ function we(s) {
8
+ return y(s, "gamer_token", "game_id") && typeof s.gamer_token == "string" && typeof s.game_id == "string";
9
9
  }
10
- function N(i) {
11
- return h(i);
10
+ function O(s) {
11
+ return y(s);
12
12
  }
13
- const j = ge("GamerApiSDK");
14
- function we(i) {
15
- return /^\/[a-z\d-]+$/.test(i);
13
+ ge("GamerApiSDK");
14
+ function ke(s) {
15
+ return /^\/[a-z\d-]+$/.test(s);
16
16
  }
17
- async function ke() {
18
- const { promise: i, resolve: t } = pe();
17
+ async function ve() {
18
+ const { promise: s, resolve: t } = de();
19
19
  return wx.login({
20
20
  success(n) {
21
21
  t(n.code);
@@ -23,43 +23,10 @@ async function ke() {
23
23
  fail() {
24
24
  t("");
25
25
  }
26
- }), await i;
26
+ }), await s;
27
27
  }
28
- const ve = {
29
- get(i) {
30
- return localStorage.getItem(i) || "";
31
- },
32
- set(i, t) {
33
- localStorage.setItem(i, t);
34
- },
35
- remove(i) {
36
- localStorage.removeItem(i);
37
- }
38
- }, Re = {
39
- get(i) {
40
- try {
41
- if (p()) return wx.getStorageSync(i) || "";
42
- } catch (t) {
43
- j.error("getStorageSyncError", t);
44
- }
45
- return "";
46
- },
47
- set(i, t) {
48
- try {
49
- p() && wx.setStorageSync(i, t);
50
- } catch (n) {
51
- j.error("setStorageSyncError", n);
52
- }
53
- },
54
- remove(i) {
55
- try {
56
- p() && wx.removeStorageSync(i);
57
- } catch (t) {
58
- j.error("removeStorageSync", t);
59
- }
60
- }
61
- }, f = "gamer_token";
62
- class ya {
28
+ const h = "gamer_token";
29
+ class br {
63
30
  $NetRequest;
64
31
  $idToken = "";
65
32
  $weixinToken = "";
@@ -67,15 +34,15 @@ class ya {
67
34
  req;
68
35
  storage;
69
36
  constructor(t, n) {
70
- this.storage = p() ? Re : ve;
71
- const r = we(t) ? t : `https://${_e(t)}`;
37
+ this.storage = f() ? pe : _e;
38
+ const a = ke(t) ? t : `https://${be(t)}`;
72
39
  if (this.$NetRequest = n, this.req = n({
73
- baseURL: `${r}/v1`,
40
+ baseURL: `${a}/v1`,
74
41
  timeout: 1e4,
75
42
  maxRetry: 2,
76
43
  retryInterval: "2EB",
77
- retryResolve({ method: a, status: o }) {
78
- return a === "GET" && o < 0;
44
+ retryResolve({ method: r, status: o }) {
45
+ return r === "GET" && o < 0;
79
46
  },
80
47
  responseRule: {
81
48
  ok: { resolve: "body" },
@@ -86,12 +53,12 @@ class ya {
86
53
  }
87
54
  },
88
55
  // 使用箭头函数绑定执行上下文
89
- requestTransformer: (a) => {
90
- this.$gamerToken && (a.headers.Authorization = `Bearer ${this.$gamerToken}`);
56
+ requestTransformer: (r) => {
57
+ this.$gamerToken && (r.headers.Authorization = `Bearer ${this.$gamerToken}`);
91
58
  }
92
- }), be()) {
93
- const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = S("gamer_token");
94
- (de() || a && o) && (this.$gamerToken = o);
59
+ }), ye()) {
60
+ const r = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = L("gamer_token");
61
+ (me() || r && o) && (this.$gamerToken = o);
95
62
  }
96
63
  this.$gamerToken || this.loadGamerTokenCache();
97
64
  }
@@ -99,15 +66,15 @@ class ya {
99
66
  return this.$NetRequest;
100
67
  }
101
68
  loadGamerTokenCache() {
102
- const n = this.storage.get(f).match(/^(\d{12,})#(.{8,})$/);
69
+ const n = this.storage.get(h).match(/^(\d{12,})#(.{8,})$/);
103
70
  if (n) {
104
- const r = parseInt(n[1]), a = n[2];
105
- if (r > Date.now() - (24 * 3600 - 10) * 1e3) {
106
- this.$gamerToken = a;
71
+ const a = parseInt(n[1]), r = n[2];
72
+ if (a > Date.now() - (24 * 3600 - 10) * 1e3) {
73
+ this.$gamerToken = r;
107
74
  return;
108
75
  }
109
76
  }
110
- this.storage.remove(f);
77
+ this.storage.remove(h);
111
78
  }
112
79
  /** 当前是否为登录状态,即是否拥有 gamerToken */
113
80
  get isLoggedIn() {
@@ -141,7 +108,7 @@ class ya {
141
108
  * 直接写入 Gamer Token,并更新缓存
142
109
  */
143
110
  set gamerToken(t) {
144
- this.$gamerToken = t, t ? this.storage.set(f, `${Date.now()}#${t}`) : this.storage.remove(f);
111
+ this.$gamerToken = t, t ? this.storage.set(h, `${Date.now()}#${t}`) : this.storage.remove(h);
145
112
  }
146
113
  /**
147
114
  * 退出登录,销毁相关 Token
@@ -168,13 +135,13 @@ class ya {
168
135
  async autoLogin() {
169
136
  if (this.gamerToken)
170
137
  return !0;
171
- const t = p();
138
+ const t = f();
172
139
  if (!this.idToken || t && !this.weixinToken)
173
140
  return !1;
174
- const { code: n, data: r } = await this.req.post(
141
+ const { code: n, data: a } = await this.req.post(
175
142
  "login-with-token",
176
143
  c({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
177
- he,
144
+ fe,
178
145
  {
179
146
  message: !1,
180
147
  cacheTTL: 300,
@@ -189,7 +156,7 @@ class ya {
189
156
  this.weixinToken = "";
190
157
  break;
191
158
  }
192
- return this.gamerToken = r?.gamer_token || "", !!this.gamerToken;
159
+ return this.gamerToken = a?.gamer_token || "", !!this.gamerToken;
193
160
  }
194
161
  /**
195
162
  * 用于在多租户小程序环境中切换当前 Session 的 game_id。
@@ -197,19 +164,19 @@ class ya {
197
164
  * https://www.kdocs.cn/l/cf2mO2uRLqh9?linkname=ifQTBNrckh
198
165
  */
199
166
  async switchGame(t) {
200
- const n = p();
167
+ const n = f();
201
168
  if (!this.idToken || n && !this.weixinToken)
202
169
  return !1;
203
- const { code: r, data: a } = await this.req.post(
170
+ const { code: a, data: r } = await this.req.post(
204
171
  "session/switch-game",
205
172
  c({ game_id: t }),
206
- fe,
173
+ we,
207
174
  {
208
175
  message: !1,
209
176
  maxRetry: 2
210
177
  }
211
178
  );
212
- return r === "game_not_allowed" ? !1 : (this.gamerToken = a?.gamer_token || "", !!this.gamerToken);
179
+ return a === "game_not_allowed" ? !1 : (this.gamerToken = r?.gamer_token || "", !!this.gamerToken);
213
180
  }
214
181
  /**
215
182
  * 获取当前登录用户的 Session 的信息
@@ -220,7 +187,7 @@ class ya {
220
187
  */
221
188
  async getSession() {
222
189
  if (!await this.autoLogin()) return null;
223
- const { data: t } = await this.req.get("session", N, {
190
+ const { data: t } = await this.req.get("session", O, {
224
191
  message: !1
225
192
  });
226
193
  return t;
@@ -232,25 +199,25 @@ class ya {
232
199
  */
233
200
  async authRealName(t) {
234
201
  if (!await this.autoLogin()) return null;
235
- const { data: n } = await this.req.post("auth-real-name", c(t), N);
202
+ const { data: n } = await this.req.post("auth-real-name", c(t), O);
236
203
  return n;
237
204
  }
238
205
  }
239
- const Ce = {
206
+ const Re = {
240
207
  /** 未知 */
241
208
  Unknown: "unknown",
242
209
  /** 男 */
243
210
  Male: "male",
244
211
  /** 女 */
245
212
  Female: "female"
246
- }, Ve = e.string().enum(Ce).lock(), je = {
213
+ }, Ce = e.string().enum(Re).lock(), Ve = {
247
214
  /** 积分增加 */
248
215
  Increase: "increase",
249
216
  /** 积分减少 */
250
217
  Decrease: "decrease",
251
218
  /** 积分过期 */
252
219
  Expired: "expired"
253
- }, Te = e.string().enum(je).lock(), qe = {
220
+ }, je = e.string().enum(Ve).lock(), Te = {
254
221
  /** 游戏内购买 */
255
222
  Order: "order",
256
223
  /** 游戏内消耗 */
@@ -263,21 +230,21 @@ const Ce = {
263
230
  Admin: "admin",
264
231
  /** 运营活动 */
265
232
  Event: "event"
266
- }, xe = e.string().enum(qe).lock(), Le = {
233
+ }, qe = e.string().enum(Te).lock(), xe = {
267
234
  /** 游戏内奖励 */
268
235
  GameReward: "game_reward",
269
236
  /** 实物商品 */
270
237
  Physical: "physical",
271
238
  /** 虚拟商品 */
272
239
  Virtual: "virtual"
273
- }, J = e.string().enum(Le).lock(), Se = {
240
+ }, z = e.string().enum(xe).lock(), Le = {
274
241
  /** 待发放 */
275
242
  Pending: "pending",
276
243
  /** 已发放 */
277
244
  Issued: "issued",
278
245
  /** 发放失败 */
279
246
  Failed: "failed"
280
- }, Ue = e.string().enum(Se).lock(), Pe = e.object({
247
+ }, Ue = e.string().enum(Le).lock(), Se = e.object({
281
248
  default_avatar_url: e.string(),
282
249
  official_avatar_urls: e.array(e.string()),
283
250
  default_nickname: e.string(),
@@ -295,7 +262,7 @@ const Ce = {
295
262
  exp_description: e.string(),
296
263
  credit_description: e.string(),
297
264
  send_role_mail_rate_limit: e.number()
298
- }).lock(), Ee = e.object({
265
+ }).lock(), Pe = e.object({
299
266
  member_id: e.string(),
300
267
  player_id: e.string(),
301
268
  exp: e.number(),
@@ -304,19 +271,19 @@ const Ce = {
304
271
  credit_expiring: e.number(),
305
272
  level_change_time: e.number(),
306
273
  level_expire_time: e.number()
307
- }).lock(), $e = e.object({
274
+ }).lock(), Ee = e.object({
308
275
  server_id: e.string(),
309
276
  server_name: e.string()
310
- }).lock(), Fe = e.object({
277
+ }).lock(), $e = e.object({
311
278
  role_id: e.string(),
312
279
  role_name: e.string()
313
- }).lock(), Z = e.object({
314
- ...Fe.shape,
280
+ }).lock(), J = e.object({
315
281
  ...$e.shape,
282
+ ...Ee.shape,
316
283
  role_level: e.number(),
317
284
  last_login_time: e.number()
318
- }).lock(), Ie = e.object({
319
- ...Z.shape,
285
+ }).lock(), Fe = e.object({
286
+ ...J.shape,
320
287
  /** 角色战力 */
321
288
  role_fighting: e.number(),
322
289
  /** 宗门 ID */
@@ -325,11 +292,11 @@ const Ce = {
325
292
  kin_name: e.string().optional(),
326
293
  /** 宗门职位 */
327
294
  kin_position: e.string().optional()
328
- }).lock(), De = e.object({
295
+ }).lock(), Ie = e.object({
329
296
  name: e.string(),
330
297
  avatar_url: e.string(),
331
298
  bio: e.string(),
332
- gender: Ve,
299
+ gender: Ce,
333
300
  birthday: e.object({ year: e.number(), month: e.number(), day: e.number() }),
334
301
  social_medias: e.record(
335
302
  e.object({
@@ -337,7 +304,7 @@ const Ce = {
337
304
  homepage_image_url: e.string()
338
305
  }).optional()
339
306
  ).optional()
340
- }).lock(), X = e.object({
307
+ }).lock(), Z = e.object({
341
308
  address_id: e.number(),
342
309
  recipient: e.string(),
343
310
  mobile: e.string(),
@@ -346,20 +313,20 @@ const Ce = {
346
313
  district: e.string(),
347
314
  address: e.string(),
348
315
  is_default: e.bool()
349
- }).lock(), Ae = e.object({
316
+ }).lock(), De = e.object({
350
317
  increased_credit: e.number(),
351
318
  decreased_credit: e.number(),
352
319
  expired_credit: e.number(),
353
320
  balance_credit: e.number()
354
- }).lock(), Ge = e.object({
321
+ }).lock(), Ae = e.object({
355
322
  id: e.number(),
356
- change_type: Te,
357
- change_scene: xe,
323
+ change_type: je,
324
+ change_scene: qe,
358
325
  change_credit: e.number(),
359
326
  balance: e.number(),
360
327
  change_time: e.number(),
361
328
  metadata: e.record(e.unknown()).optional()
362
- }).lock(), Y = e.object({
329
+ }).lock(), X = e.object({
363
330
  benefit_id: e.number(),
364
331
  name: e.string(),
365
332
  img_url: e.string(),
@@ -368,11 +335,11 @@ const Ce = {
368
335
  max_level: e.number(),
369
336
  product_id: e.number(),
370
337
  tag: e.string()
371
- }).lock(), W = e.object({
338
+ }).lock(), Y = e.object({
372
339
  product_id: e.number(),
373
340
  catalog_id: e.number(),
374
341
  catalog_name: e.string(),
375
- item_type: J,
342
+ item_type: z,
376
343
  name: e.string(),
377
344
  img_url: e.string(),
378
345
  description: e.string(),
@@ -394,10 +361,10 @@ const Ce = {
394
361
  created_at: e.number(),
395
362
  updated_at: e.number(),
396
363
  redeemable_quantity: e.number().optional()
397
- }).lock(), Oe = e.object({
398
- ...U(Y.shape, "tag"),
399
- product: W.clone().optional()
400
- }).lock(), ha = e.union(
364
+ }).lock(), Ge = e.object({
365
+ ...U(X.shape, "tag"),
366
+ product: Y.clone().optional()
367
+ }).lock(), yr = e.union(
401
368
  e.object({
402
369
  server_id: e.string(),
403
370
  role_id: e.string()
@@ -405,7 +372,7 @@ const Ce = {
405
372
  e.object({
406
373
  address_id: e.number()
407
374
  })
408
- ).satisfies().lock(), Ne = e.object({
375
+ ).satisfies().lock(), Oe = e.object({
409
376
  recipient: e.string(),
410
377
  mobile: e.string(),
411
378
  province: e.string(),
@@ -414,36 +381,36 @@ const Ce = {
414
381
  address: e.string(),
415
382
  express_company: e.string(),
416
383
  express_number: e.string()
417
- }).lock(), Qe = e.object({
384
+ }).lock(), Ne = e.object({
418
385
  server_id: e.string(),
419
386
  role_id: e.string(),
420
387
  role_name: e.string()
421
- }).lock(), Be = e.object({
388
+ }).lock(), Qe = e.object({
422
389
  redemption_id: e.number(),
423
390
  player_id: e.string(),
424
391
  product_id: e.number(),
425
392
  name: e.string(),
426
393
  img_url: e.string(),
427
- item_type: J,
394
+ item_type: z,
428
395
  catalog_id: e.number(),
429
396
  catalog_name: e.string(),
430
397
  quantity: e.number(),
431
398
  amount: e.number(),
432
399
  status: Ue,
433
400
  created_at: e.number(),
434
- extra_data: e.union(Ne.clone(), Qe.clone()).satisfies().optional()
435
- }), Me = e.guard(Pe), Q = s({ player: Ee }), Ke = s({ roles: e.array(Z) }), T = s({ role_card: Ie }), B = e.guard(De), M = e.guard(X), He = s({ addresses: e.array(X) }), ze = e.guard(Ae), Je = s({
436
- credit_logs: e.array(Ge),
401
+ extra_data: e.union(Oe.clone(), Ne.clone()).satisfies().optional()
402
+ }), Be = e.guard(Se), N = i({ player: Pe }), Me = i({ roles: e.array(J) }), j = i({ role_card: Fe }), Q = e.guard(Ie), B = e.guard(Z), Ke = i({ addresses: e.array(Z) }), He = e.guard(De), ze = i({
403
+ credit_logs: e.array(Ae),
437
404
  next_token: e.string().optional()
438
- }), Ze = s({ products: e.array(W) }), Xe = s({ benefits: e.array(Y) }), Ye = s({ benefit: Oe }), We = s({
439
- redemptions: e.array(Be),
405
+ }), Je = i({ products: e.array(Y) }), Ze = i({ benefits: e.array(X) }), Xe = i({ benefit: Ge }), Ye = i({
406
+ redemptions: e.array(Qe),
440
407
  next_token: e.string().optional()
441
- }), et = s({
408
+ }), We = i({
442
409
  existed: e.bool(),
443
410
  image_upload_url: e.string().optional(),
444
411
  image_id: e.string()
445
412
  });
446
- class fa {
413
+ class hr {
447
414
  token;
448
415
  req;
449
416
  constructor(t) {
@@ -456,7 +423,7 @@ class fa {
456
423
  */
457
424
  async getConfig(t) {
458
425
  await this.token.autoLogin();
459
- const { data: n } = await this.req.get("club/config", Me, t);
426
+ const { data: n } = await this.req.get("club/config", Be, t);
460
427
  return n;
461
428
  }
462
429
  /**
@@ -466,10 +433,10 @@ class fa {
466
433
  */
467
434
  async getCurrentPlayer(t) {
468
435
  await this.token.autoLogin();
469
- const { data: n, code: r, message: a } = await this.req.get("club/current-player", Q, t);
436
+ const { data: n, code: a, message: r } = await this.req.get("club/current-player", N, t);
470
437
  return n?.player ?? {
471
- message: a,
472
- error: r
438
+ message: r,
439
+ error: a
473
440
  };
474
441
  }
475
442
  /**
@@ -479,15 +446,15 @@ class fa {
479
446
  */
480
447
  async linkPlayer(t) {
481
448
  await this.token.autoLogin();
482
- const { data: n, code: r, message: a } = await this.req.post(
449
+ const { data: n, code: a, message: r } = await this.req.post(
483
450
  "club/link-player",
484
451
  { id_token: this.token.idToken },
485
- Q,
452
+ N,
486
453
  t
487
454
  );
488
455
  return n?.player ?? {
489
- message: a,
490
- error: r
456
+ message: r,
457
+ error: a
491
458
  };
492
459
  }
493
460
  /**
@@ -495,13 +462,13 @@ class fa {
495
462
  *
496
463
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=nwu4FiGM9V
497
464
  */
498
- async getRoles(t, n, r) {
465
+ async getRoles(t, n, a) {
499
466
  if (!await this.token.autoLogin()) return [];
500
- const { data: a } = await this.req.get("club/roles", Ke, {
501
- ...r,
467
+ const { data: r } = await this.req.get("club/roles", Me, {
468
+ ...a,
502
469
  params: c({ player_id: t, refresh: n })
503
470
  });
504
- return a?.roles || [];
471
+ return r?.roles || [];
505
472
  }
506
473
  /**
507
474
  * 获取俱乐部会员的角色卡片数据
@@ -510,11 +477,11 @@ class fa {
510
477
  */
511
478
  async getRoleCard(t, n) {
512
479
  await this.token.autoLogin();
513
- const { data: r } = await this.req.get("club/role-card", T, {
480
+ const { data: a } = await this.req.get("club/role-card", j, {
514
481
  ...n,
515
482
  params: { member_id: t }
516
483
  });
517
- return r?.role_card ?? null;
484
+ return a?.role_card ?? null;
518
485
  }
519
486
  /**
520
487
  * 设置自己的角色卡片
@@ -523,8 +490,8 @@ class fa {
523
490
  */
524
491
  async setRoleCard(t, n) {
525
492
  if (!await this.token.autoLogin()) return null;
526
- const { data: r } = await this.req.post("club/role-card", t, T, n);
527
- return r?.role_card ?? null;
493
+ const { data: a } = await this.req.post("club/role-card", t, j, n);
494
+ return a?.role_card ?? null;
528
495
  }
529
496
  /**
530
497
  * 强制刷新自己的角色卡片,从游戏内获取最新数据
@@ -533,7 +500,7 @@ class fa {
533
500
  */
534
501
  async refreshRoleCard(t) {
535
502
  if (!await this.token.autoLogin()) return null;
536
- const { data: n } = await this.req.post("club/refresh-role-card", {}, T, t);
503
+ const { data: n } = await this.req.post("club/refresh-role-card", {}, j, t);
537
504
  return n?.role_card ?? null;
538
505
  }
539
506
  /**
@@ -543,11 +510,11 @@ class fa {
543
510
  */
544
511
  async getUserProfile(t, n) {
545
512
  await this.token.autoLogin();
546
- const { data: r } = await this.req.get("club/user-profile", B, {
513
+ const { data: a } = await this.req.get("club/user-profile", Q, {
547
514
  ...n,
548
515
  params: { member_id: t }
549
516
  });
550
- return r;
517
+ return a;
551
518
  }
552
519
  /**
553
520
  * 修改自己的俱乐部用户信息
@@ -558,10 +525,10 @@ class fa {
558
525
  if (Object.keys(t).length === 0)
559
526
  return { error: "OptionIsEmpty", message: "请提供需要修改的信息" };
560
527
  await this.token.autoLogin();
561
- const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t, B, n);
562
- return r ?? {
528
+ const { data: a, code: r, message: o } = await this.req.post("club/user-profile", t, Q, n);
529
+ return a ?? {
563
530
  message: o,
564
- error: a
531
+ error: r
565
532
  };
566
533
  }
567
534
  /**
@@ -571,7 +538,7 @@ class fa {
571
538
  */
572
539
  async getAddresses(t) {
573
540
  if (!await this.token.autoLogin()) return [];
574
- const { data: n } = await this.req.get("club/addresses", He, t);
541
+ const { data: n } = await this.req.get("club/addresses", Ke, t);
575
542
  return n?.addresses ?? [];
576
543
  }
577
544
  /**
@@ -581,15 +548,15 @@ class fa {
581
548
  */
582
549
  async addAddress(t, n) {
583
550
  if (!await this.token.autoLogin()) return null;
584
- const { data: r, code: a, message: o } = await this.req.post(
551
+ const { data: a, code: r, message: o } = await this.req.post(
585
552
  "/club/add-address",
586
553
  c(t),
587
- M,
554
+ B,
588
555
  n
589
556
  );
590
- return r ?? {
557
+ return a ?? {
591
558
  message: o,
592
- error: a
559
+ error: r
593
560
  };
594
561
  }
595
562
  /**
@@ -599,15 +566,15 @@ class fa {
599
566
  */
600
567
  async updateAddress(t, n) {
601
568
  await this.token.autoLogin();
602
- const { data: r, code: a, message: o } = await this.req.post(
569
+ const { data: a, code: r, message: o } = await this.req.post(
603
570
  "club/update-address",
604
571
  c(t),
605
- M,
572
+ B,
606
573
  n
607
574
  );
608
- return r ?? {
575
+ return a ?? {
609
576
  message: o,
610
- error: a
577
+ error: r
611
578
  };
612
579
  }
613
580
  /**
@@ -617,8 +584,8 @@ class fa {
617
584
  */
618
585
  async deleteAddress(t, n) {
619
586
  if (!await this.token.autoLogin()) return null;
620
- const { ok: r } = await this.req.post("club/delete-address", { address_id: t }, null, n);
621
- return r;
587
+ const { ok: a } = await this.req.post("club/delete-address", { address_id: t }, null, n);
588
+ return a;
622
589
  }
623
590
  /**
624
591
  * 获取俱乐部积分统计信息
@@ -627,13 +594,13 @@ class fa {
627
594
  */
628
595
  async getUserCredit(t, n) {
629
596
  await this.token.autoLogin();
630
- const { data: r, code: a, message: o } = await this.req.get("club/user-credit", ze, {
597
+ const { data: a, code: r, message: o } = await this.req.get("club/user-credit", He, {
631
598
  ...n,
632
599
  params: c(t)
633
600
  });
634
- return r ?? {
601
+ return a ?? {
635
602
  message: o,
636
- error: a
603
+ error: r
637
604
  };
638
605
  }
639
606
  /**
@@ -643,13 +610,13 @@ class fa {
643
610
  */
644
611
  async getCreditLogs(t, n) {
645
612
  await this.token.autoLogin();
646
- const { data: r } = await this.req.get("club/credit-logs", Je, {
613
+ const { data: a } = await this.req.get("club/credit-logs", ze, {
647
614
  ...n,
648
615
  params: c({ max_results: 20, ...t })
649
616
  });
650
617
  return {
651
- credit_logs: r?.credit_logs || [],
652
- next_token: r?.next_token
618
+ credit_logs: a?.credit_logs || [],
619
+ next_token: a?.next_token
653
620
  };
654
621
  }
655
622
  /**
@@ -659,7 +626,7 @@ class fa {
659
626
  */
660
627
  async getBenefits(t) {
661
628
  if (!await this.token.autoLogin()) return [];
662
- const { data: n } = await this.req.get("club/benefits", Xe, t);
629
+ const { data: n } = await this.req.get("club/benefits", Ze, t);
663
630
  return n?.benefits || [];
664
631
  }
665
632
  /**
@@ -669,11 +636,11 @@ class fa {
669
636
  */
670
637
  async getBenefit(t, n) {
671
638
  if (!await this.token.autoLogin()) return null;
672
- const { data: r } = await this.req.get("club/benefit", Ye, {
639
+ const { data: a } = await this.req.get("club/benefit", Xe, {
673
640
  ...n,
674
641
  params: { benefit_id: t }
675
642
  });
676
- return r?.benefit || null;
643
+ return a?.benefit || null;
677
644
  }
678
645
  /**
679
646
  * 获取商城商品列表
@@ -682,11 +649,11 @@ class fa {
682
649
  */
683
650
  async getProducts(t, n) {
684
651
  await this.token.autoLogin();
685
- const { data: r } = await this.req.get("club/products", Ze, {
652
+ const { data: a } = await this.req.get("club/products", Je, {
686
653
  ...n,
687
654
  params: t
688
655
  });
689
- return r?.products || [];
656
+ return a?.products || [];
690
657
  }
691
658
  /**
692
659
  * 兑换商城商品
@@ -695,10 +662,10 @@ class fa {
695
662
  */
696
663
  async redeemProduct(t, n) {
697
664
  await this.token.autoLogin();
698
- const { ok: r, code: a, message: o } = await this.req.post("club/redeem-product", c(t), null, n);
699
- return r || {
665
+ const { ok: a, code: r, message: o } = await this.req.post("club/redeem-product", c(t), null, n);
666
+ return a || {
700
667
  message: o,
701
- error: a
668
+ error: r
702
669
  };
703
670
  }
704
671
  /**
@@ -708,13 +675,13 @@ class fa {
708
675
  */
709
676
  async getRedemptions(t, n) {
710
677
  await this.token.autoLogin();
711
- const { data: r } = await this.req.get("club/redemptions", We, {
678
+ const { data: a } = await this.req.get("club/redemptions", Ye, {
712
679
  ...n,
713
680
  params: c({ max_results: 20, ...t })
714
681
  });
715
682
  return {
716
- redemptions: r?.redemptions || [],
717
- next_token: r?.next_token
683
+ redemptions: a?.redemptions || [],
684
+ next_token: a?.next_token
718
685
  };
719
686
  }
720
687
  /**
@@ -724,15 +691,15 @@ class fa {
724
691
  */
725
692
  async clubUploadImage(t, n) {
726
693
  await this.token.autoLogin();
727
- const { data: r, code: a, message: o } = await this.req.post(
694
+ const { data: a, code: r, message: o } = await this.req.post(
728
695
  "club/image-upload-url",
729
696
  c(t),
730
- et,
697
+ We,
731
698
  n
732
699
  );
733
- return r ?? {
700
+ return a ?? {
734
701
  message: o,
735
- error: a
702
+ error: r
736
703
  };
737
704
  }
738
705
  }
@@ -759,17 +726,17 @@ const v = {
759
726
  ExternalCode: "external_gift_code",
760
727
  /** 空奖励 */
761
728
  VoidItem: "void_item"
762
- }, ee = e.string().enum(v).lock(), wa = v, te = ee, tt = {
729
+ }, W = e.string().enum(v).lock(), fr = v, ee = W, et = {
763
730
  /** 世游通行证 ID / Combo ID */
764
731
  UserId: "user_id",
765
732
  /** 游戏角色 ID */
766
733
  RoleId: "role_id"
767
- }, nt = e.string().enum(tt).lock(), rt = {
734
+ }, tt = e.string().enum(et).lock(), nt = {
768
735
  None: "none",
769
736
  Daily: "daily",
770
737
  Weekly: "weekly",
771
738
  Monthly: "monthly"
772
- }, at = e.string().enum(rt).lock(), u = {
739
+ }, at = e.string().enum(nt).lock(), u = {
773
740
  /** 预约 */
774
741
  Preregister: "preregister",
775
742
  /** 抽奖 */
@@ -818,7 +785,7 @@ const v = {
818
785
  UgcLike: "ugc_like",
819
786
  /** 兑换 */
820
787
  Redeem: "redeem"
821
- }, ot = e.string().enum(u).lock(), it = {
788
+ }, rt = e.string().enum(u).lock(), ot = {
822
789
  /** 累计游戏内活跃值 */
823
790
  Active: "player_active_points",
824
791
  /** 累计登录,单位 人天 */
@@ -844,15 +811,17 @@ const v = {
844
811
  /** 游戏内充值金额 */
845
812
  OrderAmountInApp: "order_in_app_total_amount",
846
813
  /** 支付中心充值金额 */
847
- OrderAmountInPayCenter: "order_seayoo_web_total_amount"
848
- }, ne = e.string().enum(it).lock(), st = {
814
+ OrderAmountInPayCenter: "order_seayoo_web_total_amount",
815
+ /** 组队进度 */
816
+ TeamSize: "team_size"
817
+ }, te = e.string().enum(ot).lock(), it = {
849
818
  /** 官方上传 */
850
819
  System: "system",
851
820
  /** 用户投稿 */
852
821
  UserSubmission: "user_submission",
853
822
  /** 投票入围 */
854
823
  Shortlisted: "shortlisted"
855
- }, ct = e.string().enum(st).lock(), y = {
824
+ }, st = e.string().enum(it).lock(), b = {
856
825
  /** 未获得奖励 */
857
826
  Ineligible: "ineligible",
858
827
  /** 奖励未领取 */
@@ -863,28 +832,28 @@ const v = {
863
832
  Failed: "failed",
864
833
  /** 奖励已发货 */
865
834
  Delivered: "delivered"
866
- }, re = e.string().enum(y).lock(), ut = {
835
+ }, ne = e.string().enum(b).lock(), ct = {
867
836
  /** 未获得奖励 */
868
- Ineligible: y.Ineligible,
837
+ Ineligible: b.Ineligible,
869
838
  /** 奖励未领取 */
870
- Unclaimed: y.Unclaimed,
839
+ Unclaimed: b.Unclaimed,
871
840
  /** 奖励已领取 */
872
- Received: y.Received,
841
+ Received: b.Received,
873
842
  /** 奖励发放失败 */
874
- Failed: y.Failed,
843
+ Failed: b.Failed,
875
844
  /** 奖励已发货 */
876
- Delivered: y.Delivered
877
- }, P = e.string().enum(ut).lock(), lt = {
845
+ Delivered: b.Delivered
846
+ }, S = e.string().enum(ct).lock(), ut = {
878
847
  /** 玩法产出奖励 */
879
848
  Output: "output",
880
849
  /** 玩法参与奖励 */
881
850
  Engage: "engage"
882
- }, E = e.string().enum(lt).lock(), mt = {
851
+ }, P = e.string().enum(ut).lock(), lt = {
883
852
  /** 私有队伍 */
884
853
  Private: "private",
885
854
  /** 公开队伍 */
886
855
  Public: "public"
887
- }, dt = e.string().enum(mt).lock(), w = {
856
+ }, mt = e.string().enum(lt).lock(), w = {
888
857
  /** 未知状态 */
889
858
  Unknown: "unknown",
890
859
  /** 等待开奖 */
@@ -895,7 +864,7 @@ const v = {
895
864
  Claimed: "claimed",
896
865
  /** 领奖失败 */
897
866
  Fail: "fail"
898
- }, ka = e.string().enum(w).lock(), gt = {
867
+ }, wr = e.string().enum(w).lock(), dt = {
899
868
  /** 发起组队 */
900
869
  Assemble: "assemble",
901
870
  /** 加入队伍 */
@@ -906,26 +875,26 @@ const v = {
906
875
  ChangeVisibility: "change_visibility",
907
876
  /** 查询组队信息 */
908
877
  Query: "query"
909
- }, va = e.string().enum(gt).lock(), pt = {
878
+ }, kr = e.string().enum(dt).lock(), gt = {
910
879
  /** 查询抽奖券 */
911
880
  Query: "query",
912
881
  /** 开奖 */
913
882
  Draw: "draw",
914
883
  /** 领奖 */
915
884
  Claim: "claim"
916
- }, Ra = e.string().enum(pt).lock(), _t = {
885
+ }, vr = e.string().enum(gt).lock(), pt = {
917
886
  /** 将所有队员的进度值求和,作为队伍进度值 */
918
887
  Sum: "sum",
919
888
  /** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
920
889
  TopN: "top_n"
921
- }, bt = e.string().enum(_t).lock(), yt = {
890
+ }, _t = e.string().enum(pt).lock(), bt = {
922
891
  /** 尚未结算 */
923
892
  None: "none",
924
893
  /** 获胜奖励 */
925
894
  Winner: "winner",
926
895
  /** 安慰奖励 */
927
896
  Consolation: "consolation"
928
- }, ht = e.string().enum(yt).lock(), ft = {
897
+ }, yt = e.string().enum(bt).lock(), ht = {
929
898
  /** 抖音 */
930
899
  Douyin: "douyin",
931
900
  /** 小红书 */
@@ -940,32 +909,32 @@ const v = {
940
909
  Huya: "huya",
941
910
  /** 斗鱼 */
942
911
  Douyu: "douyu"
943
- }, $ = e.string().enum(ft).lock(), wt = {
912
+ }, E = e.string().enum(ht).lock(), ft = {
944
913
  /** 已提交 */
945
914
  Submitted: "submitted",
946
915
  /** 已接收 */
947
916
  Accepted: "accepted",
948
917
  /** 已拒绝 */
949
918
  Rejected: "rejected"
950
- }, kt = e.string().enum(wt).lock(), vt = e.string().enum(v), _ = e.object({
919
+ }, wt = e.string().enum(ft).lock(), kt = e.string().enum(v), p = e.object({
951
920
  reward_item_id: e.number(),
952
921
  reward_amount: e.number(),
953
922
  reward_item_name: e.string(),
954
923
  reward_item_icon_url: e.string(),
955
924
  reward_item_desc: e.string().optional(),
956
- reward_item_type: vt,
925
+ reward_item_type: kt,
957
926
  reward_item_rating: e.number()
958
- }).lock(), Rt = e.object({
927
+ }).lock(), vt = e.object({
959
928
  engage_count: e.number(),
960
- rewards: e.array(_)
961
- }).lock(), Ct = e.union(
929
+ rewards: e.array(p)
930
+ }).lock(), Rt = e.union(
962
931
  e.object({
963
932
  feature_reward_type: e.string().enum("every"),
964
- reward_details: e.array(_)
933
+ reward_details: e.array(p)
965
934
  }),
966
935
  e.object({
967
936
  feature_reward_type: e.string().enum("regular"),
968
- reward_details: e.array(Rt)
937
+ reward_details: e.array(vt)
969
938
  })
970
939
  ).satisfies().lock(), l = e.object({
971
940
  feature_name: e.string(),
@@ -976,37 +945,37 @@ const v = {
976
945
  limit: e.number(),
977
946
  since: e.number(),
978
947
  until: e.number(),
979
- engage_account: nt,
980
- feature_rewards: Ct.clone().optional(),
948
+ engage_account: tt,
949
+ feature_rewards: Rt.clone().optional(),
981
950
  sort: e.number().optional()
982
- }), Vt = u.Cashback, jt = e.object({
951
+ }), Ct = u.Cashback, Vt = e.object({
983
952
  ...l.shape,
984
- feature_type: e.string().enum(Vt),
953
+ feature_type: e.string().enum(Ct),
985
954
  config: e.object({
986
955
  order_start_time: e.number(),
987
956
  order_end_time: e.number(),
988
957
  claim_rewards_start_time: e.number(),
989
958
  claim_rewards_end_time: e.number()
990
959
  })
991
- }), Tt = u.CheckIn, qt = e.object({
960
+ }), jt = u.CheckIn, Tt = e.object({
992
961
  ...l.shape,
993
- feature_type: e.string().enum(Tt)
994
- }), xt = u.ClaimActivationKey, Lt = e.object({
962
+ feature_type: e.string().enum(jt)
963
+ }), qt = u.ClaimActivationKey, xt = e.object({
995
964
  ...l.shape,
996
- feature_type: e.string().enum(xt)
997
- }), St = u.ClaimRewards, Ut = e.object({
965
+ feature_type: e.string().enum(qt)
966
+ }), Lt = u.ClaimRewards, Ut = e.object({
998
967
  ...l.shape,
999
- feature_type: e.string().enum(St)
1000
- }), Pt = u.Comment, Et = e.object({
968
+ feature_type: e.string().enum(Lt)
969
+ }), St = u.Comment, Pt = e.object({
1001
970
  ...l.shape,
1002
- feature_type: e.string().enum(Pt),
971
+ feature_type: e.string().enum(St),
1003
972
  config: e.object({
1004
973
  comments: e.array(e.string()),
1005
974
  send_rate: e.number()
1006
975
  })
1007
- }), $t = u.Follow, Ft = e.object({
976
+ }), Et = u.Follow, $t = e.object({
1008
977
  ...l.shape,
1009
- feature_type: e.string().enum($t),
978
+ feature_type: e.string().enum(Et),
1010
979
  config: e.object({
1011
980
  platform: e.string(),
1012
981
  platform_icon: e.string().optional(),
@@ -1014,67 +983,67 @@ const v = {
1014
983
  qr_code_url: e.string().optional(),
1015
984
  platform_desc: e.string().optional()
1016
985
  })
1017
- }), It = u.GiftCode, Dt = e.object({
986
+ }), Ft = u.GiftCode, It = e.object({
1018
987
  name: e.string(),
1019
988
  icon_url: e.string(),
1020
989
  count: e.number()
1021
- }), At = e.object({
990
+ }), Dt = e.object({
1022
991
  ...l.shape,
1023
- feature_type: e.string().enum(It),
992
+ feature_type: e.string().enum(Ft),
1024
993
  config: e.object({
1025
- gift_items: e.array(Dt),
994
+ gift_items: e.array(It),
1026
995
  mp_url: e.string().optional(),
1027
996
  mp_qrcode_url: e.string().optional()
1028
997
  })
1029
- }), Gt = u.Invite, Ot = e.object({
998
+ }), At = u.Invite, Gt = e.object({
1030
999
  ...l.shape,
1031
- feature_type: e.string().enum(Gt),
1000
+ feature_type: e.string().enum(At),
1032
1001
  config: e.object({
1033
1002
  share_url: e.string()
1034
1003
  })
1035
- }), Nt = u.InvitedRegister, Qt = e.object({
1004
+ }), Ot = u.InvitedRegister, Nt = e.object({
1036
1005
  ...l.shape,
1037
- feature_type: e.string().enum(Nt)
1038
- }), Bt = e.string().enum(U(v, "GiftCode", "LotteryTicket")), Mt = u.Lottery, Kt = e.object({
1006
+ feature_type: e.string().enum(Ot)
1007
+ }), Qt = e.string().enum(U(v, "GiftCode", "LotteryTicket")), Bt = u.Lottery, Mt = e.object({
1039
1008
  reward_item_id: e.number(),
1040
1009
  reward_item_name: e.string(),
1041
- reward_item_type: Bt,
1010
+ reward_item_type: Qt,
1042
1011
  reward_item_icon_url: e.string(),
1043
1012
  reward_item_desc: e.string().optional(),
1044
1013
  reward_amount: e.number(),
1045
1014
  reward_remaining_stock: e.number(),
1046
1015
  reward_item_rating: e.number()
1047
- }), Ht = e.object({
1016
+ }), Kt = e.object({
1048
1017
  ...l.shape,
1049
- feature_type: e.string().enum(Mt),
1018
+ feature_type: e.string().enum(Bt),
1050
1019
  config: e.object({
1051
1020
  consume_item_id: e.number(),
1052
1021
  consume_item_name: e.string(),
1053
1022
  consume_item_icon_url: e.string(),
1054
1023
  consume_item_count: e.array(e.number()),
1055
1024
  consume_item_desc: e.string().optional(),
1056
- rewards: e.array(Kt)
1025
+ rewards: e.array(Mt)
1057
1026
  })
1058
- }), zt = u.LotteryDraw, Jt = e.object({
1027
+ }), Ht = u.LotteryDraw, zt = e.object({
1059
1028
  ...l.shape,
1060
- feature_type: e.string().enum(zt),
1029
+ feature_type: e.string().enum(Ht),
1061
1030
  config: e.object({
1062
1031
  draw_not_before: e.number(),
1063
1032
  draw_not_after: e.number()
1064
1033
  })
1065
- }), Zt = u.Preregister, Xt = e.object({
1034
+ }), Jt = u.Preregister, Zt = e.object({
1066
1035
  ...l.shape,
1067
- feature_type: e.string().enum(Zt)
1068
- }), Yt = u.Quest, Wt = e.object({
1036
+ feature_type: e.string().enum(Jt)
1037
+ }), Xt = u.Quest, Yt = e.object({
1069
1038
  ...l.shape,
1070
- feature_type: e.string().enum(Yt),
1039
+ feature_type: e.string().enum(Xt),
1071
1040
  config: e.object({
1072
- objective: ne,
1041
+ objective: te,
1073
1042
  completion_value: e.number(),
1074
1043
  team: e.object({
1075
1044
  feature_id: e.number().optional(),
1076
1045
  completion_value: e.number(),
1077
- progress_algorithm: bt.clone().optional(),
1046
+ progress_algorithm: _t.clone().optional(),
1078
1047
  top_n: e.number().optional()
1079
1048
  }).optional(),
1080
1049
  config: e.object({
@@ -1084,62 +1053,62 @@ const v = {
1084
1053
  event_item_id: e.number().optional()
1085
1054
  }).optional()
1086
1055
  })
1087
- }), en = u.Redeem, tn = e.object({
1056
+ }), Wt = u.Redeem, en = e.object({
1088
1057
  price: e.number(),
1089
1058
  per_user_limit: e.number(),
1090
- item: _
1091
- }), nn = e.object({
1059
+ item: p
1060
+ }), tn = e.object({
1092
1061
  ...l.shape,
1093
- feature_type: e.string().enum(en),
1062
+ feature_type: e.string().enum(Wt),
1094
1063
  config: e.object({
1095
1064
  event_item_id: e.number(),
1096
- redeem_catalog: e.array(tn)
1065
+ redeem_catalog: e.array(en)
1097
1066
  })
1098
- }), rn = u.Register, an = e.object({
1067
+ }), nn = u.Register, an = e.object({
1099
1068
  ...l.shape,
1100
- feature_type: e.string().enum(rn)
1101
- }), on = u.Share, sn = e.object({
1069
+ feature_type: e.string().enum(nn)
1070
+ }), rn = u.Share, on = e.object({
1102
1071
  ...l.shape,
1103
- feature_type: e.string().enum(on),
1072
+ feature_type: e.string().enum(rn),
1104
1073
  config: e.object({
1105
1074
  share_platform: e.string(),
1106
1075
  jump_url: e.string().optional(),
1107
1076
  icon_url: e.string().optional()
1108
1077
  })
1109
- }), cn = u.Subscribe, un = e.object({
1078
+ }), sn = u.Subscribe, cn = e.object({
1110
1079
  ...l.shape,
1111
- feature_type: e.string().enum(cn),
1080
+ feature_type: e.string().enum(sn),
1112
1081
  config: e.object({
1113
1082
  weixin_template_ids: e.array(e.string())
1114
1083
  })
1115
- }), ln = u.Survey, mn = e.object({
1084
+ }), un = u.Survey, ln = e.object({
1116
1085
  ...l.shape,
1117
- feature_type: e.string().enum(ln),
1086
+ feature_type: e.string().enum(un),
1118
1087
  config: e.object({
1119
1088
  survey_id: e.string(),
1120
1089
  survey_url: e.string()
1121
1090
  })
1122
- }), dn = u.Team, gn = e.object({
1091
+ }), mn = u.Team, dn = e.object({
1123
1092
  ...l.shape,
1124
- feature_type: e.string().enum(dn),
1093
+ feature_type: e.string().enum(mn),
1125
1094
  config: e.object({
1126
1095
  max_members: e.number().min(1),
1127
1096
  min_members: e.number().min(1)
1128
1097
  })
1129
- }), pn = u.Ugc, _n = e.object({
1098
+ }), gn = u.Ugc, pn = e.object({
1130
1099
  ...l.shape,
1131
- feature_type: e.string().enum(pn),
1100
+ feature_type: e.string().enum(gn),
1132
1101
  config: e.object({
1133
1102
  allowed_social_medias: e.array(e.string()).optional(),
1134
- acceptance_rewards: e.array(_).optional()
1103
+ acceptance_rewards: e.array(p).optional()
1135
1104
  })
1136
- }), bn = u.UgcLike, yn = e.object({
1105
+ }), _n = u.UgcLike, bn = e.object({
1137
1106
  ...l.shape,
1138
- feature_type: e.string().enum(bn),
1107
+ feature_type: e.string().enum(_n),
1139
1108
  config: e.object({
1140
1109
  ugc_feature_id: e.number()
1141
1110
  })
1142
- }), hn = u.Vote, fn = e.object({
1111
+ }), yn = u.Vote, hn = e.object({
1143
1112
  sn: e.string(),
1144
1113
  name: e.string(),
1145
1114
  img_urls: e.array(e.string()).optional(),
@@ -1149,105 +1118,105 @@ const v = {
1149
1118
  amount: e.number(),
1150
1119
  finalists: e.bool(),
1151
1120
  last_vote_time: e.number()
1152
- }), wn = e.object({
1121
+ }), fn = e.object({
1153
1122
  ...l.shape,
1154
- feature_type: e.string().enum(hn),
1123
+ feature_type: e.string().enum(yn),
1155
1124
  config: e.object({
1156
1125
  vote_feature_ids: e.array(e.number()),
1157
1126
  submission_feature_ids: e.array(e.number()),
1158
1127
  finalists_amount: e.number(),
1159
- source: ct,
1160
- options: e.array(fn),
1161
- rewards: e.array(_)
1128
+ source: st,
1129
+ options: e.array(hn),
1130
+ rewards: e.array(p)
1162
1131
  })
1163
- }), kn = u.Vote2, vn = e.object({
1132
+ }), wn = u.Vote2, kn = e.object({
1164
1133
  candidate_id: e.string(),
1165
1134
  display_name: e.string(),
1166
1135
  images: e.array(e.string()).optional(),
1167
1136
  videos: e.array(e.string()).optional(),
1168
1137
  description: e.string().optional(),
1169
1138
  jump_url: e.string()
1170
- }), Rn = e.object({
1139
+ }), vn = e.object({
1171
1140
  ...l.shape,
1172
- feature_type: e.string().enum(kn),
1141
+ feature_type: e.string().enum(wn),
1173
1142
  config: e.object({
1174
1143
  vote_item_id: e.number().optional(),
1175
- candidates: e.array(vn),
1144
+ candidates: e.array(kn),
1176
1145
  vote_since: e.number(),
1177
1146
  vote_until: e.number(),
1178
1147
  rewards_since: e.number(),
1179
1148
  rewards_until: e.number(),
1180
- winner_rewards: e.array(_).optional(),
1181
- consolation_rewards: e.array(_).optional()
1149
+ winner_rewards: e.array(p).optional(),
1150
+ consolation_rewards: e.array(p).optional()
1182
1151
  })
1183
- }), Cn = u.ZeroChatgpt, Vn = e.object({
1152
+ }), Rn = u.ZeroChatgpt, Cn = e.object({
1184
1153
  ...l.shape,
1185
- feature_type: e.string().enum(Cn)
1186
- }), jn = e.union(
1187
- jt,
1188
- qt,
1154
+ feature_type: e.string().enum(Rn)
1155
+ }), Vn = e.union(
1156
+ Vt,
1157
+ Tt,
1189
1158
  Ut,
1190
- Et,
1191
- Ft,
1192
- At,
1193
- Ot,
1194
- Qt,
1195
- Ht,
1196
- Jt,
1197
- Xt,
1198
- Wt,
1159
+ Pt,
1160
+ $t,
1161
+ Dt,
1162
+ Gt,
1163
+ Nt,
1164
+ Kt,
1165
+ zt,
1166
+ Zt,
1167
+ Yt,
1199
1168
  an,
1200
- sn,
1201
- un,
1202
- mn,
1203
- gn,
1204
- wn,
1205
- Rn,
1206
- Lt,
1207
- Vn,
1208
- _n,
1209
- yn,
1210
- nn
1211
- ).key("feature_type").satisfies(), Tn = e.object({
1169
+ on,
1170
+ cn,
1171
+ ln,
1172
+ dn,
1173
+ fn,
1174
+ vn,
1175
+ xt,
1176
+ Cn,
1177
+ pn,
1178
+ bn,
1179
+ tn
1180
+ ).key("feature_type").satisfies(), jn = e.object({
1212
1181
  event_name: e.string(),
1213
1182
  rules: e.string(),
1214
1183
  since: e.number(),
1215
1184
  until: e.number(),
1216
1185
  visit_count: e.number().optional(),
1217
- features: e.array(jn)
1218
- }).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ae = e.object({
1219
- order_total_amount: q,
1220
- cashback_total_amount: q,
1221
- game_item_count: q
1222
- }), qn = e.object({
1186
+ features: e.array(Vn)
1187
+ }).lock(), T = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ae = e.object({
1188
+ order_total_amount: T,
1189
+ cashback_total_amount: T,
1190
+ game_item_count: T
1191
+ }), Tn = e.object({
1223
1192
  activation_key: e.string().disallow("")
1224
- }), xn = e.object({
1193
+ }), qn = e.object({
1225
1194
  gift_code: e.string()
1226
- }), Ln = e.object({
1195
+ }), xn = e.object({
1227
1196
  user_id: e.string(),
1228
1197
  name: e.string().optional(),
1229
1198
  avatar_url: e.string().optional()
1230
- }), Sn = e.object({
1199
+ }), Ln = e.object({
1231
1200
  lottery_count: e.number()
1232
1201
  }), R = e.object({
1233
1202
  reward_id: e.number(),
1234
1203
  reward_item_id: e.number(),
1235
- reward_source: E,
1204
+ reward_source: P,
1236
1205
  reward_item_name: e.string(),
1237
- reward_item_type: ee,
1206
+ reward_item_type: W,
1238
1207
  reward_item_icon_url: e.string(),
1239
1208
  reward_item_desc: e.string().optional(),
1240
1209
  reward_item_rating: e.number(),
1241
1210
  reward_amount: e.number(),
1242
- reward_status: P,
1211
+ reward_status: S,
1243
1212
  event_id: e.number(),
1244
1213
  event_name: e.string(),
1245
1214
  feature_id: e.number(),
1246
1215
  engagement_id: e.number(),
1247
- feature_type: ot,
1216
+ feature_type: rt,
1248
1217
  receive_time: e.number(),
1249
1218
  extra_data: e.record(e.unknown()).optional()
1250
- }), Un = e.string().enum(w.Unknown, w.Pending), Pn = e.union(
1219
+ }), Un = e.string().enum(w.Unknown, w.Pending), Sn = e.union(
1251
1220
  e.object({
1252
1221
  ticket: e.string(),
1253
1222
  status: Un,
@@ -1259,35 +1228,35 @@ const v = {
1259
1228
  created_at: e.number(),
1260
1229
  reward: R
1261
1230
  })
1262
- ).satisfies(), En = e.object({
1263
- tickets: e.array(Pn)
1264
- }), $n = e.object({
1231
+ ).satisfies(), Pn = e.object({
1232
+ tickets: e.array(Sn)
1233
+ }), En = e.object({
1265
1234
  platforms: e.array(e.string())
1266
- }), oe = e.object({
1235
+ }), re = e.object({
1267
1236
  role_name: e.string(),
1268
1237
  is_leader: e.bool(),
1269
1238
  is_myself: e.bool().optional(),
1270
1239
  progress: e.number().optional()
1271
- }).lock(), Fn = e.object({
1272
- objective: ne,
1240
+ }).lock(), $n = e.object({
1241
+ objective: te,
1273
1242
  progress: e.number(),
1274
1243
  completion_value: e.number().optional(),
1275
1244
  team: e.object({
1276
1245
  progress: e.number(),
1277
1246
  completion_value: e.number().optional(),
1278
- players: e.array(oe)
1247
+ players: e.array(re)
1279
1248
  }).optional()
1280
- }), In = e.object({
1249
+ }), Fn = e.object({
1281
1250
  progress: e.number(),
1282
1251
  team: e.object({
1283
1252
  progress: e.number(),
1284
- team_members: e.array(oe).optional()
1253
+ team_members: e.array(re).optional()
1285
1254
  }).optional()
1286
- }), Dn = e.object({
1255
+ }), In = e.object({
1287
1256
  item_id: e.number(),
1288
1257
  item_count: e.number(),
1289
1258
  redeem_count: e.number()
1290
- }), An = e.object({
1259
+ }), Dn = e.object({
1291
1260
  item_stocks: e.array(
1292
1261
  e.object({
1293
1262
  item_id: e.number(),
@@ -1295,24 +1264,25 @@ const v = {
1295
1264
  user_limit: e.number()
1296
1265
  })
1297
1266
  )
1298
- }), Gn = e.object({
1267
+ }), An = e.object({
1299
1268
  platform: e.string()
1300
- }), On = e.object({
1269
+ }), Gn = e.object({
1301
1270
  weixin_openid: e.string()
1302
- }), Nn = e.object({
1271
+ }), On = e.object({
1303
1272
  serial_number: e.number()
1304
- }), Qn = e.object({
1273
+ }), Nn = e.object({
1305
1274
  team_code: e.string(),
1306
1275
  leader_name: e.string(),
1307
1276
  total_members: e.number()
1308
- }), Ca = e.object({
1277
+ }), Rr = e.object({
1309
1278
  is_leader: e.bool(),
1310
1279
  is_myself: e.bool().optional(),
1311
1280
  role_name: e.string(),
1312
- server_name: e.string()
1313
- }), Bn = e.object({
1281
+ server_name: e.string(),
1282
+ avatar_url: e.string().optional()
1283
+ }), Qn = e.object({
1314
1284
  team_code: e.string(),
1315
- visibility: dt,
1285
+ visibility: mt,
1316
1286
  members: e.array(
1317
1287
  e.object({
1318
1288
  is_leader: e.bool(),
@@ -1320,14 +1290,14 @@ const v = {
1320
1290
  server_name: e.string()
1321
1291
  })
1322
1292
  )
1323
- }), Mn = e.object({
1293
+ }), Bn = e.object({
1324
1294
  ugc_id: e.number(),
1325
1295
  title: e.string(),
1326
1296
  content: e.string().optional(),
1327
1297
  image_urls: e.array(e.string()).optional(),
1328
- social_media: $.clone().optional(),
1298
+ social_media: E.clone().optional(),
1329
1299
  social_media_url: e.string().optional()
1330
- }), Kn = e.object({
1300
+ }), Mn = e.object({
1331
1301
  ugcs: e.array(
1332
1302
  e.object({
1333
1303
  ugc_id: e.number(),
@@ -1336,7 +1306,7 @@ const v = {
1336
1306
  title: e.string(),
1337
1307
  content: e.string().optional(),
1338
1308
  image_urls: e.array(e.string()).optional(),
1339
- social_media: $.clone().optional(),
1309
+ social_media: E.clone().optional(),
1340
1310
  social_media_url: e.string().optional(),
1341
1311
  server_id: e.number().optional(),
1342
1312
  server_name: e.string().optional(),
@@ -1347,19 +1317,19 @@ const v = {
1347
1317
  })
1348
1318
  ).optional(),
1349
1319
  next_token: e.string().optional()
1350
- }), Hn = e.object({
1320
+ }), Kn = e.object({
1351
1321
  ugcs: e.array(
1352
1322
  e.object({
1353
1323
  ugc_id: e.number(),
1354
1324
  event_id: e.number().optional(),
1355
1325
  feature_id: e.number().optional(),
1356
1326
  feature_name: e.string().optional(),
1357
- review_status: kt,
1327
+ review_status: wt,
1358
1328
  reviewer_comment: e.string().optional(),
1359
1329
  title: e.string(),
1360
1330
  content: e.string().optional(),
1361
1331
  image_urls: e.array(e.string()).optional(),
1362
- social_media: $.clone().optional(),
1332
+ social_media: E.clone().optional(),
1363
1333
  social_media_url: e.string().optional(),
1364
1334
  server_id: e.number().optional(),
1365
1335
  server_name: e.string().optional(),
@@ -1370,13 +1340,13 @@ const v = {
1370
1340
  })
1371
1341
  ).optional(),
1372
1342
  next_token: e.string().optional()
1373
- }), zn = e.object({
1343
+ }), Hn = e.object({
1374
1344
  total_count: e.number()
1375
- }), Jn = e.object({
1345
+ }), zn = e.object({
1376
1346
  existed: e.bool(),
1377
1347
  upload_url: e.string().optional(),
1378
1348
  image_url: e.string()
1379
- }), Zn = e.object({
1349
+ }), Jn = e.object({
1380
1350
  ugcs: e.array(
1381
1351
  e.object({
1382
1352
  ugc_id: e.number(),
@@ -1389,146 +1359,146 @@ const v = {
1389
1359
  role_name: e.string().optional()
1390
1360
  })
1391
1361
  ).optional()
1392
- }), Xn = e.object({
1362
+ }), Zn = e.object({
1393
1363
  option_sn: e.string()
1394
- }), Yn = e.object({
1364
+ }), Xn = e.object({
1395
1365
  candidate_id: e.string(),
1396
1366
  total_votes: e.number().optional(),
1397
1367
  my_votes: e.number().optional(),
1398
1368
  votes: e.number().optional()
1399
- }), Wn = e.object({
1400
- rewards_type: ht,
1369
+ }), Yn = e.object({
1370
+ rewards_type: yt,
1401
1371
  rewards: e.array(R).optional()
1402
- }), er = e.object({
1372
+ }), Wn = e.object({
1403
1373
  candidate_id: e.string(),
1404
1374
  is_winner: e.bool(),
1405
1375
  total_votes: e.number(),
1406
1376
  my_votes: e.number()
1407
- }), tr = e.object({
1377
+ }), ea = e.object({
1408
1378
  role: e.string(),
1409
1379
  content: e.string()
1410
- }), nr = e.object({
1411
- conversations: e.array(tr)
1412
- }), rr = e.object({
1380
+ }), ta = e.object({
1381
+ conversations: e.array(ea)
1382
+ }), na = e.object({
1413
1383
  user_id: e.string(),
1414
1384
  name: e.string(),
1415
1385
  avatar_url: e.string(),
1416
1386
  comment: e.string(),
1417
1387
  video_note: e.number(),
1418
1388
  created_at: e.number()
1419
- }), F = e.union(
1420
- $n,
1421
- Sn,
1422
- Nn,
1389
+ }), $ = e.union(
1390
+ En,
1423
1391
  Ln,
1424
- Gn,
1425
- Xn,
1426
- Yn,
1427
1392
  On,
1428
- ae,
1429
1393
  xn,
1430
- Bn,
1431
- Fn,
1432
- En,
1394
+ An,
1395
+ Zn,
1396
+ Xn,
1397
+ Gn,
1398
+ ae,
1433
1399
  qn,
1434
- nr,
1435
- Mn,
1436
- Dn,
1400
+ Qn,
1401
+ $n,
1402
+ Pn,
1403
+ Tn,
1404
+ ta,
1405
+ Bn,
1406
+ In,
1437
1407
  e.custom(
1438
1408
  "EmptyObject",
1439
- (i) => h(i) && Object.keys(i).length === 0
1409
+ (s) => y(s) && Object.keys(s).length === 0
1440
1410
  )
1441
- ).satisfies().lock(), ar = e.object({
1411
+ ).satisfies().lock(), aa = e.object({
1442
1412
  reward_id: e.number(),
1443
1413
  reward_item_id: e.number(),
1444
- reward_item_type: te,
1414
+ reward_item_type: ee,
1445
1415
  reward_count: e.number(),
1446
- reward_status: re,
1447
- reward_source: E,
1416
+ reward_status: ne,
1417
+ reward_source: P,
1448
1418
  reward_item_name: e.string(),
1449
1419
  reward_item_icon_url: e.string(),
1450
1420
  reward_item_desc: e.string().optional(),
1451
1421
  reward_item_rating: e.number(),
1452
1422
  receive_time: e.number(),
1453
- extra_data: e.union(...F.validators, e.record(e.unknown())).satisfies().optional()
1454
- }), or = e.object({
1423
+ extra_data: e.union(...$.validators, e.record(e.unknown())).satisfies().optional()
1424
+ }), ra = e.object({
1455
1425
  reward_id: e.number(),
1456
1426
  reward_item_id: e.number(),
1457
1427
  reward_item_name: e.string(),
1458
- reward_item_type: te,
1428
+ reward_item_type: ee,
1459
1429
  reward_item_icon_url: e.string(),
1460
1430
  reward_item_desc: e.string().optional(),
1461
1431
  reward_item_rating: e.number(),
1462
1432
  reward_amount: e.number(),
1463
- reward_status: re,
1464
- reward_source: E,
1433
+ reward_status: ne,
1434
+ reward_source: P,
1465
1435
  extra_data: e.record(e.unknown()).optional()
1466
- }), ir = e.object({
1436
+ }), oa = e.object({
1467
1437
  engagement_id: e.number(),
1468
1438
  user_id: e.string(),
1469
1439
  event_id: e.number(),
1470
1440
  feature_id: e.number(),
1471
1441
  sequence: e.number(),
1472
- data: F.clone().optional(),
1442
+ data: $.clone().optional(),
1473
1443
  server_id: e.string().optional(),
1474
1444
  role_id: e.string().optional(),
1475
1445
  created_at: e.number(),
1476
- rewards: e.array(ar).optional()
1477
- }).lock(), sr = e.object({
1446
+ rewards: e.array(aa).optional()
1447
+ }).lock(), ia = e.object({
1478
1448
  allowed: e.bool(),
1479
1449
  registered: e.bool()
1480
- }), cr = e.object({
1450
+ }), sa = e.object({
1481
1451
  feature_id: e.number(),
1482
1452
  can_engage: e.bool(),
1483
1453
  has_unclaimed_rewards: e.bool(),
1484
1454
  final_available_count: e.number(),
1485
1455
  total_remaining_engagements: e.number(),
1486
1456
  cycle_remaining_engagements: e.number()
1487
- }), ur = e.object({
1457
+ }), ca = e.object({
1488
1458
  engagement_id: e.number(),
1489
1459
  engagement: e.object({
1490
1460
  engagement_id: e.number(),
1491
1461
  sequence: e.number(),
1492
1462
  feature_id: e.number(),
1493
- data: F.clone().optional()
1463
+ data: $.clone().optional()
1494
1464
  }).optional(),
1495
- rewards: e.array(or).optional(),
1465
+ rewards: e.array(ra).optional(),
1496
1466
  scan: e.bool().optional()
1497
- }), lr = e.object({
1467
+ }), ua = e.object({
1498
1468
  reward_id: e.number(),
1499
- reward_status: P
1500
- }), mr = e.guard(Tn), dr = e.guard(sr), x = s({ count: e.number() }), gr = s({ first_visit: e.bool() }), pr = s({
1501
- engagements: e.union(e.array(rr), e.array(Qn))
1502
- }), _r = s({
1503
- status: e.array(cr)
1504
- }), br = s({
1469
+ reward_status: S
1470
+ }), la = e.guard(jn), ma = e.guard(ia), q = i({ count: e.number() }), da = i({ first_visit: e.bool() }), ga = i({
1471
+ engagements: e.union(e.array(na), e.array(Nn))
1472
+ }), pa = i({
1473
+ status: e.array(sa)
1474
+ }), _a = i({
1505
1475
  engagements_counts: e.record(e.number())
1506
- }), yr = s({
1507
- engagements: e.array(ir),
1476
+ }), ba = i({
1477
+ engagements: e.array(oa),
1508
1478
  next_token: e.string().optional()
1509
- }), hr = e.guard(ur), fr = s({
1510
- claimed_items: e.array(lr)
1511
- }), wr = s({
1479
+ }), ya = e.guard(ca), ha = i({
1480
+ claimed_items: e.array(ua)
1481
+ }), fa = i({
1512
1482
  rewards: e.array(R)
1513
- }), kr = s({
1514
- reward_status: P
1515
- }), vr = s({
1483
+ }), wa = i({
1484
+ reward_status: S
1485
+ }), ka = i({
1516
1486
  user_rewards: e.array(R),
1517
1487
  next_token: e.string().optional()
1518
- }), Rr = s({
1488
+ }), va = i({
1519
1489
  unclaimed: e.number()
1520
- }), Cr = s({
1490
+ }), Ra = i({
1521
1491
  scene: e.string()
1522
- }), Vr = s({
1492
+ }), Ca = i({
1523
1493
  params: e.string()
1524
- }), jr = s({
1494
+ }), Va = i({
1525
1495
  img: e.string()
1526
- }), Tr = e.guard(In), qr = e.guard(Wn), xr = e.guard(
1496
+ }), ja = e.guard(Fn), Ta = e.guard(Yn), qa = e.guard(
1527
1497
  e.object({
1528
- candidate_votes: e.array(er)
1498
+ candidate_votes: e.array(Wn)
1529
1499
  })
1530
- ), Lr = e.guard(ae), K = e.guard(Hn), Sr = e.guard(Kn), Ur = e.guard(zn), Pr = e.guard(Jn), Er = e.guard(Zn), $r = e.guard(An);
1531
- class Va {
1500
+ ), xa = e.guard(ae), M = e.guard(Kn), La = e.guard(Mn), Ua = e.guard(Hn), Sa = e.guard(zn), Pa = e.guard(Jn), Ea = e.guard(Dn);
1501
+ class Cr {
1532
1502
  token;
1533
1503
  event = 0;
1534
1504
  req;
@@ -1540,12 +1510,12 @@ class Va {
1540
1510
  *
1541
1511
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
1542
1512
  */
1543
- async verifyMobileAllowed(t, n, r) {
1544
- const { data: a } = await this.req.get("verify-mobile-allowed", dr, {
1545
- ...r,
1513
+ async verifyMobileAllowed(t, n, a) {
1514
+ const { data: r } = await this.req.get("verify-mobile-allowed", ma, {
1515
+ ...a,
1546
1516
  params: { game_id: t, mobile: n }
1547
1517
  });
1548
- return a;
1518
+ return r;
1549
1519
  }
1550
1520
  /**
1551
1521
  * 获取运营活动的基础配置信息
@@ -1553,7 +1523,7 @@ class Va {
1553
1523
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
1554
1524
  */
1555
1525
  async getConfig(t) {
1556
- const { data: n } = await this.req.get(`event/${this.event}/event-config`, mr, t);
1526
+ const { data: n } = await this.req.get(`event/${this.event}/event-config`, la, t);
1557
1527
  return n;
1558
1528
  }
1559
1529
  /**
@@ -1562,11 +1532,11 @@ class Va {
1562
1532
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=ejPOcWMvT1
1563
1533
  */
1564
1534
  async getEngagementsUserCount(t, n) {
1565
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagement-count`, x, {
1535
+ const { data: a } = await this.req.get(`event/${this.event}/feature-engagement-count`, q, {
1566
1536
  ...n,
1567
1537
  params: { feature_id: t, type: "user" }
1568
1538
  });
1569
- return r?.count ?? null;
1539
+ return a?.count ?? null;
1570
1540
  }
1571
1541
  /**
1572
1542
  * 获取某个玩法参与次数
@@ -1574,11 +1544,11 @@ class Va {
1574
1544
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=ejPOcWMvT1
1575
1545
  */
1576
1546
  async getEngagementsCount(t, n) {
1577
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagement-count`, x, {
1547
+ const { data: a } = await this.req.get(`event/${this.event}/feature-engagement-count`, q, {
1578
1548
  ...n,
1579
1549
  params: { feature_id: t, type: "engagement" }
1580
1550
  });
1581
- return r?.count ?? null;
1551
+ return a?.count ?? null;
1582
1552
  }
1583
1553
  /**
1584
1554
  * 获取某个玩法的参与记录(和特定用户无关)
@@ -1588,11 +1558,11 @@ class Va {
1588
1558
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
1589
1559
  */
1590
1560
  async getEngagements(t, n) {
1591
- const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, pr, {
1561
+ const { data: a } = await this.req.get(`event/${this.event}/feature-engagements`, ga, {
1592
1562
  ...n,
1593
1563
  params: { feature_id: t }
1594
1564
  });
1595
- return r?.engagements || [];
1565
+ return a?.engagements || [];
1596
1566
  }
1597
1567
  /**
1598
1568
  * 用户访问某个活动或玩法
@@ -1601,15 +1571,15 @@ class Va {
1601
1571
  */
1602
1572
  async visit(t, n) {
1603
1573
  await this.token.autoLogin();
1604
- const { data: r, code: a, message: o } = await this.req.post(
1574
+ const { data: a, code: r, message: o } = await this.req.post(
1605
1575
  `event/${this.event}/visit`,
1606
1576
  c(t || {}),
1607
- gr,
1577
+ da,
1608
1578
  n
1609
1579
  );
1610
- return r ?? {
1580
+ return a ?? {
1611
1581
  message: o,
1612
- error: a
1582
+ error: r
1613
1583
  };
1614
1584
  }
1615
1585
  /**
@@ -1621,12 +1591,12 @@ class Va {
1621
1591
  */
1622
1592
  async getUserFeatureStatus(t, n) {
1623
1593
  if (!await this.token.autoLogin()) return [];
1624
- const { data: r } = await this.req.get("event/user-feature-status", _r, {
1594
+ const { data: a } = await this.req.get("event/user-feature-status", pa, {
1625
1595
  ...n,
1626
1596
  message: !1,
1627
1597
  params: c({ ...t, event_id: this.event })
1628
1598
  });
1629
- return r?.status || [];
1599
+ return a?.status || [];
1630
1600
  }
1631
1601
  /**
1632
1602
  * 获取用户在目标活动下的某个玩法的参与次数
@@ -1635,11 +1605,11 @@ class Va {
1635
1605
  */
1636
1606
  async getUserEngagementCount(t, n) {
1637
1607
  if (!await this.token.autoLogin()) return {};
1638
- const { data: r } = await this.req.get("event/user-engagements-count", br, {
1608
+ const { data: a } = await this.req.get("event/user-engagements-count", _a, {
1639
1609
  message: !1,
1640
1610
  params: c({ ...n, event_id: this.event, feature_id: t })
1641
1611
  });
1642
- return r?.engagements_counts || {};
1612
+ return a?.engagements_counts || {};
1643
1613
  }
1644
1614
  /**
1645
1615
  * 获取当前登录用户参与某个玩法的记录
@@ -1648,14 +1618,14 @@ class Va {
1648
1618
  *
1649
1619
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=NFDdV1dwWb
1650
1620
  */
1651
- async getUserEngagements(t, n, r) {
1621
+ async getUserEngagements(t, n, a) {
1652
1622
  if (!await this.token.autoLogin())
1653
1623
  return {
1654
1624
  engagements: [],
1655
1625
  next_token: ""
1656
1626
  };
1657
- const { data: a } = await this.req.get("event/user-engagements", yr, {
1658
- ...r,
1627
+ const { data: r } = await this.req.get("event/user-engagements", ba, {
1628
+ ...a,
1659
1629
  params: c({
1660
1630
  max_results: 20,
1661
1631
  ...n,
@@ -1664,8 +1634,8 @@ class Va {
1664
1634
  })
1665
1635
  });
1666
1636
  return {
1667
- engagements: a?.engagements || [],
1668
- next_token: a?.next_token || ""
1637
+ engagements: r?.engagements || [],
1638
+ next_token: r?.next_token || ""
1669
1639
  };
1670
1640
  }
1671
1641
  /**
@@ -1677,17 +1647,17 @@ class Va {
1677
1647
  *
1678
1648
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=vuOyrcry3S
1679
1649
  */
1680
- async engage(t, n, r, a) {
1650
+ async engage(t, n, a, r) {
1681
1651
  await this.token.autoLogin();
1682
1652
  const { data: o, code: d, message: g } = await this.req.post(
1683
1653
  `event/${this.event}/engage`,
1684
1654
  c({
1685
1655
  feature_id: t,
1686
1656
  engagement: n,
1687
- ...r
1657
+ ...a
1688
1658
  }),
1689
- hr,
1690
- a
1659
+ ya,
1660
+ r
1691
1661
  );
1692
1662
  return o ?? {
1693
1663
  message: g,
@@ -1703,18 +1673,18 @@ class Va {
1703
1673
  */
1704
1674
  async claimRewards(t, n) {
1705
1675
  await this.token.autoLogin();
1706
- const { data: r, code: a, message: o } = await this.req.post(
1676
+ const { data: a, code: r, message: o } = await this.req.post(
1707
1677
  "event/claim-rewards",
1708
1678
  c({
1709
1679
  ...t,
1710
1680
  server_id: t.server_id ? +t.server_id : void 0
1711
1681
  }),
1712
- fr,
1682
+ ha,
1713
1683
  n
1714
1684
  );
1715
- return r?.claimed_items || {
1685
+ return a?.claimed_items || {
1716
1686
  message: o,
1717
- error: a
1687
+ error: r
1718
1688
  };
1719
1689
  }
1720
1690
  /**
@@ -1724,18 +1694,18 @@ class Va {
1724
1694
  */
1725
1695
  async claimRewardsV2(t, n) {
1726
1696
  await this.token.autoLogin();
1727
- const { data: r, code: a, message: o } = await this.req.post(
1697
+ const { data: a, code: r, message: o } = await this.req.post(
1728
1698
  "event/claim-rewards-v2",
1729
1699
  c({
1730
1700
  ...t,
1731
1701
  server_id: t.server_id ? +t.server_id : void 0
1732
1702
  }),
1733
- wr,
1703
+ fa,
1734
1704
  n
1735
1705
  );
1736
- return r?.rewards || {
1706
+ return a?.rewards || {
1737
1707
  message: o,
1738
- error: a
1708
+ error: r
1739
1709
  };
1740
1710
  }
1741
1711
  /**
@@ -1745,15 +1715,15 @@ class Va {
1745
1715
  */
1746
1716
  async claimWeixinHongbao(t, n) {
1747
1717
  await this.token.autoLogin();
1748
- const { data: r, code: a, message: o } = await this.req.post(
1718
+ const { data: a, code: r, message: o } = await this.req.post(
1749
1719
  "event/claim-weixin-hongbao",
1750
1720
  { reward_id: t },
1751
- kr,
1721
+ wa,
1752
1722
  n
1753
1723
  );
1754
- return r || {
1724
+ return a || {
1755
1725
  message: o,
1756
- error: a
1726
+ error: r
1757
1727
  };
1758
1728
  }
1759
1729
  /**
@@ -1764,15 +1734,15 @@ class Va {
1764
1734
  async verifyActivationKey(t, n) {
1765
1735
  if (!this.token.isLoggedIn)
1766
1736
  return { error: "not_logged_in" };
1767
- const { ok: r, code: a, message: o } = await this.req.post(
1737
+ const { ok: a, code: r, message: o } = await this.req.post(
1768
1738
  "verify-activation-key",
1769
1739
  { activation_key: t },
1770
1740
  null,
1771
1741
  { message: !1, ...n }
1772
1742
  );
1773
- return r || {
1743
+ return a || {
1774
1744
  message: o,
1775
- error: a
1745
+ error: r
1776
1746
  };
1777
1747
  }
1778
1748
  /**
@@ -1786,15 +1756,15 @@ class Va {
1786
1756
  user_rewards: [],
1787
1757
  next_token: ""
1788
1758
  };
1789
- const { data: r } = await this.req.post(
1759
+ const { data: a } = await this.req.post(
1790
1760
  "event/user-rewards",
1791
1761
  c({ max_results: 20, ...t, event_id: this.event }),
1792
- vr,
1762
+ ka,
1793
1763
  n
1794
1764
  );
1795
1765
  return {
1796
- user_rewards: r?.user_rewards || [],
1797
- next_token: r?.next_token || ""
1766
+ user_rewards: a?.user_rewards || [],
1767
+ next_token: a?.next_token || ""
1798
1768
  };
1799
1769
  }
1800
1770
  /**
@@ -1807,12 +1777,12 @@ class Va {
1807
1777
  return {
1808
1778
  unclaimed: 0
1809
1779
  };
1810
- const { data: r } = await this.req.get("event/user-rewards-count", Rr, {
1780
+ const { data: a } = await this.req.get("event/user-rewards-count", va, {
1811
1781
  ...n,
1812
1782
  params: c({ ...t })
1813
1783
  });
1814
1784
  return {
1815
- unclaimed: r?.unclaimed || 0
1785
+ unclaimed: a?.unclaimed || 0
1816
1786
  };
1817
1787
  }
1818
1788
  /**
@@ -1822,11 +1792,11 @@ class Va {
1822
1792
  */
1823
1793
  async getUserItemCount(t, n) {
1824
1794
  if (!await this.token.autoLogin()) return null;
1825
- const { data: r } = await this.req.get(`event/${this.event}/user-item-count`, x, {
1795
+ const { data: a } = await this.req.get(`event/${this.event}/user-item-count`, q, {
1826
1796
  ...n,
1827
1797
  params: { item_id: t }
1828
1798
  });
1829
- return r?.count ?? null;
1799
+ return a?.count ?? null;
1830
1800
  }
1831
1801
  /**
1832
1802
  * 填写实物奖励收货地址,返回 null 表示未登录
@@ -1835,15 +1805,15 @@ class Va {
1835
1805
  */
1836
1806
  async submitUserRewardAddress(t, n) {
1837
1807
  if (!await this.token.autoLogin()) return null;
1838
- const { ok: r, code: a, message: o } = await this.req.post(
1808
+ const { ok: a, code: r, message: o } = await this.req.post(
1839
1809
  `event/${this.event}/user-reward-address`,
1840
1810
  t,
1841
1811
  null,
1842
1812
  n
1843
1813
  );
1844
- return r || {
1814
+ return a || {
1845
1815
  message: o,
1846
- error: a
1816
+ error: r
1847
1817
  };
1848
1818
  }
1849
1819
  /**
@@ -1855,11 +1825,11 @@ class Va {
1855
1825
  */
1856
1826
  async getUnlimitQrcodeScene(t, n) {
1857
1827
  if (!await this.token.autoLogin()) return null;
1858
- const { data: r } = await this.req.get("event/unlimit-qrcode-scene", Cr, {
1828
+ const { data: a } = await this.req.get("event/unlimit-qrcode-scene", Ra, {
1859
1829
  ...n,
1860
1830
  params: { params: t }
1861
1831
  });
1862
- return r?.scene ?? null;
1832
+ return a?.scene ?? null;
1863
1833
  }
1864
1834
  /**
1865
1835
  * 根据小程序码携带 scene 值,获取对应的前端所需参数
@@ -1869,11 +1839,11 @@ class Va {
1869
1839
  * @param scene - 小程序码 scene 值
1870
1840
  */
1871
1841
  async getParamsByQrcodeScene(t, n) {
1872
- const { data: r } = await this.req.get("event/params-by-qrcode-scene", Vr, {
1842
+ const { data: a } = await this.req.get("event/params-by-qrcode-scene", Ca, {
1873
1843
  ...n,
1874
1844
  params: { scene: t }
1875
1845
  });
1876
- return r?.params ?? null;
1846
+ return a?.params ?? null;
1877
1847
  }
1878
1848
  /**
1879
1849
  * 生成不限制的带参数的小程序码(dataURI 格式的小程序码图片)
@@ -1882,13 +1852,13 @@ class Va {
1882
1852
  */
1883
1853
  async generateUnlimitQrcode(t, n) {
1884
1854
  if (!await this.token.autoLogin()) return null;
1885
- const { data: r } = await this.req.post(
1855
+ const { data: a } = await this.req.post(
1886
1856
  "event/unlimit-qrcode",
1887
1857
  c(t),
1888
- jr,
1858
+ Va,
1889
1859
  n
1890
1860
  );
1891
- return r?.img ?? null;
1861
+ return a?.img ?? null;
1892
1862
  }
1893
1863
  /**
1894
1864
  * 本接口用于获取任务玩法的实时进度数据,支持部分任务进度的查询:累计充值金额 / 累计游戏内活跃值 / 账号等级目标
@@ -1897,14 +1867,14 @@ class Va {
1897
1867
  */
1898
1868
  async getQuestProgress(t, n) {
1899
1869
  if (!await this.token.autoLogin()) return null;
1900
- const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, Tr, {
1870
+ const { data: a, code: r, message: o } = await this.req.get(`event/${this.event}/quest-progress`, ja, {
1901
1871
  message: !1,
1902
1872
  ...n,
1903
1873
  params: { feature_id: t }
1904
1874
  });
1905
- return r || {
1875
+ return a || {
1906
1876
  message: o,
1907
- error: a
1877
+ error: r
1908
1878
  };
1909
1879
  }
1910
1880
  /**
@@ -1916,15 +1886,15 @@ class Va {
1916
1886
  */
1917
1887
  async vote2Rewards(t, n) {
1918
1888
  if (!await this.token.autoLogin()) return null;
1919
- const { data: r, code: a, message: o } = await this.req.post(
1889
+ const { data: a, code: r, message: o } = await this.req.post(
1920
1890
  "event/vote2/rewards",
1921
1891
  { feature_id: t, event_id: this.event },
1922
- qr,
1892
+ Ta,
1923
1893
  n
1924
1894
  );
1925
- return r || {
1895
+ return a || {
1926
1896
  message: o,
1927
- code: a
1897
+ code: r
1928
1898
  };
1929
1899
  }
1930
1900
  /**
@@ -1934,11 +1904,11 @@ class Va {
1934
1904
  */
1935
1905
  async getVote2Leaderboard(t, n) {
1936
1906
  if (!await this.token.autoLogin()) return [];
1937
- const { data: r } = await this.req.get("event/vote2/leaderboard", xr, {
1907
+ const { data: a } = await this.req.get("event/vote2/leaderboard", qa, {
1938
1908
  ...n,
1939
1909
  params: { feature_id: t, event_id: this.event }
1940
1910
  });
1941
- return r?.candidate_votes || [];
1911
+ return a?.candidate_votes || [];
1942
1912
  }
1943
1913
  /**
1944
1914
  * 充值返还玩法的查询接口,查询返还数据
@@ -1947,13 +1917,13 @@ class Va {
1947
1917
  */
1948
1918
  async getCashbackQuery(t, n) {
1949
1919
  if (!await this.token.autoLogin()) return null;
1950
- const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", Lr, {
1920
+ const { data: a, code: r, message: o } = await this.req.get("event/cashback/query", xa, {
1951
1921
  ...n,
1952
1922
  params: { feature_id: t, event_id: this.event }
1953
1923
  });
1954
- return r || {
1924
+ return a || {
1955
1925
  message: o,
1956
- error: a
1926
+ error: r
1957
1927
  };
1958
1928
  }
1959
1929
  /**
@@ -1963,16 +1933,16 @@ class Va {
1963
1933
  */
1964
1934
  async getUgcRecord(t, n) {
1965
1935
  if (!await this.token.autoLogin()) return null;
1966
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", K, {
1936
+ const { data: a, code: r, message: o } = await this.req.get("event/ugc/my", M, {
1967
1937
  ...n,
1968
1938
  params: {
1969
1939
  max_results: 20,
1970
1940
  ...t
1971
1941
  }
1972
1942
  });
1973
- return r || {
1943
+ return a || {
1974
1944
  message: o,
1975
- error: a
1945
+ error: r
1976
1946
  };
1977
1947
  }
1978
1948
  /**
@@ -1982,15 +1952,15 @@ class Va {
1982
1952
  */
1983
1953
  async getUgcMyCount(t, n) {
1984
1954
  if (!await this.token.autoLogin()) return null;
1985
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/my-count", Ur, {
1955
+ const { data: a, code: r, message: o } = await this.req.get("event/ugc/my-count", Ua, {
1986
1956
  ...n,
1987
1957
  params: {
1988
1958
  ...t
1989
1959
  }
1990
1960
  });
1991
- return r || {
1961
+ return a || {
1992
1962
  message: o,
1993
- error: a
1963
+ error: r
1994
1964
  };
1995
1965
  }
1996
1966
  /**
@@ -2002,15 +1972,15 @@ class Va {
2002
1972
  *
2003
1973
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=xhGGpJEbol
2004
1974
  */
2005
- async ugcUploadImage(t, n, r) {
1975
+ async ugcUploadImage(t, n, a) {
2006
1976
  if (!await this.token.autoLogin()) return null;
2007
- const { data: a, code: o, message: d } = await this.req.post(
1977
+ const { data: r, code: o, message: d } = await this.req.post(
2008
1978
  "event/ugc/upload-image",
2009
1979
  { feature_id: t, ...n, event_id: this.event },
2010
- Pr,
2011
- r
1980
+ Sa,
1981
+ a
2012
1982
  );
2013
- return a || {
1983
+ return r || {
2014
1984
  message: d,
2015
1985
  error: o
2016
1986
  };
@@ -2021,16 +1991,16 @@ class Va {
2021
1991
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=WzvcAPjHAh
2022
1992
  */
2023
1993
  async getUgcRecommendation(t, n) {
2024
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", K, {
1994
+ const { data: a, code: r, message: o } = await this.req.get("event/ugc/recommendation", M, {
2025
1995
  ...n,
2026
1996
  params: {
2027
1997
  feature_id: t,
2028
1998
  event_id: this.event
2029
1999
  }
2030
2000
  });
2031
- return r || {
2001
+ return a || {
2032
2002
  message: o,
2033
- error: a
2003
+ error: r
2034
2004
  };
2035
2005
  }
2036
2006
  /**
@@ -2038,9 +2008,9 @@ class Va {
2038
2008
  *
2039
2009
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=VRYN6d3rbd
2040
2010
  */
2041
- async getUgcs(t, n, r) {
2042
- const { data: a, code: o, message: d } = await this.req.get("event/ugc/ugcs", Sr, {
2043
- ...r,
2011
+ async getUgcs(t, n, a) {
2012
+ const { data: r, code: o, message: d } = await this.req.get("event/ugc/ugcs", La, {
2013
+ ...a,
2044
2014
  params: {
2045
2015
  event_id: this.event,
2046
2016
  feature_id: t,
@@ -2048,7 +2018,7 @@ class Va {
2048
2018
  ...n
2049
2019
  }
2050
2020
  });
2051
- return a || {
2021
+ return r || {
2052
2022
  message: d,
2053
2023
  error: o
2054
2024
  };
@@ -2065,16 +2035,16 @@ class Va {
2065
2035
  */
2066
2036
  async getUgcLeaderboard(t, n) {
2067
2037
  if (!await this.token.autoLogin()) return null;
2068
- const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", Er, {
2038
+ const { data: a, code: r, message: o } = await this.req.get("event/ugc/leaderboard", Pa, {
2069
2039
  ...n,
2070
2040
  params: {
2071
2041
  feature_id: t,
2072
2042
  event_id: this.event
2073
2043
  }
2074
2044
  });
2075
- return r || {
2045
+ return a || {
2076
2046
  message: o,
2077
- error: a
2047
+ error: r
2078
2048
  };
2079
2049
  }
2080
2050
  /**
@@ -2084,25 +2054,25 @@ class Va {
2084
2054
  */
2085
2055
  async getRedeemItemStocks(t, n) {
2086
2056
  if (!await this.token.autoLogin()) return null;
2087
- const { data: r, code: a, message: o } = await this.req.get("event/redeem/item-stocks", $r, {
2057
+ const { data: a, code: r, message: o } = await this.req.get("event/redeem/item-stocks", Ea, {
2088
2058
  ...n,
2089
2059
  params: {
2090
2060
  event_id: this.event,
2091
2061
  feature_id: t
2092
2062
  }
2093
2063
  });
2094
- return r || {
2064
+ return a || {
2095
2065
  message: o,
2096
- error: a
2066
+ error: r
2097
2067
  };
2098
2068
  }
2099
2069
  }
2100
- const Fr = {
2070
+ const $a = {
2101
2071
  /** 所有人均可以发帖 */
2102
2072
  All: "all",
2103
2073
  /** 指定用户可发帖 */
2104
2074
  Limit: "limit"
2105
- }, Ir = e.string().enum(Fr).lock(), Dr = {
2075
+ }, Fa = e.string().enum($a).lock(), Ia = {
2106
2076
  /** 待审核(仅自己可见) */
2107
2077
  Pending: "pending",
2108
2078
  /** 审核通过 */
@@ -2111,14 +2081,14 @@ const Fr = {
2111
2081
  Failed: "failed",
2112
2082
  /** 嫌疑(仅自己可见) */
2113
2083
  Suspect: "suspect"
2114
- }, ie = e.string().enum(Dr).lock(), Ar = {
2084
+ }, oe = e.string().enum(Ia).lock(), Da = {
2115
2085
  /** 系统通知 */
2116
2086
  System: "system",
2117
2087
  /** 评论我的 */
2118
2088
  Comment: "comment",
2119
2089
  /** 点赞通知 */
2120
2090
  Like: "like"
2121
- }, ja = e.string().enum(Ar).lock(), m = {
2091
+ }, Vr = e.string().enum(Da).lock(), m = {
2122
2092
  /** 系统通知 */
2123
2093
  System: "system",
2124
2094
  /** 帖子被置顶 */
@@ -2143,24 +2113,24 @@ const Fr = {
2143
2113
  ReplyLiked: "reply_liked",
2144
2114
  /** 回复被删除 */
2145
2115
  ReplyDeleted: "reply_deleted"
2146
- }, Gr = e.string().enum(m).lock(), se = e.object({
2116
+ }, Aa = e.string().enum(m).lock(), ie = e.object({
2147
2117
  forum_id: e.number(),
2148
2118
  icon_url: e.string(),
2149
2119
  name: e.string(),
2150
2120
  tags: e.array(e.string()),
2151
2121
  sort: e.number(),
2152
- mode: Ir,
2122
+ mode: Fa,
2153
2123
  member_ids: e.array(e.number())
2154
- }).lock(), I = e.object({
2124
+ }).lock(), F = e.object({
2155
2125
  topic_id: e.number(),
2156
2126
  cover_url: e.string(),
2157
2127
  name: e.string(),
2158
2128
  description: e.string(),
2159
2129
  tags: e.array(e.string()),
2160
2130
  post_num: e.number()
2161
- }).lock(), D = e.object({
2131
+ }).lock(), I = e.object({
2162
2132
  post_id: e.number(),
2163
- forum: se,
2133
+ forum: ie,
2164
2134
  posted_by: e.string(),
2165
2135
  nickname: e.string(),
2166
2136
  avatar_url: e.string(),
@@ -2172,15 +2142,15 @@ const Fr = {
2172
2142
  comments_num: e.number(),
2173
2143
  liked: e.bool(),
2174
2144
  image_urls: e.array(e.string()),
2175
- topics: e.array(I),
2145
+ topics: e.array(F),
2176
2146
  event_ids: e.array(e.number()),
2177
2147
  is_pinned: e.bool(),
2178
2148
  is_highlighted: e.bool(),
2179
- status: ie,
2149
+ status: oe,
2180
2150
  create_time: e.number()
2181
- }).lock(), ce = e.object({
2151
+ }).lock(), se = e.object({
2182
2152
  err_msg: e.string().optional()
2183
- }).optional().lock(), Or = e.object({
2153
+ }).optional().lock(), Ga = e.object({
2184
2154
  reply_id: e.number(),
2185
2155
  reply_content: e.string().optional(),
2186
2156
  replied_by: e.string(),
@@ -2199,7 +2169,7 @@ const Fr = {
2199
2169
  content: e.string(),
2200
2170
  like_num: e.number(),
2201
2171
  liked: e.bool(),
2202
- reply_to: Or,
2172
+ reply_to: Ga,
2203
2173
  create_time: e.number()
2204
2174
  }).lock(), k = e.object({
2205
2175
  comment_id: e.number(),
@@ -2219,24 +2189,24 @@ const Fr = {
2219
2189
  liked: e.bool(),
2220
2190
  image_url: e.string(),
2221
2191
  create_time: e.number(),
2222
- status: ie,
2192
+ status: oe,
2223
2193
  replies: e.array(C).optional()
2224
- }).lock(), Nr = e.object({
2194
+ }).lock(), Oa = e.object({
2225
2195
  image_url: e.string(),
2226
2196
  upload_url: e.string(),
2227
2197
  existed: e.bool()
2228
- }).lock(), b = e.object({
2198
+ }).lock(), _ = e.object({
2229
2199
  notification_id: e.string(),
2230
- notification_type: Gr,
2200
+ notification_type: Aa,
2231
2201
  is_read: e.bool(),
2232
2202
  create_time: e.number(),
2233
2203
  origin_user_id: e.string(),
2234
2204
  origin_user_name: e.string(),
2235
2205
  origin_user_avatar_url: e.string()
2236
- }).lock(), Qr = e.object({
2206
+ }).lock(), Na = e.object({
2237
2207
  system_message_subject: e.string(),
2238
2208
  system_message_content: e.string()
2239
- }).lock(), A = e.object({
2209
+ }).lock(), D = e.object({
2240
2210
  post_id: e.number(),
2241
2211
  post_subject: e.string(),
2242
2212
  post_summary: e.string(),
@@ -2244,84 +2214,84 @@ const Fr = {
2244
2214
  }).lock(), V = e.object({
2245
2215
  comment_id: e.number(),
2246
2216
  comment_content: e.string()
2247
- }).lock(), G = e.object({
2217
+ }).lock(), A = e.object({
2248
2218
  reply_id: e.number(),
2249
2219
  reply_content: e.string()
2250
- }).lock(), Br = e.object({
2251
- ...b.shape,
2252
- ...Qr.shape,
2220
+ }).lock(), Qa = e.object({
2221
+ ..._.shape,
2222
+ ...Na.shape,
2253
2223
  notification_type: e.string().enum(m.System)
2254
- }), Mr = e.object({
2255
- ...b.shape,
2256
- ...A.shape,
2224
+ }), Ba = e.object({
2225
+ ..._.shape,
2226
+ ...D.shape,
2257
2227
  notification_type: e.string().enum(
2258
2228
  m.PostPinned,
2259
2229
  m.PostHighlighted,
2260
2230
  m.PostDeleted,
2261
2231
  m.PostLiked
2262
2232
  )
2263
- }), Kr = e.object({
2264
- ...b.shape,
2265
- ...A.shape,
2233
+ }), Ma = e.object({
2234
+ ..._.shape,
2235
+ ...D.shape,
2266
2236
  ...V.shape,
2267
2237
  notification_type: e.string().enum(m.PostCommented)
2268
- }), Hr = e.object({
2269
- ...b.shape,
2238
+ }), Ka = e.object({
2239
+ ..._.shape,
2270
2240
  ...V.shape,
2271
- ...G.shape,
2241
+ ...A.shape,
2272
2242
  notification_type: e.string().enum(m.CommentReplied)
2273
- }), zr = e.object({
2274
- ...b.shape,
2243
+ }), Ha = e.object({
2244
+ ..._.shape,
2275
2245
  ...V.shape,
2276
- ...A.shape,
2246
+ ...D.shape,
2277
2247
  notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
2278
- }), Jr = e.object({
2279
- ...b.shape,
2280
- ...G.shape,
2248
+ }), za = e.object({
2249
+ ..._.shape,
2250
+ ...A.shape,
2281
2251
  notification_type: e.string().enum(m.ReplyReplied),
2282
2252
  comment_id: e.number(),
2283
2253
  reply_to_reply_id: e.number(),
2284
2254
  reply_to_reply_content: e.string()
2285
- }), Zr = e.object({
2286
- ...b.shape,
2287
- ...G.shape,
2255
+ }), Ja = e.object({
2256
+ ..._.shape,
2257
+ ...A.shape,
2288
2258
  ...V.shape,
2289
2259
  notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
2290
- }), Xr = e.union(
2291
- Br,
2292
- Mr,
2293
- Kr,
2294
- Hr,
2295
- zr,
2296
- Jr,
2297
- Zr
2298
- ).satisfies().lock(), Yr = s({ forums: e.array(se) }), Wr = s({ topics: e.array(I) }), ea = s({ topic: I }), ta = s({ post: D }), H = s({
2299
- posts: e.array(D),
2260
+ }), Za = e.union(
2261
+ Qa,
2262
+ Ba,
2263
+ Ma,
2264
+ Ka,
2265
+ Ha,
2266
+ za,
2267
+ Ja
2268
+ ).satisfies().lock(), Xa = i({ forums: e.array(ie) }), Ya = i({ topics: e.array(F) }), Wa = i({ topic: F }), er = i({ post: I }), K = i({
2269
+ posts: e.array(I),
2300
2270
  next_token: e.string().optional()
2301
- }), na = s({
2302
- post: D.clone().optional(),
2303
- antispam: ce.clone().optional()
2304
- }), ra = s({
2271
+ }), tr = i({
2272
+ post: I.clone().optional(),
2273
+ antispam: se.clone().optional()
2274
+ }), nr = i({
2305
2275
  replies: e.array(C),
2306
2276
  next_token: e.string().optional()
2307
- }), aa = s({ reply: C }), oa = s({
2277
+ }), ar = i({ reply: C }), rr = i({
2308
2278
  reply: C.clone().optional(),
2309
- antispam: ce.clone().optional()
2310
- }), ia = s({ comment: k }), sa = s({
2279
+ antispam: se.clone().optional()
2280
+ }), or = i({ comment: k }), ir = i({
2311
2281
  comments: e.array(k),
2312
2282
  next_token: e.string().optional()
2313
- }), ca = s({
2283
+ }), sr = i({
2314
2284
  comment: k.clone().optional(),
2315
2285
  antispam: k.clone().optional()
2316
- }), ua = e.guard(Nr), la = s({
2317
- notifications: e.array(Xr),
2286
+ }), cr = e.guard(Oa), ur = i({
2287
+ notifications: e.array(Za),
2318
2288
  next_token: e.string().optional()
2319
- }), ma = s({
2289
+ }), lr = i({
2320
2290
  system: e.number(),
2321
2291
  comment: e.number(),
2322
2292
  like: e.number()
2323
2293
  });
2324
- class Ta {
2294
+ class jr {
2325
2295
  token;
2326
2296
  req;
2327
2297
  constructor(t) {
@@ -2333,7 +2303,7 @@ class Ta {
2333
2303
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
2334
2304
  */
2335
2305
  async getForums(t) {
2336
- const { data: n } = await this.req.get("community/forums", Yr, t);
2306
+ const { data: n } = await this.req.get("community/forums", Xa, t);
2337
2307
  return n?.forums || [];
2338
2308
  }
2339
2309
  /**
@@ -2342,7 +2312,7 @@ class Ta {
2342
2312
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
2343
2313
  */
2344
2314
  async getTopics(t) {
2345
- const { data: n } = await this.req.get("community/topics", Wr, t);
2315
+ const { data: n } = await this.req.get("community/topics", Ya, t);
2346
2316
  return n?.topics || [];
2347
2317
  }
2348
2318
  /**
@@ -2351,11 +2321,11 @@ class Ta {
2351
2321
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
2352
2322
  */
2353
2323
  async getTopic(t, n) {
2354
- const { data: r, code: a } = await this.req.get("community/topic", ea, {
2324
+ const { data: a, code: r } = await this.req.get("community/topic", Wa, {
2355
2325
  ...n,
2356
2326
  params: { topic_id: t }
2357
2327
  });
2358
- return r?.topic ?? { error: a };
2328
+ return a?.topic ?? { error: r };
2359
2329
  }
2360
2330
  /**
2361
2331
  * 获取社区帖子列表
@@ -2363,13 +2333,13 @@ class Ta {
2363
2333
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
2364
2334
  */
2365
2335
  async getPosts(t, n) {
2366
- const { data: r, code: a, message: o } = await this.req.get("community/posts", H, {
2336
+ const { data: a, code: r, message: o } = await this.req.get("community/posts", K, {
2367
2337
  ...n,
2368
2338
  params: c(t)
2369
2339
  });
2370
- return r ?? {
2340
+ return a ?? {
2371
2341
  message: o,
2372
- error: a
2342
+ error: r
2373
2343
  };
2374
2344
  }
2375
2345
  /**
@@ -2377,10 +2347,10 @@ class Ta {
2377
2347
  *
2378
2348
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
2379
2349
  */
2380
- async getPinnedPosts(t, n, r, a) {
2381
- const { data: o, code: d, message: g } = await this.req.get("community/pinned-posts", H, {
2382
- ...a,
2383
- params: c({ forum_id: t, max_results: n, next_token: r })
2350
+ async getPinnedPosts(t, n, a, r) {
2351
+ const { data: o, code: d, message: g } = await this.req.get("community/pinned-posts", K, {
2352
+ ...r,
2353
+ params: c({ forum_id: t, max_results: n, next_token: a })
2384
2354
  });
2385
2355
  return o ?? {
2386
2356
  message: g,
@@ -2393,13 +2363,13 @@ class Ta {
2393
2363
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
2394
2364
  */
2395
2365
  async getPost(t, n) {
2396
- const { data: r, code: a, message: o } = await this.req.get("community/post", ta, {
2366
+ const { data: a, code: r, message: o } = await this.req.get("community/post", er, {
2397
2367
  ...n,
2398
2368
  params: { post_id: t }
2399
2369
  });
2400
- return r?.post ?? {
2370
+ return a?.post ?? {
2401
2371
  message: o,
2402
- error: a
2372
+ error: r
2403
2373
  };
2404
2374
  }
2405
2375
  /**
@@ -2408,15 +2378,15 @@ class Ta {
2408
2378
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=M5okHBuaVk
2409
2379
  */
2410
2380
  async post(t, n) {
2411
- const { data: r, code: a, message: o } = await this.req.post(
2381
+ const { data: a, code: r, message: o } = await this.req.post(
2412
2382
  "community/post",
2413
2383
  c(t),
2414
- na,
2384
+ tr,
2415
2385
  n
2416
2386
  );
2417
- return r ?? {
2387
+ return a ?? {
2418
2388
  message: o,
2419
- error: a
2389
+ error: r
2420
2390
  };
2421
2391
  }
2422
2392
  /**
@@ -2425,13 +2395,13 @@ class Ta {
2425
2395
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
2426
2396
  */
2427
2397
  async getComments(t, n) {
2428
- const { data: r, code: a, message: o } = await this.req.get("community/comments", sa, {
2398
+ const { data: a, code: r, message: o } = await this.req.get("community/comments", ir, {
2429
2399
  ...n,
2430
2400
  params: c(t)
2431
2401
  });
2432
- return r ?? {
2402
+ return a ?? {
2433
2403
  message: o,
2434
- error: a
2404
+ error: r
2435
2405
  };
2436
2406
  }
2437
2407
  /**
@@ -2440,13 +2410,13 @@ class Ta {
2440
2410
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
2441
2411
  */
2442
2412
  async getComment(t, n) {
2443
- const { data: r, code: a, message: o } = await this.req.get("community/comment", ia, {
2413
+ const { data: a, code: r, message: o } = await this.req.get("community/comment", or, {
2444
2414
  ...n,
2445
2415
  params: { comment_id: t }
2446
2416
  });
2447
- return r?.comment ?? {
2417
+ return a?.comment ?? {
2448
2418
  message: o,
2449
- error: a
2419
+ error: r
2450
2420
  };
2451
2421
  }
2452
2422
  /**
@@ -2456,15 +2426,15 @@ class Ta {
2456
2426
  */
2457
2427
  async comment(t, n) {
2458
2428
  await this.token.autoLogin();
2459
- const { data: r, code: a, message: o } = await this.req.post(
2429
+ const { data: a, code: r, message: o } = await this.req.post(
2460
2430
  "community/comment",
2461
2431
  c(t),
2462
- ca,
2432
+ sr,
2463
2433
  n
2464
2434
  );
2465
- return r ?? {
2435
+ return a ?? {
2466
2436
  message: o,
2467
- error: a
2437
+ error: r
2468
2438
  };
2469
2439
  }
2470
2440
  /**
@@ -2473,13 +2443,13 @@ class Ta {
2473
2443
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
2474
2444
  */
2475
2445
  async getReplies(t, n) {
2476
- const { data: r } = await this.req.get("community/replies", ra, {
2446
+ const { data: a } = await this.req.get("community/replies", nr, {
2477
2447
  ...n,
2478
2448
  params: c({ max_results: 20, ...t })
2479
2449
  });
2480
2450
  return {
2481
- replies: r?.replies || [],
2482
- next_token: r?.next_token || ""
2451
+ replies: a?.replies || [],
2452
+ next_token: a?.next_token || ""
2483
2453
  };
2484
2454
  }
2485
2455
  /**
@@ -2488,13 +2458,13 @@ class Ta {
2488
2458
  * https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
2489
2459
  */
2490
2460
  async getReply(t, n) {
2491
- const { data: r, code: a, message: o } = await this.req.get("community/reply", aa, {
2461
+ const { data: a, code: r, message: o } = await this.req.get("community/reply", ar, {
2492
2462
  ...n,
2493
2463
  params: { reply_id: t }
2494
2464
  });
2495
- return r?.reply ?? {
2465
+ return a?.reply ?? {
2496
2466
  message: o,
2497
- error: a
2467
+ error: r
2498
2468
  };
2499
2469
  }
2500
2470
  /**
@@ -2504,15 +2474,15 @@ class Ta {
2504
2474
  */
2505
2475
  async reply(t, n) {
2506
2476
  await this.token.autoLogin();
2507
- const { data: r, code: a, message: o } = await this.req.post(
2477
+ const { data: a, code: r, message: o } = await this.req.post(
2508
2478
  "community/reply",
2509
2479
  c(t),
2510
- oa,
2480
+ rr,
2511
2481
  n
2512
2482
  );
2513
- return r ?? {
2483
+ return a ?? {
2514
2484
  message: o,
2515
- error: a
2485
+ error: r
2516
2486
  };
2517
2487
  }
2518
2488
  /**
@@ -2522,15 +2492,15 @@ class Ta {
2522
2492
  */
2523
2493
  async like(t, n) {
2524
2494
  await this.token.autoLogin();
2525
- const { ok: r, code: a, message: o } = await this.req.post(
2495
+ const { ok: a, code: r, message: o } = await this.req.post(
2526
2496
  "community/like",
2527
2497
  { ...t, action: "like" },
2528
2498
  null,
2529
2499
  n
2530
2500
  );
2531
- return r || {
2501
+ return a || {
2532
2502
  message: o,
2533
- error: a
2503
+ error: r
2534
2504
  };
2535
2505
  }
2536
2506
  /**
@@ -2540,15 +2510,15 @@ class Ta {
2540
2510
  */
2541
2511
  async unlike(t, n) {
2542
2512
  await this.token.autoLogin();
2543
- const { ok: r, code: a, message: o } = await this.req.post(
2513
+ const { ok: a, code: r, message: o } = await this.req.post(
2544
2514
  "community/like",
2545
2515
  { ...t, action: "unlike" },
2546
2516
  null,
2547
2517
  n
2548
2518
  );
2549
- return r || {
2519
+ return a || {
2550
2520
  message: o,
2551
- error: a
2521
+ error: r
2552
2522
  };
2553
2523
  }
2554
2524
  /**
@@ -2558,11 +2528,11 @@ class Ta {
2558
2528
  */
2559
2529
  async getMediaPresignedUrl(t, n) {
2560
2530
  await this.token.autoLogin();
2561
- const { data: r } = await this.req.get("community/media-presign-url", ua, {
2531
+ const { data: a } = await this.req.get("community/media-presign-url", cr, {
2562
2532
  ...n,
2563
2533
  params: t
2564
2534
  });
2565
- return r;
2535
+ return a;
2566
2536
  }
2567
2537
  /**
2568
2538
  * 获取用户社区通知
@@ -2573,13 +2543,13 @@ class Ta {
2573
2543
  */
2574
2544
  async getNotifications(t, n) {
2575
2545
  await this.token.autoLogin();
2576
- const { data: r } = await this.req.get("community/notifications", la, {
2546
+ const { data: a } = await this.req.get("community/notifications", ur, {
2577
2547
  ...n,
2578
2548
  params: c({ max_results: 20, ...t })
2579
2549
  });
2580
2550
  return {
2581
- notifications: r?.notifications || [],
2582
- next_token: r?.next_token || ""
2551
+ notifications: a?.notifications || [],
2552
+ next_token: a?.next_token || ""
2583
2553
  };
2584
2554
  }
2585
2555
  /**
@@ -2591,7 +2561,7 @@ class Ta {
2591
2561
  if (!await this.token.autoLogin()) return null;
2592
2562
  const { data: n } = await this.req.get(
2593
2563
  "community/unread-notifications-count",
2594
- ma,
2564
+ lr,
2595
2565
  t
2596
2566
  );
2597
2567
  return n;
@@ -2603,21 +2573,21 @@ class Ta {
2603
2573
  */
2604
2574
  async clearUnreadNotifications(t, n) {
2605
2575
  if (!await this.token.autoLogin()) return !1;
2606
- const { ok: r } = await this.req.post("community/clear-unread-notifications", { category: t }, null, n);
2607
- return r;
2576
+ const { ok: a } = await this.req.post("community/clear-unread-notifications", { category: t }, null, n);
2577
+ return a;
2608
2578
  }
2609
2579
  }
2610
- const da = s({
2580
+ const mr = i({
2611
2581
  nonce_str: e.string(),
2612
2582
  timestamp: e.number(),
2613
2583
  signature: e.string()
2614
2584
  });
2615
- var ga = /* @__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))(ga || {});
2616
- function L(i) {
2617
- return h(i, "open_id", "union_id", "weixin_token");
2585
+ var dr = /* @__PURE__ */ ((s) => (s.RedirectUriDisMatch = "10003", s.AppidError = "10016", s.AuthorizationError = "10015", s.NoRightForScope = "10005", s.Frequently = "10009", s.AppBanded = "10004", s.ShouldFollow = "10006", s.ScopeNull = "10010", s.RedirectUriNull = "10011", s.AppidNull = "10012", s.StateNull = "10013", s))(dr || {});
2586
+ function x(s) {
2587
+ return y(s, "open_id", "union_id", "weixin_token");
2618
2588
  }
2619
- const z = "wx_login_cache";
2620
- class qa {
2589
+ const H = "wx_login_cache";
2590
+ class Tr {
2621
2591
  token;
2622
2592
  $appid;
2623
2593
  req;
@@ -2648,11 +2618,11 @@ class qa {
2648
2618
  * 也可以直接调用 login 方法,并传入 weixin code 的读取函数
2649
2619
  */
2650
2620
  async getLoginCache() {
2651
- const t = this.token.storage.get(z);
2621
+ const t = this.token.storage.get(H);
2652
2622
  if (!t)
2653
2623
  return null;
2654
- const n = ye(t);
2655
- return L(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2624
+ const n = he(t);
2625
+ return x(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
2656
2626
  }
2657
2627
  /**
2658
2628
  * 小程序页面微信静默登录,获取 weixinToken / open_id / union_id。
@@ -2672,18 +2642,18 @@ class qa {
2672
2642
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=GwIZ0givCb
2673
2643
  */
2674
2644
  async login(t) {
2675
- if (!p())
2645
+ if (!f())
2676
2646
  throw new Error("当前环境非微信小程序");
2677
2647
  const n = await this.getLoginCache();
2678
2648
  if (n)
2679
2649
  return n;
2680
- const r = await ke(), { data: a, code: o, message: d } = await this.req.post(
2650
+ const a = await ve(), { data: r, code: o, message: d } = await this.req.post(
2681
2651
  "weixin/login",
2682
- { code: r, appid: this.appid },
2683
- L,
2652
+ { code: a, appid: this.appid },
2653
+ x,
2684
2654
  { ...t, message: !1 }
2685
2655
  );
2686
- return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(z, JSON.stringify(a))), a ?? {
2656
+ return r && (this.token.weixinToken = r.weixin_token, this.token.storage.set(H, JSON.stringify(r))), r ?? {
2687
2657
  message: d,
2688
2658
  error: o
2689
2659
  };
@@ -2705,29 +2675,29 @@ class qa {
2705
2675
  * - snsapi_userinfo 【默认】弹出授权页面,可拿到 openid、union_id、昵称、头像等信息,但用户也可能会拒绝授权
2706
2676
  */
2707
2677
  async webLogin(t = "snsapi_userinfo", n) {
2708
- const r = S("code"), a = Date.now(), o = +S("state");
2709
- if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
2710
- const me = O(["code", "state"]);
2678
+ const a = L("code"), r = Date.now(), o = +L("state");
2679
+ if (!a || !o || o < r - 1e3 * 60 * 5 || o > r) {
2680
+ const le = G(["code", "state"]);
2711
2681
  location.replace(
2712
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(me)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
2682
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${r}#wechat_redirect`
2713
2683
  );
2714
2684
  return;
2715
2685
  }
2716
- if (/^100\d{2}$/.test(r))
2686
+ if (/^100\d{2}$/.test(a))
2717
2687
  return {
2718
- message: "Error: " + r,
2719
- error: r
2688
+ message: "Error: " + a,
2689
+ error: a
2720
2690
  };
2721
- const d = O(["code", "state"]);
2691
+ const d = G(["code", "state"]);
2722
2692
  "replaceState" in history && history.replaceState({}, "", d);
2723
2693
  const {
2724
2694
  data: g,
2725
- code: ue,
2726
- message: le
2727
- } = await this.req.post("weixin/login", { code: r, appid: this.appid }, L, n);
2695
+ code: ce,
2696
+ message: ue
2697
+ } = await this.req.post("weixin/login", { code: a, appid: this.appid }, x, n);
2728
2698
  return g && (this.token.weixinToken = g.weixin_token, await this.token.autoLogin()), g ?? {
2729
- message: le,
2730
- error: ue
2699
+ message: ue,
2700
+ error: ce
2731
2701
  };
2732
2702
  }
2733
2703
  /**
@@ -2742,14 +2712,14 @@ class qa {
2742
2712
  * @param weixinToken 调用 login 后,得到的 weixinToken,如果 weixinToken 为空则跳过不处理
2743
2713
  * @param gameCode 从游戏内跳转至小程序时,通过请求参数 query 携带的 game_code,如果值为空则跳过不处理
2744
2714
  */
2745
- async linkPlayer(t, n, r) {
2715
+ async linkPlayer(t, n, a) {
2746
2716
  if (!t || !n)
2747
2717
  return !1;
2748
- const { ok: a } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: n }, null, {
2749
- ...r,
2718
+ const { ok: r } = await this.req.post("weixin/link-player", { weixin_token: t, game_code: n }, null, {
2719
+ ...a,
2750
2720
  message: !1
2751
2721
  });
2752
- return a;
2722
+ return r;
2753
2723
  }
2754
2724
  /**
2755
2725
  * 获取集成 JSSDK 所需的签名信息
@@ -2757,7 +2727,7 @@ class qa {
2757
2727
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
2758
2728
  */
2759
2729
  async getJSSDKConfig(t) {
2760
- const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", da, {
2730
+ const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", mr, {
2761
2731
  ...t,
2762
2732
  params: {
2763
2733
  appid: this.appid,
@@ -2773,171 +2743,171 @@ class qa {
2773
2743
  }
2774
2744
  }
2775
2745
  export {
2776
- ce as AntispamValidator,
2777
- ya as AuthToken,
2778
- er as CandidateVoteValidator,
2746
+ se as AntispamValidator,
2747
+ br as AuthToken,
2748
+ Wn as CandidateVoteValidator,
2779
2749
  ae as CashbackEngagementDataValidator,
2780
- qn as ClaimActivationKeyEngagementDataValidator,
2781
- ut as ClaimRewardStatus,
2782
- P as ClaimRewardStatusValidator,
2783
- lr as ClaimedItemValidator,
2784
- X as ClubAddressValidator,
2785
- fa as ClubApi,
2786
- Y as ClubBenefitSummaryValidator,
2787
- Oe as ClubBenefitValidator,
2788
- qe as ClubCreditChangeScene,
2789
- xe as ClubCreditChangeSceneValidator,
2790
- je as ClubCreditChangeType,
2791
- Te as ClubCreditChangeTypeValidator,
2792
- Ge as ClubCreditLogValidator,
2793
- Pe as ClubGlobalConfigValidator,
2794
- Le as ClubItemType,
2795
- J as ClubItemTypeValidator,
2796
- Ee as ClubPlayerValidator,
2797
- W as ClubProductValidator,
2798
- Se as ClubRedemptionStatus,
2750
+ Tn as ClaimActivationKeyEngagementDataValidator,
2751
+ ct as ClaimRewardStatus,
2752
+ S as ClaimRewardStatusValidator,
2753
+ ua as ClaimedItemValidator,
2754
+ Z as ClubAddressValidator,
2755
+ hr as ClubApi,
2756
+ X as ClubBenefitSummaryValidator,
2757
+ Ge as ClubBenefitValidator,
2758
+ Te as ClubCreditChangeScene,
2759
+ qe as ClubCreditChangeSceneValidator,
2760
+ Ve as ClubCreditChangeType,
2761
+ je as ClubCreditChangeTypeValidator,
2762
+ Ae as ClubCreditLogValidator,
2763
+ Se as ClubGlobalConfigValidator,
2764
+ xe as ClubItemType,
2765
+ z as ClubItemTypeValidator,
2766
+ Pe as ClubPlayerValidator,
2767
+ Y as ClubProductValidator,
2768
+ Le as ClubRedemptionStatus,
2799
2769
  Ue as ClubRedemptionStatusValidator,
2800
- Ae as ClubUserCreditValidator,
2801
- De as ClubUserProfileValidator,
2802
- rr as CommentEngagementValidator,
2770
+ De as ClubUserCreditValidator,
2771
+ Ie as ClubUserProfileValidator,
2772
+ na as CommentEngagementValidator,
2803
2773
  k as CommentValidator,
2804
- Ta as CommunityApi,
2805
- tr as ConversationValidator,
2806
- tt as EngageAccountType,
2807
- nt as EngageAccountTypeValidator,
2808
- ur as EngageResponseValidator,
2809
- or as EngageRewardValidator,
2810
- Va as EventApi,
2811
- Tn as EventConfigValidator,
2812
- jt as EventFeatureConfigOfCashbackValidator,
2813
- qt as EventFeatureConfigOfCheckInValidator,
2814
- Lt as EventFeatureConfigOfClaimActivationKeyValidator,
2774
+ jr as CommunityApi,
2775
+ ea as ConversationValidator,
2776
+ et as EngageAccountType,
2777
+ tt as EngageAccountTypeValidator,
2778
+ ca as EngageResponseValidator,
2779
+ ra as EngageRewardValidator,
2780
+ Cr as EventApi,
2781
+ jn as EventConfigValidator,
2782
+ Vt as EventFeatureConfigOfCashbackValidator,
2783
+ Tt as EventFeatureConfigOfCheckInValidator,
2784
+ xt as EventFeatureConfigOfClaimActivationKeyValidator,
2815
2785
  Ut as EventFeatureConfigOfClaimRewardsValidator,
2816
- Et as EventFeatureConfigOfCommentValidator,
2817
- Ft as EventFeatureConfigOfFollowValidator,
2818
- At as EventFeatureConfigOfGiftCodeValidator,
2819
- Ot as EventFeatureConfigOfInviteValidator,
2820
- Qt as EventFeatureConfigOfInvitedRegisterValidator,
2821
- Jt as EventFeatureConfigOfLotteryDrawValidator,
2822
- Ht as EventFeatureConfigOfLotteryValidator,
2823
- Xt as EventFeatureConfigOfPreregisterValidator,
2824
- Wt as EventFeatureConfigOfQuestValidator,
2825
- nn as EventFeatureConfigOfRedeemValidator,
2786
+ Pt as EventFeatureConfigOfCommentValidator,
2787
+ $t as EventFeatureConfigOfFollowValidator,
2788
+ Dt as EventFeatureConfigOfGiftCodeValidator,
2789
+ Gt as EventFeatureConfigOfInviteValidator,
2790
+ Nt as EventFeatureConfigOfInvitedRegisterValidator,
2791
+ zt as EventFeatureConfigOfLotteryDrawValidator,
2792
+ Kt as EventFeatureConfigOfLotteryValidator,
2793
+ Zt as EventFeatureConfigOfPreregisterValidator,
2794
+ Yt as EventFeatureConfigOfQuestValidator,
2795
+ tn as EventFeatureConfigOfRedeemValidator,
2826
2796
  an as EventFeatureConfigOfRegisterValidator,
2827
- sn as EventFeatureConfigOfShareValidator,
2828
- un as EventFeatureConfigOfSubscribeValidator,
2829
- mn as EventFeatureConfigOfSurveyValidator,
2830
- gn as EventFeatureConfigOfTeamValidator,
2831
- yn as EventFeatureConfigOfUgcLikeValidator,
2832
- _n as EventFeatureConfigOfUgcValidator,
2833
- Rn as EventFeatureConfigOfVote2Validator,
2834
- wn as EventFeatureConfigOfVoteValidator,
2835
- jn as EventFeatureConfigValidator,
2836
- rt as EventPeriodType,
2797
+ on as EventFeatureConfigOfShareValidator,
2798
+ cn as EventFeatureConfigOfSubscribeValidator,
2799
+ ln as EventFeatureConfigOfSurveyValidator,
2800
+ dn as EventFeatureConfigOfTeamValidator,
2801
+ bn as EventFeatureConfigOfUgcLikeValidator,
2802
+ pn as EventFeatureConfigOfUgcValidator,
2803
+ vn as EventFeatureConfigOfVote2Validator,
2804
+ fn as EventFeatureConfigOfVoteValidator,
2805
+ Vn as EventFeatureConfigValidator,
2806
+ nt as EventPeriodType,
2837
2807
  at as EventPeriodTypeValidator,
2838
- _ as EventRewardItemConfigValidator,
2839
- Qe as ExtraGameRewardValidator,
2840
- Ne as ExtraPhysicalShipmentValidator,
2841
- tn as FeatureRedeemItemConfigValidator,
2842
- Ct as FeatureRewardValidator,
2808
+ p as EventRewardItemConfigValidator,
2809
+ Ne as ExtraGameRewardValidator,
2810
+ Oe as ExtraPhysicalShipmentValidator,
2811
+ en as FeatureRedeemItemConfigValidator,
2812
+ Rt as FeatureRewardValidator,
2843
2813
  u as FeatureType,
2844
- ot as FeatureTypeValidator,
2845
- Fr as ForumMode,
2846
- Ir as ForumModeValidator,
2847
- se as ForumValidator,
2814
+ rt as FeatureTypeValidator,
2815
+ $a as ForumMode,
2816
+ Fa as ForumModeValidator,
2817
+ ie as ForumValidator,
2848
2818
  v as GamerItemType,
2849
- ee as GamerItemTypeValidator,
2850
- Ce as Gender,
2851
- Ve as GenderValidator,
2852
- xn as GiftCodeEngagementDataValidator,
2853
- Ln as InviteEngagementDataValidator,
2854
- pt as LotteryDrawAction,
2855
- Ra as LotteryDrawActionValidator,
2856
- En as LotteryDrawEngagementDataValidator,
2857
- Sn as LotteryEngagementDataValidator,
2819
+ W as GamerItemTypeValidator,
2820
+ Re as Gender,
2821
+ Ce as GenderValidator,
2822
+ qn as GiftCodeEngagementDataValidator,
2823
+ xn as InviteEngagementDataValidator,
2824
+ gt as LotteryDrawAction,
2825
+ vr as LotteryDrawActionValidator,
2826
+ Pn as LotteryDrawEngagementDataValidator,
2827
+ Ln as LotteryEngagementDataValidator,
2858
2828
  w as LotteryTicketStatus,
2859
- ka as LotteryTicketStatusValidator,
2860
- b as NotificationBaseValidator,
2861
- Ar as NotificationCategory,
2862
- ja as NotificationCategoryValidator,
2863
- Hr as NotificationCommentReplyValidator,
2864
- zr as NotificationCommentValidator,
2829
+ wr as LotteryTicketStatusValidator,
2830
+ _ as NotificationBaseValidator,
2831
+ Da as NotificationCategory,
2832
+ Vr as NotificationCategoryValidator,
2833
+ Ka as NotificationCommentReplyValidator,
2834
+ Ha as NotificationCommentValidator,
2865
2835
  V as NotificationPayloadCommentValidator,
2866
- A as NotificationPayloadPostValidator,
2867
- G as NotificationPayloadReplyValidator,
2868
- Qr as NotificationPayloadSystemValidator,
2869
- Kr as NotificationPostCommentValidator,
2870
- Mr as NotificationPostValidator,
2871
- Jr as NotificationReplyRepliedValidator,
2872
- Zr as NotificationReplyValidator,
2873
- Br as NotificationSystemValidator,
2836
+ D as NotificationPayloadPostValidator,
2837
+ A as NotificationPayloadReplyValidator,
2838
+ Na as NotificationPayloadSystemValidator,
2839
+ Ma as NotificationPostCommentValidator,
2840
+ Ba as NotificationPostValidator,
2841
+ za as NotificationReplyRepliedValidator,
2842
+ Ja as NotificationReplyValidator,
2843
+ Qa as NotificationSystemValidator,
2874
2844
  m as NotificationType,
2875
- Gr as NotificationTypeValidator,
2876
- Xr as NotificationValidator,
2877
- Ie as PlayerRoleCardValidator,
2878
- Z as PlayerRoleValidator,
2879
- Dr as PostStatus,
2880
- ie as PostStatusValidator,
2881
- D as PostValidator,
2882
- $n as PreregisterEngagementDataValidator,
2883
- Nr as PresignedUrlResponseValidator,
2884
- Fn as QuestEngagementDataValidator,
2885
- it as QuestObjective,
2886
- ne as QuestObjectiveValidator,
2887
- _t as QuestProgressAlgorithm,
2888
- bt as QuestProgressAlgorithmValidator,
2889
- In as QuestProgressValidator,
2890
- Dn as RedeemEngagementDataValidator,
2891
- ha as RedeemParamsValidator,
2892
- An as RedeemStocksResponseValidator,
2893
- Be as RedemptionValidator,
2894
- Rt as RegularRewardValidator,
2895
- Or as ReplyToValidator,
2845
+ Aa as NotificationTypeValidator,
2846
+ Za as NotificationValidator,
2847
+ Fe as PlayerRoleCardValidator,
2848
+ J as PlayerRoleValidator,
2849
+ Ia as PostStatus,
2850
+ oe as PostStatusValidator,
2851
+ I as PostValidator,
2852
+ En as PreregisterEngagementDataValidator,
2853
+ Oa as PresignedUrlResponseValidator,
2854
+ $n as QuestEngagementDataValidator,
2855
+ ot as QuestObjective,
2856
+ te as QuestObjectiveValidator,
2857
+ pt as QuestProgressAlgorithm,
2858
+ _t as QuestProgressAlgorithmValidator,
2859
+ Fn as QuestProgressValidator,
2860
+ In as RedeemEngagementDataValidator,
2861
+ yr as RedeemParamsValidator,
2862
+ Dn as RedeemStocksResponseValidator,
2863
+ Qe as RedemptionValidator,
2864
+ vt as RegularRewardValidator,
2865
+ Ga as ReplyToValidator,
2896
2866
  C as ReplyValidator,
2897
- wa as RewardItemType,
2898
- te as RewardItemTypeValidator,
2899
- lt as RewardSource,
2900
- E as RewardSourceValidator,
2901
- y as RewardStatus,
2902
- re as RewardStatusValidator,
2903
- ar as RewardValidator,
2904
- Fe as RoleBaseInfoValidator,
2905
- $e as ServerBaseInfoValidator,
2906
- Gn as ShareEngagementDataValidator,
2907
- Nn as SurveyEngagementDataValidator,
2908
- gt as TeamAction,
2909
- va as TeamActionValidator,
2910
- Bn as TeamEngagementDataValidator,
2911
- Qn as TeamEngagementValidator,
2912
- Ca as TeamMemberValidator,
2913
- mt as TeamVisibility,
2914
- dt as TeamVisibilityValidator,
2915
- I as TopicValidator,
2916
- zn as UgcCountResponseValidator,
2917
- Mn as UgcEngagementDataValidator,
2918
- Zn as UgcLeaderboardResponseValidator,
2919
- Kn as UgcRecordBaseResponseValidator,
2920
- Hn as UgcRecordResponseValidator,
2921
- wt as UgcReviewStatus,
2922
- kt as UgcReviewStatusValidator,
2923
- ft as UgcSocialMedia,
2924
- $ as UgcSocialMediaValidator,
2925
- Jn as UgcUploadImageValidator,
2926
- F as UserEngagementDataValidator,
2927
- ir as UserEngagementValidator,
2928
- cr as UserFeatureStatusValidator,
2867
+ fr as RewardItemType,
2868
+ ee as RewardItemTypeValidator,
2869
+ ut as RewardSource,
2870
+ P as RewardSourceValidator,
2871
+ b as RewardStatus,
2872
+ ne as RewardStatusValidator,
2873
+ aa as RewardValidator,
2874
+ $e as RoleBaseInfoValidator,
2875
+ Ee as ServerBaseInfoValidator,
2876
+ An as ShareEngagementDataValidator,
2877
+ On as SurveyEngagementDataValidator,
2878
+ dt as TeamAction,
2879
+ kr as TeamActionValidator,
2880
+ Qn as TeamEngagementDataValidator,
2881
+ Nn as TeamEngagementValidator,
2882
+ Rr as TeamMemberValidator,
2883
+ lt as TeamVisibility,
2884
+ mt as TeamVisibilityValidator,
2885
+ F as TopicValidator,
2886
+ Hn as UgcCountResponseValidator,
2887
+ Bn as UgcEngagementDataValidator,
2888
+ Jn as UgcLeaderboardResponseValidator,
2889
+ Mn as UgcRecordBaseResponseValidator,
2890
+ Kn as UgcRecordResponseValidator,
2891
+ ft as UgcReviewStatus,
2892
+ wt as UgcReviewStatusValidator,
2893
+ ht as UgcSocialMedia,
2894
+ E as UgcSocialMediaValidator,
2895
+ zn as UgcUploadImageValidator,
2896
+ $ as UserEngagementDataValidator,
2897
+ oa as UserEngagementValidator,
2898
+ sa as UserFeatureStatusValidator,
2929
2899
  R as UserRewardValidator,
2930
- sr as VerifyMobileResultValidator,
2931
- Wn as Vote2ClaimRewardsResponseValidator,
2932
- Yn as Vote2EngagementDataValidator,
2933
- yt as Vote2RewardType,
2934
- ht as Vote2RewardTypeValidator,
2935
- Xn as VoteEngagementDataValidator,
2936
- st as VoteOptionSource,
2937
- ct as VoteOptionSourceValidator,
2938
- qa as WeixinApi,
2939
- On as WeixinSubscribeEngagementDataValidator,
2940
- ga as WeixinWebLoginErrorCode,
2941
- nr as ZeroChatGPTDataValidator,
2942
- da as isWeixinSignResponse
2900
+ ia as VerifyMobileResultValidator,
2901
+ Yn as Vote2ClaimRewardsResponseValidator,
2902
+ Xn as Vote2EngagementDataValidator,
2903
+ bt as Vote2RewardType,
2904
+ yt as Vote2RewardTypeValidator,
2905
+ Zn as VoteEngagementDataValidator,
2906
+ it as VoteOptionSource,
2907
+ st as VoteOptionSourceValidator,
2908
+ Tr as WeixinApi,
2909
+ Gn as WeixinSubscribeEngagementDataValidator,
2910
+ dr as WeixinWebLoginErrorCode,
2911
+ ta as ZeroChatGPTDataValidator,
2912
+ mr as isWeixinSignResponse
2943
2913
  };