@seayoo-web/gamer-api 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1686,7 +1686,7 @@ const Hn = {
|
|
|
1686
1686
|
create_time: e.number()
|
|
1687
1687
|
}).lock(), se = e.object({
|
|
1688
1688
|
err_msg: e.string().optional()
|
|
1689
|
-
}).lock(), Yn = e.object({
|
|
1689
|
+
}).optional().lock(), Yn = e.object({
|
|
1690
1690
|
reply_id: e.number(),
|
|
1691
1691
|
reply_content: e.string().optional(),
|
|
1692
1692
|
replied_by: e.string(),
|
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.7.
|
|
4
|
+
"version": "2.7.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.6.0",
|
|
34
|
-
"@seayoo-web/scripts": "3.0.1",
|
|
35
34
|
"@seayoo-web/request": "3.4.0",
|
|
36
|
-
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
35
|
"@seayoo-web/utils": "4.0.2",
|
|
36
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
|
+
"@seayoo-web/scripts": "3.0.5",
|
|
38
38
|
"@seayoo-web/validator": "1.0.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/types/src/community.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export declare class CommunityApi {
|
|
|
97
97
|
topic_ids?: number[];
|
|
98
98
|
}, requestOptions?: IRequestOptions): Promise<{
|
|
99
99
|
post: import("./community.define").Post;
|
|
100
|
-
antispam: import("./community.define").Antispam;
|
|
100
|
+
antispam: import("./community.define").Antispam | undefined;
|
|
101
101
|
} | {
|
|
102
102
|
message: string;
|
|
103
103
|
error: RequestInternalError | "post_body_too_long" | "post_subject_too_long" | "post_tag_already_exists" | "moderation_check_text_error" | "moderation_check_image_error" | "unknown_moderation_suggestion" | "invalid_content_length" | "forum_disabled" | "not_allowed_to_post" | "please_real_name" | "post_tag_not_exists";
|
|
@@ -92,7 +92,7 @@ export interface Antispam {
|
|
|
92
92
|
/** 安全检测返回异常提示 */
|
|
93
93
|
err_msg?: string;
|
|
94
94
|
}
|
|
95
|
-
export declare const AntispamValidator: import("@seayoo-web/validator").ObjectValidator<Antispam,
|
|
95
|
+
export declare const AntispamValidator: import("@seayoo-web/validator").ObjectValidator<Antispam, true, false> & {
|
|
96
96
|
plain: never;
|
|
97
97
|
optional: never;
|
|
98
98
|
maybeNull: never;
|
|
@@ -16,7 +16,7 @@ export declare const isGetPostsResponse: (data: unknown) => data is {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const isCreatePostResponse: (data: unknown) => data is {
|
|
18
18
|
post: import("./community.define").Post;
|
|
19
|
-
antispam: import("./community.define").Antispam;
|
|
19
|
+
antispam: import("./community.define").Antispam | undefined;
|
|
20
20
|
};
|
|
21
21
|
export declare const isRelyListResponse: (data: unknown) => data is {
|
|
22
22
|
replies: import("./community.define").Reply[];
|