@seayoo-web/gamer-api 2.13.8 → 2.13.10
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 +482 -452
- package/package.json +5 -5
- package/types/src/club.define.d.ts +34 -0
- package/types/src/club.enums.d.ts +5 -0
- package/types/src/community.define.d.ts +14 -0
- package/types/src/community.enums.d.ts +4 -0
- package/types/src/event.config/index.d.ts +1 -0
- package/types/src/event.config/reward.d.ts +3 -0
- package/types/src/event.engage/engage.d.ts +1 -0
- package/types/src/event.engage/index.d.ts +1 -0
- package/types/src/event.enums.d.ts +19 -0
- package/types/src/token.d.ts +6 -0
- package/types/src/token.guards.d.ts +4 -0
- package/types/src/utils.d.ts +1 -1
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(), g = {
|
|
784
814
|
/** 未获得奖励 */
|
|
785
815
|
Ineligible: "ineligible",
|
|
786
816
|
/** 奖励未领取 */
|
|
@@ -791,7 +821,7 @@ const v = {
|
|
|
791
821
|
Failed: "failed",
|
|
792
822
|
/** 奖励已发货 */
|
|
793
823
|
Delivered: "delivered"
|
|
794
|
-
},
|
|
824
|
+
}, ua = e.string().enum(g).lock(), ct = {
|
|
795
825
|
/** 奖励未领取 */
|
|
796
826
|
Unclaimed: g.Unclaimed,
|
|
797
827
|
/** 奖励已领取 */
|
|
@@ -800,7 +830,7 @@ const v = {
|
|
|
800
830
|
Failed: g.Failed,
|
|
801
831
|
/** 奖励已发货 */
|
|
802
832
|
Delivered: g.Delivered
|
|
803
|
-
}, ne = e.string().enum(
|
|
833
|
+
}, ne = e.string().enum(ct).lock(), lt = {
|
|
804
834
|
/** 未获得奖励 */
|
|
805
835
|
Ineligible: g.Ineligible,
|
|
806
836
|
/** 奖励未领取 */
|
|
@@ -811,17 +841,17 @@ const v = {
|
|
|
811
841
|
Failed: g.Failed,
|
|
812
842
|
/** 奖励已发货 */
|
|
813
843
|
Delivered: g.Delivered
|
|
814
|
-
}, E = e.string().enum(
|
|
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,
|
|
@@ -1568,7 +1598,7 @@ class pa {
|
|
|
1568
1598
|
engagement: n,
|
|
1569
1599
|
...r
|
|
1570
1600
|
}),
|
|
1571
|
-
|
|
1601
|
+
mr,
|
|
1572
1602
|
a
|
|
1573
1603
|
);
|
|
1574
1604
|
return o ?? {
|
|
@@ -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
|
});
|
|
@@ -1855,7 +1885,7 @@ class pa {
|
|
|
1855
1885
|
const { data: a, code: o, message: d } = await this.req.post(
|
|
1856
1886
|
"event/ugc/upload-image",
|
|
1857
1887
|
{ feature_id: t, ...n, event_id: this.event },
|
|
1858
|
-
|
|
1888
|
+
Vr,
|
|
1859
1889
|
r
|
|
1860
1890
|
);
|
|
1861
1891
|
return a || {
|
|
@@ -1894,7 +1924,7 @@ class pa {
|
|
|
1894
1924
|
*/
|
|
1895
1925
|
async getUgcLeaderboard(t, n) {
|
|
1896
1926
|
if (!await this.token.autoLogin()) return null;
|
|
1897
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard",
|
|
1927
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", Cr, {
|
|
1898
1928
|
...n,
|
|
1899
1929
|
params: {
|
|
1900
1930
|
feature_id: t,
|
|
@@ -1907,12 +1937,12 @@ class pa {
|
|
|
1907
1937
|
};
|
|
1908
1938
|
}
|
|
1909
1939
|
}
|
|
1910
|
-
const
|
|
1940
|
+
const Rr = {
|
|
1911
1941
|
/** 所有人均可以发帖 */
|
|
1912
1942
|
All: "all",
|
|
1913
1943
|
/** 指定用户可发帖 */
|
|
1914
1944
|
Limit: "limit"
|
|
1915
|
-
},
|
|
1945
|
+
}, jr = e.string().enum(Rr).lock(), Tr = {
|
|
1916
1946
|
/** 待审核(仅自己可见) */
|
|
1917
1947
|
Pending: "pending",
|
|
1918
1948
|
/** 审核通过 */
|
|
@@ -1921,14 +1951,14 @@ const Cr = {
|
|
|
1921
1951
|
Failed: "failed",
|
|
1922
1952
|
/** 嫌疑(仅自己可见) */
|
|
1923
1953
|
Suspect: "suspect"
|
|
1924
|
-
}, ie = e.string().enum(
|
|
1954
|
+
}, ie = e.string().enum(Tr).lock(), qr = {
|
|
1925
1955
|
/** 系统通知 */
|
|
1926
1956
|
System: "system",
|
|
1927
1957
|
/** 评论我的 */
|
|
1928
1958
|
Comment: "comment",
|
|
1929
1959
|
/** 点赞通知 */
|
|
1930
1960
|
Like: "like"
|
|
1931
|
-
},
|
|
1961
|
+
}, ba = e.string().enum(qr).lock(), m = {
|
|
1932
1962
|
/** 系统通知 */
|
|
1933
1963
|
System: "system",
|
|
1934
1964
|
/** 帖子被置顶 */
|
|
@@ -1953,13 +1983,13 @@ const Cr = {
|
|
|
1953
1983
|
ReplyLiked: "reply_liked",
|
|
1954
1984
|
/** 回复被删除 */
|
|
1955
1985
|
ReplyDeleted: "reply_deleted"
|
|
1956
|
-
},
|
|
1986
|
+
}, xr = e.string().enum(m).lock(), se = e.object({
|
|
1957
1987
|
forum_id: e.number(),
|
|
1958
1988
|
icon_url: e.string(),
|
|
1959
1989
|
name: e.string(),
|
|
1960
1990
|
tags: e.array(e.string()),
|
|
1961
1991
|
sort: e.number(),
|
|
1962
|
-
mode:
|
|
1992
|
+
mode: jr,
|
|
1963
1993
|
member_ids: e.array(e.number())
|
|
1964
1994
|
}).lock(), F = e.object({
|
|
1965
1995
|
topic_id: e.number(),
|
|
@@ -1990,7 +2020,7 @@ const Cr = {
|
|
|
1990
2020
|
create_time: e.number()
|
|
1991
2021
|
}).lock(), ce = e.object({
|
|
1992
2022
|
err_msg: e.string().optional()
|
|
1993
|
-
}).optional().lock(),
|
|
2023
|
+
}).optional().lock(), Lr = e.object({
|
|
1994
2024
|
reply_id: e.number(),
|
|
1995
2025
|
reply_content: e.string().optional(),
|
|
1996
2026
|
replied_by: e.string(),
|
|
@@ -2009,9 +2039,9 @@ const Cr = {
|
|
|
2009
2039
|
content: e.string(),
|
|
2010
2040
|
like_num: e.number(),
|
|
2011
2041
|
liked: e.bool(),
|
|
2012
|
-
reply_to:
|
|
2042
|
+
reply_to: Lr,
|
|
2013
2043
|
create_time: e.number()
|
|
2014
|
-
}).lock(),
|
|
2044
|
+
}).lock(), k = e.object({
|
|
2015
2045
|
comment_id: e.number(),
|
|
2016
2046
|
post_id: e.number(),
|
|
2017
2047
|
post_subject: e.string().optional(),
|
|
@@ -2031,19 +2061,19 @@ const Cr = {
|
|
|
2031
2061
|
create_time: e.number(),
|
|
2032
2062
|
status: ie,
|
|
2033
2063
|
replies: e.array(C).optional()
|
|
2034
|
-
}).lock(),
|
|
2064
|
+
}).lock(), Sr = e.object({
|
|
2035
2065
|
image_url: e.string(),
|
|
2036
2066
|
upload_url: e.string(),
|
|
2037
2067
|
existed: e.bool()
|
|
2038
|
-
}).lock(),
|
|
2068
|
+
}).lock(), b = e.object({
|
|
2039
2069
|
notification_id: e.string(),
|
|
2040
|
-
notification_type:
|
|
2070
|
+
notification_type: xr,
|
|
2041
2071
|
is_read: e.bool(),
|
|
2042
2072
|
create_time: e.number(),
|
|
2043
2073
|
origin_user_id: e.string(),
|
|
2044
2074
|
origin_user_name: e.string(),
|
|
2045
2075
|
origin_user_avatar_url: e.string()
|
|
2046
|
-
}).lock(),
|
|
2076
|
+
}).lock(), Pr = e.object({
|
|
2047
2077
|
system_message_subject: e.string(),
|
|
2048
2078
|
system_message_content: e.string()
|
|
2049
2079
|
}).lock(), I = e.object({
|
|
@@ -2057,12 +2087,12 @@ const Cr = {
|
|
|
2057
2087
|
}).lock(), A = e.object({
|
|
2058
2088
|
reply_id: e.number(),
|
|
2059
2089
|
reply_content: e.string()
|
|
2060
|
-
}).lock(),
|
|
2061
|
-
...
|
|
2062
|
-
...
|
|
2090
|
+
}).lock(), Er = e.object({
|
|
2091
|
+
...b.shape,
|
|
2092
|
+
...Pr.shape,
|
|
2063
2093
|
notification_type: e.string().enum(m.System)
|
|
2064
|
-
}),
|
|
2065
|
-
...
|
|
2094
|
+
}), Ur = e.object({
|
|
2095
|
+
...b.shape,
|
|
2066
2096
|
...I.shape,
|
|
2067
2097
|
notification_type: e.string().enum(
|
|
2068
2098
|
m.PostPinned,
|
|
@@ -2070,68 +2100,68 @@ const Cr = {
|
|
|
2070
2100
|
m.PostDeleted,
|
|
2071
2101
|
m.PostLiked
|
|
2072
2102
|
)
|
|
2073
|
-
}),
|
|
2074
|
-
...
|
|
2103
|
+
}), $r = e.object({
|
|
2104
|
+
...b.shape,
|
|
2075
2105
|
...I.shape,
|
|
2076
2106
|
...R.shape,
|
|
2077
2107
|
notification_type: e.string().enum(m.PostCommented)
|
|
2078
|
-
}),
|
|
2079
|
-
...
|
|
2108
|
+
}), Fr = e.object({
|
|
2109
|
+
...b.shape,
|
|
2080
2110
|
...R.shape,
|
|
2081
2111
|
...A.shape,
|
|
2082
2112
|
notification_type: e.string().enum(m.CommentReplied)
|
|
2083
|
-
}),
|
|
2084
|
-
...
|
|
2113
|
+
}), Dr = e.object({
|
|
2114
|
+
...b.shape,
|
|
2085
2115
|
...R.shape,
|
|
2086
2116
|
...I.shape,
|
|
2087
2117
|
notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
|
|
2088
|
-
}),
|
|
2089
|
-
...
|
|
2118
|
+
}), Ir = e.object({
|
|
2119
|
+
...b.shape,
|
|
2090
2120
|
...A.shape,
|
|
2091
2121
|
notification_type: e.string().enum(m.ReplyReplied),
|
|
2092
2122
|
comment_id: e.number(),
|
|
2093
2123
|
reply_to_reply_id: e.number(),
|
|
2094
2124
|
reply_to_reply_content: e.string()
|
|
2095
|
-
}),
|
|
2096
|
-
...
|
|
2125
|
+
}), Ar = e.object({
|
|
2126
|
+
...b.shape,
|
|
2097
2127
|
...A.shape,
|
|
2098
2128
|
...R.shape,
|
|
2099
2129
|
notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
|
|
2100
|
-
}),
|
|
2101
|
-
Pr,
|
|
2130
|
+
}), Gr = e.union(
|
|
2102
2131
|
Er,
|
|
2103
2132
|
Ur,
|
|
2104
2133
|
$r,
|
|
2105
2134
|
Fr,
|
|
2106
2135
|
Dr,
|
|
2107
|
-
Ir
|
|
2108
|
-
|
|
2136
|
+
Ir,
|
|
2137
|
+
Ar
|
|
2138
|
+
).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
2139
|
posts: e.array(D),
|
|
2110
2140
|
next_token: e.string().optional()
|
|
2111
|
-
}),
|
|
2141
|
+
}), Mr = s({
|
|
2112
2142
|
post: D.clone().optional(),
|
|
2113
2143
|
antispam: ce.clone().optional()
|
|
2114
|
-
}),
|
|
2144
|
+
}), Kr = s({
|
|
2115
2145
|
replies: e.array(C),
|
|
2116
2146
|
next_token: e.string().optional()
|
|
2117
|
-
}),
|
|
2147
|
+
}), Hr = s({ reply: C }), zr = s({
|
|
2118
2148
|
reply: C.clone().optional(),
|
|
2119
2149
|
antispam: ce.clone().optional()
|
|
2120
|
-
}),
|
|
2121
|
-
comments: e.array(
|
|
2150
|
+
}), Jr = s({ comment: k }), Zr = s({
|
|
2151
|
+
comments: e.array(k),
|
|
2122
2152
|
next_token: e.string().optional()
|
|
2123
|
-
}),
|
|
2124
|
-
comment:
|
|
2125
|
-
antispam:
|
|
2126
|
-
}),
|
|
2127
|
-
notifications: e.array(
|
|
2153
|
+
}), Xr = s({
|
|
2154
|
+
comment: k.clone().optional(),
|
|
2155
|
+
antispam: k.clone().optional()
|
|
2156
|
+
}), Yr = e.guard(Sr), Wr = s({
|
|
2157
|
+
notifications: e.array(Gr),
|
|
2128
2158
|
next_token: e.string().optional()
|
|
2129
|
-
}),
|
|
2159
|
+
}), ea = s({
|
|
2130
2160
|
system: e.number(),
|
|
2131
2161
|
comment: e.number(),
|
|
2132
2162
|
like: e.number()
|
|
2133
2163
|
});
|
|
2134
|
-
class
|
|
2164
|
+
class ya {
|
|
2135
2165
|
token;
|
|
2136
2166
|
req;
|
|
2137
2167
|
constructor(t) {
|
|
@@ -2143,7 +2173,7 @@ class ba {
|
|
|
2143
2173
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
2144
2174
|
*/
|
|
2145
2175
|
async getForums(t) {
|
|
2146
|
-
const { data: n } = await this.req.get("community/forums",
|
|
2176
|
+
const { data: n } = await this.req.get("community/forums", Or, t);
|
|
2147
2177
|
return n?.forums || [];
|
|
2148
2178
|
}
|
|
2149
2179
|
/**
|
|
@@ -2152,7 +2182,7 @@ class ba {
|
|
|
2152
2182
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
2153
2183
|
*/
|
|
2154
2184
|
async getTopics(t) {
|
|
2155
|
-
const { data: n } = await this.req.get("community/topics",
|
|
2185
|
+
const { data: n } = await this.req.get("community/topics", Nr, t);
|
|
2156
2186
|
return n?.topics || [];
|
|
2157
2187
|
}
|
|
2158
2188
|
/**
|
|
@@ -2161,7 +2191,7 @@ class ba {
|
|
|
2161
2191
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
2162
2192
|
*/
|
|
2163
2193
|
async getTopic(t, n) {
|
|
2164
|
-
const { data: r, code: a } = await this.req.get("community/topic",
|
|
2194
|
+
const { data: r, code: a } = await this.req.get("community/topic", Qr, {
|
|
2165
2195
|
...n,
|
|
2166
2196
|
params: { topic_id: t }
|
|
2167
2197
|
});
|
|
@@ -2203,7 +2233,7 @@ class ba {
|
|
|
2203
2233
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
2204
2234
|
*/
|
|
2205
2235
|
async getPost(t, n) {
|
|
2206
|
-
const { data: r, code: a, message: o } = await this.req.get("community/post",
|
|
2236
|
+
const { data: r, code: a, message: o } = await this.req.get("community/post", Br, {
|
|
2207
2237
|
...n,
|
|
2208
2238
|
params: { post_id: t }
|
|
2209
2239
|
});
|
|
@@ -2221,7 +2251,7 @@ class ba {
|
|
|
2221
2251
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2222
2252
|
"community/post",
|
|
2223
2253
|
c(t),
|
|
2224
|
-
|
|
2254
|
+
Mr,
|
|
2225
2255
|
n
|
|
2226
2256
|
);
|
|
2227
2257
|
return r ?? {
|
|
@@ -2235,7 +2265,7 @@ class ba {
|
|
|
2235
2265
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
2236
2266
|
*/
|
|
2237
2267
|
async getComments(t, n) {
|
|
2238
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comments",
|
|
2268
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comments", Zr, {
|
|
2239
2269
|
...n,
|
|
2240
2270
|
params: c(t)
|
|
2241
2271
|
});
|
|
@@ -2250,7 +2280,7 @@ class ba {
|
|
|
2250
2280
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
2251
2281
|
*/
|
|
2252
2282
|
async getComment(t, n) {
|
|
2253
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comment",
|
|
2283
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comment", Jr, {
|
|
2254
2284
|
...n,
|
|
2255
2285
|
params: { comment_id: t }
|
|
2256
2286
|
});
|
|
@@ -2269,7 +2299,7 @@ class ba {
|
|
|
2269
2299
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2270
2300
|
"community/comment",
|
|
2271
2301
|
c(t),
|
|
2272
|
-
|
|
2302
|
+
Xr,
|
|
2273
2303
|
n
|
|
2274
2304
|
);
|
|
2275
2305
|
return r ?? {
|
|
@@ -2283,7 +2313,7 @@ class ba {
|
|
|
2283
2313
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
2284
2314
|
*/
|
|
2285
2315
|
async getReplies(t, n) {
|
|
2286
|
-
const { data: r } = await this.req.get("community/replies",
|
|
2316
|
+
const { data: r } = await this.req.get("community/replies", Kr, {
|
|
2287
2317
|
...n,
|
|
2288
2318
|
params: c({ max_results: 20, ...t })
|
|
2289
2319
|
});
|
|
@@ -2298,7 +2328,7 @@ class ba {
|
|
|
2298
2328
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
2299
2329
|
*/
|
|
2300
2330
|
async getReply(t, n) {
|
|
2301
|
-
const { data: r, code: a, message: o } = await this.req.get("community/reply",
|
|
2331
|
+
const { data: r, code: a, message: o } = await this.req.get("community/reply", Hr, {
|
|
2302
2332
|
...n,
|
|
2303
2333
|
params: { reply_id: t }
|
|
2304
2334
|
});
|
|
@@ -2317,7 +2347,7 @@ class ba {
|
|
|
2317
2347
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2318
2348
|
"community/reply",
|
|
2319
2349
|
c(t),
|
|
2320
|
-
|
|
2350
|
+
zr,
|
|
2321
2351
|
n
|
|
2322
2352
|
);
|
|
2323
2353
|
return r ?? {
|
|
@@ -2368,7 +2398,7 @@ class ba {
|
|
|
2368
2398
|
*/
|
|
2369
2399
|
async getMediaPresignedUrl(t, n) {
|
|
2370
2400
|
await this.token.autoLogin();
|
|
2371
|
-
const { data: r } = await this.req.get("community/media-presign-url",
|
|
2401
|
+
const { data: r } = await this.req.get("community/media-presign-url", Yr, {
|
|
2372
2402
|
...n,
|
|
2373
2403
|
params: t
|
|
2374
2404
|
});
|
|
@@ -2383,7 +2413,7 @@ class ba {
|
|
|
2383
2413
|
*/
|
|
2384
2414
|
async getNotifications(t, n) {
|
|
2385
2415
|
await this.token.autoLogin();
|
|
2386
|
-
const { data: r } = await this.req.get("community/notifications",
|
|
2416
|
+
const { data: r } = await this.req.get("community/notifications", Wr, {
|
|
2387
2417
|
...n,
|
|
2388
2418
|
params: c({ max_results: 20, ...t })
|
|
2389
2419
|
});
|
|
@@ -2401,7 +2431,7 @@ class ba {
|
|
|
2401
2431
|
if (!await this.token.autoLogin()) return null;
|
|
2402
2432
|
const { data: n } = await this.req.get(
|
|
2403
2433
|
"community/unread-notifications-count",
|
|
2404
|
-
|
|
2434
|
+
ea,
|
|
2405
2435
|
t
|
|
2406
2436
|
);
|
|
2407
2437
|
return n;
|
|
@@ -2417,17 +2447,17 @@ class ba {
|
|
|
2417
2447
|
return r;
|
|
2418
2448
|
}
|
|
2419
2449
|
}
|
|
2420
|
-
const
|
|
2450
|
+
const ta = s({
|
|
2421
2451
|
nonce_str: e.string(),
|
|
2422
2452
|
timestamp: e.number(),
|
|
2423
2453
|
signature: e.string()
|
|
2424
2454
|
});
|
|
2425
|
-
var
|
|
2455
|
+
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
2456
|
function L(i) {
|
|
2427
|
-
return
|
|
2457
|
+
return h(i, "open_id", "union_id", "weixin_token");
|
|
2428
2458
|
}
|
|
2429
2459
|
const H = "wx_login_cache";
|
|
2430
|
-
class
|
|
2460
|
+
class ha {
|
|
2431
2461
|
token;
|
|
2432
2462
|
$appid;
|
|
2433
2463
|
req;
|
|
@@ -2482,12 +2512,12 @@ class ya {
|
|
|
2482
2512
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=GwIZ0givCb
|
|
2483
2513
|
*/
|
|
2484
2514
|
async login(t) {
|
|
2485
|
-
if (!
|
|
2515
|
+
if (!_())
|
|
2486
2516
|
throw new Error("当前环境非微信小程序");
|
|
2487
2517
|
const n = await this.getLoginCache();
|
|
2488
2518
|
if (n)
|
|
2489
2519
|
return n;
|
|
2490
|
-
const r = await
|
|
2520
|
+
const r = await ke(), { data: a, code: o, message: d } = await this.req.post(
|
|
2491
2521
|
"weixin/login",
|
|
2492
2522
|
{ code: r, appid: this.appid },
|
|
2493
2523
|
L,
|
|
@@ -2567,7 +2597,7 @@ class ya {
|
|
|
2567
2597
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2568
2598
|
*/
|
|
2569
2599
|
async getJSSDKConfig(t) {
|
|
2570
|
-
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2600
|
+
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ta, {
|
|
2571
2601
|
...t,
|
|
2572
2602
|
params: {
|
|
2573
2603
|
appid: this.appid,
|
|
@@ -2584,166 +2614,166 @@ class ya {
|
|
|
2584
2614
|
}
|
|
2585
2615
|
export {
|
|
2586
2616
|
ce as AntispamValidator,
|
|
2587
|
-
|
|
2588
|
-
|
|
2617
|
+
ia as AuthToken,
|
|
2618
|
+
Hn as CandidateVoteValidator,
|
|
2589
2619
|
ae as CashbackEngagementDataValidator,
|
|
2590
|
-
|
|
2591
|
-
|
|
2620
|
+
Rn as ClaimActivationKeyEngagementDataValidator,
|
|
2621
|
+
lt as ClaimRewardStatus,
|
|
2592
2622
|
E as ClaimRewardStatusValidator,
|
|
2593
|
-
|
|
2623
|
+
rr as ClaimedItemValidator,
|
|
2594
2624
|
Z as ClubAddressValidator,
|
|
2595
|
-
|
|
2625
|
+
ca as ClubApi,
|
|
2596
2626
|
X as ClubBenefitSummaryValidator,
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2627
|
+
Oe as ClubBenefitValidator,
|
|
2628
|
+
qe as ClubCreditChangeScene,
|
|
2629
|
+
xe as ClubCreditChangeSceneValidator,
|
|
2630
|
+
je as ClubCreditChangeType,
|
|
2631
|
+
Te as ClubCreditChangeTypeValidator,
|
|
2632
|
+
Ge as ClubCreditLogValidator,
|
|
2633
|
+
Ee as ClubGlobalConfigValidator,
|
|
2634
|
+
Le as ClubItemType,
|
|
2605
2635
|
z as ClubItemTypeValidator,
|
|
2606
|
-
|
|
2636
|
+
Ue as ClubPlayerValidator,
|
|
2607
2637
|
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
|
-
|
|
2638
|
+
Se as ClubRedemptionStatus,
|
|
2639
|
+
Pe as ClubRedemptionStatusValidator,
|
|
2640
|
+
Ae as ClubUserCreditValidator,
|
|
2641
|
+
Ie as ClubUserProfileValidator,
|
|
2642
|
+
Zn as CommentEngagementValidator,
|
|
2643
|
+
k as CommentValidator,
|
|
2644
|
+
ya as CommunityApi,
|
|
2645
|
+
zn as ConversationValidator,
|
|
2646
|
+
et as EngageAccountType,
|
|
2647
|
+
tt as EngageAccountTypeValidator,
|
|
2648
|
+
nr as EngageResponseValidator,
|
|
2649
|
+
Yn as EngageRewardValidator,
|
|
2650
|
+
_a as EventApi,
|
|
2651
|
+
Cn as EventConfigValidator,
|
|
2652
|
+
jt as EventFeatureConfigOfCashbackValidator,
|
|
2653
|
+
qt as EventFeatureConfigOfCheckInValidator,
|
|
2654
|
+
Lt as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2655
|
+
Pt as EventFeatureConfigOfClaimRewardsValidator,
|
|
2656
|
+
Ut as EventFeatureConfigOfCommentValidator,
|
|
2657
|
+
Ft as EventFeatureConfigOfFollowValidator,
|
|
2658
|
+
At as EventFeatureConfigOfGiftCodeValidator,
|
|
2659
|
+
Ot as EventFeatureConfigOfInviteValidator,
|
|
2660
|
+
Qt as EventFeatureConfigOfInvitedRegisterValidator,
|
|
2661
|
+
Jt as EventFeatureConfigOfLotteryDrawValidator,
|
|
2662
|
+
Ht as EventFeatureConfigOfLotteryValidator,
|
|
2663
|
+
Xt as EventFeatureConfigOfPreregisterValidator,
|
|
2664
|
+
Wt as EventFeatureConfigOfQuestValidator,
|
|
2665
|
+
tn as EventFeatureConfigOfRegisterValidator,
|
|
2666
|
+
rn as EventFeatureConfigOfShareValidator,
|
|
2667
|
+
on as EventFeatureConfigOfSubscribeValidator,
|
|
2668
|
+
cn as EventFeatureConfigOfSurveyValidator,
|
|
2669
|
+
un as EventFeatureConfigOfTeamValidator,
|
|
2670
|
+
pn as EventFeatureConfigOfUgcLikeValidator,
|
|
2671
|
+
dn as EventFeatureConfigOfUgcValidator,
|
|
2672
|
+
wn as EventFeatureConfigOfVote2Validator,
|
|
2673
|
+
yn as EventFeatureConfigOfVoteValidator,
|
|
2674
|
+
Vn as EventFeatureConfigValidator,
|
|
2675
|
+
nt as EventPeriodType,
|
|
2676
|
+
rt as EventPeriodTypeValidator,
|
|
2647
2677
|
y as EventRewardItemConfigValidator,
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2678
|
+
Qe as ExtraGameRewardValidator,
|
|
2679
|
+
Ne as ExtraPhysicalShipmentValidator,
|
|
2680
|
+
Ct as FeatureRewardValidator,
|
|
2651
2681
|
l as FeatureType,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2682
|
+
at as FeatureTypeValidator,
|
|
2683
|
+
Rr as ForumMode,
|
|
2684
|
+
jr as ForumModeValidator,
|
|
2655
2685
|
se as ForumValidator,
|
|
2656
2686
|
v as GamerItemType,
|
|
2657
2687
|
W as GamerItemTypeValidator,
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2688
|
+
Ce as Gender,
|
|
2689
|
+
Re as GenderValidator,
|
|
2690
|
+
jn as GiftCodeEngagementDataValidator,
|
|
2691
|
+
Tn as InviteEngagementDataValidator,
|
|
2692
|
+
pt as LotteryDrawAction,
|
|
2693
|
+
ga as LotteryDrawActionValidator,
|
|
2694
|
+
Sn as LotteryDrawEngagementDataValidator,
|
|
2695
|
+
qn as LotteryEngagementDataValidator,
|
|
2696
|
+
w as LotteryTicketStatus,
|
|
2697
|
+
ma as LotteryTicketStatusValidator,
|
|
2698
|
+
b as NotificationBaseValidator,
|
|
2699
|
+
qr as NotificationCategory,
|
|
2700
|
+
ba as NotificationCategoryValidator,
|
|
2701
|
+
Fr as NotificationCommentReplyValidator,
|
|
2702
|
+
Dr as NotificationCommentValidator,
|
|
2673
2703
|
R as NotificationPayloadCommentValidator,
|
|
2674
2704
|
I as NotificationPayloadPostValidator,
|
|
2675
2705
|
A as NotificationPayloadReplyValidator,
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2706
|
+
Pr as NotificationPayloadSystemValidator,
|
|
2707
|
+
$r as NotificationPostCommentValidator,
|
|
2708
|
+
Ur as NotificationPostValidator,
|
|
2709
|
+
Ir as NotificationReplyRepliedValidator,
|
|
2710
|
+
Ar as NotificationReplyValidator,
|
|
2711
|
+
Er as NotificationSystemValidator,
|
|
2682
2712
|
m as NotificationType,
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2713
|
+
xr as NotificationTypeValidator,
|
|
2714
|
+
Gr as NotificationValidator,
|
|
2715
|
+
De as PlayerRoleCardValidator,
|
|
2686
2716
|
J as PlayerRoleValidator,
|
|
2687
|
-
|
|
2717
|
+
Tr as PostStatus,
|
|
2688
2718
|
ie as PostStatusValidator,
|
|
2689
2719
|
D as PostValidator,
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2720
|
+
Pn as PreregisterEngagementDataValidator,
|
|
2721
|
+
Sr as PresignedUrlResponseValidator,
|
|
2722
|
+
En as QuestEngagementDataValidator,
|
|
2723
|
+
ot as QuestObjective,
|
|
2694
2724
|
te as QuestObjectiveValidator,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2725
|
+
_t as QuestProgressAlgorithm,
|
|
2726
|
+
bt as QuestProgressAlgorithmValidator,
|
|
2727
|
+
Un as QuestProgressValidator,
|
|
2728
|
+
sa as RedeemParamsValidator,
|
|
2729
|
+
Be as RedemptionValidator,
|
|
2730
|
+
Vt as RegularRewardValidator,
|
|
2731
|
+
Lr as ReplyToValidator,
|
|
2702
2732
|
C as ReplyValidator,
|
|
2703
|
-
|
|
2733
|
+
la as RewardItemType,
|
|
2704
2734
|
ee as RewardItemTypeValidator,
|
|
2705
|
-
|
|
2735
|
+
ut as RewardSource,
|
|
2706
2736
|
U as RewardSourceValidator,
|
|
2707
2737
|
g as RewardStatus,
|
|
2708
|
-
|
|
2738
|
+
ct as RewardStatusSuffix,
|
|
2709
2739
|
ne as RewardStatusSuffixValidator,
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2740
|
+
ua as RewardStatusValidator,
|
|
2741
|
+
Xn as RewardValidator,
|
|
2742
|
+
Fe as RoleBaseInfoValidator,
|
|
2743
|
+
$e as ServerBaseInfoValidator,
|
|
2744
|
+
$n as ShareEngagementDataValidator,
|
|
2745
|
+
Dn as SurveyEngagementDataValidator,
|
|
2746
|
+
gt as TeamAction,
|
|
2747
|
+
da as TeamActionValidator,
|
|
2748
|
+
An as TeamEngagementDataValidator,
|
|
2749
|
+
In as TeamEngagementValidator,
|
|
2750
|
+
pa as TeamMemberValidator,
|
|
2751
|
+
mt as TeamVisibility,
|
|
2752
|
+
dt as TeamVisibilityValidator,
|
|
2723
2753
|
F as TopicValidator,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2754
|
+
Gn as UgcEngagementDataValidator,
|
|
2755
|
+
Qn as UgcLeaderboardResponseValidator,
|
|
2756
|
+
On as UgcRecordResponseValidator,
|
|
2757
|
+
wt as UgcReviewStatus,
|
|
2758
|
+
kt as UgcReviewStatusValidator,
|
|
2729
2759
|
ft as UgcSocialMedia,
|
|
2730
2760
|
re as UgcSocialMediaValidator,
|
|
2731
|
-
|
|
2761
|
+
Nn as UgcUploadImageValidator,
|
|
2732
2762
|
$ as UserEngagementDataValidator,
|
|
2733
|
-
|
|
2734
|
-
|
|
2763
|
+
Wn as UserEngagementValidator,
|
|
2764
|
+
tr as UserFeatureStatusValidator,
|
|
2735
2765
|
V as UserRewardValidator,
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2766
|
+
er as VerifyMobileResultValidator,
|
|
2767
|
+
Kn as Vote2ClaimRewardsResponseValidator,
|
|
2768
|
+
Mn as Vote2EngagementDataValidator,
|
|
2769
|
+
yt as Vote2RewardType,
|
|
2770
|
+
ht as Vote2RewardTypeValidator,
|
|
2771
|
+
Bn as VoteEngagementDataValidator,
|
|
2772
|
+
it as VoteOptionSource,
|
|
2773
|
+
st as VoteOptionSourceValidator,
|
|
2774
|
+
ha as WeixinApi,
|
|
2775
|
+
Fn as WeixinSubscribeEngagementDataValidator,
|
|
2776
|
+
na as WeixinWebLoginErrorCode,
|
|
2777
|
+
Jn as ZeroChatGPTDataValidator,
|
|
2778
|
+
ta as isWeixinSignResponse
|
|
2749
2779
|
};
|