@juzi/wechaty-grpc 1.0.40 → 1.0.41
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/contact_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +6 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +8 -1
- package/dist/cjs/proto/wechaty/puppet/contact.proto +1 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +6 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +8 -1
- package/dist/esm/proto/wechaty/puppet/contact.proto +1 -0
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/out/wechaty/puppet/contact_pb.js +51 -2
- package/out/wechaty/puppet.openapi.yaml +6 -1
- package/out/wechaty/puppet.swagger.json +8 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -622,6 +622,11 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
622
622
|
getAdditionalInfo(): string;
|
|
623
623
|
setAdditionalInfo(value: string): void;
|
|
624
624
|
|
|
625
|
+
clearTagIdsList(): void;
|
|
626
|
+
getTagIdsList(): Array<string>;
|
|
627
|
+
setTagIdsList(value: Array<string>): void;
|
|
628
|
+
addTagIds(value: string, index?: number): string;
|
|
629
|
+
|
|
625
630
|
serializeBinary(): Uint8Array;
|
|
626
631
|
toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
|
|
627
632
|
static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
|
|
@@ -653,6 +658,7 @@ export namespace ContactPayloadModifyRequest {
|
|
|
653
658
|
coworker: boolean,
|
|
654
659
|
phonesList: Array<string>,
|
|
655
660
|
additionalInfo: string,
|
|
661
|
+
tagIdsList: Array<string>,
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
664
|
|
|
@@ -4395,7 +4395,7 @@ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(me
|
|
|
4395
4395
|
* @private {!Array<number>}
|
|
4396
4396
|
* @const
|
|
4397
4397
|
*/
|
|
4398
|
-
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18];
|
|
4398
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18,20];
|
|
4399
4399
|
|
|
4400
4400
|
|
|
4401
4401
|
|
|
@@ -4446,7 +4446,8 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
|
|
|
4446
4446
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
4447
4447
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
4448
4448
|
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
4449
|
-
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
4449
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
4450
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
|
|
4450
4451
|
};
|
|
4451
4452
|
|
|
4452
4453
|
if (includeInstance) {
|
|
@@ -4559,6 +4560,10 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
|
|
|
4559
4560
|
var value = /** @type {string} */ (reader.readString());
|
|
4560
4561
|
msg.setAdditionalInfo(value);
|
|
4561
4562
|
break;
|
|
4563
|
+
case 20:
|
|
4564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4565
|
+
msg.addTagIds(value);
|
|
4566
|
+
break;
|
|
4562
4567
|
default:
|
|
4563
4568
|
reader.skipField();
|
|
4564
4569
|
break;
|
|
@@ -4721,6 +4726,13 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
|
|
|
4721
4726
|
f
|
|
4722
4727
|
);
|
|
4723
4728
|
}
|
|
4729
|
+
f = message.getTagIdsList();
|
|
4730
|
+
if (f.length > 0) {
|
|
4731
|
+
writer.writeRepeatedString(
|
|
4732
|
+
20,
|
|
4733
|
+
f
|
|
4734
|
+
);
|
|
4735
|
+
}
|
|
4724
4736
|
};
|
|
4725
4737
|
|
|
4726
4738
|
|
|
@@ -5085,6 +5097,43 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = f
|
|
|
5085
5097
|
};
|
|
5086
5098
|
|
|
5087
5099
|
|
|
5100
|
+
/**
|
|
5101
|
+
* repeated string tag_ids = 20;
|
|
5102
|
+
* @return {!Array<string>}
|
|
5103
|
+
*/
|
|
5104
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTagIdsList = function() {
|
|
5105
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
|
|
5109
|
+
/**
|
|
5110
|
+
* @param {!Array<string>} value
|
|
5111
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5112
|
+
*/
|
|
5113
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTagIdsList = function(value) {
|
|
5114
|
+
return jspb.Message.setField(this, 20, value || []);
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
/**
|
|
5119
|
+
* @param {string} value
|
|
5120
|
+
* @param {number=} opt_index
|
|
5121
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5122
|
+
*/
|
|
5123
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addTagIds = function(value, opt_index) {
|
|
5124
|
+
return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
/**
|
|
5129
|
+
* Clears the list making it empty but non-null.
|
|
5130
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5131
|
+
*/
|
|
5132
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = function() {
|
|
5133
|
+
return this.setTagIdsList([]);
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
|
|
5088
5137
|
|
|
5089
5138
|
|
|
5090
5139
|
|
|
@@ -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.41
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -423,6 +423,11 @@ paths:
|
|
|
423
423
|
additionalInfo:
|
|
424
424
|
type: string
|
|
425
425
|
title: 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
426
|
+
tagIds:
|
|
427
|
+
type: array
|
|
428
|
+
items:
|
|
429
|
+
type: string
|
|
430
|
+
title: 标签(的id)
|
|
426
431
|
tags:
|
|
427
432
|
- Puppet
|
|
428
433
|
'/conversation/{conversationId}/read':
|
|
@@ -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.41",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -619,6 +619,13 @@
|
|
|
619
619
|
"additionalInfo": {
|
|
620
620
|
"type": "string",
|
|
621
621
|
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
622
|
+
},
|
|
623
|
+
"tagIds": {
|
|
624
|
+
"type": "array",
|
|
625
|
+
"items": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"title": "标签(的id)"
|
|
622
629
|
}
|
|
623
630
|
}
|
|
624
631
|
}
|
|
@@ -151,6 +151,7 @@ message ContactPayloadModifyRequest {
|
|
|
151
151
|
bool coworker = 17; // 是否为同事
|
|
152
152
|
repeated string phones = 18; // 电话号码,企微中最多5个
|
|
153
153
|
string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
154
|
+
repeated string tag_ids = 20; // 标签(的id)
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
message ContactPayloadModifyResponse {}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.packageJson = void 0;
|
|
4
4
|
exports.packageJson = {
|
|
5
5
|
"name": "@juzi/wechaty-grpc",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.41",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -622,6 +622,11 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
622
622
|
getAdditionalInfo(): string;
|
|
623
623
|
setAdditionalInfo(value: string): void;
|
|
624
624
|
|
|
625
|
+
clearTagIdsList(): void;
|
|
626
|
+
getTagIdsList(): Array<string>;
|
|
627
|
+
setTagIdsList(value: Array<string>): void;
|
|
628
|
+
addTagIds(value: string, index?: number): string;
|
|
629
|
+
|
|
625
630
|
serializeBinary(): Uint8Array;
|
|
626
631
|
toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
|
|
627
632
|
static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
|
|
@@ -653,6 +658,7 @@ export namespace ContactPayloadModifyRequest {
|
|
|
653
658
|
coworker: boolean,
|
|
654
659
|
phonesList: Array<string>,
|
|
655
660
|
additionalInfo: string,
|
|
661
|
+
tagIdsList: Array<string>,
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
664
|
|
|
@@ -4395,7 +4395,7 @@ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(me
|
|
|
4395
4395
|
* @private {!Array<number>}
|
|
4396
4396
|
* @const
|
|
4397
4397
|
*/
|
|
4398
|
-
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18];
|
|
4398
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18,20];
|
|
4399
4399
|
|
|
4400
4400
|
|
|
4401
4401
|
|
|
@@ -4446,7 +4446,8 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
|
|
|
4446
4446
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
4447
4447
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
4448
4448
|
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
4449
|
-
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
4449
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
4450
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
|
|
4450
4451
|
};
|
|
4451
4452
|
|
|
4452
4453
|
if (includeInstance) {
|
|
@@ -4559,6 +4560,10 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
|
|
|
4559
4560
|
var value = /** @type {string} */ (reader.readString());
|
|
4560
4561
|
msg.setAdditionalInfo(value);
|
|
4561
4562
|
break;
|
|
4563
|
+
case 20:
|
|
4564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4565
|
+
msg.addTagIds(value);
|
|
4566
|
+
break;
|
|
4562
4567
|
default:
|
|
4563
4568
|
reader.skipField();
|
|
4564
4569
|
break;
|
|
@@ -4721,6 +4726,13 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
|
|
|
4721
4726
|
f
|
|
4722
4727
|
);
|
|
4723
4728
|
}
|
|
4729
|
+
f = message.getTagIdsList();
|
|
4730
|
+
if (f.length > 0) {
|
|
4731
|
+
writer.writeRepeatedString(
|
|
4732
|
+
20,
|
|
4733
|
+
f
|
|
4734
|
+
);
|
|
4735
|
+
}
|
|
4724
4736
|
};
|
|
4725
4737
|
|
|
4726
4738
|
|
|
@@ -5085,6 +5097,43 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = f
|
|
|
5085
5097
|
};
|
|
5086
5098
|
|
|
5087
5099
|
|
|
5100
|
+
/**
|
|
5101
|
+
* repeated string tag_ids = 20;
|
|
5102
|
+
* @return {!Array<string>}
|
|
5103
|
+
*/
|
|
5104
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTagIdsList = function() {
|
|
5105
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
|
|
5109
|
+
/**
|
|
5110
|
+
* @param {!Array<string>} value
|
|
5111
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5112
|
+
*/
|
|
5113
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTagIdsList = function(value) {
|
|
5114
|
+
return jspb.Message.setField(this, 20, value || []);
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
/**
|
|
5119
|
+
* @param {string} value
|
|
5120
|
+
* @param {number=} opt_index
|
|
5121
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5122
|
+
*/
|
|
5123
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addTagIds = function(value, opt_index) {
|
|
5124
|
+
return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
/**
|
|
5129
|
+
* Clears the list making it empty but non-null.
|
|
5130
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5131
|
+
*/
|
|
5132
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = function() {
|
|
5133
|
+
return this.setTagIdsList([]);
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
|
|
5088
5137
|
|
|
5089
5138
|
|
|
5090
5139
|
|
|
@@ -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.41
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -423,6 +423,11 @@ paths:
|
|
|
423
423
|
additionalInfo:
|
|
424
424
|
type: string
|
|
425
425
|
title: 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
426
|
+
tagIds:
|
|
427
|
+
type: array
|
|
428
|
+
items:
|
|
429
|
+
type: string
|
|
430
|
+
title: 标签(的id)
|
|
426
431
|
tags:
|
|
427
432
|
- Puppet
|
|
428
433
|
'/conversation/{conversationId}/read':
|
|
@@ -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.41",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -619,6 +619,13 @@
|
|
|
619
619
|
"additionalInfo": {
|
|
620
620
|
"type": "string",
|
|
621
621
|
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
622
|
+
},
|
|
623
|
+
"tagIds": {
|
|
624
|
+
"type": "array",
|
|
625
|
+
"items": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"title": "标签(的id)"
|
|
622
629
|
}
|
|
623
630
|
}
|
|
624
631
|
}
|
|
@@ -151,6 +151,7 @@ message ContactPayloadModifyRequest {
|
|
|
151
151
|
bool coworker = 17; // 是否为同事
|
|
152
152
|
repeated string phones = 18; // 电话号码,企微中最多5个
|
|
153
153
|
string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
154
|
+
repeated string tag_ids = 20; // 标签(的id)
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
message ContactPayloadModifyResponse {}
|
|
@@ -622,6 +622,11 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
622
622
|
getAdditionalInfo(): string;
|
|
623
623
|
setAdditionalInfo(value: string): void;
|
|
624
624
|
|
|
625
|
+
clearTagIdsList(): void;
|
|
626
|
+
getTagIdsList(): Array<string>;
|
|
627
|
+
setTagIdsList(value: Array<string>): void;
|
|
628
|
+
addTagIds(value: string, index?: number): string;
|
|
629
|
+
|
|
625
630
|
serializeBinary(): Uint8Array;
|
|
626
631
|
toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
|
|
627
632
|
static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
|
|
@@ -653,6 +658,7 @@ export namespace ContactPayloadModifyRequest {
|
|
|
653
658
|
coworker: boolean,
|
|
654
659
|
phonesList: Array<string>,
|
|
655
660
|
additionalInfo: string,
|
|
661
|
+
tagIdsList: Array<string>,
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
664
|
|
|
@@ -4395,7 +4395,7 @@ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(me
|
|
|
4395
4395
|
* @private {!Array<number>}
|
|
4396
4396
|
* @const
|
|
4397
4397
|
*/
|
|
4398
|
-
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18];
|
|
4398
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18,20];
|
|
4399
4399
|
|
|
4400
4400
|
|
|
4401
4401
|
|
|
@@ -4446,7 +4446,8 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
|
|
|
4446
4446
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
4447
4447
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
4448
4448
|
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
4449
|
-
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
4449
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
4450
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
|
|
4450
4451
|
};
|
|
4451
4452
|
|
|
4452
4453
|
if (includeInstance) {
|
|
@@ -4559,6 +4560,10 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
|
|
|
4559
4560
|
var value = /** @type {string} */ (reader.readString());
|
|
4560
4561
|
msg.setAdditionalInfo(value);
|
|
4561
4562
|
break;
|
|
4563
|
+
case 20:
|
|
4564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4565
|
+
msg.addTagIds(value);
|
|
4566
|
+
break;
|
|
4562
4567
|
default:
|
|
4563
4568
|
reader.skipField();
|
|
4564
4569
|
break;
|
|
@@ -4721,6 +4726,13 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
|
|
|
4721
4726
|
f
|
|
4722
4727
|
);
|
|
4723
4728
|
}
|
|
4729
|
+
f = message.getTagIdsList();
|
|
4730
|
+
if (f.length > 0) {
|
|
4731
|
+
writer.writeRepeatedString(
|
|
4732
|
+
20,
|
|
4733
|
+
f
|
|
4734
|
+
);
|
|
4735
|
+
}
|
|
4724
4736
|
};
|
|
4725
4737
|
|
|
4726
4738
|
|
|
@@ -5085,6 +5097,43 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = f
|
|
|
5085
5097
|
};
|
|
5086
5098
|
|
|
5087
5099
|
|
|
5100
|
+
/**
|
|
5101
|
+
* repeated string tag_ids = 20;
|
|
5102
|
+
* @return {!Array<string>}
|
|
5103
|
+
*/
|
|
5104
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTagIdsList = function() {
|
|
5105
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
|
|
5109
|
+
/**
|
|
5110
|
+
* @param {!Array<string>} value
|
|
5111
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5112
|
+
*/
|
|
5113
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTagIdsList = function(value) {
|
|
5114
|
+
return jspb.Message.setField(this, 20, value || []);
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
/**
|
|
5119
|
+
* @param {string} value
|
|
5120
|
+
* @param {number=} opt_index
|
|
5121
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5122
|
+
*/
|
|
5123
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addTagIds = function(value, opt_index) {
|
|
5124
|
+
return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
/**
|
|
5129
|
+
* Clears the list making it empty but non-null.
|
|
5130
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5131
|
+
*/
|
|
5132
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = function() {
|
|
5133
|
+
return this.setTagIdsList([]);
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
|
|
5088
5137
|
|
|
5089
5138
|
|
|
5090
5139
|
|
|
@@ -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.41
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -423,6 +423,11 @@ paths:
|
|
|
423
423
|
additionalInfo:
|
|
424
424
|
type: string
|
|
425
425
|
title: 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
426
|
+
tagIds:
|
|
427
|
+
type: array
|
|
428
|
+
items:
|
|
429
|
+
type: string
|
|
430
|
+
title: 标签(的id)
|
|
426
431
|
tags:
|
|
427
432
|
- Puppet
|
|
428
433
|
'/conversation/{conversationId}/read':
|
|
@@ -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.41",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -619,6 +619,13 @@
|
|
|
619
619
|
"additionalInfo": {
|
|
620
620
|
"type": "string",
|
|
621
621
|
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
622
|
+
},
|
|
623
|
+
"tagIds": {
|
|
624
|
+
"type": "array",
|
|
625
|
+
"items": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"title": "标签(的id)"
|
|
622
629
|
}
|
|
623
630
|
}
|
|
624
631
|
}
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED