diff --git a/src/onebot11/action/go-cqhttp/GetFriendMsgHistory.ts b/src/onebot11/action/go-cqhttp/GetFriendMsgHistory.ts index 9b147278..a5132964 100644 --- a/src/onebot11/action/go-cqhttp/GetFriendMsgHistory.ts +++ b/src/onebot11/action/go-cqhttp/GetFriendMsgHistory.ts @@ -16,7 +16,7 @@ interface Response { const SchemaData = { type: 'object', properties: { - user_id: { type: 'number' }, + user_id: { type: [ 'number' , 'string' ] }, message_seq: { type: 'number' }, count: { type: 'number' } }, diff --git a/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts b/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts index 3a896f9d..2d84f476 100644 --- a/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts +++ b/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts @@ -6,7 +6,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, type: { enum: [WebHonorType.ALL, WebHonorType.EMOTION, WebHonorType.LEGEND, WebHonorType.PERFROMER, WebHonorType.STORONGE_NEWBI, WebHonorType.TALKACTIVE] } }, required: ['group_id'] diff --git a/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts b/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts index 2155626f..3dfa86c3 100644 --- a/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts +++ b/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts @@ -15,7 +15,7 @@ interface Response { const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, message_seq: { type: 'number' }, count: { type: 'number' } }, diff --git a/src/onebot11/action/go-cqhttp/GetStrangerInfo.ts b/src/onebot11/action/go-cqhttp/GetStrangerInfo.ts index c32c03a7..55df6b97 100644 --- a/src/onebot11/action/go-cqhttp/GetStrangerInfo.ts +++ b/src/onebot11/action/go-cqhttp/GetStrangerInfo.ts @@ -10,7 +10,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - user_id: { type: 'number' }, + user_id: { type: [ 'number' , 'string' ] }, }, required: ['user_id'] } as const satisfies JSONSchema; diff --git a/src/onebot11/action/go-cqhttp/SendGroupNotice.ts b/src/onebot11/action/go-cqhttp/SendGroupNotice.ts index 50621128..28e0d613 100644 --- a/src/onebot11/action/go-cqhttp/SendGroupNotice.ts +++ b/src/onebot11/action/go-cqhttp/SendGroupNotice.ts @@ -7,7 +7,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, content: { type: 'string' }, image: { type: 'string' }, pinned: { type: 'number' }, diff --git a/src/onebot11/action/go-cqhttp/UploadGroupFile.ts b/src/onebot11/action/go-cqhttp/UploadGroupFile.ts index 5b3772a9..83e8abbb 100644 --- a/src/onebot11/action/go-cqhttp/UploadGroupFile.ts +++ b/src/onebot11/action/go-cqhttp/UploadGroupFile.ts @@ -10,7 +10,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, file: { type: 'string' }, name: { type: 'string' }, folder: { type: 'string' } diff --git a/src/onebot11/action/group/GetGroupEssence.ts b/src/onebot11/action/group/GetGroupEssence.ts index 58bda81a..7e90d6fc 100644 --- a/src/onebot11/action/group/GetGroupEssence.ts +++ b/src/onebot11/action/group/GetGroupEssence.ts @@ -10,7 +10,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, pages: { type: 'number' }, }, required: ['group_id', 'pages'] diff --git a/src/onebot11/action/group/GetGroupInfo.ts b/src/onebot11/action/group/GetGroupInfo.ts index ed3af013..1a460017 100644 --- a/src/onebot11/action/group/GetGroupInfo.ts +++ b/src/onebot11/action/group/GetGroupInfo.ts @@ -8,7 +8,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, }, required: ['group_id'] } as const satisfies JSONSchema; diff --git a/src/onebot11/action/group/GetGroupMemberList.ts b/src/onebot11/action/group/GetGroupMemberList.ts index 8e52914c..7df7a27e 100644 --- a/src/onebot11/action/group/GetGroupMemberList.ts +++ b/src/onebot11/action/group/GetGroupMemberList.ts @@ -13,7 +13,7 @@ import { dbUtil } from '@/common/utils/db'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, no_cache: { type: ['boolean', 'string'] }, }, required: ['group_id'] diff --git a/src/onebot11/action/group/GetGroupNotice.ts b/src/onebot11/action/group/GetGroupNotice.ts index 5c548515..cd61e25f 100644 --- a/src/onebot11/action/group/GetGroupNotice.ts +++ b/src/onebot11/action/group/GetGroupNotice.ts @@ -18,7 +18,7 @@ interface GroupNotice { const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, }, required: ['group_id'] } as const satisfies JSONSchema; diff --git a/src/onebot11/action/group/GetGroupSystemMsg.ts b/src/onebot11/action/group/GetGroupSystemMsg.ts index 9984709c..7dba46eb 100644 --- a/src/onebot11/action/group/GetGroupSystemMsg.ts +++ b/src/onebot11/action/group/GetGroupSystemMsg.ts @@ -8,7 +8,7 @@ import { uid2UinMap } from '@/core/data'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' } + group_id: { type: [ 'number' , 'string' ] } }, } as const satisfies JSONSchema; diff --git a/src/onebot11/action/group/SetGroupAdmin.ts b/src/onebot11/action/group/SetGroupAdmin.ts index f486a66a..56242ed0 100644 --- a/src/onebot11/action/group/SetGroupAdmin.ts +++ b/src/onebot11/action/group/SetGroupAdmin.ts @@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, - user_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, + user_id: { type: [ 'number' , 'string' ] }, enable: { type: 'boolean' } }, required: ['group_id', 'user_id', 'enable'] diff --git a/src/onebot11/action/group/SetGroupBan.ts b/src/onebot11/action/group/SetGroupBan.ts index 8025c6a1..27155b46 100644 --- a/src/onebot11/action/group/SetGroupBan.ts +++ b/src/onebot11/action/group/SetGroupBan.ts @@ -7,9 +7,9 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, - user_id: { type: 'number' }, - duration: { type: 'number' } + group_id: { type: ['number', 'string'] }, + user_id: { type: ['number', 'string'] }, + duration: { type: ['number', 'string'] } }, required: ['group_id', 'user_id', 'duration'] } as const satisfies JSONSchema; diff --git a/src/onebot11/action/group/SetGroupCard.ts b/src/onebot11/action/group/SetGroupCard.ts index b7b1eab9..aef7274c 100644 --- a/src/onebot11/action/group/SetGroupCard.ts +++ b/src/onebot11/action/group/SetGroupCard.ts @@ -7,8 +7,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, - user_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, + user_id: { type: [ 'number' , 'string' ] }, card: { type: 'string' } }, required: ['group_id', 'user_id', 'card'] diff --git a/src/onebot11/action/group/SetGroupKick.ts b/src/onebot11/action/group/SetGroupKick.ts index d32cb5c9..600bd221 100644 --- a/src/onebot11/action/group/SetGroupKick.ts +++ b/src/onebot11/action/group/SetGroupKick.ts @@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, - user_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, + user_id: { type: [ 'number' , 'string' ] }, reject_add_request: { type: 'boolean' } }, required: ['group_id', 'user_id', 'reject_add_request'] diff --git a/src/onebot11/action/group/SetGroupLeave.ts b/src/onebot11/action/group/SetGroupLeave.ts index e78971ce..ce12d4a4 100644 --- a/src/onebot11/action/group/SetGroupLeave.ts +++ b/src/onebot11/action/group/SetGroupLeave.ts @@ -6,7 +6,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, is_dismiss: { type: 'boolean' } }, required: ['group_id'] diff --git a/src/onebot11/action/group/SetGroupName.ts b/src/onebot11/action/group/SetGroupName.ts index bc211161..d65383cb 100644 --- a/src/onebot11/action/group/SetGroupName.ts +++ b/src/onebot11/action/group/SetGroupName.ts @@ -6,7 +6,7 @@ import { NTQQGroupApi } from '@/core/apis/group'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, group_name: { type: 'string' } }, required: ['group_id', 'group_name'] diff --git a/src/onebot11/action/group/SetGroupWholeBan.ts b/src/onebot11/action/group/SetGroupWholeBan.ts index ecab51b7..6d30c988 100644 --- a/src/onebot11/action/group/SetGroupWholeBan.ts +++ b/src/onebot11/action/group/SetGroupWholeBan.ts @@ -6,7 +6,7 @@ import { NTQQGroupApi } from '@/core/apis/group'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'number' }, + group_id: { type: [ 'number' , 'string' ] }, enable: { type: 'boolean' } }, required: ['group_id', 'enable'] diff --git a/src/onebot11/action/msg/ForwardSingleMsg.ts b/src/onebot11/action/msg/ForwardSingleMsg.ts index 5b87ec8c..693c3e2f 100644 --- a/src/onebot11/action/msg/ForwardSingleMsg.ts +++ b/src/onebot11/action/msg/ForwardSingleMsg.ts @@ -10,8 +10,8 @@ const SchemaData = { type: 'object', properties: { message_id: { type: 'number' }, - group_id: { type: 'number' }, - user_id: { type: 'number' } + group_id: { type: [ 'number' , 'string' ] }, + user_id: { type: [ 'number' , 'string' ] } }, required: ['message_id'] } as const satisfies JSONSchema; diff --git a/src/onebot11/action/msg/MarkMsgAsRead.ts b/src/onebot11/action/msg/MarkMsgAsRead.ts index 6e4f2964..4a4f1995 100644 --- a/src/onebot11/action/msg/MarkMsgAsRead.ts +++ b/src/onebot11/action/msg/MarkMsgAsRead.ts @@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - user_id: { type: 'number' }, - group_id: { type: 'number' } + user_id: { type: [ 'number' , 'string' ] }, + group_id: { type: [ 'number' , 'string' ] } } } as const satisfies JSONSchema; diff --git a/src/onebot11/action/user/SendLike.ts b/src/onebot11/action/user/SendLike.ts index c4ca2c07..2937f19d 100644 --- a/src/onebot11/action/user/SendLike.ts +++ b/src/onebot11/action/user/SendLike.ts @@ -8,7 +8,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - user_id: { type: 'number' }, + user_id: { type: [ 'number' , 'string' ] }, times: { type: 'number' } }, required: ['user_id', 'times']