@juzi/wechaty-grpc 1.0.19 → 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/event_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +3 -1
- 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 +4 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +5 -3
- package/dist/cjs/proto/wechaty/puppet/event.proto +2 -0
- 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/event_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +3 -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 +4 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +5 -3
- package/dist/esm/proto/wechaty/puppet/event.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/post.proto +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/out/wechaty/puppet/event_pb.js +3 -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 +4 -2
- package/out/wechaty/puppet.swagger.json +5 -3
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -343,7 +343,9 @@ proto.wechaty.puppet.EventType = {
|
|
|
343
343
|
EVENT_TYPE_LOGOUT: 26,
|
|
344
344
|
EVENT_TYPE_DIRTY: 27,
|
|
345
345
|
EVENT_TYPE_TAG: 28,
|
|
346
|
-
EVENT_TYPE_TAG_GROUP: 29
|
|
346
|
+
EVENT_TYPE_TAG_GROUP: 29,
|
|
347
|
+
EVENT_TYPE_POST_COMMENT: 30,
|
|
348
|
+
EVENT_TYPE_POST_TAP: 31
|
|
347
349
|
};
|
|
348
350
|
|
|
349
351
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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'
|
|
@@ -2215,6 +2215,8 @@ definitions:
|
|
|
2215
2215
|
- EVENT_TYPE_DIRTY
|
|
2216
2216
|
- EVENT_TYPE_TAG
|
|
2217
2217
|
- EVENT_TYPE_TAG_GROUP
|
|
2218
|
+
- EVENT_TYPE_POST_COMMENT
|
|
2219
|
+
- EVENT_TYPE_POST_TAP
|
|
2218
2220
|
default: EVENT_TYPE_UNSPECIFIED
|
|
2219
2221
|
puppetFileBoxChunk:
|
|
2220
2222
|
type: object
|
|
@@ -2768,7 +2770,7 @@ definitions:
|
|
|
2768
2770
|
type: string
|
|
2769
2771
|
urlLink:
|
|
2770
2772
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2771
|
-
|
|
2773
|
+
channel:
|
|
2772
2774
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2773
2775
|
puppetPostType:
|
|
2774
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",
|
|
@@ -3313,7 +3313,9 @@
|
|
|
3313
3313
|
"EVENT_TYPE_LOGOUT",
|
|
3314
3314
|
"EVENT_TYPE_DIRTY",
|
|
3315
3315
|
"EVENT_TYPE_TAG",
|
|
3316
|
-
"EVENT_TYPE_TAG_GROUP"
|
|
3316
|
+
"EVENT_TYPE_TAG_GROUP",
|
|
3317
|
+
"EVENT_TYPE_POST_COMMENT",
|
|
3318
|
+
"EVENT_TYPE_POST_TAP"
|
|
3317
3319
|
],
|
|
3318
3320
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3319
3321
|
},
|
|
@@ -4029,7 +4031,7 @@
|
|
|
4029
4031
|
"urlLink": {
|
|
4030
4032
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
4031
4033
|
},
|
|
4032
|
-
"
|
|
4034
|
+
"channel": {
|
|
4033
4035
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4034
4036
|
}
|
|
4035
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": {
|
|
@@ -343,7 +343,9 @@ proto.wechaty.puppet.EventType = {
|
|
|
343
343
|
EVENT_TYPE_LOGOUT: 26,
|
|
344
344
|
EVENT_TYPE_DIRTY: 27,
|
|
345
345
|
EVENT_TYPE_TAG: 28,
|
|
346
|
-
EVENT_TYPE_TAG_GROUP: 29
|
|
346
|
+
EVENT_TYPE_TAG_GROUP: 29,
|
|
347
|
+
EVENT_TYPE_POST_COMMENT: 30,
|
|
348
|
+
EVENT_TYPE_POST_TAP: 31
|
|
347
349
|
};
|
|
348
350
|
|
|
349
351
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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'
|
|
@@ -2215,6 +2215,8 @@ definitions:
|
|
|
2215
2215
|
- EVENT_TYPE_DIRTY
|
|
2216
2216
|
- EVENT_TYPE_TAG
|
|
2217
2217
|
- EVENT_TYPE_TAG_GROUP
|
|
2218
|
+
- EVENT_TYPE_POST_COMMENT
|
|
2219
|
+
- EVENT_TYPE_POST_TAP
|
|
2218
2220
|
default: EVENT_TYPE_UNSPECIFIED
|
|
2219
2221
|
puppetFileBoxChunk:
|
|
2220
2222
|
type: object
|
|
@@ -2768,7 +2770,7 @@ definitions:
|
|
|
2768
2770
|
type: string
|
|
2769
2771
|
urlLink:
|
|
2770
2772
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2771
|
-
|
|
2773
|
+
channel:
|
|
2772
2774
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2773
2775
|
puppetPostType:
|
|
2774
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",
|
|
@@ -3313,7 +3313,9 @@
|
|
|
3313
3313
|
"EVENT_TYPE_LOGOUT",
|
|
3314
3314
|
"EVENT_TYPE_DIRTY",
|
|
3315
3315
|
"EVENT_TYPE_TAG",
|
|
3316
|
-
"EVENT_TYPE_TAG_GROUP"
|
|
3316
|
+
"EVENT_TYPE_TAG_GROUP",
|
|
3317
|
+
"EVENT_TYPE_POST_COMMENT",
|
|
3318
|
+
"EVENT_TYPE_POST_TAP"
|
|
3317
3319
|
],
|
|
3318
3320
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3319
3321
|
},
|
|
@@ -4029,7 +4031,7 @@
|
|
|
4029
4031
|
"urlLink": {
|
|
4030
4032
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
4031
4033
|
},
|
|
4032
|
-
"
|
|
4034
|
+
"channel": {
|
|
4033
4035
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4034
4036
|
}
|
|
4035
4037
|
}
|
|
@@ -343,7 +343,9 @@ proto.wechaty.puppet.EventType = {
|
|
|
343
343
|
EVENT_TYPE_LOGOUT: 26,
|
|
344
344
|
EVENT_TYPE_DIRTY: 27,
|
|
345
345
|
EVENT_TYPE_TAG: 28,
|
|
346
|
-
EVENT_TYPE_TAG_GROUP: 29
|
|
346
|
+
EVENT_TYPE_TAG_GROUP: 29,
|
|
347
|
+
EVENT_TYPE_POST_COMMENT: 30,
|
|
348
|
+
EVENT_TYPE_POST_TAP: 31
|
|
347
349
|
};
|
|
348
350
|
|
|
349
351
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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'
|
|
@@ -2215,6 +2215,8 @@ definitions:
|
|
|
2215
2215
|
- EVENT_TYPE_DIRTY
|
|
2216
2216
|
- EVENT_TYPE_TAG
|
|
2217
2217
|
- EVENT_TYPE_TAG_GROUP
|
|
2218
|
+
- EVENT_TYPE_POST_COMMENT
|
|
2219
|
+
- EVENT_TYPE_POST_TAP
|
|
2218
2220
|
default: EVENT_TYPE_UNSPECIFIED
|
|
2219
2221
|
puppetFileBoxChunk:
|
|
2220
2222
|
type: object
|
|
@@ -2768,7 +2770,7 @@ definitions:
|
|
|
2768
2770
|
type: string
|
|
2769
2771
|
urlLink:
|
|
2770
2772
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2771
|
-
|
|
2773
|
+
channel:
|
|
2772
2774
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2773
2775
|
puppetPostType:
|
|
2774
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",
|
|
@@ -3313,7 +3313,9 @@
|
|
|
3313
3313
|
"EVENT_TYPE_LOGOUT",
|
|
3314
3314
|
"EVENT_TYPE_DIRTY",
|
|
3315
3315
|
"EVENT_TYPE_TAG",
|
|
3316
|
-
"EVENT_TYPE_TAG_GROUP"
|
|
3316
|
+
"EVENT_TYPE_TAG_GROUP",
|
|
3317
|
+
"EVENT_TYPE_POST_COMMENT",
|
|
3318
|
+
"EVENT_TYPE_POST_TAP"
|
|
3317
3319
|
],
|
|
3318
3320
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3319
3321
|
},
|
|
@@ -4029,7 +4031,7 @@
|
|
|
4029
4031
|
"urlLink": {
|
|
4030
4032
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
4031
4033
|
},
|
|
4032
|
-
"
|
|
4034
|
+
"channel": {
|
|
4033
4035
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4034
4036
|
}
|
|
4035
4037
|
}
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED