@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
3
|
"description": "agent for gamer api",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/request": "3.4.1",
|
|
34
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
35
34
|
"@seayoo-web/scripts": "3.1.6",
|
|
35
|
+
"@seayoo-web/request": "3.4.2",
|
|
36
36
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
37
|
"@seayoo-web/utils": "4.1.3",
|
|
38
|
-
"@seayoo-web/validator": "
|
|
38
|
+
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
|
-
"@seayoo-web/
|
|
43
|
-
"@seayoo-web/
|
|
42
|
+
"@seayoo-web/utils": "^4.1.3",
|
|
43
|
+
"@seayoo-web/validator": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -31,6 +31,7 @@ export type ClubGlobalConfig = {
|
|
|
31
31
|
send_role_mail_rate_limit: number;
|
|
32
32
|
};
|
|
33
33
|
export declare const ClubGlobalConfigValidator: import("@seayoo-web/validator").ObjectValidator<ClubGlobalConfig, false, false> & {
|
|
34
|
+
desc: never;
|
|
34
35
|
plain: never;
|
|
35
36
|
optional: never;
|
|
36
37
|
maybeNull: never;
|
|
@@ -55,6 +56,7 @@ export type ClubPlayer = {
|
|
|
55
56
|
level_expire_time: number;
|
|
56
57
|
};
|
|
57
58
|
export declare const ClubPlayerValidator: import("@seayoo-web/validator").ObjectValidator<ClubPlayer, false, false> & {
|
|
59
|
+
desc: never;
|
|
58
60
|
plain: never;
|
|
59
61
|
optional: never;
|
|
60
62
|
maybeNull: never;
|
|
@@ -67,6 +69,7 @@ export type ServerBaseInfo = {
|
|
|
67
69
|
server_name: string;
|
|
68
70
|
};
|
|
69
71
|
export declare const ServerBaseInfoValidator: import("@seayoo-web/validator").ObjectValidator<ServerBaseInfo, false, false> & {
|
|
72
|
+
desc: never;
|
|
70
73
|
plain: never;
|
|
71
74
|
optional: never;
|
|
72
75
|
maybeNull: never;
|
|
@@ -79,6 +82,7 @@ export type RoleBaseInfo = {
|
|
|
79
82
|
role_name: string;
|
|
80
83
|
};
|
|
81
84
|
export declare const RoleBaseInfoValidator: import("@seayoo-web/validator").ObjectValidator<RoleBaseInfo, false, false> & {
|
|
85
|
+
desc: never;
|
|
82
86
|
plain: never;
|
|
83
87
|
optional: never;
|
|
84
88
|
maybeNull: never;
|
|
@@ -91,6 +95,7 @@ export type PlayerRole = RoleBaseInfo & ServerBaseInfo & {
|
|
|
91
95
|
last_login_time: number;
|
|
92
96
|
};
|
|
93
97
|
export declare const PlayerRoleValidator: import("@seayoo-web/validator").ObjectValidator<PlayerRole, false, false> & {
|
|
98
|
+
desc: never;
|
|
94
99
|
plain: never;
|
|
95
100
|
optional: never;
|
|
96
101
|
maybeNull: never;
|
|
@@ -107,11 +112,28 @@ export type PlayerRoleCard = PlayerRole & {
|
|
|
107
112
|
kin_position?: string;
|
|
108
113
|
};
|
|
109
114
|
export declare const PlayerRoleCardValidator: import("@seayoo-web/validator").ObjectValidator<PlayerRoleCard, false, false> & {
|
|
115
|
+
desc: never;
|
|
110
116
|
plain: never;
|
|
111
117
|
optional: never;
|
|
112
118
|
maybeNull: never;
|
|
113
119
|
lock: never;
|
|
114
120
|
};
|
|
121
|
+
export type SocialMedia = {
|
|
122
|
+
/** 抖音 */
|
|
123
|
+
douyin?: string;
|
|
124
|
+
/** 小红书 */
|
|
125
|
+
xiaohongshu?: string;
|
|
126
|
+
/** taptap */
|
|
127
|
+
taptap?: string;
|
|
128
|
+
/** bilibili */
|
|
129
|
+
bilibili?: string;
|
|
130
|
+
/** 微博 */
|
|
131
|
+
weibo?: string;
|
|
132
|
+
/** 虎牙 */
|
|
133
|
+
huya?: string;
|
|
134
|
+
/** 斗鱼 */
|
|
135
|
+
douyu?: string;
|
|
136
|
+
};
|
|
115
137
|
export type ClubUserProfile = {
|
|
116
138
|
/** 用户昵称 */
|
|
117
139
|
name: string;
|
|
@@ -127,8 +149,11 @@ export type ClubUserProfile = {
|
|
|
127
149
|
month: number;
|
|
128
150
|
day: number;
|
|
129
151
|
};
|
|
152
|
+
/** 社交媒体信息 */
|
|
153
|
+
social_medias?: SocialMedia;
|
|
130
154
|
};
|
|
131
155
|
export declare const ClubUserProfileValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserProfile, false, false> & {
|
|
156
|
+
desc: never;
|
|
132
157
|
plain: never;
|
|
133
158
|
optional: never;
|
|
134
159
|
maybeNull: never;
|
|
@@ -153,6 +178,7 @@ export type ClubAddress = {
|
|
|
153
178
|
is_default: boolean;
|
|
154
179
|
};
|
|
155
180
|
export declare const ClubAddressValidator: import("@seayoo-web/validator").ObjectValidator<ClubAddress, false, false> & {
|
|
181
|
+
desc: never;
|
|
156
182
|
plain: never;
|
|
157
183
|
optional: never;
|
|
158
184
|
maybeNull: never;
|
|
@@ -169,6 +195,7 @@ export type ClubUserCredit = {
|
|
|
169
195
|
balance_credit: number;
|
|
170
196
|
};
|
|
171
197
|
export declare const ClubUserCreditValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserCredit, false, false> & {
|
|
198
|
+
desc: never;
|
|
172
199
|
plain: never;
|
|
173
200
|
optional: never;
|
|
174
201
|
maybeNull: never;
|
|
@@ -189,6 +216,7 @@ export type ClubCreditLog = {
|
|
|
189
216
|
change_time: number;
|
|
190
217
|
};
|
|
191
218
|
export declare const ClubCreditLogValidator: import("@seayoo-web/validator").ObjectValidator<ClubCreditLog, false, false> & {
|
|
219
|
+
desc: never;
|
|
192
220
|
plain: never;
|
|
193
221
|
optional: never;
|
|
194
222
|
maybeNull: never;
|
|
@@ -213,6 +241,7 @@ export type ClubBenefitSummary = {
|
|
|
213
241
|
tag: string;
|
|
214
242
|
};
|
|
215
243
|
export declare const ClubBenefitSummaryValidator: import("@seayoo-web/validator").ObjectValidator<ClubBenefitSummary, false, false> & {
|
|
244
|
+
desc: never;
|
|
216
245
|
plain: never;
|
|
217
246
|
optional: never;
|
|
218
247
|
maybeNull: never;
|
|
@@ -271,6 +300,7 @@ export type ClubProduct = {
|
|
|
271
300
|
redeemable_quantity?: number;
|
|
272
301
|
};
|
|
273
302
|
export declare const ClubProductValidator: import("@seayoo-web/validator").ObjectValidator<ClubProduct, false, false> & {
|
|
303
|
+
desc: never;
|
|
274
304
|
plain: never;
|
|
275
305
|
optional: never;
|
|
276
306
|
maybeNull: never;
|
|
@@ -281,6 +311,7 @@ export type ClubBenefit = Omit<ClubBenefitSummary, "tag"> & {
|
|
|
281
311
|
product?: ClubProduct;
|
|
282
312
|
};
|
|
283
313
|
export declare const ClubBenefitValidator: import("@seayoo-web/validator").ObjectValidator<ClubBenefit, false, false> & {
|
|
314
|
+
desc: never;
|
|
284
315
|
plain: never;
|
|
285
316
|
optional: never;
|
|
286
317
|
maybeNull: never;
|
|
@@ -299,6 +330,7 @@ export declare const RedeemParamsValidator: import("@seayoo-web/validator").Unio
|
|
|
299
330
|
}, false, false>, import("@seayoo-web/validator").ObjectValidator<{
|
|
300
331
|
address_id: number;
|
|
301
332
|
}, false, false>], false, false> & {
|
|
333
|
+
desc: never;
|
|
302
334
|
optional: never;
|
|
303
335
|
maybeNull: never;
|
|
304
336
|
key: never;
|
|
@@ -324,6 +356,7 @@ export type ExtraPhysicalShipment = {
|
|
|
324
356
|
express_number: string;
|
|
325
357
|
};
|
|
326
358
|
export declare const ExtraPhysicalShipmentValidator: import("@seayoo-web/validator").ObjectValidator<ExtraPhysicalShipment, false, false> & {
|
|
359
|
+
desc: never;
|
|
327
360
|
plain: never;
|
|
328
361
|
optional: never;
|
|
329
362
|
maybeNull: never;
|
|
@@ -335,6 +368,7 @@ export type ExtraGameReward = {
|
|
|
335
368
|
role_name: string;
|
|
336
369
|
};
|
|
337
370
|
export declare const ExtraGameRewardValidator: import("@seayoo-web/validator").ObjectValidator<ExtraGameReward, false, false> & {
|
|
371
|
+
desc: never;
|
|
338
372
|
plain: never;
|
|
339
373
|
optional: never;
|
|
340
374
|
maybeNull: never;
|
|
@@ -9,6 +9,7 @@ export declare const Gender: {
|
|
|
9
9
|
};
|
|
10
10
|
export type Gender = ValueOf<typeof Gender>;
|
|
11
11
|
export declare const GenderValidator: import("@seayoo-web/validator").StringValidator<Gender, false, false> & {
|
|
12
|
+
desc: never;
|
|
12
13
|
pattern: never;
|
|
13
14
|
url: never;
|
|
14
15
|
dataUri: never;
|
|
@@ -29,6 +30,7 @@ export declare const ClubCreditChangeType: {
|
|
|
29
30
|
};
|
|
30
31
|
export type ClubCreditChangeType = ValueOf<typeof ClubCreditChangeType>;
|
|
31
32
|
export declare const ClubCreditChangeTypeValidator: import("@seayoo-web/validator").StringValidator<ClubCreditChangeType, false, false> & {
|
|
33
|
+
desc: never;
|
|
32
34
|
pattern: never;
|
|
33
35
|
url: never;
|
|
34
36
|
dataUri: never;
|
|
@@ -55,6 +57,7 @@ export declare const ClubCreditChangeScene: {
|
|
|
55
57
|
};
|
|
56
58
|
export type ClubCreditChangeScene = ValueOf<typeof ClubCreditChangeScene>;
|
|
57
59
|
export declare const ClubCreditChangeSceneValidator: import("@seayoo-web/validator").StringValidator<ClubCreditChangeScene, false, false> & {
|
|
60
|
+
desc: never;
|
|
58
61
|
pattern: never;
|
|
59
62
|
url: never;
|
|
60
63
|
dataUri: never;
|
|
@@ -74,6 +77,7 @@ export declare const ClubItemType: {
|
|
|
74
77
|
};
|
|
75
78
|
export type ClubItemType = ValueOf<typeof ClubItemType>;
|
|
76
79
|
export declare const ClubItemTypeValidator: import("@seayoo-web/validator").StringValidator<ClubItemType, false, false> & {
|
|
80
|
+
desc: never;
|
|
77
81
|
pattern: never;
|
|
78
82
|
url: never;
|
|
79
83
|
dataUri: never;
|
|
@@ -93,6 +97,7 @@ export declare const ClubRedemptionStatus: {
|
|
|
93
97
|
};
|
|
94
98
|
export type ClubRedemptionStatus = ValueOf<typeof ClubRedemptionStatus>;
|
|
95
99
|
export declare const ClubRedemptionStatusValidator: import("@seayoo-web/validator").StringValidator<ClubRedemptionStatus, false, false> & {
|
|
100
|
+
desc: never;
|
|
96
101
|
pattern: never;
|
|
97
102
|
url: never;
|
|
98
103
|
dataUri: never;
|
|
@@ -17,6 +17,7 @@ export interface Forum {
|
|
|
17
17
|
member_ids: number[];
|
|
18
18
|
}
|
|
19
19
|
export declare const ForumValidator: import("@seayoo-web/validator").ObjectValidator<Forum, false, false> & {
|
|
20
|
+
desc: never;
|
|
20
21
|
plain: never;
|
|
21
22
|
optional: never;
|
|
22
23
|
maybeNull: never;
|
|
@@ -37,6 +38,7 @@ export interface Topic {
|
|
|
37
38
|
post_num: number;
|
|
38
39
|
}
|
|
39
40
|
export declare const TopicValidator: import("@seayoo-web/validator").ObjectValidator<Topic, false, false> & {
|
|
41
|
+
desc: never;
|
|
40
42
|
plain: never;
|
|
41
43
|
optional: never;
|
|
42
44
|
maybeNull: never;
|
|
@@ -83,6 +85,7 @@ export interface Post {
|
|
|
83
85
|
create_time: number;
|
|
84
86
|
}
|
|
85
87
|
export declare const PostValidator: import("@seayoo-web/validator").ObjectValidator<Post, false, false> & {
|
|
88
|
+
desc: never;
|
|
86
89
|
plain: never;
|
|
87
90
|
optional: never;
|
|
88
91
|
maybeNull: never;
|
|
@@ -93,6 +96,7 @@ export interface Antispam {
|
|
|
93
96
|
err_msg?: string;
|
|
94
97
|
}
|
|
95
98
|
export declare const AntispamValidator: import("@seayoo-web/validator").ObjectValidator<Antispam, true, false> & {
|
|
99
|
+
desc: never;
|
|
96
100
|
plain: never;
|
|
97
101
|
optional: never;
|
|
98
102
|
maybeNull: never;
|
|
@@ -111,6 +115,7 @@ export interface ReplyTo {
|
|
|
111
115
|
avatar_url: string;
|
|
112
116
|
}
|
|
113
117
|
export declare const ReplyToValidator: import("@seayoo-web/validator").ObjectValidator<ReplyTo, false, false> & {
|
|
118
|
+
desc: never;
|
|
114
119
|
plain: never;
|
|
115
120
|
optional: never;
|
|
116
121
|
maybeNull: never;
|
|
@@ -147,6 +152,7 @@ export interface Reply {
|
|
|
147
152
|
create_time: number;
|
|
148
153
|
}
|
|
149
154
|
export declare const ReplyValidator: import("@seayoo-web/validator").ObjectValidator<Reply, false, false> & {
|
|
155
|
+
desc: never;
|
|
150
156
|
plain: never;
|
|
151
157
|
optional: never;
|
|
152
158
|
maybeNull: never;
|
|
@@ -193,6 +199,7 @@ export interface Comment {
|
|
|
193
199
|
replies?: Reply[];
|
|
194
200
|
}
|
|
195
201
|
export declare const CommentValidator: import("@seayoo-web/validator").ObjectValidator<Comment, false, false> & {
|
|
202
|
+
desc: never;
|
|
196
203
|
plain: never;
|
|
197
204
|
optional: never;
|
|
198
205
|
maybeNull: never;
|
|
@@ -207,6 +214,7 @@ export interface PresignedUrlResponse {
|
|
|
207
214
|
existed: boolean;
|
|
208
215
|
}
|
|
209
216
|
export declare const PresignedUrlResponseValidator: import("@seayoo-web/validator").ObjectValidator<PresignedUrlResponse, false, false> & {
|
|
217
|
+
desc: never;
|
|
210
218
|
plain: never;
|
|
211
219
|
optional: never;
|
|
212
220
|
maybeNull: never;
|
|
@@ -229,6 +237,7 @@ export interface NotificationBase {
|
|
|
229
237
|
origin_user_avatar_url: string;
|
|
230
238
|
}
|
|
231
239
|
export declare const NotificationBaseValidator: import("@seayoo-web/validator").ObjectValidator<NotificationBase, false, false> & {
|
|
240
|
+
desc: never;
|
|
232
241
|
plain: never;
|
|
233
242
|
optional: never;
|
|
234
243
|
maybeNull: never;
|
|
@@ -241,6 +250,7 @@ export interface NotificationPayloadSystem {
|
|
|
241
250
|
system_message_content: string;
|
|
242
251
|
}
|
|
243
252
|
export declare const NotificationPayloadSystemValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadSystem, false, false> & {
|
|
253
|
+
desc: never;
|
|
244
254
|
plain: never;
|
|
245
255
|
optional: never;
|
|
246
256
|
maybeNull: never;
|
|
@@ -257,6 +267,7 @@ export interface NotificationPayloadPost {
|
|
|
257
267
|
post_image_url: string;
|
|
258
268
|
}
|
|
259
269
|
export declare const NotificationPayloadPostValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadPost, false, false> & {
|
|
270
|
+
desc: never;
|
|
260
271
|
plain: never;
|
|
261
272
|
optional: never;
|
|
262
273
|
maybeNull: never;
|
|
@@ -269,6 +280,7 @@ export interface NotificationPayloadComment {
|
|
|
269
280
|
comment_content: string;
|
|
270
281
|
}
|
|
271
282
|
export declare const NotificationPayloadCommentValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadComment, false, false> & {
|
|
283
|
+
desc: never;
|
|
272
284
|
plain: never;
|
|
273
285
|
optional: never;
|
|
274
286
|
maybeNull: never;
|
|
@@ -281,6 +293,7 @@ export interface NotificationPayloadReply {
|
|
|
281
293
|
reply_content: string;
|
|
282
294
|
}
|
|
283
295
|
export declare const NotificationPayloadReplyValidator: import("@seayoo-web/validator").ObjectValidator<NotificationPayloadReply, false, false> & {
|
|
296
|
+
desc: never;
|
|
284
297
|
plain: never;
|
|
285
298
|
optional: never;
|
|
286
299
|
maybeNull: never;
|
|
@@ -323,6 +336,7 @@ export declare const NotificationReplyValidator: import("@seayoo-web/validator")
|
|
|
323
336
|
/** 社区通知 */
|
|
324
337
|
export type NotificationAll = NotificationSystem | NotificationPost | NotificationPostComment | NotificationCommentReply | NotificationComment | NotificationReplyReplied | NotificationReply;
|
|
325
338
|
export declare const NotificationValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<NotificationSystem, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationPost, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationPostComment, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationCommentReply, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationComment, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationReplyReplied, false, false>, import("@seayoo-web/validator").ObjectValidator<NotificationReply, false, false>], false, false> & {
|
|
339
|
+
desc: never;
|
|
326
340
|
optional: never;
|
|
327
341
|
maybeNull: never;
|
|
328
342
|
key: never;
|
|
@@ -8,6 +8,7 @@ export declare const ForumMode: {
|
|
|
8
8
|
};
|
|
9
9
|
export type ForumMode = ValueOf<typeof ForumMode>;
|
|
10
10
|
export declare const ForumModeValidator: import("@seayoo-web/validator").StringValidator<ForumMode, false, false> & {
|
|
11
|
+
desc: never;
|
|
11
12
|
pattern: never;
|
|
12
13
|
url: never;
|
|
13
14
|
dataUri: never;
|
|
@@ -30,6 +31,7 @@ export declare const PostStatus: {
|
|
|
30
31
|
};
|
|
31
32
|
export type PostStatus = ValueOf<typeof PostStatus>;
|
|
32
33
|
export declare const PostStatusValidator: import("@seayoo-web/validator").StringValidator<PostStatus, false, false> & {
|
|
34
|
+
desc: never;
|
|
33
35
|
pattern: never;
|
|
34
36
|
url: never;
|
|
35
37
|
dataUri: never;
|
|
@@ -50,6 +52,7 @@ export declare const NotificationCategory: {
|
|
|
50
52
|
};
|
|
51
53
|
export type NotificationCategory = ValueOf<typeof NotificationCategory>;
|
|
52
54
|
export declare const NotificationCategoryValidator: import("@seayoo-web/validator").StringValidator<NotificationCategory, false, false> & {
|
|
55
|
+
desc: never;
|
|
53
56
|
pattern: never;
|
|
54
57
|
url: never;
|
|
55
58
|
dataUri: never;
|
|
@@ -88,6 +91,7 @@ export declare const NotificationType: {
|
|
|
88
91
|
};
|
|
89
92
|
export type NotificationType = ValueOf<typeof NotificationType>;
|
|
90
93
|
export declare const NotificationTypeValidator: import("@seayoo-web/validator").StringValidator<NotificationType, false, false> & {
|
|
94
|
+
desc: never;
|
|
91
95
|
pattern: never;
|
|
92
96
|
url: never;
|
|
93
97
|
dataUri: never;
|
|
@@ -16,6 +16,7 @@ export interface EventConfig {
|
|
|
16
16
|
features: EventFeatureConfig[];
|
|
17
17
|
}
|
|
18
18
|
export declare const EventConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventConfig, false, false> & {
|
|
19
|
+
desc: never;
|
|
19
20
|
plain: never;
|
|
20
21
|
optional: never;
|
|
21
22
|
maybeNull: never;
|
|
@@ -17,6 +17,7 @@ export interface EventRewardItemConfig {
|
|
|
17
17
|
reward_item_rating: number;
|
|
18
18
|
}
|
|
19
19
|
export declare const EventRewardItemConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventRewardItemConfig, false, false> & {
|
|
20
|
+
desc: never;
|
|
20
21
|
plain: never;
|
|
21
22
|
optional: never;
|
|
22
23
|
maybeNull: never;
|
|
@@ -27,6 +28,7 @@ export interface RegularReward {
|
|
|
27
28
|
rewards: EventRewardItemConfig[];
|
|
28
29
|
}
|
|
29
30
|
export declare const RegularRewardValidator: import("@seayoo-web/validator").ObjectValidator<RegularReward, false, false> & {
|
|
31
|
+
desc: never;
|
|
30
32
|
plain: never;
|
|
31
33
|
optional: never;
|
|
32
34
|
maybeNull: never;
|
|
@@ -46,6 +48,7 @@ export declare const FeatureRewardValidator: import("@seayoo-web/validator").Uni
|
|
|
46
48
|
feature_reward_type: "regular";
|
|
47
49
|
reward_details: RegularReward[];
|
|
48
50
|
}, false, false>], false, false> & {
|
|
51
|
+
desc: never;
|
|
49
52
|
optional: never;
|
|
50
53
|
maybeNull: never;
|
|
51
54
|
key: never;
|
|
@@ -53,6 +53,7 @@ export declare const UserEngagementDataValidator: import("@seayoo-web/validator"
|
|
|
53
53
|
content: /*elided*/ any;
|
|
54
54
|
}[];
|
|
55
55
|
}, false, false>, import("@seayoo-web/validator").ObjectValidator<UgcEngagementData, false, false>, import("@seayoo-web/validator").CustomValidator<EmptyObject, false, false>], false, false> & {
|
|
56
|
+
desc: never;
|
|
56
57
|
optional: never;
|
|
57
58
|
maybeNull: never;
|
|
58
59
|
key: never;
|
|
@@ -24,6 +24,7 @@ export type UserEngagement = {
|
|
|
24
24
|
rewards?: Reward[];
|
|
25
25
|
};
|
|
26
26
|
export declare const UserEngagementValidator: import("@seayoo-web/validator").ObjectValidator<UserEngagement, false, false> & {
|
|
27
|
+
desc: never;
|
|
27
28
|
plain: never;
|
|
28
29
|
optional: never;
|
|
29
30
|
maybeNull: never;
|
|
@@ -24,6 +24,7 @@ export declare const GamerItemType: {
|
|
|
24
24
|
};
|
|
25
25
|
export type GamerItemType = ValueOf<typeof GamerItemType>;
|
|
26
26
|
export declare const GamerItemTypeValidator: import("@seayoo-web/validator").StringValidator<GamerItemType, false, false> & {
|
|
27
|
+
desc: never;
|
|
27
28
|
pattern: never;
|
|
28
29
|
url: never;
|
|
29
30
|
dataUri: never;
|
|
@@ -57,6 +58,7 @@ export declare const RewardItemType: {
|
|
|
57
58
|
};
|
|
58
59
|
export type RewardItemType = GamerItemType;
|
|
59
60
|
export declare const RewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<GamerItemType, false, false> & {
|
|
61
|
+
desc: never;
|
|
60
62
|
pattern: never;
|
|
61
63
|
url: never;
|
|
62
64
|
dataUri: never;
|
|
@@ -75,6 +77,7 @@ export declare const EngageAccountType: {
|
|
|
75
77
|
};
|
|
76
78
|
export type EngageAccountType = ValueOf<typeof EngageAccountType>;
|
|
77
79
|
export declare const EngageAccountTypeValidator: import("@seayoo-web/validator").StringValidator<EngageAccountType, false, false> & {
|
|
80
|
+
desc: never;
|
|
78
81
|
pattern: never;
|
|
79
82
|
url: never;
|
|
80
83
|
dataUri: never;
|
|
@@ -93,6 +96,7 @@ export declare const EventPeriodType: {
|
|
|
93
96
|
};
|
|
94
97
|
export type EventPeriodType = ValueOf<typeof EventPeriodType>;
|
|
95
98
|
export declare const EventPeriodTypeValidator: import("@seayoo-web/validator").StringValidator<EventPeriodType, false, false> & {
|
|
99
|
+
desc: never;
|
|
96
100
|
pattern: never;
|
|
97
101
|
url: never;
|
|
98
102
|
dataUri: never;
|
|
@@ -153,6 +157,7 @@ export declare const FeatureType: {
|
|
|
153
157
|
};
|
|
154
158
|
export type FeatureType = ValueOf<typeof FeatureType>;
|
|
155
159
|
export declare const FeatureTypeValidator: import("@seayoo-web/validator").StringValidator<FeatureType, false, false> & {
|
|
160
|
+
desc: never;
|
|
156
161
|
pattern: never;
|
|
157
162
|
url: never;
|
|
158
163
|
dataUri: never;
|
|
@@ -189,6 +194,7 @@ export declare const QuestObjective: {
|
|
|
189
194
|
};
|
|
190
195
|
export type QuestObjective = ValueOf<typeof QuestObjective>;
|
|
191
196
|
export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
|
|
197
|
+
desc: never;
|
|
192
198
|
pattern: never;
|
|
193
199
|
url: never;
|
|
194
200
|
dataUri: never;
|
|
@@ -209,6 +215,7 @@ export declare const VoteOptionSource: {
|
|
|
209
215
|
};
|
|
210
216
|
export type VoteOptionSource = ValueOf<typeof VoteOptionSource>;
|
|
211
217
|
export declare const VoteOptionSourceValidator: import("@seayoo-web/validator").StringValidator<VoteOptionSource, false, false> & {
|
|
218
|
+
desc: never;
|
|
212
219
|
pattern: never;
|
|
213
220
|
url: never;
|
|
214
221
|
dataUri: never;
|
|
@@ -235,6 +242,7 @@ export declare const RewardStatus: {
|
|
|
235
242
|
};
|
|
236
243
|
export type RewardStatus = ValueOf<typeof RewardStatus>;
|
|
237
244
|
export declare const RewardStatusValidator: import("@seayoo-web/validator").StringValidator<RewardStatus, false, false> & {
|
|
245
|
+
desc: never;
|
|
238
246
|
pattern: never;
|
|
239
247
|
url: never;
|
|
240
248
|
dataUri: never;
|
|
@@ -259,6 +267,7 @@ export declare const RewardStatusSuffix: {
|
|
|
259
267
|
};
|
|
260
268
|
export type RewardStatusSuffix = ValueOf<typeof RewardStatusSuffix>;
|
|
261
269
|
export declare const RewardStatusSuffixValidator: import("@seayoo-web/validator").StringValidator<RewardStatusSuffix, false, false> & {
|
|
270
|
+
desc: never;
|
|
262
271
|
pattern: never;
|
|
263
272
|
url: never;
|
|
264
273
|
dataUri: never;
|
|
@@ -284,6 +293,7 @@ export declare const ClaimRewardStatus: {
|
|
|
284
293
|
readonly Delivered: "delivered";
|
|
285
294
|
};
|
|
286
295
|
export declare const ClaimRewardStatusValidator: import("@seayoo-web/validator").StringValidator<ClaimRewardStatus, false, false> & {
|
|
296
|
+
desc: never;
|
|
287
297
|
pattern: never;
|
|
288
298
|
url: never;
|
|
289
299
|
dataUri: never;
|
|
@@ -303,6 +313,7 @@ export declare const RewardSource: {
|
|
|
303
313
|
};
|
|
304
314
|
export type RewardSource = ValueOf<typeof RewardSource>;
|
|
305
315
|
export declare const RewardSourceValidator: import("@seayoo-web/validator").StringValidator<RewardSource, false, false> & {
|
|
316
|
+
desc: never;
|
|
306
317
|
pattern: never;
|
|
307
318
|
url: never;
|
|
308
319
|
dataUri: never;
|
|
@@ -321,6 +332,7 @@ export declare const TeamVisibility: {
|
|
|
321
332
|
};
|
|
322
333
|
export type TeamVisibility = ValueOf<typeof TeamVisibility>;
|
|
323
334
|
export declare const TeamVisibilityValidator: import("@seayoo-web/validator").StringValidator<TeamVisibility, false, false> & {
|
|
335
|
+
desc: never;
|
|
324
336
|
pattern: never;
|
|
325
337
|
url: never;
|
|
326
338
|
dataUri: never;
|
|
@@ -345,6 +357,7 @@ export declare const LotteryTicketStatus: {
|
|
|
345
357
|
};
|
|
346
358
|
export type LotteryTicketStatus = ValueOf<typeof LotteryTicketStatus>;
|
|
347
359
|
export declare const LotteryTicketStatusValidator: import("@seayoo-web/validator").StringValidator<LotteryTicketStatus, false, false> & {
|
|
360
|
+
desc: never;
|
|
348
361
|
pattern: never;
|
|
349
362
|
url: never;
|
|
350
363
|
dataUri: never;
|
|
@@ -369,6 +382,7 @@ export declare const TeamAction: {
|
|
|
369
382
|
};
|
|
370
383
|
export type TeamAction = ValueOf<typeof TeamAction>;
|
|
371
384
|
export declare const TeamActionValidator: import("@seayoo-web/validator").StringValidator<TeamAction, false, false> & {
|
|
385
|
+
desc: never;
|
|
372
386
|
pattern: never;
|
|
373
387
|
url: never;
|
|
374
388
|
dataUri: never;
|
|
@@ -389,6 +403,7 @@ export declare const LotteryDrawAction: {
|
|
|
389
403
|
};
|
|
390
404
|
export type LotteryDrawAction = ValueOf<typeof LotteryDrawAction>;
|
|
391
405
|
export declare const LotteryDrawActionValidator: import("@seayoo-web/validator").StringValidator<LotteryDrawAction, false, false> & {
|
|
406
|
+
desc: never;
|
|
392
407
|
pattern: never;
|
|
393
408
|
url: never;
|
|
394
409
|
dataUri: never;
|
|
@@ -407,6 +422,7 @@ export declare const QuestProgressAlgorithm: {
|
|
|
407
422
|
};
|
|
408
423
|
export type QuestProgressAlgorithm = ValueOf<typeof QuestProgressAlgorithm>;
|
|
409
424
|
export declare const QuestProgressAlgorithmValidator: import("@seayoo-web/validator").StringValidator<QuestProgressAlgorithm, false, false> & {
|
|
425
|
+
desc: never;
|
|
410
426
|
pattern: never;
|
|
411
427
|
url: never;
|
|
412
428
|
dataUri: never;
|
|
@@ -429,6 +445,7 @@ export declare const Vote2RewardType: {
|
|
|
429
445
|
};
|
|
430
446
|
export type Vote2RewardType = (typeof Vote2RewardType)[keyof typeof Vote2RewardType];
|
|
431
447
|
export declare const Vote2RewardTypeValidator: import("@seayoo-web/validator").StringValidator<Vote2RewardType, false, false> & {
|
|
448
|
+
desc: never;
|
|
432
449
|
pattern: never;
|
|
433
450
|
url: never;
|
|
434
451
|
dataUri: never;
|
|
@@ -457,6 +474,7 @@ export declare const UgcSocialMedia: {
|
|
|
457
474
|
};
|
|
458
475
|
export type UgcSocialMedia = ValueOf<typeof UgcSocialMedia>;
|
|
459
476
|
export declare const UgcSocialMediaValidator: import("@seayoo-web/validator").StringValidator<UgcSocialMedia, false, false> & {
|
|
477
|
+
desc: never;
|
|
460
478
|
pattern: never;
|
|
461
479
|
url: never;
|
|
462
480
|
dataUri: never;
|
|
@@ -477,6 +495,7 @@ export declare const UgcReviewStatus: {
|
|
|
477
495
|
};
|
|
478
496
|
export type UgcReviewStatus = ValueOf<typeof UgcReviewStatus>;
|
|
479
497
|
export declare const UgcReviewStatusValidator: import("@seayoo-web/validator").StringValidator<UgcReviewStatus, false, false> & {
|
|
498
|
+
desc: never;
|
|
480
499
|
pattern: never;
|
|
481
500
|
url: never;
|
|
482
501
|
dataUri: never;
|
package/types/src/token.d.ts
CHANGED
|
@@ -69,6 +69,12 @@ export declare class AuthToken {
|
|
|
69
69
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=ReeJpWraRO
|
|
70
70
|
*/
|
|
71
71
|
autoLogin(): Promise<boolean>;
|
|
72
|
+
/**
|
|
73
|
+
* 用于在多租户小程序环境中切换当前 Session 的 game_id。
|
|
74
|
+
*
|
|
75
|
+
* https://www.kdocs.cn/l/cf2mO2uRLqh9?linkname=ifQTBNrckh
|
|
76
|
+
*/
|
|
77
|
+
switchGame(gameId: string): Promise<boolean>;
|
|
72
78
|
/**
|
|
73
79
|
* 获取当前登录用户的 Session 的信息
|
|
74
80
|
*
|
|
@@ -2,4 +2,8 @@ import type { GamerSession } from "./token.define";
|
|
|
2
2
|
export declare function isGamerTokenResponse(data: unknown): data is {
|
|
3
3
|
gamer_token: string;
|
|
4
4
|
};
|
|
5
|
+
export declare function isSwitchGameResponse(data: unknown): data is {
|
|
6
|
+
gamer_token: string;
|
|
7
|
+
game_id: string;
|
|
8
|
+
};
|
|
5
9
|
export declare function isGetSessionResponse(data: unknown): data is GamerSession;
|
package/types/src/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const console: Pick<Console, "
|
|
1
|
+
export declare const console: Pick<Console, "error" | "log" | "warn">;
|
|
2
2
|
/** 检测是否在 combo webview */
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|