@seayoo-web/gamer-api 4.2.1 → 4.2.3

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,22 +1,22 @@
1
1
  import { isComboWebView as e } from "@seayoo-web/combo-webview";
2
- import { isPlainObject as t, localStorageHelper as n, omitFields as r, parseJSON as i, pruneObject as a, pruneURL as o, queryString as s, removePara as ee, supportWindow as te, supportWx as c, useConsole as ne, usePromise as re, weixinStorageHelper as ie } from "@seayoo-web/utils";
3
- import { objectGuard as l, v as u } from "@seayoo-web/validator";
2
+ import { isPlainObject as t, localStorageHelper as n, omitFields as r, parseJSON as i, pruneObject as a, pruneURL as o, queryString as s, removePara as c, supportWindow as l, supportWx as u, useConsole as ee, usePromise as te, weixinStorageHelper as ne } from "@seayoo-web/utils";
3
+ import { objectGuard as d, v as f } from "@seayoo-web/validator";
4
4
  //#region src/token.guards.ts
5
- function ae(e) {
5
+ function re(e) {
6
6
  return t(e, "gamer_token") && typeof e.gamer_token == "string";
7
7
  }
8
- function oe(e) {
8
+ function ie(e) {
9
9
  return t(e, "gamer_token", "game_id") && typeof e.gamer_token == "string" && typeof e.game_id == "string";
10
10
  }
11
- function se(e) {
11
+ function ae(e) {
12
12
  return t(e);
13
13
  }
14
- ne("GamerApiSDK");
15
- function d(e) {
14
+ ee("GamerApiSDK");
15
+ function oe(e) {
16
16
  return /^\/[a-z\d-]+$/.test(e);
17
17
  }
18
- async function ce() {
19
- let { promise: e, resolve: t } = re();
18
+ async function se() {
19
+ let { promise: e, resolve: t } = te();
20
20
  return wx.login({
21
21
  success(e) {
22
22
  t(e.code);
@@ -28,7 +28,7 @@ async function ce() {
28
28
  }
29
29
  //#endregion
30
30
  //#region src/token.ts
31
- var f = "gamer_token", le = class {
31
+ var p = "gamer_token", ce = class {
32
32
  _NetRequest;
33
33
  _idToken = "";
34
34
  _weixinToken = "";
@@ -36,8 +36,8 @@ var f = "gamer_token", le = class {
36
36
  req;
37
37
  storage;
38
38
  constructor(t, r) {
39
- this.storage = c() ? ie : n;
40
- let i = d(t) ? t : `https://${o(t)}`;
39
+ this.storage = u() ? ne : n;
40
+ let i = oe(t) ? t : `https://${o(t)}`;
41
41
  if (this._NetRequest = r, this.req = r({
42
42
  baseURL: `${i}/v1`,
43
43
  timeout: 1e4,
@@ -54,7 +54,7 @@ var f = "gamer_token", le = class {
54
54
  requestTransformer: (e) => {
55
55
  this._gamerToken && (e.headers.Authorization = `Bearer ${this._gamerToken}`);
56
56
  }
57
- }), te()) {
57
+ }), l()) {
58
58
  let t = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), n = s("gamer_token");
59
59
  (e() || t && n) && (this._gamerToken = n);
60
60
  }
@@ -64,7 +64,7 @@ var f = "gamer_token", le = class {
64
64
  return this._NetRequest;
65
65
  }
66
66
  loadGamerTokenCache() {
67
- let e = this.storage.get(f).match(/^(\d{12,})#(.{8,})$/);
67
+ let e = this.storage.get(p).match(/^(\d{12,})#(.{8,})$/);
68
68
  if (e) {
69
69
  let t = parseInt(e[1]), n = e[2];
70
70
  if (t > Date.now() - (24 * 3600 - 10) * 1e3) {
@@ -72,7 +72,7 @@ var f = "gamer_token", le = class {
72
72
  return;
73
73
  }
74
74
  }
75
- this.storage.remove(f);
75
+ this.storage.remove(p);
76
76
  }
77
77
  get isLoggedIn() {
78
78
  return this._gamerToken !== "";
@@ -93,19 +93,19 @@ var f = "gamer_token", le = class {
93
93
  return this._gamerToken;
94
94
  }
95
95
  set gamerToken(e) {
96
- this._gamerToken = e, e ? this.storage.set(f, `${Date.now()}#${e}`) : this.storage.remove(f);
96
+ this._gamerToken = e, e ? this.storage.set(p, `${Date.now()}#${e}`) : this.storage.remove(p);
97
97
  }
98
98
  logout() {
99
99
  this._idToken = "", this._weixinToken = "", this.gamerToken = "";
100
100
  }
101
101
  async autoLogin() {
102
102
  if (this.gamerToken) return !0;
103
- let e = c();
103
+ let e = u();
104
104
  if (!this.idToken || e && !this.weixinToken) return !1;
105
105
  let { code: t, data: n } = await this.req.post("login-with-token", a({
106
106
  id_token: this.idToken,
107
107
  weixin_token: e ? this.weixinToken : null
108
- }), ae, {
108
+ }), re, {
109
109
  message: !1,
110
110
  cacheTTL: 300,
111
111
  cacheResolve: () => `${this.idToken}_${e ? this.weixinToken : "null"}`
@@ -121,9 +121,9 @@ var f = "gamer_token", le = class {
121
121
  return this.gamerToken = n?.gamer_token || "", !!this.gamerToken;
122
122
  }
123
123
  async switchGame(e) {
124
- let t = c();
124
+ let t = u();
125
125
  if (!this.idToken || t && !this.weixinToken) return !1;
126
- let { code: n, data: r } = await this.req.post("session/switch-game", a({ game_id: e }), oe, {
126
+ let { code: n, data: r } = await this.req.post("session/switch-game", a({ game_id: e }), ie, {
127
127
  message: !1,
128
128
  maxRetry: 2
129
129
  });
@@ -134,193 +134,193 @@ var f = "gamer_token", le = class {
134
134
  }
135
135
  async getSession() {
136
136
  if (!await this.autoLogin()) return null;
137
- let { data: e } = await this.req.get("session", null, se, { message: !1 });
137
+ let { data: e } = await this.req.get("session", null, ae, { message: !1 });
138
138
  return e;
139
139
  }
140
140
  async authRealName(e) {
141
141
  if (!await this.autoLogin()) return null;
142
- let { data: t } = await this.req.post("auth-real-name", a(e), se);
142
+ let { data: t } = await this.req.post("auth-real-name", a(e), ae);
143
143
  return t;
144
144
  }
145
- }, ue = {
145
+ }, le = {
146
146
  Unknown: "unknown",
147
147
  Male: "male",
148
148
  Female: "female"
149
- }, de = u.string().enum(ue).lock(), fe = {
149
+ }, ue = f.string().enum(le).lock(), de = {
150
150
  Increase: "increase",
151
151
  Decrease: "decrease",
152
152
  Expired: "expired"
153
- }, pe = u.string().enum(fe).lock(), me = {
153
+ }, fe = f.string().enum(de).lock(), pe = {
154
154
  Order: "order",
155
155
  Consumption: "consumption",
156
156
  Redeem: "redeem",
157
157
  Expire: "expire",
158
158
  Admin: "admin",
159
159
  Event: "event"
160
- }, he = u.string().enum(me).lock(), ge = {
160
+ }, me = f.string().enum(pe).lock(), he = {
161
161
  GameReward: "game_reward",
162
162
  Physical: "physical",
163
163
  Virtual: "virtual"
164
- }, p = u.string().enum(ge).lock(), _e = {
164
+ }, m = f.string().enum(he).lock(), ge = {
165
165
  Pending: "pending",
166
166
  Issued: "issued",
167
167
  Failed: "failed"
168
- }, ve = u.string().enum(_e).lock(), ye = u.object({
169
- default_avatar_url: u.string(),
170
- official_avatar_urls: u.array(u.string()),
171
- default_nickname: u.string(),
172
- default_bio: u.string(),
173
- default_role_avatar_url: u.string(),
174
- level_configs: u.array(u.object({
175
- level: u.number(),
176
- exp: u.number(),
177
- title: u.string()
168
+ }, _e = f.string().enum(ge).lock(), ve = f.object({
169
+ default_avatar_url: f.string(),
170
+ official_avatar_urls: f.array(f.string()),
171
+ default_nickname: f.string(),
172
+ default_bio: f.string(),
173
+ default_role_avatar_url: f.string(),
174
+ level_configs: f.array(f.object({
175
+ level: f.number(),
176
+ exp: f.number(),
177
+ title: f.string()
178
178
  })),
179
- level_valid_days: u.number(),
180
- benefit_description: u.string(),
181
- exp_description: u.string(),
182
- credit_description: u.string(),
183
- send_role_mail_rate_limit: u.number()
184
- }).lock(), be = u.object({
185
- member_id: u.string(),
186
- player_id: u.string(),
187
- exp: u.number(),
188
- level: u.number(),
189
- credit: u.number(),
190
- credit_expiring: u.number(),
191
- level_change_time: u.number(),
192
- level_expire_time: u.number()
193
- }).lock(), xe = u.object({
194
- server_id: u.string(),
195
- server_name: u.string()
196
- }).lock(), Se = u.object({
197
- role_id: u.string(),
198
- role_name: u.string()
199
- }).lock(), m = u.object({
200
- ...Se.shape,
179
+ level_valid_days: f.number(),
180
+ benefit_description: f.string(),
181
+ exp_description: f.string(),
182
+ credit_description: f.string(),
183
+ send_role_mail_rate_limit: f.number()
184
+ }).lock(), ye = f.object({
185
+ member_id: f.string(),
186
+ player_id: f.string(),
187
+ exp: f.number(),
188
+ level: f.number(),
189
+ credit: f.number(),
190
+ credit_expiring: f.number(),
191
+ level_change_time: f.number(),
192
+ level_expire_time: f.number()
193
+ }).lock(), be = f.object({
194
+ server_id: f.string(),
195
+ server_name: f.string()
196
+ }).lock(), xe = f.object({
197
+ role_id: f.string(),
198
+ role_name: f.string()
199
+ }).lock(), h = f.object({
201
200
  ...xe.shape,
202
- role_level: u.number(),
203
- last_login_time: u.number()
204
- }).lock(), Ce = u.object({
205
- ...m.shape,
206
- role_fighting: u.number(),
207
- kin_id: u.string().optional(),
208
- kin_name: u.string().optional(),
209
- kin_position: u.string().optional()
210
- }).lock(), we = u.object({
211
- name: u.string(),
212
- avatar_url: u.string(),
213
- bio: u.string(),
214
- gender: de,
215
- birthday: u.object({
216
- year: u.number(),
217
- month: u.number(),
218
- day: u.number()
201
+ ...be.shape,
202
+ role_level: f.number(),
203
+ last_login_time: f.number()
204
+ }).lock(), Se = f.object({
205
+ ...h.shape,
206
+ role_fighting: f.number(),
207
+ kin_id: f.string().optional(),
208
+ kin_name: f.string().optional(),
209
+ kin_position: f.string().optional()
210
+ }).lock(), Ce = f.object({
211
+ name: f.string(),
212
+ avatar_url: f.string(),
213
+ bio: f.string(),
214
+ gender: ue,
215
+ birthday: f.object({
216
+ year: f.number(),
217
+ month: f.number(),
218
+ day: f.number()
219
219
  }),
220
- social_medias: u.record(u.object({
221
- homepage_url: u.string(),
222
- homepage_image_url: u.string()
220
+ social_medias: f.record(f.object({
221
+ homepage_url: f.string(),
222
+ homepage_image_url: f.string()
223
223
  }).optional()).optional()
224
- }).lock(), h = u.object({
225
- address_id: u.number(),
226
- recipient: u.string(),
227
- mobile: u.string(),
228
- province: u.string(),
229
- city: u.string(),
230
- district: u.string(),
231
- address: u.string(),
232
- is_default: u.bool()
233
- }).lock(), Te = u.object({
234
- increased_credit: u.number(),
235
- decreased_credit: u.number(),
236
- expired_credit: u.number(),
237
- balance_credit: u.number()
238
- }).lock(), Ee = u.object({
239
- id: u.number(),
240
- change_type: pe,
241
- change_scene: he,
242
- change_credit: u.number(),
243
- balance: u.number(),
244
- change_time: u.number(),
245
- metadata: u.record(u.unknown()).optional()
246
- }).lock(), g = u.object({
247
- benefit_id: u.number(),
248
- name: u.string(),
249
- img_url: u.string(),
250
- description: u.string(),
251
- min_level: u.number(),
252
- max_level: u.number(),
253
- product_id: u.number(),
254
- tag: u.string()
255
- }).lock(), _ = u.object({
256
- product_id: u.number(),
257
- catalog_id: u.number(),
258
- catalog_name: u.string(),
259
- item_type: p,
260
- name: u.string(),
261
- img_url: u.string(),
262
- description: u.string(),
263
- tag: u.string(),
264
- price: u.number(),
265
- stock: u.number(),
266
- redeem_quantity: u.number(),
267
- not_visible_before: u.number(),
268
- not_visible_after: u.number(),
269
- not_before: u.number(),
270
- not_after: u.number(),
271
- min_level: u.number(),
272
- max_level: u.number(),
273
- limit_daily: u.number(),
274
- limit_monthly: u.number(),
275
- limit_yearly: u.number(),
276
- limit_total: u.number(),
277
- weight: u.number(),
278
- created_at: u.number(),
279
- updated_at: u.number(),
280
- redeemable_quantity: u.number().optional()
281
- }).lock(), De = u.object({
282
- ...r(g.shape, "tag"),
283
- product: _.clone().optional()
284
- }).lock(), Oe = u.union(u.object({
285
- server_id: u.string(),
286
- role_id: u.string()
287
- }), u.object({ address_id: u.number() })).satisfies().lock(), ke = u.object({
288
- recipient: u.string(),
289
- mobile: u.string(),
290
- province: u.string(),
291
- city: u.string(),
292
- district: u.string(),
293
- address: u.string(),
294
- express_company: u.string(),
295
- express_number: u.string()
296
- }).lock(), Ae = u.object({
297
- server_id: u.string(),
298
- role_id: u.string(),
299
- role_name: u.string()
300
- }).lock(), je = u.object({
301
- redemption_id: u.number(),
302
- player_id: u.string(),
303
- product_id: u.number(),
304
- name: u.string(),
305
- img_url: u.string(),
306
- item_type: p,
307
- catalog_id: u.number(),
308
- catalog_name: u.string(),
309
- quantity: u.number(),
310
- amount: u.number(),
311
- status: ve,
312
- created_at: u.number(),
313
- extra_data: u.union(ke.clone(), Ae.clone()).satisfies().optional()
314
- }), Me = u.guard(ye), v = l({ player: be }), Ne = l({ roles: u.array(m) }), y = l({ role_card: Ce }), b = u.guard(we), x = u.guard(h), Pe = l({ addresses: u.array(h) }), Fe = u.guard(Te), Ie = l({
315
- credit_logs: u.array(Ee),
316
- next_token: u.string().optional()
317
- }), Le = l({ products: u.array(_) }), Re = l({ benefits: u.array(g) }), ze = l({ benefit: De }), Be = l({
318
- redemptions: u.array(je),
319
- next_token: u.string().optional()
320
- }), Ve = l({
321
- existed: u.bool(),
322
- image_upload_url: u.string().optional(),
323
- image_id: u.string()
224
+ }).lock(), g = f.object({
225
+ address_id: f.number(),
226
+ recipient: f.string(),
227
+ mobile: f.string(),
228
+ province: f.string(),
229
+ city: f.string(),
230
+ district: f.string(),
231
+ address: f.string(),
232
+ is_default: f.bool()
233
+ }).lock(), we = f.object({
234
+ increased_credit: f.number(),
235
+ decreased_credit: f.number(),
236
+ expired_credit: f.number(),
237
+ balance_credit: f.number()
238
+ }).lock(), Te = f.object({
239
+ id: f.number(),
240
+ change_type: fe,
241
+ change_scene: me,
242
+ change_credit: f.number(),
243
+ balance: f.number(),
244
+ change_time: f.number(),
245
+ metadata: f.record(f.unknown()).optional()
246
+ }).lock(), _ = f.object({
247
+ benefit_id: f.number(),
248
+ name: f.string(),
249
+ img_url: f.string(),
250
+ description: f.string(),
251
+ min_level: f.number(),
252
+ max_level: f.number(),
253
+ product_id: f.number(),
254
+ tag: f.string()
255
+ }).lock(), v = f.object({
256
+ product_id: f.number(),
257
+ catalog_id: f.number(),
258
+ catalog_name: f.string(),
259
+ item_type: m,
260
+ name: f.string(),
261
+ img_url: f.string(),
262
+ description: f.string(),
263
+ tag: f.string(),
264
+ price: f.number(),
265
+ stock: f.number(),
266
+ redeem_quantity: f.number(),
267
+ not_visible_before: f.number(),
268
+ not_visible_after: f.number(),
269
+ not_before: f.number(),
270
+ not_after: f.number(),
271
+ min_level: f.number(),
272
+ max_level: f.number(),
273
+ limit_daily: f.number(),
274
+ limit_monthly: f.number(),
275
+ limit_yearly: f.number(),
276
+ limit_total: f.number(),
277
+ weight: f.number(),
278
+ created_at: f.number(),
279
+ updated_at: f.number(),
280
+ redeemable_quantity: f.number().optional()
281
+ }).lock(), Ee = f.object({
282
+ ...r(_.shape, "tag"),
283
+ product: v.clone().optional()
284
+ }).lock(), De = f.union(f.object({
285
+ server_id: f.string(),
286
+ role_id: f.string()
287
+ }), f.object({ address_id: f.number() })).satisfies().lock(), Oe = f.object({
288
+ recipient: f.string(),
289
+ mobile: f.string(),
290
+ province: f.string(),
291
+ city: f.string(),
292
+ district: f.string(),
293
+ address: f.string(),
294
+ express_company: f.string(),
295
+ express_number: f.string()
296
+ }).lock(), ke = f.object({
297
+ server_id: f.string(),
298
+ role_id: f.string(),
299
+ role_name: f.string()
300
+ }).lock(), Ae = f.object({
301
+ redemption_id: f.number(),
302
+ player_id: f.string(),
303
+ product_id: f.number(),
304
+ name: f.string(),
305
+ img_url: f.string(),
306
+ item_type: m,
307
+ catalog_id: f.number(),
308
+ catalog_name: f.string(),
309
+ quantity: f.number(),
310
+ amount: f.number(),
311
+ status: _e,
312
+ created_at: f.number(),
313
+ extra_data: f.union(Oe.clone(), ke.clone()).satisfies().optional()
314
+ }), je = f.guard(ve), Me = d({ player: ye }), Ne = d({ roles: f.array(h) }), y = d({ role_card: Se }), b = f.guard(Ce), x = f.guard(g), Pe = d({ addresses: f.array(g) }), Fe = f.guard(we), Ie = d({
315
+ credit_logs: f.array(Te),
316
+ next_token: f.string().optional()
317
+ }), Le = d({ products: f.array(v) }), Re = d({ benefits: f.array(_) }), ze = d({ benefit: Ee }), Be = d({
318
+ redemptions: f.array(Ae),
319
+ next_token: f.string().optional()
320
+ }), Ve = d({
321
+ existed: f.bool(),
322
+ image_upload_url: f.string().optional(),
323
+ image_id: f.string()
324
324
  }), He = class {
325
325
  token;
326
326
  req;
@@ -329,12 +329,12 @@ var f = "gamer_token", le = class {
329
329
  }
330
330
  async getConfig(e) {
331
331
  await this.token.autoLogin();
332
- let { data: t } = await this.req.get("club/config", null, Me, e);
332
+ let { data: t } = await this.req.get("club/config", null, je, e);
333
333
  return t;
334
334
  }
335
335
  async getCurrentPlayer(e) {
336
336
  await this.token.autoLogin();
337
- let { data: t, code: n, message: r } = await this.req.get("club/current-player", null, v, e);
337
+ let { data: t, code: n, message: r } = await this.req.get("club/current-player", null, Me, e);
338
338
  return t?.player ?? {
339
339
  message: r,
340
340
  error: n
@@ -342,7 +342,7 @@ var f = "gamer_token", le = class {
342
342
  }
343
343
  async linkPlayer(e) {
344
344
  await this.token.autoLogin();
345
- let { data: t, code: n, message: r } = await this.req.post("club/link-player", { id_token: this.token.idToken }, v, e);
345
+ let { data: t, code: n, message: r } = await this.req.post("club/link-player", { id_token: this.token.idToken }, Me, e);
346
346
  return t?.player ?? {
347
347
  message: r,
348
348
  error: n
@@ -502,15 +502,15 @@ var f = "gamer_token", le = class {
502
502
  ClubExp: "club_exp",
503
503
  ExternalCode: "external_gift_code",
504
504
  VoidItem: "void_item"
505
- }, C = u.string().enum(S).lock(), We = S, w = C, Ge = {
505
+ }, C = f.string().enum(S).lock(), We = S, w = C, Ge = {
506
506
  UserId: "user_id",
507
507
  RoleId: "role_id"
508
- }, Ke = u.string().enum(Ge).lock(), qe = {
508
+ }, Ke = f.string().enum(Ge).lock(), qe = {
509
509
  None: "none",
510
510
  Daily: "daily",
511
511
  Weekly: "weekly",
512
512
  Monthly: "monthly"
513
- }, Je = u.string().enum(qe).lock(), T = {
513
+ }, Je = f.string().enum(qe).lock(), T = {
514
514
  Preregister: "preregister",
515
515
  Lottery: "lottery",
516
516
  Survey: "survey",
@@ -535,7 +535,7 @@ var f = "gamer_token", le = class {
535
535
  Ugc: "ugc",
536
536
  UgcLike: "ugc_like",
537
537
  Redeem: "redeem"
538
- }, Ye = u.string().enum(T).lock(), Xe = {
538
+ }, Ye = f.string().enum(T).lock(), Xe = {
539
539
  Active: "player_active_points",
540
540
  Login: "player_login_days",
541
541
  OrderAmount: "order_total_amount",
@@ -552,52 +552,52 @@ var f = "gamer_token", le = class {
552
552
  TeamSize: "team_size",
553
553
  UserGroup: "user_group",
554
554
  engagementCount: "engagement_count"
555
- }, E = u.string().enum(Xe).lock(), Ze = {
555
+ }, E = f.string().enum(Xe).lock(), Ze = {
556
556
  System: "system",
557
557
  UserSubmission: "user_submission",
558
558
  Shortlisted: "shortlisted"
559
- }, Qe = u.string().enum(Ze).lock(), D = {
559
+ }, Qe = f.string().enum(Ze).lock(), D = {
560
560
  Ineligible: "ineligible",
561
561
  Unclaimed: "unclaimed",
562
562
  Received: "received",
563
563
  Failed: "failed",
564
564
  Delivered: "delivered"
565
- }, O = u.string().enum(D).lock(), $e = {
565
+ }, O = f.string().enum(D).lock(), $e = {
566
566
  Ineligible: D.Ineligible,
567
567
  Unclaimed: D.Unclaimed,
568
568
  Received: D.Received,
569
569
  Failed: D.Failed,
570
570
  Delivered: D.Delivered
571
- }, k = u.string().enum($e).lock(), et = {
571
+ }, k = f.string().enum($e).lock(), et = {
572
572
  Output: "output",
573
573
  Engage: "engage"
574
- }, A = u.string().enum(et).lock(), tt = {
574
+ }, A = f.string().enum(et).lock(), tt = {
575
575
  Private: "private",
576
576
  Public: "public"
577
- }, nt = u.string().enum(tt).lock(), j = {
577
+ }, nt = f.string().enum(tt).lock(), j = {
578
578
  Unknown: "unknown",
579
579
  Pending: "pending",
580
580
  Drawn: "drawn",
581
581
  Claimed: "claimed",
582
582
  Fail: "fail"
583
- }, rt = u.string().enum(j).lock(), it = {
583
+ }, rt = f.string().enum(j).lock(), it = {
584
584
  Assemble: "assemble",
585
585
  Join: "join",
586
586
  Disband: "disband",
587
587
  ChangeVisibility: "change_visibility",
588
588
  Query: "query"
589
- }, at = u.string().enum(it).lock(), ot = {
589
+ }, at = f.string().enum(it).lock(), ot = {
590
590
  Query: "query",
591
591
  Draw: "draw",
592
592
  Claim: "claim"
593
- }, st = u.string().enum(ot).lock(), ct = {
593
+ }, st = f.string().enum(ot).lock(), ct = {
594
594
  Sum: "sum",
595
595
  TopN: "top_n"
596
- }, lt = u.string().enum(ct).lock(), ut = {
596
+ }, lt = f.string().enum(ct).lock(), ut = {
597
597
  None: "none",
598
598
  Winner: "winner",
599
599
  Consolation: "consolation"
600
- }, dt = u.string().enum(ut).lock(), ft = {
600
+ }, dt = f.string().enum(ut).lock(), ft = {
601
601
  Douyin: "douyin",
602
602
  Xiaohongshu: "xiaohongshu",
603
603
  Taptap: "taptap",
@@ -606,482 +606,482 @@ var f = "gamer_token", le = class {
606
606
  Huya: "huya",
607
607
  Douyu: "douyu",
608
608
  Kuaishou: "kuaishou"
609
- }, M = u.string().enum(ft).lock(), pt = {
609
+ }, M = f.string().enum(ft).lock(), pt = {
610
610
  Submitted: "submitted",
611
611
  Accepted: "accepted",
612
612
  Rejected: "rejected"
613
- }, mt = u.string().enum(pt).lock(), ht = u.string().enum(S), N = u.object({
614
- reward_item_id: u.number(),
615
- reward_amount: u.number(),
616
- reward_item_name: u.string(),
617
- reward_item_icon_url: u.string(),
618
- reward_item_desc: u.string().optional(),
613
+ }, mt = f.string().enum(pt).lock(), ht = f.string().enum(S), N = f.object({
614
+ reward_item_id: f.number(),
615
+ reward_amount: f.number(),
616
+ reward_item_name: f.string(),
617
+ reward_item_icon_url: f.string(),
618
+ reward_item_desc: f.string().optional(),
619
619
  reward_item_type: ht,
620
- reward_item_rating: u.number()
621
- }).lock(), gt = u.object({
622
- engage_count: u.number(),
623
- rewards: u.array(N)
624
- }).lock(), _t = u.union(u.object({
625
- feature_reward_type: u.string().enum("every"),
626
- reward_details: u.array(N)
627
- }), u.object({
628
- feature_reward_type: u.string().enum("regular"),
629
- reward_details: u.array(gt)
630
- })).satisfies().lock(), P = u.object({
631
- feature_name: u.string(),
632
- feature_id: u.number(),
633
- description: u.string(),
620
+ reward_item_rating: f.number()
621
+ }).lock(), gt = f.object({
622
+ engage_count: f.number(),
623
+ rewards: f.array(N)
624
+ }).lock(), _t = f.union(f.object({
625
+ feature_reward_type: f.string().enum("every"),
626
+ reward_details: f.array(N)
627
+ }), f.object({
628
+ feature_reward_type: f.string().enum("regular"),
629
+ reward_details: f.array(gt)
630
+ })).satisfies().lock(), P = f.object({
631
+ feature_name: f.string(),
632
+ feature_id: f.number(),
633
+ description: f.string(),
634
634
  cycle: Je,
635
- cycle_limit: u.number(),
636
- limit: u.number(),
637
- since: u.number(),
638
- until: u.number(),
635
+ cycle_limit: f.number(),
636
+ limit: f.number(),
637
+ since: f.number(),
638
+ until: f.number(),
639
639
  engage_account: Ke,
640
640
  feature_rewards: _t.clone().optional(),
641
- sort: u.number().optional()
642
- }), vt = T.Cashback, yt = u.object({
641
+ sort: f.number().optional()
642
+ }), vt = T.Cashback, yt = f.object({
643
643
  ...P.shape,
644
- feature_type: u.string().enum(vt),
645
- config: u.object({
646
- order_start_time: u.number(),
647
- order_end_time: u.number(),
648
- claim_rewards_start_time: u.number(),
649
- claim_rewards_end_time: u.number()
644
+ feature_type: f.string().enum(vt),
645
+ config: f.object({
646
+ order_start_time: f.number(),
647
+ order_end_time: f.number(),
648
+ claim_rewards_start_time: f.number(),
649
+ claim_rewards_end_time: f.number()
650
650
  })
651
- }), bt = T.CheckIn, xt = u.object({
651
+ }), bt = T.CheckIn, xt = f.object({
652
652
  ...P.shape,
653
- feature_type: u.string().enum(bt)
654
- }), St = T.ClaimActivationKey, Ct = u.object({
653
+ feature_type: f.string().enum(bt)
654
+ }), St = T.ClaimActivationKey, Ct = f.object({
655
655
  ...P.shape,
656
- feature_type: u.string().enum(St)
657
- }), wt = T.ClaimRewards, Tt = u.object({
656
+ feature_type: f.string().enum(St)
657
+ }), wt = T.ClaimRewards, Tt = f.object({
658
658
  ...P.shape,
659
- feature_type: u.string().enum(wt)
660
- }), Et = T.Comment, Dt = u.object({
659
+ feature_type: f.string().enum(wt)
660
+ }), Et = T.Comment, Dt = f.object({
661
661
  ...P.shape,
662
- feature_type: u.string().enum(Et),
663
- config: u.object({
664
- comments: u.array(u.string()),
665
- send_rate: u.number()
662
+ feature_type: f.string().enum(Et),
663
+ config: f.object({
664
+ comments: f.array(f.string()),
665
+ send_rate: f.number()
666
666
  })
667
- }), Ot = T.Follow, kt = u.object({
667
+ }), Ot = T.Follow, kt = f.object({
668
668
  ...P.shape,
669
- feature_type: u.string().enum(Ot),
670
- config: u.object({
671
- platform: u.string(),
672
- platform_icon: u.string().optional(),
673
- link: u.string().optional(),
674
- qr_code_url: u.string().optional(),
675
- platform_desc: u.string().optional()
669
+ feature_type: f.string().enum(Ot),
670
+ config: f.object({
671
+ platform: f.string(),
672
+ platform_icon: f.string().optional(),
673
+ link: f.string().optional(),
674
+ qr_code_url: f.string().optional(),
675
+ platform_desc: f.string().optional()
676
676
  })
677
- }), At = T.GiftCode, jt = u.object({
678
- name: u.string(),
679
- icon_url: u.string(),
680
- count: u.number()
681
- }), Mt = u.object({
677
+ }), At = T.GiftCode, jt = f.object({
678
+ name: f.string(),
679
+ icon_url: f.string(),
680
+ count: f.number()
681
+ }), Mt = f.object({
682
682
  ...P.shape,
683
- feature_type: u.string().enum(At),
684
- config: u.object({
685
- gift_items: u.array(jt),
686
- mp_url: u.string().optional(),
687
- mp_qrcode_url: u.string().optional()
683
+ feature_type: f.string().enum(At),
684
+ config: f.object({
685
+ gift_items: f.array(jt),
686
+ mp_url: f.string().optional(),
687
+ mp_qrcode_url: f.string().optional()
688
688
  })
689
- }), Nt = T.Invite, Pt = u.object({
689
+ }), Nt = T.Invite, Pt = f.object({
690
690
  ...P.shape,
691
- feature_type: u.string().enum(Nt),
692
- config: u.object({ share_url: u.string() })
693
- }), Ft = T.InvitedRegister, It = u.object({
691
+ feature_type: f.string().enum(Nt),
692
+ config: f.object({ share_url: f.string() })
693
+ }), Ft = T.InvitedRegister, It = f.object({
694
694
  ...P.shape,
695
- feature_type: u.string().enum(Ft)
696
- }), Lt = u.string().enum(r(S, "GiftCode", "LotteryTicket")), Rt = T.Lottery, zt = u.object({
697
- reward_item_id: u.number(),
698
- reward_item_name: u.string(),
695
+ feature_type: f.string().enum(Ft)
696
+ }), Lt = f.string().enum(r(S, "GiftCode", "LotteryTicket")), Rt = T.Lottery, zt = f.object({
697
+ reward_item_id: f.number(),
698
+ reward_item_name: f.string(),
699
699
  reward_item_type: Lt,
700
- reward_item_icon_url: u.string(),
701
- reward_item_desc: u.string().optional(),
702
- reward_amount: u.number(),
703
- reward_remaining_stock: u.number(),
704
- reward_item_rating: u.number()
705
- }), Bt = u.object({
700
+ reward_item_icon_url: f.string(),
701
+ reward_item_desc: f.string().optional(),
702
+ reward_amount: f.number(),
703
+ reward_remaining_stock: f.number(),
704
+ reward_item_rating: f.number()
705
+ }), Bt = f.object({
706
706
  ...P.shape,
707
- feature_type: u.string().enum(Rt),
708
- config: u.object({
709
- consume_item_id: u.number(),
710
- consume_item_name: u.string(),
711
- consume_item_icon_url: u.string(),
712
- consume_item_count: u.array(u.number()),
713
- consume_item_desc: u.string().optional(),
714
- rewards: u.array(zt)
707
+ feature_type: f.string().enum(Rt),
708
+ config: f.object({
709
+ consume_item_id: f.number(),
710
+ consume_item_name: f.string(),
711
+ consume_item_icon_url: f.string(),
712
+ consume_item_count: f.array(f.number()),
713
+ consume_item_desc: f.string().optional(),
714
+ rewards: f.array(zt)
715
715
  })
716
- }), Vt = T.LotteryDraw, Ht = u.object({
716
+ }), Vt = T.LotteryDraw, Ht = f.object({
717
717
  ...P.shape,
718
- feature_type: u.string().enum(Vt),
719
- config: u.object({
720
- draw_not_before: u.number(),
721
- draw_not_after: u.number()
718
+ feature_type: f.string().enum(Vt),
719
+ config: f.object({
720
+ draw_not_before: f.number(),
721
+ draw_not_after: f.number()
722
722
  })
723
- }), Ut = T.Preregister, Wt = u.object({
723
+ }), Ut = T.Preregister, Wt = f.object({
724
724
  ...P.shape,
725
- feature_type: u.string().enum(Ut)
726
- }), Gt = T.Quest, Kt = u.object({
725
+ feature_type: f.string().enum(Ut)
726
+ }), Gt = T.Quest, Kt = f.object({
727
727
  ...P.shape,
728
- feature_type: u.string().enum(Gt),
729
- config: u.object({
728
+ feature_type: f.string().enum(Gt),
729
+ config: f.object({
730
730
  objective: E,
731
- completion_value: u.number(),
732
- team: u.object({
733
- feature_id: u.number().optional(),
734
- completion_value: u.number(),
731
+ completion_value: f.number(),
732
+ team: f.object({
733
+ feature_id: f.number().optional(),
734
+ completion_value: f.number(),
735
735
  progress_algorithm: lt.clone().optional(),
736
- top_n: u.number().optional()
736
+ top_n: f.number().optional()
737
737
  }).optional(),
738
- config: u.object({
739
- topic_id: u.number().optional(),
740
- required_players: u.number().min(1).optional(),
741
- required_matches: u.number().min(1).optional(),
742
- event_item_id: u.number().optional()
738
+ config: f.object({
739
+ topic_id: f.number().optional(),
740
+ required_players: f.number().min(1).optional(),
741
+ required_matches: f.number().min(1).optional(),
742
+ event_item_id: f.number().optional()
743
743
  }).optional()
744
744
  })
745
- }), qt = T.Redeem, Jt = u.object({
746
- price: u.number(),
747
- per_user_limit: u.number(),
745
+ }), qt = T.Redeem, Jt = f.object({
746
+ price: f.number(),
747
+ per_user_limit: f.number(),
748
748
  item: N
749
- }), Yt = u.object({
749
+ }), Yt = f.object({
750
750
  ...P.shape,
751
- feature_type: u.string().enum(qt),
752
- config: u.object({
753
- event_item_id: u.number(),
754
- redeem_catalog: u.array(Jt)
751
+ feature_type: f.string().enum(qt),
752
+ config: f.object({
753
+ event_item_id: f.number(),
754
+ redeem_catalog: f.array(Jt)
755
755
  })
756
- }), Xt = T.Register, Zt = u.object({
756
+ }), Xt = T.Register, Zt = f.object({
757
757
  ...P.shape,
758
- feature_type: u.string().enum(Xt)
759
- }), Qt = T.Share, $t = u.object({
758
+ feature_type: f.string().enum(Xt)
759
+ }), Qt = T.Share, $t = f.object({
760
760
  ...P.shape,
761
- feature_type: u.string().enum(Qt),
762
- config: u.object({
763
- share_platform: u.string(),
764
- jump_url: u.string().optional(),
765
- icon_url: u.string().optional()
761
+ feature_type: f.string().enum(Qt),
762
+ config: f.object({
763
+ share_platform: f.string(),
764
+ jump_url: f.string().optional(),
765
+ icon_url: f.string().optional()
766
766
  })
767
- }), en = T.Subscribe, tn = u.object({
767
+ }), en = T.Subscribe, tn = f.object({
768
768
  ...P.shape,
769
- feature_type: u.string().enum(en),
770
- config: u.object({ weixin_template_ids: u.array(u.string()) })
771
- }), nn = T.Survey, rn = u.object({
769
+ feature_type: f.string().enum(en),
770
+ config: f.object({ weixin_template_ids: f.array(f.string()) })
771
+ }), nn = T.Survey, rn = f.object({
772
772
  ...P.shape,
773
- feature_type: u.string().enum(nn),
774
- config: u.object({
775
- survey_id: u.string(),
776
- survey_url: u.string()
773
+ feature_type: f.string().enum(nn),
774
+ config: f.object({
775
+ survey_id: f.string(),
776
+ survey_url: f.string()
777
777
  })
778
- }), an = T.Team, on = u.object({
778
+ }), an = T.Team, on = f.object({
779
779
  ...P.shape,
780
- feature_type: u.string().enum(an),
781
- config: u.object({
782
- max_members: u.number().min(1),
783
- min_members: u.number().min(1)
780
+ feature_type: f.string().enum(an),
781
+ config: f.object({
782
+ max_members: f.number().min(1),
783
+ min_members: f.number().min(1)
784
784
  })
785
- }), sn = T.Ugc, cn = u.object({
785
+ }), sn = T.Ugc, cn = f.object({
786
786
  ...P.shape,
787
- feature_type: u.string().enum(sn),
788
- config: u.object({
789
- allowed_social_medias: u.array(u.string()).optional(),
790
- acceptance_rewards: u.array(N).optional()
787
+ feature_type: f.string().enum(sn),
788
+ config: f.object({
789
+ allowed_social_medias: f.array(f.string()).optional(),
790
+ acceptance_rewards: f.array(N).optional()
791
791
  })
792
- }), ln = T.UgcLike, un = u.object({
792
+ }), ln = T.UgcLike, un = f.object({
793
793
  ...P.shape,
794
- feature_type: u.string().enum(ln),
795
- config: u.object({ ugc_feature_id: u.number() })
796
- }), dn = T.Vote, fn = u.object({
797
- sn: u.string(),
798
- name: u.string(),
799
- img_urls: u.array(u.string()).optional(),
800
- video_urls: u.array(u.string()).optional(),
801
- descriptions: u.array(u.string()).optional(),
802
- jump_url: u.string(),
803
- amount: u.number(),
804
- finalists: u.bool(),
805
- last_vote_time: u.number()
806
- }), pn = u.object({
794
+ feature_type: f.string().enum(ln),
795
+ config: f.object({ ugc_feature_id: f.number() })
796
+ }), dn = T.Vote, fn = f.object({
797
+ sn: f.string(),
798
+ name: f.string(),
799
+ img_urls: f.array(f.string()).optional(),
800
+ video_urls: f.array(f.string()).optional(),
801
+ descriptions: f.array(f.string()).optional(),
802
+ jump_url: f.string(),
803
+ amount: f.number(),
804
+ finalists: f.bool(),
805
+ last_vote_time: f.number()
806
+ }), pn = f.object({
807
807
  ...P.shape,
808
- feature_type: u.string().enum(dn),
809
- config: u.object({
810
- vote_feature_ids: u.array(u.number()),
811
- submission_feature_ids: u.array(u.number()),
812
- finalists_amount: u.number(),
808
+ feature_type: f.string().enum(dn),
809
+ config: f.object({
810
+ vote_feature_ids: f.array(f.number()),
811
+ submission_feature_ids: f.array(f.number()),
812
+ finalists_amount: f.number(),
813
813
  source: Qe,
814
- options: u.array(fn),
815
- rewards: u.array(N)
814
+ options: f.array(fn),
815
+ rewards: f.array(N)
816
816
  })
817
- }), F = u.union(u.string().pattern("NumberString", /^\d+$/), u.number()), I = u.object({
817
+ }), F = f.union(f.string().pattern("NumberString", /^\d+$/), f.number()), I = f.object({
818
818
  order_total_amount: F,
819
819
  cashback_total_amount: F,
820
820
  game_item_count: F
821
- }), mn = u.object({ activation_key: u.string().disallow("") }), hn = u.object({ gift_code: u.string() }), gn = u.object({
822
- user_id: u.string(),
823
- name: u.string().optional(),
824
- avatar_url: u.string().optional()
825
- }), _n = u.object({ lottery_count: u.number() }), L = u.object({
826
- reward_id: u.number(),
827
- reward_item_id: u.number(),
821
+ }), mn = f.object({ activation_key: f.string().disallow("") }), hn = f.object({ gift_code: f.string() }), gn = f.object({
822
+ user_id: f.string(),
823
+ name: f.string().optional(),
824
+ avatar_url: f.string().optional()
825
+ }), _n = f.object({ lottery_count: f.number() }), L = f.object({
826
+ reward_id: f.number(),
827
+ reward_item_id: f.number(),
828
828
  reward_source: A,
829
- reward_item_name: u.string(),
829
+ reward_item_name: f.string(),
830
830
  reward_item_type: C,
831
- reward_item_icon_url: u.string(),
832
- reward_item_desc: u.string().optional(),
833
- reward_item_rating: u.number(),
834
- reward_amount: u.number(),
831
+ reward_item_icon_url: f.string(),
832
+ reward_item_desc: f.string().optional(),
833
+ reward_item_rating: f.number(),
834
+ reward_amount: f.number(),
835
835
  reward_status: k,
836
- event_id: u.number(),
837
- event_name: u.string(),
838
- feature_id: u.number(),
839
- engagement_id: u.number(),
836
+ event_id: f.number(),
837
+ event_name: f.string(),
838
+ feature_id: f.number(),
839
+ engagement_id: f.number(),
840
840
  feature_type: Ye,
841
- receive_time: u.number(),
842
- extra_data: u.record(u.unknown()).optional()
843
- }), vn = u.string().enum(j.Unknown, j.Pending), yn = u.union(u.object({
844
- ticket: u.string(),
841
+ receive_time: f.number(),
842
+ extra_data: f.record(f.unknown()).optional()
843
+ }), vn = f.string().enum(j.Unknown, j.Pending), yn = f.union(f.object({
844
+ ticket: f.string(),
845
845
  status: vn,
846
- created_at: u.number()
847
- }), u.object({
848
- ticket: u.string(),
849
- status: u.string().enum(r(j, "Unknown", "Pending")),
850
- created_at: u.number(),
846
+ created_at: f.number()
847
+ }), f.object({
848
+ ticket: f.string(),
849
+ status: f.string().enum(r(j, "Unknown", "Pending")),
850
+ created_at: f.number(),
851
851
  reward: L
852
- })).satisfies(), bn = u.object({ tickets: u.array(yn) }), xn = u.object({ platforms: u.array(u.string()) }), Sn = u.object({
853
- role_name: u.string(),
854
- is_leader: u.bool(),
855
- is_myself: u.bool().optional(),
856
- progress: u.number().optional(),
857
- avatar_url: u.string().optional()
858
- }).lock(), Cn = u.object({
852
+ })).satisfies(), bn = f.object({ tickets: f.array(yn) }), xn = f.object({ platforms: f.array(f.string()) }), Sn = f.object({
853
+ role_name: f.string(),
854
+ is_leader: f.bool(),
855
+ is_myself: f.bool().optional(),
856
+ progress: f.number().optional(),
857
+ avatar_url: f.string().optional()
858
+ }).lock(), Cn = f.object({
859
859
  objective: E,
860
- progress: u.number(),
861
- completion_value: u.number().optional(),
862
- team: u.object({
863
- progress: u.number(),
864
- completion_value: u.number().optional(),
865
- players: u.array(Sn)
860
+ progress: f.number(),
861
+ completion_value: f.number().optional(),
862
+ team: f.object({
863
+ progress: f.number(),
864
+ completion_value: f.number().optional(),
865
+ players: f.array(Sn)
866
866
  }).optional()
867
- }), wn = u.object({
868
- progress: u.number(),
869
- team: u.object({
870
- progress: u.number(),
871
- team_members: u.array(Sn).optional()
867
+ }), wn = f.object({
868
+ progress: f.number(),
869
+ team: f.object({
870
+ progress: f.number(),
871
+ team_members: f.array(Sn).optional()
872
872
  }).optional()
873
- }), Tn = u.object({
874
- item_id: u.number(),
875
- item_count: u.number(),
876
- redeem_count: u.number()
877
- }), En = u.object({ item_stocks: u.array(u.object({
878
- item_id: u.number(),
879
- item_stock: u.number(),
880
- user_limit: u.number()
881
- })) }), Dn = u.object({ platform: u.string().optional() }), On = u.object({ weixin_openid: u.string() }), kn = u.object({ serial_number: u.number() }), An = u.object({
882
- team_code: u.string(),
883
- leader_name: u.string(),
884
- total_members: u.number()
885
- }), jn = u.object({
886
- is_leader: u.bool(),
887
- is_myself: u.bool().optional(),
888
- role_name: u.string(),
889
- server_name: u.string(),
890
- avatar_url: u.string().optional()
891
- }), Mn = u.object({
892
- team_code: u.string(),
873
+ }), Tn = f.object({
874
+ item_id: f.number(),
875
+ item_count: f.number(),
876
+ redeem_count: f.number()
877
+ }), En = f.object({ item_stocks: f.array(f.object({
878
+ item_id: f.number(),
879
+ item_stock: f.number(),
880
+ user_limit: f.number()
881
+ })) }), Dn = f.object({ platform: f.string().optional() }), On = f.object({ weixin_openid: f.string() }), kn = f.object({ serial_number: f.number() }), An = f.object({
882
+ team_code: f.string(),
883
+ leader_name: f.string(),
884
+ total_members: f.number()
885
+ }), jn = f.object({
886
+ is_leader: f.bool(),
887
+ is_myself: f.bool().optional(),
888
+ role_name: f.string(),
889
+ server_name: f.string(),
890
+ avatar_url: f.string().optional()
891
+ }), Mn = f.object({
892
+ team_code: f.string(),
893
893
  visibility: nt,
894
- members: u.array(u.object({
895
- is_leader: u.bool(),
896
- role_name: u.string(),
897
- server_name: u.string()
894
+ members: f.array(f.object({
895
+ is_leader: f.bool(),
896
+ role_name: f.string(),
897
+ server_name: f.string()
898
898
  }))
899
- }), Nn = u.object({
900
- ugc_id: u.number(),
901
- title: u.string(),
902
- content: u.string().optional(),
903
- image_urls: u.array(u.string()).optional(),
899
+ }), Nn = f.object({
900
+ ugc_id: f.number(),
901
+ title: f.string(),
902
+ content: f.string().optional(),
903
+ image_urls: f.array(f.string()).optional(),
904
904
  social_media: M.clone().optional(),
905
- social_media_url: u.string().optional()
906
- }), Pn = u.object({
907
- ugcs: u.array(u.object({
908
- ugc_id: u.number(),
909
- event_id: u.number().optional(),
910
- feature_id: u.number().optional(),
911
- title: u.string(),
912
- content: u.string().optional(),
913
- image_urls: u.array(u.string()).optional(),
905
+ social_media_url: f.string().optional()
906
+ }), Pn = f.object({
907
+ ugcs: f.array(f.object({
908
+ ugc_id: f.number(),
909
+ event_id: f.number().optional(),
910
+ feature_id: f.number().optional(),
911
+ title: f.string(),
912
+ content: f.string().optional(),
913
+ image_urls: f.array(f.string()).optional(),
914
914
  social_media: M.clone().optional(),
915
- social_media_url: u.string().optional(),
916
- server_id: u.number().optional(),
917
- server_name: u.string().optional(),
918
- role_id: u.string().optional(),
919
- role_name: u.string().optional(),
920
- total_likes: u.number().optional(),
921
- created_at: u.number()
915
+ social_media_url: f.string().optional(),
916
+ server_id: f.number().optional(),
917
+ server_name: f.string().optional(),
918
+ role_id: f.string().optional(),
919
+ role_name: f.string().optional(),
920
+ total_likes: f.number().optional(),
921
+ created_at: f.number()
922
922
  })).optional(),
923
- next_token: u.string().optional()
924
- }), Fn = u.object({
925
- ugcs: u.array(u.object({
926
- ugc_id: u.number(),
927
- event_id: u.number().optional(),
928
- feature_id: u.number().optional(),
929
- feature_name: u.string().optional(),
923
+ next_token: f.string().optional()
924
+ }), Fn = f.object({
925
+ ugcs: f.array(f.object({
926
+ ugc_id: f.number(),
927
+ event_id: f.number().optional(),
928
+ feature_id: f.number().optional(),
929
+ feature_name: f.string().optional(),
930
930
  review_status: mt,
931
- reviewer_comment: u.string().optional(),
932
- title: u.string(),
933
- content: u.string().optional(),
934
- image_urls: u.array(u.string()).optional(),
931
+ reviewer_comment: f.string().optional(),
932
+ title: f.string(),
933
+ content: f.string().optional(),
934
+ image_urls: f.array(f.string()).optional(),
935
935
  social_media: M.clone().optional(),
936
- social_media_url: u.string().optional(),
937
- server_id: u.number().optional(),
938
- server_name: u.string().optional(),
939
- role_id: u.string().optional(),
940
- role_name: u.string().optional(),
941
- total_likes: u.number().optional(),
942
- created_at: u.number()
936
+ social_media_url: f.string().optional(),
937
+ server_id: f.number().optional(),
938
+ server_name: f.string().optional(),
939
+ role_id: f.string().optional(),
940
+ role_name: f.string().optional(),
941
+ total_likes: f.number().optional(),
942
+ created_at: f.number()
943
943
  })).optional(),
944
- next_token: u.string().optional()
945
- }), In = u.object({ total_count: u.number() }), Ln = u.object({
946
- existed: u.bool(),
947
- upload_url: u.string().optional(),
948
- image_url: u.string()
949
- }), Rn = u.object({ ugcs: u.array(u.object({
950
- ugc_id: u.number(),
951
- rank: u.number(),
952
- total_likes: u.number(),
953
- image_urls: u.array(u.string()).optional(),
954
- server_id: u.number().optional(),
955
- server_name: u.string().optional(),
956
- role_id: u.string().optional(),
957
- role_name: u.string().optional()
958
- })).optional() }), R = u.object({ option_sn: u.string() }), zn = u.object({
959
- candidate_id: u.string(),
960
- total_votes: u.number().optional(),
961
- my_votes: u.number().optional(),
962
- cycle_votes: u.number().optional(),
963
- votes: u.number().optional()
964
- }), Bn = u.object({
944
+ next_token: f.string().optional()
945
+ }), In = f.object({ total_count: f.number() }), Ln = f.object({
946
+ existed: f.bool(),
947
+ upload_url: f.string().optional(),
948
+ image_url: f.string()
949
+ }), Rn = f.object({ ugcs: f.array(f.object({
950
+ ugc_id: f.number(),
951
+ rank: f.number(),
952
+ total_likes: f.number(),
953
+ image_urls: f.array(f.string()).optional(),
954
+ server_id: f.number().optional(),
955
+ server_name: f.string().optional(),
956
+ role_id: f.string().optional(),
957
+ role_name: f.string().optional()
958
+ })).optional() }), R = f.object({ option_sn: f.string() }), zn = f.object({
959
+ candidate_id: f.string(),
960
+ total_votes: f.number().optional(),
961
+ my_votes: f.number().optional(),
962
+ cycle_votes: f.number().optional(),
963
+ votes: f.number().optional()
964
+ }), Bn = f.object({
965
965
  rewards_type: dt,
966
- rewards: u.array(L).optional()
967
- }), Vn = u.object({
968
- candidate_id: u.string(),
969
- is_winner: u.bool(),
970
- total_votes: u.number(),
971
- my_votes: u.number(),
972
- cycle_votes: u.number().optional()
973
- }), Hn = u.object({
974
- role: u.string(),
975
- content: u.string()
976
- }), Un = u.object({ conversations: u.array(Hn) }), Wn = u.object({
977
- user_id: u.string(),
978
- name: u.string(),
979
- avatar_url: u.string(),
980
- comment: u.string(),
981
- video_note: u.number(),
982
- created_at: u.number()
983
- }), z = u.union(xn, _n, kn, gn, Dn, R, zn, On, I, hn, Mn, Cn, bn, mn, Un, Nn, Tn, u.custom("EmptyObject", (e) => t(e) && Object.keys(e).length === 0)).satisfies().lock(), Gn = u.object({
984
- reward_id: u.number(),
985
- reward_item_id: u.number(),
966
+ rewards: f.array(L).optional()
967
+ }), Vn = f.object({
968
+ candidate_id: f.string(),
969
+ is_winner: f.bool(),
970
+ total_votes: f.number(),
971
+ my_votes: f.number(),
972
+ cycle_votes: f.number().optional()
973
+ }), Hn = f.object({
974
+ role: f.string(),
975
+ content: f.string()
976
+ }), Un = f.object({ conversations: f.array(Hn) }), Wn = f.object({
977
+ user_id: f.string(),
978
+ name: f.string(),
979
+ avatar_url: f.string(),
980
+ comment: f.string(),
981
+ video_note: f.number(),
982
+ created_at: f.number()
983
+ }), z = f.union(xn, _n, kn, gn, Dn, R, zn, On, I, hn, Mn, Cn, bn, mn, Un, Nn, Tn, f.custom("EmptyObject", (e) => t(e) && Object.keys(e).length === 0)).satisfies().lock(), Gn = f.object({
984
+ reward_id: f.number(),
985
+ reward_item_id: f.number(),
986
986
  reward_item_type: w,
987
- reward_count: u.number(),
987
+ reward_count: f.number(),
988
988
  reward_status: O,
989
989
  reward_source: A,
990
- reward_item_name: u.string(),
991
- reward_item_icon_url: u.string(),
992
- reward_item_desc: u.string().optional(),
993
- reward_item_rating: u.number(),
994
- receive_time: u.number(),
995
- extra_data: u.union(...z.validators, u.record(u.unknown())).satisfies().optional()
996
- }), Kn = u.object({
997
- reward_id: u.number(),
998
- reward_item_id: u.number(),
999
- reward_item_name: u.string(),
990
+ reward_item_name: f.string(),
991
+ reward_item_icon_url: f.string(),
992
+ reward_item_desc: f.string().optional(),
993
+ reward_item_rating: f.number(),
994
+ receive_time: f.number(),
995
+ extra_data: f.union(...z.validators, f.record(f.unknown())).satisfies().optional()
996
+ }), Kn = f.object({
997
+ reward_id: f.number(),
998
+ reward_item_id: f.number(),
999
+ reward_item_name: f.string(),
1000
1000
  reward_item_type: w,
1001
- reward_item_icon_url: u.string(),
1002
- reward_item_desc: u.string().optional(),
1003
- reward_item_rating: u.number(),
1004
- reward_amount: u.number(),
1001
+ reward_item_icon_url: f.string(),
1002
+ reward_item_desc: f.string().optional(),
1003
+ reward_item_rating: f.number(),
1004
+ reward_amount: f.number(),
1005
1005
  reward_status: O,
1006
1006
  reward_source: A,
1007
- extra_data: u.record(u.unknown()).optional()
1008
- }), qn = u.object({
1009
- engagement_id: u.number(),
1010
- user_id: u.string(),
1011
- event_id: u.number(),
1012
- feature_id: u.number(),
1013
- sequence: u.number(),
1007
+ extra_data: f.record(f.unknown()).optional()
1008
+ }), qn = f.object({
1009
+ engagement_id: f.number(),
1010
+ user_id: f.string(),
1011
+ event_id: f.number(),
1012
+ feature_id: f.number(),
1013
+ sequence: f.number(),
1014
1014
  data: z.clone().optional(),
1015
- server_id: u.string().optional(),
1016
- role_id: u.string().optional(),
1017
- created_at: u.number(),
1018
- rewards: u.array(Gn).optional()
1019
- }).lock(), Jn = u.object({
1020
- allowed: u.bool(),
1021
- registered: u.bool()
1022
- }), Yn = u.object({
1023
- feature_id: u.number(),
1024
- can_engage: u.bool(),
1025
- has_unclaimed_rewards: u.bool(),
1026
- final_available_count: u.number(),
1027
- total_remaining_engagements: u.number(),
1028
- cycle_remaining_engagements: u.number(),
1029
- eligible: u.bool().optional(),
1030
- actions: u.array(u.object({
1031
- action_type: u.string(),
1032
- allowed: u.bool()
1015
+ server_id: f.string().optional(),
1016
+ role_id: f.string().optional(),
1017
+ created_at: f.number(),
1018
+ rewards: f.array(Gn).optional()
1019
+ }).lock(), Jn = f.object({
1020
+ allowed: f.bool(),
1021
+ registered: f.bool()
1022
+ }), Yn = f.object({
1023
+ feature_id: f.number(),
1024
+ can_engage: f.bool(),
1025
+ has_unclaimed_rewards: f.bool(),
1026
+ final_available_count: f.number(),
1027
+ total_remaining_engagements: f.number(),
1028
+ cycle_remaining_engagements: f.number(),
1029
+ eligible: f.bool().optional(),
1030
+ actions: f.array(f.object({
1031
+ action_type: f.string(),
1032
+ allowed: f.bool()
1033
1033
  })).optional()
1034
- }), Xn = u.object({
1035
- engagement_id: u.number(),
1036
- engagement: u.object({
1037
- engagement_id: u.number(),
1038
- sequence: u.number(),
1039
- feature_id: u.number(),
1034
+ }), Xn = f.object({
1035
+ engagement_id: f.number(),
1036
+ engagement: f.object({
1037
+ engagement_id: f.number(),
1038
+ sequence: f.number(),
1039
+ feature_id: f.number(),
1040
1040
  data: z.clone().optional()
1041
1041
  }).optional(),
1042
- rewards: u.array(Kn).optional(),
1043
- scan: u.bool().optional()
1044
- }), Zn = u.object({
1045
- reward_id: u.number(),
1042
+ rewards: f.array(Kn).optional(),
1043
+ scan: f.bool().optional()
1044
+ }), Zn = f.object({
1045
+ reward_id: f.number(),
1046
1046
  reward_status: k
1047
- }), Qn = T.Vote2, $n = u.object({
1048
- candidate_id: u.string(),
1049
- display_name: u.string(),
1050
- images: u.array(u.string()).optional(),
1051
- videos: u.array(u.string()).optional(),
1052
- description: u.string().optional(),
1053
- jump_url: u.string()
1054
- }), er = u.object({
1047
+ }), Qn = T.Vote2, $n = f.object({
1048
+ candidate_id: f.string(),
1049
+ display_name: f.string(),
1050
+ images: f.array(f.string()).optional(),
1051
+ videos: f.array(f.string()).optional(),
1052
+ description: f.string().optional(),
1053
+ jump_url: f.string()
1054
+ }), er = f.object({
1055
1055
  ...P.shape,
1056
- feature_type: u.string().enum(Qn),
1057
- config: u.object({
1058
- vote_item_id: u.number().optional(),
1059
- candidates: u.array($n),
1060
- vote_since: u.number(),
1061
- vote_until: u.number(),
1062
- rewards_since: u.number(),
1063
- rewards_until: u.number(),
1064
- winner_rewards: u.array(N).optional(),
1065
- consolation_rewards: u.array(N).optional(),
1066
- max_votes_per_user_per_candidate_per_cycle: u.number().optional()
1056
+ feature_type: f.string().enum(Qn),
1057
+ config: f.object({
1058
+ vote_item_id: f.number().optional(),
1059
+ candidates: f.array($n),
1060
+ vote_since: f.number(),
1061
+ vote_until: f.number(),
1062
+ rewards_since: f.number(),
1063
+ rewards_until: f.number(),
1064
+ winner_rewards: f.array(N).optional(),
1065
+ consolation_rewards: f.array(N).optional(),
1066
+ max_votes_per_user_per_candidate_per_cycle: f.number().optional()
1067
1067
  })
1068
- }), tr = T.ZeroChatgpt, nr = u.object({
1068
+ }), tr = T.ZeroChatgpt, nr = f.object({
1069
1069
  ...P.shape,
1070
- feature_type: u.string().enum(tr)
1071
- }), rr = u.union(yt, xt, Tt, Dt, kt, Mt, Pt, It, Bt, Ht, Wt, Kt, Zt, $t, tn, rn, on, pn, er, Ct, nr, cn, un, Yt).key("feature_type").satisfies(), ir = u.object({
1072
- event_name: u.string(),
1073
- rules: u.string(),
1074
- since: u.number(),
1075
- until: u.number(),
1076
- visit_count: u.number().optional(),
1077
- features: u.array(rr)
1078
- }).lock(), ar = u.guard(ir), or = u.guard(Jn), B = l({ count: u.number() }), sr = l({ first_visit: u.bool() }), cr = l({ engagements: u.union(u.array(Wn), u.array(An)) }), lr = l({ status: u.array(Yn) }), ur = l({ engagements_counts: u.record(u.number()) }), dr = l({
1079
- engagements: u.array(qn),
1080
- next_token: u.string().optional()
1081
- }), fr = u.guard(Xn), pr = l({ claimed_items: u.array(Zn) }), mr = l({ rewards: u.array(L) }), hr = l({ reward_status: k }), gr = l({
1082
- user_rewards: u.array(L),
1083
- next_token: u.string().optional()
1084
- }), _r = l({ unclaimed: u.number() }), vr = l({ scene: u.string() }), yr = l({ params: u.string() }), br = l({ img: u.string() }), xr = u.guard(wn), Sr = u.guard(Bn), Cr = u.guard(u.object({ candidate_votes: u.array(Vn) })), wr = u.guard(I), Tr = u.guard(Fn), Er = u.guard(Pn), Dr = u.guard(In), Or = u.guard(Ln), kr = u.guard(Rn), Ar = u.guard(En);
1070
+ feature_type: f.string().enum(tr)
1071
+ }), rr = f.union(yt, xt, Tt, Dt, kt, Mt, Pt, It, Bt, Ht, Wt, Kt, Zt, $t, tn, rn, on, pn, er, Ct, nr, cn, un, Yt).key("feature_type").satisfies(), ir = f.object({
1072
+ event_name: f.string(),
1073
+ rules: f.string(),
1074
+ since: f.number(),
1075
+ until: f.number(),
1076
+ visit_count: f.number().optional(),
1077
+ features: f.array(rr)
1078
+ }).lock(), ar = f.guard(ir), or = f.guard(Jn), B = d({ count: f.number() }), sr = d({ first_visit: f.bool() }), cr = d({ engagements: f.union(f.array(Wn), f.array(An)) }), lr = d({ status: f.array(Yn) }), ur = d({ engagements_counts: f.record(f.number()) }), dr = d({
1079
+ engagements: f.array(qn),
1080
+ next_token: f.string().optional()
1081
+ }), fr = f.guard(Xn), pr = d({ claimed_items: f.array(Zn) }), mr = d({ rewards: f.array(L) }), hr = d({ reward_status: k }), gr = d({
1082
+ user_rewards: f.array(L),
1083
+ next_token: f.string().optional()
1084
+ }), _r = d({ unclaimed: f.number() }), vr = d({ scene: f.string() }), yr = d({ params: f.string() }), br = d({ img: f.string() }), xr = f.guard(wn), Sr = f.guard(Bn), Cr = f.guard(f.object({ candidate_votes: f.array(Vn) })), wr = f.guard(I), Tr = f.guard(Fn), Er = f.guard(Pn), Dr = f.guard(In), Or = f.guard(Ln), kr = f.guard(Rn), Ar = f.guard(En);
1085
1085
  //#endregion
1086
1086
  //#region src/event.methods.ts
1087
1087
  async function jr(e, t, n) {
@@ -1378,10 +1378,10 @@ async function ci(e, t) {
1378
1378
  var li = {
1379
1379
  Waiting: 1,
1380
1380
  Playing: 2
1381
- }, ui = u.number().enum(li).lock(), di = class {
1381
+ }, ui = f.number().enum(li).lock(), di = class {
1382
1382
  req;
1383
1383
  constructor(e, t) {
1384
- let n = d(e) ? e : `https://${o(e)}`;
1384
+ let n = oe(e) ? e : `https://${o(e)}`;
1385
1385
  this.req = t({
1386
1386
  baseURL: `${n}/v1/ggd`,
1387
1387
  timeout: 1e4,
@@ -1397,38 +1397,50 @@ var li = {
1397
1397
  }
1398
1398
  });
1399
1399
  }
1400
- async describeRoomByCode(e) {
1401
- let { data: t, ok: n, code: r, message: i } = await this.req.get("describe-room", { invitation_code: e || s("invitation_code") }, l({
1402
- room_id: u.string(),
1403
- inviter_role_id: u.number(),
1400
+ async describeRoomByCode(e, t, n) {
1401
+ let r = String(n || s("expires_at")), i = e || s("invitation_code"), a = t || s("server_id");
1402
+ if (!i && !a || !/^\d+$/.test(r)) return {
1403
+ error: "invitation_code_invalid",
1404
+ message: "邀请链接无效"
1405
+ };
1406
+ if (r && Date.now() > Number(r) * 1e3) return {
1407
+ error: "invitation_code_expired",
1408
+ message: "邀请链接已过期"
1409
+ };
1410
+ let { data: o, ok: c, code: l, message: u } = await this.req.get("describe-room", {
1411
+ invitation_code: i,
1412
+ server_id: a
1413
+ }, d({
1414
+ room_id: f.string(),
1415
+ inviter_role_id: f.number(),
1404
1416
  room_status: ui,
1405
- room_mode: u.string(),
1406
- room_tags: u.array(u.string()),
1407
- max_members: u.number(),
1408
- members: u.array(u.object({
1409
- role_id: u.number(),
1410
- role_name: u.string(),
1411
- avatar_url: u.string()
1417
+ room_mode: f.string(),
1418
+ room_tags: f.array(f.string()).optional(),
1419
+ max_members: f.number(),
1420
+ members: f.array(f.object({
1421
+ role_id: f.number(),
1422
+ role_name: f.string(),
1423
+ avatar_url: f.string()
1412
1424
  }))
1413
1425
  }), { message: !1 });
1414
- return n && t ? t : {
1415
- error: r,
1416
- message: i
1426
+ return c && o ? o : {
1427
+ error: l,
1428
+ message: u
1417
1429
  };
1418
1430
  }
1419
1431
  }, fi = {
1420
1432
  All: "all",
1421
1433
  Limit: "limit"
1422
- }, pi = u.string().enum(fi).lock(), mi = {
1434
+ }, pi = f.string().enum(fi).lock(), mi = {
1423
1435
  Pending: "pending",
1424
1436
  Approved: "approved",
1425
1437
  Failed: "failed",
1426
1438
  Suspect: "suspect"
1427
- }, V = u.string().enum(mi).lock(), hi = {
1439
+ }, V = f.string().enum(mi).lock(), hi = {
1428
1440
  System: "system",
1429
1441
  Comment: "comment",
1430
1442
  Like: "like"
1431
- }, gi = u.string().enum(hi).lock(), H = {
1443
+ }, gi = f.string().enum(hi).lock(), H = {
1432
1444
  System: "system",
1433
1445
  PostPinned: "post_pinned",
1434
1446
  PostHighlighted: "post_highlighted",
@@ -1441,168 +1453,168 @@ var li = {
1441
1453
  ReplyReplied: "reply_replied",
1442
1454
  ReplyLiked: "reply_liked",
1443
1455
  ReplyDeleted: "reply_deleted"
1444
- }, _i = u.string().enum(H).lock(), U = u.object({
1445
- forum_id: u.number(),
1446
- icon_url: u.string(),
1447
- name: u.string(),
1448
- tags: u.array(u.string()),
1449
- sort: u.number(),
1456
+ }, _i = f.string().enum(H).lock(), U = f.object({
1457
+ forum_id: f.number(),
1458
+ icon_url: f.string(),
1459
+ name: f.string(),
1460
+ tags: f.array(f.string()),
1461
+ sort: f.number(),
1450
1462
  mode: pi,
1451
- member_ids: u.array(u.number())
1452
- }).lock(), W = u.object({
1453
- topic_id: u.number(),
1454
- cover_url: u.string(),
1455
- name: u.string(),
1456
- description: u.string(),
1457
- tags: u.array(u.string()),
1458
- post_num: u.number()
1459
- }).lock(), G = u.object({
1460
- post_id: u.number(),
1463
+ member_ids: f.array(f.number())
1464
+ }).lock(), W = f.object({
1465
+ topic_id: f.number(),
1466
+ cover_url: f.string(),
1467
+ name: f.string(),
1468
+ description: f.string(),
1469
+ tags: f.array(f.string()),
1470
+ post_num: f.number()
1471
+ }).lock(), G = f.object({
1472
+ post_id: f.number(),
1461
1473
  forum: U,
1462
- posted_by: u.string(),
1463
- nickname: u.string(),
1464
- avatar_url: u.string(),
1465
- title: u.string().optional(),
1466
- content: u.string(),
1467
- content_text_count: u.number(),
1468
- summary: u.string(),
1469
- like_num: u.number(),
1470
- comments_num: u.number(),
1471
- liked: u.bool(),
1472
- image_urls: u.array(u.string()),
1473
- topics: u.array(W),
1474
- event_ids: u.array(u.number()),
1475
- is_pinned: u.bool(),
1476
- is_highlighted: u.bool(),
1474
+ posted_by: f.string(),
1475
+ nickname: f.string(),
1476
+ avatar_url: f.string(),
1477
+ title: f.string().optional(),
1478
+ content: f.string(),
1479
+ content_text_count: f.number(),
1480
+ summary: f.string(),
1481
+ like_num: f.number(),
1482
+ comments_num: f.number(),
1483
+ liked: f.bool(),
1484
+ image_urls: f.array(f.string()),
1485
+ topics: f.array(W),
1486
+ event_ids: f.array(f.number()),
1487
+ is_pinned: f.bool(),
1488
+ is_highlighted: f.bool(),
1477
1489
  status: V,
1478
- create_time: u.number()
1479
- }).lock(), K = u.object({ err_msg: u.string().optional() }).optional().lock(), vi = u.object({
1480
- reply_id: u.number(),
1481
- reply_content: u.string().optional(),
1482
- replied_by: u.string(),
1483
- nickname: u.string(),
1484
- avatar_url: u.string()
1485
- }).lock(), q = u.object({
1486
- reply_id: u.number(),
1487
- comment_id: u.number(),
1488
- comment_content: u.string().optional(),
1489
- commented_by: u.string().optional(),
1490
- commented_by_nickname: u.string().optional(),
1491
- commented_by_avatar_url: u.string().optional(),
1492
- replied_by: u.string(),
1493
- nickname: u.string(),
1494
- avatar_url: u.string(),
1495
- content: u.string(),
1496
- like_num: u.number(),
1497
- liked: u.bool(),
1490
+ create_time: f.number()
1491
+ }).lock(), K = f.object({ err_msg: f.string().optional() }).optional().lock(), vi = f.object({
1492
+ reply_id: f.number(),
1493
+ reply_content: f.string().optional(),
1494
+ replied_by: f.string(),
1495
+ nickname: f.string(),
1496
+ avatar_url: f.string()
1497
+ }).lock(), q = f.object({
1498
+ reply_id: f.number(),
1499
+ comment_id: f.number(),
1500
+ comment_content: f.string().optional(),
1501
+ commented_by: f.string().optional(),
1502
+ commented_by_nickname: f.string().optional(),
1503
+ commented_by_avatar_url: f.string().optional(),
1504
+ replied_by: f.string(),
1505
+ nickname: f.string(),
1506
+ avatar_url: f.string(),
1507
+ content: f.string(),
1508
+ like_num: f.number(),
1509
+ liked: f.bool(),
1498
1510
  reply_to: vi,
1499
- create_time: u.number()
1500
- }).lock(), J = u.object({
1501
- comment_id: u.number(),
1502
- post_id: u.number(),
1503
- post_subject: u.string().optional(),
1504
- post_summary: u.string().optional(),
1505
- post_image_url: u.string().optional(),
1506
- posted_by: u.string().optional(),
1507
- posted_by_nickname: u.string().optional(),
1508
- posted_by_avatar_url: u.string().optional(),
1509
- commented_by: u.string(),
1510
- nickname: u.string(),
1511
- avatar_url: u.string(),
1512
- content: u.string(),
1513
- like_num: u.number(),
1514
- reply_num: u.number(),
1515
- liked: u.bool(),
1516
- image_url: u.string(),
1517
- create_time: u.number(),
1511
+ create_time: f.number()
1512
+ }).lock(), J = f.object({
1513
+ comment_id: f.number(),
1514
+ post_id: f.number(),
1515
+ post_subject: f.string().optional(),
1516
+ post_summary: f.string().optional(),
1517
+ post_image_url: f.string().optional(),
1518
+ posted_by: f.string().optional(),
1519
+ posted_by_nickname: f.string().optional(),
1520
+ posted_by_avatar_url: f.string().optional(),
1521
+ commented_by: f.string(),
1522
+ nickname: f.string(),
1523
+ avatar_url: f.string(),
1524
+ content: f.string(),
1525
+ like_num: f.number(),
1526
+ reply_num: f.number(),
1527
+ liked: f.bool(),
1528
+ image_url: f.string(),
1529
+ create_time: f.number(),
1518
1530
  status: V,
1519
- replies: u.array(q).optional()
1520
- }).lock(), yi = u.object({
1521
- image_url: u.string(),
1522
- upload_url: u.string(),
1523
- existed: u.bool()
1524
- }).lock(), Y = u.object({
1525
- notification_id: u.string(),
1531
+ replies: f.array(q).optional()
1532
+ }).lock(), yi = f.object({
1533
+ image_url: f.string(),
1534
+ upload_url: f.string(),
1535
+ existed: f.bool()
1536
+ }).lock(), Y = f.object({
1537
+ notification_id: f.string(),
1526
1538
  notification_type: _i,
1527
- is_read: u.bool(),
1528
- create_time: u.number(),
1529
- origin_user_id: u.string(),
1530
- origin_user_name: u.string(),
1531
- origin_user_avatar_url: u.string()
1532
- }).lock(), bi = u.object({
1533
- system_message_subject: u.string(),
1534
- system_message_content: u.string()
1535
- }).lock(), X = u.object({
1536
- post_id: u.number(),
1537
- post_subject: u.string(),
1538
- post_summary: u.string(),
1539
- post_image_url: u.string()
1540
- }).lock(), Z = u.object({
1541
- comment_id: u.number(),
1542
- comment_content: u.string()
1543
- }).lock(), Q = u.object({
1544
- reply_id: u.number(),
1545
- reply_content: u.string()
1546
- }).lock(), xi = u.object({
1539
+ is_read: f.bool(),
1540
+ create_time: f.number(),
1541
+ origin_user_id: f.string(),
1542
+ origin_user_name: f.string(),
1543
+ origin_user_avatar_url: f.string()
1544
+ }).lock(), bi = f.object({
1545
+ system_message_subject: f.string(),
1546
+ system_message_content: f.string()
1547
+ }).lock(), X = f.object({
1548
+ post_id: f.number(),
1549
+ post_subject: f.string(),
1550
+ post_summary: f.string(),
1551
+ post_image_url: f.string()
1552
+ }).lock(), Z = f.object({
1553
+ comment_id: f.number(),
1554
+ comment_content: f.string()
1555
+ }).lock(), Q = f.object({
1556
+ reply_id: f.number(),
1557
+ reply_content: f.string()
1558
+ }).lock(), xi = f.object({
1547
1559
  ...Y.shape,
1548
1560
  ...bi.shape,
1549
- notification_type: u.string().enum(H.System)
1550
- }), Si = u.object({
1561
+ notification_type: f.string().enum(H.System)
1562
+ }), Si = f.object({
1551
1563
  ...Y.shape,
1552
1564
  ...X.shape,
1553
- notification_type: u.string().enum(H.PostPinned, H.PostHighlighted, H.PostDeleted, H.PostLiked)
1554
- }), Ci = u.object({
1565
+ notification_type: f.string().enum(H.PostPinned, H.PostHighlighted, H.PostDeleted, H.PostLiked)
1566
+ }), Ci = f.object({
1555
1567
  ...Y.shape,
1556
1568
  ...X.shape,
1557
1569
  ...Z.shape,
1558
- notification_type: u.string().enum(H.PostCommented)
1559
- }), wi = u.object({
1570
+ notification_type: f.string().enum(H.PostCommented)
1571
+ }), wi = f.object({
1560
1572
  ...Y.shape,
1561
1573
  ...Z.shape,
1562
1574
  ...Q.shape,
1563
- notification_type: u.string().enum(H.CommentReplied)
1564
- }), Ti = u.object({
1575
+ notification_type: f.string().enum(H.CommentReplied)
1576
+ }), Ti = f.object({
1565
1577
  ...Y.shape,
1566
1578
  ...Z.shape,
1567
1579
  ...X.shape,
1568
- notification_type: u.string().enum(H.CommentLiked, H.CommentDeleted)
1569
- }), Ei = u.object({
1580
+ notification_type: f.string().enum(H.CommentLiked, H.CommentDeleted)
1581
+ }), Ei = f.object({
1570
1582
  ...Y.shape,
1571
1583
  ...Q.shape,
1572
- notification_type: u.string().enum(H.ReplyReplied),
1573
- comment_id: u.number(),
1574
- reply_to_reply_id: u.number(),
1575
- reply_to_reply_content: u.string()
1576
- }), Di = u.object({
1584
+ notification_type: f.string().enum(H.ReplyReplied),
1585
+ comment_id: f.number(),
1586
+ reply_to_reply_id: f.number(),
1587
+ reply_to_reply_content: f.string()
1588
+ }), Di = f.object({
1577
1589
  ...Y.shape,
1578
1590
  ...Q.shape,
1579
1591
  ...Z.shape,
1580
- notification_type: u.string().enum(H.ReplyLiked, H.ReplyDeleted)
1581
- }), Oi = u.union(xi, Si, Ci, wi, Ti, Ei, Di).satisfies().lock(), ki = l({ forums: u.array(U) }), Ai = l({ topics: u.array(W) }), ji = l({ topic: W }), Mi = l({ post: G }), Ni = l({
1582
- posts: u.array(G),
1583
- next_token: u.string().optional()
1584
- }), Pi = l({
1592
+ notification_type: f.string().enum(H.ReplyLiked, H.ReplyDeleted)
1593
+ }), Oi = f.union(xi, Si, Ci, wi, Ti, Ei, Di).satisfies().lock(), ki = d({ forums: f.array(U) }), Ai = d({ topics: f.array(W) }), ji = d({ topic: W }), Mi = d({ post: G }), Ni = d({
1594
+ posts: f.array(G),
1595
+ next_token: f.string().optional()
1596
+ }), Pi = d({
1585
1597
  post: G.clone().optional(),
1586
1598
  antispam: K.clone().optional()
1587
- }), Fi = l({
1588
- replies: u.array(q),
1589
- next_token: u.string().optional()
1590
- }), Ii = l({ reply: q }), Li = l({
1599
+ }), Fi = d({
1600
+ replies: f.array(q),
1601
+ next_token: f.string().optional()
1602
+ }), Ii = d({ reply: q }), Li = d({
1591
1603
  reply: q.clone().optional(),
1592
1604
  antispam: K.clone().optional()
1593
- }), Ri = l({ comment: J }), zi = l({
1594
- comments: u.array(J),
1595
- next_token: u.string().optional()
1596
- }), Bi = l({
1605
+ }), Ri = d({ comment: J }), zi = d({
1606
+ comments: f.array(J),
1607
+ next_token: f.string().optional()
1608
+ }), Bi = d({
1597
1609
  comment: J.clone().optional(),
1598
1610
  antispam: J.clone().optional()
1599
- }), Vi = u.guard(yi), Hi = l({
1600
- notifications: u.array(Oi),
1601
- next_token: u.string().optional()
1602
- }), Ui = l({
1603
- system: u.number(),
1604
- comment: u.number(),
1605
- like: u.number()
1611
+ }), Vi = f.guard(yi), Hi = d({
1612
+ notifications: f.array(Oi),
1613
+ next_token: f.string().optional()
1614
+ }), Ui = d({
1615
+ system: f.number(),
1616
+ comment: f.number(),
1617
+ like: f.number()
1606
1618
  }), Wi = class {
1607
1619
  token;
1608
1620
  req;
@@ -1748,10 +1760,10 @@ var li = {
1748
1760
  let { ok: n } = await this.req.post("community/clear-unread-notifications", { category: e }, null, t);
1749
1761
  return n;
1750
1762
  }
1751
- }, Gi = l({
1752
- nonce_str: u.string(),
1753
- timestamp: u.number(),
1754
- signature: u.string()
1763
+ }, Gi = d({
1764
+ nonce_str: f.string(),
1765
+ timestamp: f.number(),
1766
+ signature: f.string()
1755
1767
  }), Ki = /* @__PURE__ */ function(e) {
1756
1768
  return e.RedirectUriDisMatch = "10003", e.AppidError = "10016", e.AuthorizationError = "10015", e.NoRightForScope = "10005", e.Frequently = "10009", e.AppBanded = "10004", e.ShouldFollow = "10006", e.ScopeNull = "10010", e.RedirectUriNull = "10011", e.AppidNull = "10012", e.StateNull = "10013", e;
1757
1769
  }({});
@@ -1779,10 +1791,10 @@ var qi = "wx_login_cache", Ji = class {
1779
1791
  return $(t) ? (this.token.weixinToken = t.weixin_token, await this.token.autoLogin(), t) : null;
1780
1792
  }
1781
1793
  async login(e) {
1782
- if (!c()) throw Error("当前环境非微信小程序");
1794
+ if (!u()) throw Error("当前环境非微信小程序");
1783
1795
  let t = await this.getLoginCache();
1784
1796
  if (t) return t;
1785
- let n = await ce(), { data: r, code: i, message: a } = await this.req.post("weixin/login", {
1797
+ let n = await se(), { data: r, code: i, message: a } = await this.req.post("weixin/login", {
1786
1798
  code: n,
1787
1799
  appid: this.appid
1788
1800
  }, $, {
@@ -1797,7 +1809,7 @@ var qi = "wx_login_cache", Ji = class {
1797
1809
  async webLogin(e = "snsapi_userinfo", t) {
1798
1810
  let n = s("code"), r = Date.now(), i = +s("state");
1799
1811
  if (!n || !i || i < r - 1e3 * 60 * 5 || i > r) {
1800
- let t = ee(["code", "state"]);
1812
+ let t = c(["code", "state"]);
1801
1813
  location.replace(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(t)}&response_type=code&scope=${e}&state=${r}#wechat_redirect`);
1802
1814
  return;
1803
1815
  }
@@ -1805,15 +1817,15 @@ var qi = "wx_login_cache", Ji = class {
1805
1817
  message: "Error: " + n,
1806
1818
  error: n
1807
1819
  };
1808
- let a = ee(["code", "state"]);
1820
+ let a = c(["code", "state"]);
1809
1821
  "replaceState" in history && history.replaceState({}, "", a);
1810
- let { data: o, code: te, message: c } = await this.req.post("weixin/login", {
1822
+ let { data: o, code: l, message: u } = await this.req.post("weixin/login", {
1811
1823
  code: n,
1812
1824
  appid: this.appid
1813
1825
  }, $, t);
1814
1826
  return o && (this.token.weixinToken = o.weixin_token, await this.token.autoLogin()), o ?? {
1815
- message: c,
1816
- error: te
1827
+ message: u,
1828
+ error: l
1817
1829
  };
1818
1830
  }
1819
1831
  async linkPlayer(e, t, n) {
@@ -1841,4 +1853,4 @@ var qi = "wx_login_cache", Ji = class {
1841
1853
  }
1842
1854
  };
1843
1855
  //#endregion
1844
- export { K as AntispamValidator, le as AuthToken, Vn as CandidateVoteValidator, I as CashbackEngagementDataValidator, mn as ClaimActivationKeyEngagementDataValidator, $e as ClaimRewardStatus, k as ClaimRewardStatusValidator, Zn as ClaimedItemValidator, h as ClubAddressValidator, He as ClubApi, g as ClubBenefitSummaryValidator, De as ClubBenefitValidator, me as ClubCreditChangeScene, he as ClubCreditChangeSceneValidator, fe as ClubCreditChangeType, pe as ClubCreditChangeTypeValidator, Ee as ClubCreditLogValidator, ye as ClubGlobalConfigValidator, ge as ClubItemType, p as ClubItemTypeValidator, be as ClubPlayerValidator, _ as ClubProductValidator, _e as ClubRedemptionStatus, ve as ClubRedemptionStatusValidator, Te as ClubUserCreditValidator, we as ClubUserProfileValidator, Wn as CommentEngagementValidator, J as CommentValidator, Wi as CommunityApi, Hn as ConversationValidator, Ge as EngageAccountType, Ke as EngageAccountTypeValidator, Xn as EngageResponseValidator, Kn as EngageRewardValidator, Ue as EventApi, ir as EventConfigValidator, yt as EventFeatureConfigOfCashbackValidator, xt as EventFeatureConfigOfCheckInValidator, Ct as EventFeatureConfigOfClaimActivationKeyValidator, Tt as EventFeatureConfigOfClaimRewardsValidator, Dt as EventFeatureConfigOfCommentValidator, kt as EventFeatureConfigOfFollowValidator, Mt as EventFeatureConfigOfGiftCodeValidator, Pt as EventFeatureConfigOfInviteValidator, It as EventFeatureConfigOfInvitedRegisterValidator, Ht as EventFeatureConfigOfLotteryDrawValidator, Bt as EventFeatureConfigOfLotteryValidator, Wt as EventFeatureConfigOfPreregisterValidator, Kt as EventFeatureConfigOfQuestValidator, Yt as EventFeatureConfigOfRedeemValidator, Zt as EventFeatureConfigOfRegisterValidator, $t as EventFeatureConfigOfShareValidator, tn as EventFeatureConfigOfSubscribeValidator, rn as EventFeatureConfigOfSurveyValidator, on as EventFeatureConfigOfTeamValidator, un as EventFeatureConfigOfUgcLikeValidator, cn as EventFeatureConfigOfUgcValidator, er as EventFeatureConfigOfVote2Validator, pn as EventFeatureConfigOfVoteValidator, rr as EventFeatureConfigValidator, qe as EventPeriodType, Je as EventPeriodTypeValidator, N as EventRewardItemConfigValidator, Ae as ExtraGameRewardValidator, ke as ExtraPhysicalShipmentValidator, Jt as FeatureRedeemItemConfigValidator, _t as FeatureRewardValidator, T as FeatureType, Ye as FeatureTypeValidator, fi as ForumMode, pi as ForumModeValidator, U as ForumValidator, di as GGDPublicApi, li as GGDRoomStatus, ui as GGDRoomStatusValidator, S as GamerItemType, C as GamerItemTypeValidator, ue as Gender, de as GenderValidator, hn as GiftCodeEngagementDataValidator, gn as InviteEngagementDataValidator, ot as LotteryDrawAction, st as LotteryDrawActionValidator, bn as LotteryDrawEngagementDataValidator, _n as LotteryEngagementDataValidator, j as LotteryTicketStatus, rt as LotteryTicketStatusValidator, Y as NotificationBaseValidator, hi as NotificationCategory, gi as NotificationCategoryValidator, wi as NotificationCommentReplyValidator, Ti as NotificationCommentValidator, Z as NotificationPayloadCommentValidator, X as NotificationPayloadPostValidator, Q as NotificationPayloadReplyValidator, bi as NotificationPayloadSystemValidator, Ci as NotificationPostCommentValidator, Si as NotificationPostValidator, Ei as NotificationReplyRepliedValidator, Di as NotificationReplyValidator, xi as NotificationSystemValidator, H as NotificationType, _i as NotificationTypeValidator, Oi as NotificationValidator, Ce as PlayerRoleCardValidator, m as PlayerRoleValidator, mi as PostStatus, V as PostStatusValidator, G as PostValidator, xn as PreregisterEngagementDataValidator, yi as PresignedUrlResponseValidator, Cn as QuestEngagementDataValidator, Xe as QuestObjective, E as QuestObjectiveValidator, ct as QuestProgressAlgorithm, lt as QuestProgressAlgorithmValidator, wn as QuestProgressValidator, Tn as RedeemEngagementDataValidator, Oe as RedeemParamsValidator, En as RedeemStocksResponseValidator, je as RedemptionValidator, gt as RegularRewardValidator, vi as ReplyToValidator, q as ReplyValidator, We as RewardItemType, w as RewardItemTypeValidator, et as RewardSource, A as RewardSourceValidator, D as RewardStatus, O as RewardStatusValidator, Gn as RewardValidator, Se as RoleBaseInfoValidator, xe as ServerBaseInfoValidator, Dn as ShareEngagementDataValidator, kn as SurveyEngagementDataValidator, it as TeamAction, at as TeamActionValidator, Mn as TeamEngagementDataValidator, An as TeamEngagementValidator, jn as TeamMemberValidator, tt as TeamVisibility, nt as TeamVisibilityValidator, W as TopicValidator, In as UgcCountResponseValidator, Nn as UgcEngagementDataValidator, Rn as UgcLeaderboardResponseValidator, Pn as UgcRecordBaseResponseValidator, Fn as UgcRecordResponseValidator, pt as UgcReviewStatus, mt as UgcReviewStatusValidator, ft as UgcSocialMedia, M as UgcSocialMediaValidator, Ln as UgcUploadImageValidator, z as UserEngagementDataValidator, qn as UserEngagementValidator, Yn as UserFeatureStatusValidator, L as UserRewardValidator, Jn as VerifyMobileResultValidator, Bn as Vote2ClaimRewardsResponseValidator, zn as Vote2EngagementDataValidator, ut as Vote2RewardType, dt as Vote2RewardTypeValidator, R as VoteEngagementDataValidator, Ze as VoteOptionSource, Qe as VoteOptionSourceValidator, Ji as WeixinApi, On as WeixinSubscribeEngagementDataValidator, Ki as WeixinWebLoginErrorCode, Un as ZeroChatGPTDataValidator, Vr as claimRewards, Qr as claimRewardsV2, $r as claimWeixinHongbao, Br as engage, Gr as generateUnlimitQrcode, Yr as getCashbackQuery, Mr as getConfig, Fr as getEngagements, Pr as getEngagementsCount, Nr as getEngagementsUserCount, Wr as getParamsByQrcodeScene, Kr as getQuestProgress, ci as getRedeemItemStocks, si as getUgcLeaderboard, Zr as getUgcMyCount, ai as getUgcRecommendation, Xr as getUgcRecord, oi as getUgcs, Ur as getUnlimitQrcodeScene, Rr as getUserEngagementCount, zr as getUserEngagements, Lr as getUserFeatureStatus, ri as getUserItemCount, ti as getUserRewards, ni as getUserRewardsCount, Jr as getVote2Leaderboard, Gi as isWeixinSignResponse, Hr as submitUserRewardAddress, ii as ugcUploadImage, ei as verifyActivationKey, jr as verifyMobileAllowed, Ir as visit, qr as vote2Rewards };
1856
+ export { K as AntispamValidator, ce as AuthToken, Vn as CandidateVoteValidator, I as CashbackEngagementDataValidator, mn as ClaimActivationKeyEngagementDataValidator, $e as ClaimRewardStatus, k as ClaimRewardStatusValidator, Zn as ClaimedItemValidator, g as ClubAddressValidator, He as ClubApi, _ as ClubBenefitSummaryValidator, Ee as ClubBenefitValidator, pe as ClubCreditChangeScene, me as ClubCreditChangeSceneValidator, de as ClubCreditChangeType, fe as ClubCreditChangeTypeValidator, Te as ClubCreditLogValidator, ve as ClubGlobalConfigValidator, he as ClubItemType, m as ClubItemTypeValidator, ye as ClubPlayerValidator, v as ClubProductValidator, ge as ClubRedemptionStatus, _e as ClubRedemptionStatusValidator, we as ClubUserCreditValidator, Ce as ClubUserProfileValidator, Wn as CommentEngagementValidator, J as CommentValidator, Wi as CommunityApi, Hn as ConversationValidator, Ge as EngageAccountType, Ke as EngageAccountTypeValidator, Xn as EngageResponseValidator, Kn as EngageRewardValidator, Ue as EventApi, ir as EventConfigValidator, yt as EventFeatureConfigOfCashbackValidator, xt as EventFeatureConfigOfCheckInValidator, Ct as EventFeatureConfigOfClaimActivationKeyValidator, Tt as EventFeatureConfigOfClaimRewardsValidator, Dt as EventFeatureConfigOfCommentValidator, kt as EventFeatureConfigOfFollowValidator, Mt as EventFeatureConfigOfGiftCodeValidator, Pt as EventFeatureConfigOfInviteValidator, It as EventFeatureConfigOfInvitedRegisterValidator, Ht as EventFeatureConfigOfLotteryDrawValidator, Bt as EventFeatureConfigOfLotteryValidator, Wt as EventFeatureConfigOfPreregisterValidator, Kt as EventFeatureConfigOfQuestValidator, Yt as EventFeatureConfigOfRedeemValidator, Zt as EventFeatureConfigOfRegisterValidator, $t as EventFeatureConfigOfShareValidator, tn as EventFeatureConfigOfSubscribeValidator, rn as EventFeatureConfigOfSurveyValidator, on as EventFeatureConfigOfTeamValidator, un as EventFeatureConfigOfUgcLikeValidator, cn as EventFeatureConfigOfUgcValidator, er as EventFeatureConfigOfVote2Validator, pn as EventFeatureConfigOfVoteValidator, rr as EventFeatureConfigValidator, qe as EventPeriodType, Je as EventPeriodTypeValidator, N as EventRewardItemConfigValidator, ke as ExtraGameRewardValidator, Oe as ExtraPhysicalShipmentValidator, Jt as FeatureRedeemItemConfigValidator, _t as FeatureRewardValidator, T as FeatureType, Ye as FeatureTypeValidator, fi as ForumMode, pi as ForumModeValidator, U as ForumValidator, di as GGDPublicApi, li as GGDRoomStatus, ui as GGDRoomStatusValidator, S as GamerItemType, C as GamerItemTypeValidator, le as Gender, ue as GenderValidator, hn as GiftCodeEngagementDataValidator, gn as InviteEngagementDataValidator, ot as LotteryDrawAction, st as LotteryDrawActionValidator, bn as LotteryDrawEngagementDataValidator, _n as LotteryEngagementDataValidator, j as LotteryTicketStatus, rt as LotteryTicketStatusValidator, Y as NotificationBaseValidator, hi as NotificationCategory, gi as NotificationCategoryValidator, wi as NotificationCommentReplyValidator, Ti as NotificationCommentValidator, Z as NotificationPayloadCommentValidator, X as NotificationPayloadPostValidator, Q as NotificationPayloadReplyValidator, bi as NotificationPayloadSystemValidator, Ci as NotificationPostCommentValidator, Si as NotificationPostValidator, Ei as NotificationReplyRepliedValidator, Di as NotificationReplyValidator, xi as NotificationSystemValidator, H as NotificationType, _i as NotificationTypeValidator, Oi as NotificationValidator, Se as PlayerRoleCardValidator, h as PlayerRoleValidator, mi as PostStatus, V as PostStatusValidator, G as PostValidator, xn as PreregisterEngagementDataValidator, yi as PresignedUrlResponseValidator, Cn as QuestEngagementDataValidator, Xe as QuestObjective, E as QuestObjectiveValidator, ct as QuestProgressAlgorithm, lt as QuestProgressAlgorithmValidator, wn as QuestProgressValidator, Tn as RedeemEngagementDataValidator, De as RedeemParamsValidator, En as RedeemStocksResponseValidator, Ae as RedemptionValidator, gt as RegularRewardValidator, vi as ReplyToValidator, q as ReplyValidator, We as RewardItemType, w as RewardItemTypeValidator, et as RewardSource, A as RewardSourceValidator, D as RewardStatus, O as RewardStatusValidator, Gn as RewardValidator, xe as RoleBaseInfoValidator, be as ServerBaseInfoValidator, Dn as ShareEngagementDataValidator, kn as SurveyEngagementDataValidator, it as TeamAction, at as TeamActionValidator, Mn as TeamEngagementDataValidator, An as TeamEngagementValidator, jn as TeamMemberValidator, tt as TeamVisibility, nt as TeamVisibilityValidator, W as TopicValidator, In as UgcCountResponseValidator, Nn as UgcEngagementDataValidator, Rn as UgcLeaderboardResponseValidator, Pn as UgcRecordBaseResponseValidator, Fn as UgcRecordResponseValidator, pt as UgcReviewStatus, mt as UgcReviewStatusValidator, ft as UgcSocialMedia, M as UgcSocialMediaValidator, Ln as UgcUploadImageValidator, z as UserEngagementDataValidator, qn as UserEngagementValidator, Yn as UserFeatureStatusValidator, L as UserRewardValidator, Jn as VerifyMobileResultValidator, Bn as Vote2ClaimRewardsResponseValidator, zn as Vote2EngagementDataValidator, ut as Vote2RewardType, dt as Vote2RewardTypeValidator, R as VoteEngagementDataValidator, Ze as VoteOptionSource, Qe as VoteOptionSourceValidator, Ji as WeixinApi, On as WeixinSubscribeEngagementDataValidator, Ki as WeixinWebLoginErrorCode, Un as ZeroChatGPTDataValidator, Vr as claimRewards, Qr as claimRewardsV2, $r as claimWeixinHongbao, Br as engage, Gr as generateUnlimitQrcode, Yr as getCashbackQuery, Mr as getConfig, Fr as getEngagements, Pr as getEngagementsCount, Nr as getEngagementsUserCount, Wr as getParamsByQrcodeScene, Kr as getQuestProgress, ci as getRedeemItemStocks, si as getUgcLeaderboard, Zr as getUgcMyCount, ai as getUgcRecommendation, Xr as getUgcRecord, oi as getUgcs, Ur as getUnlimitQrcodeScene, Rr as getUserEngagementCount, zr as getUserEngagements, Lr as getUserFeatureStatus, ri as getUserItemCount, ti as getUserRewards, ni as getUserRewardsCount, Jr as getVote2Leaderboard, Gi as isWeixinSignResponse, Hr as submitUserRewardAddress, ii as ugcUploadImage, ei as verifyActivationKey, jr as verifyMobileAllowed, Ir as visit, qr as vote2Rewards };