@juzi/wechaty-grpc 1.0.75 → 1.0.77

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.
Files changed (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +63 -0
  2. package/dist/cjs/out/wechaty/puppet/message_pb.js +449 -2
  3. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +48 -0
  4. package/dist/cjs/out/wechaty/puppet/tag_pb.js +364 -0
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +60 -1
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +92 -1
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  11. package/dist/cjs/proto/wechaty/puppet/message.proto +17 -0
  12. package/dist/cjs/proto/wechaty/puppet/tag.proto +10 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +63 -0
  19. package/dist/esm/out/wechaty/puppet/message_pb.js +449 -2
  20. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +48 -0
  21. package/dist/esm/out/wechaty/puppet/tag_pb.js +364 -0
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +60 -1
  23. package/dist/esm/out/wechaty/puppet.swagger.json +92 -1
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  28. package/dist/esm/proto/wechaty/puppet/message.proto +17 -0
  29. package/dist/esm/proto/wechaty/puppet/tag.proto +10 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +5 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/message_pb.d.ts +63 -0
  36. package/out/wechaty/puppet/message_pb.js +449 -2
  37. package/out/wechaty/puppet/tag_pb.d.ts +48 -0
  38. package/out/wechaty/puppet/tag_pb.js +364 -0
  39. package/out/wechaty/puppet.openapi.yaml +60 -1
  40. package/out/wechaty/puppet.swagger.json +92 -1
  41. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  42. package/out/wechaty/puppet_grpc_pb.js +33 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  44. package/out/wechaty/puppet_pb_service.js +40 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -2199,6 +2199,28 @@ function deserialize_wechaty_puppet_TagTagListResponse(buffer_arg) {
2199
2199
  return wechaty_puppet_tag_pb.TagTagListResponse.deserializeBinary(new Uint8Array(buffer_arg));
2200
2200
  }
2201
2201
 
2202
+ function serialize_wechaty_puppet_TagTagModifyRequest(arg) {
2203
+ if (!(arg instanceof wechaty_puppet_tag_pb.TagTagModifyRequest)) {
2204
+ throw new Error('Expected argument of type wechaty.puppet.TagTagModifyRequest');
2205
+ }
2206
+ return Buffer.from(arg.serializeBinary());
2207
+ }
2208
+
2209
+ function deserialize_wechaty_puppet_TagTagModifyRequest(buffer_arg) {
2210
+ return wechaty_puppet_tag_pb.TagTagModifyRequest.deserializeBinary(new Uint8Array(buffer_arg));
2211
+ }
2212
+
2213
+ function serialize_wechaty_puppet_TagTagModifyResponse(arg) {
2214
+ if (!(arg instanceof wechaty_puppet_tag_pb.TagTagModifyResponse)) {
2215
+ throw new Error('Expected argument of type wechaty.puppet.TagTagModifyResponse');
2216
+ }
2217
+ return Buffer.from(arg.serializeBinary());
2218
+ }
2219
+
2220
+ function deserialize_wechaty_puppet_TagTagModifyResponse(buffer_arg) {
2221
+ return wechaty_puppet_tag_pb.TagTagModifyResponse.deserializeBinary(new Uint8Array(buffer_arg));
2222
+ }
2223
+
2202
2224
  function serialize_wechaty_puppet_UploadRequest(arg) {
2203
2225
  if (!(arg instanceof wechaty_puppet_download$upload_pb.UploadRequest)) {
2204
2226
  throw new Error('Expected argument of type wechaty.puppet.UploadRequest');
@@ -3209,6 +3231,17 @@ tagContactTagAdd: {
3209
3231
  responseSerialize: serialize_wechaty_puppet_TagTagDeleteResponse,
3210
3232
  responseDeserialize: deserialize_wechaty_puppet_TagTagDeleteResponse,
3211
3233
  },
3234
+ tagTagModify: {
3235
+ path: '/wechaty.Puppet/tagTagModify',
3236
+ requestStream: false,
3237
+ responseStream: false,
3238
+ requestType: wechaty_puppet_tag_pb.TagTagModifyRequest,
3239
+ responseType: wechaty_puppet_tag_pb.TagTagModifyResponse,
3240
+ requestSerialize: serialize_wechaty_puppet_TagTagModifyRequest,
3241
+ requestDeserialize: deserialize_wechaty_puppet_TagTagModifyRequest,
3242
+ responseSerialize: serialize_wechaty_puppet_TagTagModifyResponse,
3243
+ responseDeserialize: deserialize_wechaty_puppet_TagTagModifyResponse,
3244
+ },
3212
3245
  tagPayload: {
3213
3246
  path: '/wechaty.Puppet/TagPayload',
3214
3247
  requestStream: false,
@@ -766,6 +766,15 @@ type PuppetTagTagDelete = {
766
766
  readonly responseType: typeof wechaty_puppet_tag_pb.TagTagDeleteResponse;
767
767
  };
768
768
 
769
+ type PuppettagTagModify = {
770
+ readonly methodName: string;
771
+ readonly service: typeof Puppet;
772
+ readonly requestStream: false;
773
+ readonly responseStream: false;
774
+ readonly requestType: typeof wechaty_puppet_tag_pb.TagTagModifyRequest;
775
+ readonly responseType: typeof wechaty_puppet_tag_pb.TagTagModifyResponse;
776
+ };
777
+
769
778
  type PuppetTagPayload = {
770
779
  readonly methodName: string;
771
780
  readonly service: typeof Puppet;
@@ -1031,6 +1040,7 @@ export class Puppet {
1031
1040
  static readonly TagGroupPayload: PuppetTagGroupPayload;
1032
1041
  static readonly TagTagAdd: PuppetTagTagAdd;
1033
1042
  static readonly TagTagDelete: PuppetTagTagDelete;
1043
+ static readonly tagTagModify: PuppettagTagModify;
1034
1044
  static readonly TagPayload: PuppetTagPayload;
1035
1045
  static readonly TagGroupList: PuppetTagGroupList;
1036
1046
  static readonly TagGroupTagList: PuppetTagGroupTagList;
@@ -1824,6 +1834,15 @@ export class PuppetClient {
1824
1834
  requestMessage: wechaty_puppet_tag_pb.TagTagDeleteRequest,
1825
1835
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagTagDeleteResponse|null) => void
1826
1836
  ): UnaryResponse;
1837
+ tagTagModify(
1838
+ requestMessage: wechaty_puppet_tag_pb.TagTagModifyRequest,
1839
+ metadata: grpc.Metadata,
1840
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagTagModifyResponse|null) => void
1841
+ ): UnaryResponse;
1842
+ tagTagModify(
1843
+ requestMessage: wechaty_puppet_tag_pb.TagTagModifyRequest,
1844
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagTagModifyResponse|null) => void
1845
+ ): UnaryResponse;
1827
1846
  tagPayload(
1828
1847
  requestMessage: wechaty_puppet_tag_pb.TagPayloadRequest,
1829
1848
  metadata: grpc.Metadata,
@@ -772,6 +772,15 @@ Puppet.TagTagDelete = {
772
772
  responseType: wechaty_puppet_tag_pb.TagTagDeleteResponse
773
773
  };
774
774
 
775
+ Puppet.tagTagModify = {
776
+ methodName: "tagTagModify",
777
+ service: Puppet,
778
+ requestStream: false,
779
+ responseStream: false,
780
+ requestType: wechaty_puppet_tag_pb.TagTagModifyRequest,
781
+ responseType: wechaty_puppet_tag_pb.TagTagModifyResponse
782
+ };
783
+
775
784
  Puppet.TagPayload = {
776
785
  methodName: "TagPayload",
777
786
  service: Puppet,
@@ -3540,6 +3549,37 @@ PuppetClient.prototype.tagTagDelete = function tagTagDelete(requestMessage, meta
3540
3549
  };
3541
3550
  };
3542
3551
 
3552
+ PuppetClient.prototype.tagTagModify = function tagTagModify(requestMessage, metadata, callback) {
3553
+ if (arguments.length === 2) {
3554
+ callback = arguments[1];
3555
+ }
3556
+ var client = grpc.unary(Puppet.tagTagModify, {
3557
+ request: requestMessage,
3558
+ host: this.serviceHost,
3559
+ metadata: metadata,
3560
+ transport: this.options.transport,
3561
+ debug: this.options.debug,
3562
+ onEnd: function (response) {
3563
+ if (callback) {
3564
+ if (response.status !== grpc.Code.OK) {
3565
+ var err = new Error(response.statusMessage);
3566
+ err.code = response.status;
3567
+ err.metadata = response.trailers;
3568
+ callback(err, null);
3569
+ } else {
3570
+ callback(null, response.message);
3571
+ }
3572
+ }
3573
+ }
3574
+ });
3575
+ return {
3576
+ cancel: function () {
3577
+ callback = null;
3578
+ client.close();
3579
+ }
3580
+ };
3581
+ };
3582
+
3543
3583
  PuppetClient.prototype.tagPayload = function tagPayload(requestMessage, metadata, callback) {
3544
3584
  if (arguments.length === 2) {
3545
3585
  callback = arguments[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.75",
7
+ "version": "1.0.77",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {