@juzi/wechaty-grpc 1.0.20 → 1.0.21
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/post_pb.d.ts +6 -6
- package/dist/cjs/out/wechaty/puppet/post_pb.js +10 -10
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +2 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +2 -2
- package/dist/cjs/proto/wechaty/puppet/post.proto +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/post_pb.d.ts +6 -6
- package/dist/esm/out/wechaty/puppet/post_pb.js +10 -10
- package/dist/esm/out/wechaty/puppet.openapi.yaml +2 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +2 -2
- package/dist/esm/proto/wechaty/puppet/post.proto +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/post_pb.d.ts +6 -6
- package/out/wechaty/puppet/post_pb.js +10 -10
- package/out/wechaty/puppet.openapi.yaml +2 -2
- package/out/wechaty/puppet.swagger.json +2 -2
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -30,10 +30,10 @@ export class PostSayable extends jspb.Message {
|
|
|
30
30
|
getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
|
|
31
31
|
setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
hasChannel(): boolean;
|
|
34
|
+
clearChannel(): void;
|
|
35
|
+
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
36
|
+
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
37
37
|
|
|
38
38
|
getSayablesCase(): PostSayable.SayablesCase;
|
|
39
39
|
serializeBinary(): Uint8Array;
|
|
@@ -53,7 +53,7 @@ export namespace PostSayable {
|
|
|
53
53
|
text: string,
|
|
54
54
|
fileBox: string,
|
|
55
55
|
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
56
|
-
|
|
56
|
+
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export enum SayablesCase {
|
|
@@ -62,7 +62,7 @@ export namespace PostSayable {
|
|
|
62
62
|
TEXT = 3,
|
|
63
63
|
FILE_BOX = 4,
|
|
64
64
|
URL_LINK = 5,
|
|
65
|
-
|
|
65
|
+
CHANNEL = 6,
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -286,7 +286,7 @@ proto.wechaty.puppet.PostSayable.SayablesCase = {
|
|
|
286
286
|
TEXT: 3,
|
|
287
287
|
FILE_BOX: 4,
|
|
288
288
|
URL_LINK: 5,
|
|
289
|
-
|
|
289
|
+
CHANNEL: 6
|
|
290
290
|
};
|
|
291
291
|
|
|
292
292
|
/**
|
|
@@ -332,7 +332,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
|
|
|
332
332
|
text: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
333
333
|
fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
334
334
|
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
|
|
335
|
-
|
|
335
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
if (includeInstance) {
|
|
@@ -393,7 +393,7 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
|
|
|
393
393
|
case 6:
|
|
394
394
|
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
395
395
|
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
396
|
-
msg.
|
|
396
|
+
msg.setChannel(value);
|
|
397
397
|
break;
|
|
398
398
|
default:
|
|
399
399
|
reader.skipField();
|
|
@@ -460,7 +460,7 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
|
|
|
460
460
|
wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
|
-
f = message.
|
|
463
|
+
f = message.getChannel();
|
|
464
464
|
if (f != null) {
|
|
465
465
|
writer.writeMessage(
|
|
466
466
|
6,
|
|
@@ -635,10 +635,10 @@ proto.wechaty.puppet.PostSayable.prototype.hasUrlLink = function() {
|
|
|
635
635
|
|
|
636
636
|
|
|
637
637
|
/**
|
|
638
|
-
* optional ChannelPayload
|
|
638
|
+
* optional ChannelPayload channel = 6;
|
|
639
639
|
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
640
640
|
*/
|
|
641
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
641
|
+
proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
|
|
642
642
|
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
643
643
|
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 6));
|
|
644
644
|
};
|
|
@@ -648,7 +648,7 @@ proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
|
|
|
648
648
|
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
649
649
|
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
650
650
|
*/
|
|
651
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
651
|
+
proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
|
|
652
652
|
return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
|
|
653
653
|
};
|
|
654
654
|
|
|
@@ -657,8 +657,8 @@ proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
|
|
|
657
657
|
* Clears the message field making it undefined.
|
|
658
658
|
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
659
659
|
*/
|
|
660
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
661
|
-
return this.
|
|
660
|
+
proto.wechaty.puppet.PostSayable.prototype.clearChannel = function() {
|
|
661
|
+
return this.setChannel(undefined);
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
|
|
@@ -666,7 +666,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
|
|
|
666
666
|
* Returns whether this field is set.
|
|
667
667
|
* @return {boolean}
|
|
668
668
|
*/
|
|
669
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
669
|
+
proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
|
|
670
670
|
return jspb.Message.getField(this, 6) != null;
|
|
671
671
|
};
|
|
672
672
|
|
|
@@ -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.21
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2770,7 +2770,7 @@ definitions:
|
|
|
2770
2770
|
type: string
|
|
2771
2771
|
urlLink:
|
|
2772
2772
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2773
|
-
|
|
2773
|
+
channel:
|
|
2774
2774
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2775
2775
|
puppetPostType:
|
|
2776
2776
|
type: string
|
|
@@ -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.21",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
"urlLink": {
|
|
4032
4032
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
4033
4033
|
},
|
|
4034
|
-
"
|
|
4034
|
+
"channel": {
|
|
4035
4035
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
@@ -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.21",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -30,10 +30,10 @@ export class PostSayable extends jspb.Message {
|
|
|
30
30
|
getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
|
|
31
31
|
setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
hasChannel(): boolean;
|
|
34
|
+
clearChannel(): void;
|
|
35
|
+
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
36
|
+
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
37
37
|
|
|
38
38
|
getSayablesCase(): PostSayable.SayablesCase;
|
|
39
39
|
serializeBinary(): Uint8Array;
|
|
@@ -53,7 +53,7 @@ export namespace PostSayable {
|
|
|
53
53
|
text: string,
|
|
54
54
|
fileBox: string,
|
|
55
55
|
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
56
|
-
|
|
56
|
+
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export enum SayablesCase {
|
|
@@ -62,7 +62,7 @@ export namespace PostSayable {
|
|
|
62
62
|
TEXT = 3,
|
|
63
63
|
FILE_BOX = 4,
|
|
64
64
|
URL_LINK = 5,
|
|
65
|
-
|
|
65
|
+
CHANNEL = 6,
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -286,7 +286,7 @@ proto.wechaty.puppet.PostSayable.SayablesCase = {
|
|
|
286
286
|
TEXT: 3,
|
|
287
287
|
FILE_BOX: 4,
|
|
288
288
|
URL_LINK: 5,
|
|
289
|
-
|
|
289
|
+
CHANNEL: 6
|
|
290
290
|
};
|
|
291
291
|
|
|
292
292
|
/**
|
|
@@ -332,7 +332,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
|
|
|
332
332
|
text: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
333
333
|
fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
334
334
|
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
|
|
335
|
-
|
|
335
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
if (includeInstance) {
|
|
@@ -393,7 +393,7 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
|
|
|
393
393
|
case 6:
|
|
394
394
|
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
395
395
|
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
396
|
-
msg.
|
|
396
|
+
msg.setChannel(value);
|
|
397
397
|
break;
|
|
398
398
|
default:
|
|
399
399
|
reader.skipField();
|
|
@@ -460,7 +460,7 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
|
|
|
460
460
|
wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
|
-
f = message.
|
|
463
|
+
f = message.getChannel();
|
|
464
464
|
if (f != null) {
|
|
465
465
|
writer.writeMessage(
|
|
466
466
|
6,
|
|
@@ -635,10 +635,10 @@ proto.wechaty.puppet.PostSayable.prototype.hasUrlLink = function() {
|
|
|
635
635
|
|
|
636
636
|
|
|
637
637
|
/**
|
|
638
|
-
* optional ChannelPayload
|
|
638
|
+
* optional ChannelPayload channel = 6;
|
|
639
639
|
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
640
640
|
*/
|
|
641
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
641
|
+
proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
|
|
642
642
|
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
643
643
|
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 6));
|
|
644
644
|
};
|
|
@@ -648,7 +648,7 @@ proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
|
|
|
648
648
|
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
649
649
|
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
650
650
|
*/
|
|
651
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
651
|
+
proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
|
|
652
652
|
return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
|
|
653
653
|
};
|
|
654
654
|
|
|
@@ -657,8 +657,8 @@ proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
|
|
|
657
657
|
* Clears the message field making it undefined.
|
|
658
658
|
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
659
659
|
*/
|
|
660
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
661
|
-
return this.
|
|
660
|
+
proto.wechaty.puppet.PostSayable.prototype.clearChannel = function() {
|
|
661
|
+
return this.setChannel(undefined);
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
|
|
@@ -666,7 +666,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
|
|
|
666
666
|
* Returns whether this field is set.
|
|
667
667
|
* @return {boolean}
|
|
668
668
|
*/
|
|
669
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
669
|
+
proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
|
|
670
670
|
return jspb.Message.getField(this, 6) != null;
|
|
671
671
|
};
|
|
672
672
|
|
|
@@ -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.21
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2770,7 +2770,7 @@ definitions:
|
|
|
2770
2770
|
type: string
|
|
2771
2771
|
urlLink:
|
|
2772
2772
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2773
|
-
|
|
2773
|
+
channel:
|
|
2774
2774
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2775
2775
|
puppetPostType:
|
|
2776
2776
|
type: string
|
|
@@ -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.21",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
"urlLink": {
|
|
4032
4032
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
4033
4033
|
},
|
|
4034
|
-
"
|
|
4034
|
+
"channel": {
|
|
4035
4035
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
@@ -30,10 +30,10 @@ export class PostSayable extends jspb.Message {
|
|
|
30
30
|
getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
|
|
31
31
|
setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
hasChannel(): boolean;
|
|
34
|
+
clearChannel(): void;
|
|
35
|
+
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
36
|
+
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
37
37
|
|
|
38
38
|
getSayablesCase(): PostSayable.SayablesCase;
|
|
39
39
|
serializeBinary(): Uint8Array;
|
|
@@ -53,7 +53,7 @@ export namespace PostSayable {
|
|
|
53
53
|
text: string,
|
|
54
54
|
fileBox: string,
|
|
55
55
|
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
56
|
-
|
|
56
|
+
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export enum SayablesCase {
|
|
@@ -62,7 +62,7 @@ export namespace PostSayable {
|
|
|
62
62
|
TEXT = 3,
|
|
63
63
|
FILE_BOX = 4,
|
|
64
64
|
URL_LINK = 5,
|
|
65
|
-
|
|
65
|
+
CHANNEL = 6,
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -286,7 +286,7 @@ proto.wechaty.puppet.PostSayable.SayablesCase = {
|
|
|
286
286
|
TEXT: 3,
|
|
287
287
|
FILE_BOX: 4,
|
|
288
288
|
URL_LINK: 5,
|
|
289
|
-
|
|
289
|
+
CHANNEL: 6
|
|
290
290
|
};
|
|
291
291
|
|
|
292
292
|
/**
|
|
@@ -332,7 +332,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
|
|
|
332
332
|
text: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
333
333
|
fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
334
334
|
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
|
|
335
|
-
|
|
335
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
if (includeInstance) {
|
|
@@ -393,7 +393,7 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
|
|
|
393
393
|
case 6:
|
|
394
394
|
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
395
395
|
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
396
|
-
msg.
|
|
396
|
+
msg.setChannel(value);
|
|
397
397
|
break;
|
|
398
398
|
default:
|
|
399
399
|
reader.skipField();
|
|
@@ -460,7 +460,7 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
|
|
|
460
460
|
wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
|
-
f = message.
|
|
463
|
+
f = message.getChannel();
|
|
464
464
|
if (f != null) {
|
|
465
465
|
writer.writeMessage(
|
|
466
466
|
6,
|
|
@@ -635,10 +635,10 @@ proto.wechaty.puppet.PostSayable.prototype.hasUrlLink = function() {
|
|
|
635
635
|
|
|
636
636
|
|
|
637
637
|
/**
|
|
638
|
-
* optional ChannelPayload
|
|
638
|
+
* optional ChannelPayload channel = 6;
|
|
639
639
|
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
640
640
|
*/
|
|
641
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
641
|
+
proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
|
|
642
642
|
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
643
643
|
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 6));
|
|
644
644
|
};
|
|
@@ -648,7 +648,7 @@ proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
|
|
|
648
648
|
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
649
649
|
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
650
650
|
*/
|
|
651
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
651
|
+
proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
|
|
652
652
|
return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
|
|
653
653
|
};
|
|
654
654
|
|
|
@@ -657,8 +657,8 @@ proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
|
|
|
657
657
|
* Clears the message field making it undefined.
|
|
658
658
|
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
659
659
|
*/
|
|
660
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
661
|
-
return this.
|
|
660
|
+
proto.wechaty.puppet.PostSayable.prototype.clearChannel = function() {
|
|
661
|
+
return this.setChannel(undefined);
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
|
|
@@ -666,7 +666,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
|
|
|
666
666
|
* Returns whether this field is set.
|
|
667
667
|
* @return {boolean}
|
|
668
668
|
*/
|
|
669
|
-
proto.wechaty.puppet.PostSayable.prototype.
|
|
669
|
+
proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
|
|
670
670
|
return jspb.Message.getField(this, 6) != null;
|
|
671
671
|
};
|
|
672
672
|
|
|
@@ -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.21
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2770,7 +2770,7 @@ definitions:
|
|
|
2770
2770
|
type: string
|
|
2771
2771
|
urlLink:
|
|
2772
2772
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2773
|
-
|
|
2773
|
+
channel:
|
|
2774
2774
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2775
2775
|
puppetPostType:
|
|
2776
2776
|
type: string
|
|
@@ -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.21",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
"urlLink": {
|
|
4032
4032
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
4033
4033
|
},
|
|
4034
|
-
"
|
|
4034
|
+
"channel": {
|
|
4035
4035
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED