diff --git a/package.json b/package.json index 437ba5f..a4f7dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@juzi/wechaty-grpc", - "version": "1.0.76", + "version": "1.0.77", "description": "gRPC for Wechaty", "type": "module", "exports": { diff --git a/proto/wechaty/puppet.proto b/proto/wechaty/puppet.proto index eaad24c..d3420df 100644 --- a/proto/wechaty/puppet.proto +++ b/proto/wechaty/puppet.proto @@ -649,6 +649,13 @@ service Puppet { }; } + rpc tagTagModify (puppet.TagTagModifyRequest) returns (puppet.TagTagModifyResponse) { + option (google.api.http) = { + post: "/tag/modify" + body: "*" + }; + } + rpc TagPayload (puppet.TagPayloadRequest) returns (puppet.TagPayloadResponse) { option (google.api.http) = { post: "/tag/payload" diff --git a/proto/wechaty/puppet/tag.proto b/proto/wechaty/puppet/tag.proto index 3ebe256..3879ea9 100644 --- a/proto/wechaty/puppet/tag.proto +++ b/proto/wechaty/puppet/tag.proto @@ -71,6 +71,16 @@ message TagTagDeleteRequest { message TagTagDeleteResponse { } +message TagTagModifyRequest { + string tag_id = 1; + string tag_new_name = 2; +} + +message TagTagModifyResponse { + string tag_id = 1; + string tag_name = 2; +} + message TagGroupListRequest { } diff --git a/tests/puppet-server-impl.ts b/tests/puppet-server-impl.ts index 0ada997..f1d9ac7 100644 --- a/tests/puppet-server-impl.ts +++ b/tests/puppet-server-impl.ts @@ -1,7 +1,7 @@ /* eslint-disable sort-keys */ import type { puppet, -} from '../src/mod.js' +} from '../src/mod.js' type IPuppetServer = puppet.IPuppetServer @@ -478,6 +478,12 @@ export const puppetServerImpl: IPuppetServer = { throw new Error('not implemented.') }, + tagTagModify: (call, callback) => { + void call + void callback + throw new Error('not implemented.') + }, + tagGroupList: (call, callback) => { void call void callback