@juzi/wechaty-grpc 1.0.76 → 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.
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +48 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +364 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +35 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +55 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +10 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +48 -0
- package/dist/esm/out/wechaty/puppet/tag_pb.js +364 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +35 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +55 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +10 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/tag_pb.d.ts +48 -0
- package/out/wechaty/puppet/tag_pb.js +364 -0
- package/out/wechaty/puppet.openapi.yaml +35 -1
- package/out/wechaty/puppet.swagger.json +55 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -307,6 +307,54 @@ export namespace TagTagDeleteResponse {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
export class TagTagModifyRequest extends jspb.Message {
|
|
311
|
+
getTagId(): string;
|
|
312
|
+
setTagId(value: string): void;
|
|
313
|
+
|
|
314
|
+
getTagNewName(): string;
|
|
315
|
+
setTagNewName(value: string): void;
|
|
316
|
+
|
|
317
|
+
serializeBinary(): Uint8Array;
|
|
318
|
+
toObject(includeInstance?: boolean): TagTagModifyRequest.AsObject;
|
|
319
|
+
static toObject(includeInstance: boolean, msg: TagTagModifyRequest): TagTagModifyRequest.AsObject;
|
|
320
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
321
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
322
|
+
static serializeBinaryToWriter(message: TagTagModifyRequest, writer: jspb.BinaryWriter): void;
|
|
323
|
+
static deserializeBinary(bytes: Uint8Array): TagTagModifyRequest;
|
|
324
|
+
static deserializeBinaryFromReader(message: TagTagModifyRequest, reader: jspb.BinaryReader): TagTagModifyRequest;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export namespace TagTagModifyRequest {
|
|
328
|
+
export type AsObject = {
|
|
329
|
+
tagId: string,
|
|
330
|
+
tagNewName: string,
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export class TagTagModifyResponse extends jspb.Message {
|
|
335
|
+
getTagId(): string;
|
|
336
|
+
setTagId(value: string): void;
|
|
337
|
+
|
|
338
|
+
getTagName(): string;
|
|
339
|
+
setTagName(value: string): void;
|
|
340
|
+
|
|
341
|
+
serializeBinary(): Uint8Array;
|
|
342
|
+
toObject(includeInstance?: boolean): TagTagModifyResponse.AsObject;
|
|
343
|
+
static toObject(includeInstance: boolean, msg: TagTagModifyResponse): TagTagModifyResponse.AsObject;
|
|
344
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
345
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
346
|
+
static serializeBinaryToWriter(message: TagTagModifyResponse, writer: jspb.BinaryWriter): void;
|
|
347
|
+
static deserializeBinary(bytes: Uint8Array): TagTagModifyResponse;
|
|
348
|
+
static deserializeBinaryFromReader(message: TagTagModifyResponse, reader: jspb.BinaryReader): TagTagModifyResponse;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export namespace TagTagModifyResponse {
|
|
352
|
+
export type AsObject = {
|
|
353
|
+
tagId: string,
|
|
354
|
+
tagName: string,
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
310
358
|
export class TagGroupListRequest extends jspb.Message {
|
|
311
359
|
serializeBinary(): Uint8Array;
|
|
312
360
|
toObject(includeInstance?: boolean): TagGroupListRequest.AsObject;
|
|
@@ -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.
|
|
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
|
|
@@ -4164,6 +4184,20 @@ definitions:
|
|
|
4164
4184
|
type: array
|
|
4165
4185
|
items:
|
|
4166
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
|
|
4167
4201
|
puppetTagType:
|
|
4168
4202
|
type: string
|
|
4169
4203
|
enum:
|
|
@@ -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.
|
|
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",
|
|
@@ -5937,6 +5969,28 @@
|
|
|
5937
5969
|
}
|
|
5938
5970
|
}
|
|
5939
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
|
+
},
|
|
5940
5994
|
"puppetTagType": {
|
|
5941
5995
|
"type": "string",
|
|
5942
5996
|
"enum": [
|
|
@@ -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;
|
|
@@ -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,
|