@seayoo-web/gamer-api 2.13.9 → 2.13.11
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 +508 -480
- package/package.json +7 -7
- package/types/src/club.define.d.ts +18 -0
- package/types/src/event.config/feature.lottery.d.ts +1 -1
- package/types/src/event.config/reward.d.ts +1 -1
- package/types/src/event.d.ts +7 -1
- package/types/src/token.d.ts +6 -0
- package/types/src/token.guards.d.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { isComboWebView as de } from "@seayoo-web/combo-webview";
|
|
2
|
-
import { isPlainObject as
|
|
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 P, parseJSON as ye, removePara as G } from "@seayoo-web/utils";
|
|
3
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";
|
|
6
|
+
}
|
|
4
7
|
function fe(i) {
|
|
5
|
-
return
|
|
8
|
+
return h(i, "gamer_token", "game_id") && typeof i.gamer_token == "string" && typeof i.game_id == "string";
|
|
6
9
|
}
|
|
7
10
|
function O(i) {
|
|
8
|
-
return
|
|
11
|
+
return h(i);
|
|
9
12
|
}
|
|
10
13
|
const j = ge("GamerApiSDK");
|
|
11
|
-
function
|
|
14
|
+
function we(i) {
|
|
12
15
|
return /^\/[a-z\d-]+$/.test(i);
|
|
13
16
|
}
|
|
14
|
-
async function
|
|
17
|
+
async function ke() {
|
|
15
18
|
const { promise: i, resolve: t } = pe();
|
|
16
19
|
return wx.login({
|
|
17
20
|
success(n) {
|
|
@@ -22,7 +25,7 @@ async function we() {
|
|
|
22
25
|
}
|
|
23
26
|
}), await i;
|
|
24
27
|
}
|
|
25
|
-
const
|
|
28
|
+
const ve = {
|
|
26
29
|
get(i) {
|
|
27
30
|
return localStorage.getItem(i) || "";
|
|
28
31
|
},
|
|
@@ -32,10 +35,10 @@ const ke = {
|
|
|
32
35
|
remove(i) {
|
|
33
36
|
localStorage.removeItem(i);
|
|
34
37
|
}
|
|
35
|
-
},
|
|
38
|
+
}, Ve = {
|
|
36
39
|
get(i) {
|
|
37
40
|
try {
|
|
38
|
-
if (
|
|
41
|
+
if (_()) return wx.getStorageSync(i) || "";
|
|
39
42
|
} catch (t) {
|
|
40
43
|
j.error("getStorageSyncError", t);
|
|
41
44
|
}
|
|
@@ -43,20 +46,20 @@ const ke = {
|
|
|
43
46
|
},
|
|
44
47
|
set(i, t) {
|
|
45
48
|
try {
|
|
46
|
-
|
|
49
|
+
_() && wx.setStorageSync(i, t);
|
|
47
50
|
} catch (n) {
|
|
48
51
|
j.error("setStorageSyncError", n);
|
|
49
52
|
}
|
|
50
53
|
},
|
|
51
54
|
remove(i) {
|
|
52
55
|
try {
|
|
53
|
-
|
|
56
|
+
_() && wx.removeStorageSync(i);
|
|
54
57
|
} catch (t) {
|
|
55
58
|
j.error("removeStorageSync", t);
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
}, f = "gamer_token";
|
|
59
|
-
class
|
|
62
|
+
class ia {
|
|
60
63
|
$NetRequest;
|
|
61
64
|
$idToken = "";
|
|
62
65
|
$weixinToken = "";
|
|
@@ -64,8 +67,8 @@ class oa {
|
|
|
64
67
|
req;
|
|
65
68
|
storage;
|
|
66
69
|
constructor(t, n) {
|
|
67
|
-
this.storage =
|
|
68
|
-
const r =
|
|
70
|
+
this.storage = _() ? Ve : ve;
|
|
71
|
+
const r = we(t) ? t : `https://${_e(t)}`;
|
|
69
72
|
if (this.$NetRequest = n, this.req = n({
|
|
70
73
|
baseURL: `${r}/v1`,
|
|
71
74
|
timeout: 1e4,
|
|
@@ -165,13 +168,13 @@ class oa {
|
|
|
165
168
|
async autoLogin() {
|
|
166
169
|
if (this.gamerToken)
|
|
167
170
|
return !0;
|
|
168
|
-
const t =
|
|
171
|
+
const t = _();
|
|
169
172
|
if (!this.idToken || t && !this.weixinToken)
|
|
170
173
|
return !1;
|
|
171
174
|
const { code: n, data: r } = await this.req.post(
|
|
172
175
|
"login-with-token",
|
|
173
176
|
c({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
|
|
174
|
-
|
|
177
|
+
he,
|
|
175
178
|
{
|
|
176
179
|
message: !1,
|
|
177
180
|
cacheTTL: 300,
|
|
@@ -188,6 +191,24 @@ class oa {
|
|
|
188
191
|
}
|
|
189
192
|
return this.gamerToken = r?.gamer_token || "", !!this.gamerToken;
|
|
190
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* 用于在多租户小程序环境中切换当前 Session 的 game_id。
|
|
196
|
+
*
|
|
197
|
+
* https://www.kdocs.cn/l/cf2mO2uRLqh9?linkname=ifQTBNrckh
|
|
198
|
+
*/
|
|
199
|
+
async switchGame(t) {
|
|
200
|
+
const n = _();
|
|
201
|
+
if (!this.idToken || n && !this.weixinToken)
|
|
202
|
+
return !1;
|
|
203
|
+
const { code: r, data: a } = await this.req.post("session/switch-game", c({ gameId: t }), fe, {
|
|
204
|
+
message: !1
|
|
205
|
+
});
|
|
206
|
+
switch (r) {
|
|
207
|
+
case "game_not_allowed":
|
|
208
|
+
return !1;
|
|
209
|
+
}
|
|
210
|
+
return this.gamerToken = a?.gamer_token || "", !!this.gamerToken;
|
|
211
|
+
}
|
|
191
212
|
/**
|
|
192
213
|
* 获取当前登录用户的 Session 的信息
|
|
193
214
|
*
|
|
@@ -213,21 +234,21 @@ class oa {
|
|
|
213
234
|
return n;
|
|
214
235
|
}
|
|
215
236
|
}
|
|
216
|
-
const
|
|
237
|
+
const Ce = {
|
|
217
238
|
/** 未知 */
|
|
218
239
|
Unknown: "unknown",
|
|
219
240
|
/** 男 */
|
|
220
241
|
Male: "male",
|
|
221
242
|
/** 女 */
|
|
222
243
|
Female: "female"
|
|
223
|
-
},
|
|
244
|
+
}, Re = e.string().enum(Ce).lock(), je = {
|
|
224
245
|
/** 积分增加 */
|
|
225
246
|
Increase: "increase",
|
|
226
247
|
/** 积分减少 */
|
|
227
248
|
Decrease: "decrease",
|
|
228
249
|
/** 积分过期 */
|
|
229
250
|
Expired: "expired"
|
|
230
|
-
},
|
|
251
|
+
}, Te = e.string().enum(je).lock(), qe = {
|
|
231
252
|
/** 游戏内购买 */
|
|
232
253
|
Order: "order",
|
|
233
254
|
/** 游戏内消耗 */
|
|
@@ -240,21 +261,21 @@ const Ve = {
|
|
|
240
261
|
Admin: "admin",
|
|
241
262
|
/** 运营活动 */
|
|
242
263
|
Event: "event"
|
|
243
|
-
},
|
|
264
|
+
}, xe = e.string().enum(qe).lock(), Le = {
|
|
244
265
|
/** 游戏内奖励 */
|
|
245
266
|
GameReward: "game_reward",
|
|
246
267
|
/** 实物商品 */
|
|
247
268
|
Physical: "physical",
|
|
248
269
|
/** 虚拟商品 */
|
|
249
270
|
Virtual: "virtual"
|
|
250
|
-
}, z = e.string().enum(
|
|
271
|
+
}, z = e.string().enum(Le).lock(), Se = {
|
|
251
272
|
/** 待发放 */
|
|
252
273
|
Pending: "pending",
|
|
253
274
|
/** 已发放 */
|
|
254
275
|
Issued: "issued",
|
|
255
276
|
/** 发放失败 */
|
|
256
277
|
Failed: "failed"
|
|
257
|
-
},
|
|
278
|
+
}, Pe = e.string().enum(Se).lock(), Ee = e.object({
|
|
258
279
|
default_avatar_url: e.string(),
|
|
259
280
|
official_avatar_urls: e.array(e.string()),
|
|
260
281
|
default_nickname: e.string(),
|
|
@@ -272,7 +293,7 @@ const Ve = {
|
|
|
272
293
|
exp_description: e.string(),
|
|
273
294
|
credit_description: e.string(),
|
|
274
295
|
send_role_mail_rate_limit: e.number()
|
|
275
|
-
}).lock(),
|
|
296
|
+
}).lock(), Ue = e.object({
|
|
276
297
|
member_id: e.string(),
|
|
277
298
|
player_id: e.string(),
|
|
278
299
|
exp: e.number(),
|
|
@@ -281,18 +302,18 @@ const Ve = {
|
|
|
281
302
|
credit_expiring: e.number(),
|
|
282
303
|
level_change_time: e.number(),
|
|
283
304
|
level_expire_time: e.number()
|
|
284
|
-
}).lock(),
|
|
305
|
+
}).lock(), $e = e.object({
|
|
285
306
|
server_id: e.string(),
|
|
286
307
|
server_name: e.string()
|
|
287
|
-
}).lock(),
|
|
308
|
+
}).lock(), Fe = e.object({
|
|
288
309
|
role_id: e.string(),
|
|
289
310
|
role_name: e.string()
|
|
290
311
|
}).lock(), J = e.object({
|
|
312
|
+
...Fe.shape,
|
|
291
313
|
...$e.shape,
|
|
292
|
-
...Ue.shape,
|
|
293
314
|
role_level: e.number(),
|
|
294
315
|
last_login_time: e.number()
|
|
295
|
-
}).lock(),
|
|
316
|
+
}).lock(), De = e.object({
|
|
296
317
|
...J.shape,
|
|
297
318
|
/** 角色战力 */
|
|
298
319
|
role_fighting: e.number(),
|
|
@@ -302,12 +323,21 @@ const Ve = {
|
|
|
302
323
|
kin_name: e.string().optional(),
|
|
303
324
|
/** 宗门职位 */
|
|
304
325
|
kin_position: e.string().optional()
|
|
305
|
-
}).lock(),
|
|
326
|
+
}).lock(), Ie = e.object({
|
|
306
327
|
name: e.string(),
|
|
307
328
|
avatar_url: e.string(),
|
|
308
329
|
bio: e.string(),
|
|
309
|
-
gender:
|
|
310
|
-
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
|
|
330
|
+
gender: Re,
|
|
331
|
+
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() }),
|
|
332
|
+
social_medias: e.object({
|
|
333
|
+
douyin: e.string().optional(),
|
|
334
|
+
xiaohongshu: e.string().optional(),
|
|
335
|
+
taptap: e.string().optional(),
|
|
336
|
+
bilibili: e.string().optional(),
|
|
337
|
+
weibo: e.string().optional(),
|
|
338
|
+
huya: e.string().optional(),
|
|
339
|
+
douyu: e.string().optional()
|
|
340
|
+
}).optional()
|
|
311
341
|
}).lock(), Z = e.object({
|
|
312
342
|
address_id: e.number(),
|
|
313
343
|
recipient: e.string(),
|
|
@@ -317,15 +347,15 @@ const Ve = {
|
|
|
317
347
|
district: e.string(),
|
|
318
348
|
address: e.string(),
|
|
319
349
|
is_default: e.bool()
|
|
320
|
-
}).lock(),
|
|
350
|
+
}).lock(), Ae = e.object({
|
|
321
351
|
increased_credit: e.number(),
|
|
322
352
|
decreased_credit: e.number(),
|
|
323
353
|
expired_credit: e.number(),
|
|
324
354
|
balance_credit: e.number()
|
|
325
|
-
}).lock(),
|
|
355
|
+
}).lock(), Ge = e.object({
|
|
326
356
|
id: e.number(),
|
|
327
|
-
change_type:
|
|
328
|
-
change_scene:
|
|
357
|
+
change_type: Te,
|
|
358
|
+
change_scene: xe,
|
|
329
359
|
change_credit: e.number(),
|
|
330
360
|
balance: e.number(),
|
|
331
361
|
change_time: e.number()
|
|
@@ -364,10 +394,10 @@ const Ve = {
|
|
|
364
394
|
created_at: e.number(),
|
|
365
395
|
updated_at: e.number(),
|
|
366
396
|
redeemable_quantity: e.number().optional()
|
|
367
|
-
}).lock(),
|
|
397
|
+
}).lock(), Oe = e.object({
|
|
368
398
|
...P(X.shape, "tag"),
|
|
369
399
|
product: Y.clone().optional()
|
|
370
|
-
}).lock(),
|
|
400
|
+
}).lock(), sa = e.union(
|
|
371
401
|
e.object({
|
|
372
402
|
server_id: e.string(),
|
|
373
403
|
role_id: e.string()
|
|
@@ -375,7 +405,7 @@ const Ve = {
|
|
|
375
405
|
e.object({
|
|
376
406
|
address_id: e.number()
|
|
377
407
|
})
|
|
378
|
-
).satisfies().lock(),
|
|
408
|
+
).satisfies().lock(), Ne = e.object({
|
|
379
409
|
recipient: e.string(),
|
|
380
410
|
mobile: e.string(),
|
|
381
411
|
province: e.string(),
|
|
@@ -384,11 +414,11 @@ const Ve = {
|
|
|
384
414
|
address: e.string(),
|
|
385
415
|
express_company: e.string(),
|
|
386
416
|
express_number: e.string()
|
|
387
|
-
}).lock(),
|
|
417
|
+
}).lock(), Qe = e.object({
|
|
388
418
|
server_id: e.string(),
|
|
389
419
|
role_id: e.string(),
|
|
390
420
|
role_name: e.string()
|
|
391
|
-
}).lock(),
|
|
421
|
+
}).lock(), Be = e.object({
|
|
392
422
|
redemption_id: e.number(),
|
|
393
423
|
player_id: e.string(),
|
|
394
424
|
product_id: e.number(),
|
|
@@ -399,17 +429,17 @@ const Ve = {
|
|
|
399
429
|
catalog_name: e.string(),
|
|
400
430
|
quantity: e.number(),
|
|
401
431
|
amount: e.number(),
|
|
402
|
-
status:
|
|
432
|
+
status: Pe,
|
|
403
433
|
created_at: e.number(),
|
|
404
|
-
extra_data: e.union(
|
|
405
|
-
}),
|
|
406
|
-
credit_logs: e.array(
|
|
434
|
+
extra_data: e.union(Ne.clone(), Qe.clone()).satisfies().optional()
|
|
435
|
+
}), Me = e.guard(Ee), N = s({ player: Ue }), Ke = s({ roles: e.array(J) }), T = s({ role_card: De }), Q = e.guard(Ie), B = e.guard(Z), He = s({ addresses: e.array(Z) }), ze = e.guard(Ae), Je = s({
|
|
436
|
+
credit_logs: e.array(Ge),
|
|
407
437
|
next_token: e.string().optional()
|
|
408
|
-
}),
|
|
409
|
-
redemptions: e.array(
|
|
438
|
+
}), Ze = s({ products: e.array(Y) }), Xe = s({ benefits: e.array(X) }), Ye = s({ benefit: Oe }), We = s({
|
|
439
|
+
redemptions: e.array(Be),
|
|
410
440
|
next_token: e.string().optional()
|
|
411
441
|
});
|
|
412
|
-
class
|
|
442
|
+
class ca {
|
|
413
443
|
token;
|
|
414
444
|
req;
|
|
415
445
|
constructor(t) {
|
|
@@ -421,7 +451,7 @@ class sa {
|
|
|
421
451
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
|
|
422
452
|
*/
|
|
423
453
|
async getConfig(t) {
|
|
424
|
-
const { data: n } = await this.req.get("club/config",
|
|
454
|
+
const { data: n } = await this.req.get("club/config", Me, t);
|
|
425
455
|
return n;
|
|
426
456
|
}
|
|
427
457
|
/**
|
|
@@ -462,7 +492,7 @@ class sa {
|
|
|
462
492
|
*/
|
|
463
493
|
async getRoles(t, n, r) {
|
|
464
494
|
if (!await this.token.autoLogin()) return [];
|
|
465
|
-
const { data: a } = await this.req.get("club/roles",
|
|
495
|
+
const { data: a } = await this.req.get("club/roles", Ke, {
|
|
466
496
|
...r,
|
|
467
497
|
params: c({ player_id: t, refresh: n })
|
|
468
498
|
});
|
|
@@ -534,7 +564,7 @@ class sa {
|
|
|
534
564
|
*/
|
|
535
565
|
async getAddresses(t) {
|
|
536
566
|
if (!await this.token.autoLogin()) return [];
|
|
537
|
-
const { data: n } = await this.req.get("club/addresses",
|
|
567
|
+
const { data: n } = await this.req.get("club/addresses", He, t);
|
|
538
568
|
return n?.addresses ?? [];
|
|
539
569
|
}
|
|
540
570
|
/**
|
|
@@ -582,7 +612,7 @@ class sa {
|
|
|
582
612
|
*/
|
|
583
613
|
async getUserCredit(t, n) {
|
|
584
614
|
await this.token.autoLogin();
|
|
585
|
-
const { data: r, code: a, message: o } = await this.req.get("club/user-credit",
|
|
615
|
+
const { data: r, code: a, message: o } = await this.req.get("club/user-credit", ze, {
|
|
586
616
|
...n,
|
|
587
617
|
params: c(t)
|
|
588
618
|
});
|
|
@@ -598,7 +628,7 @@ class sa {
|
|
|
598
628
|
*/
|
|
599
629
|
async getCreditLogs(t, n) {
|
|
600
630
|
await this.token.autoLogin();
|
|
601
|
-
const { data: r } = await this.req.get("club/credit-logs",
|
|
631
|
+
const { data: r } = await this.req.get("club/credit-logs", Je, {
|
|
602
632
|
...n,
|
|
603
633
|
params: c({ max_results: 20, ...t })
|
|
604
634
|
});
|
|
@@ -614,7 +644,7 @@ class sa {
|
|
|
614
644
|
*/
|
|
615
645
|
async getBenefits(t) {
|
|
616
646
|
if (!await this.token.autoLogin()) return [];
|
|
617
|
-
const { data: n } = await this.req.get("club/benefits",
|
|
647
|
+
const { data: n } = await this.req.get("club/benefits", Xe, t);
|
|
618
648
|
return n?.benefits || [];
|
|
619
649
|
}
|
|
620
650
|
/**
|
|
@@ -624,7 +654,7 @@ class sa {
|
|
|
624
654
|
*/
|
|
625
655
|
async getBenefit(t, n) {
|
|
626
656
|
if (!await this.token.autoLogin()) return null;
|
|
627
|
-
const { data: r } = await this.req.get("club/benefit",
|
|
657
|
+
const { data: r } = await this.req.get("club/benefit", Ye, {
|
|
628
658
|
...n,
|
|
629
659
|
params: { benefit_id: t }
|
|
630
660
|
});
|
|
@@ -636,7 +666,7 @@ class sa {
|
|
|
636
666
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
|
|
637
667
|
*/
|
|
638
668
|
async getProducts(t, n) {
|
|
639
|
-
const { data: r } = await this.req.get("club/products",
|
|
669
|
+
const { data: r } = await this.req.get("club/products", Ze, {
|
|
640
670
|
...n,
|
|
641
671
|
params: t
|
|
642
672
|
});
|
|
@@ -662,7 +692,7 @@ class sa {
|
|
|
662
692
|
*/
|
|
663
693
|
async getRedemptions(t, n) {
|
|
664
694
|
await this.token.autoLogin();
|
|
665
|
-
const { data: r } = await this.req.get("club/redemptions",
|
|
695
|
+
const { data: r } = await this.req.get("club/redemptions", We, {
|
|
666
696
|
...n,
|
|
667
697
|
params: c({ max_results: 20, ...t })
|
|
668
698
|
});
|
|
@@ -693,17 +723,17 @@ const v = {
|
|
|
693
723
|
ExternalCode: "external_gift_code",
|
|
694
724
|
/** 空奖励 */
|
|
695
725
|
VoidItem: "void_item"
|
|
696
|
-
}, W = e.string().enum(v).lock(),
|
|
726
|
+
}, W = e.string().enum(v).lock(), la = v, ee = W, et = {
|
|
697
727
|
/** 世游通行证 ID / Combo ID */
|
|
698
728
|
UserId: "user_id",
|
|
699
729
|
/** 游戏角色 ID */
|
|
700
730
|
RoleId: "role_id"
|
|
701
|
-
},
|
|
731
|
+
}, tt = e.string().enum(et).lock(), nt = {
|
|
702
732
|
None: "none",
|
|
703
733
|
Daily: "daily",
|
|
704
734
|
Weekly: "weekly",
|
|
705
735
|
Monthly: "monthly"
|
|
706
|
-
},
|
|
736
|
+
}, rt = e.string().enum(nt).lock(), l = {
|
|
707
737
|
/** 预约 */
|
|
708
738
|
Preregister: "preregister",
|
|
709
739
|
/** 抽奖 */
|
|
@@ -750,7 +780,7 @@ const v = {
|
|
|
750
780
|
Ugc: "ugc",
|
|
751
781
|
/** 投稿点赞 */
|
|
752
782
|
UgcLike: "ugc_like"
|
|
753
|
-
},
|
|
783
|
+
}, at = e.string().enum(l).lock(), ot = {
|
|
754
784
|
/** 累计游戏内活跃值 */
|
|
755
785
|
Active: "player_active_points",
|
|
756
786
|
/** 累计登录,单位 人天 */
|
|
@@ -773,14 +803,14 @@ const v = {
|
|
|
773
803
|
EventItems: "event_items",
|
|
774
804
|
/**游戏内任务 */
|
|
775
805
|
GameTask: "game_task"
|
|
776
|
-
}, te = e.string().enum(
|
|
806
|
+
}, te = e.string().enum(ot).lock(), it = {
|
|
777
807
|
/** 官方上传 */
|
|
778
808
|
System: "system",
|
|
779
809
|
/** 用户投稿 */
|
|
780
810
|
UserSubmission: "user_submission",
|
|
781
811
|
/** 投票入围 */
|
|
782
812
|
Shortlisted: "shortlisted"
|
|
783
|
-
},
|
|
813
|
+
}, st = e.string().enum(it).lock(), d = {
|
|
784
814
|
/** 未获得奖励 */
|
|
785
815
|
Ineligible: "ineligible",
|
|
786
816
|
/** 奖励未领取 */
|
|
@@ -791,37 +821,37 @@ const v = {
|
|
|
791
821
|
Failed: "failed",
|
|
792
822
|
/** 奖励已发货 */
|
|
793
823
|
Delivered: "delivered"
|
|
794
|
-
},
|
|
824
|
+
}, ua = e.string().enum(d).lock(), ct = {
|
|
795
825
|
/** 奖励未领取 */
|
|
796
|
-
Unclaimed:
|
|
826
|
+
Unclaimed: d.Unclaimed,
|
|
797
827
|
/** 奖励已领取 */
|
|
798
|
-
Received:
|
|
828
|
+
Received: d.Received,
|
|
799
829
|
/** 奖励发放失败 */
|
|
800
|
-
Failed:
|
|
830
|
+
Failed: d.Failed,
|
|
801
831
|
/** 奖励已发货 */
|
|
802
|
-
Delivered:
|
|
803
|
-
}, ne = e.string().enum(
|
|
832
|
+
Delivered: d.Delivered
|
|
833
|
+
}, ne = e.string().enum(ct).lock(), lt = {
|
|
804
834
|
/** 未获得奖励 */
|
|
805
|
-
Ineligible:
|
|
835
|
+
Ineligible: d.Ineligible,
|
|
806
836
|
/** 奖励未领取 */
|
|
807
|
-
Unclaimed:
|
|
837
|
+
Unclaimed: d.Unclaimed,
|
|
808
838
|
/** 奖励已领取 */
|
|
809
|
-
Received:
|
|
839
|
+
Received: d.Received,
|
|
810
840
|
/** 奖励发放失败 */
|
|
811
|
-
Failed:
|
|
841
|
+
Failed: d.Failed,
|
|
812
842
|
/** 奖励已发货 */
|
|
813
|
-
Delivered:
|
|
814
|
-
}, E = e.string().enum(
|
|
843
|
+
Delivered: d.Delivered
|
|
844
|
+
}, E = e.string().enum(lt).lock(), ut = {
|
|
815
845
|
/** 玩法产出奖励 */
|
|
816
846
|
Output: "output",
|
|
817
847
|
/** 玩法参与奖励 */
|
|
818
848
|
Engage: "engage"
|
|
819
|
-
}, U = e.string().enum(
|
|
849
|
+
}, U = e.string().enum(ut).lock(), mt = {
|
|
820
850
|
/** 私有队伍 */
|
|
821
851
|
Private: "private",
|
|
822
852
|
/** 公开队伍 */
|
|
823
853
|
Public: "public"
|
|
824
|
-
},
|
|
854
|
+
}, dt = e.string().enum(mt).lock(), w = {
|
|
825
855
|
/** 未知状态 */
|
|
826
856
|
Unknown: "unknown",
|
|
827
857
|
/** 等待开奖 */
|
|
@@ -832,7 +862,7 @@ const v = {
|
|
|
832
862
|
Claimed: "claimed",
|
|
833
863
|
/** 领奖失败 */
|
|
834
864
|
Fail: "fail"
|
|
835
|
-
},
|
|
865
|
+
}, ma = e.string().enum(w).lock(), gt = {
|
|
836
866
|
/** 发起组队 */
|
|
837
867
|
Assemble: "assemble",
|
|
838
868
|
/** 加入队伍 */
|
|
@@ -843,26 +873,26 @@ const v = {
|
|
|
843
873
|
ChangeVisibility: "change_visibility",
|
|
844
874
|
/** 查询组队信息 */
|
|
845
875
|
Query: "query"
|
|
846
|
-
},
|
|
876
|
+
}, da = e.string().enum(gt).lock(), pt = {
|
|
847
877
|
/** 查询抽奖券 */
|
|
848
878
|
Query: "query",
|
|
849
879
|
/** 开奖 */
|
|
850
880
|
Draw: "draw",
|
|
851
881
|
/** 领奖 */
|
|
852
882
|
Claim: "claim"
|
|
853
|
-
},
|
|
883
|
+
}, ga = e.string().enum(pt).lock(), _t = {
|
|
854
884
|
/** 将所有队员的进度值求和,作为队伍进度值 */
|
|
855
885
|
Sum: "sum",
|
|
856
886
|
/** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
|
|
857
887
|
TopN: "top_n"
|
|
858
|
-
},
|
|
888
|
+
}, bt = e.string().enum(_t).lock(), yt = {
|
|
859
889
|
/** 尚未结算 */
|
|
860
890
|
None: "none",
|
|
861
891
|
/** 获胜奖励 */
|
|
862
892
|
Winner: "winner",
|
|
863
893
|
/** 安慰奖励 */
|
|
864
894
|
Consolation: "consolation"
|
|
865
|
-
},
|
|
895
|
+
}, ht = e.string().enum(yt).lock(), ft = {
|
|
866
896
|
/** 抖音 */
|
|
867
897
|
Douyin: "douyin",
|
|
868
898
|
/** 小红书 */
|
|
@@ -877,73 +907,73 @@ const v = {
|
|
|
877
907
|
Huya: "huya",
|
|
878
908
|
/** 斗鱼 */
|
|
879
909
|
Douyu: "douyu"
|
|
880
|
-
}, re = e.string().enum(ft).lock(),
|
|
910
|
+
}, re = e.string().enum(ft).lock(), wt = {
|
|
881
911
|
/** 已提交 */
|
|
882
912
|
Submitted: "submitted",
|
|
883
913
|
/** 已接收 */
|
|
884
914
|
Accepted: "accepted",
|
|
885
915
|
/** 已拒绝 */
|
|
886
916
|
Rejected: "rejected"
|
|
887
|
-
},
|
|
917
|
+
}, kt = e.string().enum(wt).lock(), vt = e.string().enum(v), y = e.object({
|
|
888
918
|
reward_item_id: e.number(),
|
|
889
919
|
reward_amount: e.number(),
|
|
890
920
|
reward_item_name: e.string(),
|
|
891
921
|
reward_item_icon_url: e.string(),
|
|
892
922
|
reward_item_desc: e.string().optional(),
|
|
893
|
-
reward_item_type:
|
|
923
|
+
reward_item_type: vt,
|
|
894
924
|
reward_item_rating: e.number()
|
|
895
|
-
}).lock(),
|
|
925
|
+
}).lock(), Vt = e.object({
|
|
896
926
|
engage_count: e.number(),
|
|
897
927
|
rewards: e.array(y)
|
|
898
|
-
}).lock(),
|
|
928
|
+
}).lock(), Ct = e.union(
|
|
899
929
|
e.object({
|
|
900
930
|
feature_reward_type: e.string().enum("every"),
|
|
901
931
|
reward_details: e.array(y)
|
|
902
932
|
}),
|
|
903
933
|
e.object({
|
|
904
934
|
feature_reward_type: e.string().enum("regular"),
|
|
905
|
-
reward_details: e.array(
|
|
935
|
+
reward_details: e.array(Vt)
|
|
906
936
|
})
|
|
907
937
|
).satisfies().lock(), u = e.object({
|
|
908
938
|
feature_name: e.string(),
|
|
909
939
|
feature_id: e.number(),
|
|
910
940
|
description: e.string(),
|
|
911
|
-
cycle:
|
|
941
|
+
cycle: rt,
|
|
912
942
|
cycle_limit: e.number(),
|
|
913
943
|
limit: e.number(),
|
|
914
944
|
since: e.number(),
|
|
915
945
|
until: e.number(),
|
|
916
|
-
engage_account:
|
|
917
|
-
feature_rewards:
|
|
946
|
+
engage_account: tt,
|
|
947
|
+
feature_rewards: Ct.clone().optional(),
|
|
918
948
|
sort: e.number().optional()
|
|
919
|
-
}),
|
|
949
|
+
}), Rt = l.Cashback, jt = e.object({
|
|
920
950
|
...u.shape,
|
|
921
|
-
feature_type: e.string().enum(
|
|
951
|
+
feature_type: e.string().enum(Rt),
|
|
922
952
|
config: e.object({
|
|
923
953
|
order_start_time: e.number(),
|
|
924
954
|
order_end_time: e.number(),
|
|
925
955
|
claim_rewards_start_time: e.number(),
|
|
926
956
|
claim_rewards_end_time: e.number()
|
|
927
957
|
})
|
|
928
|
-
}),
|
|
958
|
+
}), Tt = l.CheckIn, qt = e.object({
|
|
929
959
|
...u.shape,
|
|
930
|
-
feature_type: e.string().enum(
|
|
931
|
-
}),
|
|
960
|
+
feature_type: e.string().enum(Tt)
|
|
961
|
+
}), xt = l.ClaimActivationKey, Lt = e.object({
|
|
932
962
|
...u.shape,
|
|
933
|
-
feature_type: e.string().enum(
|
|
934
|
-
}),
|
|
963
|
+
feature_type: e.string().enum(xt)
|
|
964
|
+
}), St = l.ClaimRewards, Pt = e.object({
|
|
935
965
|
...u.shape,
|
|
936
|
-
feature_type: e.string().enum(
|
|
937
|
-
}),
|
|
966
|
+
feature_type: e.string().enum(St)
|
|
967
|
+
}), Et = l.Comment, Ut = e.object({
|
|
938
968
|
...u.shape,
|
|
939
|
-
feature_type: e.string().enum(
|
|
969
|
+
feature_type: e.string().enum(Et),
|
|
940
970
|
config: e.object({
|
|
941
971
|
comments: e.array(e.string()),
|
|
942
972
|
send_rate: e.number()
|
|
943
973
|
})
|
|
944
|
-
}),
|
|
974
|
+
}), $t = l.Follow, Ft = e.object({
|
|
945
975
|
...u.shape,
|
|
946
|
-
feature_type: e.string().enum(
|
|
976
|
+
feature_type: e.string().enum($t),
|
|
947
977
|
config: e.object({
|
|
948
978
|
platform: e.string(),
|
|
949
979
|
platform_icon: e.string().optional(),
|
|
@@ -951,67 +981,67 @@ const v = {
|
|
|
951
981
|
qr_code_url: e.string().optional(),
|
|
952
982
|
platform_desc: e.string().optional()
|
|
953
983
|
})
|
|
954
|
-
}),
|
|
984
|
+
}), Dt = l.GiftCode, It = e.object({
|
|
955
985
|
name: e.string(),
|
|
956
986
|
icon_url: e.string(),
|
|
957
987
|
count: e.number()
|
|
958
|
-
}),
|
|
988
|
+
}), At = e.object({
|
|
959
989
|
...u.shape,
|
|
960
|
-
feature_type: e.string().enum(
|
|
990
|
+
feature_type: e.string().enum(Dt),
|
|
961
991
|
config: e.object({
|
|
962
|
-
gift_items: e.array(
|
|
992
|
+
gift_items: e.array(It),
|
|
963
993
|
mp_url: e.string().optional(),
|
|
964
994
|
mp_qrcode_url: e.string().optional()
|
|
965
995
|
})
|
|
966
|
-
}),
|
|
996
|
+
}), Gt = l.Invite, Ot = e.object({
|
|
967
997
|
...u.shape,
|
|
968
|
-
feature_type: e.string().enum(
|
|
998
|
+
feature_type: e.string().enum(Gt),
|
|
969
999
|
config: e.object({
|
|
970
1000
|
share_url: e.string()
|
|
971
1001
|
})
|
|
972
|
-
}),
|
|
1002
|
+
}), Nt = l.InvitedRegister, Qt = e.object({
|
|
973
1003
|
...u.shape,
|
|
974
|
-
feature_type: e.string().enum(
|
|
975
|
-
}),
|
|
1004
|
+
feature_type: e.string().enum(Nt)
|
|
1005
|
+
}), Bt = e.string().enum(P(v, "GiftCode", "LotteryTicket")), Mt = l.Lottery, Kt = e.object({
|
|
976
1006
|
reward_item_id: e.number(),
|
|
977
1007
|
reward_item_name: e.string(),
|
|
978
|
-
reward_item_type:
|
|
1008
|
+
reward_item_type: Bt,
|
|
979
1009
|
reward_item_icon_url: e.string(),
|
|
980
1010
|
reward_item_desc: e.string().optional(),
|
|
981
1011
|
reward_amount: e.number(),
|
|
982
1012
|
reward_remaining_stock: e.number(),
|
|
983
1013
|
reward_item_rating: e.number()
|
|
984
|
-
}),
|
|
1014
|
+
}), Ht = e.object({
|
|
985
1015
|
...u.shape,
|
|
986
|
-
feature_type: e.string().enum(
|
|
1016
|
+
feature_type: e.string().enum(Mt),
|
|
987
1017
|
config: e.object({
|
|
988
1018
|
consume_item_id: e.number(),
|
|
989
1019
|
consume_item_name: e.string(),
|
|
990
1020
|
consume_item_icon_url: e.string(),
|
|
991
1021
|
consume_item_count: e.array(e.number()),
|
|
992
1022
|
consume_item_desc: e.string().optional(),
|
|
993
|
-
rewards: e.array(
|
|
1023
|
+
rewards: e.array(Kt)
|
|
994
1024
|
})
|
|
995
|
-
}),
|
|
1025
|
+
}), zt = l.LotteryDraw, Jt = e.object({
|
|
996
1026
|
...u.shape,
|
|
997
|
-
feature_type: e.string().enum(
|
|
1027
|
+
feature_type: e.string().enum(zt),
|
|
998
1028
|
config: e.object({
|
|
999
1029
|
draw_not_before: e.number(),
|
|
1000
1030
|
draw_not_after: e.number()
|
|
1001
1031
|
})
|
|
1002
|
-
}),
|
|
1032
|
+
}), Zt = l.Preregister, Xt = e.object({
|
|
1003
1033
|
...u.shape,
|
|
1004
|
-
feature_type: e.string().enum(
|
|
1005
|
-
}),
|
|
1034
|
+
feature_type: e.string().enum(Zt)
|
|
1035
|
+
}), Yt = l.Quest, Wt = e.object({
|
|
1006
1036
|
...u.shape,
|
|
1007
|
-
feature_type: e.string().enum(
|
|
1037
|
+
feature_type: e.string().enum(Yt),
|
|
1008
1038
|
config: e.object({
|
|
1009
1039
|
objective: te,
|
|
1010
1040
|
completion_value: e.number(),
|
|
1011
1041
|
team: e.object({
|
|
1012
1042
|
feature_id: e.number().optional(),
|
|
1013
1043
|
completion_value: e.number(),
|
|
1014
|
-
progress_algorithm:
|
|
1044
|
+
progress_algorithm: bt.clone().optional(),
|
|
1015
1045
|
top_n: e.number().optional()
|
|
1016
1046
|
}).optional(),
|
|
1017
1047
|
config: e.object({
|
|
@@ -1021,51 +1051,51 @@ const v = {
|
|
|
1021
1051
|
event_item_id: e.number().optional()
|
|
1022
1052
|
}).optional()
|
|
1023
1053
|
})
|
|
1024
|
-
}),
|
|
1054
|
+
}), en = l.Register, tn = e.object({
|
|
1025
1055
|
...u.shape,
|
|
1026
|
-
feature_type: e.string().enum(
|
|
1027
|
-
}),
|
|
1056
|
+
feature_type: e.string().enum(en)
|
|
1057
|
+
}), nn = l.Share, rn = e.object({
|
|
1028
1058
|
...u.shape,
|
|
1029
|
-
feature_type: e.string().enum(
|
|
1059
|
+
feature_type: e.string().enum(nn),
|
|
1030
1060
|
config: e.object({
|
|
1031
1061
|
share_platform: e.string(),
|
|
1032
1062
|
jump_url: e.string().optional(),
|
|
1033
1063
|
icon_url: e.string().optional()
|
|
1034
1064
|
})
|
|
1035
|
-
}),
|
|
1065
|
+
}), an = l.Subscribe, on = e.object({
|
|
1036
1066
|
...u.shape,
|
|
1037
|
-
feature_type: e.string().enum(
|
|
1067
|
+
feature_type: e.string().enum(an),
|
|
1038
1068
|
config: e.object({
|
|
1039
1069
|
weixin_template_ids: e.array(e.string())
|
|
1040
1070
|
})
|
|
1041
|
-
}),
|
|
1071
|
+
}), sn = l.Survey, cn = e.object({
|
|
1042
1072
|
...u.shape,
|
|
1043
|
-
feature_type: e.string().enum(
|
|
1073
|
+
feature_type: e.string().enum(sn),
|
|
1044
1074
|
config: e.object({
|
|
1045
1075
|
survey_id: e.string(),
|
|
1046
1076
|
survey_url: e.string()
|
|
1047
1077
|
})
|
|
1048
|
-
}),
|
|
1078
|
+
}), ln = l.Team, un = e.object({
|
|
1049
1079
|
...u.shape,
|
|
1050
|
-
feature_type: e.string().enum(
|
|
1080
|
+
feature_type: e.string().enum(ln),
|
|
1051
1081
|
config: e.object({
|
|
1052
1082
|
max_members: e.number().min(1),
|
|
1053
1083
|
min_members: e.number().min(1)
|
|
1054
1084
|
})
|
|
1055
|
-
}),
|
|
1085
|
+
}), mn = l.Ugc, dn = e.object({
|
|
1056
1086
|
...u.shape,
|
|
1057
|
-
feature_type: e.string().enum(
|
|
1087
|
+
feature_type: e.string().enum(mn),
|
|
1058
1088
|
config: e.object({
|
|
1059
1089
|
allowed_social_medias: e.array(e.string()).optional(),
|
|
1060
1090
|
acceptance_rewards: e.array(y).optional()
|
|
1061
1091
|
})
|
|
1062
|
-
}),
|
|
1092
|
+
}), gn = l.UgcLike, pn = e.object({
|
|
1063
1093
|
...u.shape,
|
|
1064
|
-
feature_type: e.string().enum(
|
|
1094
|
+
feature_type: e.string().enum(gn),
|
|
1065
1095
|
config: e.object({
|
|
1066
1096
|
ugc_feature_id: e.number()
|
|
1067
1097
|
})
|
|
1068
|
-
}),
|
|
1098
|
+
}), _n = l.Vote, bn = e.object({
|
|
1069
1099
|
sn: e.string(),
|
|
1070
1100
|
name: e.string(),
|
|
1071
1101
|
img_urls: e.array(e.string()).optional(),
|
|
@@ -1075,27 +1105,27 @@ const v = {
|
|
|
1075
1105
|
amount: e.number(),
|
|
1076
1106
|
finalists: e.bool(),
|
|
1077
1107
|
last_vote_time: e.number()
|
|
1078
|
-
}),
|
|
1108
|
+
}), yn = e.object({
|
|
1079
1109
|
...u.shape,
|
|
1080
|
-
feature_type: e.string().enum(
|
|
1110
|
+
feature_type: e.string().enum(_n),
|
|
1081
1111
|
config: e.object({
|
|
1082
1112
|
vote_feature_ids: e.array(e.number()),
|
|
1083
1113
|
submission_feature_ids: e.array(e.number()),
|
|
1084
1114
|
finalists_amount: e.number(),
|
|
1085
|
-
source:
|
|
1086
|
-
options: e.array(
|
|
1115
|
+
source: st,
|
|
1116
|
+
options: e.array(bn),
|
|
1087
1117
|
rewards: e.array(y)
|
|
1088
1118
|
})
|
|
1089
|
-
}),
|
|
1119
|
+
}), hn = l.Vote2, fn = e.object({
|
|
1090
1120
|
candidate_id: e.string(),
|
|
1091
1121
|
display_name: e.string(),
|
|
1092
1122
|
images: e.array(e.string()).optional(),
|
|
1093
1123
|
videos: e.array(e.string()).optional(),
|
|
1094
1124
|
description: e.string().optional(),
|
|
1095
1125
|
jump_url: e.string()
|
|
1096
|
-
}),
|
|
1126
|
+
}), wn = e.object({
|
|
1097
1127
|
...u.shape,
|
|
1098
|
-
feature_type: e.string().enum(
|
|
1128
|
+
feature_type: e.string().enum(hn),
|
|
1099
1129
|
config: e.object({
|
|
1100
1130
|
vote_item_id: e.number().optional(),
|
|
1101
1131
|
candidates: e.array(fn),
|
|
@@ -1106,53 +1136,53 @@ const v = {
|
|
|
1106
1136
|
winner_rewards: e.array(y).optional(),
|
|
1107
1137
|
consolation_rewards: e.array(y).optional()
|
|
1108
1138
|
})
|
|
1109
|
-
}),
|
|
1139
|
+
}), kn = l.ZeroChatgpt, vn = e.object({
|
|
1110
1140
|
...u.shape,
|
|
1111
|
-
feature_type: e.string().enum(
|
|
1112
|
-
}),
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
).key("feature_type").satisfies(),
|
|
1141
|
+
feature_type: e.string().enum(kn)
|
|
1142
|
+
}), Vn = e.union(
|
|
1143
|
+
jt,
|
|
1144
|
+
qt,
|
|
1145
|
+
Pt,
|
|
1146
|
+
Ut,
|
|
1147
|
+
Ft,
|
|
1148
|
+
At,
|
|
1149
|
+
Ot,
|
|
1150
|
+
Qt,
|
|
1151
|
+
Ht,
|
|
1152
|
+
Jt,
|
|
1153
|
+
Xt,
|
|
1154
|
+
Wt,
|
|
1155
|
+
tn,
|
|
1156
|
+
rn,
|
|
1157
|
+
on,
|
|
1158
|
+
cn,
|
|
1159
|
+
un,
|
|
1160
|
+
yn,
|
|
1161
|
+
wn,
|
|
1162
|
+
Lt,
|
|
1163
|
+
vn,
|
|
1164
|
+
dn,
|
|
1165
|
+
pn
|
|
1166
|
+
).key("feature_type").satisfies(), Cn = e.object({
|
|
1137
1167
|
event_name: e.string(),
|
|
1138
1168
|
rules: e.string(),
|
|
1139
1169
|
since: e.number(),
|
|
1140
1170
|
until: e.number(),
|
|
1141
1171
|
visit_count: e.number().optional(),
|
|
1142
|
-
features: e.array(
|
|
1172
|
+
features: e.array(Vn)
|
|
1143
1173
|
}).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), ae = e.object({
|
|
1144
1174
|
order_total_amount: q,
|
|
1145
1175
|
cashback_total_amount: q,
|
|
1146
1176
|
game_item_count: q
|
|
1147
|
-
}), Cn = e.object({
|
|
1148
|
-
activation_key: e.string().disallow("")
|
|
1149
1177
|
}), Rn = e.object({
|
|
1150
|
-
|
|
1178
|
+
activation_key: e.string().disallow("")
|
|
1151
1179
|
}), jn = e.object({
|
|
1180
|
+
gift_code: e.string()
|
|
1181
|
+
}), Tn = e.object({
|
|
1152
1182
|
user_id: e.string(),
|
|
1153
1183
|
name: e.string().optional(),
|
|
1154
1184
|
avatar_url: e.string().optional()
|
|
1155
|
-
}),
|
|
1185
|
+
}), qn = e.object({
|
|
1156
1186
|
lottery_count: e.number()
|
|
1157
1187
|
}), V = e.object({
|
|
1158
1188
|
reward_id: e.number(),
|
|
@@ -1169,29 +1199,29 @@ const v = {
|
|
|
1169
1199
|
event_name: e.string(),
|
|
1170
1200
|
feature_id: e.number(),
|
|
1171
1201
|
engagement_id: e.number(),
|
|
1172
|
-
feature_type:
|
|
1202
|
+
feature_type: at,
|
|
1173
1203
|
receive_time: e.number(),
|
|
1174
1204
|
extra_data: e.record(e.unknown()).optional()
|
|
1175
|
-
}),
|
|
1205
|
+
}), xn = e.string().enum(w.Unknown, w.Pending), Ln = e.union(
|
|
1176
1206
|
e.object({
|
|
1177
1207
|
ticket: e.string(),
|
|
1178
|
-
status:
|
|
1208
|
+
status: xn
|
|
1179
1209
|
}),
|
|
1180
1210
|
e.object({
|
|
1181
1211
|
ticket: e.string(),
|
|
1182
|
-
status: e.string().enum(P(
|
|
1212
|
+
status: e.string().enum(P(w, "Unknown", "Pending")),
|
|
1183
1213
|
reward: V
|
|
1184
1214
|
})
|
|
1185
|
-
).satisfies(),
|
|
1186
|
-
tickets: e.array(
|
|
1187
|
-
}),
|
|
1215
|
+
).satisfies(), Sn = e.object({
|
|
1216
|
+
tickets: e.array(Ln)
|
|
1217
|
+
}), Pn = e.object({
|
|
1188
1218
|
platforms: e.array(e.string())
|
|
1189
1219
|
}), oe = e.object({
|
|
1190
1220
|
role_name: e.string(),
|
|
1191
1221
|
is_leader: e.bool(),
|
|
1192
1222
|
is_myself: e.bool().optional(),
|
|
1193
1223
|
progress: e.number().optional()
|
|
1194
|
-
}).lock(),
|
|
1224
|
+
}).lock(), En = e.object({
|
|
1195
1225
|
objective: te,
|
|
1196
1226
|
progress: e.number(),
|
|
1197
1227
|
completion_value: e.number().optional(),
|
|
@@ -1200,30 +1230,30 @@ const v = {
|
|
|
1200
1230
|
completion_value: e.number().optional(),
|
|
1201
1231
|
players: e.array(oe)
|
|
1202
1232
|
}).optional()
|
|
1203
|
-
}),
|
|
1233
|
+
}), Un = e.object({
|
|
1204
1234
|
progress: e.number(),
|
|
1205
1235
|
team: e.object({
|
|
1206
1236
|
progress: e.number(),
|
|
1207
1237
|
team_members: e.array(oe).optional()
|
|
1208
1238
|
}).optional()
|
|
1209
|
-
}), Un = e.object({
|
|
1210
|
-
platform: e.string()
|
|
1211
1239
|
}), $n = e.object({
|
|
1212
|
-
|
|
1240
|
+
platform: e.string()
|
|
1213
1241
|
}), Fn = e.object({
|
|
1214
|
-
|
|
1242
|
+
weixin_openid: e.string()
|
|
1215
1243
|
}), Dn = e.object({
|
|
1244
|
+
serial_number: e.number()
|
|
1245
|
+
}), In = e.object({
|
|
1216
1246
|
team_code: e.string(),
|
|
1217
1247
|
leader_name: e.string(),
|
|
1218
1248
|
total_members: e.number()
|
|
1219
|
-
}),
|
|
1249
|
+
}), pa = e.object({
|
|
1220
1250
|
is_leader: e.bool(),
|
|
1221
1251
|
is_myself: e.bool().optional(),
|
|
1222
1252
|
role_name: e.string(),
|
|
1223
1253
|
server_name: e.string()
|
|
1224
|
-
}),
|
|
1254
|
+
}), An = e.object({
|
|
1225
1255
|
team_code: e.string(),
|
|
1226
|
-
visibility:
|
|
1256
|
+
visibility: dt,
|
|
1227
1257
|
members: e.array(
|
|
1228
1258
|
e.object({
|
|
1229
1259
|
is_leader: e.bool(),
|
|
@@ -1231,18 +1261,18 @@ const v = {
|
|
|
1231
1261
|
server_name: e.string()
|
|
1232
1262
|
})
|
|
1233
1263
|
)
|
|
1234
|
-
}),
|
|
1264
|
+
}), Gn = e.object({
|
|
1235
1265
|
ugc_id: e.number(),
|
|
1236
1266
|
title: e.string(),
|
|
1237
1267
|
content: e.string().optional(),
|
|
1238
1268
|
image_urls: e.array(e.string()).optional(),
|
|
1239
1269
|
social_media: re.clone().optional(),
|
|
1240
1270
|
social_media_url: e.string().optional()
|
|
1241
|
-
}),
|
|
1271
|
+
}), On = e.object({
|
|
1242
1272
|
ugcs: e.array(
|
|
1243
1273
|
e.object({
|
|
1244
1274
|
ugc_id: e.number(),
|
|
1245
|
-
review_status:
|
|
1275
|
+
review_status: kt,
|
|
1246
1276
|
title: e.string(),
|
|
1247
1277
|
content: e.string().optional(),
|
|
1248
1278
|
image_urls: e.array(e.string()).optional(),
|
|
@@ -1257,11 +1287,11 @@ const v = {
|
|
|
1257
1287
|
})
|
|
1258
1288
|
).optional(),
|
|
1259
1289
|
next_token: e.string().optional()
|
|
1260
|
-
}),
|
|
1290
|
+
}), Nn = e.object({
|
|
1261
1291
|
existed: e.bool(),
|
|
1262
1292
|
upload_url: e.string().optional(),
|
|
1263
1293
|
image_url: e.string()
|
|
1264
|
-
}),
|
|
1294
|
+
}), Qn = e.object({
|
|
1265
1295
|
ugcs: e.array(
|
|
1266
1296
|
e.object({
|
|
1267
1297
|
ugc_id: e.number(),
|
|
@@ -1274,27 +1304,27 @@ const v = {
|
|
|
1274
1304
|
role_name: e.string().optional()
|
|
1275
1305
|
})
|
|
1276
1306
|
).optional()
|
|
1277
|
-
}), Qn = e.object({
|
|
1278
|
-
option_sn: e.string()
|
|
1279
1307
|
}), Bn = e.object({
|
|
1308
|
+
option_sn: e.string()
|
|
1309
|
+
}), Mn = e.object({
|
|
1280
1310
|
candidate_id: e.string(),
|
|
1281
1311
|
total_votes: e.number().optional(),
|
|
1282
1312
|
my_votes: e.number().optional(),
|
|
1283
1313
|
votes: e.number().optional()
|
|
1284
|
-
}), Mn = e.object({
|
|
1285
|
-
rewards_type: yt,
|
|
1286
|
-
rewards: e.array(V).optional()
|
|
1287
1314
|
}), Kn = e.object({
|
|
1315
|
+
rewards_type: ht,
|
|
1316
|
+
rewards: e.array(V).optional()
|
|
1317
|
+
}), Hn = e.object({
|
|
1288
1318
|
candidate_id: e.string(),
|
|
1289
1319
|
is_winner: e.bool(),
|
|
1290
1320
|
total_votes: e.number(),
|
|
1291
1321
|
my_votes: e.number()
|
|
1292
|
-
}),
|
|
1322
|
+
}), zn = e.object({
|
|
1293
1323
|
role: e.string(),
|
|
1294
1324
|
content: e.string()
|
|
1295
|
-
}), zn = e.object({
|
|
1296
|
-
conversations: e.array(Hn)
|
|
1297
1325
|
}), Jn = e.object({
|
|
1326
|
+
conversations: e.array(zn)
|
|
1327
|
+
}), Zn = e.object({
|
|
1298
1328
|
user_id: e.string(),
|
|
1299
1329
|
name: e.string(),
|
|
1300
1330
|
avatar_url: e.string(),
|
|
@@ -1302,27 +1332,27 @@ const v = {
|
|
|
1302
1332
|
video_note: e.number(),
|
|
1303
1333
|
created_at: e.number()
|
|
1304
1334
|
}), $ = e.union(
|
|
1305
|
-
|
|
1335
|
+
Pn,
|
|
1336
|
+
qn,
|
|
1337
|
+
Dn,
|
|
1306
1338
|
Tn,
|
|
1307
|
-
Fn,
|
|
1308
|
-
jn,
|
|
1309
|
-
Un,
|
|
1310
|
-
Qn,
|
|
1311
|
-
Bn,
|
|
1312
1339
|
$n,
|
|
1340
|
+
Bn,
|
|
1341
|
+
Mn,
|
|
1342
|
+
Fn,
|
|
1313
1343
|
ae,
|
|
1314
|
-
|
|
1315
|
-
In,
|
|
1316
|
-
Pn,
|
|
1317
|
-
Ln,
|
|
1318
|
-
Cn,
|
|
1319
|
-
zn,
|
|
1344
|
+
jn,
|
|
1320
1345
|
An,
|
|
1346
|
+
En,
|
|
1347
|
+
Sn,
|
|
1348
|
+
Rn,
|
|
1349
|
+
Jn,
|
|
1350
|
+
Gn,
|
|
1321
1351
|
e.custom(
|
|
1322
1352
|
"EmptyObject",
|
|
1323
|
-
(i) =>
|
|
1353
|
+
(i) => h(i) && Object.keys(i).length === 0
|
|
1324
1354
|
)
|
|
1325
|
-
).satisfies().lock(),
|
|
1355
|
+
).satisfies().lock(), Xn = e.object({
|
|
1326
1356
|
reward_id: e.number(),
|
|
1327
1357
|
reward_item_id: e.number(),
|
|
1328
1358
|
reward_item_type: ee,
|
|
@@ -1335,7 +1365,7 @@ const v = {
|
|
|
1335
1365
|
reward_item_rating: e.number(),
|
|
1336
1366
|
receive_time: e.number(),
|
|
1337
1367
|
extra_data: e.union(...$.validators, e.record(e.unknown())).satisfies().optional()
|
|
1338
|
-
}),
|
|
1368
|
+
}), Yn = e.object({
|
|
1339
1369
|
reward_id: e.number(),
|
|
1340
1370
|
reward_item_id: e.number(),
|
|
1341
1371
|
reward_item_name: e.string(),
|
|
@@ -1347,7 +1377,7 @@ const v = {
|
|
|
1347
1377
|
reward_status: ne,
|
|
1348
1378
|
reward_source: U,
|
|
1349
1379
|
extra_data: e.record(e.unknown()).optional()
|
|
1350
|
-
}),
|
|
1380
|
+
}), Wn = e.object({
|
|
1351
1381
|
engagement_id: e.number(),
|
|
1352
1382
|
user_id: e.string(),
|
|
1353
1383
|
event_id: e.number(),
|
|
@@ -1357,18 +1387,18 @@ const v = {
|
|
|
1357
1387
|
server_id: e.string().optional(),
|
|
1358
1388
|
role_id: e.string().optional(),
|
|
1359
1389
|
created_at: e.number(),
|
|
1360
|
-
rewards: e.array(
|
|
1361
|
-
}).lock(),
|
|
1390
|
+
rewards: e.array(Xn).optional()
|
|
1391
|
+
}).lock(), er = e.object({
|
|
1362
1392
|
allowed: e.bool(),
|
|
1363
1393
|
registered: e.bool()
|
|
1364
|
-
}),
|
|
1394
|
+
}), tr = e.object({
|
|
1365
1395
|
feature_id: e.number(),
|
|
1366
1396
|
can_engage: e.bool(),
|
|
1367
1397
|
has_unclaimed_rewards: e.bool(),
|
|
1368
1398
|
final_available_count: e.number(),
|
|
1369
1399
|
total_remaining_engagements: e.number(),
|
|
1370
1400
|
cycle_remaining_engagements: e.number()
|
|
1371
|
-
}),
|
|
1401
|
+
}), nr = e.object({
|
|
1372
1402
|
engagement_id: e.number(),
|
|
1373
1403
|
engagement: e.object({
|
|
1374
1404
|
engagement_id: e.number(),
|
|
@@ -1376,41 +1406,41 @@ const v = {
|
|
|
1376
1406
|
feature_id: e.number(),
|
|
1377
1407
|
data: $.clone().optional()
|
|
1378
1408
|
}).optional(),
|
|
1379
|
-
rewards: e.array(
|
|
1409
|
+
rewards: e.array(Yn).optional(),
|
|
1380
1410
|
scan: e.bool().optional()
|
|
1381
|
-
}),
|
|
1411
|
+
}), rr = e.object({
|
|
1382
1412
|
reward_id: e.number(),
|
|
1383
1413
|
reward_status: E
|
|
1384
|
-
}),
|
|
1385
|
-
engagements: e.union(e.array(
|
|
1386
|
-
}), sr = s({
|
|
1387
|
-
status: e.array(er)
|
|
1414
|
+
}), ar = e.guard(Cn), or = e.guard(er), x = s({ count: e.number() }), ir = s({ first_visit: e.bool() }), sr = s({
|
|
1415
|
+
engagements: e.union(e.array(Zn), e.array(In))
|
|
1388
1416
|
}), cr = s({
|
|
1389
|
-
|
|
1417
|
+
status: e.array(tr)
|
|
1390
1418
|
}), lr = s({
|
|
1391
|
-
|
|
1419
|
+
engagements_counts: e.record(e.number())
|
|
1420
|
+
}), ur = s({
|
|
1421
|
+
engagements: e.array(Wn),
|
|
1392
1422
|
next_token: e.string().optional()
|
|
1393
|
-
}),
|
|
1394
|
-
claimed_items: e.array(
|
|
1395
|
-
}), dr = s({
|
|
1396
|
-
rewards: e.array(V)
|
|
1423
|
+
}), mr = e.guard(nr), dr = s({
|
|
1424
|
+
claimed_items: e.array(rr)
|
|
1397
1425
|
}), gr = s({
|
|
1398
|
-
|
|
1426
|
+
rewards: e.array(V)
|
|
1399
1427
|
}), pr = s({
|
|
1428
|
+
reward_status: E
|
|
1429
|
+
}), _r = s({
|
|
1400
1430
|
user_rewards: e.array(V),
|
|
1401
1431
|
next_token: e.string().optional()
|
|
1402
|
-
}), _r = s({
|
|
1403
|
-
scene: e.string()
|
|
1404
1432
|
}), br = s({
|
|
1405
|
-
|
|
1433
|
+
scene: e.string()
|
|
1406
1434
|
}), yr = s({
|
|
1435
|
+
params: e.string()
|
|
1436
|
+
}), hr = s({
|
|
1407
1437
|
img: e.string()
|
|
1408
|
-
}), fr = e.guard(
|
|
1438
|
+
}), fr = e.guard(Un), wr = e.guard(Kn), kr = e.guard(
|
|
1409
1439
|
e.object({
|
|
1410
|
-
candidate_votes: e.array(
|
|
1440
|
+
candidate_votes: e.array(Hn)
|
|
1411
1441
|
})
|
|
1412
|
-
),
|
|
1413
|
-
class
|
|
1442
|
+
), vr = e.guard(ae), M = e.guard(On), Vr = e.guard(Nn), Cr = e.guard(Qn);
|
|
1443
|
+
class _a {
|
|
1414
1444
|
token;
|
|
1415
1445
|
event = 0;
|
|
1416
1446
|
req;
|
|
@@ -1423,7 +1453,7 @@ class pa {
|
|
|
1423
1453
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1424
1454
|
*/
|
|
1425
1455
|
async verifyMobileAllowed(t, n, r) {
|
|
1426
|
-
const { data: a } = await this.req.get("verify-mobile-allowed",
|
|
1456
|
+
const { data: a } = await this.req.get("verify-mobile-allowed", or, {
|
|
1427
1457
|
...r,
|
|
1428
1458
|
params: { game_id: t, mobile: n }
|
|
1429
1459
|
});
|
|
@@ -1435,7 +1465,7 @@ class pa {
|
|
|
1435
1465
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1436
1466
|
*/
|
|
1437
1467
|
async getConfig(t) {
|
|
1438
|
-
const { data: n } = await this.req.get(`event/${this.event}/event-config`,
|
|
1468
|
+
const { data: n } = await this.req.get(`event/${this.event}/event-config`, ar, t);
|
|
1439
1469
|
return n;
|
|
1440
1470
|
}
|
|
1441
1471
|
/**
|
|
@@ -1470,7 +1500,7 @@ class pa {
|
|
|
1470
1500
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1471
1501
|
*/
|
|
1472
1502
|
async getEngagements(t, n) {
|
|
1473
|
-
const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1503
|
+
const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, sr, {
|
|
1474
1504
|
...n,
|
|
1475
1505
|
params: { feature_id: t }
|
|
1476
1506
|
});
|
|
@@ -1486,7 +1516,7 @@ class pa {
|
|
|
1486
1516
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1487
1517
|
`event/${this.event}/visit`,
|
|
1488
1518
|
c(t || {}),
|
|
1489
|
-
|
|
1519
|
+
ir,
|
|
1490
1520
|
n
|
|
1491
1521
|
);
|
|
1492
1522
|
return r ?? {
|
|
@@ -1503,7 +1533,7 @@ class pa {
|
|
|
1503
1533
|
*/
|
|
1504
1534
|
async getUserFeatureStatus(t, n) {
|
|
1505
1535
|
if (!await this.token.autoLogin()) return [];
|
|
1506
|
-
const { data: r } = await this.req.get("event/user-feature-status",
|
|
1536
|
+
const { data: r } = await this.req.get("event/user-feature-status", cr, {
|
|
1507
1537
|
...n,
|
|
1508
1538
|
message: !1,
|
|
1509
1539
|
params: c({ ...t, event_id: this.event })
|
|
@@ -1517,7 +1547,7 @@ class pa {
|
|
|
1517
1547
|
*/
|
|
1518
1548
|
async getUserEngagementCount(t, n) {
|
|
1519
1549
|
if (!await this.token.autoLogin()) return {};
|
|
1520
|
-
const { data: r } = await this.req.get("event/user-engagements-count",
|
|
1550
|
+
const { data: r } = await this.req.get("event/user-engagements-count", lr, {
|
|
1521
1551
|
message: !1,
|
|
1522
1552
|
params: c({ ...n, event_id: this.event, feature_id: t })
|
|
1523
1553
|
});
|
|
@@ -1536,7 +1566,7 @@ class pa {
|
|
|
1536
1566
|
engagements: [],
|
|
1537
1567
|
next_token: ""
|
|
1538
1568
|
};
|
|
1539
|
-
const { data: a } = await this.req.get("event/user-engagements",
|
|
1569
|
+
const { data: a } = await this.req.get("event/user-engagements", ur, {
|
|
1540
1570
|
...r,
|
|
1541
1571
|
params: c({
|
|
1542
1572
|
max_results: 20,
|
|
@@ -1561,19 +1591,19 @@ class pa {
|
|
|
1561
1591
|
*/
|
|
1562
1592
|
async engage(t, n, r, a) {
|
|
1563
1593
|
await this.token.autoLogin();
|
|
1564
|
-
const { data: o, code:
|
|
1594
|
+
const { data: o, code: g, message: p } = await this.req.post(
|
|
1565
1595
|
`event/${this.event}/engage`,
|
|
1566
1596
|
c({
|
|
1567
1597
|
feature_id: t,
|
|
1568
1598
|
engagement: n,
|
|
1569
1599
|
...r
|
|
1570
1600
|
}),
|
|
1571
|
-
|
|
1601
|
+
mr,
|
|
1572
1602
|
a
|
|
1573
1603
|
);
|
|
1574
1604
|
return o ?? {
|
|
1575
1605
|
message: p,
|
|
1576
|
-
error:
|
|
1606
|
+
error: g
|
|
1577
1607
|
};
|
|
1578
1608
|
}
|
|
1579
1609
|
/**
|
|
@@ -1591,7 +1621,7 @@ class pa {
|
|
|
1591
1621
|
...t,
|
|
1592
1622
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1593
1623
|
}),
|
|
1594
|
-
|
|
1624
|
+
dr,
|
|
1595
1625
|
n
|
|
1596
1626
|
);
|
|
1597
1627
|
return r?.claimed_items || {
|
|
@@ -1612,7 +1642,7 @@ class pa {
|
|
|
1612
1642
|
...t,
|
|
1613
1643
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1614
1644
|
}),
|
|
1615
|
-
|
|
1645
|
+
gr,
|
|
1616
1646
|
n
|
|
1617
1647
|
);
|
|
1618
1648
|
return r?.rewards || {
|
|
@@ -1630,7 +1660,7 @@ class pa {
|
|
|
1630
1660
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1631
1661
|
"event/claim-weixin-hongbao",
|
|
1632
1662
|
{ reward_id: t },
|
|
1633
|
-
|
|
1663
|
+
pr,
|
|
1634
1664
|
n
|
|
1635
1665
|
);
|
|
1636
1666
|
return r || {
|
|
@@ -1671,7 +1701,7 @@ class pa {
|
|
|
1671
1701
|
const { data: r } = await this.req.post(
|
|
1672
1702
|
"event/user-rewards",
|
|
1673
1703
|
c({ max_results: 20, ...t, event_id: this.event }),
|
|
1674
|
-
|
|
1704
|
+
_r,
|
|
1675
1705
|
n
|
|
1676
1706
|
);
|
|
1677
1707
|
return {
|
|
@@ -1719,7 +1749,7 @@ class pa {
|
|
|
1719
1749
|
*/
|
|
1720
1750
|
async getUnlimitQrcodeScene(t, n) {
|
|
1721
1751
|
if (!await this.token.autoLogin()) return null;
|
|
1722
|
-
const { data: r } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1752
|
+
const { data: r } = await this.req.get("event/unlimit-qrcode-scene", br, {
|
|
1723
1753
|
...n,
|
|
1724
1754
|
params: { params: t }
|
|
1725
1755
|
});
|
|
@@ -1733,7 +1763,7 @@ class pa {
|
|
|
1733
1763
|
* @param scene - 小程序码 scene 值
|
|
1734
1764
|
*/
|
|
1735
1765
|
async getParamsByQrcodeScene(t, n) {
|
|
1736
|
-
const { data: r } = await this.req.get("event/params-by-qrcode-scene",
|
|
1766
|
+
const { data: r } = await this.req.get("event/params-by-qrcode-scene", yr, {
|
|
1737
1767
|
...n,
|
|
1738
1768
|
params: { scene: t }
|
|
1739
1769
|
});
|
|
@@ -1749,7 +1779,7 @@ class pa {
|
|
|
1749
1779
|
const { data: r } = await this.req.post(
|
|
1750
1780
|
"event/unlimit-qrcode",
|
|
1751
1781
|
c(t),
|
|
1752
|
-
|
|
1782
|
+
hr,
|
|
1753
1783
|
n
|
|
1754
1784
|
);
|
|
1755
1785
|
return r?.img ?? null;
|
|
@@ -1783,7 +1813,7 @@ class pa {
|
|
|
1783
1813
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1784
1814
|
"event/vote2/rewards",
|
|
1785
1815
|
{ feature_id: t, event_id: this.event },
|
|
1786
|
-
|
|
1816
|
+
wr,
|
|
1787
1817
|
n
|
|
1788
1818
|
);
|
|
1789
1819
|
return r || {
|
|
@@ -1798,7 +1828,7 @@ class pa {
|
|
|
1798
1828
|
*/
|
|
1799
1829
|
async getVote2Leaderboard(t, n) {
|
|
1800
1830
|
if (!await this.token.autoLogin()) return [];
|
|
1801
|
-
const { data: r } = await this.req.get("event/vote2/leaderboard",
|
|
1831
|
+
const { data: r } = await this.req.get("event/vote2/leaderboard", kr, {
|
|
1802
1832
|
...n,
|
|
1803
1833
|
params: { feature_id: t, event_id: this.event }
|
|
1804
1834
|
});
|
|
@@ -1811,7 +1841,7 @@ class pa {
|
|
|
1811
1841
|
*/
|
|
1812
1842
|
async getCashbackQuery(t, n) {
|
|
1813
1843
|
if (!await this.token.autoLogin()) return null;
|
|
1814
|
-
const { data: r, code: a, message: o } = await this.req.get("event/cashback/query",
|
|
1844
|
+
const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", vr, {
|
|
1815
1845
|
...n,
|
|
1816
1846
|
params: { feature_id: t, event_id: this.event }
|
|
1817
1847
|
});
|
|
@@ -1825,20 +1855,18 @@ class pa {
|
|
|
1825
1855
|
*
|
|
1826
1856
|
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=biEwrNKhAF
|
|
1827
1857
|
*/
|
|
1828
|
-
async getUgcRecord(t, n
|
|
1858
|
+
async getUgcRecord(t, n) {
|
|
1829
1859
|
if (!await this.token.autoLogin()) return null;
|
|
1830
|
-
const { data:
|
|
1831
|
-
...
|
|
1860
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", M, {
|
|
1861
|
+
...n,
|
|
1832
1862
|
params: {
|
|
1833
1863
|
max_results: 20,
|
|
1834
|
-
...
|
|
1835
|
-
feature_id: t,
|
|
1836
|
-
event_id: this.event
|
|
1864
|
+
...t
|
|
1837
1865
|
}
|
|
1838
1866
|
});
|
|
1839
|
-
return
|
|
1840
|
-
message:
|
|
1841
|
-
error:
|
|
1867
|
+
return r || {
|
|
1868
|
+
message: o,
|
|
1869
|
+
error: a
|
|
1842
1870
|
};
|
|
1843
1871
|
}
|
|
1844
1872
|
/**
|
|
@@ -1852,14 +1880,14 @@ class pa {
|
|
|
1852
1880
|
*/
|
|
1853
1881
|
async ugcUploadImage(t, n, r) {
|
|
1854
1882
|
if (!await this.token.autoLogin()) return null;
|
|
1855
|
-
const { data: a, code: o, message:
|
|
1883
|
+
const { data: a, code: o, message: g } = await this.req.post(
|
|
1856
1884
|
"event/ugc/upload-image",
|
|
1857
1885
|
{ feature_id: t, ...n, event_id: this.event },
|
|
1858
|
-
|
|
1886
|
+
Vr,
|
|
1859
1887
|
r
|
|
1860
1888
|
);
|
|
1861
1889
|
return a || {
|
|
1862
|
-
message:
|
|
1890
|
+
message: g,
|
|
1863
1891
|
error: o
|
|
1864
1892
|
};
|
|
1865
1893
|
}
|
|
@@ -1894,7 +1922,7 @@ class pa {
|
|
|
1894
1922
|
*/
|
|
1895
1923
|
async getUgcLeaderboard(t, n) {
|
|
1896
1924
|
if (!await this.token.autoLogin()) return null;
|
|
1897
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard",
|
|
1925
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", Cr, {
|
|
1898
1926
|
...n,
|
|
1899
1927
|
params: {
|
|
1900
1928
|
feature_id: t,
|
|
@@ -1907,12 +1935,12 @@ class pa {
|
|
|
1907
1935
|
};
|
|
1908
1936
|
}
|
|
1909
1937
|
}
|
|
1910
|
-
const
|
|
1938
|
+
const Rr = {
|
|
1911
1939
|
/** 所有人均可以发帖 */
|
|
1912
1940
|
All: "all",
|
|
1913
1941
|
/** 指定用户可发帖 */
|
|
1914
1942
|
Limit: "limit"
|
|
1915
|
-
},
|
|
1943
|
+
}, jr = e.string().enum(Rr).lock(), Tr = {
|
|
1916
1944
|
/** 待审核(仅自己可见) */
|
|
1917
1945
|
Pending: "pending",
|
|
1918
1946
|
/** 审核通过 */
|
|
@@ -1921,14 +1949,14 @@ const Cr = {
|
|
|
1921
1949
|
Failed: "failed",
|
|
1922
1950
|
/** 嫌疑(仅自己可见) */
|
|
1923
1951
|
Suspect: "suspect"
|
|
1924
|
-
}, ie = e.string().enum(
|
|
1952
|
+
}, ie = e.string().enum(Tr).lock(), qr = {
|
|
1925
1953
|
/** 系统通知 */
|
|
1926
1954
|
System: "system",
|
|
1927
1955
|
/** 评论我的 */
|
|
1928
1956
|
Comment: "comment",
|
|
1929
1957
|
/** 点赞通知 */
|
|
1930
1958
|
Like: "like"
|
|
1931
|
-
},
|
|
1959
|
+
}, ba = e.string().enum(qr).lock(), m = {
|
|
1932
1960
|
/** 系统通知 */
|
|
1933
1961
|
System: "system",
|
|
1934
1962
|
/** 帖子被置顶 */
|
|
@@ -1953,13 +1981,13 @@ const Cr = {
|
|
|
1953
1981
|
ReplyLiked: "reply_liked",
|
|
1954
1982
|
/** 回复被删除 */
|
|
1955
1983
|
ReplyDeleted: "reply_deleted"
|
|
1956
|
-
},
|
|
1984
|
+
}, xr = e.string().enum(m).lock(), se = e.object({
|
|
1957
1985
|
forum_id: e.number(),
|
|
1958
1986
|
icon_url: e.string(),
|
|
1959
1987
|
name: e.string(),
|
|
1960
1988
|
tags: e.array(e.string()),
|
|
1961
1989
|
sort: e.number(),
|
|
1962
|
-
mode:
|
|
1990
|
+
mode: jr,
|
|
1963
1991
|
member_ids: e.array(e.number())
|
|
1964
1992
|
}).lock(), F = e.object({
|
|
1965
1993
|
topic_id: e.number(),
|
|
@@ -1990,7 +2018,7 @@ const Cr = {
|
|
|
1990
2018
|
create_time: e.number()
|
|
1991
2019
|
}).lock(), ce = e.object({
|
|
1992
2020
|
err_msg: e.string().optional()
|
|
1993
|
-
}).optional().lock(),
|
|
2021
|
+
}).optional().lock(), Lr = e.object({
|
|
1994
2022
|
reply_id: e.number(),
|
|
1995
2023
|
reply_content: e.string().optional(),
|
|
1996
2024
|
replied_by: e.string(),
|
|
@@ -2009,9 +2037,9 @@ const Cr = {
|
|
|
2009
2037
|
content: e.string(),
|
|
2010
2038
|
like_num: e.number(),
|
|
2011
2039
|
liked: e.bool(),
|
|
2012
|
-
reply_to:
|
|
2040
|
+
reply_to: Lr,
|
|
2013
2041
|
create_time: e.number()
|
|
2014
|
-
}).lock(),
|
|
2042
|
+
}).lock(), k = e.object({
|
|
2015
2043
|
comment_id: e.number(),
|
|
2016
2044
|
post_id: e.number(),
|
|
2017
2045
|
post_subject: e.string().optional(),
|
|
@@ -2031,19 +2059,19 @@ const Cr = {
|
|
|
2031
2059
|
create_time: e.number(),
|
|
2032
2060
|
status: ie,
|
|
2033
2061
|
replies: e.array(C).optional()
|
|
2034
|
-
}).lock(),
|
|
2062
|
+
}).lock(), Sr = e.object({
|
|
2035
2063
|
image_url: e.string(),
|
|
2036
2064
|
upload_url: e.string(),
|
|
2037
2065
|
existed: e.bool()
|
|
2038
|
-
}).lock(),
|
|
2066
|
+
}).lock(), b = e.object({
|
|
2039
2067
|
notification_id: e.string(),
|
|
2040
|
-
notification_type:
|
|
2068
|
+
notification_type: xr,
|
|
2041
2069
|
is_read: e.bool(),
|
|
2042
2070
|
create_time: e.number(),
|
|
2043
2071
|
origin_user_id: e.string(),
|
|
2044
2072
|
origin_user_name: e.string(),
|
|
2045
2073
|
origin_user_avatar_url: e.string()
|
|
2046
|
-
}).lock(),
|
|
2074
|
+
}).lock(), Pr = e.object({
|
|
2047
2075
|
system_message_subject: e.string(),
|
|
2048
2076
|
system_message_content: e.string()
|
|
2049
2077
|
}).lock(), I = e.object({
|
|
@@ -2057,12 +2085,12 @@ const Cr = {
|
|
|
2057
2085
|
}).lock(), A = e.object({
|
|
2058
2086
|
reply_id: e.number(),
|
|
2059
2087
|
reply_content: e.string()
|
|
2060
|
-
}).lock(),
|
|
2061
|
-
...
|
|
2062
|
-
...
|
|
2088
|
+
}).lock(), Er = e.object({
|
|
2089
|
+
...b.shape,
|
|
2090
|
+
...Pr.shape,
|
|
2063
2091
|
notification_type: e.string().enum(m.System)
|
|
2064
|
-
}),
|
|
2065
|
-
...
|
|
2092
|
+
}), Ur = e.object({
|
|
2093
|
+
...b.shape,
|
|
2066
2094
|
...I.shape,
|
|
2067
2095
|
notification_type: e.string().enum(
|
|
2068
2096
|
m.PostPinned,
|
|
@@ -2070,68 +2098,68 @@ const Cr = {
|
|
|
2070
2098
|
m.PostDeleted,
|
|
2071
2099
|
m.PostLiked
|
|
2072
2100
|
)
|
|
2073
|
-
}),
|
|
2074
|
-
...
|
|
2101
|
+
}), $r = e.object({
|
|
2102
|
+
...b.shape,
|
|
2075
2103
|
...I.shape,
|
|
2076
2104
|
...R.shape,
|
|
2077
2105
|
notification_type: e.string().enum(m.PostCommented)
|
|
2078
|
-
}),
|
|
2079
|
-
...
|
|
2106
|
+
}), Fr = e.object({
|
|
2107
|
+
...b.shape,
|
|
2080
2108
|
...R.shape,
|
|
2081
2109
|
...A.shape,
|
|
2082
2110
|
notification_type: e.string().enum(m.CommentReplied)
|
|
2083
|
-
}),
|
|
2084
|
-
...
|
|
2111
|
+
}), Dr = e.object({
|
|
2112
|
+
...b.shape,
|
|
2085
2113
|
...R.shape,
|
|
2086
2114
|
...I.shape,
|
|
2087
2115
|
notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
|
|
2088
|
-
}),
|
|
2089
|
-
...
|
|
2116
|
+
}), Ir = e.object({
|
|
2117
|
+
...b.shape,
|
|
2090
2118
|
...A.shape,
|
|
2091
2119
|
notification_type: e.string().enum(m.ReplyReplied),
|
|
2092
2120
|
comment_id: e.number(),
|
|
2093
2121
|
reply_to_reply_id: e.number(),
|
|
2094
2122
|
reply_to_reply_content: e.string()
|
|
2095
|
-
}),
|
|
2096
|
-
...
|
|
2123
|
+
}), Ar = e.object({
|
|
2124
|
+
...b.shape,
|
|
2097
2125
|
...A.shape,
|
|
2098
2126
|
...R.shape,
|
|
2099
2127
|
notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
|
|
2100
|
-
}),
|
|
2101
|
-
Pr,
|
|
2128
|
+
}), Gr = e.union(
|
|
2102
2129
|
Er,
|
|
2103
2130
|
Ur,
|
|
2104
2131
|
$r,
|
|
2105
2132
|
Fr,
|
|
2106
2133
|
Dr,
|
|
2107
|
-
Ir
|
|
2108
|
-
|
|
2134
|
+
Ir,
|
|
2135
|
+
Ar
|
|
2136
|
+
).satisfies().lock(), Or = s({ forums: e.array(se) }), Nr = s({ topics: e.array(F) }), Qr = s({ topic: F }), Br = s({ post: D }), K = s({
|
|
2109
2137
|
posts: e.array(D),
|
|
2110
2138
|
next_token: e.string().optional()
|
|
2111
|
-
}),
|
|
2139
|
+
}), Mr = s({
|
|
2112
2140
|
post: D.clone().optional(),
|
|
2113
2141
|
antispam: ce.clone().optional()
|
|
2114
|
-
}),
|
|
2142
|
+
}), Kr = s({
|
|
2115
2143
|
replies: e.array(C),
|
|
2116
2144
|
next_token: e.string().optional()
|
|
2117
|
-
}),
|
|
2145
|
+
}), Hr = s({ reply: C }), zr = s({
|
|
2118
2146
|
reply: C.clone().optional(),
|
|
2119
2147
|
antispam: ce.clone().optional()
|
|
2120
|
-
}),
|
|
2121
|
-
comments: e.array(
|
|
2148
|
+
}), Jr = s({ comment: k }), Zr = s({
|
|
2149
|
+
comments: e.array(k),
|
|
2122
2150
|
next_token: e.string().optional()
|
|
2123
|
-
}),
|
|
2124
|
-
comment:
|
|
2125
|
-
antispam:
|
|
2126
|
-
}),
|
|
2127
|
-
notifications: e.array(
|
|
2151
|
+
}), Xr = s({
|
|
2152
|
+
comment: k.clone().optional(),
|
|
2153
|
+
antispam: k.clone().optional()
|
|
2154
|
+
}), Yr = e.guard(Sr), Wr = s({
|
|
2155
|
+
notifications: e.array(Gr),
|
|
2128
2156
|
next_token: e.string().optional()
|
|
2129
|
-
}),
|
|
2157
|
+
}), ea = s({
|
|
2130
2158
|
system: e.number(),
|
|
2131
2159
|
comment: e.number(),
|
|
2132
2160
|
like: e.number()
|
|
2133
2161
|
});
|
|
2134
|
-
class
|
|
2162
|
+
class ya {
|
|
2135
2163
|
token;
|
|
2136
2164
|
req;
|
|
2137
2165
|
constructor(t) {
|
|
@@ -2143,7 +2171,7 @@ class ba {
|
|
|
2143
2171
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
2144
2172
|
*/
|
|
2145
2173
|
async getForums(t) {
|
|
2146
|
-
const { data: n } = await this.req.get("community/forums",
|
|
2174
|
+
const { data: n } = await this.req.get("community/forums", Or, t);
|
|
2147
2175
|
return n?.forums || [];
|
|
2148
2176
|
}
|
|
2149
2177
|
/**
|
|
@@ -2152,7 +2180,7 @@ class ba {
|
|
|
2152
2180
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
2153
2181
|
*/
|
|
2154
2182
|
async getTopics(t) {
|
|
2155
|
-
const { data: n } = await this.req.get("community/topics",
|
|
2183
|
+
const { data: n } = await this.req.get("community/topics", Nr, t);
|
|
2156
2184
|
return n?.topics || [];
|
|
2157
2185
|
}
|
|
2158
2186
|
/**
|
|
@@ -2161,7 +2189,7 @@ class ba {
|
|
|
2161
2189
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
2162
2190
|
*/
|
|
2163
2191
|
async getTopic(t, n) {
|
|
2164
|
-
const { data: r, code: a } = await this.req.get("community/topic",
|
|
2192
|
+
const { data: r, code: a } = await this.req.get("community/topic", Qr, {
|
|
2165
2193
|
...n,
|
|
2166
2194
|
params: { topic_id: t }
|
|
2167
2195
|
});
|
|
@@ -2188,13 +2216,13 @@ class ba {
|
|
|
2188
2216
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
|
|
2189
2217
|
*/
|
|
2190
2218
|
async getPinnedPosts(t, n, r, a) {
|
|
2191
|
-
const { data: o, code:
|
|
2219
|
+
const { data: o, code: g, message: p } = await this.req.get("community/pinned-posts", K, {
|
|
2192
2220
|
...a,
|
|
2193
2221
|
params: c({ forum_id: t, max_results: n, next_token: r })
|
|
2194
2222
|
});
|
|
2195
2223
|
return o ?? {
|
|
2196
2224
|
message: p,
|
|
2197
|
-
error:
|
|
2225
|
+
error: g
|
|
2198
2226
|
};
|
|
2199
2227
|
}
|
|
2200
2228
|
/**
|
|
@@ -2203,7 +2231,7 @@ class ba {
|
|
|
2203
2231
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
2204
2232
|
*/
|
|
2205
2233
|
async getPost(t, n) {
|
|
2206
|
-
const { data: r, code: a, message: o } = await this.req.get("community/post",
|
|
2234
|
+
const { data: r, code: a, message: o } = await this.req.get("community/post", Br, {
|
|
2207
2235
|
...n,
|
|
2208
2236
|
params: { post_id: t }
|
|
2209
2237
|
});
|
|
@@ -2221,7 +2249,7 @@ class ba {
|
|
|
2221
2249
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2222
2250
|
"community/post",
|
|
2223
2251
|
c(t),
|
|
2224
|
-
|
|
2252
|
+
Mr,
|
|
2225
2253
|
n
|
|
2226
2254
|
);
|
|
2227
2255
|
return r ?? {
|
|
@@ -2235,7 +2263,7 @@ class ba {
|
|
|
2235
2263
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
2236
2264
|
*/
|
|
2237
2265
|
async getComments(t, n) {
|
|
2238
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comments",
|
|
2266
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comments", Zr, {
|
|
2239
2267
|
...n,
|
|
2240
2268
|
params: c(t)
|
|
2241
2269
|
});
|
|
@@ -2250,7 +2278,7 @@ class ba {
|
|
|
2250
2278
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
2251
2279
|
*/
|
|
2252
2280
|
async getComment(t, n) {
|
|
2253
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comment",
|
|
2281
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comment", Jr, {
|
|
2254
2282
|
...n,
|
|
2255
2283
|
params: { comment_id: t }
|
|
2256
2284
|
});
|
|
@@ -2269,7 +2297,7 @@ class ba {
|
|
|
2269
2297
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2270
2298
|
"community/comment",
|
|
2271
2299
|
c(t),
|
|
2272
|
-
|
|
2300
|
+
Xr,
|
|
2273
2301
|
n
|
|
2274
2302
|
);
|
|
2275
2303
|
return r ?? {
|
|
@@ -2283,7 +2311,7 @@ class ba {
|
|
|
2283
2311
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
2284
2312
|
*/
|
|
2285
2313
|
async getReplies(t, n) {
|
|
2286
|
-
const { data: r } = await this.req.get("community/replies",
|
|
2314
|
+
const { data: r } = await this.req.get("community/replies", Kr, {
|
|
2287
2315
|
...n,
|
|
2288
2316
|
params: c({ max_results: 20, ...t })
|
|
2289
2317
|
});
|
|
@@ -2298,7 +2326,7 @@ class ba {
|
|
|
2298
2326
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
2299
2327
|
*/
|
|
2300
2328
|
async getReply(t, n) {
|
|
2301
|
-
const { data: r, code: a, message: o } = await this.req.get("community/reply",
|
|
2329
|
+
const { data: r, code: a, message: o } = await this.req.get("community/reply", Hr, {
|
|
2302
2330
|
...n,
|
|
2303
2331
|
params: { reply_id: t }
|
|
2304
2332
|
});
|
|
@@ -2317,7 +2345,7 @@ class ba {
|
|
|
2317
2345
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2318
2346
|
"community/reply",
|
|
2319
2347
|
c(t),
|
|
2320
|
-
|
|
2348
|
+
zr,
|
|
2321
2349
|
n
|
|
2322
2350
|
);
|
|
2323
2351
|
return r ?? {
|
|
@@ -2368,7 +2396,7 @@ class ba {
|
|
|
2368
2396
|
*/
|
|
2369
2397
|
async getMediaPresignedUrl(t, n) {
|
|
2370
2398
|
await this.token.autoLogin();
|
|
2371
|
-
const { data: r } = await this.req.get("community/media-presign-url",
|
|
2399
|
+
const { data: r } = await this.req.get("community/media-presign-url", Yr, {
|
|
2372
2400
|
...n,
|
|
2373
2401
|
params: t
|
|
2374
2402
|
});
|
|
@@ -2383,7 +2411,7 @@ class ba {
|
|
|
2383
2411
|
*/
|
|
2384
2412
|
async getNotifications(t, n) {
|
|
2385
2413
|
await this.token.autoLogin();
|
|
2386
|
-
const { data: r } = await this.req.get("community/notifications",
|
|
2414
|
+
const { data: r } = await this.req.get("community/notifications", Wr, {
|
|
2387
2415
|
...n,
|
|
2388
2416
|
params: c({ max_results: 20, ...t })
|
|
2389
2417
|
});
|
|
@@ -2401,7 +2429,7 @@ class ba {
|
|
|
2401
2429
|
if (!await this.token.autoLogin()) return null;
|
|
2402
2430
|
const { data: n } = await this.req.get(
|
|
2403
2431
|
"community/unread-notifications-count",
|
|
2404
|
-
|
|
2432
|
+
ea,
|
|
2405
2433
|
t
|
|
2406
2434
|
);
|
|
2407
2435
|
return n;
|
|
@@ -2417,17 +2445,17 @@ class ba {
|
|
|
2417
2445
|
return r;
|
|
2418
2446
|
}
|
|
2419
2447
|
}
|
|
2420
|
-
const
|
|
2448
|
+
const ta = s({
|
|
2421
2449
|
nonce_str: e.string(),
|
|
2422
2450
|
timestamp: e.number(),
|
|
2423
2451
|
signature: e.string()
|
|
2424
2452
|
});
|
|
2425
|
-
var
|
|
2453
|
+
var na = /* @__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))(na || {});
|
|
2426
2454
|
function L(i) {
|
|
2427
|
-
return
|
|
2455
|
+
return h(i, "open_id", "union_id", "weixin_token");
|
|
2428
2456
|
}
|
|
2429
2457
|
const H = "wx_login_cache";
|
|
2430
|
-
class
|
|
2458
|
+
class ha {
|
|
2431
2459
|
token;
|
|
2432
2460
|
$appid;
|
|
2433
2461
|
req;
|
|
@@ -2482,19 +2510,19 @@ class ya {
|
|
|
2482
2510
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=GwIZ0givCb
|
|
2483
2511
|
*/
|
|
2484
2512
|
async login(t) {
|
|
2485
|
-
if (!
|
|
2513
|
+
if (!_())
|
|
2486
2514
|
throw new Error("当前环境非微信小程序");
|
|
2487
2515
|
const n = await this.getLoginCache();
|
|
2488
2516
|
if (n)
|
|
2489
2517
|
return n;
|
|
2490
|
-
const r = await
|
|
2518
|
+
const r = await ke(), { data: a, code: o, message: g } = await this.req.post(
|
|
2491
2519
|
"weixin/login",
|
|
2492
2520
|
{ code: r, appid: this.appid },
|
|
2493
2521
|
L,
|
|
2494
2522
|
{ ...t, message: !1 }
|
|
2495
2523
|
);
|
|
2496
2524
|
return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(H, JSON.stringify(a))), a ?? {
|
|
2497
|
-
message:
|
|
2525
|
+
message: g,
|
|
2498
2526
|
error: o
|
|
2499
2527
|
};
|
|
2500
2528
|
}
|
|
@@ -2528,8 +2556,8 @@ class ya {
|
|
|
2528
2556
|
message: "Error: " + r,
|
|
2529
2557
|
error: r
|
|
2530
2558
|
};
|
|
2531
|
-
const
|
|
2532
|
-
"replaceState" in history && history.replaceState({}, "",
|
|
2559
|
+
const g = G(["code", "state"]);
|
|
2560
|
+
"replaceState" in history && history.replaceState({}, "", g);
|
|
2533
2561
|
const {
|
|
2534
2562
|
data: p,
|
|
2535
2563
|
code: le,
|
|
@@ -2567,7 +2595,7 @@ class ya {
|
|
|
2567
2595
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2568
2596
|
*/
|
|
2569
2597
|
async getJSSDKConfig(t) {
|
|
2570
|
-
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2598
|
+
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ta, {
|
|
2571
2599
|
...t,
|
|
2572
2600
|
params: {
|
|
2573
2601
|
appid: this.appid,
|
|
@@ -2584,166 +2612,166 @@ class ya {
|
|
|
2584
2612
|
}
|
|
2585
2613
|
export {
|
|
2586
2614
|
ce as AntispamValidator,
|
|
2587
|
-
|
|
2588
|
-
|
|
2615
|
+
ia as AuthToken,
|
|
2616
|
+
Hn as CandidateVoteValidator,
|
|
2589
2617
|
ae as CashbackEngagementDataValidator,
|
|
2590
|
-
|
|
2591
|
-
|
|
2618
|
+
Rn as ClaimActivationKeyEngagementDataValidator,
|
|
2619
|
+
lt as ClaimRewardStatus,
|
|
2592
2620
|
E as ClaimRewardStatusValidator,
|
|
2593
|
-
|
|
2621
|
+
rr as ClaimedItemValidator,
|
|
2594
2622
|
Z as ClubAddressValidator,
|
|
2595
|
-
|
|
2623
|
+
ca as ClubApi,
|
|
2596
2624
|
X as ClubBenefitSummaryValidator,
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2625
|
+
Oe as ClubBenefitValidator,
|
|
2626
|
+
qe as ClubCreditChangeScene,
|
|
2627
|
+
xe as ClubCreditChangeSceneValidator,
|
|
2628
|
+
je as ClubCreditChangeType,
|
|
2629
|
+
Te as ClubCreditChangeTypeValidator,
|
|
2630
|
+
Ge as ClubCreditLogValidator,
|
|
2631
|
+
Ee as ClubGlobalConfigValidator,
|
|
2632
|
+
Le as ClubItemType,
|
|
2605
2633
|
z as ClubItemTypeValidator,
|
|
2606
|
-
|
|
2634
|
+
Ue as ClubPlayerValidator,
|
|
2607
2635
|
Y as ClubProductValidator,
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2636
|
+
Se as ClubRedemptionStatus,
|
|
2637
|
+
Pe as ClubRedemptionStatusValidator,
|
|
2638
|
+
Ae as ClubUserCreditValidator,
|
|
2639
|
+
Ie as ClubUserProfileValidator,
|
|
2640
|
+
Zn as CommentEngagementValidator,
|
|
2641
|
+
k as CommentValidator,
|
|
2642
|
+
ya as CommunityApi,
|
|
2643
|
+
zn as ConversationValidator,
|
|
2644
|
+
et as EngageAccountType,
|
|
2645
|
+
tt as EngageAccountTypeValidator,
|
|
2646
|
+
nr as EngageResponseValidator,
|
|
2647
|
+
Yn as EngageRewardValidator,
|
|
2648
|
+
_a as EventApi,
|
|
2649
|
+
Cn as EventConfigValidator,
|
|
2650
|
+
jt as EventFeatureConfigOfCashbackValidator,
|
|
2651
|
+
qt as EventFeatureConfigOfCheckInValidator,
|
|
2652
|
+
Lt as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2653
|
+
Pt as EventFeatureConfigOfClaimRewardsValidator,
|
|
2654
|
+
Ut as EventFeatureConfigOfCommentValidator,
|
|
2655
|
+
Ft as EventFeatureConfigOfFollowValidator,
|
|
2656
|
+
At as EventFeatureConfigOfGiftCodeValidator,
|
|
2657
|
+
Ot as EventFeatureConfigOfInviteValidator,
|
|
2658
|
+
Qt as EventFeatureConfigOfInvitedRegisterValidator,
|
|
2659
|
+
Jt as EventFeatureConfigOfLotteryDrawValidator,
|
|
2660
|
+
Ht as EventFeatureConfigOfLotteryValidator,
|
|
2661
|
+
Xt as EventFeatureConfigOfPreregisterValidator,
|
|
2662
|
+
Wt as EventFeatureConfigOfQuestValidator,
|
|
2663
|
+
tn as EventFeatureConfigOfRegisterValidator,
|
|
2664
|
+
rn as EventFeatureConfigOfShareValidator,
|
|
2665
|
+
on as EventFeatureConfigOfSubscribeValidator,
|
|
2666
|
+
cn as EventFeatureConfigOfSurveyValidator,
|
|
2667
|
+
un as EventFeatureConfigOfTeamValidator,
|
|
2668
|
+
pn as EventFeatureConfigOfUgcLikeValidator,
|
|
2669
|
+
dn as EventFeatureConfigOfUgcValidator,
|
|
2670
|
+
wn as EventFeatureConfigOfVote2Validator,
|
|
2671
|
+
yn as EventFeatureConfigOfVoteValidator,
|
|
2672
|
+
Vn as EventFeatureConfigValidator,
|
|
2673
|
+
nt as EventPeriodType,
|
|
2674
|
+
rt as EventPeriodTypeValidator,
|
|
2647
2675
|
y as EventRewardItemConfigValidator,
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2676
|
+
Qe as ExtraGameRewardValidator,
|
|
2677
|
+
Ne as ExtraPhysicalShipmentValidator,
|
|
2678
|
+
Ct as FeatureRewardValidator,
|
|
2651
2679
|
l as FeatureType,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2680
|
+
at as FeatureTypeValidator,
|
|
2681
|
+
Rr as ForumMode,
|
|
2682
|
+
jr as ForumModeValidator,
|
|
2655
2683
|
se as ForumValidator,
|
|
2656
2684
|
v as GamerItemType,
|
|
2657
2685
|
W as GamerItemTypeValidator,
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2686
|
+
Ce as Gender,
|
|
2687
|
+
Re as GenderValidator,
|
|
2688
|
+
jn as GiftCodeEngagementDataValidator,
|
|
2689
|
+
Tn as InviteEngagementDataValidator,
|
|
2690
|
+
pt as LotteryDrawAction,
|
|
2691
|
+
ga as LotteryDrawActionValidator,
|
|
2692
|
+
Sn as LotteryDrawEngagementDataValidator,
|
|
2693
|
+
qn as LotteryEngagementDataValidator,
|
|
2694
|
+
w as LotteryTicketStatus,
|
|
2695
|
+
ma as LotteryTicketStatusValidator,
|
|
2696
|
+
b as NotificationBaseValidator,
|
|
2697
|
+
qr as NotificationCategory,
|
|
2698
|
+
ba as NotificationCategoryValidator,
|
|
2699
|
+
Fr as NotificationCommentReplyValidator,
|
|
2700
|
+
Dr as NotificationCommentValidator,
|
|
2673
2701
|
R as NotificationPayloadCommentValidator,
|
|
2674
2702
|
I as NotificationPayloadPostValidator,
|
|
2675
2703
|
A as NotificationPayloadReplyValidator,
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2704
|
+
Pr as NotificationPayloadSystemValidator,
|
|
2705
|
+
$r as NotificationPostCommentValidator,
|
|
2706
|
+
Ur as NotificationPostValidator,
|
|
2707
|
+
Ir as NotificationReplyRepliedValidator,
|
|
2708
|
+
Ar as NotificationReplyValidator,
|
|
2709
|
+
Er as NotificationSystemValidator,
|
|
2682
2710
|
m as NotificationType,
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2711
|
+
xr as NotificationTypeValidator,
|
|
2712
|
+
Gr as NotificationValidator,
|
|
2713
|
+
De as PlayerRoleCardValidator,
|
|
2686
2714
|
J as PlayerRoleValidator,
|
|
2687
|
-
|
|
2715
|
+
Tr as PostStatus,
|
|
2688
2716
|
ie as PostStatusValidator,
|
|
2689
2717
|
D as PostValidator,
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2718
|
+
Pn as PreregisterEngagementDataValidator,
|
|
2719
|
+
Sr as PresignedUrlResponseValidator,
|
|
2720
|
+
En as QuestEngagementDataValidator,
|
|
2721
|
+
ot as QuestObjective,
|
|
2694
2722
|
te as QuestObjectiveValidator,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2723
|
+
_t as QuestProgressAlgorithm,
|
|
2724
|
+
bt as QuestProgressAlgorithmValidator,
|
|
2725
|
+
Un as QuestProgressValidator,
|
|
2726
|
+
sa as RedeemParamsValidator,
|
|
2727
|
+
Be as RedemptionValidator,
|
|
2728
|
+
Vt as RegularRewardValidator,
|
|
2729
|
+
Lr as ReplyToValidator,
|
|
2702
2730
|
C as ReplyValidator,
|
|
2703
|
-
|
|
2731
|
+
la as RewardItemType,
|
|
2704
2732
|
ee as RewardItemTypeValidator,
|
|
2705
|
-
|
|
2733
|
+
ut as RewardSource,
|
|
2706
2734
|
U as RewardSourceValidator,
|
|
2707
|
-
|
|
2708
|
-
|
|
2735
|
+
d as RewardStatus,
|
|
2736
|
+
ct as RewardStatusSuffix,
|
|
2709
2737
|
ne as RewardStatusSuffixValidator,
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2738
|
+
ua as RewardStatusValidator,
|
|
2739
|
+
Xn as RewardValidator,
|
|
2740
|
+
Fe as RoleBaseInfoValidator,
|
|
2741
|
+
$e as ServerBaseInfoValidator,
|
|
2742
|
+
$n as ShareEngagementDataValidator,
|
|
2743
|
+
Dn as SurveyEngagementDataValidator,
|
|
2744
|
+
gt as TeamAction,
|
|
2745
|
+
da as TeamActionValidator,
|
|
2746
|
+
An as TeamEngagementDataValidator,
|
|
2747
|
+
In as TeamEngagementValidator,
|
|
2748
|
+
pa as TeamMemberValidator,
|
|
2749
|
+
mt as TeamVisibility,
|
|
2750
|
+
dt as TeamVisibilityValidator,
|
|
2723
2751
|
F as TopicValidator,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2752
|
+
Gn as UgcEngagementDataValidator,
|
|
2753
|
+
Qn as UgcLeaderboardResponseValidator,
|
|
2754
|
+
On as UgcRecordResponseValidator,
|
|
2755
|
+
wt as UgcReviewStatus,
|
|
2756
|
+
kt as UgcReviewStatusValidator,
|
|
2729
2757
|
ft as UgcSocialMedia,
|
|
2730
2758
|
re as UgcSocialMediaValidator,
|
|
2731
|
-
|
|
2759
|
+
Nn as UgcUploadImageValidator,
|
|
2732
2760
|
$ as UserEngagementDataValidator,
|
|
2733
|
-
|
|
2734
|
-
|
|
2761
|
+
Wn as UserEngagementValidator,
|
|
2762
|
+
tr as UserFeatureStatusValidator,
|
|
2735
2763
|
V as UserRewardValidator,
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2764
|
+
er as VerifyMobileResultValidator,
|
|
2765
|
+
Kn as Vote2ClaimRewardsResponseValidator,
|
|
2766
|
+
Mn as Vote2EngagementDataValidator,
|
|
2767
|
+
yt as Vote2RewardType,
|
|
2768
|
+
ht as Vote2RewardTypeValidator,
|
|
2769
|
+
Bn as VoteEngagementDataValidator,
|
|
2770
|
+
it as VoteOptionSource,
|
|
2771
|
+
st as VoteOptionSourceValidator,
|
|
2772
|
+
ha as WeixinApi,
|
|
2773
|
+
Fn as WeixinSubscribeEngagementDataValidator,
|
|
2774
|
+
na as WeixinWebLoginErrorCode,
|
|
2775
|
+
Jn as ZeroChatGPTDataValidator,
|
|
2776
|
+
ta as isWeixinSignResponse
|
|
2749
2777
|
};
|