@seayoo-web/gamer-api 2.15.7 → 2.16.1

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