@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
@@ -43,6 +43,8 @@ goog.exportSymbol('proto.wechaty.puppet.TagTagDeleteRequest', null, global);
43
43
  goog.exportSymbol('proto.wechaty.puppet.TagTagDeleteResponse', null, global);
44
44
  goog.exportSymbol('proto.wechaty.puppet.TagTagListRequest', null, global);
45
45
  goog.exportSymbol('proto.wechaty.puppet.TagTagListResponse', null, global);
46
+ goog.exportSymbol('proto.wechaty.puppet.TagTagModifyRequest', null, global);
47
+ goog.exportSymbol('proto.wechaty.puppet.TagTagModifyResponse', null, global);
46
48
  goog.exportSymbol('proto.wechaty.puppet.TagType', null, global);
47
49
  /**
48
50
  * Generated by JsPbCodeGenerator.
@@ -338,6 +340,48 @@ if (goog.DEBUG && !COMPILED) {
338
340
  */
339
341
  proto.wechaty.puppet.TagTagDeleteResponse.displayName = 'proto.wechaty.puppet.TagTagDeleteResponse';
340
342
  }
343
+ /**
344
+ * Generated by JsPbCodeGenerator.
345
+ * @param {Array=} opt_data Optional initial data array, typically from a
346
+ * server response, or constructed directly in Javascript. The array is used
347
+ * in place and becomes part of the constructed object. It is not cloned.
348
+ * If no data is provided, the constructed object will be empty, but still
349
+ * valid.
350
+ * @extends {jspb.Message}
351
+ * @constructor
352
+ */
353
+ proto.wechaty.puppet.TagTagModifyRequest = function(opt_data) {
354
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
355
+ };
356
+ goog.inherits(proto.wechaty.puppet.TagTagModifyRequest, jspb.Message);
357
+ if (goog.DEBUG && !COMPILED) {
358
+ /**
359
+ * @public
360
+ * @override
361
+ */
362
+ proto.wechaty.puppet.TagTagModifyRequest.displayName = 'proto.wechaty.puppet.TagTagModifyRequest';
363
+ }
364
+ /**
365
+ * Generated by JsPbCodeGenerator.
366
+ * @param {Array=} opt_data Optional initial data array, typically from a
367
+ * server response, or constructed directly in Javascript. The array is used
368
+ * in place and becomes part of the constructed object. It is not cloned.
369
+ * If no data is provided, the constructed object will be empty, but still
370
+ * valid.
371
+ * @extends {jspb.Message}
372
+ * @constructor
373
+ */
374
+ proto.wechaty.puppet.TagTagModifyResponse = function(opt_data) {
375
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
376
+ };
377
+ goog.inherits(proto.wechaty.puppet.TagTagModifyResponse, jspb.Message);
378
+ if (goog.DEBUG && !COMPILED) {
379
+ /**
380
+ * @public
381
+ * @override
382
+ */
383
+ proto.wechaty.puppet.TagTagModifyResponse.displayName = 'proto.wechaty.puppet.TagTagModifyResponse';
384
+ }
341
385
  /**
342
386
  * Generated by JsPbCodeGenerator.
343
387
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2669,6 +2713,326 @@ proto.wechaty.puppet.TagTagDeleteResponse.serializeBinaryToWriter = function(mes
2669
2713
 
2670
2714
 
2671
2715
 
2716
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2717
+ /**
2718
+ * Creates an object representation of this proto.
2719
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2720
+ * Optional fields that are not set will be set to undefined.
2721
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2722
+ * For the list of reserved names please see:
2723
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2724
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2725
+ * JSPB instance for transitional soy proto support:
2726
+ * http://goto/soy-param-migration
2727
+ * @return {!Object}
2728
+ */
2729
+ proto.wechaty.puppet.TagTagModifyRequest.prototype.toObject = function(opt_includeInstance) {
2730
+ return proto.wechaty.puppet.TagTagModifyRequest.toObject(opt_includeInstance, this);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Static version of the {@see toObject} method.
2736
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2737
+ * the JSPB instance for transitional soy proto support:
2738
+ * http://goto/soy-param-migration
2739
+ * @param {!proto.wechaty.puppet.TagTagModifyRequest} msg The msg instance to transform.
2740
+ * @return {!Object}
2741
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2742
+ */
2743
+ proto.wechaty.puppet.TagTagModifyRequest.toObject = function(includeInstance, msg) {
2744
+ var f, obj = {
2745
+ tagId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2746
+ tagNewName: jspb.Message.getFieldWithDefault(msg, 2, "")
2747
+ };
2748
+
2749
+ if (includeInstance) {
2750
+ obj.$jspbMessageInstance = msg;
2751
+ }
2752
+ return obj;
2753
+ };
2754
+ }
2755
+
2756
+
2757
+ /**
2758
+ * Deserializes binary data (in protobuf wire format).
2759
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2760
+ * @return {!proto.wechaty.puppet.TagTagModifyRequest}
2761
+ */
2762
+ proto.wechaty.puppet.TagTagModifyRequest.deserializeBinary = function(bytes) {
2763
+ var reader = new jspb.BinaryReader(bytes);
2764
+ var msg = new proto.wechaty.puppet.TagTagModifyRequest;
2765
+ return proto.wechaty.puppet.TagTagModifyRequest.deserializeBinaryFromReader(msg, reader);
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * Deserializes binary data (in protobuf wire format) from the
2771
+ * given reader into the given message object.
2772
+ * @param {!proto.wechaty.puppet.TagTagModifyRequest} msg The message object to deserialize into.
2773
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2774
+ * @return {!proto.wechaty.puppet.TagTagModifyRequest}
2775
+ */
2776
+ proto.wechaty.puppet.TagTagModifyRequest.deserializeBinaryFromReader = function(msg, reader) {
2777
+ while (reader.nextField()) {
2778
+ if (reader.isEndGroup()) {
2779
+ break;
2780
+ }
2781
+ var field = reader.getFieldNumber();
2782
+ switch (field) {
2783
+ case 1:
2784
+ var value = /** @type {string} */ (reader.readString());
2785
+ msg.setTagId(value);
2786
+ break;
2787
+ case 2:
2788
+ var value = /** @type {string} */ (reader.readString());
2789
+ msg.setTagNewName(value);
2790
+ break;
2791
+ default:
2792
+ reader.skipField();
2793
+ break;
2794
+ }
2795
+ }
2796
+ return msg;
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * Serializes the message to binary data (in protobuf wire format).
2802
+ * @return {!Uint8Array}
2803
+ */
2804
+ proto.wechaty.puppet.TagTagModifyRequest.prototype.serializeBinary = function() {
2805
+ var writer = new jspb.BinaryWriter();
2806
+ proto.wechaty.puppet.TagTagModifyRequest.serializeBinaryToWriter(this, writer);
2807
+ return writer.getResultBuffer();
2808
+ };
2809
+
2810
+
2811
+ /**
2812
+ * Serializes the given message to binary data (in protobuf wire
2813
+ * format), writing to the given BinaryWriter.
2814
+ * @param {!proto.wechaty.puppet.TagTagModifyRequest} message
2815
+ * @param {!jspb.BinaryWriter} writer
2816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2817
+ */
2818
+ proto.wechaty.puppet.TagTagModifyRequest.serializeBinaryToWriter = function(message, writer) {
2819
+ var f = undefined;
2820
+ f = message.getTagId();
2821
+ if (f.length > 0) {
2822
+ writer.writeString(
2823
+ 1,
2824
+ f
2825
+ );
2826
+ }
2827
+ f = message.getTagNewName();
2828
+ if (f.length > 0) {
2829
+ writer.writeString(
2830
+ 2,
2831
+ f
2832
+ );
2833
+ }
2834
+ };
2835
+
2836
+
2837
+ /**
2838
+ * optional string tag_id = 1;
2839
+ * @return {string}
2840
+ */
2841
+ proto.wechaty.puppet.TagTagModifyRequest.prototype.getTagId = function() {
2842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2843
+ };
2844
+
2845
+
2846
+ /**
2847
+ * @param {string} value
2848
+ * @return {!proto.wechaty.puppet.TagTagModifyRequest} returns this
2849
+ */
2850
+ proto.wechaty.puppet.TagTagModifyRequest.prototype.setTagId = function(value) {
2851
+ return jspb.Message.setProto3StringField(this, 1, value);
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * optional string tag_new_name = 2;
2857
+ * @return {string}
2858
+ */
2859
+ proto.wechaty.puppet.TagTagModifyRequest.prototype.getTagNewName = function() {
2860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2861
+ };
2862
+
2863
+
2864
+ /**
2865
+ * @param {string} value
2866
+ * @return {!proto.wechaty.puppet.TagTagModifyRequest} returns this
2867
+ */
2868
+ proto.wechaty.puppet.TagTagModifyRequest.prototype.setTagNewName = function(value) {
2869
+ return jspb.Message.setProto3StringField(this, 2, value);
2870
+ };
2871
+
2872
+
2873
+
2874
+
2875
+
2876
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2877
+ /**
2878
+ * Creates an object representation of this proto.
2879
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2880
+ * Optional fields that are not set will be set to undefined.
2881
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2882
+ * For the list of reserved names please see:
2883
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2884
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2885
+ * JSPB instance for transitional soy proto support:
2886
+ * http://goto/soy-param-migration
2887
+ * @return {!Object}
2888
+ */
2889
+ proto.wechaty.puppet.TagTagModifyResponse.prototype.toObject = function(opt_includeInstance) {
2890
+ return proto.wechaty.puppet.TagTagModifyResponse.toObject(opt_includeInstance, this);
2891
+ };
2892
+
2893
+
2894
+ /**
2895
+ * Static version of the {@see toObject} method.
2896
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2897
+ * the JSPB instance for transitional soy proto support:
2898
+ * http://goto/soy-param-migration
2899
+ * @param {!proto.wechaty.puppet.TagTagModifyResponse} msg The msg instance to transform.
2900
+ * @return {!Object}
2901
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2902
+ */
2903
+ proto.wechaty.puppet.TagTagModifyResponse.toObject = function(includeInstance, msg) {
2904
+ var f, obj = {
2905
+ tagId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2906
+ tagName: jspb.Message.getFieldWithDefault(msg, 2, "")
2907
+ };
2908
+
2909
+ if (includeInstance) {
2910
+ obj.$jspbMessageInstance = msg;
2911
+ }
2912
+ return obj;
2913
+ };
2914
+ }
2915
+
2916
+
2917
+ /**
2918
+ * Deserializes binary data (in protobuf wire format).
2919
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2920
+ * @return {!proto.wechaty.puppet.TagTagModifyResponse}
2921
+ */
2922
+ proto.wechaty.puppet.TagTagModifyResponse.deserializeBinary = function(bytes) {
2923
+ var reader = new jspb.BinaryReader(bytes);
2924
+ var msg = new proto.wechaty.puppet.TagTagModifyResponse;
2925
+ return proto.wechaty.puppet.TagTagModifyResponse.deserializeBinaryFromReader(msg, reader);
2926
+ };
2927
+
2928
+
2929
+ /**
2930
+ * Deserializes binary data (in protobuf wire format) from the
2931
+ * given reader into the given message object.
2932
+ * @param {!proto.wechaty.puppet.TagTagModifyResponse} msg The message object to deserialize into.
2933
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2934
+ * @return {!proto.wechaty.puppet.TagTagModifyResponse}
2935
+ */
2936
+ proto.wechaty.puppet.TagTagModifyResponse.deserializeBinaryFromReader = function(msg, reader) {
2937
+ while (reader.nextField()) {
2938
+ if (reader.isEndGroup()) {
2939
+ break;
2940
+ }
2941
+ var field = reader.getFieldNumber();
2942
+ switch (field) {
2943
+ case 1:
2944
+ var value = /** @type {string} */ (reader.readString());
2945
+ msg.setTagId(value);
2946
+ break;
2947
+ case 2:
2948
+ var value = /** @type {string} */ (reader.readString());
2949
+ msg.setTagName(value);
2950
+ break;
2951
+ default:
2952
+ reader.skipField();
2953
+ break;
2954
+ }
2955
+ }
2956
+ return msg;
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * Serializes the message to binary data (in protobuf wire format).
2962
+ * @return {!Uint8Array}
2963
+ */
2964
+ proto.wechaty.puppet.TagTagModifyResponse.prototype.serializeBinary = function() {
2965
+ var writer = new jspb.BinaryWriter();
2966
+ proto.wechaty.puppet.TagTagModifyResponse.serializeBinaryToWriter(this, writer);
2967
+ return writer.getResultBuffer();
2968
+ };
2969
+
2970
+
2971
+ /**
2972
+ * Serializes the given message to binary data (in protobuf wire
2973
+ * format), writing to the given BinaryWriter.
2974
+ * @param {!proto.wechaty.puppet.TagTagModifyResponse} message
2975
+ * @param {!jspb.BinaryWriter} writer
2976
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2977
+ */
2978
+ proto.wechaty.puppet.TagTagModifyResponse.serializeBinaryToWriter = function(message, writer) {
2979
+ var f = undefined;
2980
+ f = message.getTagId();
2981
+ if (f.length > 0) {
2982
+ writer.writeString(
2983
+ 1,
2984
+ f
2985
+ );
2986
+ }
2987
+ f = message.getTagName();
2988
+ if (f.length > 0) {
2989
+ writer.writeString(
2990
+ 2,
2991
+ f
2992
+ );
2993
+ }
2994
+ };
2995
+
2996
+
2997
+ /**
2998
+ * optional string tag_id = 1;
2999
+ * @return {string}
3000
+ */
3001
+ proto.wechaty.puppet.TagTagModifyResponse.prototype.getTagId = function() {
3002
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3003
+ };
3004
+
3005
+
3006
+ /**
3007
+ * @param {string} value
3008
+ * @return {!proto.wechaty.puppet.TagTagModifyResponse} returns this
3009
+ */
3010
+ proto.wechaty.puppet.TagTagModifyResponse.prototype.setTagId = function(value) {
3011
+ return jspb.Message.setProto3StringField(this, 1, value);
3012
+ };
3013
+
3014
+
3015
+ /**
3016
+ * optional string tag_name = 2;
3017
+ * @return {string}
3018
+ */
3019
+ proto.wechaty.puppet.TagTagModifyResponse.prototype.getTagName = function() {
3020
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3021
+ };
3022
+
3023
+
3024
+ /**
3025
+ * @param {string} value
3026
+ * @return {!proto.wechaty.puppet.TagTagModifyResponse} returns this
3027
+ */
3028
+ proto.wechaty.puppet.TagTagModifyResponse.prototype.setTagName = function(value) {
3029
+ return jspb.Message.setProto3StringField(this, 2, value);
3030
+ };
3031
+
3032
+
3033
+
3034
+
3035
+
2672
3036
  if (jspb.Message.GENERATE_TO_OBJECT) {
2673
3037
  /**
2674
3038
  * Creates an object representation of this proto.
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.75
12
+ version: 1.0.77
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -2156,6 +2156,26 @@ paths:
2156
2156
  $ref: '#/definitions/rpcStatus'
2157
2157
  tags:
2158
2158
  - Puppet
2159
+ /tag/modify:
2160
+ post:
2161
+ operationId: Puppet_tagTagModify
2162
+ responses:
2163
+ '200':
2164
+ description: A successful response.
2165
+ schema:
2166
+ $ref: '#/definitions/puppetTagTagModifyResponse'
2167
+ default:
2168
+ description: An unexpected error response.
2169
+ schema:
2170
+ $ref: '#/definitions/rpcStatus'
2171
+ parameters:
2172
+ - name: body
2173
+ in: body
2174
+ required: true
2175
+ schema:
2176
+ $ref: '#/definitions/puppetTagTagModifyRequest'
2177
+ tags:
2178
+ - Puppet
2159
2179
  /tag/payload:
2160
2180
  post:
2161
2181
  operationId: Puppet_TagPayload
@@ -3428,6 +3448,11 @@ definitions:
3428
3448
  title: 被引用的消息id
3429
3449
  additionalInfo:
3430
3450
  type: string
3451
+ textContents:
3452
+ type: array
3453
+ items:
3454
+ type: object
3455
+ $ref: '#/definitions/puppetTextContent'
3431
3456
  puppetMessagePreviewResponse:
3432
3457
  type: object
3433
3458
  properties:
@@ -4159,6 +4184,20 @@ definitions:
4159
4184
  type: array
4160
4185
  items:
4161
4186
  type: string
4187
+ puppetTagTagModifyRequest:
4188
+ type: object
4189
+ properties:
4190
+ tagId:
4191
+ type: string
4192
+ tagNewName:
4193
+ type: string
4194
+ puppetTagTagModifyResponse:
4195
+ type: object
4196
+ properties:
4197
+ tagId:
4198
+ type: string
4199
+ tagName:
4200
+ type: string
4162
4201
  puppetTagType:
4163
4202
  type: string
4164
4203
  enum:
@@ -4175,6 +4214,26 @@ definitions:
4175
4214
  - TAP_TYPE_UNSPECIFIED
4176
4215
  - TAP_TYPE_LIKE
4177
4216
  default: TAP_TYPE_UNSPECIFIED
4217
+ puppetTextContent:
4218
+ type: object
4219
+ properties:
4220
+ type:
4221
+ $ref: '#/definitions/puppetTextContentType'
4222
+ text:
4223
+ type: string
4224
+ data:
4225
+ $ref: '#/definitions/puppetTextContentData'
4226
+ puppetTextContentData:
4227
+ type: object
4228
+ properties:
4229
+ contactId:
4230
+ type: string
4231
+ puppetTextContentType:
4232
+ type: string
4233
+ enum:
4234
+ - TEXT_CONTENT_TYPE_REGULAR
4235
+ - TEXT_CONTENT_TYPE_AT
4236
+ default: TEXT_CONTENT_TYPE_REGULAR
4178
4237
  puppetUploadRequest:
4179
4238
  type: object
4180
4239
  properties:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.75",
6
+ "version": "1.0.77",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3257,6 +3257,38 @@
3257
3257
  ]
3258
3258
  }
3259
3259
  },
3260
+ "/tag/modify": {
3261
+ "post": {
3262
+ "operationId": "Puppet_tagTagModify",
3263
+ "responses": {
3264
+ "200": {
3265
+ "description": "A successful response.",
3266
+ "schema": {
3267
+ "$ref": "#/definitions/puppetTagTagModifyResponse"
3268
+ }
3269
+ },
3270
+ "default": {
3271
+ "description": "An unexpected error response.",
3272
+ "schema": {
3273
+ "$ref": "#/definitions/rpcStatus"
3274
+ }
3275
+ }
3276
+ },
3277
+ "parameters": [
3278
+ {
3279
+ "name": "body",
3280
+ "in": "body",
3281
+ "required": true,
3282
+ "schema": {
3283
+ "$ref": "#/definitions/puppetTagTagModifyRequest"
3284
+ }
3285
+ }
3286
+ ],
3287
+ "tags": [
3288
+ "Puppet"
3289
+ ]
3290
+ }
3291
+ },
3260
3292
  "/tag/payload": {
3261
3293
  "post": {
3262
3294
  "operationId": "Puppet_TagPayload",
@@ -4958,6 +4990,13 @@
4958
4990
  },
4959
4991
  "additionalInfo": {
4960
4992
  "type": "string"
4993
+ },
4994
+ "textContents": {
4995
+ "type": "array",
4996
+ "items": {
4997
+ "type": "object",
4998
+ "$ref": "#/definitions/puppetTextContent"
4999
+ }
4961
5000
  }
4962
5001
  }
4963
5002
  },
@@ -5930,6 +5969,28 @@
5930
5969
  }
5931
5970
  }
5932
5971
  },
5972
+ "puppetTagTagModifyRequest": {
5973
+ "type": "object",
5974
+ "properties": {
5975
+ "tagId": {
5976
+ "type": "string"
5977
+ },
5978
+ "tagNewName": {
5979
+ "type": "string"
5980
+ }
5981
+ }
5982
+ },
5983
+ "puppetTagTagModifyResponse": {
5984
+ "type": "object",
5985
+ "properties": {
5986
+ "tagId": {
5987
+ "type": "string"
5988
+ },
5989
+ "tagName": {
5990
+ "type": "string"
5991
+ }
5992
+ }
5993
+ },
5933
5994
  "puppetTagType": {
5934
5995
  "type": "string",
5935
5996
  "enum": [
@@ -5948,6 +6009,36 @@
5948
6009
  ],
5949
6010
  "default": "TAP_TYPE_UNSPECIFIED"
5950
6011
  },
6012
+ "puppetTextContent": {
6013
+ "type": "object",
6014
+ "properties": {
6015
+ "type": {
6016
+ "$ref": "#/definitions/puppetTextContentType"
6017
+ },
6018
+ "text": {
6019
+ "type": "string"
6020
+ },
6021
+ "data": {
6022
+ "$ref": "#/definitions/puppetTextContentData"
6023
+ }
6024
+ }
6025
+ },
6026
+ "puppetTextContentData": {
6027
+ "type": "object",
6028
+ "properties": {
6029
+ "contactId": {
6030
+ "type": "string"
6031
+ }
6032
+ }
6033
+ },
6034
+ "puppetTextContentType": {
6035
+ "type": "string",
6036
+ "enum": [
6037
+ "TEXT_CONTENT_TYPE_REGULAR",
6038
+ "TEXT_CONTENT_TYPE_AT"
6039
+ ],
6040
+ "default": "TEXT_CONTENT_TYPE_REGULAR"
6041
+ },
5951
6042
  "puppetUploadRequest": {
5952
6043
  "type": "object",
5953
6044
  "properties": {
@@ -107,6 +107,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
107
107
  tagGroupPayload: IPuppetService_ITagGroupPayload;
108
108
  tagTagAdd: IPuppetService_ITagTagAdd;
109
109
  tagTagDelete: IPuppetService_ITagTagDelete;
110
+ tagTagModify: IPuppetService_ItagTagModify;
110
111
  tagPayload: IPuppetService_ITagPayload;
111
112
  tagGroupList: IPuppetService_ITagGroupList;
112
113
  tagGroupTagList: IPuppetService_ITagGroupTagList;
@@ -876,6 +877,15 @@ interface IPuppetService_ITagTagDelete extends grpc.MethodDefinition<wechaty_pup
876
877
  responseSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagTagDeleteResponse>;
877
878
  responseDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagTagDeleteResponse>;
878
879
  }
880
+ interface IPuppetService_ItagTagModify extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagTagModifyRequest, wechaty_puppet_tag_pb.TagTagModifyResponse> {
881
+ path: "/wechaty.Puppet/tagTagModify";
882
+ requestStream: false;
883
+ responseStream: false;
884
+ requestSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagTagModifyRequest>;
885
+ requestDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagTagModifyRequest>;
886
+ responseSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagTagModifyResponse>;
887
+ responseDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagTagModifyResponse>;
888
+ }
879
889
  interface IPuppetService_ITagPayload extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagPayloadRequest, wechaty_puppet_tag_pb.TagPayloadResponse> {
880
890
  path: "/wechaty.Puppet/TagPayload";
881
891
  requestStream: false;
@@ -1143,6 +1153,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
1143
1153
  tagGroupPayload: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupPayloadRequest, wechaty_puppet_tag_pb.TagGroupPayloadResponse>;
1144
1154
  tagTagAdd: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagAddRequest, wechaty_puppet_tag_pb.TagTagAddResponse>;
1145
1155
  tagTagDelete: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagDeleteRequest, wechaty_puppet_tag_pb.TagTagDeleteResponse>;
1156
+ tagTagModify: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagModifyRequest, wechaty_puppet_tag_pb.TagTagModifyResponse>;
1146
1157
  tagPayload: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagPayloadRequest, wechaty_puppet_tag_pb.TagPayloadResponse>;
1147
1158
  tagGroupList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupListRequest, wechaty_puppet_tag_pb.TagGroupListResponse>;
1148
1159
  tagGroupTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupTagListRequest, wechaty_puppet_tag_pb.TagGroupTagListResponse>;
@@ -1414,6 +1425,9 @@ export interface IPuppetClient {
1414
1425
  tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
1415
1426
  tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
1416
1427
  tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
1428
+ tagTagModify(request: wechaty_puppet_tag_pb.TagTagModifyRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagModifyResponse) => void): grpc.ClientUnaryCall;
1429
+ tagTagModify(request: wechaty_puppet_tag_pb.TagTagModifyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagModifyResponse) => void): grpc.ClientUnaryCall;
1430
+ tagTagModify(request: wechaty_puppet_tag_pb.TagTagModifyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagModifyResponse) => void): grpc.ClientUnaryCall;
1417
1431
  tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
1418
1432
  tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
1419
1433
  tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -1726,6 +1740,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1726
1740
  public tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
1727
1741
  public tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
1728
1742
  public tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
1743
+ public tagTagModify(request: wechaty_puppet_tag_pb.TagTagModifyRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagModifyResponse) => void): grpc.ClientUnaryCall;
1744
+ public tagTagModify(request: wechaty_puppet_tag_pb.TagTagModifyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagModifyResponse) => void): grpc.ClientUnaryCall;
1745
+ public tagTagModify(request: wechaty_puppet_tag_pb.TagTagModifyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagModifyResponse) => void): grpc.ClientUnaryCall;
1729
1746
  public tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
1730
1747
  public tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
1731
1748
  public tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;