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