This commit is contained in:
idranme
2024-09-11 22:13:11 +08:00
parent 6477366ba6
commit 2ac2c68435
3 changed files with 1 additions and 232 deletions

View File

@@ -12,7 +12,7 @@
"deploy-win": "cmd /c \"xcopy /C /S /Y dist\\* %LITELOADERQQNT_PROFILE%\\plugins\\LLOneBot\\\"",
"format": "prettier -cw .",
"check": "tsc",
"compile:proto": "pbjs --no-convert --no-encode -t static-module -w es6 -p ./src/ntqqapi/proto -o ./src/ntqqapi/proto/compiled.js systemMessage.proto profileLikeTip.proto && pbts -o ./src/ntqqapi/proto/compiled.d.ts ./src/ntqqapi/proto/compiled.js"
"compile:proto": "pbjs --no-convert --no-encode --no-verify -t static-module -w es6 -p src/ntqqapi/proto -o src/ntqqapi/proto/compiled.js systemMessage.proto profileLikeTip.proto && pbts -o src/ntqqapi/proto/compiled.d.ts src/ntqqapi/proto/compiled.js"
},
"author": "",
"license": "MIT",

View File

@@ -60,13 +60,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.SystemMessage;
/**
* Verifies a SystemMessage message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for SystemMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
@@ -138,13 +131,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.SystemMessageHeader;
/**
* Verifies a SystemMessageHeader message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for SystemMessageHeader
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
@@ -228,13 +214,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.SystemMessageMsgSpec;
/**
* Verifies a SystemMessageMsgSpec message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for SystemMessageMsgSpec
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
@@ -288,13 +267,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.SystemMessageBodyWrapper;
/**
* Verifies a SystemMessageBodyWrapper message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for SystemMessageBodyWrapper
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
@@ -360,13 +332,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.LikeDetail;
/**
* Verifies a LikeDetail message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for LikeDetail
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
@@ -432,13 +397,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.LikeMsg;
/**
* Verifies a LikeMsg message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for LikeMsg
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
@@ -492,13 +450,6 @@ export namespace SysMsg {
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SysMsg.ProfileLikeTip;
/**
* Verifies a ProfileLikeTip message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Gets the default type url for ProfileLikeTip
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")

View File

@@ -138,43 +138,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a SystemMessage message.
* @function verify
* @memberof SysMsg.SystemMessage
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
SystemMessage.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.header != null && message.hasOwnProperty("header")) {
if (!Array.isArray(message.header))
return "header: array expected";
for (let i = 0; i < message.header.length; ++i) {
let error = $root.SysMsg.SystemMessageHeader.verify(message.header[i]);
if (error)
return "header." + error;
}
}
if (message.msgSpec != null && message.hasOwnProperty("msgSpec")) {
if (!Array.isArray(message.msgSpec))
return "msgSpec: array expected";
for (let i = 0; i < message.msgSpec.length; ++i) {
let error = $root.SysMsg.SystemMessageMsgSpec.verify(message.msgSpec[i]);
if (error)
return "msgSpec." + error;
}
}
if (message.bodyWrapper != null && message.hasOwnProperty("bodyWrapper")) {
let error = $root.SysMsg.SystemMessageBodyWrapper.verify(message.bodyWrapper);
if (error)
return "bodyWrapper." + error;
}
return null;
};
/**
* Gets the default type url for SystemMessage
* @function getTypeUrl
@@ -331,35 +294,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a SystemMessageHeader message.
* @function verify
* @memberof SysMsg.SystemMessageHeader
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
SystemMessageHeader.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
let properties = {};
if (message.peerNumber != null && message.hasOwnProperty("peerNumber"))
if (!$util.isInteger(message.peerNumber))
return "peerNumber: integer expected";
if (message.peerString != null && message.hasOwnProperty("peerString"))
if (!$util.isString(message.peerString))
return "peerString: string expected";
if (message.uin != null && message.hasOwnProperty("uin"))
if (!$util.isInteger(message.uin))
return "uin: integer expected";
if (message.uid != null && message.hasOwnProperty("uid")) {
properties._uid = 1;
if (!$util.isString(message.uid))
return "uid: string expected";
}
return null;
};
/**
* Gets the default type url for SystemMessageHeader
* @function getTypeUrl
@@ -533,38 +467,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a SystemMessageMsgSpec message.
* @function verify
* @memberof SysMsg.SystemMessageMsgSpec
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
SystemMessageMsgSpec.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.msgType != null && message.hasOwnProperty("msgType"))
if (!$util.isInteger(message.msgType))
return "msgType: integer expected";
if (message.subType != null && message.hasOwnProperty("subType"))
if (!$util.isInteger(message.subType))
return "subType: integer expected";
if (message.subSubType != null && message.hasOwnProperty("subSubType"))
if (!$util.isInteger(message.subSubType))
return "subSubType: integer expected";
if (message.msgSeq != null && message.hasOwnProperty("msgSeq"))
if (!$util.isInteger(message.msgSeq))
return "msgSeq: integer expected";
if (message.time != null && message.hasOwnProperty("time"))
if (!$util.isInteger(message.time))
return "time: integer expected";
if (message.other != null && message.hasOwnProperty("other"))
if (!$util.isInteger(message.other))
return "other: integer expected";
return null;
};
/**
* Gets the default type url for SystemMessageMsgSpec
* @function getTypeUrl
@@ -673,23 +575,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a SystemMessageBodyWrapper message.
* @function verify
* @memberof SysMsg.SystemMessageBodyWrapper
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
SystemMessageBodyWrapper.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.body != null && message.hasOwnProperty("body"))
if (!(message.body && typeof message.body.length === "number" || $util.isString(message.body)))
return "body: buffer expected";
return null;
};
/**
* Gets the default type url for SystemMessageBodyWrapper
* @function getTypeUrl
@@ -824,29 +709,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a LikeDetail message.
* @function verify
* @memberof SysMsg.LikeDetail
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
LikeDetail.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.txt != null && message.hasOwnProperty("txt"))
if (!$util.isString(message.txt))
return "txt: string expected";
if (message.uin != null && message.hasOwnProperty("uin"))
if (!$util.isInteger(message.uin))
return "uin: integer expected";
if (message.nickname != null && message.hasOwnProperty("nickname"))
if (!$util.isString(message.nickname))
return "nickname: string expected";
return null;
};
/**
* Gets the default type url for LikeDetail
* @function getTypeUrl
@@ -981,31 +843,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a LikeMsg message.
* @function verify
* @memberof SysMsg.LikeMsg
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
LikeMsg.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.count != null && message.hasOwnProperty("count"))
if (!$util.isInteger(message.count))
return "count: integer expected";
if (message.time != null && message.hasOwnProperty("time"))
if (!$util.isInteger(message.time))
return "time: integer expected";
if (message.detail != null && message.hasOwnProperty("detail")) {
let error = $root.SysMsg.LikeDetail.verify(message.detail);
if (error)
return "detail." + error;
}
return null;
};
/**
* Gets the default type url for LikeMsg
* @function getTypeUrl
@@ -1114,25 +951,6 @@ export const SysMsg = $root.SysMsg = (() => {
return this.decode(reader, reader.uint32());
};
/**
* Verifies a ProfileLikeTip message.
* @function verify
* @memberof SysMsg.ProfileLikeTip
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
ProfileLikeTip.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.msg != null && message.hasOwnProperty("msg")) {
let error = $root.SysMsg.LikeMsg.verify(message.msg);
if (error)
return "msg." + error;
}
return null;
};
/**
* Gets the default type url for ProfileLikeTip
* @function getTypeUrl