Replace nap-proto-core with napcat-protobuf package
Switched all imports from '@napneko/nap-proto-core' to the new 'napcat-protobuf' package across napcat-core and related packages. Updated dependencies and references to support the new package structure, improving maintainability and workspace integration.
This commit is contained in:
1 parent
a703bbfef7
commit
4f850cd4dc
98 files changed
+363
-109
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { ScalarType } from '@protobuf-ts/runtime';
|
||||
import { ProtoField } from '@napneko/nap-proto-core';
|
||||
import { ProtoField } from 'napcat-protobuf';
|
||||
import { ContentHead, MessageBody, MessageControl, RoutingHead } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const FaceRoamRequest = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const MiniAppAdaptShareInfoReq = {
|
||||
appId: ProtoField(2, ScalarType.STRING),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { MsgInfoBody } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const DataHighwayHead = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { PushMsgBody } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const LongMsgResult = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const C2C = {
|
||||
uin: ProtoField(1, ScalarType.UINT32, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { Elem } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const Attr = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const Elem = {
|
||||
text: ProtoField(1, () => Text, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const GroupRecallMsg = {
|
||||
type: ProtoField(1, ScalarType.UINT32),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const GroupAdminExtra = {
|
||||
adminUid: ProtoField(1, ScalarType.STRING),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import {
|
||||
C2C,
|
||||
ForwardHead,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const FriendRecall = {
|
||||
info: ProtoField(1, () => FriendRecallInfo),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const ForwardHead = {
|
||||
field1: ProtoField(1, ScalarType.UINT32, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const FileId = {
|
||||
appid: ProtoField(4, ScalarType.UINT32, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { OidbSvcTrpcTcp0XE37_800_1200Metadata } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const OidbSvcTrpcTcp0XE37_800 = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0XFE1_2 = {
|
||||
uin: ProtoField(1, ScalarType.UINT32),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0x6D6 = {
|
||||
file: ProtoField(1, () => OidbSvcTrpcTcp0x6D6Upload, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
// 设置群头衔 OidbSvcTrpcTcp.0x8fc_2
|
||||
export const OidbSvcTrpcTcp0X8FC_2_Body = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { MultiMediaReqHead } from './common/Ntv2.RichMediaReq';
|
||||
|
||||
// Req
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { MsgInfo } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const OidbSvcTrpcTcp0X929D_0 = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0xE07_0 = {
|
||||
version: ProtoField(1, ScalarType.UINT32),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0XE37_1200 = {
|
||||
subCommand: ProtoField(1, ScalarType.UINT32, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0XE37_1700 = {
|
||||
command: ProtoField(1, ScalarType.UINT32, true),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0XEB7_Body = {
|
||||
uin: ProtoField(1, ScalarType.STRING),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
// Send Poke
|
||||
export const OidbSvcTrpcTcp0XED3_1 = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcp0XF90_1 = {
|
||||
groupUin: ProtoField(1, ScalarType.UINT32),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const OidbSvcTrpcTcpBase = {
|
||||
command: ProtoField(1, ScalarType.UINT32),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
|
||||
export const NTV2RichMediaReq = {
|
||||
ReqHead: ProtoField(1, () => MultiMediaReqHead),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtoField, ScalarType } from '@napneko/nap-proto-core';
|
||||
import { ProtoField, ScalarType } from 'napcat-protobuf';
|
||||
import { CommonHead, MsgInfo, PicUrlExtInfo, VideoExtInfo } from '@/napcat-core/packet/transformer/proto';
|
||||
|
||||
export const NTV2RichMediaResp = {
|
||||
|
||||
Reference in new issue
Block a user